source: trunk/gcc/fastjar/configure@ 2810

Last change on this file since 2810 was 1394, checked in by bird, 22 years ago

#1040: Joined the GCC 3.3.3 with the trunk.

  • Property cvs2svn:cvs-rev set to 1.5
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 79.9 KB
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
17ac_help="$ac_help
18 --with-system-zlib use installed libz"
19
20# Initialize some variables set by options.
21# The variables have the same names as the options, with
22# dashes changed to underlines.
23build=NONE
24cache_file=./config.cache
25exec_prefix=NONE
26host=NONE
27no_create=
28nonopt=NONE
29no_recursion=
30prefix=NONE
31program_prefix=NONE
32program_suffix=NONE
33program_transform_name=s,x,x,
34silent=
35site=
36srcdir=
37target=NONE
38verbose=
39x_includes=NONE
40x_libraries=NONE
41bindir='${exec_prefix}/bin'
42sbindir='${exec_prefix}/sbin'
43libexecdir='${exec_prefix}/libexec'
44datadir='${prefix}/share'
45sysconfdir='${prefix}/etc'
46sharedstatedir='${prefix}/com'
47localstatedir='${prefix}/var'
48libdir='${exec_prefix}/lib'
49includedir='${prefix}/include'
50oldincludedir='/usr/include'
51infodir='${prefix}/info'
52mandir='${prefix}/man'
53
54# Initialize some other variables.
55subdirs=
56MFLAGS= MAKEFLAGS=
57SHELL=${CONFIG_SHELL-/bin/sh}
58# Maximum number of lines to put in a shell here document.
59ac_max_here_lines=12
60
61ac_prev=
62for ac_option
63do
64
65 # If the previous option needs an argument, assign it.
66 if test -n "$ac_prev"; then
67 eval "$ac_prev=\$ac_option"
68 ac_prev=
69 continue
70 fi
71
72 case "$ac_option" in
73 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
74 *) ac_optarg= ;;
75 esac
76
77 # Accept the important Cygnus configure options, so we can diagnose typos.
78
79 case "$ac_option" in
80
81 -bindir | --bindir | --bindi | --bind | --bin | --bi)
82 ac_prev=bindir ;;
83 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
84 bindir="$ac_optarg" ;;
85
86 -build | --build | --buil | --bui | --bu)
87 ac_prev=build ;;
88 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
89 build="$ac_optarg" ;;
90
91 -cache-file | --cache-file | --cache-fil | --cache-fi \
92 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
93 ac_prev=cache_file ;;
94 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
95 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
96 cache_file="$ac_optarg" ;;
97
98 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
99 ac_prev=datadir ;;
100 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
101 | --da=*)
102 datadir="$ac_optarg" ;;
103
104 -disable-* | --disable-*)
105 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
106 # Reject names that are not valid shell variable names.
107 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
108 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
109 fi
110 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
111 eval "enable_${ac_feature}=no" ;;
112
113 -enable-* | --enable-*)
114 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
115 # Reject names that are not valid shell variable names.
116 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
117 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118 fi
119 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
120 case "$ac_option" in
121 *=*) ;;
122 *) ac_optarg=yes ;;
123 esac
124 eval "enable_${ac_feature}='$ac_optarg'" ;;
125
126 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
127 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
128 | --exec | --exe | --ex)
129 ac_prev=exec_prefix ;;
130 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
131 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
132 | --exec=* | --exe=* | --ex=*)
133 exec_prefix="$ac_optarg" ;;
134
135 -gas | --gas | --ga | --g)
136 # Obsolete; use --with-gas.
137 with_gas=yes ;;
138
139 -help | --help | --hel | --he)
140 # Omit some internal or obsolete options to make the list less imposing.
141 # This message is too long to be a string in the A/UX 3.1 sh.
142 cat << EOF
143Usage: configure [options] [host]
144Options: [defaults in brackets after descriptions]
145Configuration:
146 --cache-file=FILE cache test results in FILE
147 --help print this message
148 --no-create do not create output files
149 --quiet, --silent do not print \`checking...' messages
150 --version print the version of autoconf that created configure
151Directory and file names:
152 --prefix=PREFIX install architecture-independent files in PREFIX
153 [$ac_default_prefix]
154 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
155 [same as prefix]
156 --bindir=DIR user executables in DIR [EPREFIX/bin]
157 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
158 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
159 --datadir=DIR read-only architecture-independent data in DIR
160 [PREFIX/share]
161 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
162 --sharedstatedir=DIR modifiable architecture-independent data in DIR
163 [PREFIX/com]
164 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
165 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
166 --includedir=DIR C header files in DIR [PREFIX/include]
167 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
168 --infodir=DIR info documentation in DIR [PREFIX/info]
169 --mandir=DIR man documentation in DIR [PREFIX/man]
170 --srcdir=DIR find the sources in DIR [configure dir or ..]
171 --program-prefix=PREFIX prepend PREFIX to installed program names
172 --program-suffix=SUFFIX append SUFFIX to installed program names
173 --program-transform-name=PROGRAM
174 run sed PROGRAM on installed program names
175EOF
176 cat << EOF
177Host type:
178 --build=BUILD configure for building on BUILD [BUILD=HOST]
179 --host=HOST configure for HOST [guessed]
180 --target=TARGET configure for TARGET [TARGET=HOST]
181Features and packages:
182 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
183 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
184 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
185 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
186 --x-includes=DIR X include files are in DIR
187 --x-libraries=DIR X library files are in DIR
188EOF
189 if test -n "$ac_help"; then
190 echo "--enable and --with options recognized:$ac_help"
191 fi
192 exit 0 ;;
193
194 -host | --host | --hos | --ho)
195 ac_prev=host ;;
196 -host=* | --host=* | --hos=* | --ho=*)
197 host="$ac_optarg" ;;
198
199 -includedir | --includedir | --includedi | --included | --include \
200 | --includ | --inclu | --incl | --inc)
201 ac_prev=includedir ;;
202 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
203 | --includ=* | --inclu=* | --incl=* | --inc=*)
204 includedir="$ac_optarg" ;;
205
206 -infodir | --infodir | --infodi | --infod | --info | --inf)
207 ac_prev=infodir ;;
208 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
209 infodir="$ac_optarg" ;;
210
211 -libdir | --libdir | --libdi | --libd)
212 ac_prev=libdir ;;
213 -libdir=* | --libdir=* | --libdi=* | --libd=*)
214 libdir="$ac_optarg" ;;
215
216 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
217 | --libexe | --libex | --libe)
218 ac_prev=libexecdir ;;
219 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
220 | --libexe=* | --libex=* | --libe=*)
221 libexecdir="$ac_optarg" ;;
222
223 -localstatedir | --localstatedir | --localstatedi | --localstated \
224 | --localstate | --localstat | --localsta | --localst \
225 | --locals | --local | --loca | --loc | --lo)
226 ac_prev=localstatedir ;;
227 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
228 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
229 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
230 localstatedir="$ac_optarg" ;;
231
232 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
233 ac_prev=mandir ;;
234 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
235 mandir="$ac_optarg" ;;
236
237 -nfp | --nfp | --nf)
238 # Obsolete; use --without-fp.
239 with_fp=no ;;
240
241 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
242 | --no-cr | --no-c)
243 no_create=yes ;;
244
245 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
246 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
247 no_recursion=yes ;;
248
249 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
250 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
251 | --oldin | --oldi | --old | --ol | --o)
252 ac_prev=oldincludedir ;;
253 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
254 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
255 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
256 oldincludedir="$ac_optarg" ;;
257
258 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
259 ac_prev=prefix ;;
260 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
261 prefix="$ac_optarg" ;;
262
263 -program-prefix | --program-prefix | --program-prefi | --program-pref \
264 | --program-pre | --program-pr | --program-p)
265 ac_prev=program_prefix ;;
266 -program-prefix=* | --program-prefix=* | --program-prefi=* \
267 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
268 program_prefix="$ac_optarg" ;;
269
270 -program-suffix | --program-suffix | --program-suffi | --program-suff \
271 | --program-suf | --program-su | --program-s)
272 ac_prev=program_suffix ;;
273 -program-suffix=* | --program-suffix=* | --program-suffi=* \
274 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
275 program_suffix="$ac_optarg" ;;
276
277 -program-transform-name | --program-transform-name \
278 | --program-transform-nam | --program-transform-na \
279 | --program-transform-n | --program-transform- \
280 | --program-transform | --program-transfor \
281 | --program-transfo | --program-transf \
282 | --program-trans | --program-tran \
283 | --progr-tra | --program-tr | --program-t)
284 ac_prev=program_transform_name ;;
285 -program-transform-name=* | --program-transform-name=* \
286 | --program-transform-nam=* | --program-transform-na=* \
287 | --program-transform-n=* | --program-transform-=* \
288 | --program-transform=* | --program-transfor=* \
289 | --program-transfo=* | --program-transf=* \
290 | --program-trans=* | --program-tran=* \
291 | --progr-tra=* | --program-tr=* | --program-t=*)
292 program_transform_name="$ac_optarg" ;;
293
294 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
295 | -silent | --silent | --silen | --sile | --sil)
296 silent=yes ;;
297
298 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
299 ac_prev=sbindir ;;
300 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
301 | --sbi=* | --sb=*)
302 sbindir="$ac_optarg" ;;
303
304 -sharedstatedir | --sharedstatedir | --sharedstatedi \
305 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
306 | --sharedst | --shareds | --shared | --share | --shar \
307 | --sha | --sh)
308 ac_prev=sharedstatedir ;;
309 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
310 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
311 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
312 | --sha=* | --sh=*)
313 sharedstatedir="$ac_optarg" ;;
314
315 -site | --site | --sit)
316 ac_prev=site ;;
317 -site=* | --site=* | --sit=*)
318 site="$ac_optarg" ;;
319
320 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
321 ac_prev=srcdir ;;
322 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
323 srcdir="$ac_optarg" ;;
324
325 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
326 | --syscon | --sysco | --sysc | --sys | --sy)
327 ac_prev=sysconfdir ;;
328 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
329 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
330 sysconfdir="$ac_optarg" ;;
331
332 -target | --target | --targe | --targ | --tar | --ta | --t)
333 ac_prev=target ;;
334 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
335 target="$ac_optarg" ;;
336
337 -v | -verbose | --verbose | --verbos | --verbo | --verb)
338 verbose=yes ;;
339
340 -version | --version | --versio | --versi | --vers)
341 echo "configure generated by autoconf version 2.13"
342 exit 0 ;;
343
344 -with-* | --with-*)
345 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
346 # Reject names that are not valid shell variable names.
347 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
348 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
349 fi
350 ac_package=`echo $ac_package| sed 's/-/_/g'`
351 case "$ac_option" in
352 *=*) ;;
353 *) ac_optarg=yes ;;
354 esac
355 eval "with_${ac_package}='$ac_optarg'" ;;
356
357 -without-* | --without-*)
358 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
359 # Reject names that are not valid shell variable names.
360 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
361 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 fi
363 ac_package=`echo $ac_package| sed 's/-/_/g'`
364 eval "with_${ac_package}=no" ;;
365
366 --x)
367 # Obsolete; use --with-x.
368 with_x=yes ;;
369
370 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
371 | --x-incl | --x-inc | --x-in | --x-i)
372 ac_prev=x_includes ;;
373 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
374 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
375 x_includes="$ac_optarg" ;;
376
377 -x-libraries | --x-libraries | --x-librarie | --x-librari \
378 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
379 ac_prev=x_libraries ;;
380 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
381 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
382 x_libraries="$ac_optarg" ;;
383
384 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
385 ;;
386
387 *)
388 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
389 echo "configure: warning: $ac_option: invalid host type" 1>&2
390 fi
391 if test "x$nonopt" != xNONE; then
392 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
393 fi
394 nonopt="$ac_option"
395 ;;
396
397 esac
398done
399
400if test -n "$ac_prev"; then
401 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
402fi
403
404trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
405
406# File descriptor usage:
407# 0 standard input
408# 1 file creation
409# 2 errors and warnings
410# 3 some systems may open it to /dev/tty
411# 4 used on the Kubota Titan
412# 6 checking for... messages and results
413# 5 compiler messages saved in config.log
414if test "$silent" = yes; then
415 exec 6>/dev/null
416else
417 exec 6>&1
418fi
419exec 5>./config.log
420
421echo "\
422This file contains any messages produced by compilers while
423running configure, to aid debugging if configure makes a mistake.
424" 1>&5
425
426# Strip out --no-create and --no-recursion so they do not pile up.
427# Also quote any args containing shell metacharacters.
428ac_configure_args=
429for ac_arg
430do
431 case "$ac_arg" in
432 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
433 | --no-cr | --no-c) ;;
434 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
435 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
436 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
437 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
438 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
439 esac
440done
441
442# NLS nuisances.
443# Only set these to C if already set. These must not be set unconditionally
444# because not all systems understand e.g. LANG=C (notably SCO).
445# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
446# Non-C LC_CTYPE values break the ctype check.
447if test "${LANG+set}" = set; then LANG=C; export LANG; fi
448if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
449if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
450if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
451
452# confdefs.h avoids OS command line length limits that DEFS can exceed.
453rm -rf conftest* confdefs.h
454# AIX cpp loses on an empty file, so make sure it contains at least a newline.
455echo > confdefs.h
456
457# A filename unique to this package, relative to the directory that
458# configure is in, which we can look for to find out if srcdir is correct.
459ac_unique_file=jartool.h
460
461# Find the source files, if location was not specified.
462if test -z "$srcdir"; then
463 ac_srcdir_defaulted=yes
464 # Try the directory containing this script, then its parent.
465 ac_prog=$0
466 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
467 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
468 srcdir=$ac_confdir
469 if test ! -r $srcdir/$ac_unique_file; then
470 srcdir=..
471 fi
472else
473 ac_srcdir_defaulted=no
474fi
475if test ! -r $srcdir/$ac_unique_file; then
476 if test "$ac_srcdir_defaulted" = yes; then
477 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
478 else
479 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
480 fi
481fi
482srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
483
484# Prefer explicitly selected file to automatically selected ones.
485if test -z "$CONFIG_SITE"; then
486 if test "x$prefix" != xNONE; then
487 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
488 else
489 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
490 fi
491fi
492for ac_site_file in $CONFIG_SITE; do
493 if test -r "$ac_site_file"; then
494 echo "loading site script $ac_site_file"
495 . "$ac_site_file"
496 fi
497done
498
499if test -r "$cache_file"; then
500 echo "loading cache $cache_file"
501 . $cache_file
502else
503 echo "creating cache $cache_file"
504 > $cache_file
505fi
506
507ac_ext=c
508# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
509ac_cpp='$CPP $CPPFLAGS'
510ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
511ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
512cross_compiling=$ac_cv_prog_cc_cross
513
514ac_exeext=
515ac_objext=o
516if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
517 # Stardent Vistra SVR4 grep lacks -e, says [email protected].
518 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
519 ac_n= ac_c='
520' ac_t=' '
521 else
522 ac_n=-n ac_c= ac_t=
523 fi
524else
525 ac_n= ac_c='\c' ac_t=
526fi
527
528echo $ac_n "checking for path separator""... $ac_c" 1>&6
529echo "configure:530: checking for path separator" >&5
530# Filter path to get backslahes into forwardslashes
531case "`uname -s 2> /dev/null`" in
532OS/2)
533 PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
534 PATH_IFS=';'
535 ;;
536*)
537 PATH_IFS=':'
538 ;;
539esac
540echo "$ac_t""${PATH_IFS}" 1>&6
541
542echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
543echo "configure:544: checking for Cygwin environment" >&5
544if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
545 echo $ac_n "(cached) $ac_c" 1>&6
546else
547 cat > conftest.$ac_ext <<EOF
548#line 549 "configure"
549#include "confdefs.h"
550
551int main() {
552
553#ifndef __CYGWIN__
554#define __CYGWIN__ __CYGWIN32__
555#endif
556return __CYGWIN__;
557; return 0; }
558EOF
559if { (eval echo configure:560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
560 rm -rf conftest*
561 ac_cv_cygwin=yes
562else
563 echo "configure: failed program was:" >&5
564 cat conftest.$ac_ext >&5
565 rm -rf conftest*
566 ac_cv_cygwin=no
567fi
568rm -f conftest*
569rm -f conftest*
570fi
571
572echo "$ac_t""$ac_cv_cygwin" 1>&6
573CYGWIN=
574test "$ac_cv_cygwin" = yes && CYGWIN=yes
575echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
576echo "configure:577: checking for mingw32 environment" >&5
577if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
578 echo $ac_n "(cached) $ac_c" 1>&6
579else
580 cat > conftest.$ac_ext <<EOF
581#line 582 "configure"
582#include "confdefs.h"
583
584int main() {
585return __MINGW32__;
586; return 0; }
587EOF
588if { (eval echo configure:589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
589 rm -rf conftest*
590 ac_cv_mingw32=yes
591else
592 echo "configure: failed program was:" >&5
593 cat conftest.$ac_ext >&5
594 rm -rf conftest*
595 ac_cv_mingw32=no
596fi
597rm -f conftest*
598rm -f conftest*
599fi
600
601echo "$ac_t""$ac_cv_mingw32" 1>&6
602MINGW32=
603test "$ac_cv_mingw32" = yes && MINGW32=yes
604echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
605echo "configure:606: checking for EMX/OS2 environment" >&5
606if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
607 echo $ac_n "(cached) $ac_c" 1>&6
608else
609 : ${CC=gcc.exe}
610cat > conftest.$ac_ext <<EOF
611#line 612 "configure"
612#include "confdefs.h"
613
614int main() {
615return __EMX__;
616; return 0; }
617EOF
618if { (eval echo configure:619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
619 rm -rf conftest*
620 ac_cv_emxos2=yes
621else
622 echo "configure: failed program was:" >&5
623 cat conftest.$ac_ext >&5
624 rm -rf conftest*
625 ac_cv_emxos2=no
626fi
627rm -f conftest*
628rm -f conftest*
629fi
630
631echo "$ac_t""$ac_cv_emxos2" 1>&6
632if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
633 echo $ac_n "(cached) $ac_c" 1>&6
634else
635 if test "$ac_cv_emxos2" = yes ; then
636 ac_cv_libpre=
637else
638 ac_cv_libpre=lib
639fi
640
641fi
642
643EMXOS2=
644test "$ac_cv_emxos2" = yes && EMXOS2=yes
645
646
647
648echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
649echo "configure:650: checking for executable suffix" >&5
650if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
651 echo $ac_n "(cached) $ac_c" 1>&6
652else
653 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
654 ac_cv_exeext=.exe
655else
656 rm -f conftest*
657 echo 'int main () { return 0; }' > conftest.$ac_ext
658 ac_cv_exeext=
659 if { (eval echo configure:660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
660 for file in conftest.*; do
661 case $file in
662 *.c | *.o | *.obj) ;;
663 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
664 esac
665 done
666 else
667 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
668 fi
669 rm -f conftest*
670 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
671fi
672fi
673
674EXEEXT=""
675test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
676echo "$ac_t""${ac_cv_exeext}" 1>&6
677ac_exeext=$EXEEXT
678
679
680ac_aux_dir=
681for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
682 if test -f $ac_dir/install-sh; then
683 ac_aux_dir=$ac_dir
684 ac_install_sh="$ac_aux_dir/install-sh -c"
685 break
686 elif test -f $ac_dir/install.sh; then
687 ac_aux_dir=$ac_dir
688 ac_install_sh="$ac_aux_dir/install.sh -c"
689 break
690 fi
691done
692if test -z "$ac_aux_dir"; then
693 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
694fi
695ac_config_guess=$ac_aux_dir/config.guess
696ac_config_sub=$ac_aux_dir/config.sub
697ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
698
699# Find a good install program. We prefer a C program (faster),
700# so one script is as good as another. But avoid the broken or
701# incompatible versions:
702# SysV /etc/install, /usr/sbin/install
703# SunOS /usr/etc/install
704# IRIX /sbin/install
705# AIX /bin/install
706# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
707# AFS /usr/afsws/bin/install, which mishandles nonexistent args
708# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
709# ./install, which can be erroneously created by make from ./install.sh.
710echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
711echo "configure:712: checking for a BSD compatible install" >&5
712if test -z "$INSTALL"; then
713if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
714 echo $ac_n "(cached) $ac_c" 1>&6
715else
716 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
717 for ac_dir in $PATH; do
718 # Account for people who put trailing slashes in PATH elements.
719 case "$ac_dir/" in
720 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
721 # We reject the install program from OS/2 or W3.1
722 */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
723 *)
724 # OSF1 and SCO ODT 3.0 have their own names for install.
725 # Don't use installbsd from OSF since it installs stuff as root
726 # by default.
727 for ac_prog in ginstall scoinst install; do
728 if test -f $ac_dir/$ac_prog$ac_exeext; then
729 if test $ac_prog = install &&
730 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
731 # AIX install. It has an incompatible calling convention.
732 :
733 else
734 ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
735 break 2
736 fi
737 fi
738 done
739 ;;
740 esac
741 done
742 IFS="$ac_save_IFS"
743
744fi
745 if test "${ac_cv_path_install+set}" = set; then
746 INSTALL="$ac_cv_path_install"
747 else
748 # As a last resort, use the slow shell script. We don't cache a
749 # path for INSTALL within a source directory, because that will
750 # break other packages using the cache if that directory is
751 # removed, or if the path is relative.
752 INSTALL="$ac_install_sh"
753 fi
754fi
755echo "$ac_t""$INSTALL" 1>&6
756
757# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
758# It thinks the first close brace ends the variable substitution.
759test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
760
761test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
762
763test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
764
765echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
766echo "configure:767: checking whether build environment is sane" >&5
767# Just in case
768sleep 1
769echo timestamp > conftestfile
770# Do `set' in a subshell so we don't clobber the current shell's
771# arguments. Must try -L first in case configure is actually a
772# symlink; some systems play weird games with the mod time of symlinks
773# (eg FreeBSD returns the mod time of the symlink's containing
774# directory).
775if (
776 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
777 if test "$*" = "X"; then
778 # -L didn't work.
779 set X `ls -t $srcdir/configure conftestfile`
780 fi
781 if test "$*" != "X $srcdir/configure conftestfile" \
782 && test "$*" != "X conftestfile $srcdir/configure"; then
783
784 # If neither matched, then we have a broken ls. This can happen
785 # if, for instance, CONFIG_SHELL is bash and it inherits a
786 # broken ls alias from the environment. This has actually
787 # happened. Such a system could not be considered "sane".
788 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
789alias in your environment" 1>&2; exit 1; }
790 fi
791
792 test "$2" = conftestfile
793 )
794then
795 # Ok.
796 :
797else
798 { echo "configure: error: newly created file is older than distributed files!
799Check your system clock" 1>&2; exit 1; }
800fi
801rm -f conftest*
802echo "$ac_t""yes" 1>&6
803if test "$program_transform_name" = s,x,x,; then
804 program_transform_name=
805else
806 # Double any \ or $. echo might interpret backslashes.
807 cat <<\EOF_SED > conftestsed
808s,\\,\\\\,g; s,\$,$$,g
809EOF_SED
810 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
811 rm -f conftestsed
812fi
813test "$program_prefix" != NONE &&
814 program_transform_name="s,^,${program_prefix},; $program_transform_name"
815# Use a double $ so make ignores it.
816test "$program_suffix" != NONE &&
817 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
818
819# sed with no file args requires a program.
820test "$program_transform_name" = "" && program_transform_name="s,x,x,"
821
822echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
823echo "configure:824: checking whether ${MAKE-make} sets \${MAKE}" >&5
824set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
825if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
826 echo $ac_n "(cached) $ac_c" 1>&6
827else
828 cat > conftestmake <<\EOF
829all:
830 @echo 'ac_maketemp="${MAKE}"'
831EOF
832# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
833eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
834if test -n "$ac_maketemp"; then
835 eval ac_cv_prog_make_${ac_make}_set=yes
836else
837 eval ac_cv_prog_make_${ac_make}_set=no
838fi
839rm -f conftestmake
840fi
841if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
842 echo "$ac_t""yes" 1>&6
843 SET_MAKE=
844else
845 echo "$ac_t""no" 1>&6
846 SET_MAKE="MAKE=${MAKE-make}"
847fi
848
849
850PACKAGE=fastjar
851
852VERSION=0.92-gcc
853
854if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
855 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
856fi
857cat >> confdefs.h <<EOF
858#define PACKAGE "$PACKAGE"
859EOF
860
861cat >> confdefs.h <<EOF
862#define VERSION "$VERSION"
863EOF
864
865
866
867missing_dir=`cd $ac_aux_dir && pwd`
868echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
869echo "configure:870: checking for working aclocal" >&5
870# Run test in a subshell; some versions of sh will print an error if
871# an executable is not found, even if stderr is redirected.
872# Redirect stdin to placate older versions of autoconf. Sigh.
873if (aclocal --version) < /dev/null > /dev/null 2>&1; then
874 ACLOCAL=aclocal
875 echo "$ac_t""found" 1>&6
876else
877 ACLOCAL="$missing_dir/missing aclocal"
878 echo "$ac_t""missing" 1>&6
879fi
880
881echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
882echo "configure:883: checking for working autoconf" >&5
883# Run test in a subshell; some versions of sh will print an error if
884# an executable is not found, even if stderr is redirected.
885# Redirect stdin to placate older versions of autoconf. Sigh.
886if (autoconf --version) < /dev/null > /dev/null 2>&1; then
887 AUTOCONF=autoconf
888 echo "$ac_t""found" 1>&6
889else
890 AUTOCONF="$missing_dir/missing autoconf"
891 echo "$ac_t""missing" 1>&6
892fi
893
894echo $ac_n "checking for working automake""... $ac_c" 1>&6
895echo "configure:896: checking for working automake" >&5
896# Run test in a subshell; some versions of sh will print an error if
897# an executable is not found, even if stderr is redirected.
898# Redirect stdin to placate older versions of autoconf. Sigh.
899if (automake --version) < /dev/null > /dev/null 2>&1; then
900 AUTOMAKE=automake
901 echo "$ac_t""found" 1>&6
902else
903 AUTOMAKE="$missing_dir/missing automake"
904 echo "$ac_t""missing" 1>&6
905fi
906
907echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
908echo "configure:909: checking for working autoheader" >&5
909# Run test in a subshell; some versions of sh will print an error if
910# an executable is not found, even if stderr is redirected.
911# Redirect stdin to placate older versions of autoconf. Sigh.
912if (autoheader --version) < /dev/null > /dev/null 2>&1; then
913 AUTOHEADER=autoheader
914 echo "$ac_t""found" 1>&6
915else
916 AUTOHEADER="$missing_dir/missing autoheader"
917 echo "$ac_t""missing" 1>&6
918fi
919
920echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
921echo "configure:922: checking for working makeinfo" >&5
922# Run test in a subshell; some versions of sh will print an error if
923# an executable is not found, even if stderr is redirected.
924# Redirect stdin to placate older versions of autoconf. Sigh.
925if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
926 MAKEINFO=makeinfo
927 echo "$ac_t""found" 1>&6
928else
929 MAKEINFO="$missing_dir/missing makeinfo"
930 echo "$ac_t""missing" 1>&6
931fi
932
933
934
935
936
937
938# Extract the first word of "gcc", so it can be a program name with args.
939set dummy gcc; ac_word=$2
940echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
941echo "configure:942: checking for $ac_word" >&5
942if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
943 echo $ac_n "(cached) $ac_c" 1>&6
944else
945 if test -n "$CC"; then
946 ac_cv_prog_CC="$CC" # Let the user override the test.
947else
948 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
949 ac_dummy="$PATH"
950 for ac_dir in $ac_dummy; do
951 test -z "$ac_dir" && ac_dir=.
952 if test -f $ac_dir/$ac_word -o \
953 -f $ac_dir/$ac_word$ac_exeext ; then
954 ac_cv_prog_CC="gcc"
955 break
956 fi
957 done
958 IFS="$ac_save_ifs"
959fi
960fi
961CC="$ac_cv_prog_CC"
962if test -n "$CC"; then
963 echo "$ac_t""$CC" 1>&6
964else
965 echo "$ac_t""no" 1>&6
966fi
967
968if test -z "$CC"; then
969 # Extract the first word of "cc", so it can be a program name with args.
970set dummy cc; ac_word=$2
971echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
972echo "configure:973: checking for $ac_word" >&5
973if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
974 echo $ac_n "(cached) $ac_c" 1>&6
975else
976 if test -n "$CC"; then
977 ac_cv_prog_CC="$CC" # Let the user override the test.
978else
979 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
980 ac_prog_rejected=no
981 ac_dummy="$PATH"
982 for ac_dir in $ac_dummy; do
983 test -z "$ac_dir" && ac_dir=.
984 if test -f $ac_dir/$ac_word -o \
985 -f $ac_dir/$ac_word$ac_exeext ; then
986 if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
987 "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
988 ac_prog_rejected=yes
989 continue
990 fi
991 ac_cv_prog_CC="cc"
992 break
993 fi
994 done
995 IFS="$ac_save_ifs"
996if test $ac_prog_rejected = yes; then
997 # We found a bogon in the path, so make sure we never use it.
998 set dummy $ac_cv_prog_CC
999 shift
1000 if test $# -gt 0; then
1001 # We chose a different compiler from the bogus one.
1002 # However, it has the same basename, so the bogon will be chosen
1003 # first if we set CC to just the basename; use the full file name.
1004 shift
1005 set dummy "$ac_dir/$ac_word" "$@"
1006 shift
1007 ac_cv_prog_CC="$@"
1008 fi
1009fi
1010fi
1011fi
1012CC="$ac_cv_prog_CC"
1013if test -n "$CC"; then
1014 echo "$ac_t""$CC" 1>&6
1015else
1016 echo "$ac_t""no" 1>&6
1017fi
1018
1019 if test -z "$CC"; then
1020 case "`uname -s`" in
1021 *win32* | *WIN32*)
1022 # Extract the first word of "cl", so it can be a program name with args.
1023set dummy cl; ac_word=$2
1024echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1025echo "configure:1026: checking for $ac_word" >&5
1026if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1027 echo $ac_n "(cached) $ac_c" 1>&6
1028else
1029 if test -n "$CC"; then
1030 ac_cv_prog_CC="$CC" # Let the user override the test.
1031else
1032 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1033 ac_dummy="$PATH"
1034 for ac_dir in $ac_dummy; do
1035 test -z "$ac_dir" && ac_dir=.
1036 if test -f $ac_dir/$ac_word -o \
1037 -f $ac_dir/$ac_word$ac_exeext ; then
1038 ac_cv_prog_CC="cl"
1039 break
1040 fi
1041 done
1042 IFS="$ac_save_ifs"
1043fi
1044fi
1045CC="$ac_cv_prog_CC"
1046if test -n "$CC"; then
1047 echo "$ac_t""$CC" 1>&6
1048else
1049 echo "$ac_t""no" 1>&6
1050fi
1051 ;;
1052 esac
1053 fi
1054 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1055fi
1056
1057echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1058echo "configure:1059: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1059
1060ac_ext=c
1061# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1062ac_cpp='$CPP $CPPFLAGS'
1063ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1064ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1065cross_compiling=$ac_cv_prog_cc_cross
1066
1067cat > conftest.$ac_ext << EOF
1068
1069#line 1070 "configure"
1070#include "confdefs.h"
1071
1072main(){return(0);}
1073EOF
1074if { (eval echo configure:1075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1075 ac_cv_prog_cc_works=yes
1076 # If we can't run a trivial program, we are probably using a cross compiler.
1077 if (./conftest; exit) 2>/dev/null; then
1078 ac_cv_prog_cc_cross=no
1079 else
1080 ac_cv_prog_cc_cross=yes
1081 fi
1082else
1083 echo "configure: failed program was:" >&5
1084 cat conftest.$ac_ext >&5
1085 ac_cv_prog_cc_works=no
1086fi
1087rm -fr conftest*
1088ac_ext=c
1089# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1090ac_cpp='$CPP $CPPFLAGS'
1091ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1092ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1093cross_compiling=$ac_cv_prog_cc_cross
1094
1095echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1096if test $ac_cv_prog_cc_works = no; then
1097 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1098fi
1099echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1100echo "configure:1101: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1101echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1102cross_compiling=$ac_cv_prog_cc_cross
1103
1104echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1105echo "configure:1106: checking whether we are using GNU C" >&5
1106if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1107 echo $ac_n "(cached) $ac_c" 1>&6
1108else
1109 cat > conftest.c <<EOF
1110#ifdef __GNUC__
1111 yes;
1112#endif
1113EOF
1114if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1115 ac_cv_prog_gcc=yes
1116else
1117 ac_cv_prog_gcc=no
1118fi
1119fi
1120
1121echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1122
1123if test $ac_cv_prog_gcc = yes; then
1124 GCC=yes
1125else
1126 GCC=
1127fi
1128
1129ac_test_CFLAGS="${CFLAGS+set}"
1130ac_save_CFLAGS="$CFLAGS"
1131CFLAGS=
1132echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1133echo "configure:1134: checking whether ${CC-cc} accepts -g" >&5
1134if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1135 echo $ac_n "(cached) $ac_c" 1>&6
1136else
1137 echo 'void f(){}' > conftest.c
1138if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1139 ac_cv_prog_cc_g=yes
1140else
1141 ac_cv_prog_cc_g=no
1142fi
1143rm -f conftest*
1144
1145fi
1146
1147echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1148if test "$ac_test_CFLAGS" = set; then
1149 CFLAGS="$ac_save_CFLAGS"
1150elif test $ac_cv_prog_cc_g = yes; then
1151 if test "$GCC" = yes; then
1152 CFLAGS="-g -O2"
1153 else
1154 CFLAGS="-g"
1155 fi
1156else
1157 if test "$GCC" = yes; then
1158 CFLAGS="-O2"
1159 else
1160 CFLAGS=
1161 fi
1162fi
1163
1164# Find a good install program. We prefer a C program (faster),
1165# so one script is as good as another. But avoid the broken or
1166# incompatible versions:
1167# SysV /etc/install, /usr/sbin/install
1168# SunOS /usr/etc/install
1169# IRIX /sbin/install
1170# AIX /bin/install
1171# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1172# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1173# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1174# ./install, which can be erroneously created by make from ./install.sh.
1175echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1176echo "configure:1177: checking for a BSD compatible install" >&5
1177if test -z "$INSTALL"; then
1178if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1179 echo $ac_n "(cached) $ac_c" 1>&6
1180else
1181 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
1182 for ac_dir in $PATH; do
1183 # Account for people who put trailing slashes in PATH elements.
1184 case "$ac_dir/" in
1185 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1186 # We reject the install program from OS/2 or W3.1
1187 */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
1188 *)
1189 # OSF1 and SCO ODT 3.0 have their own names for install.
1190 # Don't use installbsd from OSF since it installs stuff as root
1191 # by default.
1192 for ac_prog in ginstall scoinst install; do
1193 if test -f $ac_dir/$ac_prog$ac_exeext; then
1194 if test $ac_prog = install &&
1195 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1196 # AIX install. It has an incompatible calling convention.
1197 :
1198 else
1199 ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
1200 break 2
1201 fi
1202 fi
1203 done
1204 ;;
1205 esac
1206 done
1207 IFS="$ac_save_IFS"
1208
1209fi
1210 if test "${ac_cv_path_install+set}" = set; then
1211 INSTALL="$ac_cv_path_install"
1212 else
1213 # As a last resort, use the slow shell script. We don't cache a
1214 # path for INSTALL within a source directory, because that will
1215 # break other packages using the cache if that directory is
1216 # removed, or if the path is relative.
1217 INSTALL="$ac_install_sh"
1218 fi
1219fi
1220echo "$ac_t""$INSTALL" 1>&6
1221
1222# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1223# It thinks the first close brace ends the variable substitution.
1224test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1225
1226test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1227
1228test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1229
1230# Extract the first word of "rm", so it can be a program name with args.
1231set dummy rm; ac_word=$2
1232echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1233echo "configure:1234: checking for $ac_word" >&5
1234if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1235 echo $ac_n "(cached) $ac_c" 1>&6
1236else
1237 case "$RM" in
1238 [/\\]* | [a-zA-Z]:*)
1239 ac_cv_path_RM="$RM" # Let the user override the test with a path.
1240 ;;
1241 ?:/*)
1242 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
1243 ;;
1244 *)
1245 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1246 ac_dummy="`echo -E "$PATH:/bin:/usr/bin:/usr/local/bin" | sed 's+\\\\+/+g'`"
1247 for ac_dir in $ac_dummy; do
1248 test -z "$ac_dir" && ac_dir=.
1249 if test -f $ac_dir/$ac_word; then
1250 ac_cv_path_RM="$ac_dir/$ac_word"
1251 break
1252 fi
1253 if test -f $ac_dir/$ac_word$ac_exeext; then
1254 ac_cv_path_RM="$ac_dir/$ac_word$ac_exeext"
1255 break
1256 fi
1257 done
1258 IFS="$ac_save_ifs"
1259 test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
1260 ;;
1261esac
1262fi
1263RM="$ac_cv_path_RM"
1264if test -n "$RM"; then
1265 echo "$ac_t""$RM" 1>&6
1266else
1267 echo "$ac_t""no" 1>&6
1268fi
1269
1270# Extract the first word of "cp", so it can be a program name with args.
1271set dummy cp; ac_word=$2
1272echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1273echo "configure:1274: checking for $ac_word" >&5
1274if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
1275 echo $ac_n "(cached) $ac_c" 1>&6
1276else
1277 case "$CP" in
1278 [/\\]* | [a-zA-Z]:*)
1279 ac_cv_path_CP="$CP" # Let the user override the test with a path.
1280 ;;
1281 ?:/*)
1282 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
1283 ;;
1284 *)
1285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1286 ac_dummy="`echo -E "$PATH:/bin:/usr/bin:/usr/local/bin" | sed 's+\\\\+/+g'`"
1287 for ac_dir in $ac_dummy; do
1288 test -z "$ac_dir" && ac_dir=.
1289 if test -f $ac_dir/$ac_word; then
1290 ac_cv_path_CP="$ac_dir/$ac_word"
1291 break
1292 fi
1293 if test -f $ac_dir/$ac_word$ac_exeext; then
1294 ac_cv_path_CP="$ac_dir/$ac_word$ac_exeext"
1295 break
1296 fi
1297 done
1298 IFS="$ac_save_ifs"
1299 test -z "$ac_cv_path_CP" && ac_cv_path_CP="/bin/cp"
1300 ;;
1301esac
1302fi
1303CP="$ac_cv_path_CP"
1304if test -n "$CP"; then
1305 echo "$ac_t""$CP" 1>&6
1306else
1307 echo "$ac_t""no" 1>&6
1308fi
1309
1310# Extract the first word of "strip", so it can be a program name with args.
1311set dummy strip; ac_word=$2
1312echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1313echo "configure:1314: checking for $ac_word" >&5
1314if eval "test \"`echo '$''{'ac_cv_path_STRIP'+set}'`\" = set"; then
1315 echo $ac_n "(cached) $ac_c" 1>&6
1316else
1317 case "$STRIP" in
1318 [/\\]* | [a-zA-Z]:*)
1319 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
1320 ;;
1321 ?:/*)
1322 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a dos path.
1323 ;;
1324 *)
1325 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1326 ac_dummy="`echo -E "$PATH:/bin:/usr/bin:/usr/local/bin" | sed 's+\\\\+/+g'`"
1327 for ac_dir in $ac_dummy; do
1328 test -z "$ac_dir" && ac_dir=.
1329 if test -f $ac_dir/$ac_word; then
1330 ac_cv_path_STRIP="$ac_dir/$ac_word"
1331 break
1332 fi
1333 if test -f $ac_dir/$ac_word$ac_exeext; then
1334 ac_cv_path_STRIP="$ac_dir/$ac_word$ac_exeext"
1335 break
1336 fi
1337 done
1338 IFS="$ac_save_ifs"
1339 test -z "$ac_cv_path_STRIP" && ac_cv_path_STRIP="/usr/bin/strip"
1340 ;;
1341esac
1342fi
1343STRIP="$ac_cv_path_STRIP"
1344if test -n "$STRIP"; then
1345 echo "$ac_t""$STRIP" 1>&6
1346else
1347 echo "$ac_t""no" 1>&6
1348fi
1349
1350# Extract the first word of "chmod", so it can be a program name with args.
1351set dummy chmod; ac_word=$2
1352echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1353echo "configure:1354: checking for $ac_word" >&5
1354if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
1355 echo $ac_n "(cached) $ac_c" 1>&6
1356else
1357 case "$CHMOD" in
1358 [/\\]* | [a-zA-Z]:*)
1359 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
1360 ;;
1361 ?:/*)
1362 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
1363 ;;
1364 *)
1365 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1366 ac_dummy="`echo -E "$PATH:/bin:/usr/bin:/usr/local/bin" | sed 's+\\\\+/+g'`"
1367 for ac_dir in $ac_dummy; do
1368 test -z "$ac_dir" && ac_dir=.
1369 if test -f $ac_dir/$ac_word; then
1370 ac_cv_path_CHMOD="$ac_dir/$ac_word"