/[ascend]/trunk/base/autotools/configure
ViewVC logotype

Contents of /trunk/base/autotools/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1075 - (show annotations) (download)
Tue Jan 9 03:15:50 2007 UTC (13 years, 6 months ago) by johnpye
File size: 332178 byte(s)
Attempts to fix utilities/config.h and ASC_WITH_CONOPT issues with autotools build
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 setopt NO_GLOB_SUBST
21 else
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23 fi
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27
28 # PATH needs CR
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
35
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
40 chmod +x conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42 PATH_SEPARATOR=';'
43 else
44 PATH_SEPARATOR=:
45 fi
46 rm -f conf$$.sh
47 fi
48
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51 as_unset=unset
52 else
53 as_unset=false
54 fi
55
56
57 # IFS
58 # We need space, tab and new line, in precisely that order. Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
62 as_nl='
63 '
64 IFS=" "" $as_nl"
65
66 # Find who we are. Look in the path if we contain no directory separator.
67 case $0 in
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70 for as_dir in $PATH
71 do
72 IFS=$as_save_IFS
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75 done
76 IFS=$as_save_IFS
77
78 ;;
79 esac
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
83 as_myself=$0
84 fi
85 if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87 { (exit 1); exit 1; }
88 fi
89
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93 done
94 PS1='$ '
95 PS2='> '
96 PS4='+ '
97
98 # NLS nuisances.
99 for as_var in \
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102 LC_TELEPHONE LC_TIME
103 do
104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C; export $as_var
106 else
107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108 fi
109 done
110
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
114 as_expr=expr
115 else
116 as_expr=false
117 fi
118
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120 as_basename=basename
121 else
122 as_basename=false
123 fi
124
125
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
131 echo X/"$0" |
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
133 s//\1/
134 q
135 }
136 /^X\/\(\/\/\)$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\).*/{
141 s//\1/
142 q
143 }
144 s/.*/./; q'`
145
146 # CDPATH.
147 $as_unset CDPATH
148
149
150 if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
152 as_have_required=yes
153 else
154 as_have_required=no
155 fi
156
157 if test $as_have_required = yes && (eval ":
158 (as_func_return () {
159 (exit \$1)
160 }
161 as_func_success () {
162 as_func_return 0
163 }
164 as_func_failure () {
165 as_func_return 1
166 }
167 as_func_ret_success () {
168 return 0
169 }
170 as_func_ret_failure () {
171 return 1
172 }
173
174 exitcode=0
175 if as_func_success; then
176 :
177 else
178 exitcode=1
179 echo as_func_success failed.
180 fi
181
182 if as_func_failure; then
183 exitcode=1
184 echo as_func_failure succeeded.
185 fi
186
187 if as_func_ret_success; then
188 :
189 else
190 exitcode=1
191 echo as_func_ret_success failed.
192 fi
193
194 if as_func_ret_failure; then
195 exitcode=1
196 echo as_func_ret_failure succeeded.
197 fi
198
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
200 :
201 else
202 exitcode=1
203 echo positional parameters were not saved.
204 fi
205
206 test \$exitcode = 0) || { (exit 1); exit 1; }
207
208 (
209 as_lineno_1=\$LINENO
210 as_lineno_2=\$LINENO
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
214 :
215 else
216 as_candidate_shells=
217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 case $as_dir in
223 /*)
224 for as_base in sh bash ksh sh5; do
225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226 done;;
227 esac
228 done
229 IFS=$as_save_IFS
230
231
232 for as_shell in $as_candidate_shells $SHELL; do
233 # Try only shells that exist, to save several forks.
234 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238 emulate sh
239 NULLCMD=:
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
243 setopt NO_GLOB_SUBST
244 else
245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
246 fi
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
249
250 :
251 _ASEOF
252 }; then
253 CONFIG_SHELL=$as_shell
254 as_have_required=yes
255 if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258 emulate sh
259 NULLCMD=:
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
263 setopt NO_GLOB_SUBST
264 else
265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
266 fi
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
269
270 :
271 (as_func_return () {
272 (exit $1)
273 }
274 as_func_success () {
275 as_func_return 0
276 }
277 as_func_failure () {
278 as_func_return 1
279 }
280 as_func_ret_success () {
281 return 0
282 }
283 as_func_ret_failure () {
284 return 1
285 }
286
287 exitcode=0
288 if as_func_success; then
289 :
290 else
291 exitcode=1
292 echo as_func_success failed.
293 fi
294
295 if as_func_failure; then
296 exitcode=1
297 echo as_func_failure succeeded.
298 fi
299
300 if as_func_ret_success; then
301 :
302 else
303 exitcode=1
304 echo as_func_ret_success failed.
305 fi
306
307 if as_func_ret_failure; then
308 exitcode=1
309 echo as_func_ret_failure succeeded.
310 fi
311
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
313 :
314 else
315 exitcode=1
316 echo positional parameters were not saved.
317 fi
318
319 test $exitcode = 0) || { (exit 1); exit 1; }
320
321 (
322 as_lineno_1=$LINENO
323 as_lineno_2=$LINENO
324 test "x$as_lineno_1" != "x$as_lineno_2" &&
325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
326
327 _ASEOF
328 }; then
329 break
330 fi
331
332 fi
333
334 done
335
336 if test "x$CONFIG_SHELL" != x; then
337 for as_var in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339 done
340 export CONFIG_SHELL
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
342 fi
343
344
345 if test $as_have_required = no; then
346 echo This script requires a shell more modern than all the
347 echo shells that I found on your system. Please install a
348 echo modern shell, or manually run the script under such a
349 echo shell if you do have one.
350 { (exit 1); exit 1; }
351 fi
352
353
354 fi
355
356 fi
357
358
359
360 (eval "as_func_return () {
361 (exit \$1)
362 }
363 as_func_success () {
364 as_func_return 0
365 }
366 as_func_failure () {
367 as_func_return 1
368 }
369 as_func_ret_success () {
370 return 0
371 }
372 as_func_ret_failure () {
373 return 1
374 }
375
376 exitcode=0
377 if as_func_success; then
378 :
379 else
380 exitcode=1
381 echo as_func_success failed.
382 fi
383
384 if as_func_failure; then
385 exitcode=1
386 echo as_func_failure succeeded.
387 fi
388
389 if as_func_ret_success; then
390 :
391 else
392 exitcode=1
393 echo as_func_ret_success failed.
394 fi
395
396 if as_func_ret_failure; then
397 exitcode=1
398 echo as_func_ret_failure succeeded.
399 fi
400
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
402 :
403 else
404 exitcode=1
405 echo positional parameters were not saved.
406 fi
407
408 test \$exitcode = 0") || {
409 echo No shell found that supports shell functions.
410 echo Please tell autoconf@gnu.org about your system,
411 echo including any error possibly output before this
412 echo message
413 }
414
415
416
417 as_lineno_1=$LINENO
418 as_lineno_2=$LINENO
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
421
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
428 # case at line end.
429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449 { (exit 1); exit 1; }; }
450
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
454 . "./$as_me.lineno"
455 # Exit status is that of the last command.
456 exit
457 }
458
459
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461 as_dirname=dirname
462 else
463 as_dirname=false
464 fi
465
466 ECHO_C= ECHO_N= ECHO_T=
467 case `echo -n x` in
468 -n*)
469 case `echo 'x\c'` in
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
471 *) ECHO_C='\c';;
472 esac;;
473 *)
474 ECHO_N='-n';;
475 esac
476
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
479 as_expr=expr
480 else
481 as_expr=false
482 fi
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487 else
488 rm -f conf$$.dir
489 mkdir conf$$.dir
490 fi
491 echo >conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p=:
510 else
511 test -d ./-p && rmdir ./-p
512 as_mkdir_p=false
513 fi
514
515 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
518 #! /bin/sh
519 exit 0
520 _ASEOF
521 chmod +x conf$$.file
522 if test -x conf$$.file >/dev/null 2>&1; then
523 as_executable_p="test -x"
524 else
525 as_executable_p=:
526 fi
527 rm -f conf$$.file
528
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555 SHELL=${CONFIG_SHELL-/bin/sh}
556
557 # Identity of this package.
558 PACKAGE_NAME=
559 PACKAGE_TARNAME=
560 PACKAGE_VERSION=
561 PACKAGE_STRING=
562 PACKAGE_BUGREPORT=
563
564 ac_unique_file="../generic/compiler/ascParse.y"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #if HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #if HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #if STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # if HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #if HAVE_STRING_H
583 # if !STDC_HEADERS && HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #if HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #if HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #if HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #if HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='SHELL
602 PATH_SEPARATOR
603 PACKAGE_NAME
604 PACKAGE_TARNAME
605 PACKAGE_VERSION
606 PACKAGE_STRING
607 PACKAGE_BUGREPORT
608 exec_prefix
609 prefix
610 program_transform_name
611 bindir
612 sbindir
613 libexecdir
614 datarootdir
615 datadir
616 sysconfdir
617 sharedstatedir
618 localstatedir
619 includedir
620 oldincludedir
621 docdir
622 infodir
623 htmldir
624 dvidir
625 pdfdir
626 psdir
627 libdir
628 localedir
629 mandir
630 DEFS
631 ECHO_C
632 ECHO_N
633 ECHO_T
634 LIBS
635 build_alias
636 host_alias
637 target_alias
638 RANLIB
639 LN_S
640 SET_MAKE
641 INSTALL_PROGRAM
642 INSTALL_SCRIPT
643 INSTALL_DATA
644 build
645 build_cpu
646 build_vendor
647 build_os
648 host
649 host_cpu
650 host_vendor
651 host_os
652 CC
653 CFLAGS
654 LDFLAGS
655 CPPFLAGS
656 ac_ct_CC
657 EXEEXT
658 OBJEXT
659 CPP
660 DEBUG_LIBS
661 GREP
662 EGREP
663 YACC
664 YFLAGS
665 parser_src
666 LEX
667 LEXLIB
668 LEX_OUTPUT_ROOT
669 LIBOBJS
670 XMKMF
671 TCLINCLUDE
672 NOTCLCONFIG
673 TCLCONFIG
674 TCLLIB
675 TCLDYNAMICLINKING
676 TKINCLUDE
677 TKLIB
678 TKCONFIG
679 TKDYNAMICLINKING
680 F77
681 BLASLIB
682 LPAKLIB
683 LSODLIB
684 QUIET_INSTALL
685 DEFAULT_ASCENDLIBRARY
686 ASCEND_DEFAULTLIBRARY
687 ascpwd
688 fullpathsrcdir
689 asc_include
690 scanner_src
691 typer_src
692 MATH_LIBS
693 X11_INCLUDES
694 X11_LIBRARIES
695 X11_RUN_PATH
696 X11_EXTRA_LIBS
697 DL_LIBS
698 LD_FLAGS
699 LD_SEARCH_FLAGS
700 SHLIB_CFLAGS
701 SHLIB_LD
702 SHLIB_LD_LIBS
703 SHLIB_SUFFIX
704 ASC_LIB_SUFFIX
705 TK_LIB
706 TKTABLE_LIB
707 ASC_TK_LIBRARY
708 ASC_TCL_LIBRARY
709 ASC_DISTDIR_REL_BIN
710 INSTALL_ASCDATA
711 ASC_ENV_TK_DEFAULT
712 TK_LD_HACK
713 HAVE_TKTABLE
714 asc_subdirs
715 F77LIBS
716 make_blaslib
717 make_lpaklib
718 make_lsodlib
719 HAVE_LSOD
720 tkdir_root
721 tkdir_topbuilddir
722 models_dir_root
723 models_topbuilddir
724 help_dir_root
725 help_topbuilddir
726 LTLIBOBJS'
727 ac_subst_files=''
728 ac_precious_vars='build_alias
729 host_alias
730 target_alias
731 CC
732 CFLAGS
733 LDFLAGS
734 CPPFLAGS
735 CPP
736 YACC
737 YFLAGS
738 XMKMF'
739
740
741 # Initialize some variables set by options.
742 ac_init_help=
743 ac_init_version=false
744 # The variables have the same names as the options, with
745 # dashes changed to underlines.
746 cache_file=/dev/null
747 exec_prefix=NONE
748 no_create=
749 no_recursion=
750 prefix=NONE
751 program_prefix=NONE
752 program_suffix=NONE
753 program_transform_name=s,x,x,
754 silent=
755 site=
756 srcdir=
757 verbose=
758 x_includes=NONE
759 x_libraries=NONE
760
761 # Installation directory options.
762 # These are left unexpanded so users can "make install exec_prefix=/foo"
763 # and all the variables that are supposed to be based on exec_prefix
764 # by default will actually change.
765 # Use braces instead of parens because sh, perl, etc. also accept them.
766 # (The list follows the same order as the GNU Coding Standards.)
767 bindir='${exec_prefix}/bin'
768 sbindir='${exec_prefix}/sbin'
769 libexecdir='${exec_prefix}/libexec'
770 datarootdir='${prefix}/share'
771 datadir='${datarootdir}'
772 sysconfdir='${prefix}/etc'
773 sharedstatedir='${prefix}/com'
774 localstatedir='${prefix}/var'
775 includedir='${prefix}/include'
776 oldincludedir='/usr/include'
777 docdir='${datarootdir}/doc/${PACKAGE}'
778 infodir='${datarootdir}/info'
779 htmldir='${docdir}'
780 dvidir='${docdir}'
781 pdfdir='${docdir}'
782 psdir='${docdir}'
783 libdir='${exec_prefix}/lib'
784 localedir='${datarootdir}/locale'
785 mandir='${datarootdir}/man'
786
787 ac_prev=
788 ac_dashdash=
789 for ac_option
790 do
791 # If the previous option needs an argument, assign it.
792 if test -n "$ac_prev"; then
793 eval $ac_prev=\$ac_option
794 ac_prev=
795 continue
796 fi
797
798 case $ac_option in
799 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
800 *) ac_optarg=yes ;;
801 esac
802
803 # Accept the important Cygnus configure options, so we can diagnose typos.
804
805 case $ac_dashdash$ac_option in
806 --)
807 ac_dashdash=yes ;;
808
809 -bindir | --bindir | --bindi | --bind | --bin | --bi)
810 ac_prev=bindir ;;
811 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
812 bindir=$ac_optarg ;;
813
814 -build | --build | --buil | --bui | --bu)
815 ac_prev=build_alias ;;
816 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
817 build_alias=$ac_optarg ;;
818
819 -cache-file | --cache-file | --cache-fil | --cache-fi \
820 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
821 ac_prev=cache_file ;;
822 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
823 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
824 cache_file=$ac_optarg ;;
825
826 --config-cache | -C)
827 cache_file=config.cache ;;
828
829 -datadir | --datadir | --datadi | --datad)
830 ac_prev=datadir ;;
831 -datadir=* | --datadir=* | --datadi=* | --datad=*)
832 datadir=$ac_optarg ;;
833
834 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
835 | --dataroo | --dataro | --datar)
836 ac_prev=datarootdir ;;
837 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
838 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
839 datarootdir=$ac_optarg ;;
840
841 -disable-* | --disable-*)
842 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
843 # Reject names that are not valid shell variable names.
844 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
845 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
846 { (exit 1); exit 1; }; }
847 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
848 eval enable_$ac_feature=no ;;
849
850 -docdir | --docdir | --docdi | --doc | --do)
851 ac_prev=docdir ;;
852 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
853 docdir=$ac_optarg ;;
854
855 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
856 ac_prev=dvidir ;;
857 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
858 dvidir=$ac_optarg ;;
859
860 -enable-* | --enable-*)
861 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
862 # Reject names that are not valid shell variable names.
863 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
864 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
865 { (exit 1); exit 1; }; }
866 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
867 eval enable_$ac_feature=\$ac_optarg ;;
868
869 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
870 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
871 | --exec | --exe | --ex)
872 ac_prev=exec_prefix ;;
873 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
874 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
875 | --exec=* | --exe=* | --ex=*)
876 exec_prefix=$ac_optarg ;;
877
878 -gas | --gas | --ga | --g)
879 # Obsolete; use --with-gas.
880 with_gas=yes ;;
881
882 -help | --help | --hel | --he | -h)
883 ac_init_help=long ;;
884 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
885 ac_init_help=recursive ;;
886 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
887 ac_init_help=short ;;
888
889 -host | --host | --hos | --ho)
890 ac_prev=host_alias ;;
891 -host=* | --host=* | --hos=* | --ho=*)
892 host_alias=$ac_optarg ;;
893
894 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
895 ac_prev=htmldir ;;
896 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
897 | --ht=*)
898 htmldir=$ac_optarg ;;
899
900 -includedir | --includedir | --includedi | --included | --include \
901 | --includ | --inclu | --incl | --inc)
902 ac_prev=includedir ;;
903 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
904 | --includ=* | --inclu=* | --incl=* | --inc=*)
905 includedir=$ac_optarg ;;
906
907 -infodir | --infodir | --infodi | --infod | --info | --inf)
908 ac_prev=infodir ;;
909 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
910 infodir=$ac_optarg ;;
911
912 -libdir | --libdir | --libdi | --libd)
913 ac_prev=libdir ;;
914 -libdir=* | --libdir=* | --libdi=* | --libd=*)
915 libdir=$ac_optarg ;;
916
917 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
918 | --libexe | --libex | --libe)
919 ac_prev=libexecdir ;;
920 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
921 | --libexe=* | --libex=* | --libe=*)
922 libexecdir=$ac_optarg ;;
923
924 -localedir | --localedir | --localedi | --localed | --locale)
925 ac_prev=localedir ;;
926 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
927 localedir=$ac_optarg ;;
928
929 -localstatedir | --localstatedir | --localstatedi | --localstated \
930 | --localstate | --localstat | --localsta | --localst | --locals)
931 ac_prev=localstatedir ;;
932 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
933 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
934 localstatedir=$ac_optarg ;;
935
936 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
937 ac_prev=mandir ;;
938 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
939 mandir=$ac_optarg ;;
940
941 -nfp | --nfp | --nf)
942 # Obsolete; use --without-fp.
943 with_fp=no ;;
944
945 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
946 | --no-cr | --no-c | -n)
947 no_create=yes ;;
948
949 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
950 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
951 no_recursion=yes ;;
952
953 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
954 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
955 | --oldin | --oldi | --old | --ol | --o)
956 ac_prev=oldincludedir ;;
957 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
958 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
959 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
960 oldincludedir=$ac_optarg ;;
961
962 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
963 ac_prev=prefix ;;
964 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
965 prefix=$ac_optarg ;;
966
967 -program-prefix | --program-prefix | --program-prefi | --program-pref \
968 | --program-pre | --program-pr | --program-p)
969 ac_prev=program_prefix ;;
970 -program-prefix=* | --program-prefix=* | --program-prefi=* \
971 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
972 program_prefix=$ac_optarg ;;
973
974 -program-suffix | --program-suffix | --program-suffi | --program-suff \
975 | --program-suf | --program-su | --program-s)
976 ac_prev=program_suffix ;;
977 -program-suffix=* | --program-suffix=* | --program-suffi=* \
978 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
979 program_suffix=$ac_optarg ;;
980
981 -program-transform-name | --program-transform-name \
982 | --program-transform-nam | --program-transform-na \
983 | --program-transform-n | --program-transform- \
984 | --program-transform | --program-transfor \
985 | --program-transfo | --program-transf \
986 | --program-trans | --program-tran \
987 | --progr-tra | --program-tr | --program-t)
988 ac_prev=program_transform_name ;;
989 -program-transform-name=* | --program-transform-name=* \
990 | --program-transform-nam=* | --program-transform-na=* \
991 | --program-transform-n=* | --program-transform-=* \
992 | --program-transform=* | --program-transfor=* \
993 | --program-transfo=* | --program-transf=* \
994 | --program-trans=* | --program-tran=* \
995 | --progr-tra=* | --program-tr=* | --program-t=*)
996 program_transform_name=$ac_optarg ;;
997
998 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
999 ac_prev=pdfdir ;;
1000 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1001 pdfdir=$ac_optarg ;;
1002
1003 -psdir | --psdir | --psdi | --psd | --ps)
1004 ac_prev=psdir ;;
1005 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1006 psdir=$ac_optarg ;;
1007
1008 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1009 | -silent | --silent | --silen | --sile | --sil)
1010 silent=yes ;;
1011
1012 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1013 ac_prev=sbindir ;;
1014 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1015 | --sbi=* | --sb=*)
1016 sbindir=$ac_optarg ;;
1017
1018 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1019 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1020 | --sharedst | --shareds | --shared | --share | --shar \
1021 | --sha | --sh)
1022 ac_prev=sharedstatedir ;;
1023 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1024 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1025 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1026 | --sha=* | --sh=*)
1027 sharedstatedir=$ac_optarg ;;
1028
1029 -site | --site | --sit)
1030 ac_prev=site ;;
1031 -site=* | --site=* | --sit=*)
1032 site=$ac_optarg ;;
1033
1034 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1035 ac_prev=srcdir ;;
1036 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1037 srcdir=$ac_optarg ;;
1038
1039 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1040 | --syscon | --sysco | --sysc | --sys | --sy)
1041 ac_prev=sysconfdir ;;
1042 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1043 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1044 sysconfdir=$ac_optarg ;;
1045
1046 -target | --target | --targe | --targ | --tar | --ta | --t)
1047 ac_prev=target_alias ;;
1048 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1049 target_alias=$ac_optarg ;;
1050
1051 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1052 verbose=yes ;;
1053
1054 -version | --version | --versio | --versi | --vers | -V)
1055 ac_init_version=: ;;
1056
1057 -with-* | --with-*)
1058 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1061 { echo "$as_me: error: invalid package name: $ac_package" >&2
1062 { (exit 1); exit 1; }; }
1063 ac_package=`echo $ac_package| sed 's/-/_/g'`
1064 eval with_$ac_package=\$ac_optarg ;;
1065
1066 -without-* | --without-*)
1067 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1070 { echo "$as_me: error: invalid package name: $ac_package" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_package=`echo $ac_package | sed 's/-/_/g'`
1073 eval with_$ac_package=no ;;
1074
1075 --x)
1076 # Obsolete; use --with-x.
1077 with_x=yes ;;
1078
1079 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1080 | --x-incl | --x-inc | --x-in | --x-i)
1081 ac_prev=x_includes ;;
1082 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1083 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1084 x_includes=$ac_optarg ;;
1085
1086 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1087 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1088 ac_prev=x_libraries ;;
1089 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1090 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1091 x_libraries=$ac_optarg ;;
1092
1093 -*) { echo "$as_me: error: unrecognized option: $ac_option
1094 Try \`$0 --help' for more information." >&2
1095 { (exit 1); exit 1; }; }
1096 ;;
1097
1098 *=*)
1099 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1102 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1103 { (exit 1); exit 1; }; }
1104 eval $ac_envvar=\$ac_optarg
1105 export $ac_envvar ;;
1106
1107 *)
1108 # FIXME: should be removed in autoconf 3.0.
1109 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1110 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1111 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1112 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1113 ;;
1114
1115 esac
1116 done
1117
1118 if test -n "$ac_prev"; then
1119 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1120 { echo "$as_me: error: missing argument to $ac_option" >&2
1121 { (exit 1); exit 1; }; }
1122 fi
1123
1124 # Be sure to have absolute directory names.
1125 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1126 datadir sysconfdir sharedstatedir localstatedir includedir \
1127 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1128 libdir localedir mandir
1129 do
1130 eval ac_val=\$$ac_var
1131 case $ac_val in
1132 [\\/$]* | ?:[\\/]* ) continue;;
1133 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1134 esac
1135 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1136 { (exit 1); exit 1; }; }
1137 done
1138
1139 # There might be people who depend on the old broken behavior: `$host'
1140 # used to hold the argument of --host etc.
1141 # FIXME: To remove some day.
1142 build=$build_alias
1143 host=$host_alias
1144 target=$target_alias
1145
1146 # FIXME: To remove some day.
1147 if test "x$host_alias" != x; then
1148 if test "x$build_alias" = x; then
1149 cross_compiling=maybe
1150 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1151 If a cross compiler is detected then cross compile mode will be used." >&2
1152 elif test "x$build_alias" != "x$host_alias"; then
1153 cross_compiling=yes
1154 fi
1155 fi
1156
1157 ac_tool_prefix=
1158 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1159
1160 test "$silent" = yes && exec 6>/dev/null
1161
1162
1163 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1164 ac_ls_di=`ls -di .` &&
1165 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1166 { echo "$as_me: error: Working directory cannot be determined" >&2
1167 { (exit 1); exit 1; }; }
1168 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1169 { echo "$as_me: error: pwd does not report name of working directory" >&2
1170 { (exit 1); exit 1; }; }
1171
1172
1173 # Find the source files, if location was not specified.
1174 if test -z "$srcdir"; then
1175 ac_srcdir_defaulted=yes
1176 # Try the directory containing this script, then the parent directory.
1177 ac_confdir=`$as_dirname -- "$0" ||
1178 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1179 X"$0" : 'X\(//\)[^/]' \| \
1180 X"$0" : 'X\(//\)$' \| \
1181 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1182 echo X"$0" |
1183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1184 s//\1/
1185 q
1186 }
1187 /^X\(\/\/\)[^/].*/{
1188 s//\1/
1189 q
1190 }
1191 /^X\(\/\/\)$/{
1192 s//\1/
1193 q
1194 }
1195 /^X\(\/\).*/{
1196 s//\1/
1197 q
1198 }
1199 s/.*/./; q'`
1200 srcdir=$ac_confdir
1201 if test ! -r "$srcdir/$ac_unique_file"; then
1202 srcdir=..
1203 fi
1204 else
1205 ac_srcdir_defaulted=no
1206 fi
1207 if test ! -r "$srcdir/$ac_unique_file"; then
1208 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1209 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1210 { (exit 1); exit 1; }; }
1211 fi
1212 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1213 ac_abs_confdir=`(
1214 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1215 { (exit 1); exit 1; }; }
1216 pwd)`
1217 # When building in place, set srcdir=.
1218 if test "$ac_abs_confdir" = "$ac_pwd"; then
1219 srcdir=.
1220 fi
1221 # Remove unnecessary trailing slashes from srcdir.
1222 # Double slashes in file names in object file debugging info
1223 # mess up M-x gdb in Emacs.
1224 case $srcdir in
1225 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1226 esac
1227 for ac_var in $ac_precious_vars; do
1228 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1229 eval ac_env_${ac_var}_value=\$${ac_var}
1230 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1231 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1232 done
1233
1234 #
1235 # Report the --help message.
1236 #
1237 if test "$ac_init_help" = "long"; then
1238 # Omit some internal or obsolete options to make the list less imposing.
1239 # This message is too long to be a string in the A/UX 3.1 sh.
1240 cat <<_ACEOF
1241 \`configure' configures this package to adapt to many kinds of systems.
1242
1243 Usage: $0 [OPTION]... [VAR=VALUE]...
1244
1245 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1246 VAR=VALUE. See below for descriptions of some of the useful variables.
1247
1248 Defaults for the options are specified in brackets.
1249
1250 Configuration:
1251 -h, --help display this help and exit
1252 --help=short display options specific to this package
1253 --help=recursive display the short help of all the included packages
1254 -V, --version display version information and exit
1255 -q, --quiet, --silent do not print \`checking...' messages
1256 --cache-file=FILE cache test results in FILE [disabled]
1257 -C, --config-cache alias for \`--cache-file=config.cache'
1258 -n, --no-create do not create output files
1259 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1260
1261 Installation directories:
1262 --prefix=PREFIX install architecture-independent files in PREFIX
1263 [$ac_default_prefix]
1264 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1265 [PREFIX]
1266
1267 By default, \`make install' will install all the files in
1268 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1269 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1270 for instance \`--prefix=\$HOME'.
1271
1272 For better control, use the options below.
1273
1274 Fine tuning of the installation directories:
1275 --bindir=DIR user executables [EPREFIX/bin]
1276 --sbindir=DIR system admin executables [EPREFIX/sbin]
1277 --libexecdir=DIR program executables [EPREFIX/libexec]
1278 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1279 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1280 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1281 --libdir=DIR object code libraries [EPREFIX/lib]
1282 --includedir=DIR C header files [PREFIX/include]
1283 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1284 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1285 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1286 --infodir=DIR info documentation [DATAROOTDIR/info]
1287 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1288 --mandir=DIR man documentation [DATAROOTDIR/man]
1289 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1290 --htmldir=DIR html documentation [DOCDIR]
1291 --dvidir=DIR dvi documentation [DOCDIR]
1292 --pdfdir=DIR pdf documentation [DOCDIR]
1293 --psdir=DIR ps documentation [DOCDIR]
1294 _ACEOF
1295
1296 cat <<\_ACEOF
1297
1298 X features:
1299 --x-includes=DIR X include files are in DIR
1300 --x-libraries=DIR X library files are in DIR
1301
1302 System types:
1303 --build=BUILD configure for building on BUILD [guessed]
1304 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1305 _ACEOF
1306 fi
1307
1308 if test -n "$ac_init_help"; then
1309
1310 cat <<\_ACEOF
1311
1312 Optional Features:
1313 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1314 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1315 --enable-optimization optimize the C code while building ascend
1316 --enable-dynamic-packages
1317 Enable dynamic linking of ASCEND external packages
1318 (default is YES for Linux, Cygwin and MinGW; NO for
1319 any other platform)
1320
1321 --enable-relation-debugging
1322 Enable debug output for relation compilation
1323 (default is NO)
1324
1325 --enable-compiler-timing
1326 Enable timing of the compiler (default is NO)
1327
1328
1329 Optional Packages:
1330 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1331 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1332 --without-yacc do not generate parser from yacc file
1333 --with-x use the X Window System
1334 --without-tcl Disable Tcl
1335 --with-tclconfig=path Set directory location of tclConfig.sh
1336 --with-tcl=path Set location of Tcl package
1337 --with-tclincl=path Set location of Tcl include directory
1338 --with-tcllib=path Set location of Tcl library directory
1339 --without-tk Disable Tk
1340 --with-tkconfig=path Set directory location of tkConfig.sh
1341 --with-tk=path Set location of Tk package
1342 --with-tkincl=path Set location of Tk include directory
1343 --with-tklib=path Set location of Tk library directory
1344 Fortran compiler and libraries:
1345 --with-fortran=F77,F77LIBS
1346 The location of your Fortran compiler and its
1347 library files. For example, under SunOS:
1348 --with-fortran='f77,-L/usr/lang/lib -lF77 -lM77'
1349 To specify only the compiler or libraries, leave off
1350 whatever is not needed:
1351 --with-fortran=',-L/usr/lang/lib -lF77 -lM77'
1352 Use '--without-fortran' to not link against
1353 any Fortran libraries
1354 --with-blas=BLASLIB The full path to the blas library.
1355 Use '--with-blas=build' to build the blas library
1356 from the sources that come with the distribution.
1357 --with-linpack=LPAKLIB The full path to the linpack library.
1358 Use '--with-linpack=build' to build the library
1359 from the sources that come with the distribution.
1360 --with-lsod=LSODLIB The full path to the lsod library.
1361 Use '--with-lsod=build' to build the lsod library
1362 from the sources that come with the distribution.
1363 Generation of Makefiles:
1364 --without-tkdir do not generate Makefiles in the TK subdir
1365 --without-models do not generate Makefiles in the models subdir
1366 --with-quiet Much less whining if reinstalling the tk,models subdirs
1367
1368 Some influential environment variables:
1369 CC C compiler command
1370 CFLAGS C compiler flags
1371 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1372 nonstandard directory <lib dir>
1373 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1374 you have headers in a nonstandard directory <include dir>
1375 CPP C preprocessor
1376 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1377 the first program found out of: `bison -y', `byacc', `yacc'.
1378 YFLAGS The list of arguments that will be passed by default to $YACC.
1379 This script will default YFLAGS to the empty string to avoid a
1380 default value of `-d' given by some make applications.
1381 XMKMF Path to xmkmf, Makefile generator for X Window System
1382
1383 Use these variables to override the choices made by `configure' or to help
1384 it to find libraries and programs with nonstandard names/locations.
1385
1386 _ACEOF
1387 ac_status=$?
1388 fi
1389
1390 if test "$ac_init_help" = "recursive"; then
1391 # If there are subdirs, report their specific --help.
1392 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1393 test -d "$ac_dir" || continue
1394 ac_builddir=.
1395
1396 case "$ac_dir" in
1397 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398 *)
1399 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1400 # A ".." for each directory in $ac_dir_suffix.
1401 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1402 case $ac_top_builddir_sub in
1403 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1404 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1405 esac ;;
1406 esac
1407 ac_abs_top_builddir=$ac_pwd
1408 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1409 # for backward compatibility:
1410 ac_top_builddir=$ac_top_build_prefix
1411
1412 case $srcdir in
1413 .) # We are building in place.
1414 ac_srcdir=.
1415 ac_top_srcdir=$ac_top_builddir_sub
1416 ac_abs_top_srcdir=$ac_pwd ;;
1417 [\\/]* | ?:[\\/]* ) # Absolute name.
1418 ac_srcdir=$srcdir$ac_dir_suffix;
1419 ac_top_srcdir=$srcdir
1420 ac_abs_top_srcdir=$srcdir ;;
1421 *) # Relative name.
1422 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1423 ac_top_srcdir=$ac_top_build_prefix$srcdir
1424 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1425 esac
1426 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1427
1428 cd "$ac_dir" || { ac_status=$?; continue; }
1429 # Check for guested configure.
1430 if test -f "$ac_srcdir/configure.gnu"; then
1431 echo &&
1432 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1433 elif test -f "$ac_srcdir/configure"; then
1434 echo &&
1435 $SHELL "$ac_srcdir/configure" --help=recursive
1436 else
1437 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1438 fi || ac_status=$?
1439 cd "$ac_pwd" || { ac_status=$?; break; }
1440 done
1441 fi
1442
1443 test -n "$ac_init_help" && exit $ac_status
1444 if $ac_init_version; then
1445 cat <<\_ACEOF
1446 configure
1447 generated by GNU Autoconf 2.60
1448
1449 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1450 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1451 This configure script is free software; the Free Software Foundation
1452 gives unlimited permission to copy, distribute and modify it.
1453 _ACEOF
1454 exit
1455 fi
1456 cat >config.log <<_ACEOF
1457 This file contains any messages produced by compilers while
1458 running configure, to aid debugging if configure makes a mistake.
1459
1460 It was created by $as_me, which was
1461 generated by GNU Autoconf 2.60. Invocation command line was
1462
1463 $ $0 $@
1464
1465 _ACEOF
1466 exec 5>>config.log
1467 {
1468 cat <<_ASUNAME
1469 ## --------- ##
1470 ## Platform. ##
1471 ## --------- ##
1472
1473 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1474 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1475 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1476 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1477 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1478
1479 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1480 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1481
1482 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1483 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1484 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1485 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1486 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1487 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1488 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1489
1490 _ASUNAME
1491
1492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1493 for as_dir in $PATH
1494 do
1495 IFS=$as_save_IFS
1496 test -z "$as_dir" && as_dir=.
1497 echo "PATH: $as_dir"
1498 done
1499 IFS=$as_save_IFS
1500
1501 } >&5
1502
1503 cat >&5 <<_ACEOF
1504
1505
1506 ## ----------- ##
1507 ## Core tests. ##
1508 ## ----------- ##
1509
1510 _ACEOF
1511
1512
1513 # Keep a trace of the command line.
1514 # Strip out --no-create and --no-recursion so they do not pile up.
1515 # Strip out --silent because we don't want to record it for future runs.
1516 # Also quote any args containing shell meta-characters.
1517 # Make two passes to allow for proper duplicate-argument suppression.
1518 ac_configure_args=
1519 ac_configure_args0=
1520 ac_configure_args1=
1521 ac_must_keep_next=false
1522 for ac_pass in 1 2
1523 do
1524 for ac_arg
1525 do
1526 case $ac_arg in
1527 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1528 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1529 | -silent | --silent | --silen | --sile | --sil)
1530 continue ;;
1531 *\'*)
1532 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1533 esac
1534 case $ac_pass in
1535 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1536 2)
1537 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1538 if test $ac_must_keep_next = true; then
1539 ac_must_keep_next=false # Got value, back to normal.
1540 else
1541 case $ac_arg in
1542 *=* | --config-cache | -C | -disable-* | --disable-* \
1543 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1544 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1545 | -with-* | --with-* | -without-* | --without-* | --x)
1546 case "$ac_configure_args0 " in
1547 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1548 esac
1549 ;;
1550 -* ) ac_must_keep_next=true ;;
1551 esac
1552 fi
1553 ac_configure_args="$ac_configure_args '$ac_arg'"
1554 ;;
1555 esac
1556 done
1557 done
1558 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1559 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1560
1561 # When interrupted or exit'd, cleanup temporary files, and complete
1562 # config.log. We remove comments because anyway the quotes in there
1563 # would cause problems or look ugly.
1564 # WARNING: Use '\'' to represent an apostrophe within the trap.
1565 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1566 trap 'exit_status=$?
1567 # Save into config.log some information that might help in debugging.
1568 {
1569 echo
1570
1571 cat <<\_ASBOX
1572 ## ---------------- ##
1573 ## Cache variables. ##
1574 ## ---------------- ##
1575 _ASBOX
1576 echo
1577 # The following way of writing the cache mishandles newlines in values,
1578 (
1579 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1580 eval ac_val=\$$ac_var
1581 case $ac_val in #(
1582 *${as_nl}*)
1583 case $ac_var in #(
1584 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1585 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1586 esac
1587 case $ac_var in #(
1588 _ | IFS | as_nl) ;; #(
1589 *) $as_unset $ac_var ;;
1590 esac ;;
1591 esac
1592 done
1593 (set) 2>&1 |
1594 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1595 *${as_nl}ac_space=\ *)
1596 sed -n \
1597 "s/'\''/'\''\\\\'\'''\''/g;
1598 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1599 ;; #(
1600 *)
1601 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1602 ;;
1603 esac |
1604 sort
1605 )
1606 echo
1607
1608 cat <<\_ASBOX
1609 ## ----------------- ##
1610 ## Output variables. ##
1611 ## ----------------- ##
1612 _ASBOX
1613 echo
1614 for ac_var in $ac_subst_vars
1615 do
1616 eval ac_val=\$$ac_var
1617 case $ac_val in
1618 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1619 esac
1620 echo "$ac_var='\''$ac_val'\''"
1621 done | sort
1622 echo
1623
1624 if test -n "$ac_subst_files"; then
1625 cat <<\_ASBOX
1626 ## ------------------- ##
1627 ## File substitutions. ##
1628 ## ------------------- ##
1629 _ASBOX
1630 echo
1631 for ac_var in $ac_subst_files
1632 do
1633 eval ac_val=\$$ac_var
1634 case $ac_val in
1635 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1636 esac
1637 echo "$ac_var='\''$ac_val'\''"
1638 done | sort
1639 echo
1640 fi
1641
1642 if test -s confdefs.h; then
1643 cat <<\_ASBOX
1644 ## ----------- ##
1645 ## confdefs.h. ##
1646 ## ----------- ##
1647 _ASBOX
1648 echo
1649 cat confdefs.h
1650 echo
1651 fi
1652 test "$ac_signal" != 0 &&
1653 echo "$as_me: caught signal $ac_signal"
1654 echo "$as_me: exit $exit_status"
1655 } >&5
1656 rm -f core *.core core.conftest.* &&
1657 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1658 exit $exit_status
1659 ' 0
1660 for ac_signal in 1 2 13 15; do
1661 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1662 done
1663 ac_signal=0
1664
1665 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1666 rm -f -r conftest* confdefs.h
1667
1668 # Predefined preprocessor variables.
1669
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_NAME "$PACKAGE_NAME"
1672 _ACEOF
1673
1674
1675 cat >>confdefs.h <<_ACEOF
1676 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1677 _ACEOF
1678
1679
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1682 _ACEOF
1683
1684
1685 cat >>confdefs.h <<_ACEOF
1686 #define PACKAGE_STRING "$PACKAGE_STRING"
1687 _ACEOF
1688
1689
1690 cat >>confdefs.h <<_ACEOF
1691 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1692 _ACEOF
1693
1694
1695 # Let the site file select an alternate cache file if it wants to.
1696 # Prefer explicitly selected file to automatically selected ones.
1697 if test -n "$CONFIG_SITE"; then
1698 set x "$CONFIG_SITE"
1699 elif test "x$prefix" != xNONE; then
1700 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1701 else
1702 set x "$ac_default_prefix/share/config.site" \
1703 "$ac_default_prefix/etc/config.site"
1704 fi
1705 shift
1706 for ac_site_file
1707 do
1708 if test -r "$ac_site_file"; then
1709 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1710 echo "$as_me: loading site script $ac_site_file" >&6;}
1711 sed 's/^/| /' "$ac_site_file" >&5
1712 . "$ac_site_file"
1713 fi
1714 done
1715
1716
1717 # Check that the precious variables saved in the cache have kept the same
1718 # value.
1719 ac_cache_corrupted=false
1720 for ac_var in $ac_precious_vars; do
1721 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1722 eval ac_new_set=\$ac_env_${ac_var}_set
1723 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1724 eval ac_new_val=\$ac_env_${ac_var}_value
1725 case $ac_old_set,$ac_new_set in
1726 set,)
1727 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1728 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1729 ac_cache_corrupted=: ;;
1730 ,set)
1731 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1732 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1733 ac_cache_corrupted=: ;;
1734 ,);;
1735 *)
1736 if test "x$ac_old_val" != "x$ac_new_val"; then
1737 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1738 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1739 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1740 echo "$as_me: former value: $ac_old_val" >&2;}
1741 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1742 echo "$as_me: current value: $ac_new_val" >&2;}
1743 ac_cache_corrupted=:
1744 fi;;
1745 esac
1746 # Pass precious variables to config.status.
1747 if test "$ac_new_set" = set; then
1748 case $ac_new_val in
1749 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1750 *) ac_arg=$ac_var=$ac_new_val ;;
1751 esac
1752 case " $ac_configure_args " in
1753 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1754 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1755 esac
1756 fi
1757 done
1758 if $ac_cache_corrupted; then
1759 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1760 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1761 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1762 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1763 { (exit 1); exit 1; }; }
1764 fi
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782 ac_ext=c
1783 ac_cpp='$CPP $CPPFLAGS'
1784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1787
1788
1789
1790
1791 #--------------------------------------------------------------------
1792 # CVS Most Recent Revision Data
1793 # Put this data after AC_INIT since we want this information
1794 # to also appear in configure and autoconf, when creating
1795 # configure, strips all comments that appear in configure.in
1796 # before AC_INIT
1797 # $Revision: 1.38 $
1798 # $Date: 2003/11/23 19:36:39 $
1799 # $Author: ballan $
1800 # $Source: /afs/cs.cmu.edu/project/ascend/Repository/configure.in,v $
1801 #--------------------------------------------------------------------
1802
1803
1804 #--------------------------------------------------------------------
1805 # Where configure should look for files it needs.
1806 #--------------------------------------------------------------------
1807 ac_aux_dir=
1808 for ac_dir in config "$srcdir"/config; do
1809 if test -f "$ac_dir/install-sh"; then
1810 ac_aux_dir=$ac_dir
1811 ac_install_sh="$ac_aux_dir/install-sh -c"
1812 break
1813 elif test -f "$ac_dir/install.sh"; then
1814 ac_aux_dir=$ac_dir
1815 ac_install_sh="$ac_aux_dir/install.sh -c"
1816 break
1817 elif test -f "$ac_dir/shtool"; then
1818 ac_aux_dir=$ac_dir
1819 ac_install_sh="$ac_aux_dir/shtool install -c"
1820 break
1821 fi
1822 done
1823 if test -z "$ac_aux_dir"; then
1824 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1825 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1826 { (exit 1); exit 1; }; }
1827 fi
1828
1829 # These three variables are undocumented and unsupported,
1830 # and are intended to be withdrawn in a future Autoconf release.
1831 # They can cause serious problems if a builder's source tree is in a directory
1832 # whose full name contains unusual characters.
1833 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1834 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1835 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1836
1837
1838
1839 #--------------------------------------------------------------------
1840 # Set the output variables prefix and exec_prefix that
1841 # determine where things will be installed.
1842 #--------------------------------------------------------------------
1843 if test "${prefix}" = "NONE"; then
1844 prefix=/usr/local
1845 fi
1846 if test "${exec_prefix}" = "NONE"; then
1847 exec_prefix=$prefix
1848 fi
1849
1850
1851 #--------------------------------------------------------------------
1852 # For the Fortran support libraries and the TCL/TK libraries
1853 # and header files, we unfortunately need the full path to
1854 # these files. The problem with having the full path is that
1855 # if the user moves the source tree, things will break unless
1856 # the user re-runs configure.
1857 #--------------------------------------------------------------------
1858
1859 #--------------------------------------------------------------------
1860 ##AWW
1861 ##AWW We put the .o files when compiling into a tree structure
1862 ##AWW relative to the directory in which we currently reside,
1863 ##AWW while the .c and .h files are in a similar tree structure
1864 ##AWW relative to the configure instruction we invoke. This
1865 ##AWW allows one to have separate .o files in their own tree when
1866 ##AWW compiling for different operating systems.
1867 ##AWW
1868 ##AWW Example 1 (same directories)
1869 ##AWW Current directory one is in: /home/me/trunk/base/unixAC213
1870 ##AWW Directory containing configure: /home/me/trunk/base/unixAC213
1871 ##AWW Command to invoke configure: ./configure
1872 ##AWW $ascpwd will be: /home/me/trunk/base/unixAC213
1873 ##AWW $srcdir will be: .
1874 ##AWW
1875 ##AWW Example 2 (different directories, abs path for command)
1876 ##AWW Current directory one is in: /home/me/trunk/base/newTree
1877 ##AWW Directory containing configure: /home/me/trunk/base/unixAC213
1878 ##AWW Command to invoke configure: /home/me/trunk/base/unixAC213/configure
1879 ##AWW $ascpwd will be: /home/me/trunk/base/newTree
1880 ##AWW $srcdir will be: /home/me/trunk/base/unixAC213
1881 ##AWW
1882 ##AWW Example 3 (different directories, rel path for command)
1883 ##AWW Same as Example 2
1884 ##AWW Command to invoke configure: ../unixAC213/configure
1885 ##AWW $ascpwd will be: /home/me/trunk/base/newTree (same as in Example 2)
1886 ##AWW $srcdir will be: ../unixAC213
1887 ##AWW
1888 ##AWW Key elements of the source tree are:
1889 ##AWW code/trunk/trunk/base/unixAC213/configure
1890 ##AWW code/trunk/trunk/base/generic
1891 ##AWW code/trunk/tcltk
1892 ##AWW where $srcdir is pointing to /home/me/trunk/base/unixAC213, the folder
1893 ##AWW containing "configure"
1894 ##AWW
1895 ##AWW Configure is located at:
1896 ##AWW $srcdir/configure
1897 ##AWW while the .c/.h files one wants are in:
1898 ##AWW $srcdir/../generic/compiler
1899 ##AWW $srcdir/../generic/general
1900 ##AWW $srcdir/../generic/packages
1901 ##AWW $srcdir/../generic/solver
1902 ##AWW $srcdir/../generic/utilities
1903 ##AWW $srcdir/../../tcltk/generic/interface
1904 ##AWW
1905 ##AWW Each of these directories contain Makefiles and possible
1906 ##AWW need to find .h files in the other directories. For example
1907 ##AWW the include statements are always of the form
1908 ##AWW #include compiler/slv3.h or
1909 ##AWW #include interface/SlvProc.h
1910 ##AWW
1911 ##AWW A safe include path should assume one is a directory with any
1912 ##AWW of these .h and .c files and one needs to find a .h file in
1913 ##AWW any other of them. The following paths should do it.
1914 ##AWW
1915 ##AWW If in compiler, general, packages, solver, utilities
1916 ##AWW .. for general, packages, etc
1917 ##AWW ../../../tcltk/generic for interface
1918 ##AWW If in interface
1919 ##AWW .. for interface
1920 ##AWW ../../../base/generic for compiler, general, ..
1921 ##AWW
1922 #--------------------------------------------------------------------
1923 # The asc_include variable is (directory) path to the ascend4
1924 # SOURCE directory relative to the immediate subdirectories of
1925 # the ascend4 OBJECT directory. --rewrite - not clear.
1926 #AWW To compile a new ASCEND executable, one should move into the
1927 #AWW directory in which one wants the ASCEND object/executable
1928 #AWW to reside (call this objTree) and from there run
1929 #AWW ../base/unixAC213/configure.
1930 #AWW In the following code asc_include is set to the path from
1931 #JP I think that the current recommendation is to install from
1932 #JP run ./configure (ie from this directory)
1933
1934 ascpwd=`pwd`
1935 fullpathsrcdir=`cd $srcdir ; pwd`
1936
1937 case "$srcdir" in
1938 .)
1939 asc_include="../$srcdir"
1940 ;;
1941 /*)
1942 asc_include="$srcdir/../generic"
1943 ;;
1944 *)
1945 asc_include="$srcdir/../generic"
1946 ;;
1947 esac
1948
1949
1950 #--------------------------------------------------------------------
1951 # Do basic checks to determine
1952 # * if we have `ranlib'
1953 # * if we can create symbolic links
1954 # * if `make' sets the MAKE macro
1955 # * a bsd-compatible `install' program
1956 # If we use the install-sh script that comes with configure,
1957 # prefix it with the current directory so it'll work in
1958 # subdirectories. Unfortunately, it won't work if the user
1959 # moves the source tree.
1960 #--------------------------------------------------------------------
1961 if test -n "$ac_tool_prefix"; then
1962 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1963 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1966 if test "${ac_cv_prog_RANLIB+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1968 else
1969 if test -n "$RANLIB"; then
1970 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1971 else
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973 for as_dir in $PATH
1974 do
1975 IFS=$as_save_IFS
1976 test -z "$as_dir" && as_dir=.
1977 for ac_exec_ext in '' $ac_executable_extensions; do
1978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1979 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1981 break 2
1982 fi
1983 done
1984 done
1985 IFS=$as_save_IFS
1986
1987 fi
1988 fi
1989 RANLIB=$ac_cv_prog_RANLIB
1990 if test -n "$RANLIB"; then
1991 { echo "$as_me:$LINENO: result: $RANLIB" >&5
1992 echo "${ECHO_T}$RANLIB" >&6; }
1993 else
1994 { echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6; }
1996 fi
1997
1998
1999 fi
2000 if test -z "$ac_cv_prog_RANLIB"; then
2001 ac_ct_RANLIB=$RANLIB
2002 # Extract the first word of "ranlib", so it can be a program name with args.
2003 set dummy ranlib; ac_word=$2
2004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2006 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009 if test -n "$ac_ct_RANLIB"; then
2010 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2011 else
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 for as_dir in $PATH
2014 do
2015 IFS=$as_save_IFS
2016 test -z "$as_dir" && as_dir=.
2017 for ac_exec_ext in '' $ac_executable_extensions; do
2018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2019 ac_cv_prog_ac_ct_RANLIB="ranlib"
2020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021 break 2
2022 fi
2023 done
2024 done
2025 IFS=$as_save_IFS
2026
2027 fi
2028 fi
2029 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2030 if test -n "$ac_ct_RANLIB"; then
2031 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2032 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2033 else
2034 { echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6; }
2036 fi
2037
2038 if test "x$ac_ct_RANLIB" = x; then
2039 RANLIB=":"
2040 else
2041 case $cross_compiling:$ac_tool_warned in
2042 yes:)
2043 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2044 whose name does not start with the host triplet. If you think this
2045 configuration is useful to you, please write to autoconf@gnu.org." >&5
2046 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2047 whose name does not start with the host triplet. If you think this
2048 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2049 ac_tool_warned=yes ;;
2050 esac
2051 RANLIB=$ac_ct_RANLIB
2052 fi
2053 else
2054 RANLIB="$ac_cv_prog_RANLIB"
2055 fi
2056
2057 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
2058 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
2059 LN_S=$as_ln_s
2060 if test "$LN_S" = "ln -s"; then
2061 { echo "$as_me:$LINENO: result: yes" >&5
2062 echo "${ECHO_T}yes" >&6; }
2063 else
2064 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2065 echo "${ECHO_T}no, using $LN_S" >&6; }
2066 fi
2067
2068 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2069 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2070 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2071 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2073 else
2074 cat >conftest.make <<\_ACEOF
2075 SHELL = /bin/sh
2076 all:
2077 @echo '@@@%%%=$(MAKE)=@@@%%%'
2078 _ACEOF
2079 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2080 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2081 *@@@%%%=?*=@@@%%%*)
2082 eval ac_cv_prog_make_${ac_make}_set=yes;;
2083 *)
2084 eval ac_cv_prog_make_${ac_make}_set=no;;
2085 esac
2086 rm -f conftest.make
2087 fi
2088 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2089 { echo "$as_me:$LINENO: result: yes" >&5
2090 echo "${ECHO_T}yes" >&6; }
2091 SET_MAKE=
2092 else
2093 { echo "$as_me:$LINENO: result: no" >&5
2094 echo "${ECHO_T}no" >&6; }
2095 SET_MAKE="MAKE=${MAKE-make}"
2096 fi
2097
2098 # Find a good install program. We prefer a C program (faster),
2099 # so one script is as good as another. But avoid the broken or
2100 # incompatible versions:
2101 # SysV /etc/install, /usr/sbin/install
2102 # SunOS /usr/etc/install
2103 # IRIX /sbin/install
2104 # AIX /bin/install
2105 # AmigaOS /C/install, which installs bootblocks on floppy discs
2106 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2107 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2108 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2109 # OS/2's system install, which has a completely different semantic
2110 # ./install, which can be erroneously created by make from ./install.sh.
2111 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2112 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2113 if test -z "$INSTALL"; then
2114 if test "${ac_cv_path_install+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 else
2117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2118 for as_dir in $PATH
2119 do
2120 IFS=$as_save_IFS
2121 test -z "$as_dir" && as_dir=.
2122 # Account for people who put trailing slashes in PATH elements.
2123 case $as_dir/ in
2124 ./ | .// | /cC/* | \
2125 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2126 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2127 /usr/ucb/* ) ;;
2128 *)
2129 # OSF1 and SCO ODT 3.0 have their own names for install.
2130 # Don't use installbsd from OSF since it installs stuff as root
2131 # by default.
2132 for ac_prog in ginstall scoinst install; do
2133 for ac_exec_ext in '' $ac_executable_extensions; do
2134 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2135 if test $ac_prog = install &&
2136 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2137 # AIX install. It has an incompatible calling convention.
2138 :
2139 elif test $ac_prog = install &&
2140 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2141 # program-specific install script used by HP pwplus--don't use.
2142 :
2143 else
2144 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2145 break 3
2146 fi
2147 fi
2148 done
2149 done
2150 ;;
2151 esac
2152 done
2153 IFS=$as_save_IFS
2154
2155
2156 fi
2157 if test "${ac_cv_path_install+set}" = set; then
2158 INSTALL=$ac_cv_path_install
2159 else
2160 # As a last resort, use the slow shell script. Don't cache a
2161 # value for INSTALL within a source directory, because that will
2162 # break other packages using the cache if that directory is
2163 # removed, or if the value is a relative name.
2164 INSTALL=$ac_install_sh
2165 fi
2166 fi
2167 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2168 echo "${ECHO_T}$INSTALL" >&6; }
2169
2170 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2171 # It thinks the first close brace ends the variable substitution.
2172 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2173
2174 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2175
2176 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2177
2178
2179 case "X$INSTALL" in
2180 X/*)
2181 ;;
2182 *)
2183 INSTALL="$ascpwd/$INSTALL"
2184 ;;
2185 esac
2186
2187
2188 #--------------------------------------------------------------------
2189 # Get the host type for various checks along the way
2190 #--------------------------------------------------------------------
2191 # Make sure we can run config.sub.
2192 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2193 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2194 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2195 { (exit 1); exit 1; }; }
2196
2197 { echo "$as_me:$LINENO: checking build system type" >&5
2198 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2199 if test "${ac_cv_build+set}" = set; then
2200 echo $ECHO_N "(cached) $ECHO_C" >&6
2201 else
2202 ac_build_alias=$build_alias
2203 test "x$ac_build_alias" = x &&
2204 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2205 test "x$ac_build_alias" = x &&
2206 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2207 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2208 { (exit 1); exit 1; }; }
2209 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2210 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2211 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2212 { (exit 1); exit 1; }; }
2213
2214 fi
2215 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2216 echo "${ECHO_T}$ac_cv_build" >&6; }
2217 case $ac_cv_build in
2218 *-*-*) ;;
2219 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2220 echo "$as_me: error: invalid value of canonical build" >&2;}
2221 { (exit 1); exit 1; }; };;
2222 esac
2223 build=$ac_cv_build
2224 ac_save_IFS=$IFS; IFS='-'
2225 set x $ac_cv_build
2226 shift
2227 build_cpu=$1
2228 build_vendor=$2
2229 shift; shift
2230 # Remember, the first character of IFS is used to create $*,
2231 # except with old shells:
2232 build_os=$*
2233 IFS=$ac_save_IFS
2234 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2235
2236
2237 { echo "$as_me:$LINENO: checking host system type" >&5
2238 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2239 if test "${ac_cv_host+set}" = set; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2241 else
2242 if test "x$host_alias" = x; then
2243 ac_cv_host=$ac_cv_build
2244 else
2245 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2246 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2247 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2248 { (exit 1); exit 1; }; }
2249 fi
2250
2251 fi
2252 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2253 echo "${ECHO_T}$ac_cv_host" >&6; }
2254 case $ac_cv_host in
2255 *-*-*) ;;
2256 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2257 echo "$as_me: error: invalid value of canonical host" >&2;}
2258 { (exit 1); exit 1; }; };;
2259 esac
2260 host=$ac_cv_host
2261 ac_save_IFS=$IFS; IFS='-'
2262 set x $ac_cv_host
2263 shift
2264 host_cpu=$1
2265 host_vendor=$2
2266 shift; shift
2267 # Remember, the first character of IFS is used to create $*,
2268 # except with old shells:
2269 host_os=$*
2270 IFS=$ac_save_IFS
2271 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2272
2273
2274
2275 #--------------------------------------------------------------------
2276 # Check for the C compiler: set CC and CFLAGS.
2277 # If the user does NOT specify `--enable-gcc' on the configure
2278 # command command line, set CC to either the envar CC or `cc'.
2279 # Call AC_PROG_CC which will use the value of CC (perhaps set
2280 # immediately above) or will check for `gcc' and then for `cc'
2281 # if `gcc' is not found.
2282 #
2283 # If we are using GCC, then assume it groks ANSI. Otherwise,
2284 # try to compile a small program using ANSI constructs with
2285 # CC. If this fails, try to locate each of the following:
2286 # c89 xlc acc
2287 # and if successful, see if it compiles an ANSI C program.
2288 # (Doing this in a loop would be ideal, but configure caches
2289 # the result of AC_CHECK_PROG and uses the cached value for
2290 # all but the first pass through the loop. This is also the
2291 # reason we have to use a different variable asc_cc1, asc_cc2
2292 # for each call to AC_CHECK_PROG.
2293 #
2294 # If we do not find an ANSI C compiler, print a warning and
2295 # use the first value of CC we tried.
2296 #--------------------------------------------------------------------
2297 #JP removed the lengthy CC tests, since ANSI C is pretty universal
2298 #JP these days, and GCC can pretty much be assumed if we're using
2299 #JP Autotools.
2300
2301 ac_ext=c
2302 ac_cpp='$CPP $CPPFLAGS'
2303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2306 if test -n "$ac_tool_prefix"; then
2307 for ac_prog in gcc
2308 do
2309 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2310 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2313 if test "${ac_cv_prog_CC+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 else
2316 if test -n "$CC"; then
2317 ac_cv_prog_CC="$CC" # Let the user override the test.
2318 else
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 for as_dir in $PATH
2321 do
2322 IFS=$as_save_IFS
2323 test -z "$as_dir" && as_dir=.
2324 for ac_exec_ext in '' $ac_executable_extensions; do
2325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2326 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2328 break 2
2329 fi
2330 done
2331 done
2332 IFS=$as_save_IFS
2333
2334 fi
2335 fi
2336 CC=$ac_cv_prog_CC
2337 if test -n "$CC"; then
2338 { echo "$as_me:$LINENO: result: $CC" >&5
2339 echo "${ECHO_T}$CC" >&6; }
2340 else
2341 { echo "$as_me:$LINENO: result: no" >&5
2342 echo "${ECHO_T}no" >&6; }
2343 fi
2344
2345
2346 test -n "$CC" && break
2347 done
2348 fi
2349 if test -z "$CC"; then
2350 ac_ct_CC=$CC
2351 for ac_prog in gcc
2352 do
2353 # Extract the first word of "$ac_prog", so it can be a program name with args.
2354 set dummy $ac_prog; ac_word=$2
2355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2357 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2359 else
2360 if test -n "$ac_ct_CC"; then
2361 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2362 else
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 for as_dir in $PATH
2365 do
2366 IFS=$as_save_IFS
2367 test -z "$as_dir" && as_dir=.
2368 for ac_exec_ext in '' $ac_executable_extensions; do
2369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2370 ac_cv_prog_ac_ct_CC="$ac_prog"
2371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372 break 2
2373 fi
2374 done
2375 done
2376 IFS=$as_save_IFS
2377
2378 fi
2379 fi
2380 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2381 if test -n "$ac_ct_CC"; then
2382 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2383 echo "${ECHO_T}$ac_ct_CC" >&6; }
2384 else
2385 { echo "$as_me:$LINENO: result: no" >&5
2386 echo "${ECHO_T}no" >&6; }
2387 fi
2388
2389
2390 test -n "$ac_ct_CC" && break
2391 done
2392
2393 if test "x$ac_ct_CC" = x; then
2394 CC=""
2395 else
2396 case $cross_compiling:$ac_tool_warned in
2397 yes:)
2398 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2399 whose name does not start with the host triplet. If you think this
2400 configuration is useful to you, please write to autoconf@gnu.org." >&5
2401 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2402 whose name does not start with the host triplet. If you think this
2403 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2404 ac_tool_warned=yes ;;
2405 esac
2406 CC=$ac_ct_CC
2407 fi
2408 fi
2409
2410
2411 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2412 See \`config.log' for more details." >&5
2413 echo "$as_me: error: no acceptable C compiler found in \$PATH
2414 See \`config.log' for more details." >&2;}
2415 { (exit 1); exit 1; }; }
2416
2417 # Provide some information about the compiler.
2418 echo "$as_me:$LINENO: checking for C compiler version" >&5
2419 ac_compiler=`set X $ac_compile; echo $2`
2420 { (ac_try="$ac_compiler --version >&5"
2421 case "(($ac_try" in
2422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423 *) ac_try_echo=$ac_try;;
2424 esac
2425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2426 (eval "$ac_compiler --version >&5") 2>&5
2427 ac_status=$?
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }
2430 { (ac_try="$ac_compiler -v >&5"
2431 case "(($ac_try" in
2432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433 *) ac_try_echo=$ac_try;;
2434 esac
2435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2436 (eval "$ac_compiler -v >&5") 2>&5
2437 ac_status=$?
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }
2440 { (ac_try="$ac_compiler -V >&5"
2441 case "(($ac_try" in
2442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2443 *) ac_try_echo=$ac_try;;
2444 esac
2445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2446 (eval "$ac_compiler -V >&5") 2>&5
2447 ac_status=$?
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }
2450
2451 cat >conftest.$ac_ext <<_ACEOF
2452 /* confdefs.h. */
2453 _ACEOF
2454 cat confdefs.h >>conftest.$ac_ext
2455 cat >>conftest.$ac_ext <<_ACEOF
2456 /* end confdefs.h. */
2457
2458 int
2459 main ()
2460 {
2461
2462 ;
2463 return 0;
2464 }
2465 _ACEOF
2466 ac_clean_files_save=$ac_clean_files
2467 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2468 # Try to create an executable without -o first, disregard a.out.
2469 # It will help us diagnose broken compilers, and finding out an intuition
2470 # of exeext.
2471 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2472 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2473 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2474 #
2475 # List of possible output files, starting from the most likely.
2476 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2477 # only as a last resort. b.out is created by i960 compilers.
2478 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2479 #
2480 # The IRIX 6 linker writes into existing files which may not be
2481 # executable, retaining their permissions. Remove them first so a
2482 # subsequent execution test works.
2483 ac_rmfiles=
2484 for ac_file in $ac_files
2485 do
2486 case $ac_file in
2487 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2488 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2489 esac
2490 done
2491 rm -f $ac_rmfiles
2492
2493 if { (ac_try="$ac_link_default"
2494 case "(($ac_try" in
2495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496 *) ac_try_echo=$ac_try;;
2497 esac
2498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2499 (eval "$ac_link_default") 2>&5
2500 ac_status=$?
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }; then
2503 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2504 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2505 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2506 # so that the user can short-circuit this test for compilers unknown to
2507 # Autoconf.
2508 for ac_file in $ac_files
2509 do
2510 test -f "$ac_file" || continue
2511 case $ac_file in
2512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2513 ;;
2514 [ab].out )
2515 # We found the default executable, but exeext='' is most
2516 # certainly right.
2517 break;;
2518 *.* )
2519 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2520 then :; else
2521 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2522 fi
2523 # We set ac_cv_exeext here because the later test for it is not
2524 # safe: cross compilers may not add the suffix if given an `-o'
2525 # argument, so we may need to know it at that point already.
2526 # Even if this section looks crufty: it has the advantage of
2527 # actually working.
2528 break;;
2529 * )
2530 break;;
2531 esac
2532 done
2533 test "$ac_cv_exeext" = no && ac_cv_exeext=
2534
2535 else
2536 echo "$as_me: failed program was:" >&5
2537 sed 's/^/| /' conftest.$ac_ext >&5
2538
2539 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2540 See \`config.log' for more details." >&5
2541 echo "$as_me: error: C compiler cannot create executables
2542 See \`config.log' for more details." >&2;}
2543 { (exit 77); exit 77; }; }
2544 fi
2545
2546 ac_exeext=$ac_cv_exeext
2547 { echo "$as_me:$LINENO: result: $ac_file" >&5
2548 echo "${ECHO_T}$ac_file" >&6; }
2549
2550 # Check that the compiler produces executables we can run. If not, either
2551 # the compiler is broken, or we cross compile.
2552 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2553 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2554 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2555 # If not cross compiling, check that we can run a simple program.
2556 if test "$cross_compiling" != yes; then
2557 if { ac_try='./$ac_file'
2558 { (case "(($ac_try" in
2559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2560 *) ac_try_echo=$ac_try;;
2561 esac
2562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2563 (eval "$ac_try") 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; }; then
2567 cross_compiling=no
2568 else
2569 if test "$cross_compiling" = maybe; then
2570 cross_compiling=yes
2571 else
2572 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2573 If you meant to cross compile, use \`--host'.
2574 See \`config.log' for more details." >&5
2575 echo "$as_me: error: cannot run C compiled programs.
2576 If you meant to cross compile, use \`--host'.
2577 See \`config.log' for more details." >&2;}
2578 { (exit 1); exit 1; }; }
2579 fi
2580 fi
2581 fi
2582 { echo "$as_me:$LINENO: result: yes" >&5
2583 echo "${ECHO_T}yes" >&6; }
2584
2585 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2586 ac_clean_files=$ac_clean_files_save
2587 # Check that the compiler produces executables we can run. If not, either
2588 # the compiler is broken, or we cross compile.
2589 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2590 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2591 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2592 echo "${ECHO_T}$cross_compiling" >&6; }
2593
2594 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2595 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2596 if { (ac_try="$ac_link"
2597 case "(($ac_try" in
2598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599 *) ac_try_echo=$ac_try;;
2600 esac
2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602 (eval "$ac_link") 2>&5
2603 ac_status=$?
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; then
2606 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2607 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2608 # work properly (i.e., refer to `conftest.exe'), while it won't with
2609 # `rm'.
2610 for ac_file in conftest.exe conftest conftest.*; do
2611 test -f "$ac_file" || continue
2612 case $ac_file in
2613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2614 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2615 break;;
2616 * ) break;;
2617 esac
2618 done
2619 else
2620 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2621 See \`config.log' for more details." >&5
2622 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2623 See \`config.log' for more details." >&2;}
2624 { (exit 1); exit 1; }; }
2625 fi
2626
2627 rm -f conftest$ac_cv_exeext
2628 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2629 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2630
2631 rm -f conftest.$ac_ext
2632 EXEEXT=$ac_cv_exeext
2633 ac_exeext=$EXEEXT
2634 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2635 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2636 if test "${ac_cv_objext+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 else
2639 cat >conftest.$ac_ext <<_ACEOF
2640 /* confdefs.h. */
2641 _ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h. */
2645
2646 int
2647 main ()
2648 {
2649
2650 ;
2651 return 0;
2652 }
2653 _ACEOF
2654 rm -f conftest.o conftest.obj
2655 if { (ac_try="$ac_compile"
2656 case "(($ac_try" in
2657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658 *) ac_try_echo=$ac_try;;
2659 esac
2660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661 (eval "$ac_compile") 2>&5
2662 ac_status=$?
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; then
2665 for ac_file in conftest.o conftest.obj conftest.*; do
2666 test -f "$ac_file" || continue;
2667 case $ac_file in
2668 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2669 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2670 break;;
2671 esac
2672 done
2673 else
2674 echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2676
2677 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2678 See \`config.log' for more details." >&5
2679 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2680 See \`config.log' for more details." >&2;}
2681 { (exit 1); exit 1; }; }
2682 fi
2683
2684 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2685 fi
2686 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2687 echo "${ECHO_T}$ac_cv_objext" >&6; }
2688 OBJEXT=$ac_cv_objext
2689 ac_objext=$OBJEXT
2690 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2691 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2692 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2693 echo $ECHO_N "(cached) $ECHO_C" >&6
2694 else
2695 cat >conftest.$ac_ext <<_ACEOF
2696 /* confdefs.h. */
2697 _ACEOF
2698 cat confdefs.h >>conftest.$ac_ext
2699 cat >>conftest.$ac_ext <<_ACEOF
2700 /* end confdefs.h. */
2701
2702 int
2703 main ()
2704 {
2705 #ifndef __GNUC__
2706 choke me
2707 #endif
2708
2709 ;
2710 return 0;
2711 }
2712 _ACEOF
2713 rm -f conftest.$ac_objext
2714 if { (ac_try="$ac_compile"
2715 case "(($ac_try" in
2716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717 *) ac_try_echo=$ac_try;;
2718 esac
2719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720 (eval "$ac_compile") 2>conftest.er1
2721 ac_status=$?
2722 grep -v '^ *+' conftest.er1 >conftest.err
2723 rm -f conftest.er1
2724 cat conftest.err >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); } &&
2727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2728 { (case "(($ac_try" in
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2731 esac
2732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733 (eval "$ac_try") 2>&5
2734 ac_status=$?
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }; } &&
2737 { ac_try='test -s conftest.$ac_objext'
2738 { (case "(($ac_try" in
2739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740 *) ac_try_echo=$ac_try;;
2741 esac
2742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2743 (eval "$ac_try") 2>&5
2744 ac_status=$?
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; }; then
2747 ac_compiler_gnu=yes
2748 else
2749 echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2751
2752 ac_compiler_gnu=no
2753 fi
2754
2755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2756 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2757
2758 fi
2759 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2760 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2761 GCC=`test $ac_compiler_gnu = yes && echo yes`
2762 ac_test_CFLAGS=${CFLAGS+set}
2763 ac_save_CFLAGS=$CFLAGS
2764 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2765 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2766 if test "${ac_cv_prog_cc_g+set}" = set; then
2767 echo $ECHO_N "(cached) $ECHO_C" >&6
2768 else
2769 ac_save_c_werror_flag=$ac_c_werror_flag
2770 ac_c_werror_flag=yes
2771 ac_cv_prog_cc_g=no
2772 CFLAGS="-g"
2773 cat >conftest.$ac_ext <<_ACEOF
2774 /* confdefs.h. */
2775 _ACEOF
2776 cat confdefs.h >>conftest.$ac_ext
2777 cat >>conftest.$ac_ext <<_ACEOF
2778 /* end confdefs.h. */
2779
2780 int
2781 main ()
2782 {
2783
2784 ;
2785 return 0;
2786 }
2787 _ACEOF
2788 rm -f conftest.$ac_objext
2789 if { (ac_try="$ac_compile"
2790 case "(($ac_try" in
2791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792 *) ac_try_echo=$ac_try;;
2793 esac
2794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2795 (eval "$ac_compile") 2>conftest.er1
2796 ac_status=$?
2797 grep -v '^ *+' conftest.er1 >conftest.err
2798 rm -f conftest.er1
2799 cat conftest.err >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); } &&
2802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2803 { (case "(($ac_try" in
2804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805 *) ac_try_echo=$ac_try;;
2806 esac
2807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2808 (eval "$ac_try") 2>&5
2809 ac_status=$?
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); }; } &&
2812 { ac_try='test -s conftest.$ac_objext'
2813 { (case "(($ac_try" in
2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815 *) ac_try_echo=$ac_try;;
2816 esac
2817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818 (eval "$ac_try") 2>&5
2819 ac_status=$?
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }; }; then
2822 ac_cv_prog_cc_g=yes
2823 else
2824 echo "$as_me: failed program was:" >&5
2825 sed 's/^/| /' conftest.$ac_ext >&5
2826
2827 CFLAGS=""
2828 cat >conftest.$ac_ext <<_ACEOF
2829 /* confdefs.h. */
2830 _ACEOF
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h. */
2834
2835 int
2836 main ()
2837 {
2838
2839 ;
2840 return 0;
2841 }
2842 _ACEOF
2843 rm -f conftest.$ac_objext
2844 if { (ac_try="$ac_compile"
2845 case "(($ac_try" in
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;;
2848 esac
2849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2850 (eval "$ac_compile") 2>conftest.er1
2851 ac_status=$?
2852 grep -v '^ *+' conftest.er1 >conftest.err
2853 rm -f conftest.er1
2854 cat conftest.err >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); } &&
2857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2858 { (case "(($ac_try" in
2859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860 *) ac_try_echo=$ac_try;;
2861 esac
2862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2863 (eval "$ac_try") 2>&5
2864 ac_status=$?
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); }; } &&
2867 { ac_try='test -s conftest.$ac_objext'
2868 { (case "(($ac_try" in
2869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2870 *) ac_try_echo=$ac_try;;
2871 esac
2872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2873 (eval "$ac_try") 2>&5
2874 ac_status=$?
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; }; then
2877 :
2878 else
2879 echo "$as_me: failed program was:" >&5
2880 sed 's/^/| /' conftest.$ac_ext >&5
2881
2882 ac_c_werror_flag=$ac_save_c_werror_flag
2883 CFLAGS="-g"
2884 cat >conftest.$ac_ext <<_ACEOF
2885 /* confdefs.h. */
2886 _ACEOF
2887 cat confdefs.h >>conftest.$ac_ext
2888 cat >>conftest.$ac_ext <<_ACEOF
2889 /* end confdefs.h. */
2890
2891 int
2892 main ()
2893 {
2894
2895 ;
2896 return 0;
2897 }
2898 _ACEOF
2899 rm -f conftest.$ac_objext
2900 if { (ac_try="$ac_compile"
2901 case "(($ac_try" in
2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903 *) ac_try_echo=$ac_try;;
2904 esac
2905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2906 (eval "$ac_compile") 2>conftest.er1
2907 ac_status=$?
2908 grep -v '^ *+' conftest.er1 >conftest.err
2909 rm -f conftest.er1
2910 cat conftest.err >&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); } &&
2913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2914 { (case "(($ac_try" in
2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2917 esac
2918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2919 (eval "$ac_try") 2>&5
2920 ac_status=$?
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }; } &&
2923 { ac_try='test -s conftest.$ac_objext'
2924 { (case "(($ac_try" in
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2927 esac
2928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2929 (eval "$ac_try") 2>&5
2930 ac_status=$?
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; }; then
2933 ac_cv_prog_cc_g=yes
2934 else
2935 echo "$as_me: failed program was:" >&5
2936 sed 's/^/| /' conftest.$ac_ext >&5
2937
2938
2939 fi
2940
2941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2942 fi
2943
2944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2945 fi
2946
2947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2948 ac_c_werror_flag=$ac_save_c_werror_flag
2949 fi
2950 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2951 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2952 if test "$ac_test_CFLAGS" = set; then
2953 CFLAGS=$ac_save_CFLAGS
2954 elif test $ac_cv_prog_cc_g = yes; then
2955 if test "$GCC" = yes; then
2956 CFLAGS="-g -O2"
2957 else
2958 CFLAGS="-g"
2959 fi
2960 else
2961 if test "$GCC" = yes; then
2962 CFLAGS="-O2"
2963 else
2964 CFLAGS=
2965 fi
2966 fi
2967 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2968 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2969 if test "${ac_cv_prog_cc_c89+set}" = set; then
2970 echo $ECHO_N "(cached) $ECHO_C" >&6
2971 else
2972 ac_cv_prog_cc_c89=no
2973 ac_save_CC=$CC
2974 cat >conftest.$ac_ext <<_ACEOF
2975 /* confdefs.h. */
2976 _ACEOF
2977 cat confdefs.h >>conftest.$ac_ext
2978 cat >>conftest.$ac_ext <<_ACEOF
2979 /* end confdefs.h. */
2980 #include <stdarg.h>
2981 #include <stdio.h>
2982 #include <sys/types.h>
2983 #include <sys/stat.h>
2984 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2985 struct buf { int x; };
2986 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2987 static char *e (p, i)
2988 char **p;
2989 int i;
2990 {
2991 return p[i];
2992 }
2993 static char *f (char * (*g) (char **, int), char **p, ...)
2994 {
2995 char *s;
2996 va_list v;
2997 va_start (v,p);
2998 s = g (p, va_arg (v,int));
2999 va_end (v);
3000 return s;
3001 }
3002
3003 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3004 function prototypes and stuff, but not '\xHH' hex character constants.
3005 These don't provoke an error unfortunately, instead are silently treated
3006 as 'x'. The following induces an error, until -std is added to get
3007 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3008 array size at least. It's necessary to write '\x00'==0 to get something
3009 that's true only with -std. */
3010 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3011
3012 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3013 inside strings and character constants. */
3014 #define FOO(x) 'x'
3015 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3016
3017 int test (int i, double x);
3018 struct s1 {int (*f) (int a);};
3019 struct s2 {int (*f) (double a);};
3020 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3021 int argc;
3022 char **argv;
3023 int
3024 main ()
3025 {
3026 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3027 ;
3028 return 0;
3029 }
3030 _ACEOF
3031 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3032 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3033 do
3034 CC="$ac_save_CC $ac_arg"
3035 rm -f conftest.$ac_objext
3036 if { (ac_try="$ac_compile"
3037 case "(($ac_try" in
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3040 esac
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_compile") 2>conftest.er1
3043 ac_status=$?
3044 grep -v '^ *+' conftest.er1 >conftest.err
3045 rm -f conftest.er1
3046 cat conftest.err >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); } &&
3049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3050 { (case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3053 esac
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_try") 2>&5
3056 ac_status=$?
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; } &&
3059 { ac_try='test -s conftest.$ac_objext'
3060 { (case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3063 esac
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_try") 2>&5
3066 ac_status=$?
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }; }; then
3069 ac_cv_prog_cc_c89=$ac_arg
3070 else
3071 echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3073
3074
3075 fi
3076
3077 rm -f core conftest.err conftest.$ac_objext
3078 test "x$ac_cv_prog_cc_c89" != "xno" && break
3079 done
3080 rm -f conftest.$ac_ext
3081 CC=$ac_save_CC
3082
3083 fi
3084 # AC_CACHE_VAL
3085 case "x$ac_cv_prog_cc_c89" in
3086 x)
3087 { echo "$as_me:$LINENO: result: none needed" >&5
3088 echo "${ECHO_T}none needed" >&6; } ;;
3089 xno)
3090 { echo "$as_me:$LINENO: result: unsupported" >&5
3091 echo "${ECHO_T}unsupported" >&6; } ;;
3092 *)
3093 CC="$CC $ac_cv_prog_cc_c89"
3094 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3095 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3096 esac
3097
3098
3099 ac_ext=c
3100 ac_cpp='$CPP $CPPFLAGS'
3101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3104
3105 # if gcc, -fno-strict-aliasing mandatory to work around compiler bugs
3106 if test "x$ac_compiler_gnu" = "xyes"; then
3107 CFLAGS="$CFLAGS -fno-strict-aliasing"
3108 fi
3109
3110 #--------------------------------------------------------------------
3111 # Do other misc checks with CC and CFLAGS.
3112 #
3113 # Determine how to run the C preprocessor.
3114 #
3115 # If the user specifies --enable-optimization, remove `-g'
3116 # from CFLAGS, add `-O' to CFLAGS, and define `NDEBUG'. If
3117 # we are not building optimized, check for special libraries
3118 # needed for building a debugging binary (currenly only
3119 # /usr/lib/end.o under HPUX).
3120 #
3121 # Check if we're running on AIX; if so, add `-D_ALL_SOURCE'
3122 # to CFLAGS.
3123 #
3124 # Check if we're running on HPUX; if so, add -D_HPUX_SOURCE'
3125 # to CFLAGS unless the C preprocessor goes it for us.
3126 #--------------------------------------------------------------------
3127
3128 ac_ext=c
3129 ac_cpp='$CPP $CPPFLAGS'
3130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3133 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3134 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3135 # On Suns, sometimes $CPP names a directory.
3136 if test -n "$CPP" && test -d "$CPP"; then
3137 CPP=
3138 fi
3139 if test -z "$CPP"; then
3140 if test "${ac_cv_prog_CPP+set}" = set; then
3141 echo $ECHO_N "(cached) $ECHO_C" >&6
3142 else
3143 # Double quotes because CPP needs to be expanded
3144 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3145 do
3146 ac_preproc_ok=false
3147 for ac_c_preproc_warn_flag in '' yes
3148 do
3149 # Use a header file that comes with gcc, so configuring glibc
3150 # with a fresh cross-compiler works.
3151 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3152 # <limits.h> exists even on freestanding compilers.
3153 # On the NeXT, cc -E runs the code through the compiler's parser,
3154 # not just through cpp. "Syntax error" is here to catch this case.
3155 cat >conftest.$ac_ext <<_ACEOF
3156 /* confdefs.h. */
3157 _ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3161 #ifdef __STDC__
3162 # include <limits.h>
3163 #else
3164 # include <assert.h>
3165 #endif
3166 Syntax error
3167 _ACEOF
3168 if { (ac_try="$ac_cpp conftest.$ac_ext"
3169 case "(($ac_try" in
3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171 *) ac_try_echo=$ac_try;;
3172 esac
3173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3175 ac_status=$?
3176 grep -v '^ *+' conftest.er1 >conftest.err
3177 rm -f conftest.er1
3178 cat conftest.err >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } >/dev/null; then
3181 if test -s conftest.err; then
3182 ac_cpp_err=$ac_c_preproc_warn_flag
3183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3184 else
3185 ac_cpp_err=
3186 fi
3187 else
3188 ac_cpp_err=yes
3189 fi
3190 if test -z "$ac_cpp_err"; then
3191 :
3192 else
3193 echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3195
3196 # Broken: fails on valid input.
3197 continue
3198 fi
3199
3200 rm -f conftest.err conftest.$ac_ext
3201
3202 # OK, works on sane cases. Now check whether nonexistent headers
3203 # can be detected and how.
3204 cat >conftest.$ac_ext <<_ACEOF
3205 /* confdefs.h. */
3206 _ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h. */
3210 #include <ac_nonexistent.h>
3211 _ACEOF
3212 if { (ac_try="$ac_cpp conftest.$ac_ext"
3213 case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3216 esac
3217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3219 ac_status=$?
3220 grep -v '^ *+' conftest.er1 >conftest.err
3221 rm -f conftest.er1
3222 cat conftest.err >&5
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); } >/dev/null; then
3225 if test -s conftest.err; then
3226 ac_cpp_err=$ac_c_preproc_warn_flag
3227 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3228 else
3229 ac_cpp_err=
3230 fi
3231 else
3232 ac_cpp_err=yes
3233 fi
3234 if test -z "$ac_cpp_err"; then
3235 # Broken: success on invalid input.
3236 continue
3237 else
3238 echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3240
3241 # Passes both tests.
3242 ac_preproc_ok=:
3243 break
3244 fi
3245
3246 rm -f conftest.err conftest.$ac_ext
3247
3248 done
3249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3250 rm -f conftest.err conftest.$ac_ext
3251 if $ac_preproc_ok; then
3252 break
3253 fi
3254
3255 done
3256 ac_cv_prog_CPP=$CPP
3257
3258 fi
3259 CPP=$ac_cv_prog_CPP
3260 else
3261 ac_cv_prog_CPP=$CPP
3262 fi
3263 { echo "$as_me:$LINENO: result: $CPP" >&5
3264 echo "${ECHO_T}$CPP" >&6; }
3265 ac_preproc_ok=false
3266 for ac_c_preproc_warn_flag in '' yes
3267 do
3268 # Use a header file that comes with gcc, so configuring glibc
3269 # with a fresh cross-compiler works.
3270 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3271 # <limits.h> exists even on freestanding compilers.
3272 # On the NeXT, cc -E runs the code through the compiler's parser,
3273 # not just through cpp. "Syntax error" is here to catch this case.
3274 cat >conftest.$ac_ext <<_ACEOF
3275 /* confdefs.h. */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3280 #ifdef __STDC__
3281 # include <limits.h>
3282 #else
3283 # include <assert.h>
3284 #endif
3285 Syntax error
3286 _ACEOF
3287 if { (ac_try="$ac_cpp conftest.$ac_ext"
3288 case "(($ac_try" in
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3291 esac
3292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3294 ac_status=$?
3295 grep -v '^ *+' conftest.er1 >conftest.err
3296 rm -f conftest.er1
3297 cat conftest.err >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } >/dev/null; then
3300 if test -s conftest.err; then
3301 ac_cpp_err=$ac_c_preproc_warn_flag
3302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3303 else
3304 ac_cpp_err=
3305 fi
3306 else
3307 ac_cpp_err=yes
3308 fi
3309 if test -z "$ac_cpp_err"; then
3310 :
3311 else
3312 echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3314
3315 # Broken: fails on valid input.
3316 continue
3317 fi
3318
3319 rm -f conftest.err conftest.$ac_ext
3320
3321 # OK, works on sane cases. Now check whether nonexistent headers
3322 # can be detected and how.
3323 cat >conftest.$ac_ext <<_ACEOF
3324 /* confdefs.h. */
3325 _ACEOF
3326 cat confdefs.h >>conftest.$ac_ext
3327 cat >>conftest.$ac_ext <<_ACEOF
3328 /* end confdefs.h. */
3329 #include <ac_nonexistent.h>
3330 _ACEOF
3331 if { (ac_try="$ac_cpp conftest.$ac_ext"
3332 case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335 esac
3336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3338 ac_status=$?
3339 grep -v '^ *+' conftest.er1 >conftest.err
3340 rm -f conftest.er1
3341 cat conftest.err >&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); } >/dev/null; then
3344 if test -s conftest.err; then
3345 ac_cpp_err=$ac_c_preproc_warn_flag
3346 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3347 else
3348 ac_cpp_err=
3349 fi
3350 else
3351 ac_cpp_err=yes
3352 fi
3353 if test -z "$ac_cpp_err"; then
3354 # Broken: success on invalid input.
3355 continue
3356 else
3357 echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3359
3360 # Passes both tests.
3361 ac_preproc_ok=:
3362 break
3363 fi
3364
3365 rm -f conftest.err conftest.$ac_ext
3366
3367 done
3368 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3369 rm -f conftest.err conftest.$ac_ext
3370 if $ac_preproc_ok; then
3371 :
3372 else
3373 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3374 See \`config.log' for more details." >&5
3375 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3376 See \`config.log' for more details." >&2;}
3377 { (exit 1); exit 1; }; }
3378 fi
3379
3380 ac_ext=c
3381 ac_cpp='$CPP $CPPFLAGS'
3382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3385
3386 # Check whether --enable-optimization was given.
3387 if test "${enable_optimization+set}" = set; then
3388 enableval=$enable_optimization; asc_do_opt="$enableval"
3389 else
3390 asc_do_opt=no
3391 fi
3392
3393
3394 if test "$asc_do_opt" = yes; then
3395 CFLAGS=`echo "-O $CFLAGS " | sed 's/ -g / /g'`
3396 cat >>confdefs.h <<\_ACEOF
3397 #define NDEBUG 1
3398 _ACEOF
3399
3400 else
3401 # Extract the first word of "end.o", so it can be a program name with args.
3402 set dummy end.o; ac_word=$2
3403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3405 if test "${ac_cv_path_DEBUG_LIBS+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408 case $DEBUG_LIBS in
3409 [\\/]* | ?:[\\/]*)
3410 ac_cv_path_DEBUG_LIBS="$DEBUG_LIBS" # Let the user override the test with a path.
3411 ;;
3412 *)
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 for as_dir in /usr/lib
3415 do
3416 IFS=$as_save_IFS
3417 test -z "$as_dir" && as_dir=.
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3420 ac_cv_path_DEBUG_LIBS="$as_dir/$ac_word$ac_exec_ext"
3421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3422 break 2
3423 fi
3424 done
3425 done
3426 IFS=$as_save_IFS
3427
3428 ;;
3429 esac
3430 fi
3431 DEBUG_LIBS=$ac_cv_path_DEBUG_LIBS
3432 if test -n "$DEBUG_LIBS"; then
3433 { echo "$as_me:$LINENO: result: $DEBUG_LIBS" >&5
3434 echo "${ECHO_T}$DEBUG_LIBS" >&6; }
3435 else
3436 { echo "$as_me:$LINENO: result: no" >&5
3437 echo "${ECHO_T}no" >&6; }
3438 fi
3439
3440
3441 fi
3442
3443 { echo "$as_me:$LINENO: checking for AIX" >&5
3444 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3445
3446
3447 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3448 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3449 if test "${ac_cv_path_GREP+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452 # Extract the first word of "grep ggrep" to use in msg output
3453 if test -z "$GREP"; then
3454 set dummy grep ggrep; ac_prog_name=$2
3455 if test "${ac_cv_path_GREP+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3457 else
3458 ac_path_GREP_found=false
3459 # Loop through the user's path and test for each of PROGNAME-LIST
3460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3461 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3462 do
3463 IFS=$as_save_IFS
3464 test -z "$as_dir" && as_dir=.
3465 for ac_prog in grep ggrep; do
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3468 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3469 # Check for GNU ac_path_GREP and select it if it is found.
3470 # Check for GNU $ac_path_GREP
3471 case `"$ac_path_GREP" --version 2>&1` in
3472 *GNU*)
3473 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3474 *)
3475 ac_count=0
3476 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3477 while :
3478 do
3479 cat "conftest.in" "conftest.in" >"conftest.tmp"
3480 mv "conftest.tmp" "conftest.in"
3481 cp "conftest.in" "conftest.nl"
3482 echo 'GREP' >> "conftest.nl"
3483 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3484 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3485 ac_count=`expr $ac_count + 1`
3486 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3487 # Best one so far, save it but keep looking for a better one
3488 ac_cv_path_GREP="$ac_path_GREP"
3489 ac_path_GREP_max=$ac_count
3490 fi
3491 # 10*(2^10) chars as input seems more than enough
3492 test $ac_count -gt 10 && break
3493 done
3494 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3495 esac
3496
3497
3498 $ac_path_GREP_found && break 3
3499 done
3500 done
3501
3502 done
3503 IFS=$as_save_IFS
3504
3505
3506 fi
3507
3508 GREP="$ac_cv_path_GREP"
3509 if test -z "$GREP"; then
3510 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3511 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3512 { (exit 1); exit 1; }; }
3513 fi
3514
3515 else
3516 ac_cv_path_GREP=$GREP
3517 fi
3518
3519
3520 fi
3521 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3522 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3523 GREP="$ac_cv_path_GREP"
3524
3525
3526 { echo "$as_me:$LINENO: checking for egrep" >&5
3527 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3528 if test "${ac_cv_path_EGREP+set}" = set; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
3530 else
3531 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3532 then ac_cv_path_EGREP="$GREP -E"
3533 else
3534 # Extract the first word of "egrep" to use in msg output
3535 if test -z "$EGREP"; then
3536 set dummy egrep; ac_prog_name=$2
3537 if test "${ac_cv_path_EGREP+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3539 else
3540 ac_path_EGREP_found=false
3541 # Loop through the user's path and test for each of PROGNAME-LIST
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3544 do
3545 IFS=$as_save_IFS
3546 test -z "$as_dir" && as_dir=.
3547 for ac_prog in egrep; do
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3550 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3551 # Check for GNU ac_path_EGREP and select it if it is found.
3552 # Check for GNU $ac_path_EGREP
3553 case `"$ac_path_EGREP" --version 2>&1` in
3554 *GNU*)
3555 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3556 *)
3557 ac_count=0
3558 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3559 while :
3560 do
3561 cat "conftest.in" "conftest.in" >"conftest.tmp"
3562 mv "conftest.tmp" "conftest.in"
3563 cp "conftest.in" "conftest.nl"
3564 echo 'EGREP' >> "conftest.nl"
3565 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3566 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3567 ac_count=`expr $ac_count + 1`
3568 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3569 # Best one so far, save it but keep looking for a better one
3570 ac_cv_path_EGREP="$ac_path_EGREP"
3571 ac_path_EGREP_max=$ac_count
3572 fi
3573 # 10*(2^10) chars as input seems more than enough
3574 test $ac_count -gt 10 && break
3575 done
3576 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3577 esac
3578
3579
3580 $ac_path_EGREP_found && break 3
3581 done
3582 done
3583
3584 done
3585 IFS=$as_save_IFS
3586
3587
3588 fi
3589
3590 EGREP="$ac_cv_path_EGREP"
3591 if test -z "$EGREP"; then
3592 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3593 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3594 { (exit 1); exit 1; }; }
3595 fi
3596
3597 else
3598 ac_cv_path_EGREP=$EGREP
3599 fi
3600
3601
3602 fi
3603 fi
3604 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3605 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3606 EGREP="$ac_cv_path_EGREP"
3607
3608
3609 cat >conftest.$ac_ext <<_ACEOF
3610 /* confdefs.h. */
3611 _ACEOF
3612 cat confdefs.h >>conftest.$ac_ext
3613 cat >>conftest.$ac_ext <<_ACEOF
3614 /* end confdefs.h. */
3615
3616 #ifdef _AIX
3617 yes
3618 #endif
3619
3620 _ACEOF
3621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3622 $EGREP "yes" >/dev/null 2>&1; then
3623 asc_aix=yes ; cat >>confdefs.h <<\_ACEOF
3624 #define _ALL_SOURCE 1
3625 _ACEOF
3626
3627 else
3628 asc_aix=no
3629 fi
3630 rm -f conftest*
3631
3632 { echo "$as_me:$LINENO: result: $asc_aix" >&5
3633 echo "${ECHO_T}$asc_aix" >&6; }
3634
3635 { echo "$as_me:$LINENO: checking whether -D_HPUX_SOURCE is needed" >&5
3636 echo $ECHO_N "checking whether -D_HPUX_SOURCE is needed... $ECHO_C" >&6; }
3637 cat >conftest.$ac_ext <<_ACEOF
3638 /* confdefs.h. */
3639 _ACEOF
3640 cat confdefs.h >>conftest.$ac_ext
3641 cat >>conftest.$ac_ext <<_ACEOF
3642 /* end confdefs.h. */
3643
3644 #ifdef __hpux
3645 #ifndef _HPUX_SOURCE
3646 yes
3647 #endif
3648 #endif
3649
3650 _ACEOF
3651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3652 $EGREP "yes" >/dev/null 2>&1; then
3653 asc_hpux=yes ; cat >>confdefs.h <<\_ACEOF
3654 #define _HPUX_SOURCE 1
3655 _ACEOF
3656
3657 else
3658 asc_hpux=no
3659 fi
3660 rm -f conftest*
3661
3662 { echo "$as_me:$LINENO: result: $asc_hpux" >&5
3663 echo "${ECHO_T}$asc_hpux" >&6; }
3664
3665 # Check the size of pointers; if cross compiling, assume 32 bit pointers
3666 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3667 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3668 if test "${ac_cv_header_stdc+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 else
3671 cat >conftest.$ac_ext <<_ACEOF
3672 /* confdefs.h. */
3673 _ACEOF
3674 cat confdefs.h >>conftest.$ac_ext
3675 cat >>conftest.$ac_ext <<_ACEOF
3676 /* end confdefs.h. */
3677 #include <stdlib.h>
3678 #include <stdarg.h>
3679 #include <string.h>
3680 #include <float.h>
3681
3682 int
3683 main ()
3684 {
3685
3686 ;
3687 return 0;
3688 }
3689 _ACEOF
3690 rm -f conftest.$ac_objext
3691 if { (ac_try="$ac_compile"
3692 case "(($ac_try" in
3693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694 *) ac_try_echo=$ac_try;;
3695 esac
3696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3697 (eval "$ac_compile") 2>conftest.er1
3698 ac_status=$?
3699 grep -v '^ *+' conftest.er1 >conftest.err
3700 rm -f conftest.er1
3701 cat conftest.err >&5
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); } &&
3704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3705 { (case "(($ac_try" in
3706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3707 *) ac_try_echo=$ac_try;;
3708 esac
3709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3710 (eval "$ac_try") 2>&5
3711 ac_status=$?
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); }; } &&
3714 { ac_try='test -s conftest.$ac_objext'
3715 { (case "(($ac_try" in
3716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717 *) ac_try_echo=$ac_try;;
3718 esac
3719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3720 (eval "$ac_try") 2>&5
3721 ac_status=$?
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; }; then
3724 ac_cv_header_stdc=yes
3725 else
3726 echo "$as_me: failed program was:" >&5
3727 sed 's/^/| /' conftest.$ac_ext >&5
3728
3729 ac_cv_header_stdc=no
3730 fi
3731
3732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3733
3734 if test $ac_cv_header_stdc = yes; then
3735 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3736 cat >conftest.$ac_ext <<_ACEOF
3737 /* confdefs.h. */
3738 _ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3742 #include <string.h>
3743
3744 _ACEOF
3745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3746 $EGREP "memchr" >/dev/null 2>&1; then
3747 :
3748 else
3749 ac_cv_header_stdc=no
3750 fi
3751 rm -f conftest*
3752
3753 fi
3754
3755 if test $ac_cv_header_stdc = yes; then
3756 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3757 cat >conftest.$ac_ext <<_ACEOF
3758 /* confdefs.h. */
3759 _ACEOF
3760 cat confdefs.h >>conftest.$ac_ext
3761 cat >>conftest.$ac_ext <<_ACEOF
3762 /* end confdefs.h. */
3763 #include <stdlib.h>
3764
3765 _ACEOF
3766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3767 $EGREP "free" >/dev/null 2>&1; then
3768 :
3769 else
3770 ac_cv_header_stdc=no
3771 fi
3772 rm -f conftest*
3773
3774 fi
3775
3776 if test $ac_cv_header_stdc = yes; then
3777 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3778 if test "$cross_compiling" = yes; then
3779 :
3780 else
3781 cat >conftest.$ac_ext <<_ACEOF
3782 /* confdefs.h. */
3783 _ACEOF
3784 cat confdefs.h >>conftest.$ac_ext
3785 cat >>conftest.$ac_ext <<_ACEOF
3786 /* end confdefs.h. */
3787 #include <ctype.h>
3788 #include <stdlib.h>
3789 #if ((' ' & 0x0FF) == 0x020)
3790 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3791 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3792 #else
3793 # define ISLOWER(c) \
3794 (('a' <= (c) && (c) <= 'i') \
3795 || ('j' <= (c) && (c) <= 'r') \
3796 || ('s' <= (c) && (c) <= 'z'))
3797 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3798 #endif
3799
3800 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3801 int
3802 main ()
3803 {
3804 int i;
3805 for (i = 0; i < 256; i++)
3806 if (XOR (islower (i), ISLOWER (i))
3807 || toupper (i) != TOUPPER (i))
3808 return 2;
3809 return 0;
3810 }
3811 _ACEOF
3812 rm -f conftest$ac_exeext
3813 if { (ac_try="$ac_link"
3814 case "(($ac_try" in
3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3817 esac
3818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3819 (eval "$ac_link") 2>&5
3820 ac_status=$?
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3823 { (case "(($ac_try" in
3824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825 *) ac_try_echo=$ac_try;;
3826 esac
3827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3828 (eval "$ac_try") 2>&5
3829 ac_status=$?
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); }; }; then
3832 :
3833 else
3834 echo "$as_me: program exited with status $ac_status" >&5
3835 echo "$as_me: failed program was:" >&5
3836 sed 's/^/| /' conftest.$ac_ext >&5
3837
3838 ( exit $ac_status )
3839 ac_cv_header_stdc=no
3840 fi
3841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3842 fi
3843
3844
3845 fi
3846 fi
3847 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3848 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3849 if test $ac_cv_header_stdc = yes; then
3850
3851 cat >>confdefs.h <<\_ACEOF
3852 #define STDC_HEADERS 1
3853 _ACEOF
3854
3855 fi
3856
3857 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3868 inttypes.h stdint.h unistd.h
3869 do
3870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3871 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3875 else
3876 cat >conftest.$ac_ext <<_ACEOF
3877 /* confdefs.h. */
3878 _ACEOF
3879 cat confdefs.h >>conftest.$ac_ext
3880 cat >>conftest.$ac_ext <<_ACEOF
3881 /* end confdefs.h. */
3882 $ac_includes_default
3883
3884 #include <$ac_header>
3885 _ACEOF
3886 rm -f conftest.$ac_objext
3887 if { (ac_try="$ac_compile"
3888 case "(($ac_try" in
3889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890 *) ac_try_echo=$ac_try;;
3891 esac
3892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3893 (eval "$ac_compile") 2>conftest.er1
3894 ac_status=$?
3895 grep -v '^ *+' conftest.er1 >conftest.err
3896 rm -f conftest.er1
3897 cat conftest.err >&5
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); } &&
3900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3901 { (case "(($ac_try" in
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3904 esac
3905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906 (eval "$ac_try") 2>&5
3907 ac_status=$?
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); }; } &&
3910 { ac_try='test -s conftest.$ac_objext'
3911 { (case "(($ac_try" in
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3914 esac
3915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3916 (eval "$ac_try") 2>&5
3917 ac_status=$?
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); }; }; then
3920 eval "$as_ac_Header=yes"
3921 else
3922 echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.$ac_ext >&5
3924
3925 eval "$as_ac_Header=no"
3926 fi
3927
3928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3929 fi
3930 ac_res=`eval echo '${'$as_ac_Header'}'`
3931 { echo "$as_me:$LINENO: result: $ac_res" >&5
3932 echo "${ECHO_T}$ac_res" >&6; }
3933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3934 cat >>confdefs.h <<_ACEOF
3935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3936 _ACEOF
3937
3938 fi
3939
3940 done
3941
3942
3943 { echo "$as_me:$LINENO: checking for void *" >&5
3944 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
3945 if test "${ac_cv_type_void_p+set}" = set; then
3946 echo $ECHO_N "(cached) $ECHO_C" >&6
3947 else
3948 cat >conftest.$ac_ext <<_ACEOF
3949 /* confdefs.h. */
3950 _ACEOF
3951 cat confdefs.h >>conftest.$ac_ext
3952 cat >>conftest.$ac_ext <<_ACEOF
3953 /* end confdefs.h. */
3954 $ac_includes_default
3955 typedef void * ac__type_new_;
3956 int
3957 main ()
3958 {
3959 if ((ac__type_new_ *) 0)
3960 return 0;
3961 if (sizeof (ac__type_new_))
3962 return 0;
3963 ;
3964 return 0;
3965 }
3966 _ACEOF
3967 rm -f conftest.$ac_objext
3968 if { (ac_try="$ac_compile"
3969 case "(($ac_try" in
3970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3971 *) ac_try_echo=$ac_try;;
3972 esac
3973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3974 (eval "$ac_compile") 2>conftest.er1
3975 ac_status=$?
3976 grep -v '^ *+' conftest.er1 >conftest.err
3977 rm -f conftest.er1
3978 cat conftest.err >&5
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); } &&
3981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3982 { (case "(($ac_try" in
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3985 esac
3986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3987 (eval "$ac_try") 2>&5
3988 ac_status=$?
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }; } &&
3991 { ac_try='test -s conftest.$ac_objext'
3992 { (case "(($ac_try" in
3993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994 *) ac_try_echo=$ac_try;;
3995 esac
3996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3997 (eval "$ac_try") 2>&5
3998 ac_status=$?
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; }; then
4001 ac_cv_type_void_p=yes
4002 else
4003 echo "$as_me: failed program was:" >&5
4004 sed 's/^/| /' conftest.$ac_ext >&5
4005
4006 ac_cv_type_void_p=no
4007 fi
4008
4009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4010 fi
4011 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4012 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
4013
4014 { echo "$as_me:$LINENO: checking size of void *" >&5
4015 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
4016 if test "${ac_cv_sizeof_void_p+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 else
4019 if test "$ac_cv_type_void_p" = yes; then
4020 # The cast to long int works around a bug in the HP C Compiler
4021 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4022 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4023 # This bug is HP SR number 8606223364.
4024 if test "$cross_compiling" = yes; then
4025 # Depending upon the size, compute the lo and hi bounds.
4026 cat >conftest.$ac_ext <<_ACEOF
4027 /* confdefs.h. */
4028 _ACEOF
4029 cat confdefs.h >>conftest.$ac_ext
4030 cat >>conftest.$ac_ext <<_ACEOF
4031 /* end confdefs.h. */
4032 $ac_includes_default
4033 typedef void * ac__type_sizeof_;
4034 int
4035 main ()
4036 {
4037 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4038 test_array [0] = 0
4039
4040 ;
4041 return 0;
4042 }
4043 _ACEOF
4044 rm -f conftest.$ac_objext
4045 if { (ac_try="$ac_compile"
4046 case "(($ac_try" in
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4049 esac
4050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4051 (eval "$ac_compile") 2>conftest.er1
4052 ac_status=$?
4053 grep -v '^ *+' conftest.er1 >conftest.err
4054 rm -f conftest.er1
4055 cat conftest.err >&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); } &&
4058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4059 { (case "(($ac_try" in
4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061 *) ac_try_echo=$ac_try;;
4062 esac
4063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4064 (eval "$ac_try") 2>&5
4065 ac_status=$?
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }; } &&
4068 { ac_try='test -s conftest.$ac_objext'
4069 { (case "(($ac_try" in
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4072 esac
4073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074 (eval "$ac_try") 2>&5
4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4078 ac_lo=0 ac_mid=0
4079 while :; do
4080 cat >conftest.$ac_ext <<_ACEOF
4081 /* confdefs.h. */
4082 _ACEOF
4083 cat confdefs.h >>conftest.$ac_ext
4084 cat >>conftest.$ac_ext <<_ACEOF
4085 /* end confdefs.h. */
4086 $ac_includes_default
4087 typedef void * ac__type_sizeof_;
4088 int
4089 main ()
4090 {
4091 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4092 test_array [0] = 0
4093
4094 ;
4095 return 0;
4096 }
4097 _ACEOF
4098 rm -f conftest.$ac_objext
4099 if { (ac_try="$ac_compile"
4100 case "(($ac_try" in
4101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102 *) ac_try_echo=$ac_try;;
4103 esac
4104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4105 (eval "$ac_compile") 2>conftest.er1
4106 ac_status=$?
4107 grep -v '^ *+' conftest.er1 >conftest.err
4108 rm -f conftest.er1
4109 cat conftest.err >&5
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); } &&
4112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4113 { (case "(($ac_try" in
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4116 esac
4117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118 (eval "$ac_try") 2>&5
4119 ac_status=$?
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); }; } &&
4122 { ac_try='test -s conftest.$ac_objext'
4123 { (case "(($ac_try" in
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4126 esac
4127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4128 (eval "$ac_try") 2>&5
4129 ac_status=$?
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); }; }; then
4132 ac_hi=$ac_mid; break
4133 else
4134 echo "$as_me: failed program was:" >&5
4135 sed 's/^/| /' conftest.$ac_ext >&5
4136
4137 ac_lo=`expr $ac_mid + 1`
4138 if test $ac_lo -le $ac_mid; then
4139 ac_lo= ac_hi=
4140 break
4141 fi
4142 ac_mid=`expr 2 '*' $ac_mid + 1`
4143 fi
4144
4145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146 done
4147 else
4148 echo "$as_me: failed program was:" >&5
4149 sed 's/^/| /' conftest.$ac_ext >&5
4150
4151 cat >conftest.$ac_ext <<_ACEOF
4152 /* confdefs.h. */
4153 _ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4157 $ac_includes_default
4158 typedef void * ac__type_sizeof_;
4159 int
4160 main ()
4161 {
4162 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4163 test_array [0] = 0
4164
4165 ;
4166 return 0;
4167 }
4168 _ACEOF
4169 rm -f conftest.$ac_objext
4170 if { (ac_try="$ac_compile"
4171 case "(($ac_try" in
4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173 *) ac_try_echo=$ac_try;;
4174 esac
4175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4176 (eval "$ac_compile") 2>conftest.er1
4177 ac_status=$?
4178 grep -v '^ *+' conftest.er1 >conftest.err
4179 rm -f conftest.er1
4180 cat conftest.err >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } &&
4183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4184 { (case "(($ac_try" in
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4187 esac
4188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189 (eval "$ac_try") 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; } &&
4193 { ac_try='test -s conftest.$ac_objext'
4194 { (case "(($ac_try" in
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4197 esac
4198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4199 (eval "$ac_try") 2>&5
4200 ac_status=$?
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); }; }; then
4203 ac_hi=-1 ac_mid=-1
4204 while :; do
4205 cat >conftest.$ac_ext <<_ACEOF
4206 /* confdefs.h. */
4207 _ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h. */
4211 $ac_includes_default
4212 typedef void * ac__type_sizeof_;
4213 int
4214 main ()
4215 {
4216 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4217 test_array [0] = 0
4218
4219 ;
4220 return 0;
4221 }
4222 _ACEOF
4223 rm -f conftest.$ac_objext
4224 if { (ac_try="$ac_compile"
4225 case "(($ac_try" in
4226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227 *) ac_try_echo=$ac_try;;
4228 esac
4229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4230 (eval "$ac_compile") 2>conftest.er1
4231 ac_status=$?
4232 grep -v '^ *+' conftest.er1 >conftest.err
4233 rm -f conftest.er1
4234 cat conftest.err >&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); } &&
4237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4238 { (case "(($ac_try" in
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4241 esac
4242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4243 (eval "$ac_try") 2>&5
4244 ac_status=$?
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); }; } &&
4247 { ac_try='test -s conftest.$ac_objext'
4248 { (case "(($ac_try" in
4249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4250 *) ac_try_echo=$ac_try;;
4251 esac
4252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4253 (eval "$ac_try") 2>&5
4254 ac_status=$?
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); }; }; then
4257 ac_lo=$ac_mid; break
4258 else
4259 echo "$as_me: failed program was:" >&5
4260 sed 's/^/| /' conftest.$ac_ext >&5
4261
4262 ac_hi=`expr '(' $ac_mid ')' - 1`
4263 if test $ac_mid -le $ac_hi; then
4264 ac_lo= ac_hi=
4265 break
4266 fi
4267 ac_mid=`expr 2 '*' $ac_mid`
4268 fi
4269
4270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4271 done
4272 else
4273 echo "$as_me: failed program was:" >&5
4274 sed 's/^/| /' conftest.$ac_ext >&5
4275
4276 ac_lo= ac_hi=
4277 fi
4278
4279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4280 fi
4281
4282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4283