]> cygwin.com Git - cygwin-apps/setup.git/blame - configure
* net.cc (do_net): Default to direct download.
[cygwin-apps/setup.git] / configure
CommitLineData
739457f4
CF
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:
14
15# Initialize some variables set by options.
16# The variables have the same names as the options, with
17# dashes changed to underlines.
18build=NONE
19cache_file=./config.cache
20exec_prefix=NONE
21host=NONE
22no_create=
23nonopt=NONE
24no_recursion=
25prefix=NONE
26program_prefix=NONE
27program_suffix=NONE
28program_transform_name=s,x,x,
29silent=
30site=
31sitefile=
32srcdir=
33target=NONE
34verbose=
35x_includes=NONE
36x_libraries=NONE
37bindir='${exec_prefix}/bin'
38sbindir='${exec_prefix}/sbin'
39libexecdir='${exec_prefix}/libexec'
40datadir='${prefix}/share'
41sysconfdir='${prefix}/etc'
42sharedstatedir='${prefix}/com'
43localstatedir='${prefix}/var'
44libdir='${exec_prefix}/lib'
45includedir='${prefix}/include'
46oldincludedir='/usr/include'
47infodir='${prefix}/info'
48mandir='${prefix}/man'
49
50# Initialize some other variables.
51subdirs=
52MFLAGS= MAKEFLAGS=
53SHELL=${CONFIG_SHELL-/bin/sh}
54# Maximum number of lines to put in a shell here document.
55ac_max_here_lines=12
56
57ac_prev=
58for ac_option
59do
60
61 # If the previous option needs an argument, assign it.
62 if test -n "$ac_prev"; then
63 eval "$ac_prev=\$ac_option"
64 ac_prev=
65 continue
66 fi
67
68 case "$ac_option" in
69 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
70 *) ac_optarg= ;;
71 esac
72
73 # Accept the important Cygnus configure options, so we can diagnose typos.
74
75 case "$ac_option" in
76
77 -bindir | --bindir | --bindi | --bind | --bin | --bi)
78 ac_prev=bindir ;;
79 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
80 bindir="$ac_optarg" ;;
81
82 -build | --build | --buil | --bui | --bu)
83 ac_prev=build ;;
84 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
85 build="$ac_optarg" ;;
86
87 -cache-file | --cache-file | --cache-fil | --cache-fi \
88 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
89 ac_prev=cache_file ;;
90 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
91 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
92 cache_file="$ac_optarg" ;;
93
94 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
95 ac_prev=datadir ;;
96 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
97 | --da=*)
98 datadir="$ac_optarg" ;;
99
100 -disable-* | --disable-*)
101 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
102 # Reject names that are not valid shell variable names.
103 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
104 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
105 fi
106 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
107 eval "enable_${ac_feature}=no" ;;
108
109 -enable-* | --enable-*)
110 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
111 # Reject names that are not valid shell variable names.
112 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
113 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114 fi
115 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
116 case "$ac_option" in
117 *=*) ;;
118 *) ac_optarg=yes ;;
119 esac
120 eval "enable_${ac_feature}='$ac_optarg'" ;;
121
122 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
123 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
124 | --exec | --exe | --ex)
125 ac_prev=exec_prefix ;;
126 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
127 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
128 | --exec=* | --exe=* | --ex=*)
129 exec_prefix="$ac_optarg" ;;
130
131 -gas | --gas | --ga | --g)
132 # Obsolete; use --with-gas.
133 with_gas=yes ;;
134
135 -help | --help | --hel | --he)
136 # Omit some internal or obsolete options to make the list less imposing.
137 # This message is too long to be a string in the A/UX 3.1 sh.
138 cat << EOF
139Usage: configure [options] [host]
140Options: [defaults in brackets after descriptions]
141Configuration:
142 --cache-file=FILE cache test results in FILE
143 --help print this message
144 --no-create do not create output files
145 --quiet, --silent do not print \`checking...' messages
146 --site-file=FILE use FILE as the site file
147 --version print the version of autoconf that created configure
148Directory and file names:
149 --prefix=PREFIX install architecture-independent files in PREFIX
150 [$ac_default_prefix]
151 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
152 [same as prefix]
153 --bindir=DIR user executables in DIR [EPREFIX/bin]
154 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
155 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
156 --datadir=DIR read-only architecture-independent data in DIR
157 [PREFIX/share]
158 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
159 --sharedstatedir=DIR modifiable architecture-independent data in DIR
160 [PREFIX/com]
161 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
162 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
163 --includedir=DIR C header files in DIR [PREFIX/include]
164 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
165 --infodir=DIR info documentation in DIR [PREFIX/info]
166 --mandir=DIR man documentation in DIR [PREFIX/man]
167 --srcdir=DIR find the sources in DIR [configure dir or ..]
168 --program-prefix=PREFIX prepend PREFIX to installed program names
169 --program-suffix=SUFFIX append SUFFIX to installed program names
170 --program-transform-name=PROGRAM
171 run sed PROGRAM on installed program names
172EOF
173 cat << EOF
174Host type:
175 --build=BUILD configure for building on BUILD [BUILD=HOST]
176 --host=HOST configure for HOST [guessed]
177 --target=TARGET configure for TARGET [TARGET=HOST]
178Features and packages:
179 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
180 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
181 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
182 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
183 --x-includes=DIR X include files are in DIR
184 --x-libraries=DIR X library files are in DIR
185EOF
186 if test -n "$ac_help"; then
187 echo "--enable and --with options recognized:$ac_help"
188 fi
189 exit 0 ;;
190
191 -host | --host | --hos | --ho)
192 ac_prev=host ;;
193 -host=* | --host=* | --hos=* | --ho=*)
194 host="$ac_optarg" ;;
195
196 -includedir | --includedir | --includedi | --included | --include \
197 | --includ | --inclu | --incl | --inc)
198 ac_prev=includedir ;;
199 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
200 | --includ=* | --inclu=* | --incl=* | --inc=*)
201 includedir="$ac_optarg" ;;
202
203 -infodir | --infodir | --infodi | --infod | --info | --inf)
204 ac_prev=infodir ;;
205 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
206 infodir="$ac_optarg" ;;
207
208 -libdir | --libdir | --libdi | --libd)
209 ac_prev=libdir ;;
210 -libdir=* | --libdir=* | --libdi=* | --libd=*)
211 libdir="$ac_optarg" ;;
212
213 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
214 | --libexe | --libex | --libe)
215 ac_prev=libexecdir ;;
216 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
217 | --libexe=* | --libex=* | --libe=*)
218 libexecdir="$ac_optarg" ;;
219
220 -localstatedir | --localstatedir | --localstatedi | --localstated \
221 | --localstate | --localstat | --localsta | --localst \
222 | --locals | --local | --loca | --loc | --lo)
223 ac_prev=localstatedir ;;
224 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
225 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
226 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
227 localstatedir="$ac_optarg" ;;
228
229 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
230 ac_prev=mandir ;;
231 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
232 mandir="$ac_optarg" ;;
233
234 -nfp | --nfp | --nf)
235 # Obsolete; use --without-fp.
236 with_fp=no ;;
237
238 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
239 | --no-cr | --no-c)
240 no_create=yes ;;
241
242 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
243 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
244 no_recursion=yes ;;
245
246 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
247 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
248 | --oldin | --oldi | --old | --ol | --o)
249 ac_prev=oldincludedir ;;
250 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
251 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
252 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
253 oldincludedir="$ac_optarg" ;;
254
255 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
256 ac_prev=prefix ;;
257 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
258 prefix="$ac_optarg" ;;
259
260 -program-prefix | --program-prefix | --program-prefi | --program-pref \
261 | --program-pre | --program-pr | --program-p)
262 ac_prev=program_prefix ;;
263 -program-prefix=* | --program-prefix=* | --program-prefi=* \
264 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
265 program_prefix="$ac_optarg" ;;
266
267 -program-suffix | --program-suffix | --program-suffi | --program-suff \
268 | --program-suf | --program-su | --program-s)
269 ac_prev=program_suffix ;;
270 -program-suffix=* | --program-suffix=* | --program-suffi=* \
271 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
272 program_suffix="$ac_optarg" ;;
273
274 -program-transform-name | --program-transform-name \
275 | --program-transform-nam | --program-transform-na \
276 | --program-transform-n | --program-transform- \
277 | --program-transform | --program-transfor \
278 | --program-transfo | --program-transf \
279 | --program-trans | --program-tran \
280 | --progr-tra | --program-tr | --program-t)
281 ac_prev=program_transform_name ;;
282 -program-transform-name=* | --program-transform-name=* \
283 | --program-transform-nam=* | --program-transform-na=* \
284 | --program-transform-n=* | --program-transform-=* \
285 | --program-transform=* | --program-transfor=* \
286 | --program-transfo=* | --program-transf=* \
287 | --program-trans=* | --program-tran=* \
288 | --progr-tra=* | --program-tr=* | --program-t=*)
289 program_transform_name="$ac_optarg" ;;
290
291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
292 | -silent | --silent | --silen | --sile | --sil)
293 silent=yes ;;
294
295 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
296 ac_prev=sbindir ;;
297 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
298 | --sbi=* | --sb=*)
299 sbindir="$ac_optarg" ;;
300
301 -sharedstatedir | --sharedstatedir | --sharedstatedi \
302 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
303 | --sharedst | --shareds | --shared | --share | --shar \
304 | --sha | --sh)
305 ac_prev=sharedstatedir ;;
306 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
307 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
308 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
309 | --sha=* | --sh=*)
310 sharedstatedir="$ac_optarg" ;;
311
312 -site | --site | --sit)
313 ac_prev=site ;;
314 -site=* | --site=* | --sit=*)
315 site="$ac_optarg" ;;
316
317 -site-file | --site-file | --site-fil | --site-fi | --site-f)
318 ac_prev=sitefile ;;
319 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
320 sitefile="$ac_optarg" ;;
321
322 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
323 ac_prev=srcdir ;;
324 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
325 srcdir="$ac_optarg" ;;
326
327 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
328 | --syscon | --sysco | --sysc | --sys | --sy)
329 ac_prev=sysconfdir ;;
330 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
331 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
332 sysconfdir="$ac_optarg" ;;
333
334 -target | --target | --targe | --targ | --tar | --ta | --t)
335 ac_prev=target ;;
336 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
337 target="$ac_optarg" ;;
338
339 -v | -verbose | --verbose | --verbos | --verbo | --verb)
340 verbose=yes ;;
341
342 -version | --version | --versio | --versi | --vers)
343 echo "configure generated by autoconf version 2.13"
344 exit 0 ;;
345
346 -with-* | --with-*)
347 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
348 # Reject names that are not valid shell variable names.
349 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
350 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
351 fi
352 ac_package=`echo $ac_package| sed 's/-/_/g'`
353 case "$ac_option" in
354 *=*) ;;
355 *) ac_optarg=yes ;;
356 esac
357 eval "with_${ac_package}='$ac_optarg'" ;;
358
359 -without-* | --without-*)
360 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
361 # Reject names that are not valid shell variable names.
362 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364 fi
365 ac_package=`echo $ac_package| sed 's/-/_/g'`
366 eval "with_${ac_package}=no" ;;
367
368 --x)
369 # Obsolete; use --with-x.
370 with_x=yes ;;
371
372 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
373 | --x-incl | --x-inc | --x-in | --x-i)
374 ac_prev=x_includes ;;
375 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
376 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
377 x_includes="$ac_optarg" ;;
378
379 -x-libraries | --x-libraries | --x-librarie | --x-librari \
380 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
381 ac_prev=x_libraries ;;
382 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
383 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
384 x_libraries="$ac_optarg" ;;
385
386 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
387 ;;
388
389 *)
390 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
391 echo "configure: warning: $ac_option: invalid host type" 1>&2
392 fi
393 if test "x$nonopt" != xNONE; then
394 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
395 fi
396 nonopt="$ac_option"
397 ;;
398
399 esac
400done
401
402if test -n "$ac_prev"; then
403 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
404fi
405
406trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
407
408# File descriptor usage:
409# 0 standard input
410# 1 file creation
411# 2 errors and warnings
412# 3 some systems may open it to /dev/tty
413# 4 used on the Kubota Titan
414# 6 checking for... messages and results
415# 5 compiler messages saved in config.log
416if test "$silent" = yes; then
417 exec 6>/dev/null
418else
419 exec 6>&1
420fi
421exec 5>./config.log
422
423echo "\
424This file contains any messages produced by compilers while
425running configure, to aid debugging if configure makes a mistake.
426" 1>&5
427
428# Strip out --no-create and --no-recursion so they do not pile up.
429# Also quote any args containing shell metacharacters.
430ac_configure_args=
431for ac_arg
432do
433 case "$ac_arg" in
434 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
435 | --no-cr | --no-c) ;;
436 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
437 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
438 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
439 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
440 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
441 esac
442done
443
444# NLS nuisances.
445# Only set these to C if already set. These must not be set unconditionally
446# because not all systems understand e.g. LANG=C (notably SCO).
447# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
448# Non-C LC_CTYPE values break the ctype check.
449if test "${LANG+set}" = set; then LANG=C; export LANG; fi
450if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
451if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
452if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
453
454# confdefs.h avoids OS command line length limits that DEFS can exceed.
455rm -rf conftest* confdefs.h
456# AIX cpp loses on an empty file, so make sure it contains at least a newline.
457echo > confdefs.h
458
459# A filename unique to this package, relative to the directory that
460# configure is in, which we can look for to find out if srcdir is correct.
461ac_unique_file=Makefile.in
462
463# Find the source files, if location was not specified.
464if test -z "$srcdir"; then
465 ac_srcdir_defaulted=yes
466 # Try the directory containing this script, then its parent.
467 ac_prog=$0
468 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
469 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
470 srcdir=$ac_confdir
471 if test ! -r $srcdir/$ac_unique_file; then
472 srcdir=..
473 fi
474else
475 ac_srcdir_defaulted=no
476fi
477if test ! -r $srcdir/$ac_unique_file; then
478 if test "$ac_srcdir_defaulted" = yes; then
479 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
480 else
481 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
482 fi
483fi
484srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
485
486# Prefer explicitly selected file to automatically selected ones.
487if test -z "$sitefile"; then
488 if test -z "$CONFIG_SITE"; then
489 if test "x$prefix" != xNONE; then
490 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
491 else
492 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
493 fi
494 fi
495else
496 CONFIG_SITE="$sitefile"
497fi
498for ac_site_file in $CONFIG_SITE; do
499 if test -r "$ac_site_file"; then
500 echo "loading site script $ac_site_file"
501 . "$ac_site_file"
502 fi
503done
504
505if test -r "$cache_file"; then
506 echo "loading cache $cache_file"
507 . $cache_file
508else
509 echo "creating cache $cache_file"
510 > $cache_file
511fi
512
513ac_ext=c
514# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
515ac_cpp='$CPP $CPPFLAGS'
516ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
517ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
518cross_compiling=$ac_cv_prog_cc_cross
519
520ac_exeext=
521ac_objext=o
522if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
523 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
524 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
525 ac_n= ac_c='
526' ac_t=' '
527 else
528 ac_n=-n ac_c= ac_t=
529 fi
530else
531 ac_n= ac_c='\c' ac_t=
532fi
533
534
535
536
537
538
72826a5b
CF
539
540
541ac_aux_dir=
542for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
543 if test -f $ac_dir/install-sh; then
544 ac_aux_dir=$ac_dir
545 ac_install_sh="$ac_aux_dir/install-sh -c"
546 break
547 elif test -f $ac_dir/install.sh; then
548 ac_aux_dir=$ac_dir
549 ac_install_sh="$ac_aux_dir/install.sh -c"
550 break
551 fi
552done
553if test -z "$ac_aux_dir"; then
554 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
555fi
556ac_config_guess=$ac_aux_dir/config.guess
557ac_config_sub=$ac_aux_dir/config.sub
558ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
559
560
561# Do some error checking and defaulting for the host and target type.
562# The inputs are:
563# configure --host=HOST --target=TARGET --build=BUILD NONOPT
564#
565# The rules are:
566# 1. You are not allowed to specify --host, --target, and nonopt at the
567# same time.
568# 2. Host defaults to nonopt.
569# 3. If nonopt is not specified, then host defaults to the current host,
570# as determined by config.guess.
571# 4. Target and build default to nonopt.
572# 5. If nonopt is not specified, then target and build default to host.
573
574# The aliases save the names the user supplied, while $host etc.
575# will get canonicalized.
576case $host---$target---$nonopt in
577NONE---*---* | *---NONE---* | *---*---NONE) ;;
578*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
579esac
580
581
582# Make sure we can run config.sub.
583if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
584else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
585fi
586
587echo $ac_n "checking host system type""... $ac_c" 1>&6
588echo "configure:589: checking host system type" >&5
589
590host_alias=$host
591case "$host_alias" in
592NONE)
593 case $nonopt in
594 NONE)
595 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
596 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
597 fi ;;
598 *) host_alias=$nonopt ;;
599 esac ;;
600esac
601
602host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
603host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
604host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
605host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
606echo "$ac_t""$host" 1>&6
607
608echo $ac_n "checking target system type""... $ac_c" 1>&6
609echo "configure:610: checking target system type" >&5
610
611target_alias=$target
612case "$target_alias" in
613NONE)
614 case $nonopt in
615 NONE) target_alias=$host_alias ;;
616 *) target_alias=$nonopt ;;
617 esac ;;
618esac
619
620target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
621target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
622target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
623target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
624echo "$ac_t""$target" 1>&6
625
626echo $ac_n "checking build system type""... $ac_c" 1>&6
627echo "configure:628: checking build system type" >&5
628
629build_alias=$build
630case "$build_alias" in
631NONE)
632 case $nonopt in
633 NONE) build_alias=$host_alias ;;
634 *) build_alias=$nonopt ;;
635 esac ;;
636esac
637
638build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
639build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
640build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
641build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
642echo "$ac_t""$build" 1>&6
643
644test "$host_alias" != "$target_alias" &&
645 test "$program_prefix$program_suffix$program_transform_name" = \
646 NONENONEs,x,x, &&
647 program_prefix=${target_alias}-
648
649
739457f4
CF
650# Extract the first word of "gcc", so it can be a program name with args.
651set dummy gcc; ac_word=$2
652echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
72826a5b 653echo "configure:654: checking for $ac_word" >&5
739457f4
CF
654if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
655 echo $ac_n "(cached) $ac_c" 1>&6
656else
657 if test -n "$CC"; then
658 ac_cv_prog_CC="$CC" # Let the user override the test.
659else
660 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
661 ac_dummy="$PATH"
662 for ac_dir in $ac_dummy; do
663 test -z "$ac_dir" && ac_dir=.
664 if test -f $ac_dir/$ac_word; then
665 ac_cv_prog_CC="gcc"
666 break
667 fi
668 done
669 IFS="$ac_save_ifs"
670fi
671fi
672CC="$ac_cv_prog_CC"
673if test -n "$CC"; then
674 echo "$ac_t""$CC" 1>&6
675else
676 echo "$ac_t""no" 1>&6
677fi
678
679if test -z "$CC"; then
680 # Extract the first word of "cc", so it can be a program name with args.
681set dummy cc; ac_word=$2
682echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
72826a5b 683echo "configure:684: checking for $ac_word" >&5
739457f4
CF
684if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
685 echo $ac_n "(cached) $ac_c" 1>&6
686else
687 if test -n "$CC"; then
688 ac_cv_prog_CC="$CC" # Let the user override the test.
689else
690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
691 ac_prog_rejected=no
692 ac_dummy="$PATH"
693 for ac_dir in $ac_dummy; do
694 test -z "$ac_dir" && ac_dir=.
695 if test -f $ac_dir/$ac_word; then
696 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
697 ac_prog_rejected=yes
698 continue
699 fi
700 ac_cv_prog_CC="cc"
701 break
702 fi
703 done
704 IFS="$ac_save_ifs"
705if test $ac_prog_rejected = yes; then
706 # We found a bogon in the path, so make sure we never use it.
707 set dummy $ac_cv_prog_CC
708 shift
709 if test $# -gt 0; then
710 # We chose a different compiler from the bogus one.
711 # However, it has the same basename, so the bogon will be chosen
712 # first if we set CC to just the basename; use the full file name.
713 shift
714 set dummy "$ac_dir/$ac_word" "$@"
715 shift
716 ac_cv_prog_CC="$@"
717 fi
718fi
719fi
720fi
721CC="$ac_cv_prog_CC"
722if test -n "$CC"; then
723 echo "$ac_t""$CC" 1>&6
724else
725 echo "$ac_t""no" 1>&6
726fi
727
728 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
729fi
730
731echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
72826a5b 732echo "configure:733: checking whether we are using GNU C" >&5
739457f4
CF
733if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
734 echo $ac_n "(cached) $ac_c" 1>&6
735else
736 cat > conftest.c <<EOF
737#ifdef __GNUC__
738 yes;
739#endif
740EOF
72826a5b 741if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
739457f4
CF
742 ac_cv_prog_gcc=yes
743else
744 ac_cv_prog_gcc=no
745fi
746fi
747
748echo "$ac_t""$ac_cv_prog_gcc" 1>&6
749
750if test $ac_cv_prog_gcc = yes; then
751 GCC=yes
752 ac_test_CFLAGS="${CFLAGS+set}"
753 ac_save_CFLAGS="$CFLAGS"
754 CFLAGS=
755 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
72826a5b 756echo "configure:757: checking whether ${CC-cc} accepts -g" >&5
739457f4
CF
757if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
758 echo $ac_n "(cached) $ac_c" 1>&6
759else
760 echo 'void f(){}' > conftest.c
761if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
762 ac_cv_prog_cc_g=yes
763else
764 ac_cv_prog_cc_g=no
765fi
766rm -f conftest*
767
768fi
769
770echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
771 if test "$ac_test_CFLAGS" = set; then
772 CFLAGS="$ac_save_CFLAGS"
773 elif test $ac_cv_prog_cc_g = yes; then
774 CFLAGS="-g -O2"
775 else
776 CFLAGS="-O2"
777 fi
778else
779 GCC=
780 test "${CFLAGS+set}" = set || CFLAGS="-g"
781fi
782
72826a5b
CF
783if test $host != $build; then
784 ac_tool_prefix=${host_alias}-
785else
786 ac_tool_prefix=
739457f4 787fi
739457f4 788
72826a5b
CF
789# Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
790set dummy ${ac_tool_prefix}g++; ac_word=$2
791echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
792echo "configure:793: checking for $ac_word" >&5
793if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
794 echo $ac_n "(cached) $ac_c" 1>&6
795else
796 if test -n "$CXX"; then
797 ac_cv_prog_CXX="$CXX" # Let the user override the test.
798else
799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
800 ac_dummy="$PATH"
801 for ac_dir in $ac_dummy; do
802 test -z "$ac_dir" && ac_dir=.
803 if test -f $ac_dir/$ac_word; then
804 ac_cv_prog_CXX="${ac_tool_prefix}g++"
805 break
806 fi
807 done
808 IFS="$ac_save_ifs"
809fi
810fi
811CXX="$ac_cv_prog_CXX"
812if test -n "$CXX"; then
813 echo "$ac_t""$CXX" 1>&6
814else
815 echo "$ac_t""no" 1>&6
739457f4
CF
816fi
817
739457f4 818
72826a5b
CF
819if test -z "$ac_cv_prog_CXX"; then
820if test -n "$ac_tool_prefix"; then
821 # Extract the first word of "g++", so it can be a program name with args.
822set dummy g++; ac_word=$2
823echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
824echo "configure:825: checking for $ac_word" >&5
825if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
826 echo $ac_n "(cached) $ac_c" 1>&6
827else
828 if test -n "$CXX"; then
829 ac_cv_prog_CXX="$CXX" # Let the user override the test.
830else
831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
832 ac_dummy="$PATH"
833 for ac_dir in $ac_dummy; do
834 test -z "$ac_dir" && ac_dir=.
835 if test -f $ac_dir/$ac_word; then
836 ac_cv_prog_CXX="g++"
837 break
838 fi
839 done
840 IFS="$ac_save_ifs"
841 test -z "$ac_cv_prog_CXX" && ac_cv_prog_CXX="g++"
842fi
843fi
844CXX="$ac_cv_prog_CXX"
845if test -n "$CXX"; then
846 echo "$ac_t""$CXX" 1>&6
847else
848 echo "$ac_t""no" 1>&6
849fi
739457f4 850
72826a5b
CF
851else
852 CXX="g++"
853fi
854fi
739457f4 855
72826a5b
CF
856if test -z "$CXX"; then
857 # Extract the first word of "c++", so it can be a program name with args.
858set dummy c++; ac_word=$2
859echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
860echo "configure:861: checking for $ac_word" >&5
861if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
862 echo $ac_n "(cached) $ac_c" 1>&6
863else
864 if test -n "$CXX"; then
865 ac_cv_prog_CXX="$CXX" # Let the user override the test.
866else
867 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
868 ac_dummy="$PATH"
869 for ac_dir in $ac_dummy; do
870 test -z "$ac_dir" && ac_dir=.
871 if test -f $ac_dir/$ac_word; then
872 ac_cv_prog_CXX="c++"
873 break
874 fi
875 done
876 IFS="$ac_save_ifs"
877fi
878fi
879CXX="$ac_cv_prog_CXX"
880if test -n "$CXX"; then
881 echo "$ac_t""$CXX" 1>&6
882else
883 echo "$ac_t""no" 1>&6
884fi
739457f4 885
72826a5b
CF
886 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
887fi
739457f4 888
72826a5b 889CXXFLAGS="$(CFLAGS)"
739457f4 890
739457f4
CF
891
892if test "$program_transform_name" = s,x,x,; then
893 program_transform_name=
894else
895 # Double any \ or $. echo might interpret backslashes.
896 cat <<\EOF_SED > conftestsed
897s,\\,\\\\,g; s,\$,$$,g
898EOF_SED
899 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
900 rm -f conftestsed
901fi
902test "$program_prefix" != NONE &&
903 program_transform_name="s,^,${program_prefix},; $program_transform_name"
904# Use a double $ so make ignores it.
905test "$program_suffix" != NONE &&
906 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
907
908# sed with no file args requires a program.
909test "$program_transform_name" = "" && program_transform_name="s,x,x,"
910
911
912if test "x$cross_compiling" = "xyes"; then
913 if test "x$program_transform_name" = "xs,x,x,"; then
914 program_transform_name=""
915 fi
916 if test "x$program_transform_name" = "x"; then
917 program_transform_name="s,^,$host-,"
918 else
919 program_transform_name="$program_transform_name -e s,^,$host-,"
920 fi
921fi
922
923# Find a good install program. We prefer a C program (faster),
924# so one script is as good as another. But avoid the broken or
925# incompatible versions:
926# SysV /etc/install, /usr/sbin/install
927# SunOS /usr/etc/install
928# IRIX /sbin/install
929# AIX /bin/install
930# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
931# AFS /usr/afsws/bin/install, which mishandles nonexistent args
932# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
933# ./install, which can be erroneously created by make from ./install.sh.
934echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
72826a5b 935echo "configure:936: checking for a BSD compatible install" >&5
739457f4
CF
936if test -z "$INSTALL"; then
937if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
938 echo $ac_n "(cached) $ac_c" 1>&6
939else
940 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
941 for ac_dir in $PATH; do
942 # Account for people who put trailing slashes in PATH elements.
943 case "$ac_dir/" in
944 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
945 *)
946 # OSF1 and SCO ODT 3.0 have their own names for install.
947 # Don't use installbsd from OSF since it installs stuff as root
948 # by default.
949 for ac_prog in ginstall scoinst install; do
950 if test -f $ac_dir/$ac_prog; then
951 if test $ac_prog = install &&
952 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
953 # AIX install. It has an incompatible calling convention.
954 :
955 else
956 ac_cv_path_install="$ac_dir/$ac_prog -c"
957 break 2
958 fi
959 fi
960 done
961 ;;
962 esac
963 done
964 IFS="$ac_save_IFS"
965
966fi
967 if test "${ac_cv_path_install+set}" = set; then
968 INSTALL="$ac_cv_path_install"
969 else
970 # As a last resort, use the slow shell script. We don't cache a
971 # path for INSTALL within a source directory, because that will
972 # break other packages using the cache if that directory is
973 # removed, or if the path is relative.
974 INSTALL="$ac_install_sh"
975 fi
976fi
977echo "$ac_t""$INSTALL" 1>&6
978
979# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
980# It thinks the first close brace ends the variable substitution.
981test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
982
983test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
984
985test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
986
987
988echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
72826a5b 989echo "configure:990: checking for Cygwin environment" >&5
739457f4
CF
990if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
991 echo $ac_n "(cached) $ac_c" 1>&6
992else
993 cat > conftest.$ac_ext <<EOF
72826a5b 994#line 995 "configure"
739457f4
CF
995#include "confdefs.h"
996
997int main() {
998
999#ifndef __CYGWIN__
1000#define __CYGWIN__ __CYGWIN32__
1001#endif
1002return __CYGWIN__;
1003; return 0; }
1004EOF
72826a5b 1005if { (eval echo configure:1006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
739457f4
CF
1006 rm -rf conftest*
1007 ac_cv_cygwin=yes
1008else
1009 echo "configure: failed program was:" >&5
1010 cat conftest.$ac_ext >&5
1011 rm -rf conftest*
1012 ac_cv_cygwin=no
1013fi
1014rm -f conftest*
1015rm -f conftest*
1016fi
1017
1018echo "$ac_t""$ac_cv_cygwin" 1>&6
1019CYGWIN=
1020test "$ac_cv_cygwin" = yes && CYGWIN=yes
1021echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
72826a5b 1022echo "configure:1023: checking for mingw32 environment" >&5
739457f4
CF
1023if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1024 echo $ac_n "(cached) $ac_c" 1>&6
1025else
1026 cat > conftest.$ac_ext <<EOF
72826a5b 1027#line 1028 "configure"
739457f4
CF
1028#include "confdefs.h"
1029
1030int main() {
1031return __MINGW32__;
1032; return 0; }
1033EOF
72826a5b 1034if { (eval echo configure:1035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
739457f4
CF
1035 rm -rf conftest*
1036 ac_cv_mingw32=yes
1037else
1038 echo "configure: failed program was:" >&5
1039 cat conftest.$ac_ext >&5
1040 rm -rf conftest*
1041 ac_cv_mingw32=no
1042fi
1043rm -f conftest*
1044rm -f conftest*
1045fi
1046
1047echo "$ac_t""$ac_cv_mingw32" 1>&6
1048MINGW32=
1049test "$ac_cv_mingw32" = yes && MINGW32=yes
1050
1051
1052echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
72826a5b 1053echo "configure:1054: checking for executable suffix" >&5
739457f4
CF
1054if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1055 echo $ac_n "(cached) $ac_c" 1>&6
1056else
1057 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1058 ac_cv_exeext=.exe
1059else
1060 rm -f conftest*
1061 echo 'int main () { return 0; }' > conftest.$ac_ext
1062 ac_cv_exeext=
72826a5b 1063 if { (eval echo configure:1064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
739457f4
CF
1064 for file in conftest.*; do
1065 case $file in
1066 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1067 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1068 esac
1069 done
1070 else
1071 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1072 fi
1073 rm -f conftest*
1074 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1075fi
1076fi
1077
1078EXEEXT=""
1079test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1080echo "$ac_t""${ac_cv_exeext}" 1>&6
1081ac_exeext=$EXEEXT
1082
1083
739457f4
CF
1084# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1085set dummy ${ac_tool_prefix}ar; ac_word=$2
1086echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
72826a5b 1087echo "configure:1088: checking for $ac_word" >&5
739457f4
CF
1088if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1089 echo $ac_n "(cached) $ac_c" 1>&6
1090else
1091 if test -n "$AR"; then
1092 ac_cv_prog_AR="$AR" # Let the user override the test.
1093else
1094 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1095 ac_dummy="$PATH"
1096 for ac_dir in $ac_dummy; do
1097 test -z "$ac_dir" && ac_dir=.
1098 if test -f $ac_dir/$ac_word; then
1099 ac_cv_prog_AR="${ac_tool_prefix}ar"
1100 break
1101 fi
1102 done
1103 IFS="$ac_save_ifs"
1104fi
1105fi
1106AR="$ac_cv_prog_AR"
1107if test -n "$AR"; then
1108 echo "$ac_t""$AR" 1>&6
1109else
1110 echo "$ac_t""no" 1>&6
1111fi
1112
1113
1114if test -z "$ac_cv_prog_AR"; then
1115if test -n "$ac_tool_prefix"; then
1116 # Extract the first word of "ar", so it can be a program name with args.
1117set dummy ar; ac_word=$2
1118echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
72826a5b 1119echo "configure:1120: checking for $ac_word" >&5
739457f4
CF
1120if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1121 echo $ac_n "(cached) $ac_c" 1>&6
1122else
1123 if test -n "$AR"; then
1124 ac_cv_prog_AR="$AR" # Let the user override the test.
1125else
1126 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1127 ac_dummy="$PATH"
1128 for ac_dir in $ac_dummy; do
1129 test -z "$ac_dir" && ac_dir=.
1130 if test -f $ac_dir/$ac_word; then
1131 ac_cv_prog_AR="ar"
1132 break
1133 fi
1134 done
1135 IFS="$ac_save_ifs"
1136 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1137fi
1138fi
1139AR="$ac_cv_prog_AR"
1140if test -n "$AR"; then
1141 echo "$ac_t""$AR" 1>&6
1142else
1143 echo "$ac_t""no" 1>&6
1144fi
1145
1146else
1147 AR="ar"
1148fi
1149fi
1150
1151
1152# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1153set dummy ${ac_tool_prefix}as; ac_word=$2
1154echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
72826a5b 1155echo "configure:1156: checking for $ac_word" >&5
739457f4
CF
1156if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1157 echo $ac_n "(cached) $ac_c" 1>&6
1158else
1159 if test -n "$AS"; then
1160 ac_cv_prog_AS="$AS" # Let the user override the test.
1161else
1162 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1163 ac_dummy="$PATH"
1164 for ac_dir in $ac_dummy; do
1165 test -z "$ac_dir" && ac_dir=.
1166 if test -f $ac_dir/$ac_word; then
1167 ac_cv_prog_AS="${ac_tool_prefix}as"
1168 break
1169 fi
1170 done
1171 IFS="$ac_save_ifs"
1172fi
1173fi
1174AS="$ac_cv_prog_AS"
1175if test -n "$AS"; then
1176 echo "$ac_t""$AS" 1>&6
1177else
1178 echo "$ac_t""no" 1>&6
1179fi
1180
1181
1182if test -z "$ac_cv_prog_AS"; then
1183if test -n "$ac_tool_prefix"; then
1184 # Extract the first word of "as", so it can be a program name with args.
1185set dummy as; ac_word=$2
1186echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
72826a5b 1187echo "configure:1188: checking for $ac_word" >&5
739457f4
CF
1188if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1189 echo $ac_n "(cached) $ac_c" 1>&6
1190else
1191 if test -n "$AS"; then
1192 ac_cv_prog_AS="$AS" # Let the user override the test.
1193else
1194 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1195 ac_dummy="$PATH"
1196 for ac_dir in $ac_dummy; do
1197 test -z "$ac_dir" && ac_dir=.
1198 if test -f $ac_dir/$ac_word; then
1199 ac_cv_prog_AS="as"
1200 break
1201 fi
1202 done
1203 IFS="$ac_save_ifs"
1204 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1205fi
1206fi
1207AS="$ac_cv_prog_AS"
1208if test -n "$AS"; then
1209 echo "$ac_t""$AS" 1>&6
1210else
1211 echo "$ac_t""no" 1>&6
1212fi
1213
1214else
1215 AS="as"
1216fi
1217fi
1218
1219
1220# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1221set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1222echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
72826a5b 1223echo "configure:1224: checking for $ac_word" >&5
739457f4
CF
1224if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1225 echo $ac_n "(cached) $ac_c" 1>&6
1226else
1227 if test -n "$RANLIB"; then
1228 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1229else
1230 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1231 ac_dummy="$PATH"
1232 for ac_dir in $ac_dummy; do
1233 test -z "$ac_dir" && ac_dir=.
1234 if test -f $ac_dir/$ac_word; then
1235 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1236 break
1237 fi
1238 done
1239 IFS="$ac_save_ifs"
1240fi
1241fi
1242RANLIB="$ac_cv_prog_RANLIB"
1243if test -n "$RANLIB"; then
1244 echo "$ac_t""$RANLIB" 1>&6
1245else
1246 echo "$ac_t""no" 1>&6
1247fi
1248
1249
1250if test -z "$ac_cv_prog_RANLIB"; then
1251if test -n "$ac_tool_prefix"; then
1252 # Extract the first word of "ranlib", so it can be a program name with args.
1253set dummy ranlib; ac_word=$2
1254echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
72826a5b 1255echo "configure:1256: checking for $ac_word" >&5
739457f4
CF
1256if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1257 echo $ac_n "(cached) $ac_c" 1>&6
1258else
1259 if test -n "$RANLIB"; then
1260 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1261else
1262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1263 ac_dummy="$PATH"
1264 for ac_dir in $ac_dummy; do
1265 test -z "$ac_dir" && ac_dir=.
1266 if test -f $ac_dir/$ac_word; then
1267 ac_cv_prog_RANLIB="ranlib"
1268 break
1269 fi
1270 done
1271 IFS="$ac_save_ifs"
1272 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib"
1273fi
1274fi
1275RANLIB="$ac_cv_prog_RANLIB"
1276if test -n "$RANLIB"; then
1277 echo "$ac_t""$RANLIB" 1>&6
1278else
1279 echo "$ac_t""no" 1>&6
1280fi
1281
1282else
1283 RANLIB="ranlib"
1284fi
1285fi
1286
1287
1288# Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
1289set dummy ${ac_tool_prefix}ld; ac_word=$2
1290echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
72826a5b 1291echo "configure:1292: checking for $ac_word" >&5
739457f4
CF
1292if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
1293 echo $ac_n "(cached) $ac_c" 1>&6
1294else
1295 if test -n "$LD"; then
1296 ac_cv_prog_LD="$LD" # Let the user override the test.
1297else
1298 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1299 ac_dummy="$PATH"
1300 for ac_dir in $ac_dummy; do
1301 test -z "$ac_dir" && ac_dir=.
1302 if test -f $ac_dir/$ac_word; then
1303 ac_cv_prog_LD="${ac_tool_prefix}ld"
1304 break
1305 fi
1306 done
1307 IFS="$ac_save_ifs"
1308fi
1309fi
1310LD="$ac_cv_prog_LD"
1311if test -n "$LD"; then
1312 echo "$ac_t""$LD" 1>&6
1313else
1314 echo "$ac_t""no" 1>&6
1315fi
1316
1317
1318if test -z "$ac_cv_prog_LD"; then
1319if test -n "$ac_tool_prefix"; then
1320 # Extract the first word of "ld", so it can be a program name with args.
1321set dummy ld; ac_word=$2
1322echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
72826a5b 1323echo "configure:1324: checking for $ac_word" >&5
739457f4
CF
1324if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
1325 echo $ac_n "(cached) $ac_c" 1>&6
1326else
1327 if test -n "$LD"; then
1328 ac_cv_prog_LD="$LD" # Let the user override the test.
1329else
1330 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1331 ac_dummy="$PATH"
1332 for ac_dir in $ac_dummy; do
1333 test -z "$ac_dir" && ac_dir=.
1334 if test -f $ac_dir/$ac_word; then
1335 ac_cv_prog_LD="ld"
1336 break
1337 fi
1338 done
1339 IFS="$ac_save_ifs"
1340 test -z "$ac_cv_prog_LD" && ac_cv_prog_LD="ld"
1341fi
1342fi
1343LD="$ac_cv_prog_LD"
1344if test -n "$LD"; then
1345 echo "$ac_t""$LD" 1>&6
1346else
1347 echo "$ac_t""no" 1>&6
1348fi
1349
1350else
1351 LD="ld"
1352fi
1353fi
1354
1355
1356# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1357set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1358echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
72826a5b 1359echo "configure:1360: checking for $ac_word" >&5
739457f4
CF
1360if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1361 echo $ac_n "(cached) $ac_c" 1>&6
1362else
1363 if test -n "$DLLTOOL"; then
1364 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1365else
1366 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1367 ac_dummy="$PATH"
1368 for ac_dir in $ac_dummy; do
1369 test -z "$ac_dir" && ac_dir=.
1370 if test -f $ac_dir/$ac_word; then
1371 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1372 break
1373 fi
1374 done
1375 IFS="$ac_save_ifs"
1376fi
1377fi
1378DLLTOOL="$ac_cv_prog_DLLTOOL"
1379if test -n "$DLLTOOL"; then
1380 echo "$ac_t""$DLLTOOL" 1>&6
1381else
1382 echo "$ac_t""no" 1>&6
1383fi
1384
1385
1386if test -z "$ac_cv_prog_DLLTOOL"; then
1387if test -n "$ac_tool_prefix"; then
1388 # Extract the first word of "dlltool", so it can be a program name with args.
1389set dummy dlltool; ac_word=$2
1390echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
72826a5b 1391echo "configure:1392: checking for $ac_word" >&5
739457f4
CF
1392if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1393 echo $ac_n "(cached) $ac_c" 1>&6
1394else
1395 if test -n "$DLLTOOL"; then
1396 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1397else
1398 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1399 ac_dummy="$PATH"
1400 for ac_dir in $ac_dummy; do
1401 test -z "$ac_dir" && ac_dir=.
1402 if test -f $ac_dir/$ac_word; then
1403 ac_cv_prog_DLLTOOL="dlltool"
1404 break
1405 fi
1406 done
1407 IFS="$ac_save_ifs"
1408 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="dlltool"
1409fi
1410fi
1411DLLTOOL="$ac_cv_prog_DLLTOOL"
1412if test -n "$DLLTOOL"; then
1413 echo "$ac_t""$DLLTOOL" 1>&6
1414else
1415 echo "$ac_t""no" 1>&6
1416fi
1417
1418else
1419 DLLTOOL="dlltool"
1420fi
1421fi
1422
1423
1424# Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
1425set dummy ${ac_tool_prefix}windres; ac_word=$2
1426echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
72826a5b 1427echo "configure:1428: checking for $ac_word" >&5
739457f4
CF
1428if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
1429 echo $ac_n "(cached) $ac_c" 1>&6
1430else
1431 if test -n "$WINDRES"; then
1432 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
1433else
1434 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1435 ac_dummy="$PATH"
1436 for ac_dir in $ac_dummy; do
1437 test -z "$ac_dir" && ac_dir=.
1438 if test -f $ac_dir/$ac_word; then
1439 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
1440 break
1441 fi
1442 done
1443 IFS="$ac_save_ifs"
1444fi
1445fi
1446WINDRES="$ac_cv_prog_WINDRES"
1447if test -n "$WINDRES"; then
1448 echo "$ac_t""$WINDRES" 1>&6
1449else
1450 echo "$ac_t""no" 1>&6
1451fi
1452
1453
1454if test -z "$ac_cv_prog_WINDRES"; then
1455if test -n "$ac_tool_prefix"; then
1456 # Extract the first word of "windres", so it can be a program name with args.
1457set dummy windres; ac_word=$2
1458echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
72826a5b 1459echo "configure:1460: checking for $ac_word" >&5
739457f4
CF
1460if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
1461 echo $ac_n "(cached) $ac_c" 1>&6
1462else
1463 if test -n "$WINDRES"; then
1464 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
1465else
1466 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1467 ac_dummy="$PATH"
1468 for ac_dir in $ac_dummy; do
1469 test -z "$ac_dir" && ac_dir=.
1470 if test -f $ac_dir/$ac_word; then
1471 ac_cv_prog_WINDRES="windres"
1472 break
1473 fi
1474 done
1475 IFS="$ac_save_ifs"
1476 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES="windres"
1477fi
1478fi
1479WINDRES="$ac_cv_prog_WINDRES"
1480if test -n "$WINDRES"; then
1481 echo "$ac_t""$WINDRES" 1>&6
1482else
1483 echo "$ac_t""no" 1>&6
1484fi
1485
1486else
1487 WINDRES="windres"
1488fi
1489fi
1490
1491
4306b490
CF
1492# Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
1493set dummy ${ac_tool_prefix}objcopy; ac_word=$2
1494echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
72826a5b 1495echo "configure:1496: checking for $ac_word" >&5
4306b490
CF
1496if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
1497 echo $ac_n "(cached) $ac_c" 1>&6
1498else
1499 if test -n "$OBJCOPY"; then
1500 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
1501else
1502 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1503 ac_dummy="$PATH"
1504 for ac_dir in $ac_dummy; do
1505 test -z "$ac_dir" && ac_dir=.
1506 if test -f $ac_dir/$ac_word; then
1507 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
1508 break
1509 fi
1510 done
1511 IFS="$ac_save_ifs"
1512fi
1513fi
1514OBJCOPY="$ac_cv_prog_OBJCOPY"
1515if test -n "$OBJCOPY"; then
1516 echo "$ac_t""$OBJCOPY" 1>&6
1517else
1518 echo "$ac_t""no" 1>&6
1519fi
1520
1521
1522if test -z "$ac_cv_prog_OBJCOPY"; then
1523if test -n "$ac_tool_prefix"; then
1524 # Extract the first word of "objcopy", so it can be a program name with args.
1525set dummy objcopy; ac_word=$2
1526echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
72826a5b 1527echo "configure:1528: checking for $ac_word" >&5
4306b490
CF
1528if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
1529 echo $ac_n "(cached) $ac_c" 1>&6
1530else
1531 if test -n "$OBJCOPY"; then
1532 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
1533else
1534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1535 ac_dummy="$PATH"
1536 for ac_dir in $ac_dummy; do
1537 test -z "$ac_dir" && ac_dir=.
1538 if test -f $ac_dir/$ac_word; then
1539 ac_cv_prog_OBJCOPY="objcopy"
1540 break
1541 fi
1542 done
1543 IFS="$ac_save_ifs"
1544 test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="objcopy"
1545fi
1546fi
1547OBJCOPY="$ac_cv_prog_OBJCOPY"
1548if test -n "$OBJCOPY"; then
1549 echo "$ac_t""$OBJCOPY" 1>&6
1550else
1551 echo "$ac_t""no" 1>&6
1552fi
1553
1554else
1555 OBJCOPY="objcopy"
1556fi
1557fi
1558
1559
739457f4
CF
1560
1561SUBDIRS="zlib"
1562subdirs="$SUBDIRS"
1563
1564
1565trap '' 1 2 15
1566cat > confcache <<\EOF
1567# This file is a shell script that caches the results of configure
1568# tests run on this system so they can be shared between configure
1569# scripts and configure runs. It is not useful on other systems.
1570# If it contains results you don't want to keep, you may remove or edit it.
1571#
1572# By default, configure uses ./config.cache as the cache file,
1573# creating it if it does not exist already. You can give configure
1574# the --cache-file=FILE option to use a different cache file; that is
1575# what configure does when it calls configure scripts in
1576# subdirectories, so they share the cache.
1577# Giving --cache-file=/dev/null disables caching, for debugging configure.
1578# config.status only pays attention to the cache file if you give it the
1579# --recheck option to rerun configure.
1580#
1581EOF
1582# The following way of writing the cache mishandles newlines in values,
1583# but we know of no workaround that is simple, portable, and efficient.
1584# So, don't put newlines in cache variables' values.
1585# Ultrix sh set writes to stderr and can't be redirected directly,
1586# and sets the high bit in the cache file unless we assign to the vars.
1587(set) 2>&1 |
1588 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1589 *ac_space=\ *)
1590 # `set' does not quote correctly, so add quotes (double-quote substitution
1591 # turns \\\\ into \\, and sed turns \\ into \).
1592 sed -n \
1593 -e "s/'/'\\\\''/g" \
1594 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1595 ;;
1596 *)
1597 # `set' quotes correctly as required by POSIX, so do not add quotes.
1598 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1599 ;;
1600 esac >> confcache
1601if cmp -s $cache_file confcache; then
1602 :
1603else
1604 if test -w $cache_file; then
1605 echo "updating cache $cache_file"
1606 cat confcache > $cache_file
1607 else
1608 echo "not updating unwritable cache $cache_file"
1609 fi
1610fi
1611rm -f confcache
1612
1613trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1614
1615test "x$prefix" = xNONE && prefix=$ac_default_prefix
1616# Let make expand exec_prefix.
1617test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1618
1619# Any assignment to VPATH causes Sun make to only execute
1620# the first set of double-colon rules, so remove it if not needed.
1621# If there is a colon in the path, we need to keep it.
1622if test "x$srcdir" = x.; then
1623 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1624fi
1625
1626trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1627
1628# Transform confdefs.h into DEFS.
1629# Protect against shell expansion while executing Makefile rules.
1630# Protect against Makefile macro expansion.
1631cat > conftest.defs <<\EOF
1632s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1633s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1634s%\[%\\&%g
1635s%\]%\\&%g
1636s%\$%$$%g
1637EOF
1638DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1639rm -f conftest.defs
1640
1641
1642# Without the "./", some shells look in PATH for config.status.
1643: ${CONFIG_STATUS=./config.status}
1644
1645echo creating $CONFIG_STATUS
1646rm -f $CONFIG_STATUS
1647cat > $CONFIG_STATUS <<EOF
1648#! /bin/sh
1649# Generated automatically by configure.
1650# Run this file to recreate the current configuration.
1651# This directory was configured as follows,
1652# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1653#
1654# $0 $ac_configure_args
1655#
1656# Compiler output produced by configure, useful for debugging
1657# configure, is in ./config.log if it exists.
1658
1659ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1660for ac_option
1661do
1662 case "\$ac_option" in
1663 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1664 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1665 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1666 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1667 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1668 exit 0 ;;
1669 -help | --help | --hel | --he | --h)
1670 echo "\$ac_cs_usage"; exit 0 ;;
1671 *) echo "\$ac_cs_usage"; exit 1 ;;
1672 esac
1673done
1674
1675ac_given_srcdir=$srcdir
1676ac_given_INSTALL="$INSTALL"
1677
1678trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1679EOF
1680cat >> $CONFIG_STATUS <<EOF
1681
1682# Protect against being on the right side of a sed subst in config.status.
1683sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1684 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1685$ac_vpsub
1686$extrasub
1687s%@SHELL@%$SHELL%g
1688s%@CFLAGS@%$CFLAGS%g
1689s%@CPPFLAGS@%$CPPFLAGS%g
1690s%@CXXFLAGS@%$CXXFLAGS%g
1691s%@FFLAGS@%$FFLAGS%g
1692s%@DEFS@%$DEFS%g
1693s%@LDFLAGS@%$LDFLAGS%g
1694s%@LIBS@%$LIBS%g
1695s%@exec_prefix@%$exec_prefix%g
1696s%@prefix@%$prefix%g
1697s%@program_transform_name@%$program_transform_name%g
1698s%@bindir@%$bindir%g
1699s%@sbindir@%$sbindir%g
1700s%@libexecdir@%$libexecdir%g
1701s%@datadir@%$datadir%g
1702s%@sysconfdir@%$sysconfdir%g
1703s%@sharedstatedir@%$sharedstatedir%g
1704s%@localstatedir@%$localstatedir%g
1705s%@libdir@%$libdir%g
1706s%@includedir@%$includedir%g
1707s%@oldincludedir@%$oldincludedir%g
1708s%@infodir@%$infodir%g
1709s%@mandir@%$mandir%g
739457f4
CF
1710s%@host@%$host%g
1711s%@host_alias@%$host_alias%g
1712s%@host_cpu@%$host_cpu%g
1713s%@host_vendor@%$host_vendor%g
1714s%@host_os@%$host_os%g
1715s%@target@%$target%g
1716s%@target_alias@%$target_alias%g
1717s%@target_cpu@%$target_cpu%g
1718s%@target_vendor@%$target_vendor%g
1719s%@target_os@%$target_os%g
1720s%@build@%$build%g
1721s%@build_alias@%$build_alias%g
1722s%@build_cpu@%$build_cpu%g
1723s%@build_vendor@%$build_vendor%g
1724s%@build_os@%$build_os%g
72826a5b
CF
1725s%@CC@%$CC%g
1726s%@CXX@%$CXX%g
739457f4
CF
1727s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1728s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1729s%@INSTALL_DATA@%$INSTALL_DATA%g
1730s%@EXEEXT@%$EXEEXT%g
1731s%@AR@%$AR%g
1732s%@AS@%$AS%g
1733s%@RANLIB@%$RANLIB%g
1734s%@LD@%$LD%g
1735s%@DLLTOOL@%$DLLTOOL%g
1736s%@WINDRES@%$WINDRES%g
4306b490 1737s%@OBJCOPY@%$OBJCOPY%g
739457f4
CF
1738s%@subdirs@%$subdirs%g
1739
1740CEOF
1741EOF
1742
1743cat >> $CONFIG_STATUS <<\EOF
1744
1745# Split the substitutions into bite-sized pieces for seds with
1746# small command number limits, like on Digital OSF/1 and HP-UX.
1747ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1748ac_file=1 # Number of current file.
1749ac_beg=1 # First line for current file.
1750ac_end=$ac_max_sed_cmds # Line after last line for current file.
1751ac_more_lines=:
1752ac_sed_cmds=""
1753while $ac_more_lines; do
1754 if test $ac_beg -gt 1; then
1755 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1756 else
1757 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1758 fi
1759 if test ! -s conftest.s$ac_file; then
1760 ac_more_lines=false
1761 rm -f conftest.s$ac_file
1762 else
1763 if test -z "$ac_sed_cmds"; then
1764 ac_sed_cmds="sed -f conftest.s$ac_file"
1765 else
1766 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1767 fi
1768 ac_file=`expr $ac_file + 1`
1769 ac_beg=$ac_end
1770 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1771 fi
1772done
1773if test -z "$ac_sed_cmds"; then
1774 ac_sed_cmds=cat
1775fi
1776EOF
1777
1778cat >> $CONFIG_STATUS <<EOF
1779
1780CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1781EOF
1782cat >> $CONFIG_STATUS <<\EOF
1783for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1784 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1785 case "$ac_file" in
1786 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1787 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1788 *) ac_file_in="${ac_file}.in" ;;
1789 esac
1790
1791 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1792
1793 # Remove last slash and all that follows it. Not all systems have dirname.
1794 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1795 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1796 # The file is in a subdirectory.
1797 test ! -d "$ac_dir" && mkdir "$ac_dir"
1798 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1799 # A "../" for each directory in $ac_dir_suffix.
1800 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1801 else
1802 ac_dir_suffix= ac_dots=
1803 fi
1804
1805 case "$ac_given_srcdir" in
1806 .) srcdir=.
1807 if test -z "$ac_dots"; then top_srcdir=.
1808 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1809 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1810 *) # Relative path.
1811 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1812 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1813 esac
1814
1815 case "$ac_given_INSTALL" in
1816 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1817 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1818 esac
1819
1820 echo creating "$ac_file"
1821 rm -f "$ac_file"
1822 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1823 case "$ac_file" in
1824 *Makefile*) ac_comsub="1i\\
1825# $configure_input" ;;
1826 *) ac_comsub= ;;
1827 esac
1828
1829 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1830 sed -e "$ac_comsub
1831s%@configure_input@%$configure_input%g
1832s%@srcdir@%$srcdir%g
1833s%@top_srcdir@%$top_srcdir%g
1834s%@INSTALL@%$INSTALL%g
1835" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1836fi; done
1837rm -f conftest.s*
1838
1839EOF
1840cat >> $CONFIG_STATUS <<EOF
1841
1842EOF
1843cat >> $CONFIG_STATUS <<\EOF
1844
1845exit 0
1846EOF
1847chmod +x $CONFIG_STATUS
1848rm -fr confdefs* $ac_clean_files
1849test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1850
1851if test "$no_recursion" != yes; then
1852
1853 # Remove --cache-file and --srcdir arguments so they do not pile up.
1854 ac_sub_configure_args=
1855 ac_prev=
1856 for ac_arg in $ac_configure_args; do
1857 if test -n "$ac_prev"; then
1858 ac_prev=
1859 continue
1860 fi
1861 case "$ac_arg" in
1862 -cache-file | --cache-file | --cache-fil | --cache-fi \
1863 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1864 ac_prev=cache_file ;;
1865 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1866 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1867 ;;
1868 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1869 ac_prev=srcdir ;;
1870 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1871 ;;
1872 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
1873 esac
1874 done
1875
1876 for ac_config_dir in $SUBDIRS; do
1877
1878 # Do not complain, so a configure script can configure whichever
1879 # parts of a large source tree are present.
1880 if test ! -d $srcdir/$ac_config_dir; then
1881 continue
1882 fi
1883
1884 echo configuring in $ac_config_dir
1885
1886 case "$srcdir" in
1887 .) ;;
1888 *)
1889 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
1890 else
1891 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
1892 fi
1893 ;;
1894 esac
1895
1896 ac_popdir=`pwd`
1897 cd $ac_config_dir
1898
1899 # A "../" for each directory in /$ac_config_dir.
1900 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
1901
1902 case "$srcdir" in
1903 .) # No --srcdir option. We are building in place.
1904 ac_sub_srcdir=$srcdir ;;
1905 /*) # Absolute path.
1906 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
1907 *) # Relative path.
1908 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
1909 esac
1910
1911 # Check for guested configure; otherwise get Cygnus style configure.
1912 if test -f $ac_sub_srcdir/configure; then
1913 ac_sub_configure=$ac_sub_srcdir/configure
1914 elif test -f $ac_sub_srcdir/configure.in; then
1915 ac_sub_configure=$ac_configure
1916 else
1917 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
1918 ac_sub_configure=
1919 fi
1920
1921 # The recursion is here.
1922 if test -n "$ac_sub_configure"; then
1923
1924 # Make the cache file name correct relative to the subdirectory.
1925 case "$cache_file" in
1926 /*) ac_sub_cache_file=$cache_file ;;
1927 *) # Relative path.
1928 ac_sub_cache_file="$ac_dots$cache_file" ;;
1929 esac
1930 case "$ac_given_INSTALL" in
1931 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1932 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1933 esac
1934
1935 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
1936 # The eval makes quoting arguments work.
1937 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
1938 then :
1939 else
1940 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
1941 fi
1942 fi
1943
1944 cd $ac_popdir
1945 done
1946fi
1947
This page took 0.199125 seconds and 5 git commands to generate.