source: mainline/uspace/app/pcc/configure@ 503e4e3

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 503e4e3 was a7de7182, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 14 years ago

Added pcc source tree (contents of pcc-1.0.0.tgz)

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