source: Sophya/trunk/ArchTOIPipe/configure@ 1738

Last change on this file since 1738 was 1738, checked in by aubourg, 24 years ago

copyright

  • Property svn:executable set to *
File size: 61.6 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
[1732]547if test `uname` = Linux -a -f /usr/bin/g++; then
[1734]548 CXX=g++
[1732]549fi
550
[1477]551# Extract the first word of "gcc", so it can be a program name with args.
552set dummy gcc; ac_word=$2
553echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
[1732]554echo "configure:555: checking for $ac_word" >&5
[1477]555if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
556 echo $ac_n "(cached) $ac_c" 1>&6
557else
558 if test -n "$CC"; then
559 ac_cv_prog_CC="$CC" # Let the user override the test.
560else
561 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
562 ac_dummy="$PATH"
563 for ac_dir in $ac_dummy; do
564 test -z "$ac_dir" && ac_dir=.
565 if test -f $ac_dir/$ac_word; then
566 ac_cv_prog_CC="gcc"
567 break
568 fi
569 done
570 IFS="$ac_save_ifs"
571fi
572fi
573CC="$ac_cv_prog_CC"
574if test -n "$CC"; then
575 echo "$ac_t""$CC" 1>&6
576else
577 echo "$ac_t""no" 1>&6
578fi
579
580if test -z "$CC"; then
581 # Extract the first word of "cc", so it can be a program name with args.
582set dummy cc; ac_word=$2
583echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
[1732]584echo "configure:585: checking for $ac_word" >&5
[1477]585if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
586 echo $ac_n "(cached) $ac_c" 1>&6
587else
588 if test -n "$CC"; then
589 ac_cv_prog_CC="$CC" # Let the user override the test.
590else
591 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
592 ac_prog_rejected=no
593 ac_dummy="$PATH"
594 for ac_dir in $ac_dummy; do
595 test -z "$ac_dir" && ac_dir=.
596 if test -f $ac_dir/$ac_word; then
597 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
598 ac_prog_rejected=yes
599 continue
600 fi
601 ac_cv_prog_CC="cc"
602 break
603 fi
604 done
605 IFS="$ac_save_ifs"
606if test $ac_prog_rejected = yes; then
607 # We found a bogon in the path, so make sure we never use it.
608 set dummy $ac_cv_prog_CC
609 shift
610 if test $# -gt 0; then
611 # We chose a different compiler from the bogus one.
612 # However, it has the same basename, so the bogon will be chosen
613 # first if we set CC to just the basename; use the full file name.
614 shift
615 set dummy "$ac_dir/$ac_word" "$@"
616 shift
617 ac_cv_prog_CC="$@"
618 fi
619fi
620fi
621fi
622CC="$ac_cv_prog_CC"
623if test -n "$CC"; then
624 echo "$ac_t""$CC" 1>&6
625else
626 echo "$ac_t""no" 1>&6
627fi
628
629 if test -z "$CC"; then
630 case "`uname -s`" in
631 *win32* | *WIN32*)
632 # Extract the first word of "cl", so it can be a program name with args.
633set dummy cl; ac_word=$2
634echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
[1732]635echo "configure:636: checking for $ac_word" >&5
[1477]636if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
637 echo $ac_n "(cached) $ac_c" 1>&6
638else
639 if test -n "$CC"; then
640 ac_cv_prog_CC="$CC" # Let the user override the test.
641else
642 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
643 ac_dummy="$PATH"
644 for ac_dir in $ac_dummy; do
645 test -z "$ac_dir" && ac_dir=.
646 if test -f $ac_dir/$ac_word; then
647 ac_cv_prog_CC="cl"
648 break
649 fi
650 done
651 IFS="$ac_save_ifs"
652fi
653fi
654CC="$ac_cv_prog_CC"
655if test -n "$CC"; then
656 echo "$ac_t""$CC" 1>&6
657else
658 echo "$ac_t""no" 1>&6
659fi
660 ;;
661 esac
662 fi
663 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
664fi
665
666echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
[1732]667echo "configure:668: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
[1477]668
669ac_ext=c
670# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
671ac_cpp='$CPP $CPPFLAGS'
672ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
673ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
674cross_compiling=$ac_cv_prog_cc_cross
675
676cat > conftest.$ac_ext << EOF
677
[1732]678#line 679 "configure"
[1477]679#include "confdefs.h"
680
681main(){return(0);}
682EOF
[1732]683if { (eval echo configure:684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
[1477]684 ac_cv_prog_cc_works=yes
685 # If we can't run a trivial program, we are probably using a cross compiler.
686 if (./conftest; exit) 2>/dev/null; then
687 ac_cv_prog_cc_cross=no
688 else
689 ac_cv_prog_cc_cross=yes
690 fi
691else
692 echo "configure: failed program was:" >&5
693 cat conftest.$ac_ext >&5
694 ac_cv_prog_cc_works=no
695fi
696rm -fr conftest*
697ac_ext=c
698# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
699ac_cpp='$CPP $CPPFLAGS'
700ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
701ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
702cross_compiling=$ac_cv_prog_cc_cross
703
704echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
705if test $ac_cv_prog_cc_works = no; then
706 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
707fi
708echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
[1732]709echo "configure:710: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
[1477]710echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
711cross_compiling=$ac_cv_prog_cc_cross
712
713echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
[1732]714echo "configure:715: checking whether we are using GNU C" >&5
[1477]715if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
716 echo $ac_n "(cached) $ac_c" 1>&6
717else
718 cat > conftest.c <<EOF
719#ifdef __GNUC__
720 yes;
721#endif
722EOF
[1732]723if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
[1477]724 ac_cv_prog_gcc=yes
725else
726 ac_cv_prog_gcc=no
727fi
728fi
729
730echo "$ac_t""$ac_cv_prog_gcc" 1>&6
731
732if test $ac_cv_prog_gcc = yes; then
733 GCC=yes
734else
735 GCC=
736fi
737
738ac_test_CFLAGS="${CFLAGS+set}"
739ac_save_CFLAGS="$CFLAGS"
740CFLAGS=
741echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
[1732]742echo "configure:743: checking whether ${CC-cc} accepts -g" >&5
[1477]743if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
744 echo $ac_n "(cached) $ac_c" 1>&6
745else
746 echo 'void f(){}' > conftest.c
747if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
748 ac_cv_prog_cc_g=yes
749else
750 ac_cv_prog_cc_g=no
751fi
752rm -f conftest*
753
754fi
755
756echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
757if test "$ac_test_CFLAGS" = set; then
758 CFLAGS="$ac_save_CFLAGS"
759elif test $ac_cv_prog_cc_g = yes; then
760 if test "$GCC" = yes; then
761 CFLAGS="-g -O2"
762 else
763 CFLAGS="-g"
764 fi
765else
766 if test "$GCC" = yes; then
767 CFLAGS="-O2"
768 else
769 CFLAGS=
770 fi
771fi
772
[1407]773for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
774do
775# Extract the first word of "$ac_prog", so it can be a program name with args.
776set dummy $ac_prog; ac_word=$2
777echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
[1732]778echo "configure:779: checking for $ac_word" >&5
[1407]779if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
780 echo $ac_n "(cached) $ac_c" 1>&6
781else
782 if test -n "$CXX"; then
783 ac_cv_prog_CXX="$CXX" # Let the user override the test.
784else
785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
786 ac_dummy="$PATH"
787 for ac_dir in $ac_dummy; do
788 test -z "$ac_dir" && ac_dir=.
789 if test -f $ac_dir/$ac_word; then
790 ac_cv_prog_CXX="$ac_prog"
791 break
792 fi
793 done
794 IFS="$ac_save_ifs"
795fi
796fi
797CXX="$ac_cv_prog_CXX"
798if test -n "$CXX"; then
799 echo "$ac_t""$CXX" 1>&6
800else
801 echo "$ac_t""no" 1>&6
802fi
803
804test -n "$CXX" && break
805done
806test -n "$CXX" || CXX="gcc"
807
808
809echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
[1732]810echo "configure:811: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
[1407]811
812ac_ext=C
813# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
814ac_cpp='$CXXCPP $CPPFLAGS'
815ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
816ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
817cross_compiling=$ac_cv_prog_cxx_cross
818
819cat > conftest.$ac_ext << EOF
820
[1732]821#line 822 "configure"
[1407]822#include "confdefs.h"
823
824int main(){return(0);}
825EOF
[1732]826if { (eval echo configure:827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
[1407]827 ac_cv_prog_cxx_works=yes
828 # If we can't run a trivial program, we are probably using a cross compiler.
829 if (./conftest; exit) 2>/dev/null; then
830 ac_cv_prog_cxx_cross=no
831 else
832 ac_cv_prog_cxx_cross=yes
833 fi
834else
835 echo "configure: failed program was:" >&5
836 cat conftest.$ac_ext >&5
837 ac_cv_prog_cxx_works=no
838fi
839rm -fr conftest*
840ac_ext=c
841# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
842ac_cpp='$CPP $CPPFLAGS'
843ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
844ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
845cross_compiling=$ac_cv_prog_cc_cross
846
847echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
848if test $ac_cv_prog_cxx_works = no; then
849 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
850fi
851echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
[1732]852echo "configure:853: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
[1407]853echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
854cross_compiling=$ac_cv_prog_cxx_cross
855
856echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
[1732]857echo "configure:858: checking whether we are using GNU C++" >&5
[1407]858if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
859 echo $ac_n "(cached) $ac_c" 1>&6
860else
861 cat > conftest.C <<EOF
862#ifdef __GNUC__
863 yes;
864#endif
865EOF
[1732]866if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
[1407]867 ac_cv_prog_gxx=yes
868else
869 ac_cv_prog_gxx=no
870fi
871fi
872
873echo "$ac_t""$ac_cv_prog_gxx" 1>&6
874
875if test $ac_cv_prog_gxx = yes; then
876 GXX=yes
877else
878 GXX=
879fi
880
881ac_test_CXXFLAGS="${CXXFLAGS+set}"
882ac_save_CXXFLAGS="$CXXFLAGS"
883CXXFLAGS=
884echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
[1732]885echo "configure:886: checking whether ${CXX-g++} accepts -g" >&5
[1407]886if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
887 echo $ac_n "(cached) $ac_c" 1>&6
888else
889 echo 'void f(){}' > conftest.cc
890if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
891 ac_cv_prog_cxx_g=yes
892else
893 ac_cv_prog_cxx_g=no
894fi
895rm -f conftest*
896
897fi
898
899echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
900if test "$ac_test_CXXFLAGS" = set; then
901 CXXFLAGS="$ac_save_CXXFLAGS"
902elif test $ac_cv_prog_cxx_g = yes; then
903 if test "$GXX" = yes; then
904 CXXFLAGS="-g -O2"
905 else
906 CXXFLAGS="-g"
907 fi
908else
909 if test "$GXX" = yes; then
910 CXXFLAGS="-O2"
911 else
912 CXXFLAGS=
913 fi
914fi
915
[1706]916# Extract the first word of "ar", so it can be a program name with args.
917set dummy ar; ac_word=$2
918echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
[1732]919echo "configure:920: checking for $ac_word" >&5
[1706]920if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
921 echo $ac_n "(cached) $ac_c" 1>&6
922else
923 case "$AR" in
924 /*)
925 ac_cv_path_AR="$AR" # Let the user override the test with a path.
926 ;;
927 ?:/*)
928 ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
929 ;;
930 *)
931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
932 ac_dummy="/usr/bin:$PATH"
933 for ac_dir in $ac_dummy; do
934 test -z "$ac_dir" && ac_dir=.
935 if test -f $ac_dir/$ac_word; then
936 ac_cv_path_AR="$ac_dir/$ac_word"
937 break
938 fi
939 done
940 IFS="$ac_save_ifs"
941 test -z "$ac_cv_path_AR" && ac_cv_path_AR="/usr/bin/ar"
942 ;;
943esac
944fi
945AR="$ac_cv_path_AR"
946if test -n "$AR"; then
947 echo "$ac_t""$AR" 1>&6
948else
949 echo "$ac_t""no" 1>&6
950fi
951
[1707]952# Extract the first word of "ranlib", so it can be a program name with args.
953set dummy ranlib; ac_word=$2
954echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
[1732]955echo "configure:956: checking for $ac_word" >&5
[1707]956if eval "test \"`echo '$''{'ac_cv_path_RANLIB'+set}'`\" = set"; then
957 echo $ac_n "(cached) $ac_c" 1>&6
958else
959 case "$RANLIB" in
960 /*)
961 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
962 ;;
963 ?:/*)
964 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a dos path.
965 ;;
966 *)
967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
968 ac_dummy="/usr/bin:$PATH"
969 for ac_dir in $ac_dummy; do
970 test -z "$ac_dir" && ac_dir=.
971 if test -f $ac_dir/$ac_word; then
972 ac_cv_path_RANLIB="$ac_dir/$ac_word"
973 break
974 fi
975 done
976 IFS="$ac_save_ifs"
977 test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="/usr/bin/ranlib"
978 ;;
979esac
980fi
981RANLIB="$ac_cv_path_RANLIB"
982if test -n "$RANLIB"; then
983 echo "$ac_t""$RANLIB" 1>&6
984else
985 echo "$ac_t""no" 1>&6
986fi
987
[1407]988
[1692]989if test $GCC = "yes"; then
990 gcc=$CC
991else
992 gcc=gcc
993fi
994
995
[1407]996echo $ac_n "checking size of short""... $ac_c" 1>&6
[1732]997echo "configure:998: checking size of short" >&5
[1407]998if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
999 echo $ac_n "(cached) $ac_c" 1>&6
1000else
1001 if test "$cross_compiling" = yes; then
1002 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1003else
1004 cat > conftest.$ac_ext <<EOF
[1732]1005#line 1006 "configure"
[1407]1006#include "confdefs.h"
1007#include <stdio.h>
1008main()
1009{
1010 FILE *f=fopen("conftestval", "w");
1011 if (!f) exit(1);
1012 fprintf(f, "%d\n", sizeof(short));
1013 exit(0);
1014}
1015EOF
[1732]1016if { (eval echo configure:1017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
[1407]1017then
1018 ac_cv_sizeof_short=`cat conftestval`
1019else
1020 echo "configure: failed program was:" >&5
1021 cat conftest.$ac_ext >&5
1022 rm -fr conftest*
1023 ac_cv_sizeof_short=0
1024fi
1025rm -fr conftest*
1026fi
1027
1028fi
1029echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1030cat >> confdefs.h <<EOF
1031#define SIZEOF_SHORT $ac_cv_sizeof_short
1032EOF
1033
1034
1035echo $ac_n "checking size of int""... $ac_c" 1>&6
[1732]1036echo "configure:1037: checking size of int" >&5
[1407]1037if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1038 echo $ac_n "(cached) $ac_c" 1>&6
1039else
1040 if test "$cross_compiling" = yes; then
1041 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1042else
1043 cat > conftest.$ac_ext <<EOF
[1732]1044#line 1045 "configure"
[1407]1045#include "confdefs.h"
1046#include <stdio.h>
1047main()
1048{
1049 FILE *f=fopen("conftestval", "w");
1050 if (!f) exit(1);
1051 fprintf(f, "%d\n", sizeof(int));
1052 exit(0);
1053}
1054EOF
[1732]1055if { (eval echo configure:1056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
[1407]1056then
1057 ac_cv_sizeof_int=`cat conftestval`
1058else
1059 echo "configure: failed program was:" >&5
1060 cat conftest.$ac_ext >&5
1061 rm -fr conftest*
1062 ac_cv_sizeof_int=0
1063fi
1064rm -fr conftest*
1065fi
1066
1067fi
1068echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1069cat >> confdefs.h <<EOF
1070#define SIZEOF_INT $ac_cv_sizeof_int
1071EOF
1072
1073
1074echo $ac_n "checking size of long""... $ac_c" 1>&6
[1732]1075echo "configure:1076: checking size of long" >&5
[1407]1076if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1077 echo $ac_n "(cached) $ac_c" 1>&6
1078else
1079 if test "$cross_compiling" = yes; then
1080 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1081else
1082 cat > conftest.$ac_ext <<EOF
[1732]1083#line 1084 "configure"
[1407]1084#include "confdefs.h"
1085#include <stdio.h>
1086main()
1087{
1088 FILE *f=fopen("conftestval", "w");
1089 if (!f) exit(1);
1090 fprintf(f, "%d\n", sizeof(long));
1091 exit(0);
1092}
1093EOF
[1732]1094if { (eval echo configure:1095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
[1407]1095then
1096 ac_cv_sizeof_long=`cat conftestval`
1097else
1098 echo "configure: failed program was:" >&5
1099 cat conftest.$ac_ext >&5
1100 rm -fr conftest*
1101 ac_cv_sizeof_long=0
1102fi
1103rm -fr conftest*
1104fi
1105
1106fi
1107echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1108cat >> confdefs.h <<EOF
1109#define SIZEOF_LONG $ac_cv_sizeof_long
1110EOF
1111
1112
[1663]1113echo $ac_n "checking size of long long""... $ac_c" 1>&6
[1732]1114echo "configure:1115: checking size of long long" >&5
[1663]1115if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1116 echo $ac_n "(cached) $ac_c" 1>&6
1117else
1118 if test "$cross_compiling" = yes; then
1119 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1120else
1121 cat > conftest.$ac_ext <<EOF
[1732]1122#line 1123 "configure"
[1663]1123#include "confdefs.h"
1124#include <stdio.h>
1125main()
1126{
1127 FILE *f=fopen("conftestval", "w");
1128 if (!f) exit(1);
1129 fprintf(f, "%d\n", sizeof(long long));
1130 exit(0);
1131}
1132EOF
[1732]1133if { (eval echo configure:1134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
[1663]1134then
1135 ac_cv_sizeof_long_long=`cat conftestval`
1136else
1137 echo "configure: failed program was:" >&5
1138 cat conftest.$ac_ext >&5
1139 rm -fr conftest*
1140 ac_cv_sizeof_long_long=0
1141fi
1142rm -fr conftest*
1143fi
1144
1145fi
1146echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
1147cat >> confdefs.h <<EOF
1148#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
1149EOF
1150
1151
[1407]1152echo $ac_n "checking size of float""... $ac_c" 1>&6
[1732]1153echo "configure:1154: checking size of float" >&5
[1407]1154if eval "test \"`echo '$''{'ac_cv_sizeof_float'+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
[1732]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(float));
1169 exit(0);
1170}
1171EOF
[1732]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_float=`cat conftestval`
1175else
1176 echo "configure: failed program was:" >&5
1177 cat conftest.$ac_ext >&5
1178 rm -fr conftest*
1179 ac_cv_sizeof_float=0
1180fi
1181rm -fr conftest*
1182fi
1183
1184fi
1185echo "$ac_t""$ac_cv_sizeof_float" 1>&6
1186cat >> confdefs.h <<EOF
1187#define SIZEOF_FLOAT $ac_cv_sizeof_float
1188EOF
1189
1190
1191echo $ac_n "checking size of double""... $ac_c" 1>&6
[1732]1192echo "configure:1193: checking size of double" >&5
[1407]1193if eval "test \"`echo '$''{'ac_cv_sizeof_double'+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
[1732]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(double));
1208 exit(0);
1209}
1210EOF
[1732]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_double=`cat conftestval`
1214else
1215 echo "configure: failed program was:" >&5
1216 cat conftest.$ac_ext >&5
1217 rm -fr conftest*
1218 ac_cv_sizeof_double=0
1219fi
1220rm -fr conftest*
1221fi
1222
1223fi
1224echo "$ac_t""$ac_cv_sizeof_double" 1>&6
1225cat >> confdefs.h <<EOF
1226#define SIZEOF_DOUBLE $ac_cv_sizeof_double
1227EOF
1228
1229
1230echo $ac_n "checking size of long double""... $ac_c" 1>&6
[1732]1231echo "configure:1232: checking size of long double" >&5
[1407]1232if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+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
[1732]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 double));
1247 exit(0);
1248}
1249EOF
[1732]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_double=`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_double=0
1258fi
1259rm -fr conftest*
1260fi
1261
1262fi
1263echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
1264cat >> confdefs.h <<EOF
1265#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
1266EOF
1267
1268
1269
1270
1271echo $ac_n "checking "for cfitsio lib"""... $ac_c" 1>&6
[1732]1272echo "configure:1273: checking "for cfitsio lib"" >&5
[1407]1273MACHDIR=`uname`-$CXX
1274if test -f $ARCHBASEREP/$MACHDIR/Libs/libcfitsio.a; then
1275 cfitslibdir='-L$(ARCHBASEREP)/$(MACHDIR)/Libs'
[1730]1276elif test -f $EXTLIBDIR/$MACHDIR/Libs/libcfitsio.a; then
1277 cfitslibdir='-L$(EXTLIBDIR)/$(MACHDIR)/Libs'
[1407]1278elif test -f $CFITSIOLIBDIR/$MACHDIR/Libs/libcfitsio.a; then
1279 cfitslibdir='-L$(CFITSIOLIBDIR)/$(MACHDIR)/Libs'
1280elif test -f $CFITSIOLIBDIR/$MACHDIR/libcfitsio.a; then
1281 cfitslibdir='-L$(CFITSIOLIBDIR)/$(MACHDIR)'
1282elif test -f $CFITSIOLIBDIR/`uname`/lib/libcfitsio.a; then
1283 cfitslibdir='-L$(CFITSIOLIBDIR)/'`uname`/lib
1284elif test -f $CFITSIOLIBDIR/`uname`/libcfitsio.a; then
1285 cfitslibdir='-L$(CFITSIOLIBDIR)/'`uname`
1286elif test -f $CFITSIOLIBDIR/libcfitsio.a; then
1287 cfitslibdir='-L$(CFITSIOLIBDIR)'
1288elif test -f $CFITSIODIR/libcfitsio.a; then
1289 cfitslibdir='-L$(CFITSIODIR)'
1290elif test -f /usr/local/lib/libcfitsio.a; then
1291 cfitslibdir=""
1292else
1293 { echo "configure: error: "Cannot find cfitsio library"" 1>&2; exit 1; }
1294fi
1295echo "$ac_t""$cfitslibdir" 1>&6
1296
1297
1298echo $ac_n "checking "for cfitsio includes"""... $ac_c" 1>&6
[1732]1299echo "configure:1300: checking "for cfitsio includes"" >&5
[1407]1300if test -f $CFITSIODIR/fitsio.h; then
1301 cfitsincdir='-I$(CFITSIODIR)'
[1730]1302elif test -f $EXTLIBDIR/Include/FitsIO/fitsio.h; then
[1738]1303 cfitsincdir='-I$(EXTLIBDIR)/Include/FitsIO'
[1407]1304elif test -f /usr/local/include/fitsio.h; then
1305 cfitsincdir=""
1306else
1307 { echo "configure: error: "Cannot find cfitsio include fitsio.h"" 1>&2; exit 1; }
1308fi
1309echo "$ac_t""$cfitsincdir" 1>&6
1310
1311
1312echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
[1732]1313echo "configure:1314: checking for sin in -lm" >&5
[1407]1314ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
1315if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1316 echo $ac_n "(cached) $ac_c" 1>&6
1317else
1318 ac_save_LIBS="$LIBS"
1319LIBS="-lm $LIBS"
1320cat > conftest.$ac_ext <<EOF
[1732]1321#line 1322 "configure"
[1407]1322#include "confdefs.h"
1323/* Override any gcc2 internal prototype to avoid an error. */
1324/* We use char because int might match the return type of a gcc2
1325 builtin and then its argument prototype would still apply. */
1326char sin();
1327
1328int main() {
1329sin()
1330; return 0; }
1331EOF
[1732]1332if { (eval echo configure:1333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
[1407]1333 rm -rf conftest*
1334 eval "ac_cv_lib_$ac_lib_var=yes"
1335else
1336 echo "configure: failed program was:" >&5
1337 cat conftest.$ac_ext >&5
1338 rm -rf conftest*
1339 eval "ac_cv_lib_$ac_lib_var=no"
1340fi
1341rm -f conftest*
1342LIBS="$ac_save_LIBS"
1343
1344fi
1345if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1346 echo "$ac_t""yes" 1>&6
1347 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1348 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1349 cat >> confdefs.h <<EOF
1350#define $ac_tr_lib 1
1351EOF
1352
1353 LIBS="-lm $LIBS"
1354
1355else
1356 echo "$ac_t""no" 1>&6
1357fi
1358
[1732]1359echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
1360echo "configure:1361: checking for pthread_create in -lpthread" >&5
1361ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
1362if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1363 echo $ac_n "(cached) $ac_c" 1>&6
1364else
1365 ac_save_LIBS="$LIBS"
1366LIBS="-lpthread $LIBS"
1367cat > conftest.$ac_ext <<EOF
1368#line 1369 "configure"
1369#include "confdefs.h"
1370/* Override any gcc2 internal prototype to avoid an error. */
1371/* We use char because int might match the return type of a gcc2
1372 builtin and then its argument prototype would still apply. */
1373char pthread_create();
[1407]1374
[1732]1375int main() {
1376pthread_create()
1377; return 0; }
1378EOF
1379if { (eval echo configure:1380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1380 rm -rf conftest*
1381 eval "ac_cv_lib_$ac_lib_var=yes"
1382else
1383 echo "configure: failed program was:" >&5
1384 cat conftest.$ac_ext >&5
1385 rm -rf conftest*
1386 eval "ac_cv_lib_$ac_lib_var=no"
1387fi
1388rm -f conftest*
1389LIBS="$ac_save_LIBS"
1390
1391fi
1392if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1393 echo "$ac_t""yes" 1>&6
1394 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1395 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1396 cat >> confdefs.h <<EOF
1397#define $ac_tr_lib 1
1398EOF
1399
1400 LIBS="-lpthread $LIBS"
1401
1402else
1403 echo "$ac_t""no" 1>&6
1404fi
1405
1406echo $ac_n "checking for scopy_ in -lblas""... $ac_c" 1>&6
1407echo "configure:1408: checking for scopy_ in -lblas" >&5
1408ac_lib_var=`echo blas'_'scopy_ | sed 'y%./+-%__p_%'`
1409if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1410 echo $ac_n "(cached) $ac_c" 1>&6
1411else
1412 ac_save_LIBS="$LIBS"
1413LIBS="-lblas $LIBS"
1414cat > conftest.$ac_ext <<EOF
1415#line 1416 "configure"
1416#include "confdefs.h"
1417/* Override any gcc2 internal prototype to avoid an error. */
1418/* We use char because int might match the return type of a gcc2
1419 builtin and then its argument prototype would still apply. */
1420char scopy_();
1421
1422int main() {
1423scopy_()
1424; return 0; }
1425EOF
1426if { (eval echo configure:1427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1427 rm -rf conftest*
1428 eval "ac_cv_lib_$ac_lib_var=yes"
1429else
1430 echo "configure: failed program was:" >&5
1431 cat conftest.$ac_ext >&5
1432 rm -rf conftest*
1433 eval "ac_cv_lib_$ac_lib_var=no"
1434fi
1435rm -f conftest*
1436LIBS="$ac_save_LIBS"
1437
1438fi
1439if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1440 echo "$ac_t""yes" 1>&6
1441 ac_tr_lib=HAVE_LIB`echo blas | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1442 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1443 cat >> confdefs.h <<EOF
1444#define $ac_tr_lib 1
1445EOF
1446
1447 LIBS="-lblas $LIBS"
1448
1449else
1450 echo "$ac_t""no" 1>&6
1451fi
1452
1453echo $ac_n "checking for s_copy in -lg2c""... $ac_c" 1>&6
1454echo "configure:1455: checking for s_copy in -lg2c" >&5
1455ac_lib_var=`echo g2c'_'s_copy | sed 'y%./+-%__p_%'`
1456if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1458else
1459 ac_save_LIBS="$LIBS"
1460LIBS="-lg2c $LIBS"
1461cat > conftest.$ac_ext <<EOF
1462#line 1463 "configure"
1463#include "confdefs.h"
1464/* Override any gcc2 internal prototype to avoid an error. */
1465/* We use char because int might match the return type of a gcc2
1466 builtin and then its argument prototype would still apply. */
1467char s_copy();
1468
1469int main() {
1470s_copy()
1471; return 0; }
1472EOF
1473if { (eval echo configure:1474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1474 rm -rf conftest*
1475 eval "ac_cv_lib_$ac_lib_var=yes"
1476else
1477 echo "configure: failed program was:" >&5
1478 cat conftest.$ac_ext >&5
1479 rm -rf conftest*
1480 eval "ac_cv_lib_$ac_lib_var=no"
1481fi
1482rm -f conftest*
1483LIBS="$ac_save_LIBS"
1484
1485fi
1486if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1487 echo "$ac_t""yes" 1>&6
1488 ac_tr_lib=HAVE_LIB`echo g2c | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1489 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1490 cat >> confdefs.h <<EOF
1491#define $ac_tr_lib 1
1492EOF
1493
1494 LIBS="-lg2c $LIBS"
1495
1496else
1497 echo "$ac_t""no" 1>&6
1498fi
1499
1500
[1407]1501echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
[1732]1502echo "configure:1503: checking how to run the C preprocessor" >&5
[1407]1503# On Suns, sometimes $CPP names a directory.
1504if test -n "$CPP" && test -d "$CPP"; then
1505 CPP=
1506fi
1507if test -z "$CPP"; then
1508if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1509 echo $ac_n "(cached) $ac_c" 1>&6
1510else
1511 # This must be in double quotes, not single quotes, because CPP may get
1512 # substituted into the Makefile and "${CC-cc}" will confuse make.
1513 CPP="${CC-cc} -E"
1514 # On the NeXT, cc -E runs the code through the compiler's parser,
1515 # not just through cpp.
1516 cat > conftest.$ac_ext <<EOF
[1732]1517#line 1518 "configure"
[1407]1518#include "confdefs.h"
1519#include <assert.h>
1520Syntax Error
1521EOF
1522ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
[1732]1523{ (eval echo configure:1524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
[1407]1524ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1525if test -z "$ac_err"; then
1526 :
1527else
1528 echo "$ac_err" >&5
1529 echo "configure: failed program was:" >&5
1530 cat conftest.$ac_ext >&5
1531 rm -rf conftest*
1532 CPP="${CC-cc} -E -traditional-cpp"
1533 cat > conftest.$ac_ext <<EOF
[1732]1534#line 1535 "configure"
[1407]1535#include "confdefs.h"
1536#include <assert.h>
1537Syntax Error
1538EOF
1539ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
[1732]1540{ (eval echo configure:1541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
[1407]1541ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1542if test -z "$ac_err"; then
1543 :
1544else
1545 echo "$ac_err" >&5
1546 echo "configure: failed program was:" >&5
1547 cat conftest.$ac_ext >&5
1548 rm -rf conftest*
1549 CPP="${CC-cc} -nologo -E"
1550 cat > conftest.$ac_ext <<EOF
[1732]1551#line 1552 "configure"
[1407]1552#include "confdefs.h"
1553#include <assert.h>
1554Syntax Error
1555EOF
1556ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
[1732]1557{ (eval echo configure:1558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
[1407]1558ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1559if test -z "$ac_err"; then
1560 :
1561else
1562 echo "$ac_err" >&5
1563 echo "configure: failed program was:" >&5
1564 cat conftest.$ac_ext >&5
1565 rm -rf conftest*
1566 CPP=/lib/cpp
1567fi
1568rm -f conftest*
1569fi
1570rm -f conftest*
1571fi
1572rm -f conftest*
1573 ac_cv_prog_CPP="$CPP"
1574fi
1575 CPP="$ac_cv_prog_CPP"
1576else
1577 ac_cv_prog_CPP="$CPP"
1578fi
1579echo "$ac_t""$CPP" 1>&6
1580
1581echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
[1732]1582echo "configure:1583: checking for ANSI C header files" >&5
[1407]1583if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1584 echo $ac_n "(cached) $ac_c" 1>&6
1585else
1586 cat > conftest.$ac_ext <<EOF
[1732]1587#line 1588 "configure"
[1407]1588#include "confdefs.h"
1589#include <stdlib.h>
1590#include <stdarg.h>
1591#include <string.h>
1592#include <float.h>
1593EOF
1594ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
[1732]1595{ (eval echo configure:1596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
[1407]1596ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1597if test -z "$ac_err"; then
1598 rm -rf conftest*
1599 ac_cv_header_stdc=yes
1600else
1601 echo "$ac_err" >&5
1602 echo "configure: failed program was:" >&5
1603 cat conftest.$ac_ext >&5
1604 rm -rf conftest*
1605 ac_cv_header_stdc=no
1606fi
1607rm -f conftest*
1608
1609if test $ac_cv_header_stdc = yes; then
1610 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1611cat > conftest.$ac_ext <<EOF
[1732]1612#line 1613 "configure"
[1407]1613#include "confdefs.h"
1614#include <string.h>
1615EOF
1616if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1617 egrep "memchr" >/dev/null 2>&1; then
1618 :
1619else
1620 rm -rf conftest*
1621 ac_cv_header_stdc=no
1622fi
1623rm -f conftest*
1624
1625fi
1626
1627if test $ac_cv_header_stdc = yes; then
1628 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1629cat > conftest.$ac_ext <<EOF
[1732]1630#line 1631 "configure"
[1407]1631#include "confdefs.h"
1632#include <stdlib.h>
1633EOF
1634if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1635 egrep "free" >/dev/null 2>&1; then
1636 :
1637else
1638 rm -rf conftest*
1639 ac_cv_header_stdc=no
1640fi
1641rm -f conftest*
1642
1643fi
1644
1645if test $ac_cv_header_stdc = yes; then
1646 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1647if test "$cross_compiling" = yes; then
1648 :
1649else
1650 cat > conftest.$ac_ext <<EOF
[1732]1651#line 1652 "configure"
[1407]1652#include "confdefs.h"
1653#include <ctype.h>
1654#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1655#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1656#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1657int main () { int i; for (i = 0; i < 256; i++)
1658if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1659exit (0); }
1660
1661EOF
[1732]1662if { (eval echo configure:1663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
[1407]1663then
1664 :
1665else
1666 echo "configure: failed program was:" >&5
1667 cat conftest.$ac_ext >&5
1668 rm -fr conftest*
1669 ac_cv_header_stdc=no
1670fi
1671rm -fr conftest*
1672fi
1673
1674fi
1675fi
1676
1677echo "$ac_t""$ac_cv_header_stdc" 1>&6
1678if test $ac_cv_header_stdc = yes; then
1679 cat >> confdefs.h <<\EOF
1680#define STDC_HEADERS 1
1681EOF
1682
1683fi
1684
[1685]1685for ac_hdr in values.h stdint.h
[1663]1686do
1687ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1688echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
[1732]1689echo "configure:1690: checking for $ac_hdr" >&5
[1663]1690if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1691 echo $ac_n "(cached) $ac_c" 1>&6
1692else
1693 cat > conftest.$ac_ext <<EOF
[1732]1694#line 1695 "configure"
[1663]1695#include "confdefs.h"
1696#include <$ac_hdr>
1697EOF
1698ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
[1732]1699{ (eval echo configure:1700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
[1663]1700ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1701if test -z "$ac_err"; then
1702 rm -rf conftest*
1703 eval "ac_cv_header_$ac_safe=yes"
1704else
1705 echo "$ac_err" >&5
1706 echo "configure: failed program was:" >&5
1707 cat conftest.$ac_ext >&5
1708 rm -rf conftest*
1709 eval "ac_cv_header_$ac_safe=no"
1710fi
1711rm -f conftest*
1712fi
1713if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1714 echo "$ac_t""yes" 1>&6
1715 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1716 cat >> confdefs.h <<EOF
1717#define $ac_tr_hdr 1
1718EOF
1719
1720else
1721 echo "$ac_t""no" 1>&6
1722fi
1723done
[1407]1724
[1663]1725
[1477]1726outfiles="Makefile kernel/Makefile processors/Makefile pipes/Makefile"
1727if [ $use_sophya = 1 ]; then
1728 outfiles="$outfiles sophya/Makefile"
1729fi
1730
[1407]1731trap '' 1 2 15
1732cat > confcache <<\EOF
1733# This file is a shell script that caches the results of configure
1734# tests run on this system so they can be shared between configure
1735# scripts and configure runs. It is not useful on other systems.
1736# If it contains results you don't want to keep, you may remove or edit it.
1737#
1738# By default, configure uses ./config.cache as the cache file,
1739# creating it if it does not exist already. You can give configure
1740# the --cache-file=FILE option to use a different cache file; that is
1741# what configure does when it calls configure scripts in
1742# subdirectories, so they share the cache.
1743# Giving --cache-file=/dev/null disables caching, for debugging configure.
1744# config.status only pays attention to the cache file if you give it the
1745# --recheck option to rerun configure.
1746#
1747EOF
1748# The following way of writing the cache mishandles newlines in values,
1749# but we know of no workaround that is simple, portable, and efficient.
1750# So, don't put newlines in cache variables' values.
1751# Ultrix sh set writes to stderr and can't be redirected directly,
1752# and sets the high bit in the cache file unless we assign to the vars.
1753(set) 2>&1 |
1754 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1755 *ac_space=\ *)
1756 # `set' does not quote correctly, so add quotes (double-quote substitution
1757 # turns \\\\ into \\, and sed turns \\ into \).
1758 sed -n \
1759 -e "s/'/'\\\\''/g" \
1760 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1761 ;;
1762 *)
1763 # `set' quotes correctly as required by POSIX, so do not add quotes.
1764 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1765 ;;
1766 esac >> confcache
1767if cmp -s $cache_file confcache; then
1768 :
1769else
1770 if test -w $cache_file; then
1771 echo "updating cache $cache_file"
1772 cat confcache > $cache_file
1773 else
1774 echo "not updating unwritable cache $cache_file"
1775 fi
1776fi
1777rm -f confcache
1778
1779trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1780
1781test "x$prefix" = xNONE && prefix=$ac_default_prefix
1782# Let make expand exec_prefix.
1783test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1784
1785# Any assignment to VPATH causes Sun make to only execute
1786# the first set of double-colon rules, so remove it if not needed.
1787# If there is a colon in the path, we need to keep it.
1788if test "x$srcdir" = x.; then
1789 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1790fi
1791
1792trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1793
1794DEFS=-DHAVE_CONFIG_H
1795
1796# Without the "./", some shells look in PATH for config.status.
1797: ${CONFIG_STATUS=./config.status}
1798
1799echo creating $CONFIG_STATUS
1800rm -f $CONFIG_STATUS
1801cat > $CONFIG_STATUS <<EOF
1802#! /bin/sh
1803# Generated automatically by configure.
1804# Run this file to recreate the current configuration.
1805# This directory was configured as follows,
1806# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1807#
1808# $0 $ac_configure_args
1809#
1810# Compiler output produced by configure, useful for debugging
1811# configure, is in ./config.log if it exists.
1812
1813ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1814for ac_option
1815do
1816 case "\$ac_option" in
1817 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1818 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1819 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1820 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1821 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1822 exit 0 ;;
1823 -help | --help | --hel | --he | --h)
1824 echo "\$ac_cs_usage"; exit 0 ;;
1825 *) echo "\$ac_cs_usage"; exit 1 ;;
1826 esac
1827done
1828
1829ac_given_srcdir=$srcdir
1830
[1477]1831trap 'rm -fr `echo "$outfiles conf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
[1407]1832EOF
1833cat >> $CONFIG_STATUS <<EOF
1834
1835# Protect against being on the right side of a sed subst in config.status.
1836sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1837 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1838$ac_vpsub
1839$extrasub
1840s%@SHELL@%$SHELL%g
1841s%@CFLAGS@%$CFLAGS%g
1842s%@CPPFLAGS@%$CPPFLAGS%g
1843s%@CXXFLAGS@%$CXXFLAGS%g
1844s%@FFLAGS@%$FFLAGS%g
1845s%@DEFS@%$DEFS%g
1846s%@LDFLAGS@%$LDFLAGS%g
1847s%@LIBS@%$LIBS%g
1848s%@exec_prefix@%$exec_prefix%g
1849s%@prefix@%$prefix%g
1850s%@program_transform_name@%$program_transform_name%g
1851s%@bindir@%$bindir%g
1852s%@sbindir@%$sbindir%g
1853s%@libexecdir@%$libexecdir%g
1854s%@datadir@%$datadir%g
1855s%@sysconfdir@%$sysconfdir%g
1856s%@sharedstatedir@%$sharedstatedir%g
1857s%@localstatedir@%$localstatedir%g
1858s%@libdir@%$libdir%g
1859s%@includedir@%$includedir%g
1860s%@oldincludedir@%$oldincludedir%g
1861s%@infodir@%$infodir%g
1862s%@mandir@%$mandir%g
1863s%@use_sophya@%$use_sophya%g
[1477]1864s%@CC@%$CC%g
[1407]1865s%@CXX@%$CXX%g
[1706]1866s%@AR@%$AR%g
[1707]1867s%@RANLIB@%$RANLIB%g
[1692]1868s%@gcc@%$gcc%g
[1407]1869s%@cfitslibdir@%$cfitslibdir%g
1870s%@cfitsincdir@%$cfitsincdir%g
1871s%@CPP@%$CPP%g
1872
1873CEOF
1874EOF
1875
1876cat >> $CONFIG_STATUS <<\EOF
1877
1878# Split the substitutions into bite-sized pieces for seds with
1879# small command number limits, like on Digital OSF/1 and HP-UX.
1880ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1881ac_file=1 # Number of current file.
1882ac_beg=1 # First line for current file.
1883ac_end=$ac_max_sed_cmds # Line after last line for current file.
1884ac_more_lines=:
1885ac_sed_cmds=""
1886while $ac_more_lines; do
1887 if test $ac_beg -gt 1; then
1888 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1889 else
1890 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1891 fi
1892 if test ! -s conftest.s$ac_file; then
1893 ac_more_lines=false
1894 rm -f conftest.s$ac_file
1895 else
1896 if test -z "$ac_sed_cmds"; then
1897 ac_sed_cmds="sed -f conftest.s$ac_file"
1898 else
1899 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1900 fi
1901 ac_file=`expr $ac_file + 1`
1902 ac_beg=$ac_end
1903 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1904 fi
1905done
1906if test -z "$ac_sed_cmds"; then
1907 ac_sed_cmds=cat
1908fi
1909EOF
1910
1911cat >> $CONFIG_STATUS <<EOF
1912
[1477]1913CONFIG_FILES=\${CONFIG_FILES-"$outfiles"}
[1407]1914EOF
1915cat >> $CONFIG_STATUS <<\EOF
1916for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1917 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1918 case "$ac_file" in
1919 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1920 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1921 *) ac_file_in="${ac_file}.in" ;;
1922 esac
1923
1924 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1925
1926 # Remove last slash and all that follows it. Not all systems have dirname.
1927 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1928 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1929 # The file is in a subdirectory.
1930 test ! -d "$ac_dir" && mkdir "$ac_dir"
1931 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1932 # A "../" for each directory in $ac_dir_suffix.
1933 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1934 else
1935 ac_dir_suffix= ac_dots=
1936 fi
1937
1938 case "$ac_given_srcdir" in
1939 .) srcdir=.
1940 if test -z "$ac_dots"; then top_srcdir=.
1941 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1942 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1943 *) # Relative path.
1944 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1945 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1946 esac
1947
1948
1949 echo creating "$ac_file"
1950 rm -f "$ac_file"
1951 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1952 case "$ac_file" in
1953 *Makefile*) ac_comsub="1i\\
1954# $configure_input" ;;
1955 *) ac_comsub= ;;
1956 esac
1957
1958 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1959 sed -e "$ac_comsub
1960s%@configure_input@%$configure_input%g
1961s%@srcdir@%$srcdir%g
1962s%@top_srcdir@%$top_srcdir%g
1963" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1964fi; done
1965rm -f conftest.s*
1966
1967# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1968# NAME is the cpp macro being defined and VALUE is the value it is being given.
1969#
1970# ac_d sets the value in "#define NAME VALUE" lines.
1971ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1972ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1973ac_dC='\3'
1974ac_dD='%g'
1975# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1976ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1977ac_uB='\([ ]\)%\1#\2define\3'
1978ac_uC=' '
1979ac_uD='\4%g'
1980# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1981ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1982ac_eB='$%\1#\2define\3'
1983ac_eC=' '
1984ac_eD='%g'
1985
1986if test "${CONFIG_HEADERS+set}" != set; then
1987EOF
1988cat >> $CONFIG_STATUS <<EOF
1989 CONFIG_HEADERS="conf.h"
1990EOF
1991cat >> $CONFIG_STATUS <<\EOF
1992fi
1993for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1994 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1995 case "$ac_file" in
1996 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1997 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1998 *) ac_file_in="${ac_file}.in" ;;
1999 esac
2000
2001 echo creating $ac_file
2002
2003 rm -f conftest.frag conftest.in conftest.out
2004 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2005 cat $ac_file_inputs > conftest.in
2006
2007EOF
2008
2009# Transform confdefs.h into a sed script conftest.vals that substitutes
2010# the proper values into config.h.in to produce config.h. And first:
2011# Protect against being on the right side of a sed subst in config.status.
2012# Protect against being in an unquoted here document in config.status.
2013rm -f conftest.vals
2014cat > conftest.hdr <<\EOF
2015s/[\\&%]/\\&/g
2016s%[\\$`]%\\&%g
2017s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2018s%ac_d%ac_u%gp
2019s%ac_u%ac_e%gp
2020EOF
2021sed -n -f conftest.hdr confdefs.h > conftest.vals
2022rm -f conftest.hdr
2023
2024# This sed command replaces #undef with comments. This is necessary, for
2025# example, in the case of _POSIX_SOURCE, which is predefined and required
2026# on some systems where configure will not decide to define it.
2027cat >> conftest.vals <<\EOF
2028s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2029EOF
2030
2031# Break up conftest.vals because some shells have a limit on
2032# the size of here documents, and old seds have small limits too.
2033
2034rm -f conftest.tail
2035while :
2036do
2037 ac_lines=`grep -c . conftest.vals`
2038 # grep -c gives empty output for an empty file on some AIX systems.
2039 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2040 # Write a limited-size here document to conftest.frag.
2041 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2042 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2043 echo 'CEOF
2044 sed -f conftest.frag conftest.in > conftest.out
2045 rm -f conftest.in
2046 mv conftest.out conftest.in
2047' >> $CONFIG_STATUS
2048 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2049 rm -f conftest.vals
2050 mv conftest.tail conftest.vals
2051done
2052rm -f conftest.vals
2053
2054cat >> $CONFIG_STATUS <<\EOF
2055 rm -f conftest.frag conftest.h
2056 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2057 cat conftest.in >> conftest.h
2058 rm -f conftest.in
2059 if cmp -s $ac_file conftest.h 2>/dev/null; then
2060 echo "$ac_file is unchanged"
2061 rm -f conftest.h
2062 else
2063 # Remove last slash and all that follows it. Not all systems have dirname.
2064 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2065 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2066 # The file is in a subdirectory.
2067 test ! -d "$ac_dir" && mkdir "$ac_dir"
2068 fi
2069 rm -f $ac_file
2070 mv conftest.h $ac_file
2071 fi
2072fi; done
2073
2074EOF
2075cat >> $CONFIG_STATUS <<EOF
2076
2077EOF
2078cat >> $CONFIG_STATUS <<\EOF
2079
2080exit 0
2081EOF
2082chmod +x $CONFIG_STATUS
2083rm -fr confdefs* $ac_clean_files
2084test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2085
[1477]2086
Note: See TracBrowser for help on using the repository browser.