source: Sophya/trunk/ArchTOIPipe/configure@ 1778

Last change on this file since 1778 was 1768, checked in by cmv, 24 years ago

pb MACHDIR Linux-/usr/bin/g++

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