/[pearpc]/configure
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /configure

Parent Directory Parent Directory | Revision Log Revision Log


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