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