]> sourceware.org Git - lvm2.git/blame - configure
call archive_exit() & backup_exit() on exit
[lvm2.git] / configure
CommitLineData
795ca3e5
AK
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_default_prefix=/usr
15ac_help="$ac_help
16 --with-user=USER Set the owner of installed files "
17ac_help="$ac_help
18 --with-group=GROUP Set the group owner of installed files "
795ca3e5
AK
19ac_help="$ac_help
20 --enable-jobs=NUM Number of jobs to run simultaneously"
21ac_help="$ac_help
22 --enable-static_link Use this to link the tools to the liblvm library
23 statically. Default is dynamic linking"
24ac_help="$ac_help
25 --disable-readline Disable readline support"
26
27# Initialize some variables set by options.
28# The variables have the same names as the options, with
29# dashes changed to underlines.
30build=NONE
31cache_file=./config.cache
32exec_prefix=NONE
33host=NONE
34no_create=
35nonopt=NONE
36no_recursion=
37prefix=NONE
38program_prefix=NONE
39program_suffix=NONE
40program_transform_name=s,x,x,
41silent=
42site=
43srcdir=
44target=NONE
45verbose=
46x_includes=NONE
47x_libraries=NONE
48bindir='${exec_prefix}/bin'
49sbindir='${exec_prefix}/sbin'
50libexecdir='${exec_prefix}/libexec'
51datadir='${prefix}/share'
52sysconfdir='${prefix}/etc'
53sharedstatedir='${prefix}/com'
54localstatedir='${prefix}/var'
55libdir='${exec_prefix}/lib'
56includedir='${prefix}/include'
57oldincludedir='/usr/include'
58infodir='${prefix}/info'
59mandir='${prefix}/man'
60
61# Initialize some other variables.
62subdirs=
63MFLAGS= MAKEFLAGS=
64SHELL=${CONFIG_SHELL-/bin/sh}
65# Maximum number of lines to put in a shell here document.
66ac_max_here_lines=12
67
68ac_prev=
69for ac_option
70do
71
72 # If the previous option needs an argument, assign it.
73 if test -n "$ac_prev"; then
74 eval "$ac_prev=\$ac_option"
75 ac_prev=
76 continue
77 fi
78
79 case "$ac_option" in
80 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
81 *) ac_optarg= ;;
82 esac
83
84 # Accept the important Cygnus configure options, so we can diagnose typos.
85
86 case "$ac_option" in
87
88 -bindir | --bindir | --bindi | --bind | --bin | --bi)
89 ac_prev=bindir ;;
90 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
91 bindir="$ac_optarg" ;;
92
93 -build | --build | --buil | --bui | --bu)
94 ac_prev=build ;;
95 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
96 build="$ac_optarg" ;;
97
98 -cache-file | --cache-file | --cache-fil | --cache-fi \
99 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
100 ac_prev=cache_file ;;
101 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
102 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
103 cache_file="$ac_optarg" ;;
104
105 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
106 ac_prev=datadir ;;
107 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
108 | --da=*)
109 datadir="$ac_optarg" ;;
110
111 -disable-* | --disable-*)
112 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
113 # Reject names that are not valid shell variable names.
114 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
115 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
116 fi
117 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
118 eval "enable_${ac_feature}=no" ;;
119
120 -enable-* | --enable-*)
121 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125 fi
126 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127 case "$ac_option" in
128 *=*) ;;
129 *) ac_optarg=yes ;;
130 esac
131 eval "enable_${ac_feature}='$ac_optarg'" ;;
132
133 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
134 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
135 | --exec | --exe | --ex)
136 ac_prev=exec_prefix ;;
137 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
138 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
139 | --exec=* | --exe=* | --ex=*)
140 exec_prefix="$ac_optarg" ;;
141
142 -gas | --gas | --ga | --g)
143 # Obsolete; use --with-gas.
144 with_gas=yes ;;
145
146 -help | --help | --hel | --he)
147 # Omit some internal or obsolete options to make the list less imposing.
148 # This message is too long to be a string in the A/UX 3.1 sh.
149 cat << EOF
150Usage: configure [options] [host]
151Options: [defaults in brackets after descriptions]
152Configuration:
153 --cache-file=FILE cache test results in FILE
154 --help print this message
155 --no-create do not create output files
156 --quiet, --silent do not print \`checking...' messages
157 --version print the version of autoconf that created configure
158Directory and file names:
159 --prefix=PREFIX install architecture-independent files in PREFIX
160 [$ac_default_prefix]
161 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
162 [same as prefix]
163 --bindir=DIR user executables in DIR [EPREFIX/bin]
164 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
165 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
166 --datadir=DIR read-only architecture-independent data in DIR
167 [PREFIX/share]
168 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
169 --sharedstatedir=DIR modifiable architecture-independent data in DIR
170 [PREFIX/com]
171 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
172 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
173 --includedir=DIR C header files in DIR [PREFIX/include]
174 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
175 --infodir=DIR info documentation in DIR [PREFIX/info]
176 --mandir=DIR man documentation in DIR [PREFIX/man]
177 --srcdir=DIR find the sources in DIR [configure dir or ..]
178 --program-prefix=PREFIX prepend PREFIX to installed program names
179 --program-suffix=SUFFIX append SUFFIX to installed program names
180 --program-transform-name=PROGRAM
181 run sed PROGRAM on installed program names
182EOF
183 cat << EOF
184Host type:
185 --build=BUILD configure for building on BUILD [BUILD=HOST]
186 --host=HOST configure for HOST [guessed]
187 --target=TARGET configure for TARGET [TARGET=HOST]
188Features and packages:
189 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
190 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
191 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
192 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
193 --x-includes=DIR X include files are in DIR
194 --x-libraries=DIR X library files are in DIR
195EOF
196 if test -n "$ac_help"; then
197 echo "--enable and --with options recognized:$ac_help"
198 fi
199 exit 0 ;;
200
201 -host | --host | --hos | --ho)
202 ac_prev=host ;;
203 -host=* | --host=* | --hos=* | --ho=*)
204 host="$ac_optarg" ;;
205
206 -includedir | --includedir | --includedi | --included | --include \
207 | --includ | --inclu | --incl | --inc)
208 ac_prev=includedir ;;
209 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
210 | --includ=* | --inclu=* | --incl=* | --inc=*)
211 includedir="$ac_optarg" ;;
212
213 -infodir | --infodir | --infodi | --infod | --info | --inf)
214 ac_prev=infodir ;;
215 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
216 infodir="$ac_optarg" ;;
217
218 -libdir | --libdir | --libdi | --libd)
219 ac_prev=libdir ;;
220 -libdir=* | --libdir=* | --libdi=* | --libd=*)
221 libdir="$ac_optarg" ;;
222
223 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
224 | --libexe | --libex | --libe)
225 ac_prev=libexecdir ;;
226 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
227 | --libexe=* | --libex=* | --libe=*)
228 libexecdir="$ac_optarg" ;;
229
230 -localstatedir | --localstatedir | --localstatedi | --localstated \
231 | --localstate | --localstat | --localsta | --localst \
232 | --locals | --local | --loca | --loc | --lo)
233 ac_prev=localstatedir ;;
234 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
235 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
236 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
237 localstatedir="$ac_optarg" ;;
238
239 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
240 ac_prev=mandir ;;
241 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
242 mandir="$ac_optarg" ;;
243
244 -nfp | --nfp | --nf)
245 # Obsolete; use --without-fp.
246 with_fp=no ;;
247
248 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
249 | --no-cr | --no-c)
250 no_create=yes ;;
251
252 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
253 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
254 no_recursion=yes ;;
255
256 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
257 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
258 | --oldin | --oldi | --old | --ol | --o)
259 ac_prev=oldincludedir ;;
260 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
261 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
262 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
263 oldincludedir="$ac_optarg" ;;
264
265 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
266 ac_prev=prefix ;;
267 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
268 prefix="$ac_optarg" ;;
269
270 -program-prefix | --program-prefix | --program-prefi | --program-pref \
271 | --program-pre | --program-pr | --program-p)
272 ac_prev=program_prefix ;;
273 -program-prefix=* | --program-prefix=* | --program-prefi=* \
274 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
275 program_prefix="$ac_optarg" ;;
276
277 -program-suffix | --program-suffix | --program-suffi | --program-suff \
278 | --program-suf | --program-su | --program-s)
279 ac_prev=program_suffix ;;
280 -program-suffix=* | --program-suffix=* | --program-suffi=* \
281 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
282 program_suffix="$ac_optarg" ;;
283
284 -program-transform-name | --program-transform-name \
285 | --program-transform-nam | --program-transform-na \
286 | --program-transform-n | --program-transform- \
287 | --program-transform | --program-transfor \
288 | --program-transfo | --program-transf \
289 | --program-trans | --program-tran \
290 | --progr-tra | --program-tr | --program-t)
291 ac_prev=program_transform_name ;;
292 -program-transform-name=* | --program-transform-name=* \
293 | --program-transform-nam=* | --program-transform-na=* \
294 | --program-transform-n=* | --program-transform-=* \
295 | --program-transform=* | --program-transfor=* \
296 | --program-transfo=* | --program-transf=* \
297 | --program-trans=* | --program-tran=* \
298 | --progr-tra=* | --program-tr=* | --program-t=*)
299 program_transform_name="$ac_optarg" ;;
300
301 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
302 | -silent | --silent | --silen | --sile | --sil)
303 silent=yes ;;
304
305 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
306 ac_prev=sbindir ;;
307 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
308 | --sbi=* | --sb=*)
309 sbindir="$ac_optarg" ;;
310
311 -sharedstatedir | --sharedstatedir | --sharedstatedi \
312 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
313 | --sharedst | --shareds | --shared | --share | --shar \
314 | --sha | --sh)
315 ac_prev=sharedstatedir ;;
316 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
317 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
318 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
319 | --sha=* | --sh=*)
320 sharedstatedir="$ac_optarg" ;;
321
322 -site | --site | --sit)
323 ac_prev=site ;;
324 -site=* | --site=* | --sit=*)
325 site="$ac_optarg" ;;
326
327 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
328 ac_prev=srcdir ;;
329 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
330 srcdir="$ac_optarg" ;;
331
332 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
333 | --syscon | --sysco | --sysc | --sys | --sy)
334 ac_prev=sysconfdir ;;
335 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
336 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
337 sysconfdir="$ac_optarg" ;;
338
339 -target | --target | --targe | --targ | --tar | --ta | --t)
340 ac_prev=target ;;
341 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
342 target="$ac_optarg" ;;
343
344 -v | -verbose | --verbose | --verbos | --verbo | --verb)
345 verbose=yes ;;
346
347 -version | --version | --versio | --versi | --vers)
348 echo "configure generated by autoconf version 2.13"
349 exit 0 ;;
350
351 -with-* | --with-*)
352 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
353 # Reject names that are not valid shell variable names.
354 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
355 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
356 fi
357 ac_package=`echo $ac_package| sed 's/-/_/g'`
358 case "$ac_option" in
359 *=*) ;;
360 *) ac_optarg=yes ;;
361 esac
362 eval "with_${ac_package}='$ac_optarg'" ;;
363
364 -without-* | --without-*)
365 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369 fi
370 ac_package=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}=no" ;;
372
373 --x)
374 # Obsolete; use --with-x.
375 with_x=yes ;;
376
377 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
378 | --x-incl | --x-inc | --x-in | --x-i)
379 ac_prev=x_includes ;;
380 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
381 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
382 x_includes="$ac_optarg" ;;
383
384 -x-libraries | --x-libraries | --x-librarie | --x-librari \
385 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
386 ac_prev=x_libraries ;;
387 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
388 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
389 x_libraries="$ac_optarg" ;;
390
391 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
392 ;;
393
394 *)
395 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
396 echo "configure: warning: $ac_option: invalid host type" 1>&2
397 fi
398 if test "x$nonopt" != xNONE; then
399 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
400 fi
401 nonopt="$ac_option"
402 ;;
403
404 esac
405done
406
407if test -n "$ac_prev"; then
408 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
409fi
410
411trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
412
413# File descriptor usage:
414# 0 standard input
415# 1 file creation
416# 2 errors and warnings
417# 3 some systems may open it to /dev/tty
418# 4 used on the Kubota Titan
419# 6 checking for... messages and results
420# 5 compiler messages saved in config.log
421if test "$silent" = yes; then
422 exec 6>/dev/null
423else
424 exec 6>&1
425fi
426exec 5>./config.log
427
428echo "\
429This file contains any messages produced by compilers while
430running configure, to aid debugging if configure makes a mistake.
431" 1>&5
432
433# Strip out --no-create and --no-recursion so they do not pile up.
434# Also quote any args containing shell metacharacters.
435ac_configure_args=
436for ac_arg
437do
438 case "$ac_arg" in
439 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
440 | --no-cr | --no-c) ;;
441 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
442 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
443 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
444 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
445 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
446 esac
447done
448
449# NLS nuisances.
450# Only set these to C if already set. These must not be set unconditionally
451# because not all systems understand e.g. LANG=C (notably SCO).
452# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
453# Non-C LC_CTYPE values break the ctype check.
454if test "${LANG+set}" = set; then LANG=C; export LANG; fi
455if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
456if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
457if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
458
459# confdefs.h avoids OS command line length limits that DEFS can exceed.
460rm -rf conftest* confdefs.h
461# AIX cpp loses on an empty file, so make sure it contains at least a newline.
462echo > confdefs.h
463
464# A filename unique to this package, relative to the directory that
465# configure is in, which we can look for to find out if srcdir is correct.
13c7b701 466ac_unique_file=lib/device/dev-cache.h
795ca3e5
AK
467
468# Find the source files, if location was not specified.
469if test -z "$srcdir"; then
470 ac_srcdir_defaulted=yes
471 # Try the directory containing this script, then its parent.
472 ac_prog=$0
473 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
474 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
475 srcdir=$ac_confdir
476 if test ! -r $srcdir/$ac_unique_file; then
477 srcdir=..
478 fi
479else
480 ac_srcdir_defaulted=no
481fi
482if test ! -r $srcdir/$ac_unique_file; then
483 if test "$ac_srcdir_defaulted" = yes; then
484 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
485 else
486 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
487 fi
488fi
489srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
490
491# Prefer explicitly selected file to automatically selected ones.
492if test -z "$CONFIG_SITE"; then
493 if test "x$prefix" != xNONE; then
494 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
495 else
496 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
497 fi
498fi
499for ac_site_file in $CONFIG_SITE; do
500 if test -r "$ac_site_file"; then
501 echo "loading site script $ac_site_file"
502 . "$ac_site_file"
503 fi
504done
505
506if test -r "$cache_file"; then
507 echo "loading cache $cache_file"
508 . $cache_file
509else
510 echo "creating cache $cache_file"
511 > $cache_file
512fi
513
514ac_ext=c
515# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
516ac_cpp='$CPP $CPPFLAGS'
517ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
518ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
519cross_compiling=$ac_cv_prog_cc_cross
520
521ac_exeext=
522ac_objext=o
523if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
524 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
525 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
526 ac_n= ac_c='
527' ac_t=' '
528 else
529 ac_n=-n ac_c= ac_t=
530 fi
531else
532 ac_n= ac_c='\c' ac_t=
533fi
534
535
536
537ac_aux_dir=
538for ac_dir in autoconf $srcdir/autoconf; do
539 if test -f $ac_dir/install-sh; then
540 ac_aux_dir=$ac_dir
541 ac_install_sh="$ac_aux_dir/install-sh -c"
542 break
543 elif 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 fi
548done
549if test -z "$ac_aux_dir"; then
550 { echo "configure: error: can not find install-sh or install.sh in autoconf $srcdir/autoconf" 1>&2; exit 1; }
551fi
552ac_config_guess=$ac_aux_dir/config.guess
553ac_config_sub=$ac_aux_dir/config.sub
554ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
555
556
75559040 557for ac_prog in mawk gawk nawk awk
795ca3e5
AK
558do
559# Extract the first word of "$ac_prog", so it can be a program name with args.
560set dummy $ac_prog; ac_word=$2
561echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4b403510 562echo "configure:563: checking for $ac_word" >&5
795ca3e5
AK
563if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
564 echo $ac_n "(cached) $ac_c" 1>&6
565else
566 if test -n "$AWK"; then
567 ac_cv_prog_AWK="$AWK" # Let the user override the test.
568else
569 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
570 ac_dummy="$PATH"
571 for ac_dir in $ac_dummy; do
572 test -z "$ac_dir" && ac_dir=.
573 if test -f $ac_dir/$ac_word; then
574 ac_cv_prog_AWK="$ac_prog"
575 break
576 fi
577 done
578 IFS="$ac_save_ifs"
579fi
580fi
581AWK="$ac_cv_prog_AWK"
582if test -n "$AWK"; then
583 echo "$ac_t""$AWK" 1>&6
584else
585 echo "$ac_t""no" 1>&6
586fi
587
588test -n "$AWK" && break
589done
590
591# Extract the first word of "gcc", so it can be a program name with args.
592set dummy gcc; ac_word=$2
593echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4b403510 594echo "configure:595: checking for $ac_word" >&5
795ca3e5
AK
595if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
596 echo $ac_n "(cached) $ac_c" 1>&6
597else
598 if test -n "$CC"; then
599 ac_cv_prog_CC="$CC" # Let the user override the test.
600else
601 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
602 ac_dummy="$PATH"
603 for ac_dir in $ac_dummy; do
604 test -z "$ac_dir" && ac_dir=.
605 if test -f $ac_dir/$ac_word; then
606 ac_cv_prog_CC="gcc"
607 break
608 fi
609 done
610 IFS="$ac_save_ifs"
611fi
612fi
613CC="$ac_cv_prog_CC"
614if test -n "$CC"; then
615 echo "$ac_t""$CC" 1>&6
616else
617 echo "$ac_t""no" 1>&6
618fi
619
620if test -z "$CC"; then
621 # Extract the first word of "cc", so it can be a program name with args.
622set dummy cc; ac_word=$2
623echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4b403510 624echo "configure:625: checking for $ac_word" >&5
795ca3e5
AK
625if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
626 echo $ac_n "(cached) $ac_c" 1>&6
627else
628 if test -n "$CC"; then
629 ac_cv_prog_CC="$CC" # Let the user override the test.
630else
631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
632 ac_prog_rejected=no
633 ac_dummy="$PATH"
634 for ac_dir in $ac_dummy; do
635 test -z "$ac_dir" && ac_dir=.
636 if test -f $ac_dir/$ac_word; then
637 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
638 ac_prog_rejected=yes
639 continue
640 fi
641 ac_cv_prog_CC="cc"
642 break
643 fi
644 done
645 IFS="$ac_save_ifs"
646if test $ac_prog_rejected = yes; then
647 # We found a bogon in the path, so make sure we never use it.
648 set dummy $ac_cv_prog_CC
649 shift
650 if test $# -gt 0; then
651 # We chose a different compiler from the bogus one.
652 # However, it has the same basename, so the bogon will be chosen
653 # first if we set CC to just the basename; use the full file name.
654 shift
655 set dummy "$ac_dir/$ac_word" "$@"
656 shift
657 ac_cv_prog_CC="$@"
658 fi
659fi
660fi
661fi
662CC="$ac_cv_prog_CC"
663if test -n "$CC"; then
664 echo "$ac_t""$CC" 1>&6
665else
666 echo "$ac_t""no" 1>&6
667fi
668
669 if test -z "$CC"; then
670 case "`uname -s`" in
671 *win32* | *WIN32*)
672 # Extract the first word of "cl", so it can be a program name with args.
673set dummy cl; ac_word=$2
674echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4b403510 675echo "configure:676: checking for $ac_word" >&5
795ca3e5
AK
676if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
677 echo $ac_n "(cached) $ac_c" 1>&6
678else
679 if test -n "$CC"; then
680 ac_cv_prog_CC="$CC" # Let the user override the test.
681else
682 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
683 ac_dummy="$PATH"
684 for ac_dir in $ac_dummy; do
685 test -z "$ac_dir" && ac_dir=.
686 if test -f $ac_dir/$ac_word; then
687 ac_cv_prog_CC="cl"
688 break
689 fi
690 done
691 IFS="$ac_save_ifs"
692fi
693fi
694CC="$ac_cv_prog_CC"
695if test -n "$CC"; then
696 echo "$ac_t""$CC" 1>&6
697else
698 echo "$ac_t""no" 1>&6
699fi
700 ;;
701 esac
702 fi
703 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
704fi
705
706echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
4b403510 707echo "configure:708: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
795ca3e5
AK
708
709ac_ext=c
710# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
711ac_cpp='$CPP $CPPFLAGS'
712ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
713ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
714cross_compiling=$ac_cv_prog_cc_cross
715
716cat > conftest.$ac_ext << EOF
717
4b403510 718#line 719 "configure"
795ca3e5
AK
719#include "confdefs.h"
720
721main(){return(0);}
722EOF
4b403510 723if { (eval echo configure:724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
795ca3e5
AK
724 ac_cv_prog_cc_works=yes
725 # If we can't run a trivial program, we are probably using a cross compiler.
726 if (./conftest; exit) 2>/dev/null; then
727 ac_cv_prog_cc_cross=no
728 else
729 ac_cv_prog_cc_cross=yes
730 fi
731else
732 echo "configure: failed program was:" >&5
733 cat conftest.$ac_ext >&5
734 ac_cv_prog_cc_works=no
735fi
736rm -fr conftest*
737ac_ext=c
738# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
739ac_cpp='$CPP $CPPFLAGS'
740ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
741ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
742cross_compiling=$ac_cv_prog_cc_cross
743
744echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
745if test $ac_cv_prog_cc_works = no; then
746 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
747fi
748echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
4b403510 749echo "configure:750: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
795ca3e5
AK
750echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
751cross_compiling=$ac_cv_prog_cc_cross
752
753echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
4b403510 754echo "configure:755: checking whether we are using GNU C" >&5
795ca3e5
AK
755if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
756 echo $ac_n "(cached) $ac_c" 1>&6
757else
758 cat > conftest.c <<EOF
759#ifdef __GNUC__
760 yes;
761#endif
762EOF
4b403510 763if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
795ca3e5
AK
764 ac_cv_prog_gcc=yes
765else
766 ac_cv_prog_gcc=no
767fi
768fi
769
770echo "$ac_t""$ac_cv_prog_gcc" 1>&6
771
772if test $ac_cv_prog_gcc = yes; then
773 GCC=yes
774else
775 GCC=
776fi
777
778ac_test_CFLAGS="${CFLAGS+set}"
779ac_save_CFLAGS="$CFLAGS"
780CFLAGS=
781echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
4b403510 782echo "configure:783: checking whether ${CC-cc} accepts -g" >&5
795ca3e5
AK
783if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
784 echo $ac_n "(cached) $ac_c" 1>&6
785else
786 echo 'void f(){}' > conftest.c
787if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
788 ac_cv_prog_cc_g=yes
789else
790 ac_cv_prog_cc_g=no
791fi
792rm -f conftest*
793
794fi
795
796echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
797if test "$ac_test_CFLAGS" = set; then
798 CFLAGS="$ac_save_CFLAGS"
799elif test $ac_cv_prog_cc_g = yes; then
800 if test "$GCC" = yes; then
801 CFLAGS="-g -O2"
802 else
803 CFLAGS="-g"
804 fi
805else
806 if test "$GCC" = yes; then
807 CFLAGS="-O2"
808 else
809 CFLAGS=
810 fi
811fi
812
813# Find a good install program. We prefer a C program (faster),
814# so one script is as good as another. But avoid the broken or
815# incompatible versions:
816# SysV /etc/install, /usr/sbin/install
817# SunOS /usr/etc/install
818# IRIX /sbin/install
819# AIX /bin/install
820# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
821# AFS /usr/afsws/bin/install, which mishandles nonexistent args
822# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
823# ./install, which can be erroneously created by make from ./install.sh.
824echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4b403510 825echo "configure:826: checking for a BSD compatible install" >&5
795ca3e5
AK
826if test -z "$INSTALL"; then
827if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
828 echo $ac_n "(cached) $ac_c" 1>&6
829else
830 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
831 for ac_dir in $PATH; do
832 # Account for people who put trailing slashes in PATH elements.
833 case "$ac_dir/" in
834 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
835 *)
836 # OSF1 and SCO ODT 3.0 have their own names for install.
837 # Don't use installbsd from OSF since it installs stuff as root
838 # by default.
839 for ac_prog in ginstall scoinst install; do
840 if test -f $ac_dir/$ac_prog; then
841 if test $ac_prog = install &&
842 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
843 # AIX install. It has an incompatible calling convention.
844 :
845 else
846 ac_cv_path_install="$ac_dir/$ac_prog -c"
847 break 2
848 fi
849 fi
850 done
851 ;;
852 esac
853 done
854 IFS="$ac_save_IFS"
855
856fi
857 if test "${ac_cv_path_install+set}" = set; then
858 INSTALL="$ac_cv_path_install"
859 else
860 # As a last resort, use the slow shell script. We don't cache a
861 # path for INSTALL within a source directory, because that will
862 # break other packages using the cache if that directory is
863 # removed, or if the path is relative.
864 INSTALL="$ac_install_sh"
865 fi
866fi
867echo "$ac_t""$INSTALL" 1>&6
868
869# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
870# It thinks the first close brace ends the variable substitution.
871test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
872
873test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
874
875test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
876
877echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
4b403510 878echo "configure:879: checking whether ln -s works" >&5
795ca3e5
AK
879if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
880 echo $ac_n "(cached) $ac_c" 1>&6
881else
882 rm -f conftestdata
883if ln -s X conftestdata 2>/dev/null
884then
885 rm -f conftestdata
886 ac_cv_prog_LN_S="ln -s"
887else
888 ac_cv_prog_LN_S=ln
889fi
890fi
891LN_S="$ac_cv_prog_LN_S"
892if test "$ac_cv_prog_LN_S" = "ln -s"; then
893 echo "$ac_t""yes" 1>&6
894else
895 echo "$ac_t""no" 1>&6
896fi
897
898echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4b403510 899echo "configure:900: checking whether ${MAKE-make} sets \${MAKE}" >&5
795ca3e5
AK
900set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
901if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
902 echo $ac_n "(cached) $ac_c" 1>&6
903else
904 cat > conftestmake <<\EOF
905all:
906 @echo 'ac_maketemp="${MAKE}"'
907EOF
908# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
909eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
910if test -n "$ac_maketemp"; then
911 eval ac_cv_prog_make_${ac_make}_set=yes
912else
913 eval ac_cv_prog_make_${ac_make}_set=no
914fi
915rm -f conftestmake
916fi
917if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
918 echo "$ac_t""yes" 1>&6
919 SET_MAKE=
920else
921 echo "$ac_t""no" 1>&6
922 SET_MAKE="MAKE=${MAKE-make}"
923fi
924
925# Extract the first word of "ranlib", so it can be a program name with args.
926set dummy ranlib; ac_word=$2
927echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4b403510 928echo "configure:929: checking for $ac_word" >&5
795ca3e5
AK
929if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
930 echo $ac_n "(cached) $ac_c" 1>&6
931else
932 if test -n "$RANLIB"; then
933 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
934else
935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
936 ac_dummy="$PATH"
937 for ac_dir in $ac_dummy; do
938 test -z "$ac_dir" && ac_dir=.
939 if test -f $ac_dir/$ac_word; then
940 ac_cv_prog_RANLIB="ranlib"
941 break
942 fi
943 done
944 IFS="$ac_save_ifs"
945 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
946fi
947fi
948RANLIB="$ac_cv_prog_RANLIB"
949if test -n "$RANLIB"; then
950 echo "$ac_t""$RANLIB" 1>&6
951else
952 echo "$ac_t""no" 1>&6
953fi
954
955
956ac_header_dirent=no
957for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
958do
959ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
960echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4b403510 961echo "configure:962: checking for $ac_hdr that defines DIR" >&5
795ca3e5
AK
962if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
963 echo $ac_n "(cached) $ac_c" 1>&6
964else
965 cat > conftest.$ac_ext <<EOF
4b403510 966#line 967 "configure"
795ca3e5
AK
967#include "confdefs.h"
968#include <sys/types.h>
969#include <$ac_hdr>
970int main() {
971DIR *dirp = 0;
972; return 0; }
973EOF
4b403510 974if { (eval echo configure:975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
795ca3e5
AK
975 rm -rf conftest*
976 eval "ac_cv_header_dirent_$ac_safe=yes"
977else
978 echo "configure: failed program was:" >&5
979 cat conftest.$ac_ext >&5
980 rm -rf conftest*
981 eval "ac_cv_header_dirent_$ac_safe=no"
982fi
983rm -f conftest*
984fi
985if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
986 echo "$ac_t""yes" 1>&6
987 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
988 cat >> confdefs.h <<EOF
989#define $ac_tr_hdr 1
990EOF
991 ac_header_dirent=$ac_hdr; break
992else
993 echo "$ac_t""no" 1>&6
994fi
995done
996# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
997if test $ac_header_dirent = dirent.h; then
998echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4b403510 999echo "configure:1000: checking for opendir in -ldir" >&5
795ca3e5
AK
1000ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1001if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1002 echo $ac_n "(cached) $ac_c" 1>&6
1003else
1004 ac_save_LIBS="$LIBS"
1005LIBS="-ldir $LIBS"
1006cat > conftest.$ac_ext <<EOF
4b403510 1007#line 1008 "configure"
795ca3e5
AK
1008#include "confdefs.h"
1009/* Override any gcc2 internal prototype to avoid an error. */
1010/* We use char because int might match the return type of a gcc2
1011 builtin and then its argument prototype would still apply. */
1012char opendir();
1013
1014int main() {
1015opendir()
1016; return 0; }
1017EOF
4b403510 1018if { (eval echo configure:1019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
795ca3e5
AK
1019 rm -rf conftest*
1020 eval "ac_cv_lib_$ac_lib_var=yes"
1021else
1022 echo "configure: failed program was:" >&5
1023 cat conftest.$ac_ext >&5
1024 rm -rf conftest*
1025 eval "ac_cv_lib_$ac_lib_var=no"
1026fi
1027rm -f conftest*
1028LIBS="$ac_save_LIBS"
1029
1030fi
1031if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1032 echo "$ac_t""yes" 1>&6
1033 LIBS="$LIBS -ldir"
1034else
1035 echo "$ac_t""no" 1>&6
1036fi
1037
1038else
1039echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4b403510 1040echo "configure:1041: checking for opendir in -lx" >&5
795ca3e5
AK
1041ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1042if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1043 echo $ac_n "(cached) $ac_c" 1>&6
1044else
1045 ac_save_LIBS="$LIBS"
1046LIBS="-lx $LIBS"
1047cat > conftest.$ac_ext <<EOF
4b403510 1048#line 1049 "configure"
795ca3e5
AK
1049#include "confdefs.h"
1050/* Override any gcc2 internal prototype to avoid an error. */
1051/* We use char because int might match the return type of a gcc2
1052 builtin and then its argument prototype would still apply. */
1053char opendir();
1054
1055int main() {
1056opendir()
1057; return 0; }
1058EOF
4b403510 1059if { (eval echo configure:1060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
795ca3e5
AK
1060 rm -rf conftest*
1061 eval "ac_cv_lib_$ac_lib_var=yes"
1062else
1063 echo "configure: failed program was:" >&5
1064 cat conftest.$ac_ext >&5
1065 rm -rf conftest*
1066 eval "ac_cv_lib_$ac_lib_var=no"
1067fi
1068rm -f conftest*
1069LIBS="$ac_save_LIBS"
1070
1071fi
1072if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1073 echo "$ac_t""yes" 1>&6
1074 LIBS="$LIBS -lx"
1075else
1076 echo "$ac_t""no" 1>&6
1077fi
1078
1079fi
1080
1081echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
4b403510 1082echo "configure:1083: checking how to run the C preprocessor" >&5
795ca3e5
AK
1083# On Suns, sometimes $CPP names a directory.
1084if test -n "$CPP" && test -d "$CPP"; then
1085 CPP=
1086fi
1087if test -z "$CPP"; then
1088if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1089 echo $ac_n "(cached) $ac_c" 1>&6
1090else
1091 # This must be in double quotes, not single quotes, because CPP may get
1092 # substituted into the Makefile and "${CC-cc}" will confuse make.
1093 CPP="${CC-cc} -E"
1094 # On the NeXT, cc -E runs the code through the compiler's parser,
1095 # not just through cpp.
1096 cat > conftest.$ac_ext <<EOF
4b403510 1097#line 1098 "configure"
795ca3e5
AK
1098#include "confdefs.h"
1099#include <assert.h>
1100Syntax Error
1101EOF
1102ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b403510 1103{ (eval echo configure:1104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
795ca3e5
AK
1104ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1105if test -z "$ac_err"; then
1106 :
1107else
1108 echo "$ac_err" >&5
1109 echo "configure: failed program was:" >&5
1110 cat conftest.$ac_ext >&5
1111 rm -rf conftest*
1112 CPP="${CC-cc} -E -traditional-cpp"
1113 cat > conftest.$ac_ext <<EOF
4b403510 1114#line 1115 "configure"
795ca3e5
AK
1115#include "confdefs.h"
1116#include <assert.h>
1117Syntax Error
1118EOF
1119ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b403510 1120{ (eval echo configure:1121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
795ca3e5
AK
1121ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1122if test -z "$ac_err"; then
1123 :
1124else
1125 echo "$ac_err" >&5
1126 echo "configure: failed program was:" >&5
1127 cat conftest.$ac_ext >&5
1128 rm -rf conftest*
1129 CPP="${CC-cc} -nologo -E"
1130 cat > conftest.$ac_ext <<EOF
4b403510 1131#line 1132 "configure"
795ca3e5
AK
1132#include "confdefs.h"
1133#include <assert.h>
1134Syntax Error
1135EOF
1136ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b403510 1137{ (eval echo configure:1138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
795ca3e5
AK
1138ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1139if test -z "$ac_err"; then
1140 :
1141else
1142 echo "$ac_err" >&5
1143 echo "configure: failed program was:" >&5
1144 cat conftest.$ac_ext >&5
1145 rm -rf conftest*
1146 CPP=/lib/cpp
1147fi
1148rm -f conftest*
1149fi
1150rm -f conftest*
1151fi
1152rm -f conftest*
1153 ac_cv_prog_CPP="$CPP"
1154fi
1155 CPP="$ac_cv_prog_CPP"
1156else
1157 ac_cv_prog_CPP="$CPP"
1158fi
1159echo "$ac_t""$CPP" 1>&6
1160
1161echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4b403510 1162echo "configure:1163: checking for ANSI C header files" >&5
795ca3e5
AK
1163if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1164 echo $ac_n "(cached) $ac_c" 1>&6
1165else
1166 cat > conftest.$ac_ext <<EOF
4b403510 1167#line 1168 "configure"
795ca3e5
AK
1168#include "confdefs.h"
1169#include <stdlib.h>
1170#include <stdarg.h>
1171#include <string.h>
1172#include <float.h>
1173EOF
1174ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b403510 1175{ (eval echo configure:1176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
795ca3e5
AK
1176ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1177if test -z "$ac_err"; then
1178 rm -rf conftest*
1179 ac_cv_header_stdc=yes
1180else
1181 echo "$ac_err" >&5
1182 echo "configure: failed program was:" >&5
1183 cat conftest.$ac_ext >&5
1184 rm -rf conftest*
1185 ac_cv_header_stdc=no
1186fi
1187rm -f conftest*
1188
1189if test $ac_cv_header_stdc = yes; then
1190 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1191cat > conftest.$ac_ext <<EOF
4b403510 1192#line 1193 "configure"
795ca3e5
AK
1193#include "confdefs.h"
1194#include <string.h>
1195EOF
1196if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1197 egrep "memchr" >/dev/null 2>&1; then
1198 :
1199else
1200 rm -rf conftest*
1201 ac_cv_header_stdc=no
1202fi
1203rm -f conftest*
1204
1205fi
1206
1207if test $ac_cv_header_stdc = yes; then
1208 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1209cat > conftest.$ac_ext <<EOF
4b403510 1210#line 1211 "configure"
795ca3e5
AK
1211#include "confdefs.h"
1212#include <stdlib.h>
1213EOF
1214if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1215 egrep "free" >/dev/null 2>&1; then
1216 :
1217else
1218 rm -rf conftest*
1219 ac_cv_header_stdc=no
1220fi
1221rm -f conftest*
1222
1223fi
1224
1225if test $ac_cv_header_stdc = yes; then
1226 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1227if test "$cross_compiling" = yes; then
1228 :
1229else
1230 cat > conftest.$ac_ext <<EOF
4b403510 1231#line 1232 "configure"
795ca3e5
AK
1232#include "confdefs.h"
1233#include <ctype.h>
1234#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1235#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1236#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1237int main () { int i; for (i = 0; i < 256; i++)
1238if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1239exit (0); }
1240
1241EOF
4b403510 1242if { (eval echo configure:1243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
795ca3e5
AK
1243then
1244 :
1245else
1246 echo "configure: failed program was:" >&5
1247 cat conftest.$ac_ext >&5
1248 rm -fr conftest*
1249 ac_cv_header_stdc=no
1250fi
1251rm -fr conftest*
1252fi
1253
1254fi
1255fi
1256
1257echo "$ac_t""$ac_cv_header_stdc" 1>&6
1258if test $ac_cv_header_stdc = yes; then
1259 cat >> confdefs.h <<\EOF
1260#define STDC_HEADERS 1
1261EOF
1262
1263fi
1264
1265for ac_hdr in fcntl.h malloc.h sys/ioctl.h unistd.h
1266do
1267ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1268echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4b403510 1269echo "configure:1270: checking for $ac_hdr" >&5
795ca3e5
AK
1270if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1271 echo $ac_n "(cached) $ac_c" 1>&6
1272else
1273 cat > conftest.$ac_ext <<EOF
4b403510 1274#line 1275 "configure"
795ca3e5
AK
1275#include "confdefs.h"
1276#include <$ac_hdr>
1277EOF
1278ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b403510 1279{ (eval echo configure:1280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
795ca3e5
AK
1280ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1281if test -z "$ac_err"; then
1282 rm -rf conftest*
1283 eval "ac_cv_header_$ac_safe=yes"
1284else
1285 echo "$ac_err" >&5
1286 echo "configure: failed program was:" >&5
1287 cat conftest.$ac_ext >&5
1288 rm -rf conftest*
1289 eval "ac_cv_header_$ac_safe=no"
1290fi
1291rm -f conftest*
1292fi
1293if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1294 echo "$ac_t""yes" 1>&6
1295 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1296 cat >> confdefs.h <<EOF
1297#define $ac_tr_hdr 1
1298EOF
1299
1300else
1301 echo "$ac_t""no" 1>&6
1302fi
1303done
1304
1305
1306echo $ac_n "checking for working const""... $ac_c" 1>&6
4b403510 1307echo "configure:1308: checking for working const" >&5
795ca3e5
AK
1308if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1309 echo $ac_n "(cached) $ac_c" 1>&6
1310else
1311 cat > conftest.$ac_ext <<EOF
4b403510 1312#line 1313 "configure"
795ca3e5
AK
1313#include "confdefs.h"
1314
1315int main() {
1316
1317/* Ultrix mips cc rejects this. */
4b403510 1318typedef int charset[2]; const charset x = {0,0};
795ca3e5
AK
1319/* SunOS 4.1.1 cc rejects this. */
1320char const *const *ccp;
1321char **p;
1322/* NEC SVR4.0.2 mips cc rejects this. */
1323struct point {int x, y;};
1324static struct point const zero = {0,0};
1325/* AIX XL C 1.02.0.0 rejects this.
1326 It does not let you subtract one const X* pointer from another in an arm
1327 of an if-expression whose if-part is not a constant expression */
1328const char *g = "string";
1329ccp = &g + (g ? g-g : 0);
1330/* HPUX 7.0 cc rejects these. */
1331++ccp;
1332p = (char**) ccp;
1333ccp = (char const *const *) p;
1334{ /* SCO 3.2v4 cc rejects this. */
1335 char *t;
1336 char const *s = 0 ? (char *) 0 : (char const *) 0;
1337
1338 *t++ = 0;
1339}
1340{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1341 int x[] = {25, 17};
1342 const int *foo = &x[0];
1343 ++foo;
1344}
1345{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1346 typedef const int *iptr;
1347 iptr p = 0;
1348 ++p;
1349}
1350{ /* AIX XL C 1.02.0.0 rejects this saying
1351 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1352 struct s { int j; const int *ap[3]; };
1353 struct s *b; b->j = 5;
1354}
1355{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1356 const int foo = 10;
1357}
1358
1359; return 0; }
1360EOF
4b403510 1361if { (eval echo configure:1362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
795ca3e5
AK
1362 rm -rf conftest*
1363 ac_cv_c_const=yes
1364else
1365 echo "configure: failed program was:" >&5
1366 cat conftest.$ac_ext >&5
1367 rm -rf conftest*
1368 ac_cv_c_const=no
1369fi
1370rm -f conftest*
1371fi
1372
1373echo "$ac_t""$ac_cv_c_const" 1>&6
1374if test $ac_cv_c_const = no; then
1375 cat >> confdefs.h <<\EOF
1376#define const
1377EOF
1378
1379fi
1380
1381echo $ac_n "checking for inline""... $ac_c" 1>&6
4b403510 1382echo "configure:1383: checking for inline" >&5
795ca3e5
AK
1383if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1384 echo $ac_n "(cached) $ac_c" 1>&6
1385else
1386 ac_cv_c_inline=no
1387for ac_kw in inline __inline__ __inline; do
1388 cat > conftest.$ac_ext <<EOF
4b403510 1389#line 1390 "configure"
795ca3e5
AK
1390#include "confdefs.h"
1391
1392int main() {
4b403510 1393} int $ac_kw foo() {
795ca3e5
AK
1394; return 0; }
1395EOF
4b403510 1396if { (eval echo configure:1397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
795ca3e5
AK
1397 rm -rf conftest*
1398 ac_cv_c_inline=$ac_kw; break
1399else
1400 echo "configure: failed program was:" >&5
1401 cat conftest.$ac_ext >&5
1402fi
1403rm -f conftest*
1404done
1405
1406fi
1407
1408echo "$ac_t""$ac_cv_c_inline" 1>&6
1409case "$ac_cv_c_inline" in
1410 inline | yes) ;;
1411 no) cat >> confdefs.h <<\EOF
1412#define inline
1413EOF
1414 ;;
1415 *) cat >> confdefs.h <<EOF
1416#define inline $ac_cv_c_inline
1417EOF
1418 ;;
1419esac
1420
1421echo $ac_n "checking for off_t""... $ac_c" 1>&6
4b403510 1422echo "configure:1423: checking for off_t" >&5
795ca3e5
AK
1423if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1424 echo $ac_n "(cached) $ac_c" 1>&6
1425else
1426 cat > conftest.$ac_ext <<EOF
4b403510 1427#line 1428 "configure"
795ca3e5
AK
1428#include "confdefs.h"
1429#include <sys/types.h>
1430#if STDC_HEADERS
1431#include <stdlib.h>
1432#include <stddef.h>
1433#endif
1434EOF
1435if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1436 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1437 rm -rf conftest*
1438 ac_cv_type_off_t=yes
1439else
1440 rm -rf conftest*
1441 ac_cv_type_off_t=no
1442fi
1443rm -f conftest*
1444
1445fi
1446echo "$ac_t""$ac_cv_type_off_t" 1>&6
1447if test $ac_cv_type_off_t = no; then
1448 cat >> confdefs.h <<\EOF
1449#define off_t long
1450EOF
1451
1452fi
1453
1454echo $ac_n "checking for pid_t""... $ac_c" 1>&6
4b403510 1455echo "configure:1456: checking for pid_t" >&5
795ca3e5
AK
1456if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1458else
1459 cat > conftest.$ac_ext <<EOF
4b403510 1460#line 1461 "configure"
795ca3e5
AK
1461#include "confdefs.h"
1462#include <sys/types.h>
1463#if STDC_HEADERS
1464#include <stdlib.h>
1465#include <stddef.h>
1466#endif
1467EOF
1468if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1469 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1470 rm -rf conftest*
1471 ac_cv_type_pid_t=yes
1472else
1473 rm -rf conftest*
1474 ac_cv_type_pid_t=no
1475fi
1476rm -f conftest*
1477
1478fi
1479echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1480if test $ac_cv_type_pid_t = no; then
1481 cat >> confdefs.h <<\EOF
1482#define pid_t int
1483EOF
1484
1485fi
1486
1487echo $ac_n "checking for size_t""... $ac_c" 1>&6
4b403510 1488echo "configure:1489: checking for size_t" >&5
795ca3e5
AK
1489if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1490 echo $ac_n "(cached) $ac_c" 1>&6
1491else
1492 cat > conftest.$ac_ext <<EOF
4b403510 1493#line 1494 "configure"
795ca3e5
AK
1494#include "confdefs.h"
1495#include <sys/types.h>
1496#if STDC_HEADERS
1497#include <stdlib.h>
1498#include <stddef.h>
1499#endif
1500EOF
1501if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1502 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1503 rm -rf conftest*
1504 ac_cv_type_size_t=yes
1505else
1506 rm -rf conftest*
1507 ac_cv_type_size_t=no
1508fi
1509rm -f conftest*
1510
1511fi
1512echo "$ac_t""$ac_cv_type_size_t" 1>&6
1513if test $ac_cv_type_size_t = no; then
1514 cat >> confdefs.h <<\EOF
1515#define size_t unsigned
1516EOF
1517
1518fi
1519
1520echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
4b403510 1521echo "configure:1522: checking for st_rdev in struct stat" >&5
795ca3e5
AK
1522if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
1523 echo $ac_n "(cached) $ac_c" 1>&6
1524else
1525 cat > conftest.$ac_ext <<EOF
4b403510 1526#line 1527 "configure"
795ca3e5
AK
1527#include "confdefs.h"
1528#include <sys/types.h>
1529#include <sys/stat.h>
1530int main() {
1531struct stat s; s.st_rdev;
1532; return 0; }
1533EOF
4b403510 1534if { (eval echo configure:1535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
795ca3e5
AK
1535 rm -rf conftest*
1536 ac_cv_struct_st_rdev=yes
1537else
1538 echo "configure: failed program was:" >&5
1539 cat conftest.$ac_ext >&5
1540 rm -rf conftest*
1541 ac_cv_struct_st_rdev=no
1542fi
1543rm -f conftest*
1544fi
1545
1546echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
1547if test $ac_cv_struct_st_rdev = yes; then
1548 cat >> confdefs.h <<\EOF
1549#define HAVE_ST_RDEV 1
1550EOF
1551
1552fi
1553
1554echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4b403510 1555echo "configure:1556: checking whether time.h and sys/time.h may both be included" >&5
795ca3e5
AK
1556if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1557 echo $ac_n "(cached) $ac_c" 1>&6
1558else
1559 cat > conftest.$ac_ext <<EOF
4b403510 1560#line 1561 "configure"
795ca3e5
AK
1561#include "confdefs.h"
1562#include <sys/types.h>
1563#include <sys/time.h>
1564#include <time.h>
1565int main() {
1566struct tm *tp;
1567; return 0; }
1568EOF
4b403510 1569if { (eval echo configure:1570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
795ca3e5
AK
1570 rm -rf conftest*
1571 ac_cv_header_time=yes
1572else
1573 echo "configure: failed program was:" >&5
1574 cat conftest.$ac_ext >&5
1575 rm -rf conftest*
1576 ac_cv_header_time=no
1577fi
1578rm -f conftest*
1579fi
1580
1581echo "$ac_t""$ac_cv_header_time" 1>&6
1582if test $ac_cv_header_time = yes; then
1583 cat >> confdefs.h <<\EOF
1584#define TIME_WITH_SYS_TIME 1
1585EOF
1586
1587fi
1588
1589
1590
1591
1592# Check whether --with-user or --without-user was given.
1593if test "${with_user+set}" = set; then
1594 withval="$with_user"
1595 OWNER="$withval"
1596else
1597 OWNER="root"
1598fi
1599
1600
1601# Check whether --with-group or --without-group was given.
1602if test "${with_group+set}" = set; then
1603 withval="$with_group"
1604 GROUP="$withval"
1605else
1606 GROUP="root"
1607fi
1608
1609
795ca3e5
AK
1610# Check whether --enable-jobs or --disable-jobs was given.
1611if test "${enable_jobs+set}" = set; then
1612 enableval="$enable_jobs"
1613 JOBS=-j$enableval
1614else
1615 JOBS=
1616fi
1617
1618
1619# Check whether --enable-static_link or --disable-static_link was given.
1620if test "${enable_static_link+set}" = set; then
1621 enableval="$enable_static_link"
1622 STATIC_LINK=$enableval
1623else
1624 STATIC_LINK=no
1625fi
1626
1627
1628# Check whether --enable-readline or --disable-readline was given.
1629if test "${enable_readline+set}" = set; then
1630 enableval="$enable_readline"
1631 \
1632READLINE=$enableval
1633else
1634 READLINE=yes
1635fi
1636
1637
1638if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
1639 then exec_prefix="";
1640fi;
1641
1642if test $ac_cv_prog_gcc = yes; then
1643 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
4b403510 1644echo "configure:1645: checking whether ${CC-cc} needs -traditional" >&5
795ca3e5
AK
1645if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1646 echo $ac_n "(cached) $ac_c" 1>&6
1647else
1648 ac_pattern="Autoconf.*'x'"
1649 cat > conftest.$ac_ext <<EOF
4b403510 1650#line 1651 "configure"
795ca3e5
AK
1651#include "confdefs.h"
1652#include <sgtty.h>
1653Autoconf TIOCGETP
1654EOF
1655if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1656 egrep "$ac_pattern" >/dev/null 2>&1; then
1657 rm -rf conftest*
1658 ac_cv_prog_gcc_traditional=yes
1659else
1660 rm -rf conftest*
1661 ac_cv_prog_gcc_traditional=no
1662fi
1663rm -f conftest*
1664
1665
1666 if test $ac_cv_prog_gcc_traditional = no; then
1667 cat > conftest.$ac_ext <<EOF
4b403510 1668#line 1669 "configure"
795ca3e5
AK
1669#include "confdefs.h"
1670#include <termio.h>
1671Autoconf TCGETA
1672EOF
1673if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1674 egrep "$ac_pattern" >/dev/null 2>&1; then
1675 rm -rf conftest*
1676 ac_cv_prog_gcc_traditional=yes
1677fi
1678rm -f conftest*
1679
1680 fi
1681fi
1682
1683echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1684 if test $ac_cv_prog_gcc_traditional = yes; then
1685 CC="$CC -traditional"
1686 fi
1687fi
1688
1689echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4b403510 1690echo "configure:1691: checking return type of signal handlers" >&5
795ca3e5
AK
1691if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1692 echo $ac_n "(cached) $ac_c" 1>&6
1693else
1694 cat > conftest.$ac_ext <<EOF
4b403510 1695#line 1696 "configure"
795ca3e5
AK
1696#include "confdefs.h"
1697#include <sys/types.h>
1698#include <signal.h>
1699#ifdef signal
1700#undef signal
1701#endif
1702#ifdef __cplusplus
1703extern "C" void (*signal (int, void (*)(int)))(int);
1704#else
1705void (*signal ()) ();
1706#endif
1707
1708int main() {
1709int i;
1710; return 0; }
1711EOF
4b403510 1712if { (eval echo configure:1713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
795ca3e5
AK
1713 rm -rf conftest*
1714 ac_cv_type_signal=void
1715else
1716 echo "configure: failed program was:" >&5
1717 cat conftest.$ac_ext >&5
1718 rm -rf conftest*
1719 ac_cv_type_signal=int
1720fi
1721rm -f conftest*
1722fi
1723
1724echo "$ac_t""$ac_cv_type_signal" 1>&6
1725cat >> confdefs.h <<EOF
1726#define RETSIGTYPE $ac_cv_type_signal
1727EOF
1728
1729
1730echo $ac_n "checking for vprintf""... $ac_c" 1>&6
4b403510 1731echo "configure:1732: checking for vprintf" >&5
795ca3e5
AK
1732if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1733 echo $ac_n "(cached) $ac_c" 1>&6
1734else
1735 cat > conftest.$ac_ext <<EOF
4b403510 1736#line 1737 "configure"
795ca3e5
AK
1737#include "confdefs.h"
1738/* System header to define __stub macros and hopefully few prototypes,
1739 which can conflict with char vprintf(); below. */
1740#include <assert.h>
1741/* Override any gcc2 internal prototype to avoid an error. */
1742/* We use char because int might match the return type of a gcc2
1743 builtin and then its argument prototype would still apply. */
1744char vprintf();
1745
1746int main() {
1747
1748/* The GNU C library defines this for functions which it implements
1749 to always fail with ENOSYS. Some functions are actually named
1750 something starting with __ and the normal name is an alias. */
1751#if defined (__stub_vprintf) || defined (__stub___vprintf)
1752choke me
1753#else
1754vprintf();
1755#endif
1756
1757; return 0; }
1758EOF
4b403510 1759if { (eval echo configure:1760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
795ca3e5
AK
1760 rm -rf conftest*
1761 eval "ac_cv_func_vprintf=yes"
1762else
1763 echo "configure: failed program was:" >&5
1764 cat conftest.$ac_ext >&5
1765 rm -rf conftest*
1766 eval "ac_cv_func_vprintf=no"
1767fi
1768rm -f conftest*
1769fi
1770
1771if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1772 echo "$ac_t""yes" 1>&6
1773 cat >> confdefs.h <<\EOF
1774#define HAVE_VPRINTF 1
1775EOF
1776
1777else
1778 echo "$ac_t""no" 1>&6
1779fi
1780
1781if test "$ac_cv_func_vprintf" != yes; then
1782echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
4b403510 1783echo "configure:1784: checking for _doprnt" >&5
795ca3e5
AK
1784if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1785 echo $ac_n "(cached) $ac_c" 1>&6
1786else
1787 cat > conftest.$ac_ext <<EOF
4b403510 1788#line 1789 "configure"
795ca3e5
AK
1789#include "confdefs.h"
1790/* System header to define __stub macros and hopefully few prototypes,
1791 which can conflict with char _doprnt(); below. */
1792#include <assert.h>
1793/* Override any gcc2 internal prototype to avoid an error. */
1794/* We use char because int might match the return type of a gcc2
1795 builtin and then its argument prototype would still apply. */
1796char _doprnt();
1797
1798int main() {
1799
1800/* The GNU C library defines this for functions which it implements
1801 to always fail with ENOSYS. Some functions are actually named
1802 something starting with __ and the normal name is an alias. */
1803#if defined (__stub__doprnt) || defined (__stub____doprnt)
1804choke me
1805#else
1806_doprnt();
1807#endif
1808
1809; return 0; }
1810EOF
4b403510 1811if { (eval echo configure:1812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
795ca3e5
AK
1812 rm -rf conftest*
1813 eval "ac_cv_func__doprnt=yes"
1814else
1815 echo "configure: failed program was:" >&5
1816 cat conftest.$ac_ext >&5
1817 rm -rf conftest*
1818 eval "ac_cv_func__doprnt=no"
1819fi
1820rm -f conftest*
1821fi
1822
1823if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1824 echo "$ac_t""yes" 1>&6
1825 cat >> confdefs.h <<\EOF
1826#define HAVE_DOPRNT 1
1827EOF
1828
1829else
1830 echo "$ac_t""no" 1>&6
1831fi
1832
1833fi
1834
1835for ac_func in mkdir rmdir uname
1836do
1837echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4b403510 1838echo "configure:1839: checking for $ac_func" >&5
795ca3e5
AK
1839if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1840 echo $ac_n "(cached) $ac_c" 1>&6
1841else
1842 cat > conftest.$ac_ext <<EOF
4b403510 1843#line 1844 "configure"
795ca3e5
AK
1844#include "confdefs.h"
1845/* System header to define __stub macros and hopefully few prototypes,
1846 which can conflict with char $ac_func(); below. */
1847#include <assert.h>
1848/* Override any gcc2 internal prototype to avoid an error. */
1849/* We use char because int might match the return type of a gcc2
1850 builtin and then its argument prototype would still apply. */
1851char $ac_func();
1852
1853int main() {
1854
1855/* The GNU C library defines this for functions which it implements
1856 to always fail with ENOSYS. Some functions are actually named
1857 something starting with __ and the normal name is an alias. */
1858#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1859choke me
1860#else
1861$ac_func();
1862#endif
1863
1864; return 0; }
1865EOF
4b403510 1866if { (eval echo configure:1867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
795ca3e5
AK
1867 rm -rf conftest*
1868 eval "ac_cv_func_$ac_func=yes"
1869else
1870 echo "configure: failed program was:" >&5
1871 cat conftest.$ac_ext >&5
1872 rm -rf conftest*
1873 eval "ac_cv_func_$ac_func=no"
1874fi
1875rm -f conftest*
1876fi
1877
1878if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1879 echo "$ac_t""yes" 1>&6
1880 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1881 cat >> confdefs.h <<EOF
1882#define $ac_tr_func 1
1883EOF
1884
1885else
1886 echo "$ac_t""no" 1>&6
1887fi
1888done
1889
1890
1891if test x$READLINE = xyes; then
1892
1893echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
4b403510 1894echo "configure:1895: checking for library containing tgetent" >&5
795ca3e5
AK
1895if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1897else
1898 ac_func_search_save_LIBS="$LIBS"
1899ac_cv_search_tgetent="no"
1900cat > conftest.$ac_ext <<EOF
4b403510 1901#line 1902 "configure"
795ca3e5
AK
1902#include "confdefs.h"
1903/* Override any gcc2 internal prototype to avoid an error. */
1904/* We use char because int might match the return type of a gcc2
1905 builtin and then its argument prototype would still apply. */
1906char tgetent();
1907
1908int main() {
1909tgetent()
1910; return 0; }
1911EOF
4b403510 1912if { (eval echo configure:1913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
795ca3e5
AK
1913 rm -rf conftest*
1914 ac_cv_search_tgetent="none required"
1915else
1916 echo "configure: failed program was:" >&5
1917 cat conftest.$ac_ext >&5
1918fi
1919rm -f conftest*
1920test "$ac_cv_search_tgetent" = "no" && for i in ncurses curses termcap termlib; do
1921LIBS="-l$i $ac_func_search_save_LIBS"
1922cat > conftest.$ac_ext <<EOF
4b403510 1923#line 1924 "configure"
795ca3e5
AK
1924#include "confdefs.h"
1925/* Override any gcc2 internal prototype to avoid an error. */
1926/* We use char because int might match the return type of a gcc2
1927 builtin and then its argument prototype would still apply. */
1928char tgetent();
1929
1930int main() {
1931tgetent()
1932; return 0; }
1933EOF
4b403510 1934if { (eval echo configure:1935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
795ca3e5
AK
1935 rm -rf conftest*
1936 ac_cv_search_tgetent="-l$i"
1937break
1938else
1939 echo "configure: failed program was:" >&5
1940 cat conftest.$ac_ext >&5
1941fi
1942rm -f conftest*
1943done
1944LIBS="$ac_func_search_save_LIBS"
1945fi
1946
1947echo "$ac_t""$ac_cv_search_tgetent" 1>&6
1948if test "$ac_cv_search_tgetent" != "no"; then
1949 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
1950
1951else :
1952 { echo "configure: error: termcap could not be found which is required for the
1953--enable-readline option (which is enabled by default). Either disable readline
1954support with --disable-readline or download and install termcap from:
1955 ftp.gnu.org/gnu/termcap
1956Note: if you are using precompiled packages you will also need the development
1957 package as well (which may be called termcap-devel or something similar).
1958Note: (n)curses also seems to work as a substitute for termcap. This was
1959 not found either - but you could try installing that as well.
1960" 1>&2; exit 1; }
1961 exit
1962
1963fi
1964fi
1965
1966if test x$READLINE = xyes; then
1967 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
4b403510 1968echo "configure:1969: checking for readline in -lreadline" >&5
795ca3e5
AK
1969ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
1970if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1971 echo $ac_n "(cached) $ac_c" 1>&6
1972else
1973 ac_save_LIBS="$LIBS"
1974LIBS="-lreadline $LIBS"
1975cat > conftest.$ac_ext <<EOF
4b403510 1976#line 1977 "configure"
795ca3e5
AK
1977#include "confdefs.h"
1978/* Override any gcc2 internal prototype to avoid an error. */
1979/* We use char because int might match the return type of a gcc2
1980 builtin and then its argument prototype would still apply. */
1981char readline();
1982
1983int main() {
1984readline()
1985; return 0; }
1986EOF
4b403510 1987if { (eval echo configure:1988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
795ca3e5
AK
1988 rm -rf conftest*
1989 eval "ac_cv_lib_$ac_lib_var=yes"
1990else
1991 echo "configure: failed program was:" >&5
1992 cat conftest.$ac_ext >&5
1993 rm -rf conftest*
1994 eval "ac_cv_lib_$ac_lib_var=no"
1995fi
1996rm -f conftest*
1997LIBS="$ac_save_LIBS"
1998
1999fi
2000if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2001 echo "$ac_t""yes" 1>&6
2002 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2003 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2004 cat >> confdefs.h <<EOF
2005#define $ac_tr_lib 1
2006EOF
2007
2008 LIBS="-lreadline $LIBS"
2009
2010else
2011 echo "$ac_t""no" 1>&6
2012{ echo "configure: error: GNU Readline could not be found which is required for the
2013--enable-readline option (which is enabled by default). Either disable readline
2014support with --disable-readline or download and install readline from:
2015 ftp.gnu.org/gnu/readline
2016Note: if you are using precompiled packages you will also need the development
2017package as well (which may be called readline-devel or something similar).
2018" 1>&2; exit 1; }
2019 exit
2020
2021fi
2022
2023fi
2024
2025
2026
2027
2028
2029
2030
2031trap '' 1 2 15
2032cat > confcache <<\EOF
2033# This file is a shell script that caches the results of configure
2034# tests run on this system so they can be shared between configure
2035# scripts and configure runs. It is not useful on other systems.
2036# If it contains results you don't want to keep, you may remove or edit it.
2037#
2038# By default, configure uses ./config.cache as the cache file,
2039# creating it if it does not exist already. You can give configure
2040# the --cache-file=FILE option to use a different cache file; that is
2041# what configure does when it calls configure scripts in
2042# subdirectories, so they share the cache.
2043# Giving --cache-file=/dev/null disables caching, for debugging configure.
2044# config.status only pays attention to the cache file if you give it the
2045# --recheck option to rerun configure.
2046#
2047EOF
2048# The following way of writing the cache mishandles newlines in values,
2049# but we know of no workaround that is simple, portable, and efficient.
2050# So, don't put newlines in cache variables' values.
2051# Ultrix sh set writes to stderr and can't be redirected directly,
2052# and sets the high bit in the cache file unless we assign to the vars.
2053(set) 2>&1 |
2054 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2055 *ac_space=\ *)
2056 # `set' does not quote correctly, so add quotes (double-quote substitution
2057 # turns \\\\ into \\, and sed turns \\ into \).
2058 sed -n \
2059 -e "s/'/'\\\\''/g" \
2060 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2061 ;;
2062 *)
2063 # `set' quotes correctly as required by POSIX, so do not add quotes.
2064 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2065 ;;
2066 esac >> confcache
2067if cmp -s $cache_file confcache; then
2068 :
2069else
2070 if test -w $cache_file; then
2071 echo "updating cache $cache_file"
2072 cat confcache > $cache_file
2073 else
2074 echo "not updating unwritable cache $cache_file"
2075 fi
2076fi
2077rm -f confcache
2078
2079trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2080
2081test "x$prefix" = xNONE && prefix=$ac_default_prefix
2082# Let make expand exec_prefix.
2083test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2084
2085# Any assignment to VPATH causes Sun make to only execute
2086# the first set of double-colon rules, so remove it if not needed.
2087# If there is a colon in the path, we need to keep it.
2088if test "x$srcdir" = x.; then
2089 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2090fi
2091
2092trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2093
2094# Transform confdefs.h into DEFS.
2095# Protect against shell expansion while executing Makefile rules.
2096# Protect against Makefile macro expansion.
2097cat > conftest.defs <<\EOF
2098s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2099s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2100s%\[%\\&%g
2101s%\]%\\&%g
2102s%\$%$$%g
2103EOF
2104DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2105rm -f conftest.defs
2106
2107
2108# Without the "./", some shells look in PATH for config.status.
2109: ${CONFIG_STATUS=./config.status}
2110
2111echo creating $CONFIG_STATUS
2112rm -f $CONFIG_STATUS
2113cat > $CONFIG_STATUS <<EOF
2114#! /bin/sh
2115# Generated automatically by configure.
2116# Run this file to recreate the current configuration.
2117# This directory was configured as follows,
2118# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2119#
2120# $0 $ac_configure_args
2121#
2122# Compiler output produced by configure, useful for debugging
2123# configure, is in ./config.log if it exists.
2124
2125ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2126for ac_option
2127do
2128 case "\$ac_option" in
2129 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2130 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2131 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2132 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2133 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2134 exit 0 ;;
2135 -help | --help | --hel | --he | --h)
2136 echo "\$ac_cs_usage"; exit 0 ;;
2137 *) echo "\$ac_cs_usage"; exit 1 ;;
2138 esac
2139done
2140
2141ac_given_srcdir=$srcdir
2142ac_given_INSTALL="$INSTALL"
2143
2144trap 'rm -fr `echo "\
2145Makefile \
2146make.tmpl \
fa42e649 2147include/Makefile \
795ca3e5
AK
2148lib/Makefile \
2149man/Makefile \
2150tools/Makefile \
e6efb2b0 2151test/mm/Makefile \
43b7b8cf 2152test/device/Makefile \
e0304b58 2153test/format1/Makefile \
d1b28647 2154test/regex/Makefile \
291ec3b6 2155test/filters/Makefile \
795ca3e5
AK
2156" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2157EOF
2158cat >> $CONFIG_STATUS <<EOF
2159
2160# Protect against being on the right side of a sed subst in config.status.
2161sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2162 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2163$ac_vpsub
2164$extrasub
2165s%@SHELL@%$SHELL%g
2166s%@CFLAGS@%$CFLAGS%g
2167s%@CPPFLAGS@%$CPPFLAGS%g
2168s%@CXXFLAGS@%$CXXFLAGS%g
2169s%@FFLAGS@%$FFLAGS%g
2170s%@DEFS@%$DEFS%g
2171s%@LDFLAGS@%$LDFLAGS%g
2172s%@LIBS@%$LIBS%g
2173s%@exec_prefix@%$exec_prefix%g
2174s%@prefix@%$prefix%g
2175s%@program_transform_name@%$program_transform_name%g
2176s%@bindir@%$bindir%g
2177s%@sbindir@%$sbindir%g
2178s%@libexecdir@%$libexecdir%g
2179s%@datadir@%$datadir%g
2180s%@sysconfdir@%$sysconfdir%g
2181s%@sharedstatedir@%$sharedstatedir%g
2182s%@localstatedir@%$localstatedir%g
2183s%@libdir@%$libdir%g
2184s%@includedir@%$includedir%g
2185s%@oldincludedir@%$oldincludedir%g
2186s%@infodir@%$infodir%g
2187s%@mandir@%$mandir%g
2188s%@AWK@%$AWK%g
2189s%@CC@%$CC%g
2190s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2191s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2192s%@INSTALL_DATA@%$INSTALL_DATA%g
2193s%@LN_S@%$LN_S%g
2194s%@SET_MAKE@%$SET_MAKE%g
2195s%@RANLIB@%$RANLIB%g
2196s%@CPP@%$CPP%g
2197s%@JOBS@%$JOBS%g
2198s%@STATIC_LINK@%$STATIC_LINK%g
2199s%@READLINE@%$READLINE%g
795ca3e5
AK
2200s%@OWNER@%$OWNER%g
2201s%@GROUP@%$GROUP%g
2202
2203CEOF
2204EOF
2205
2206cat >> $CONFIG_STATUS <<\EOF
2207
2208# Split the substitutions into bite-sized pieces for seds with
2209# small command number limits, like on Digital OSF/1 and HP-UX.
2210ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2211ac_file=1 # Number of current file.
2212ac_beg=1 # First line for current file.
2213ac_end=$ac_max_sed_cmds # Line after last line for current file.
2214ac_more_lines=:
2215ac_sed_cmds=""
2216while $ac_more_lines; do
2217 if test $ac_beg -gt 1; then
2218 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2219 else
2220 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2221 fi
2222 if test ! -s conftest.s$ac_file; then
2223 ac_more_lines=false
2224 rm -f conftest.s$ac_file
2225 else
2226 if test -z "$ac_sed_cmds"; then
2227 ac_sed_cmds="sed -f conftest.s$ac_file"
2228 else
2229 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2230 fi
2231 ac_file=`expr $ac_file + 1`
2232 ac_beg=$ac_end
2233 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2234 fi
2235done
2236if test -z "$ac_sed_cmds"; then
2237 ac_sed_cmds=cat
2238fi
2239EOF
2240
2241cat >> $CONFIG_STATUS <<EOF
2242
2243CONFIG_FILES=\${CONFIG_FILES-"\
2244Makefile \
2245make.tmpl \
fa42e649 2246include/Makefile \
795ca3e5
AK
2247lib/Makefile \
2248man/Makefile \
2249tools/Makefile \
e6efb2b0 2250test/mm/Makefile \
43b7b8cf 2251test/device/Makefile \
e0304b58 2252test/format1/Makefile \
d1b28647 2253test/regex/Makefile \
291ec3b6 2254test/filters/Makefile \
795ca3e5
AK
2255"}
2256EOF
2257cat >> $CONFIG_STATUS <<\EOF
2258for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2259 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2260 case "$ac_file" in
2261 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2262 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2263 *) ac_file_in="${ac_file}.in" ;;
2264 esac
2265
2266 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2267
2268 # Remove last slash and all that follows it. Not all systems have dirname.
2269 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2270 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2271 # The file is in a subdirectory.
2272 test ! -d "$ac_dir" && mkdir "$ac_dir"
2273 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2274 # A "../" for each directory in $ac_dir_suffix.
2275 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2276 else
2277 ac_dir_suffix= ac_dots=
2278 fi
2279
2280 case "$ac_given_srcdir" in
2281 .) srcdir=.
2282 if test -z "$ac_dots"; then top_srcdir=.
2283 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2284 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2285 *) # Relative path.
2286 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2287 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2288 esac
2289
2290 case "$ac_given_INSTALL" in
2291 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2292 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2293 esac
2294
2295 echo creating "$ac_file"
2296 rm -f "$ac_file"
2297 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2298 case "$ac_file" in
2299 *Makefile*) ac_comsub="1i\\
2300# $configure_input" ;;
2301 *) ac_comsub= ;;
2302 esac
2303
2304 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2305 sed -e "$ac_comsub
2306s%@configure_input@%$configure_input%g
2307s%@srcdir@%$srcdir%g
2308s%@top_srcdir@%$top_srcdir%g
2309s%@INSTALL@%$INSTALL%g
2310" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2311fi; done
2312rm -f conftest.s*
2313
2314EOF
2315cat >> $CONFIG_STATUS <<EOF
2316
2317EOF
2318cat >> $CONFIG_STATUS <<\EOF
2319
2320exit 0
2321EOF
2322chmod +x $CONFIG_STATUS
2323rm -fr confdefs* $ac_clean_files
2324test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2325
This page took 0.229676 seconds and 5 git commands to generate.