1 | #! /bin/sh |
---|
2 | |
---|
3 | # Guess values for system-dependent variables and create Makefiles. |
---|
4 | # Generated automatically using autoconf version 2.4 |
---|
5 | # Copyright (C) 1992, 1993, 1994 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: |
---|
11 | ac_help= |
---|
12 | ac_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. |
---|
18 | build=NONE |
---|
19 | cache_file=./config.cache |
---|
20 | exec_prefix=NONE |
---|
21 | host=NONE |
---|
22 | no_create= |
---|
23 | nonopt=NONE |
---|
24 | no_recursion= |
---|
25 | prefix=NONE |
---|
26 | program_prefix=NONE |
---|
27 | program_suffix=NONE |
---|
28 | program_transform_name=s,x,x, |
---|
29 | silent= |
---|
30 | site= |
---|
31 | srcdir= |
---|
32 | target=NONE |
---|
33 | verbose= |
---|
34 | x_includes=NONE |
---|
35 | x_libraries=NONE |
---|
36 | |
---|
37 | # Initialize some other variables. |
---|
38 | subdirs= |
---|
39 | |
---|
40 | ac_prev= |
---|
41 | for ac_option |
---|
42 | do |
---|
43 | |
---|
44 | # If the previous option needs an argument, assign it. |
---|
45 | if test -n "$ac_prev"; then |
---|
46 | eval "$ac_prev=\$ac_option" |
---|
47 | ac_prev= |
---|
48 | continue |
---|
49 | fi |
---|
50 | |
---|
51 | case "$ac_option" in |
---|
52 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
53 | *) ac_optarg= ;; |
---|
54 | esac |
---|
55 | |
---|
56 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
57 | |
---|
58 | case "$ac_option" in |
---|
59 | |
---|
60 | -build | --build | --buil | --bui | --bu | --b) |
---|
61 | ac_prev=build ;; |
---|
62 | -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*) |
---|
63 | build="$ac_optarg" ;; |
---|
64 | |
---|
65 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
66 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
67 | ac_prev=cache_file ;; |
---|
68 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
69 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
70 | cache_file="$ac_optarg" ;; |
---|
71 | |
---|
72 | -disable-* | --disable-*) |
---|
73 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
---|
74 | # Reject names that are not valid shell variable names. |
---|
75 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
76 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
77 | fi |
---|
78 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
79 | eval "enable_${ac_feature}=no" ;; |
---|
80 | |
---|
81 | -enable-* | --enable-*) |
---|
82 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
---|
83 | # Reject names that are not valid shell variable names. |
---|
84 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
85 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
86 | fi |
---|
87 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
88 | case "$ac_option" in |
---|
89 | *=*) ;; |
---|
90 | *) ac_optarg=yes ;; |
---|
91 | esac |
---|
92 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
---|
93 | |
---|
94 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
95 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
96 | | --exec | --exe | --ex) |
---|
97 | ac_prev=exec_prefix ;; |
---|
98 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
99 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
100 | | --exec=* | --exe=* | --ex=*) |
---|
101 | exec_prefix="$ac_optarg" ;; |
---|
102 | |
---|
103 | -gas | --gas | --ga | --g) |
---|
104 | # Obsolete; use --with-gas. |
---|
105 | with_gas=yes ;; |
---|
106 | |
---|
107 | -help | --help | --hel | --he) |
---|
108 | # Omit some internal or obsolete options to make the list less imposing. |
---|
109 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
110 | cat << EOF |
---|
111 | Usage: configure [options] [host] |
---|
112 | Options: [defaults in brackets after descriptions] |
---|
113 | Configuration: |
---|
114 | --cache-file=FILE cache test results in FILE |
---|
115 | --help print this message |
---|
116 | --no-create do not create output files |
---|
117 | --quiet, --silent do not print \`checking...' messages |
---|
118 | --version print the version of autoconf that created configure |
---|
119 | Directory and file names: |
---|
120 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
121 | [$ac_default_prefix] |
---|
122 | --exec-prefix=PREFIX install architecture-dependent files in PREFIX |
---|
123 | [same as prefix] |
---|
124 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
---|
125 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
126 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
127 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
128 | Host type: |
---|
129 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
---|
130 | --host=HOST configure for HOST [guessed] |
---|
131 | --target=TARGET configure for TARGET [TARGET=HOST] |
---|
132 | Features and packages: |
---|
133 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
134 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
135 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
136 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
137 | --x-includes=DIR X include files are in DIR |
---|
138 | --x-libraries=DIR X library files are in DIR |
---|
139 | --enable and --with options recognized:$ac_help |
---|
140 | EOF |
---|
141 | exit 0 ;; |
---|
142 | |
---|
143 | -host | --host | --hos | --ho) |
---|
144 | ac_prev=host ;; |
---|
145 | -host=* | --host=* | --hos=* | --ho=*) |
---|
146 | host="$ac_optarg" ;; |
---|
147 | |
---|
148 | -nfp | --nfp | --nf) |
---|
149 | # Obsolete; use --without-fp. |
---|
150 | with_fp=no ;; |
---|
151 | |
---|
152 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
153 | | --no-cr | --no-c) |
---|
154 | no_create=yes ;; |
---|
155 | |
---|
156 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
157 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
158 | no_recursion=yes ;; |
---|
159 | |
---|
160 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
161 | ac_prev=prefix ;; |
---|
162 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
163 | prefix="$ac_optarg" ;; |
---|
164 | |
---|
165 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
166 | | --program-pre | --program-pr | --program-p) |
---|
167 | ac_prev=program_prefix ;; |
---|
168 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
169 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
170 | program_prefix="$ac_optarg" ;; |
---|
171 | |
---|
172 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
173 | | --program-suf | --program-su | --program-s) |
---|
174 | ac_prev=program_suffix ;; |
---|
175 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
176 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
177 | program_suffix="$ac_optarg" ;; |
---|
178 | |
---|
179 | -program-transform-name | --program-transform-name \ |
---|
180 | | --program-transform-nam | --program-transform-na \ |
---|
181 | | --program-transform-n | --program-transform- \ |
---|
182 | | --program-transform | --program-transfor \ |
---|
183 | | --program-transfo | --program-transf \ |
---|
184 | | --program-trans | --program-tran \ |
---|
185 | | --progr-tra | --program-tr | --program-t) |
---|
186 | ac_prev=program_transform_name ;; |
---|
187 | -program-transform-name=* | --program-transform-name=* \ |
---|
188 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
189 | | --program-transform-n=* | --program-transform-=* \ |
---|
190 | | --program-transform=* | --program-transfor=* \ |
---|
191 | | --program-transfo=* | --program-transf=* \ |
---|
192 | | --program-trans=* | --program-tran=* \ |
---|
193 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
194 | program_transform_name="$ac_optarg" ;; |
---|
195 | |
---|
196 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
197 | | -silent | --silent | --silen | --sile | --sil) |
---|
198 | silent=yes ;; |
---|
199 | |
---|
200 | -site | --site | --sit) |
---|
201 | ac_prev=site ;; |
---|
202 | -site=* | --site=* | --sit=*) |
---|
203 | site="$ac_optarg" ;; |
---|
204 | |
---|
205 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
206 | ac_prev=srcdir ;; |
---|
207 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
208 | srcdir="$ac_optarg" ;; |
---|
209 | |
---|
210 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
211 | ac_prev=target ;; |
---|
212 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
213 | target="$ac_optarg" ;; |
---|
214 | |
---|
215 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
216 | verbose=yes ;; |
---|
217 | |
---|
218 | -version | --version | --versio | --versi | --vers) |
---|
219 | echo "configure generated by autoconf version 2.4" |
---|
220 | exit 0 ;; |
---|
221 | |
---|
222 | -with-* | --with-*) |
---|
223 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
---|
224 | # Reject names that are not valid shell variable names. |
---|
225 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
226 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
227 | fi |
---|
228 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
229 | case "$ac_option" in |
---|
230 | *=*) ;; |
---|
231 | *) ac_optarg=yes ;; |
---|
232 | esac |
---|
233 | eval "with_${ac_package}='$ac_optarg'" ;; |
---|
234 | |
---|
235 | -without-* | --without-*) |
---|
236 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
---|
237 | # Reject names that are not valid shell variable names. |
---|
238 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
239 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
240 | fi |
---|
241 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
242 | eval "with_${ac_package}=no" ;; |
---|
243 | |
---|
244 | --x) |
---|
245 | # Obsolete; use --with-x. |
---|
246 | with_x=yes ;; |
---|
247 | |
---|
248 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
249 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
250 | ac_prev=x_includes ;; |
---|
251 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
252 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
253 | x_includes="$ac_optarg" ;; |
---|
254 | |
---|
255 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
256 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
257 | ac_prev=x_libraries ;; |
---|
258 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
259 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
260 | x_libraries="$ac_optarg" ;; |
---|
261 | |
---|
262 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
---|
263 | ;; |
---|
264 | |
---|
265 | *) |
---|
266 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
---|
267 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
---|
268 | fi |
---|
269 | if test "x$nonopt" != xNONE; then |
---|
270 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
---|
271 | fi |
---|
272 | nonopt="$ac_option" |
---|
273 | ;; |
---|
274 | |
---|
275 | esac |
---|
276 | done |
---|
277 | |
---|
278 | if test -n "$ac_prev"; then |
---|
279 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
---|
280 | fi |
---|
281 | |
---|
282 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
283 | |
---|
284 | # File descriptor usage: |
---|
285 | # 0 standard input |
---|
286 | # 1 file creation |
---|
287 | # 2 errors and warnings |
---|
288 | # 3 some systems may open it to /dev/tty |
---|
289 | # 4 used on the Kubota Titan |
---|
290 | # 6 checking for... messages and results |
---|
291 | # 5 compiler messages saved in config.log |
---|
292 | if test "$silent" = yes; then |
---|
293 | exec 6>/dev/null |
---|
294 | else |
---|
295 | exec 6>&1 |
---|
296 | fi |
---|
297 | exec 5>./config.log |
---|
298 | |
---|
299 | echo "\ |
---|
300 | This file contains any messages produced by compilers while |
---|
301 | running configure, to aid debugging if configure makes a mistake. |
---|
302 | " 1>&5 |
---|
303 | |
---|
304 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
305 | # Also quote any args containing shell metacharacters. |
---|
306 | ac_configure_args= |
---|
307 | for ac_arg |
---|
308 | do |
---|
309 | case "$ac_arg" in |
---|
310 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
311 | | --no-cr | --no-c) ;; |
---|
312 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
313 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
---|
314 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
---|
315 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
316 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
---|
317 | esac |
---|
318 | done |
---|
319 | |
---|
320 | # NLS nuisances. |
---|
321 | # Only set LANG and LC_ALL to C if already set. |
---|
322 | # These must not be set unconditionally because not all systems understand |
---|
323 | # e.g. LANG=C (notably SCO). |
---|
324 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
---|
325 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
---|
326 | |
---|
327 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
328 | rm -rf conftest* confdefs.h |
---|
329 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
330 | echo > confdefs.h |
---|
331 | |
---|
332 | # A filename unique to this package, relative to the directory that |
---|
333 | # configure is in, which we can look for to find out if srcdir is correct. |
---|
334 | ac_unique_file=gsftopk.c |
---|
335 | |
---|
336 | # Find the source files, if location was not specified. |
---|
337 | if test -z "$srcdir"; then |
---|
338 | ac_srcdir_defaulted=yes |
---|
339 | # Try the directory containing this script, then its parent. |
---|
340 | ac_prog=$0 |
---|
341 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
---|
342 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
---|
343 | srcdir=$ac_confdir |
---|
344 | if test ! -r $srcdir/$ac_unique_file; then |
---|
345 | srcdir=.. |
---|
346 | fi |
---|
347 | else |
---|
348 | ac_srcdir_defaulted=no |
---|
349 | fi |
---|
350 | if test ! -r $srcdir/$ac_unique_file; then |
---|
351 | if test "$ac_srcdir_defaulted" = yes; then |
---|
352 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
---|
353 | else |
---|
354 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
---|
355 | fi |
---|
356 | fi |
---|
357 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
---|
358 | |
---|
359 | # Prefer explicitly selected file to automatically selected ones. |
---|
360 | if test -z "$CONFIG_SITE"; then |
---|
361 | if test "x$prefix" != xNONE; then |
---|
362 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
363 | else |
---|
364 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
365 | fi |
---|
366 | fi |
---|
367 | for ac_site_file in $CONFIG_SITE; do |
---|
368 | if test -r "$ac_site_file"; then |
---|
369 | echo "loading site script $ac_site_file" |
---|
370 | . "$ac_site_file" |
---|
371 | fi |
---|
372 | done |
---|
373 | |
---|
374 | if test -r "$cache_file"; then |
---|
375 | echo "loading cache $cache_file" |
---|
376 | . $cache_file |
---|
377 | else |
---|
378 | echo "creating cache $cache_file" |
---|
379 | > $cache_file |
---|
380 | fi |
---|
381 | |
---|
382 | ac_ext=c |
---|
383 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
384 | ac_cpp='$CPP $CPPFLAGS' |
---|
385 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' |
---|
386 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' |
---|
387 | |
---|
388 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
389 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
---|
390 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
391 | ac_n= ac_c=' |
---|
392 | ' ac_t=' ' |
---|
393 | else |
---|
394 | ac_n=-n ac_c= ac_t= |
---|
395 | fi |
---|
396 | else |
---|
397 | ac_n= ac_c='\c' ac_t= |
---|
398 | fi |
---|
399 | |
---|
400 | |
---|
401 | |
---|
402 | |
---|
403 | |
---|
404 | |
---|
405 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
---|
406 | set dummy ${MAKE-make}; ac_make=$2 |
---|
407 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
---|
408 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
409 | else |
---|
410 | cat > conftestmake <<\EOF |
---|
411 | all: |
---|
412 | @echo 'ac_maketemp="${MAKE}"' |
---|
413 | EOF |
---|
414 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
415 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
---|
416 | if test -n "$ac_maketemp"; then |
---|
417 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
418 | else |
---|
419 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
420 | fi |
---|
421 | rm -f conftestmake |
---|
422 | fi |
---|
423 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
424 | echo "$ac_t""yes" 1>&6 |
---|
425 | SET_MAKE= |
---|
426 | else |
---|
427 | echo "$ac_t""no" 1>&6 |
---|
428 | SET_MAKE="MAKE=${MAKE-make}" |
---|
429 | fi |
---|
430 | |
---|
431 | |
---|
432 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
433 | set dummy gcc; ac_word=$2 |
---|
434 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
435 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
436 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
437 | else |
---|
438 | if test -n "$CC"; then |
---|
439 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
440 | else |
---|
441 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
442 | for ac_dir in $PATH; do |
---|
443 | test -z "$ac_dir" && ac_dir=. |
---|
444 | if test -f $ac_dir/$ac_word; then |
---|
445 | ac_cv_prog_CC="gcc" |
---|
446 | break |
---|
447 | fi |
---|
448 | done |
---|
449 | IFS="$ac_save_ifs" |
---|
450 | test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc" |
---|
451 | fi |
---|
452 | fi |
---|
453 | CC="$ac_cv_prog_CC" |
---|
454 | if test -n "$CC"; then |
---|
455 | echo "$ac_t""$CC" 1>&6 |
---|
456 | else |
---|
457 | echo "$ac_t""no" 1>&6 |
---|
458 | fi |
---|
459 | |
---|
460 | |
---|
461 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
462 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
463 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
464 | else |
---|
465 | cat > conftest.c <<EOF |
---|
466 | #ifdef __GNUC__ |
---|
467 | yes; |
---|
468 | #endif |
---|
469 | EOF |
---|
470 | if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then |
---|
471 | ac_cv_prog_gcc=yes |
---|
472 | else |
---|
473 | ac_cv_prog_gcc=no |
---|
474 | fi |
---|
475 | fi |
---|
476 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
477 | if test $ac_cv_prog_gcc = yes; then |
---|
478 | GCC=yes |
---|
479 | if test "${CFLAGS+set}" != set; then |
---|
480 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
481 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then |
---|
482 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
483 | else |
---|
484 | echo 'void f(){}' > conftest.c |
---|
485 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
486 | ac_cv_prog_gcc_g=yes |
---|
487 | else |
---|
488 | ac_cv_prog_gcc_g=no |
---|
489 | fi |
---|
490 | rm -f conftest* |
---|
491 | |
---|
492 | fi |
---|
493 | echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6 |
---|
494 | if test $ac_cv_prog_gcc_g = yes; then |
---|
495 | CFLAGS="-g -O" |
---|
496 | else |
---|
497 | CFLAGS="-O" |
---|
498 | fi |
---|
499 | fi |
---|
500 | else |
---|
501 | GCC= |
---|
502 | test "${CFLAGS+set}" = set || CFLAGS="-g" |
---|
503 | fi |
---|
504 | |
---|
505 | ac_aux_dir= |
---|
506 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
507 | if test -f $ac_dir/install-sh; then |
---|
508 | ac_aux_dir=$ac_dir |
---|
509 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
510 | break |
---|
511 | elif test -f $ac_dir/install.sh; then |
---|
512 | ac_aux_dir=$ac_dir |
---|
513 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
514 | break |
---|
515 | fi |
---|
516 | done |
---|
517 | if test -z "$ac_aux_dir"; then |
---|
518 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
---|
519 | fi |
---|
520 | ac_config_guess=$ac_aux_dir/config.guess |
---|
521 | ac_config_sub=$ac_aux_dir/config.sub |
---|
522 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
---|
523 | |
---|
524 | # Find a good install program. We prefer a C program (faster), |
---|
525 | # so one script is as good as another. But avoid the broken or |
---|
526 | # incompatible versions: |
---|
527 | # SysV /etc/install, /usr/sbin/install |
---|
528 | # SunOS /usr/etc/install |
---|
529 | # IRIX /sbin/install |
---|
530 | # AIX /bin/install |
---|
531 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
532 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
533 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
534 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
---|
535 | if test -z "$INSTALL"; then |
---|
536 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
---|
537 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
538 | else |
---|
539 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
540 | for ac_dir in $PATH; do |
---|
541 | # Account for people who put trailing slashes in PATH elements. |
---|
542 | case "$ac_dir/" in |
---|
543 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
---|
544 | *) |
---|
545 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
546 | for ac_prog in ginstall installbsd scoinst install; do |
---|
547 | if test -f $ac_dir/$ac_prog; then |
---|
548 | if test $ac_prog = install && |
---|
549 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
---|
550 | # AIX install. It has an incompatible calling convention. |
---|
551 | # OSF/1 installbsd also uses dspmsg, but is usable. |
---|
552 | : |
---|
553 | else |
---|
554 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
---|
555 | break 2 |
---|
556 | fi |
---|
557 | fi |
---|
558 | done |
---|
559 | ;; |
---|
560 | esac |
---|
561 | done |
---|
562 | IFS="$ac_save_ifs" |
---|
563 | # As a last resort, use the slow shell script. |
---|
564 | test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh" |
---|
565 | fi |
---|
566 | INSTALL="$ac_cv_path_install" |
---|
567 | fi |
---|
568 | echo "$ac_t""$INSTALL" 1>&6 |
---|
569 | |
---|
570 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
571 | # It thinks the first close brace ends the variable substitution. |
---|
572 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
573 | |
---|
574 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
575 | |
---|
576 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
577 | set dummy ranlib; ac_word=$2 |
---|
578 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
579 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
---|
580 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
581 | else |
---|
582 | if test -n "$RANLIB"; then |
---|
583 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
584 | else |
---|
585 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
586 | for ac_dir in $PATH; do |
---|
587 | test -z "$ac_dir" && ac_dir=. |
---|
588 | if test -f $ac_dir/$ac_word; then |
---|
589 | ac_cv_prog_RANLIB="ranlib" |
---|
590 | break |
---|
591 | fi |
---|
592 | done |
---|
593 | IFS="$ac_save_ifs" |
---|
594 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
---|
595 | fi |
---|
596 | fi |
---|
597 | RANLIB="$ac_cv_prog_RANLIB" |
---|
598 | if test -n "$RANLIB"; then |
---|
599 | echo "$ac_t""$RANLIB" 1>&6 |
---|
600 | else |
---|
601 | echo "$ac_t""no" 1>&6 |
---|
602 | fi |
---|
603 | |
---|
604 | |
---|
605 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 |
---|
606 | if test -d /etc/conf/kconfig.d && |
---|
607 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 |
---|
608 | then |
---|
609 | echo "$ac_t""yes" 1>&6 |
---|
610 | ISC=yes # If later tests want to check for ISC. |
---|
611 | cat >> confdefs.h <<\EOF |
---|
612 | #define _POSIX_SOURCE 1 |
---|
613 | EOF |
---|
614 | |
---|
615 | if test "$GCC" = yes; then |
---|
616 | CC="$CC -posix" |
---|
617 | else |
---|
618 | CC="$CC -Xp" |
---|
619 | fi |
---|
620 | else |
---|
621 | echo "$ac_t""no" 1>&6 |
---|
622 | ISC= |
---|
623 | fi |
---|
624 | |
---|
625 | |
---|
626 | ac_header_dirent=no |
---|
627 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
---|
628 | do |
---|
629 | ac_safe=`echo "$ac_hdr" | tr './\055' '___'` |
---|
630 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
---|
631 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then |
---|
632 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
633 | else |
---|
634 | cat > conftest.$ac_ext <<EOF |
---|
635 | #line 636 "configure" |
---|
636 | #include "confdefs.h" |
---|
637 | #include <sys/types.h> |
---|
638 | #include <$ac_hdr> |
---|
639 | int main() { return 0; } |
---|
640 | int t() { |
---|
641 | DIR *dirp = 0; |
---|
642 | ; return 0; } |
---|
643 | EOF |
---|
644 | if eval $ac_compile; then |
---|
645 | rm -rf conftest* |
---|
646 | eval "ac_cv_header_dirent_$ac_safe=yes" |
---|
647 | else |
---|
648 | rm -rf conftest* |
---|
649 | eval "ac_cv_header_dirent_$ac_safe=no" |
---|
650 | fi |
---|
651 | rm -f conftest* |
---|
652 | |
---|
653 | fi |
---|
654 | if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then |
---|
655 | echo "$ac_t""yes" 1>&6 |
---|
656 | ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'` |
---|
657 | cat >> confdefs.h <<EOF |
---|
658 | #define $ac_tr_hdr 1 |
---|
659 | EOF |
---|
660 | ac_header_dirent=$ac_hdr; break |
---|
661 | else |
---|
662 | echo "$ac_t""no" 1>&6 |
---|
663 | fi |
---|
664 | done |
---|
665 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
---|
666 | if test $ac_header_dirent = dirent.h; then |
---|
667 | echo $ac_n "checking for -ldir""... $ac_c" 1>&6 |
---|
668 | if eval "test \"`echo '$''{'ac_cv_lib_dir'+set}'`\" = set"; then |
---|
669 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
670 | else |
---|
671 | ac_save_LIBS="$LIBS" |
---|
672 | LIBS="-ldir $LIBS" |
---|
673 | cat > conftest.$ac_ext <<EOF |
---|
674 | #line 675 "configure" |
---|
675 | #include "confdefs.h" |
---|
676 | |
---|
677 | int main() { return 0; } |
---|
678 | int t() { |
---|
679 | opendir() |
---|
680 | ; return 0; } |
---|
681 | EOF |
---|
682 | if eval $ac_link; then |
---|
683 | rm -rf conftest* |
---|
684 | eval "ac_cv_lib_dir=yes" |
---|
685 | else |
---|
686 | rm -rf conftest* |
---|
687 | eval "ac_cv_lib_dir=no" |
---|
688 | fi |
---|
689 | rm -f conftest* |
---|
690 | LIBS="$ac_save_LIBS" |
---|
691 | |
---|
692 | fi |
---|
693 | if eval "test \"`echo '$ac_cv_lib_'dir`\" = yes"; then |
---|
694 | echo "$ac_t""yes" 1>&6 |
---|
695 | LIBS="$LIBS -ldir" |
---|
696 | else |
---|
697 | echo "$ac_t""no" 1>&6 |
---|
698 | fi |
---|
699 | |
---|
700 | else |
---|
701 | echo $ac_n "checking for -lx""... $ac_c" 1>&6 |
---|
702 | if eval "test \"`echo '$''{'ac_cv_lib_x'+set}'`\" = set"; then |
---|
703 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
704 | else |
---|
705 | ac_save_LIBS="$LIBS" |
---|
706 | LIBS="-lx $LIBS" |
---|
707 | cat > conftest.$ac_ext <<EOF |
---|
708 | #line 709 "configure" |
---|
709 | #include "confdefs.h" |
---|
710 | |
---|
711 | int main() { return 0; } |
---|
712 | int t() { |
---|
713 | opendir() |
---|
714 | ; return 0; } |
---|
715 | EOF |
---|
716 | if eval $ac_link; then |
---|
717 | rm -rf conftest* |
---|
718 | eval "ac_cv_lib_x=yes" |
---|
719 | else |
---|
720 | rm -rf conftest* |
---|
721 | eval "ac_cv_lib_x=no" |
---|
722 | fi |
---|
723 | rm -f conftest* |
---|
724 | LIBS="$ac_save_LIBS" |
---|
725 | |
---|
726 | fi |
---|
727 | if eval "test \"`echo '$ac_cv_lib_'x`\" = yes"; then |
---|
728 | echo "$ac_t""yes" 1>&6 |
---|
729 | LIBS="$LIBS -lx" |
---|
730 | else |
---|
731 | echo "$ac_t""no" 1>&6 |
---|
732 | fi |
---|
733 | |
---|
734 | fi |
---|
735 | |
---|
736 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
---|
737 | # On Suns, sometimes $CPP names a directory. |
---|
738 | if test -n "$CPP" && test -d "$CPP"; then |
---|
739 | CPP= |
---|
740 | fi |
---|
741 | if test -z "$CPP"; then |
---|
742 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
---|
743 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
744 | else |
---|
745 | # This must be in double quotes, not single quotes, because CPP may get |
---|
746 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
---|
747 | CPP="${CC-cc} -E" |
---|
748 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
749 | # not just through cpp. |
---|
750 | cat > conftest.$ac_ext <<EOF |
---|
751 | #line 752 "configure" |
---|
752 | #include "confdefs.h" |
---|
753 | #include <assert.h> |
---|
754 | Syntax Error |
---|
755 | EOF |
---|
756 | eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
757 | ac_err=`grep -v '^ *+' conftest.out` |
---|
758 | if test -z "$ac_err"; then |
---|
759 | : |
---|
760 | else |
---|
761 | echo "$ac_err" >&5 |
---|
762 | rm -rf conftest* |
---|
763 | CPP="${CC-cc} -E -traditional-cpp" |
---|
764 | cat > conftest.$ac_ext <<EOF |
---|
765 | #line 766 "configure" |
---|
766 | #include "confdefs.h" |
---|
767 | #include <assert.h> |
---|
768 | Syntax Error |
---|
769 | EOF |
---|
770 | eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
771 | ac_err=`grep -v '^ *+' conftest.out` |
---|
772 | if test -z "$ac_err"; then |
---|
773 | : |
---|
774 | else |
---|
775 | echo "$ac_err" >&5 |
---|
776 | rm -rf conftest* |
---|
777 | CPP=/lib/cpp |
---|
778 | fi |
---|
779 | rm -f conftest* |
---|
780 | fi |
---|
781 | rm -f conftest* |
---|
782 | ac_cv_prog_CPP="$CPP" |
---|
783 | fi |
---|
784 | CPP="$ac_cv_prog_CPP" |
---|
785 | else |
---|
786 | ac_cv_prog_CPP="$CPP" |
---|
787 | fi |
---|
788 | echo "$ac_t""$CPP" 1>&6 |
---|
789 | |
---|
790 | # If we cannot run a trivial program, we must be cross compiling. |
---|
791 | echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6 |
---|
792 | if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then |
---|
793 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
794 | else |
---|
795 | if test "$cross_compiling" = yes; then |
---|
796 | ac_cv_c_cross=yes |
---|
797 | else |
---|
798 | cat > conftest.$ac_ext <<EOF |
---|
799 | #line 800 "configure" |
---|
800 | #include "confdefs.h" |
---|
801 | main(){return(0);} |
---|
802 | EOF |
---|
803 | eval $ac_link |
---|
804 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
---|
805 | ac_cv_c_cross=no |
---|
806 | else |
---|
807 | ac_cv_c_cross=yes |
---|
808 | fi |
---|
809 | fi |
---|
810 | rm -fr conftest* |
---|
811 | fi |
---|
812 | cross_compiling=$ac_cv_c_cross |
---|
813 | echo "$ac_t""$ac_cv_c_cross" 1>&6 |
---|
814 | |
---|
815 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
---|
816 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
---|
817 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
818 | else |
---|
819 | cat > conftest.$ac_ext <<EOF |
---|
820 | #line 821 "configure" |
---|
821 | #include "confdefs.h" |
---|
822 | #include <stdlib.h> |
---|
823 | #include <stdarg.h> |
---|
824 | #include <string.h> |
---|
825 | #include <float.h> |
---|
826 | EOF |
---|
827 | eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
828 | ac_err=`grep -v '^ *+' conftest.out` |
---|
829 | if test -z "$ac_err"; then |
---|
830 | rm -rf conftest* |
---|
831 | ac_cv_header_stdc=yes |
---|
832 | else |
---|
833 | echo "$ac_err" >&5 |
---|
834 | rm -rf conftest* |
---|
835 | ac_cv_header_stdc=no |
---|
836 | fi |
---|
837 | rm -f conftest* |
---|
838 | |
---|
839 | if test $ac_cv_header_stdc = yes; then |
---|
840 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
841 | cat > conftest.$ac_ext <<EOF |
---|
842 | #line 843 "configure" |
---|
843 | #include "confdefs.h" |
---|
844 | #include <string.h> |
---|
845 | EOF |
---|
846 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
847 | egrep "memchr" >/dev/null 2>&1; then |
---|
848 | : |
---|
849 | else |
---|
850 | rm -rf conftest* |
---|
851 | ac_cv_header_stdc=no |
---|
852 | fi |
---|
853 | rm -f conftest* |
---|
854 | |
---|
855 | fi |
---|
856 | |
---|
857 | if test $ac_cv_header_stdc = yes; then |
---|
858 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
859 | cat > conftest.$ac_ext <<EOF |
---|
860 | #line 861 "configure" |
---|
861 | #include "confdefs.h" |
---|
862 | #include <stdlib.h> |
---|
863 | EOF |
---|
864 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
865 | egrep "free" >/dev/null 2>&1; then |
---|
866 | : |
---|
867 | else |
---|
868 | rm -rf conftest* |
---|
869 | ac_cv_header_stdc=no |
---|
870 | fi |
---|
871 | rm -f conftest* |
---|
872 | |
---|
873 | fi |
---|
874 | |
---|
875 | if test $ac_cv_header_stdc = yes; then |
---|
876 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
877 | if test "$cross_compiling" = yes; then |
---|
878 | ac_cv_header_stdc=no |
---|
879 | else |
---|
880 | cat > conftest.$ac_ext <<EOF |
---|
881 | #line 882 "configure" |
---|
882 | #include "confdefs.h" |
---|
883 | #include <ctype.h> |
---|
884 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
885 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
886 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
887 | int main () { int i; for (i = 0; i < 256; i++) |
---|
888 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
---|
889 | exit (0); } |
---|
890 | |
---|
891 | EOF |
---|
892 | eval $ac_link |
---|
893 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
---|
894 | : |
---|
895 | else |
---|
896 | ac_cv_header_stdc=no |
---|
897 | fi |
---|
898 | fi |
---|
899 | rm -fr conftest* |
---|
900 | fi |
---|
901 | fi |
---|
902 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
---|
903 | if test $ac_cv_header_stdc = yes; then |
---|
904 | cat >> confdefs.h <<\EOF |
---|
905 | #define STDC_HEADERS 1 |
---|
906 | EOF |
---|
907 | |
---|
908 | fi |
---|
909 | |
---|
910 | echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6 |
---|
911 | if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then |
---|
912 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
913 | else |
---|
914 | if test "$cross_compiling" = yes; then |
---|
915 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
---|
916 | else |
---|
917 | cat > conftest.$ac_ext <<EOF |
---|
918 | #line 919 "configure" |
---|
919 | #include "confdefs.h" |
---|
920 | #include <sys/types.h> |
---|
921 | #include <$ac_header_dirent> |
---|
922 | int closedir(); main() { exit(closedir(opendir(".")) != 0); } |
---|
923 | EOF |
---|
924 | eval $ac_link |
---|
925 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
---|
926 | ac_cv_func_closedir_void=no |
---|
927 | else |
---|
928 | ac_cv_func_closedir_void=yes |
---|
929 | fi |
---|
930 | fi |
---|
931 | rm -fr conftest* |
---|
932 | fi |
---|
933 | echo "$ac_t""$ac_cv_func_closedir_void" 1>&6 |
---|
934 | if test $ac_cv_func_closedir_void = yes; then |
---|
935 | cat >> confdefs.h <<\EOF |
---|
936 | #define CLOSEDIR_VOID 1 |
---|
937 | EOF |
---|
938 | |
---|
939 | fi |
---|
940 | |
---|
941 | for ac_hdr in assert.h float.h limits.h memory.h pwd.h stdlib.h \ |
---|
942 | string.h unistd.h |
---|
943 | do |
---|
944 | ac_safe=`echo "$ac_hdr" | tr './\055' '___'` |
---|
945 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
946 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
947 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
948 | else |
---|
949 | cat > conftest.$ac_ext <<EOF |
---|
950 | #line 951 "configure" |
---|
951 | #include "confdefs.h" |
---|
952 | #include <$ac_hdr> |
---|
953 | EOF |
---|
954 | eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
955 | ac_err=`grep -v '^ *+' conftest.out` |
---|
956 | if test -z "$ac_err"; then |
---|
957 | rm -rf conftest* |
---|
958 | eval "ac_cv_header_$ac_safe=yes" |
---|
959 | else |
---|
960 | echo "$ac_err" >&5 |
---|
961 | rm -rf conftest* |
---|
962 | eval "ac_cv_header_$ac_safe=no" |
---|
963 | fi |
---|
964 | rm -f conftest* |
---|
965 | fi |
---|
966 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
967 | echo "$ac_t""yes" 1>&6 |
---|
968 | ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'` |
---|
969 | cat >> confdefs.h <<EOF |
---|
970 | #define $ac_tr_hdr 1 |
---|
971 | EOF |
---|
972 | |
---|
973 | else |
---|
974 | echo "$ac_t""no" 1>&6 |
---|
975 | fi |
---|
976 | done |
---|
977 | |
---|
978 | |
---|
979 | for ac_func in basename bcopy memmove putenv |
---|
980 | do |
---|
981 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
982 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
983 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
984 | else |
---|
985 | cat > conftest.$ac_ext <<EOF |
---|
986 | #line 987 "configure" |
---|
987 | #include "confdefs.h" |
---|
988 | /* System header to define __stub macros and hopefully few prototypes, |
---|
989 | which can conflict with char $ac_func(); below. */ |
---|
990 | #include <assert.h> |
---|
991 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
992 | char $ac_func(); |
---|
993 | |
---|
994 | int main() { return 0; } |
---|
995 | int t() { |
---|
996 | |
---|
997 | /* The GNU C library defines this for functions which it implements |
---|
998 | to always fail with ENOSYS. Some functions are actually named |
---|
999 | something starting with __ and the normal name is an alias. */ |
---|
1000 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
1001 | choke me |
---|
1002 | #else |
---|
1003 | $ac_func(); |
---|
1004 | #endif |
---|
1005 | |
---|
1006 | ; return 0; } |
---|
1007 | EOF |
---|
1008 | if eval $ac_link; then |
---|
1009 | rm -rf conftest* |
---|
1010 | eval "ac_cv_func_$ac_func=yes" |
---|
1011 | else |
---|
1012 | rm -rf conftest* |
---|
1013 | eval "ac_cv_func_$ac_func=no" |
---|
1014 | fi |
---|
1015 | rm -f conftest* |
---|
1016 | |
---|
1017 | fi |
---|
1018 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
1019 | echo "$ac_t""yes" 1>&6 |
---|
1020 | ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'` |
---|
1021 | cat >> confdefs.h <<EOF |
---|
1022 | #define $ac_tr_func 1 |
---|
1023 | EOF |
---|
1024 | |
---|
1025 | else |
---|
1026 | echo "$ac_t""no" 1>&6 |
---|
1027 | fi |
---|
1028 | done |
---|
1029 | |
---|
1030 | |
---|
1031 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
---|
1032 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
---|
1033 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1034 | else |
---|
1035 | cat > conftest.$ac_ext <<EOF |
---|
1036 | #line 1037 "configure" |
---|
1037 | #include "confdefs.h" |
---|
1038 | |
---|
1039 | int main() { return 0; } |
---|
1040 | int t() { |
---|
1041 | |
---|
1042 | /* Ultrix mips cc rejects this. */ |
---|
1043 | typedef int charset[2]; const charset x; |
---|
1044 | /* SunOS 4.1.1 cc rejects this. */ |
---|
1045 | char const *const *ccp; |
---|
1046 | char **p; |
---|
1047 | /* NEC SVR4.0.2 mips cc rejects this. */ |
---|
1048 | struct point {int x, y;}; |
---|
1049 | static struct point const zero; |
---|
1050 | /* AIX XL C 1.02.0.0 rejects this. |
---|
1051 | It does not let you subtract one const X* pointer from another in an arm |
---|
1052 | of an if-expression whose if-part is not a constant expression */ |
---|
1053 | const char *g = "string"; |
---|
1054 | ccp = &g + (g ? g-g : 0); |
---|
1055 | /* HPUX 7.0 cc rejects these. */ |
---|
1056 | ++ccp; |
---|
1057 | p = (char**) ccp; |
---|
1058 | ccp = (char const *const *) p; |
---|
1059 | { /* SCO 3.2v4 cc rejects this. */ |
---|
1060 | char *t; |
---|
1061 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
---|
1062 | |
---|
1063 | *t++ = 0; |
---|
1064 | } |
---|
1065 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
---|
1066 | int x[] = {25, 17}; |
---|
1067 | const int *foo = &x[0]; |
---|
1068 | ++foo; |
---|
1069 | } |
---|
1070 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
---|
1071 | typedef const int *iptr; |
---|
1072 | iptr p = 0; |
---|
1073 | ++p; |
---|
1074 | } |
---|
1075 | { /* AIX XL C 1.02.0.0 rejects this saying |
---|
1076 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
---|
1077 | struct s { int j; const int *ap[3]; }; |
---|
1078 | struct s *b; b->j = 5; |
---|
1079 | } |
---|
1080 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
---|
1081 | const int foo = 10; |
---|
1082 | } |
---|
1083 | |
---|
1084 | ; return 0; } |
---|
1085 | EOF |
---|
1086 | if eval $ac_compile; then |
---|
1087 | rm -rf conftest* |
---|
1088 | ac_cv_c_const=yes |
---|
1089 | else |
---|
1090 | rm -rf conftest* |
---|
1091 | ac_cv_c_const=no |
---|
1092 | fi |
---|
1093 | rm -f conftest* |
---|
1094 | |
---|
1095 | fi |
---|
1096 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
---|
1097 | if test $ac_cv_c_const = no; then |
---|
1098 | cat >> confdefs.h <<\EOF |
---|
1099 | #define const |
---|
1100 | EOF |
---|
1101 | |
---|
1102 | fi |
---|
1103 | |
---|
1104 | |
---|
1105 | |
---|
1106 | # This is a GNU libc invention. |
---|
1107 | echo $ac_n "checking whether program_invocation_name is predefined""... $ac_c" 1>&6 |
---|
1108 | if eval "test \"`echo '$''{'kb_cv_var_program_inv_name'+set}'`\" = set"; then |
---|
1109 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1110 | else |
---|
1111 | cat > conftest.$ac_ext <<EOF |
---|
1112 | #line 1113 "configure" |
---|
1113 | #include "confdefs.h" |
---|
1114 | |
---|
1115 | int main() { return 0; } |
---|
1116 | int t() { |
---|
1117 | main() { program_invocation_name = "love"; } |
---|
1118 | ; return 0; } |
---|
1119 | EOF |
---|
1120 | if eval $ac_link; then |
---|
1121 | rm -rf conftest* |
---|
1122 | kb_cv_var_program_inv_name=yes |
---|
1123 | else |
---|
1124 | rm -rf conftest* |
---|
1125 | kb_cv_var_program_inv_name=no |
---|
1126 | fi |
---|
1127 | rm -f conftest* |
---|
1128 | |
---|
1129 | fi |
---|
1130 | echo "$ac_t""$kb_cv_var_program_inv_name" 1>&6 |
---|
1131 | if test $kb_cv_var_program_inv_name = yes; then |
---|
1132 | cat >> confdefs.h <<\EOF |
---|
1133 | #define HAVE_PROGRAM_INVOCATION_NAME 1 |
---|
1134 | EOF |
---|
1135 | |
---|
1136 | fi |
---|
1137 | |
---|
1138 | |
---|
1139 | # Some BSD putenv's, e.g., FreeBSD, do malloc/free's on the environment. |
---|
1140 | # This test program is due to Mike Hibler <mike@cs.utah.edu>. |
---|
1141 | # We don't actually need to run this if we don't have putenv, but it |
---|
1142 | # doesn't hurt. |
---|
1143 | echo $ac_n "checking whether putenv uses malloc""... $ac_c" 1>&6 |
---|
1144 | if eval "test \"`echo '$''{'kb_cv_func_putenv_malloc'+set}'`\" = set"; then |
---|
1145 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1146 | else |
---|
1147 | if test "$cross_compiling" = yes; then |
---|
1148 | kb_cv_func_putenv_malloc=no |
---|
1149 | else |
---|
1150 | cat > conftest.$ac_ext <<EOF |
---|
1151 | #line 1152 "configure" |
---|
1152 | #include "confdefs.h" |
---|
1153 | |
---|
1154 | #define VAR "YOW_VAR" |
---|
1155 | #define STRING1 "GabbaGabbaHey" |
---|
1156 | #define STRING2 "Yow!!" /* should be shorter than STRING1 */ |
---|
1157 | extern char *getenv (); /* in case char* and int don't mix gracefully */ |
---|
1158 | main () |
---|
1159 | { |
---|
1160 | char *str1, *rstr1, *str2, *rstr2; |
---|
1161 | str1 = getenv (VAR); |
---|
1162 | if (str1) |
---|
1163 | exit (1); |
---|
1164 | str1 = malloc (strlen (VAR) + 1 + strlen (STRING1) + 1); |
---|
1165 | if (str1 == 0) |
---|
1166 | exit (2); |
---|
1167 | strcpy (str1, VAR); |
---|
1168 | strcat (str1, "="); |
---|
1169 | strcat (str1, STRING1); |
---|
1170 | if (putenv (str1) < 0) |
---|
1171 | exit (3); |
---|
1172 | rstr1 = getenv (VAR); |
---|
1173 | if (rstr1 == 0) |
---|
1174 | exit (4); |
---|
1175 | rstr1 -= strlen (VAR) + 1; |
---|
1176 | if (strncmp (rstr1, VAR, strlen (VAR))) |
---|
1177 | exit (5); |
---|
1178 | str2 = malloc (strlen (VAR) + 1 + strlen (STRING2) + 1); |
---|
1179 | if (str2 == 0 || str1 == str2) |
---|
1180 | exit (6); |
---|
1181 | strcpy (str2, VAR); |
---|
1182 | strcat (str2, "="); |
---|
1183 | strcat (str2, STRING2); |
---|
1184 | if (putenv (str2) < 0) |
---|
1185 | exit (7); |
---|
1186 | rstr2 = getenv (VAR); |
---|
1187 | if (rstr2 == 0) |
---|
1188 | exit (8); |
---|
1189 | rstr2 -= strlen (VAR) + 1; |
---|
1190 | #if 0 |
---|
1191 | printf ("rstr1=0x%x, rstr2=0x%x\n", rstr1, rstr2); |
---|
1192 | /* |
---|
1193 | * If string from first call was reused for the second call, |
---|
1194 | * you had better not do a free on the first string! |
---|
1195 | */ |
---|
1196 | if (rstr1 == rstr2) |
---|
1197 | printf ("#define SMART_PUTENV\n"); |
---|
1198 | else |
---|
1199 | printf ("#undef SMART_PUTENV\n"); |
---|
1200 | #endif |
---|
1201 | exit (rstr1 == rstr2 ? 0 : 1); |
---|
1202 | } |
---|
1203 | EOF |
---|
1204 | eval $ac_link |
---|
1205 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
---|
1206 | kb_cv_func_putenv_malloc=yes |
---|
1207 | else |
---|
1208 | kb_cv_func_putenv_malloc=no |
---|
1209 | fi |
---|
1210 | fi |
---|
1211 | rm -fr conftest* |
---|
1212 | fi |
---|
1213 | echo "$ac_t""$kb_cv_func_putenv_malloc" 1>&6 |
---|
1214 | if test $kb_cv_func_putenv_malloc = yes; then |
---|
1215 | cat >> confdefs.h <<\EOF |
---|
1216 | #define SMART_PUTENV 1 |
---|
1217 | EOF |
---|
1218 | |
---|
1219 | fi |
---|
1220 | |
---|
1221 | |
---|
1222 | echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 |
---|
1223 | if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then |
---|
1224 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1225 | else |
---|
1226 | cat > conftest.$ac_ext <<EOF |
---|
1227 | #line 1228 "configure" |
---|
1228 | #include "confdefs.h" |
---|
1229 | #include <sys/types.h> |
---|
1230 | #include <sys/wait.h> |
---|
1231 | #ifndef WEXITSTATUS |
---|
1232 | #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
---|
1233 | #endif |
---|
1234 | #ifndef WIFEXITED |
---|
1235 | #define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
---|
1236 | #endif |
---|
1237 | int main() { return 0; } |
---|
1238 | int t() { |
---|
1239 | int s; |
---|
1240 | wait (&s); |
---|
1241 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
---|
1242 | ; return 0; } |
---|
1243 | EOF |
---|
1244 | if eval $ac_compile; then |
---|
1245 | rm -rf conftest* |
---|
1246 | ac_cv_header_sys_wait_h=yes |
---|
1247 | else |
---|
1248 | rm -rf conftest* |
---|
1249 | ac_cv_header_sys_wait_h=no |
---|
1250 | fi |
---|
1251 | rm -f conftest* |
---|
1252 | |
---|
1253 | fi |
---|
1254 | echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 |
---|
1255 | if test $ac_cv_header_sys_wait_h = yes; then |
---|
1256 | cat >> confdefs.h <<\EOF |
---|
1257 | #define HAVE_SYS_WAIT_H 1 |
---|
1258 | EOF |
---|
1259 | |
---|
1260 | fi |
---|
1261 | |
---|
1262 | echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6 |
---|
1263 | if eval "test \"`echo '$''{'ac_cv_func_memcmp'+set}'`\" = set"; then |
---|
1264 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1265 | else |
---|
1266 | if test "$cross_compiling" = yes; then |
---|
1267 | ac_cv_func_memcmp=no |
---|
1268 | else |
---|
1269 | cat > conftest.$ac_ext <<EOF |
---|
1270 | #line 1274 "configure" |
---|
1271 | #include "confdefs.h" |
---|
1272 | |
---|
1273 | main() |
---|
1274 | { |
---|
1275 | char c0 = 0x40, c1 = 0x80, c2 = 0x81; |
---|
1276 | exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1); |
---|
1277 | } |
---|
1278 | |
---|
1279 | EOF |
---|
1280 | eval $ac_link |
---|
1281 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
---|
1282 | ac_cv_func_memcmp=yes |
---|
1283 | else |
---|
1284 | ac_cv_func_memcmp=no |
---|
1285 | fi |
---|
1286 | fi |
---|
1287 | rm -fr conftest* |
---|
1288 | fi |
---|
1289 | echo "$ac_t""$ac_cv_func_memcmp" 1>&6 |
---|
1290 | test $ac_cv_func_memcmp = no && LIBOBJS="$LIBOBJS memcmp.o" |
---|
1291 | |
---|
1292 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
---|
1293 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
---|
1294 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1295 | else |
---|
1296 | cat > conftest.$ac_ext <<EOF |
---|
1297 | #line 1301 "configure" |
---|
1298 | #include "confdefs.h" |
---|
1299 | #include <sys/types.h> |
---|
1300 | #if STDC_HEADERS |
---|
1301 | #include <stdlib.h> |
---|
1302 | #endif |
---|
1303 | EOF |
---|
1304 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
1305 | egrep "pid_t" >/dev/null 2>&1; then |
---|
1306 | rm -rf conftest* |
---|
1307 | ac_cv_type_pid_t=yes |
---|
1308 | else |
---|
1309 | rm -rf conftest* |
---|
1310 | ac_cv_type_pid_t=no |
---|
1311 | fi |
---|
1312 | rm -f conftest* |
---|
1313 | |
---|
1314 | fi |
---|
1315 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 |
---|
1316 | if test $ac_cv_type_pid_t = no; then |
---|
1317 | cat >> confdefs.h <<\EOF |
---|
1318 | #define pid_t int |
---|
1319 | EOF |
---|
1320 | |
---|
1321 | fi |
---|
1322 | |
---|
1323 | ac_safe=`echo "vfork.h" | tr './\055' '___'` |
---|
1324 | echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 |
---|
1325 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
1326 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1327 | else |
---|
1328 | cat > conftest.$ac_ext <<EOF |
---|
1329 | #line 1333 "configure" |
---|
1330 | #include "confdefs.h" |
---|
1331 | #include <vfork.h> |
---|
1332 | EOF |
---|
1333 | eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1334 | ac_err=`grep -v '^ *+' conftest.out` |
---|
1335 | if test -z "$ac_err"; then |
---|
1336 | rm -rf conftest* |
---|
1337 | eval "ac_cv_header_$ac_safe=yes" |
---|
1338 | else |
---|
1339 | echo "$ac_err" >&5 |
---|
1340 | rm -rf conftest* |
---|
1341 | eval "ac_cv_header_$ac_safe=no" |
---|
1342 | fi |
---|
1343 | rm -f conftest* |
---|
1344 | fi |
---|
1345 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
1346 | echo "$ac_t""yes" 1>&6 |
---|
1347 | cat >> confdefs.h <<\EOF |
---|
1348 | #define HAVE_VFORK_H 1 |
---|
1349 | EOF |
---|
1350 | |
---|
1351 | else |
---|
1352 | echo "$ac_t""no" 1>&6 |
---|
1353 | fi |
---|
1354 | |
---|
1355 | echo $ac_n "checking for working vfork""... $ac_c" 1>&6 |
---|
1356 | if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then |
---|
1357 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1358 | else |
---|
1359 | if test "$cross_compiling" = yes; then |
---|
1360 | ac_cv_func_vfork=no |
---|
1361 | else |
---|
1362 | cat > conftest.$ac_ext <<EOF |
---|
1363 | #line 1367 "configure" |
---|
1364 | #include "confdefs.h" |
---|
1365 | /* Thanks to Paul Eggert for this test. */ |
---|
1366 | #include <stdio.h> |
---|
1367 | #include <sys/types.h> |
---|
1368 | #include <sys/stat.h> |
---|
1369 | #ifdef HAVE_UNISTD_H |
---|
1370 | #include <unistd.h> |
---|
1371 | #endif |
---|
1372 | #ifdef HAVE_VFORK_H |
---|
1373 | #include <vfork.h> |
---|
1374 | #endif |
---|
1375 | /* On some sparc systems, changes by the child to local and incoming |
---|
1376 | argument registers are propagated back to the parent. |
---|
1377 | The compiler is told about this with #include <vfork.h>, |
---|
1378 | but some compilers (e.g. gcc -O) don't grok <vfork.h>. |
---|
1379 | Test for this by using a static variable whose address |
---|
1380 | is put into a register that is clobbered by the vfork. */ |
---|
1381 | static |
---|
1382 | #ifdef __cplusplus |
---|
1383 | sparc_address_test (int arg) |
---|
1384 | #else |
---|
1385 | sparc_address_test (arg) int arg; |
---|
1386 | #endif |
---|
1387 | { |
---|
1388 | static pid_t child; |
---|
1389 | if (!child) { |
---|
1390 | child = vfork (); |
---|
1391 | if (child < 0) |
---|
1392 | perror ("vfork"); |
---|
1393 | if (!child) { |
---|
1394 | arg = getpid(); |
---|
1395 | write(-1, "", 0); |
---|
1396 | _exit (arg); |
---|
1397 | } |
---|
1398 | } |
---|
1399 | } |
---|
1400 | main() { |
---|
1401 | pid_t parent = getpid (); |
---|
1402 | pid_t child; |
---|
1403 | |
---|
1404 | sparc_address_test (); |
---|
1405 | |
---|
1406 | child = vfork (); |
---|
1407 | |
---|
1408 | if (child == 0) { |
---|
1409 | /* Here is another test for sparc vfork register problems. |
---|
1410 | This test uses lots of local variables, at least |
---|
1411 | as many local variables as main has allocated so far |
---|
1412 | including compiler temporaries. 4 locals are enough for |
---|
1413 | gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. |
---|
1414 | A buggy compiler should reuse the register of parent |
---|
1415 | for one of the local variables, since it will think that |
---|
1416 | parent can't possibly be used any more in this routine. |
---|
1417 | Assigning to the local variable will thus munge parent |
---|
1418 | in the parent process. */ |
---|
1419 | pid_t |
---|
1420 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), |
---|
1421 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); |
---|
1422 | /* Convince the compiler that p..p7 are live; otherwise, it might |
---|
1423 | use the same hardware register for all 8 local variables. */ |
---|
1424 | if (p != p1 || p != p2 || p != p3 || p != p4 |
---|
1425 | || p != p5 || p != p6 || p != p7) |
---|
1426 | _exit(1); |
---|
1427 | |
---|
1428 | /* On some systems (e.g. IRIX 3.3), |
---|
1429 | vfork doesn't separate parent from child file descriptors. |
---|
1430 | If the child closes a descriptor before it execs or exits, |
---|
1431 | this munges the parent's descriptor as well. |
---|
1432 | Test for this by closing stdout in the child. */ |
---|
1433 | _exit(close(fileno(stdout)) != 0); |
---|
1434 | } else { |
---|
1435 | int status; |
---|
1436 | struct stat st; |
---|
1437 | |
---|
1438 | while (wait(&status) != child) |
---|
1439 | ; |
---|
1440 | exit( |
---|
1441 | /* Was there some problem with vforking? */ |
---|
1442 | child < 0 |
---|
1443 | |
---|
1444 | /* Did the child fail? (This shouldn't happen.) */ |
---|
1445 | || status |
---|
1446 | |
---|
1447 | /* Did the vfork/compiler bug occur? */ |
---|
1448 | || parent != getpid() |
---|
1449 | |
---|
1450 | /* Did the file descriptor bug occur? */ |
---|
1451 | || fstat(fileno(stdout), &st) != 0 |
---|
1452 | ); |
---|
1453 | } |
---|
1454 | } |
---|
1455 | EOF |
---|
1456 | eval $ac_link |
---|
1457 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
---|
1458 | ac_cv_func_vfork=yes |
---|
1459 | else |
---|
1460 | ac_cv_func_vfork=no |
---|
1461 | fi |
---|
1462 | fi |
---|
1463 | rm -fr conftest* |
---|
1464 | fi |
---|
1465 | echo "$ac_t""$ac_cv_func_vfork" 1>&6 |
---|
1466 | if test $ac_cv_func_vfork = no; then |
---|
1467 | cat >> confdefs.h <<\EOF |
---|
1468 | #define vfork fork |
---|
1469 | EOF |
---|
1470 | |
---|
1471 | fi |
---|
1472 | |
---|
1473 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
---|
1474 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
---|
1475 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1476 | else |
---|
1477 | cat > conftest.$ac_ext <<EOF |
---|
1478 | #line 1482 "configure" |
---|
1479 | #include "confdefs.h" |
---|
1480 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1481 | which can conflict with char vprintf(); below. */ |
---|
1482 | #include <assert.h> |
---|
1483 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1484 | char vprintf(); |
---|
1485 | |
---|
1486 | int main() { return 0; } |
---|
1487 | int t() { |
---|
1488 | |
---|
1489 | /* The GNU C library defines this for functions which it implements |
---|
1490 | to always fail with ENOSYS. Some functions are actually named |
---|
1491 | something starting with __ and the normal name is an alias. */ |
---|
1492 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
---|
1493 | choke me |
---|
1494 | #else |
---|
1495 | vprintf(); |
---|
1496 | #endif |
---|
1497 | |
---|
1498 | ; return 0; } |
---|
1499 | EOF |
---|
1500 | if eval $ac_link; then |
---|
1501 | rm -rf conftest* |
---|
1502 | eval "ac_cv_func_vprintf=yes" |
---|
1503 | else |
---|
1504 | rm -rf conftest* |
---|
1505 | eval "ac_cv_func_vprintf=no" |
---|
1506 | fi |
---|
1507 | rm -f conftest* |
---|
1508 | |
---|
1509 | fi |
---|
1510 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
---|
1511 | echo "$ac_t""yes" 1>&6 |
---|
1512 | cat >> confdefs.h <<\EOF |
---|
1513 | #define HAVE_VPRINTF 1 |
---|
1514 | EOF |
---|
1515 | |
---|
1516 | else |
---|
1517 | echo "$ac_t""no" 1>&6 |
---|
1518 | fi |
---|
1519 | |
---|
1520 | if test "$ac_cv_func_vprintf" != yes; then |
---|
1521 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
---|
1522 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
---|
1523 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1524 | else |
---|
1525 | cat > conftest.$ac_ext <<EOF |
---|
1526 | #line 1530 "configure" |
---|
1527 | #include "confdefs.h" |
---|
1528 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1529 | which can conflict with char _doprnt(); below. */ |
---|
1530 | #include <assert.h> |
---|
1531 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1532 | char _doprnt(); |
---|
1533 | |
---|
1534 | int main() { return 0; } |
---|
1535 | int t() { |
---|
1536 | |
---|
1537 | /* The GNU C library defines this for functions which it implements |
---|
1538 | to always fail with ENOSYS. Some functions are actually named |
---|
1539 | something starting with __ and the normal name is an alias. */ |
---|
1540 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
---|
1541 | choke me |
---|
1542 | #else |
---|
1543 | _doprnt(); |
---|
1544 | #endif |
---|
1545 | |
---|
1546 | ; return 0; } |
---|
1547 | EOF |
---|
1548 | if eval $ac_link; then |
---|
1549 | rm -rf conftest* |
---|
1550 | eval "ac_cv_func__doprnt=yes" |
---|
1551 | else |
---|
1552 | rm -rf conftest* |
---|
1553 | eval "ac_cv_func__doprnt=no" |
---|
1554 | fi |
---|
1555 | rm -f conftest* |
---|
1556 | |
---|
1557 | fi |
---|
1558 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
---|
1559 | echo "$ac_t""yes" 1>&6 |
---|
1560 | cat >> confdefs.h <<\EOF |
---|
1561 | #define HAVE_DOPRNT 1 |
---|
1562 | EOF |
---|
1563 | |
---|
1564 | else |
---|
1565 | echo "$ac_t""no" 1>&6 |
---|
1566 | fi |
---|
1567 | |
---|
1568 | fi |
---|
1569 | |
---|
1570 | |
---|
1571 | trap '' 1 2 15 |
---|
1572 | cat > confcache <<\EOF |
---|
1573 | # This file is a shell script that caches the results of configure |
---|
1574 | # tests run on this system so they can be shared between configure |
---|
1575 | # scripts and configure runs. It is not useful on other systems. |
---|
1576 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
1577 | # |
---|
1578 | # By default, configure uses ./config.cache as the cache file, |
---|
1579 | # creating it if it does not exist already. You can give configure |
---|
1580 | # the --cache-file=FILE option to use a different cache file; that is |
---|
1581 | # what configure does when it calls configure scripts in |
---|
1582 | # subdirectories, so they share the cache. |
---|
1583 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
1584 | # config.status only pays attention to the cache file if you give it the |
---|
1585 | # --recheck option to rerun configure. |
---|
1586 | # |
---|
1587 | EOF |
---|
1588 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
1589 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
1590 | (set) 2>&1 | |
---|
1591 | sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \ |
---|
1592 | >> confcache |
---|
1593 | if cmp -s $cache_file confcache; then |
---|
1594 | : |
---|
1595 | else |
---|
1596 | if test -w $cache_file; then |
---|
1597 | echo "updating cache $cache_file" |
---|
1598 | cat confcache > $cache_file |
---|
1599 | else |
---|
1600 | echo "not updating unwritable cache $cache_file" |
---|
1601 | fi |
---|
1602 | fi |
---|
1603 | rm -f confcache |
---|
1604 | |
---|
1605 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
1606 | |
---|
1607 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
1608 | # Let make expand exec_prefix. |
---|
1609 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
1610 | |
---|
1611 | # Any assignment to VPATH causes Sun make to only execute |
---|
1612 | # the first set of double-colon rules, so remove it if not needed. |
---|
1613 | # If there is a colon in the path, we need to keep it. |
---|
1614 | if test "x$srcdir" = x.; then |
---|
1615 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
---|
1616 | fi |
---|
1617 | |
---|
1618 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
---|
1619 | |
---|
1620 | DEFS=-DHAVE_CONFIG_H |
---|
1621 | |
---|
1622 | # Without the "./", some shells look in PATH for config.status. |
---|
1623 | : ${CONFIG_STATUS=./config.status} |
---|
1624 | |
---|
1625 | echo creating $CONFIG_STATUS |
---|
1626 | rm -f $CONFIG_STATUS |
---|
1627 | cat > $CONFIG_STATUS <<EOF |
---|
1628 | #! /bin/sh |
---|
1629 | # Generated automatically by configure. |
---|
1630 | # Run this file to recreate the current configuration. |
---|
1631 | # This directory was configured as follows, |
---|
1632 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
1633 | # |
---|
1634 | # $0 $ac_configure_args |
---|
1635 | # |
---|
1636 | # Compiler output produced by configure, useful for debugging |
---|
1637 | # configure, is in ./config.log if it exists. |
---|
1638 | |
---|
1639 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
---|
1640 | for ac_option |
---|
1641 | do |
---|
1642 | case "\$ac_option" in |
---|
1643 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
1644 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
---|
1645 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
---|
1646 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
---|
1647 | echo "$CONFIG_STATUS generated by autoconf version 2.4" |
---|
1648 | exit 0 ;; |
---|
1649 | -help | --help | --hel | --he | --h) |
---|
1650 | echo "\$ac_cs_usage"; exit 0 ;; |
---|
1651 | *) echo "\$ac_cs_usage"; exit 1 ;; |
---|
1652 | esac |
---|
1653 | done |
---|
1654 | |
---|
1655 | ac_given_srcdir=$srcdir |
---|
1656 | ac_given_INSTALL="$INSTALL" |
---|
1657 | |
---|
1658 | trap 'rm -fr `echo "Makefile c-auto.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
---|
1659 | |
---|
1660 | # Protect against being on the right side of a sed subst in config.status. |
---|
1661 | sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; |
---|
1662 | s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF |
---|
1663 | $ac_vpsub |
---|
1664 | $extrasub |
---|
1665 | s%@CFLAGS@%$CFLAGS%g |
---|
1666 | s%@CPPFLAGS@%$CPPFLAGS%g |
---|
1667 | s%@CXXFLAGS@%$CXXFLAGS%g |
---|
1668 | s%@DEFS@%$DEFS%g |
---|
1669 | s%@LDFLAGS@%$LDFLAGS%g |
---|
1670 | s%@LIBS@%$LIBS%g |
---|
1671 | s%@exec_prefix@%$exec_prefix%g |
---|
1672 | s%@prefix@%$prefix%g |
---|
1673 | s%@program_transform_name@%$program_transform_name%g |
---|
1674 | s%@SET_MAKE@%$SET_MAKE%g |
---|
1675 | s%@CC@%$CC%g |
---|
1676 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
---|
1677 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
---|
1678 | s%@RANLIB@%$RANLIB%g |
---|
1679 | s%@CPP@%$CPP%g |
---|
1680 | s%@LIBOBJS@%$LIBOBJS%g |
---|
1681 | |
---|
1682 | CEOF |
---|
1683 | EOF |
---|
1684 | cat >> $CONFIG_STATUS <<EOF |
---|
1685 | |
---|
1686 | CONFIG_FILES=\${CONFIG_FILES-"Makefile"} |
---|
1687 | EOF |
---|
1688 | cat >> $CONFIG_STATUS <<\EOF |
---|
1689 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
---|
1690 | # Support "outfile[:infile]", defaulting infile="outfile.in". |
---|
1691 | case "$ac_file" in |
---|
1692 | *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` |
---|
1693 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
1694 | *) ac_file_in="${ac_file}.in" ;; |
---|
1695 | esac |
---|
1696 | |
---|
1697 | # Adjust relative srcdir, etc. for subdirectories. |
---|
1698 | |
---|
1699 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
1700 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
1701 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
1702 | # The file is in a subdirectory. |
---|
1703 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
1704 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
---|
1705 | # A "../" for each directory in $ac_dir_suffix. |
---|
1706 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
1707 | else |
---|
1708 | ac_dir_suffix= ac_dots= |
---|
1709 | fi |
---|
1710 | |
---|
1711 | case "$ac_given_srcdir" in |
---|
1712 | .) srcdir=. |
---|
1713 | if test -z "$ac_dots"; then top_srcdir=. |
---|
1714 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
---|
1715 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
---|
1716 | *) # Relative path. |
---|
1717 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
---|
1718 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
---|
1719 | esac |
---|
1720 | |
---|
1721 | case "$ac_given_INSTALL" in |
---|
1722 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
1723 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
1724 | esac |
---|
1725 | echo creating "$ac_file" |
---|
1726 | rm -f "$ac_file" |
---|
1727 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
---|
1728 | case "$ac_file" in |
---|
1729 | *Makefile*) ac_comsub="1i\\ |
---|
1730 | # $configure_input" ;; |
---|
1731 | *) ac_comsub= ;; |
---|
1732 | esac |
---|
1733 | # Replace lines of the form ac_include foo with the contents of foo: |
---|
1734 | # first, from the ac_include lines construct a list of sed |
---|
1735 | # commands to remove them, and include the files; then run sed. |
---|
1736 | # Have to use sed because old (Ultrix, SunOS) awk does not support |
---|
1737 | # getline or system. (Anyway, configure scripts aren't supposed to use awk.) |
---|
1738 | # Use \@...@<cmd> form of sed address because the filename may contain /. |
---|
1739 | # Can't use only one -e and commands {dr foo} because foo has to be last. |
---|
1740 | # Use @e initially instead of -e because GNU echo has a -e option. |
---|
1741 | # USe `X' to mean a bunch of backslashes; this is for FreeBSD. |
---|
1742 | file_substs=`sed -n \ |
---|
1743 | "/^ac_include/s%ac_include[ ]*\(.*\)%@e 'X@^&@r \1' -e 'X@^&@d'%p" \ |
---|
1744 | $ac_given_srcdir/${ac_file}.in` |
---|
1745 | if test -n "$file_substs"; then |
---|
1746 | # Change @e back to -e and X@^ to \@^. |
---|
1747 | file_subst_cmd="sed `echo $file_substs \ |
---|
1748 | | sed -e 's/@e/-e/g' -e 's/X@^/\\\\\@^/g'`" |
---|
1749 | else |
---|
1750 | # If no substitutions and hence no sed commands, don't choke. |
---|
1751 | file_subst_cmd=cat |
---|
1752 | fi |
---|
1753 | # cd into the srcdir because the files being included more or less |
---|
1754 | # must be part of the distribution. I can't find any way to do |
---|
1755 | # variable substitution in the sed commands (so the user could have, |
---|
1756 | # e.g., $top_srcdir in their ac_include line). |
---|
1757 | (cd $ac_given_srcdir && eval $file_subst_cmd ${ac_file}.in) \ |
---|
1758 | | sed -e "$ac_comsub |
---|
1759 | s%@configure_input@%$configure_input%g |
---|
1760 | s%@srcdir@%$srcdir%g |
---|
1761 | s%@top_srcdir@%$top_srcdir%g |
---|
1762 | s%@INSTALL@%$INSTALL%g |
---|
1763 | " -f conftest.subs > $ac_file |
---|
1764 | fi; done |
---|
1765 | rm -f conftest.subs |
---|
1766 | |
---|
1767 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
1768 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
1769 | # |
---|
1770 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
1771 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
1772 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
---|
1773 | ac_dC='\3' |
---|
1774 | ac_dD='%g' |
---|
1775 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
---|
1776 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
1777 | ac_uB='\([ ]\)%\1#\2define\3' |
---|
1778 | ac_uC=' ' |
---|
1779 | ac_uD='\4%g' |
---|
1780 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
1781 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
1782 | ac_eB='$%\1#\2define\3' |
---|
1783 | ac_eC=' ' |
---|
1784 | ac_eD='%g' |
---|
1785 | |
---|
1786 | CONFIG_HEADERS=${CONFIG_HEADERS-"c-auto.h"} |
---|
1787 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
---|
1788 | # Support "outfile[:infile]", defaulting infile="outfile.in". |
---|
1789 | case "$ac_file" in |
---|
1790 | *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` |
---|
1791 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
1792 | *) ac_file_in="${ac_file}.in" ;; |
---|
1793 | esac |
---|
1794 | |
---|
1795 | echo creating $ac_file |
---|
1796 | |
---|
1797 | rm -f conftest.frag conftest.in conftest.out |
---|
1798 | cp $ac_given_srcdir/$ac_file_in conftest.in |
---|
1799 | |
---|
1800 | EOF |
---|
1801 | |
---|
1802 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
---|
1803 | # the proper values into config.h.in to produce config.h. And first: |
---|
1804 | # Protect against being on the right side of a sed subst in config.status. |
---|
1805 | # Protect against being in an unquoted here document in config.status. |
---|
1806 | rm -f conftest.vals |
---|
1807 | cat > conftest.hdr <<\EOF |
---|
1808 | s/[\\&%]/\\&/g |
---|
1809 | s%[\\$`]%\\&%g |
---|
1810 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
---|
1811 | s%ac_d%ac_u%gp |
---|
1812 | s%ac_u%ac_e%gp |
---|
1813 | EOF |
---|
1814 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
---|
1815 | rm -f conftest.hdr |
---|
1816 | |
---|
1817 | # This sed command replaces #undef with comments. This is necessary, for |
---|
1818 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
1819 | # on some systems where configure will not decide to define it. |
---|
1820 | cat >> conftest.vals <<\EOF |
---|
1821 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
---|
1822 | EOF |
---|
1823 | |
---|
1824 | # Break up conftest.vals because some shells have a limit on |
---|
1825 | # the size of here documents, and old seds have small limits too. |
---|
1826 | # Maximum number of lines to put in a single here document. |
---|
1827 | ac_max_here_lines=12 |
---|
1828 | |
---|
1829 | rm -f conftest.tail |
---|
1830 | while : |
---|
1831 | do |
---|
1832 | ac_lines=`grep -c . conftest.vals` |
---|
1833 | # grep -c gives empty output for an empty file on some AIX systems. |
---|
1834 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
---|
1835 | # Write a limited-size here document to conftest.frag. |
---|
1836 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
---|
1837 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
---|
1838 | echo 'CEOF |
---|
1839 | sed -f conftest.frag conftest.in > conftest.out |
---|
1840 | rm -f conftest.in |
---|
1841 | mv conftest.out conftest.in |
---|
1842 | ' >> $CONFIG_STATUS |
---|
1843 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
---|
1844 | rm -f conftest.vals |
---|
1845 | mv conftest.tail conftest.vals |
---|
1846 | done |
---|
1847 | rm -f conftest.vals |
---|
1848 | |
---|
1849 | cat >> $CONFIG_STATUS <<\EOF |
---|
1850 | rm -f conftest.frag conftest.h |
---|
1851 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
---|
1852 | cat conftest.in >> conftest.h |
---|
1853 | rm -f conftest.in |
---|
1854 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
---|
1855 | echo "$ac_file is unchanged" |
---|
1856 | rm -f conftest.h |
---|
1857 | else |
---|
1858 | rm -f $ac_file |
---|
1859 | mv conftest.h $ac_file |
---|
1860 | fi |
---|
1861 | fi; done |
---|
1862 | |
---|
1863 | |
---|
1864 | |
---|
1865 | exit 0 |
---|
1866 | EOF |
---|
1867 | chmod +x $CONFIG_STATUS |
---|
1868 | rm -fr confdefs* $ac_clean_files |
---|
1869 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
---|
1870 | |
---|