source: Sophya/trunk/ArchTOIPipe/configure@ 1754

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

IRIX : CC

  • Property svn:executable set to *
File size: 64.9 KB
Line 
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.
456ac_unique_file=kernel/toi.cc
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
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
555if test `uname` = Linux -a -f /usr/bin/g++; then
556 CXX=/usr/bin/g++
557fi
558
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
562echo "configure:563: checking for $ac_word" >&5
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
592echo "configure:593: checking for $ac_word" >&5
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
643echo "configure:644: checking for $ac_word" >&5
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
675echo "configure:676: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
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
686#line 687 "configure"
687#include "confdefs.h"
688
689main(){return(0);}
690EOF
691if { (eval echo configure:692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
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
717echo "configure:718: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
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
722echo "configure:723: checking whether we are using GNU C" >&5
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
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
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
750echo "configure:751: checking whether ${CC-cc} accepts -g" >&5
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
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
786echo "configure:787: checking for $ac_word" >&5
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
818echo "configure:819: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
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
829#line 830 "configure"
830#include "confdefs.h"
831
832int main(){return(0);}
833EOF
834if { (eval echo configure:835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
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
860echo "configure:861: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
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
865echo "configure:866: checking whether we are using GNU C++" >&5
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
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
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
893echo "configure:894: checking whether ${CXX-g++} accepts -g" >&5
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
924# Extract the first word of "ar", so it can be a program name with args.
925set dummy ar; ac_word=$2
926echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
927echo "configure:928: checking for $ac_word" >&5
928if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
929 echo $ac_n "(cached) $ac_c" 1>&6
930else
931 case "$AR" in
932 /*)
933 ac_cv_path_AR="$AR" # Let the user override the test with a path.
934 ;;
935 ?:/*)
936 ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
937 ;;
938 *)
939 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
940 ac_dummy="/usr/bin:$PATH"
941 for ac_dir in $ac_dummy; do
942 test -z "$ac_dir" && ac_dir=.
943 if test -f $ac_dir/$ac_word; then
944 ac_cv_path_AR="$ac_dir/$ac_word"
945 break
946 fi
947 done
948 IFS="$ac_save_ifs"
949 test -z "$ac_cv_path_AR" && ac_cv_path_AR="/usr/bin/ar"
950 ;;
951esac
952fi
953AR="$ac_cv_path_AR"
954if test -n "$AR"; then
955 echo "$ac_t""$AR" 1>&6
956else
957 echo "$ac_t""no" 1>&6
958fi
959
960# Extract the first word of "ranlib", so it can be a program name with args.
961set dummy ranlib; ac_word=$2
962echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
963echo "configure:964: checking for $ac_word" >&5
964if eval "test \"`echo '$''{'ac_cv_path_RANLIB'+set}'`\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
966else
967 case "$RANLIB" in
968 /*)
969 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
970 ;;
971 ?:/*)
972 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a dos path.
973 ;;
974 *)
975 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
976 ac_dummy="/usr/bin:$PATH"
977 for ac_dir in $ac_dummy; do
978 test -z "$ac_dir" && ac_dir=.
979 if test -f $ac_dir/$ac_word; then
980 ac_cv_path_RANLIB="$ac_dir/$ac_word"
981 break
982 fi
983 done
984 IFS="$ac_save_ifs"
985 test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="/usr/bin/ranlib"
986 ;;
987esac
988fi
989RANLIB="$ac_cv_path_RANLIB"
990if test -n "$RANLIB"; then
991 echo "$ac_t""$RANLIB" 1>&6
992else
993 echo "$ac_t""no" 1>&6
994fi
995
996ac_aux_dir=
997for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
998 if test -f $ac_dir/install-sh; then
999 ac_aux_dir=$ac_dir
1000 ac_install_sh="$ac_aux_dir/install-sh -c"
1001 break
1002 elif test -f $ac_dir/install.sh; then
1003 ac_aux_dir=$ac_dir
1004 ac_install_sh="$ac_aux_dir/install.sh -c"
1005 break
1006 fi
1007done
1008if test -z "$ac_aux_dir"; then
1009 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1010fi
1011ac_config_guess=$ac_aux_dir/config.guess
1012ac_config_sub=$ac_aux_dir/config.sub
1013ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1014
1015# Find a good install program. We prefer a C program (faster),
1016# so one script is as good as another. But avoid the broken or
1017# incompatible versions:
1018# SysV /etc/install, /usr/sbin/install
1019# SunOS /usr/etc/install
1020# IRIX /sbin/install
1021# AIX /bin/install
1022# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1023# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1024# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1025# ./install, which can be erroneously created by make from ./install.sh.
1026echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1027echo "configure:1028: checking for a BSD compatible install" >&5
1028if test -z "$INSTALL"; then
1029if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1030 echo $ac_n "(cached) $ac_c" 1>&6
1031else
1032 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1033 for ac_dir in $PATH; do
1034 # Account for people who put trailing slashes in PATH elements.
1035 case "$ac_dir/" in
1036 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1037 *)
1038 # OSF1 and SCO ODT 3.0 have their own names for install.
1039 # Don't use installbsd from OSF since it installs stuff as root
1040 # by default.
1041 for ac_prog in ginstall scoinst install; do
1042 if test -f $ac_dir/$ac_prog; then
1043 if test $ac_prog = install &&
1044 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1045 # AIX install. It has an incompatible calling convention.
1046 :
1047 else
1048 ac_cv_path_install="$ac_dir/$ac_prog -c"
1049 break 2
1050 fi
1051 fi
1052 done
1053 ;;
1054 esac
1055 done
1056 IFS="$ac_save_IFS"
1057
1058fi
1059 if test "${ac_cv_path_install+set}" = set; then
1060 INSTALL="$ac_cv_path_install"
1061 else
1062 # As a last resort, use the slow shell script. We don't cache a
1063 # path for INSTALL within a source directory, because that will
1064 # break other packages using the cache if that directory is
1065 # removed, or if the path is relative.
1066 INSTALL="$ac_install_sh"
1067 fi
1068fi
1069echo "$ac_t""$INSTALL" 1>&6
1070
1071# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1072# It thinks the first close brace ends the variable substitution.
1073test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1074
1075test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1076
1077test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1078
1079
1080if test $GCC = "yes"; then
1081 gcc=$CC
1082else
1083 gcc=gcc
1084fi
1085
1086
1087echo $ac_n "checking size of short""... $ac_c" 1>&6
1088echo "configure:1089: checking size of short" >&5
1089if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1090 echo $ac_n "(cached) $ac_c" 1>&6
1091else
1092 if test "$cross_compiling" = yes; then
1093 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1094else
1095 cat > conftest.$ac_ext <<EOF
1096#line 1097 "configure"
1097#include "confdefs.h"
1098#include <stdio.h>
1099main()
1100{
1101 FILE *f=fopen("conftestval", "w");
1102 if (!f) exit(1);
1103 fprintf(f, "%d\n", sizeof(short));
1104 exit(0);
1105}
1106EOF
1107if { (eval echo configure:1108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1108then
1109 ac_cv_sizeof_short=`cat conftestval`
1110else
1111 echo "configure: failed program was:" >&5
1112 cat conftest.$ac_ext >&5
1113 rm -fr conftest*
1114 ac_cv_sizeof_short=0
1115fi
1116rm -fr conftest*
1117fi
1118
1119fi
1120echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1121cat >> confdefs.h <<EOF
1122#define SIZEOF_SHORT $ac_cv_sizeof_short
1123EOF
1124
1125
1126echo $ac_n "checking size of int""... $ac_c" 1>&6
1127echo "configure:1128: checking size of int" >&5
1128if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1129 echo $ac_n "(cached) $ac_c" 1>&6
1130else
1131 if test "$cross_compiling" = yes; then
1132 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1133else
1134 cat > conftest.$ac_ext <<EOF
1135#line 1136 "configure"
1136#include "confdefs.h"
1137#include <stdio.h>
1138main()
1139{
1140 FILE *f=fopen("conftestval", "w");
1141 if (!f) exit(1);
1142 fprintf(f, "%d\n", sizeof(int));
1143 exit(0);
1144}
1145EOF
1146if { (eval echo configure:1147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1147then
1148 ac_cv_sizeof_int=`cat conftestval`
1149else
1150 echo "configure: failed program was:" >&5
1151 cat conftest.$ac_ext >&5
1152 rm -fr conftest*
1153 ac_cv_sizeof_int=0
1154fi
1155rm -fr conftest*
1156fi
1157
1158fi
1159echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1160cat >> confdefs.h <<EOF
1161#define SIZEOF_INT $ac_cv_sizeof_int
1162EOF
1163
1164
1165echo $ac_n "checking size of long""... $ac_c" 1>&6
1166echo "configure:1167: checking size of long" >&5
1167if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1168 echo $ac_n "(cached) $ac_c" 1>&6
1169else
1170 if test "$cross_compiling" = yes; then
1171 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1172else
1173 cat > conftest.$ac_ext <<EOF
1174#line 1175 "configure"
1175#include "confdefs.h"
1176#include <stdio.h>
1177main()
1178{
1179 FILE *f=fopen("conftestval", "w");
1180 if (!f) exit(1);
1181 fprintf(f, "%d\n", sizeof(long));
1182 exit(0);
1183}
1184EOF
1185if { (eval echo configure:1186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1186then
1187 ac_cv_sizeof_long=`cat conftestval`
1188else
1189 echo "configure: failed program was:" >&5
1190 cat conftest.$ac_ext >&5
1191 rm -fr conftest*
1192 ac_cv_sizeof_long=0
1193fi
1194rm -fr conftest*
1195fi
1196
1197fi
1198echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1199cat >> confdefs.h <<EOF
1200#define SIZEOF_LONG $ac_cv_sizeof_long
1201EOF
1202
1203
1204echo $ac_n "checking size of long long""... $ac_c" 1>&6
1205echo "configure:1206: checking size of long long" >&5
1206if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1207 echo $ac_n "(cached) $ac_c" 1>&6
1208else
1209 if test "$cross_compiling" = yes; then
1210 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1211else
1212 cat > conftest.$ac_ext <<EOF
1213#line 1214 "configure"
1214#include "confdefs.h"
1215#include <stdio.h>
1216main()
1217{
1218 FILE *f=fopen("conftestval", "w");
1219 if (!f) exit(1);
1220 fprintf(f, "%d\n", sizeof(long long));
1221 exit(0);
1222}
1223EOF
1224if { (eval echo configure:1225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1225then
1226 ac_cv_sizeof_long_long=`cat conftestval`
1227else
1228 echo "configure: failed program was:" >&5
1229 cat conftest.$ac_ext >&5
1230 rm -fr conftest*
1231 ac_cv_sizeof_long_long=0
1232fi
1233rm -fr conftest*
1234fi
1235
1236fi
1237echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
1238cat >> confdefs.h <<EOF
1239#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
1240EOF
1241
1242
1243echo $ac_n "checking size of float""... $ac_c" 1>&6
1244echo "configure:1245: checking size of float" >&5
1245if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
1246 echo $ac_n "(cached) $ac_c" 1>&6
1247else
1248 if test "$cross_compiling" = yes; then
1249 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1250else
1251 cat > conftest.$ac_ext <<EOF
1252#line 1253 "configure"
1253#include "confdefs.h"
1254#include <stdio.h>
1255main()
1256{
1257 FILE *f=fopen("conftestval", "w");
1258 if (!f) exit(1);
1259 fprintf(f, "%d\n", sizeof(float));
1260 exit(0);
1261}
1262EOF
1263if { (eval echo configure:1264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1264then
1265 ac_cv_sizeof_float=`cat conftestval`
1266else
1267 echo "configure: failed program was:" >&5
1268 cat conftest.$ac_ext >&5
1269 rm -fr conftest*
1270 ac_cv_sizeof_float=0
1271fi
1272rm -fr conftest*
1273fi
1274
1275fi
1276echo "$ac_t""$ac_cv_sizeof_float" 1>&6
1277cat >> confdefs.h <<EOF
1278#define SIZEOF_FLOAT $ac_cv_sizeof_float
1279EOF
1280
1281
1282echo $ac_n "checking size of double""... $ac_c" 1>&6
1283echo "configure:1284: checking size of double" >&5
1284if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
1285 echo $ac_n "(cached) $ac_c" 1>&6
1286else
1287 if test "$cross_compiling" = yes; then
1288 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1289else
1290 cat > conftest.$ac_ext <<EOF
1291#line 1292 "configure"
1292#include "confdefs.h"
1293#include <stdio.h>
1294main()
1295{
1296 FILE *f=fopen("conftestval", "w");
1297 if (!f) exit(1);
1298 fprintf(f, "%d\n", sizeof(double));
1299 exit(0);
1300}
1301EOF
1302if { (eval echo configure:1303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1303then
1304 ac_cv_sizeof_double=`cat conftestval`
1305else
1306 echo "configure: failed program was:" >&5
1307 cat conftest.$ac_ext >&5
1308 rm -fr conftest*
1309 ac_cv_sizeof_double=0
1310fi
1311rm -fr conftest*
1312fi
1313
1314fi
1315echo "$ac_t""$ac_cv_sizeof_double" 1>&6
1316cat >> confdefs.h <<EOF
1317#define SIZEOF_DOUBLE $ac_cv_sizeof_double
1318EOF
1319
1320
1321echo $ac_n "checking size of long double""... $ac_c" 1>&6
1322echo "configure:1323: checking size of long double" >&5
1323if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1325else
1326 if test "$cross_compiling" = yes; then
1327 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1328else
1329 cat > conftest.$ac_ext <<EOF
1330#line 1331 "configure"
1331#include "confdefs.h"
1332#include <stdio.h>
1333main()
1334{
1335 FILE *f=fopen("conftestval", "w");
1336 if (!f) exit(1);
1337 fprintf(f, "%d\n", sizeof(long double));
1338 exit(0);
1339}
1340EOF
1341if { (eval echo configure:1342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1342then
1343 ac_cv_sizeof_long_double=`cat conftestval`
1344else
1345 echo "configure: failed program was:" >&5
1346 cat conftest.$ac_ext >&5
1347 rm -fr conftest*
1348 ac_cv_sizeof_long_double=0
1349fi
1350rm -fr conftest*
1351fi
1352
1353fi
1354echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
1355cat >> confdefs.h <<EOF
1356#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
1357EOF
1358
1359
1360
1361
1362echo $ac_n "checking "for cfitsio lib"""... $ac_c" 1>&6
1363echo "configure:1364: checking "for cfitsio lib"" >&5
1364MACHDIR=`uname`-$CXX
1365if test -f $ARCHBASEREP/$MACHDIR/Libs/libcfitsio.a; then
1366 cfitslibdir='-L$(ARCHBASEREP)/$(MACHDIR)/Libs'
1367elif test -f $EXTLIBDIR/$MACHDIR/Libs/libcfitsio.a; then
1368 cfitslibdir='-L$(EXTLIBDIR)/$(MACHDIR)/Libs'
1369elif test -f $CFITSIOLIBDIR/$MACHDIR/Libs/libcfitsio.a; then
1370 cfitslibdir='-L$(CFITSIOLIBDIR)/$(MACHDIR)/Libs'
1371elif test -f $CFITSIOLIBDIR/$MACHDIR/libcfitsio.a; then
1372 cfitslibdir='-L$(CFITSIOLIBDIR)/$(MACHDIR)'
1373elif test -f $CFITSIOLIBDIR/`uname`/lib/libcfitsio.a; then
1374 cfitslibdir='-L$(CFITSIOLIBDIR)/'`uname`/lib
1375elif test -f $CFITSIOLIBDIR/`uname`/libcfitsio.a; then
1376 cfitslibdir='-L$(CFITSIOLIBDIR)/'`uname`
1377elif test -f $CFITSIOLIBDIR/libcfitsio.a; then
1378 cfitslibdir='-L$(CFITSIOLIBDIR)'
1379elif test -f $CFITSIODIR/libcfitsio.a; then
1380 cfitslibdir='-L$(CFITSIODIR)'
1381elif test -f /usr/local/lib/libcfitsio.a; then
1382 cfitslibdir=""
1383else
1384 { echo "configure: error: "Cannot find cfitsio library"" 1>&2; exit 1; }
1385fi
1386echo "$ac_t""$cfitslibdir" 1>&6
1387
1388
1389echo $ac_n "checking "for cfitsio includes"""... $ac_c" 1>&6
1390echo "configure:1391: checking "for cfitsio includes"" >&5
1391if test -f $CFITSIODIR/fitsio.h; then
1392 cfitsincdir='-I$(CFITSIODIR)'
1393elif test -f $EXTLIBDIR/Include/FitsIO/fitsio.h; then
1394 cfitsincdir='-I$(EXTLIBDIR)/Include/FitsIO'
1395elif test -f /usr/local/include/fitsio.h; then
1396 cfitsincdir=""
1397else
1398 { echo "configure: error: "Cannot find cfitsio include fitsio.h"" 1>&2; exit 1; }
1399fi
1400echo "$ac_t""$cfitsincdir" 1>&6
1401
1402
1403echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
1404echo "configure:1405: checking for sin in -lm" >&5
1405ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
1406if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1407 echo $ac_n "(cached) $ac_c" 1>&6
1408else
1409 ac_save_LIBS="$LIBS"
1410LIBS="-lm $LIBS"
1411cat > conftest.$ac_ext <<EOF
1412#line 1413 "configure"
1413#include "confdefs.h"
1414/* Override any gcc2 internal prototype to avoid an error. */
1415/* We use char because int might match the return type of a gcc2
1416 builtin and then its argument prototype would still apply. */
1417char sin();
1418
1419int main() {
1420sin()
1421; return 0; }
1422EOF
1423if { (eval echo configure:1424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1424 rm -rf conftest*
1425 eval "ac_cv_lib_$ac_lib_var=yes"
1426else
1427 echo "configure: failed program was:" >&5
1428 cat conftest.$ac_ext >&5
1429 rm -rf conftest*
1430 eval "ac_cv_lib_$ac_lib_var=no"
1431fi
1432rm -f conftest*
1433LIBS="$ac_save_LIBS"
1434
1435fi
1436if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1437 echo "$ac_t""yes" 1>&6
1438 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1439 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1440 cat >> confdefs.h <<EOF
1441#define $ac_tr_lib 1
1442EOF
1443
1444 LIBS="-lm $LIBS"
1445
1446else
1447 echo "$ac_t""no" 1>&6
1448fi
1449
1450echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
1451echo "configure:1452: checking for pthread_create in -lpthread" >&5
1452ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
1453if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1454 echo $ac_n "(cached) $ac_c" 1>&6
1455else
1456 ac_save_LIBS="$LIBS"
1457LIBS="-lpthread $LIBS"
1458cat > conftest.$ac_ext <<EOF
1459#line 1460 "configure"
1460#include "confdefs.h"
1461/* Override any gcc2 internal prototype to avoid an error. */
1462/* We use char because int might match the return type of a gcc2
1463 builtin and then its argument prototype would still apply. */
1464char pthread_create();
1465
1466int main() {
1467pthread_create()
1468; return 0; }
1469EOF
1470if { (eval echo configure:1471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1471 rm -rf conftest*
1472 eval "ac_cv_lib_$ac_lib_var=yes"
1473else
1474 echo "configure: failed program was:" >&5
1475 cat conftest.$ac_ext >&5
1476 rm -rf conftest*
1477 eval "ac_cv_lib_$ac_lib_var=no"
1478fi
1479rm -f conftest*
1480LIBS="$ac_save_LIBS"
1481
1482fi
1483if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1484 echo "$ac_t""yes" 1>&6
1485 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1486 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1487 cat >> confdefs.h <<EOF
1488#define $ac_tr_lib 1
1489EOF
1490
1491 LIBS="-lpthread $LIBS"
1492
1493else
1494 echo "$ac_t""no" 1>&6
1495fi
1496
1497echo $ac_n "checking for scopy_ in -lblas""... $ac_c" 1>&6
1498echo "configure:1499: checking for scopy_ in -lblas" >&5
1499ac_lib_var=`echo blas'_'scopy_ | sed 'y%./+-%__p_%'`
1500if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1501 echo $ac_n "(cached) $ac_c" 1>&6
1502else
1503 ac_save_LIBS="$LIBS"
1504LIBS="-lblas $LIBS"
1505cat > conftest.$ac_ext <<EOF
1506#line 1507 "configure"
1507#include "confdefs.h"
1508/* Override any gcc2 internal prototype to avoid an error. */
1509/* We use char because int might match the return type of a gcc2
1510 builtin and then its argument prototype would still apply. */
1511char scopy_();
1512
1513int main() {
1514scopy_()
1515; return 0; }
1516EOF
1517if { (eval echo configure:1518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1518 rm -rf conftest*
1519 eval "ac_cv_lib_$ac_lib_var=yes"
1520else
1521 echo "configure: failed program was:" >&5
1522 cat conftest.$ac_ext >&5
1523 rm -rf conftest*
1524 eval "ac_cv_lib_$ac_lib_var=no"
1525fi
1526rm -f conftest*
1527LIBS="$ac_save_LIBS"
1528
1529fi
1530if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1531 echo "$ac_t""yes" 1>&6
1532 ac_tr_lib=HAVE_LIB`echo blas | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1533 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1534 cat >> confdefs.h <<EOF
1535#define $ac_tr_lib 1
1536EOF
1537
1538 LIBS="-lblas $LIBS"
1539
1540else
1541 echo "$ac_t""no" 1>&6
1542fi
1543
1544echo $ac_n "checking for s_copy in -lg2c""... $ac_c" 1>&6
1545echo "configure:1546: checking for s_copy in -lg2c" >&5
1546ac_lib_var=`echo g2c'_'s_copy | sed 'y%./+-%__p_%'`
1547if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1548 echo $ac_n "(cached) $ac_c" 1>&6
1549else
1550 ac_save_LIBS="$LIBS"
1551LIBS="-lg2c $LIBS"
1552cat > conftest.$ac_ext <<EOF
1553#line 1554 "configure"
1554#include "confdefs.h"
1555/* Override any gcc2 internal prototype to avoid an error. */
1556/* We use char because int might match the return type of a gcc2
1557 builtin and then its argument prototype would still apply. */
1558char s_copy();
1559
1560int main() {
1561s_copy()
1562; return 0; }
1563EOF
1564if { (eval echo configure:1565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1565 rm -rf conftest*
1566 eval "ac_cv_lib_$ac_lib_var=yes"
1567else
1568 echo "configure: failed program was:" >&5
1569 cat conftest.$ac_ext >&5
1570 rm -rf conftest*
1571 eval "ac_cv_lib_$ac_lib_var=no"
1572fi
1573rm -f conftest*
1574LIBS="$ac_save_LIBS"
1575
1576fi
1577if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1578 echo "$ac_t""yes" 1>&6
1579 ac_tr_lib=HAVE_LIB`echo g2c | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1580 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1581 cat >> confdefs.h <<EOF
1582#define $ac_tr_lib 1
1583EOF
1584
1585 LIBS="-lg2c $LIBS"
1586
1587else
1588 echo "$ac_t""no" 1>&6
1589fi
1590
1591
1592echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1593echo "configure:1594: checking how to run the C preprocessor" >&5
1594# On Suns, sometimes $CPP names a directory.
1595if test -n "$CPP" && test -d "$CPP"; then
1596 CPP=
1597fi
1598if test -z "$CPP"; then
1599if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1600 echo $ac_n "(cached) $ac_c" 1>&6
1601else
1602 # This must be in double quotes, not single quotes, because CPP may get
1603 # substituted into the Makefile and "${CC-cc}" will confuse make.
1604 CPP="${CC-cc} -E"
1605 # On the NeXT, cc -E runs the code through the compiler's parser,
1606 # not just through cpp.
1607 cat > conftest.$ac_ext <<EOF
1608#line 1609 "configure"
1609#include "confdefs.h"
1610#include <assert.h>
1611Syntax Error
1612EOF
1613ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1614{ (eval echo configure:1615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1615ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1616if test -z "$ac_err"; then
1617 :
1618else
1619 echo "$ac_err" >&5
1620 echo "configure: failed program was:" >&5
1621 cat conftest.$ac_ext >&5
1622 rm -rf conftest*
1623 CPP="${CC-cc} -E -traditional-cpp"
1624 cat > conftest.$ac_ext <<EOF
1625#line 1626 "configure"
1626#include "confdefs.h"
1627#include <assert.h>
1628Syntax Error
1629EOF
1630ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1631{ (eval echo configure:1632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1632ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1633if test -z "$ac_err"; then
1634 :
1635else
1636 echo "$ac_err" >&5
1637 echo "configure: failed program was:" >&5
1638 cat conftest.$ac_ext >&5
1639 rm -rf conftest*
1640 CPP="${CC-cc} -nologo -E"
1641 cat > conftest.$ac_ext <<EOF
1642#line 1643 "configure"
1643#include "confdefs.h"
1644#include <assert.h>
1645Syntax Error
1646EOF
1647ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1648{ (eval echo configure:1649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1649ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1650if test -z "$ac_err"; then
1651 :
1652else
1653 echo "$ac_err" >&5
1654 echo "configure: failed program was:" >&5
1655 cat conftest.$ac_ext >&5
1656 rm -rf conftest*
1657 CPP=/lib/cpp
1658fi
1659rm -f conftest*
1660fi
1661rm -f conftest*
1662fi
1663rm -f conftest*
1664 ac_cv_prog_CPP="$CPP"
1665fi
1666 CPP="$ac_cv_prog_CPP"
1667else
1668 ac_cv_prog_CPP="$CPP"
1669fi
1670echo "$ac_t""$CPP" 1>&6
1671
1672echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1673echo "configure:1674: checking for ANSI C header files" >&5
1674if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1676else
1677 cat > conftest.$ac_ext <<EOF
1678#line 1679 "configure"
1679#include "confdefs.h"
1680#include <stdlib.h>
1681#include <stdarg.h>
1682#include <string.h>
1683#include <float.h>
1684EOF
1685ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1686{ (eval echo configure:1687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1687ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1688if test -z "$ac_err"; then
1689 rm -rf conftest*
1690 ac_cv_header_stdc=yes
1691else
1692 echo "$ac_err" >&5
1693 echo "configure: failed program was:" >&5
1694 cat conftest.$ac_ext >&5
1695 rm -rf conftest*
1696 ac_cv_header_stdc=no
1697fi
1698rm -f conftest*
1699
1700if test $ac_cv_header_stdc = yes; then
1701 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1702cat > conftest.$ac_ext <<EOF
1703#line 1704 "configure"
1704#include "confdefs.h"
1705#include <string.h>
1706EOF
1707if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1708 egrep "memchr" >/dev/null 2>&1; then
1709 :
1710else
1711 rm -rf conftest*
1712 ac_cv_header_stdc=no
1713fi
1714rm -f conftest*
1715
1716fi
1717
1718if test $ac_cv_header_stdc = yes; then
1719 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1720cat > conftest.$ac_ext <<EOF
1721#line 1722 "configure"
1722#include "confdefs.h"
1723#include <stdlib.h>
1724EOF
1725if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1726 egrep "free" >/dev/null 2>&1; then
1727 :
1728else
1729 rm -rf conftest*
1730 ac_cv_header_stdc=no
1731fi
1732rm -f conftest*
1733
1734fi
1735
1736if test $ac_cv_header_stdc = yes; then
1737 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1738if test "$cross_compiling" = yes; then
1739 :
1740else
1741 cat > conftest.$ac_ext <<EOF
1742#line 1743 "configure"
1743#include "confdefs.h"
1744#include <ctype.h>
1745#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1746#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1747#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1748int main () { int i; for (i = 0; i < 256; i++)
1749if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1750exit (0); }
1751
1752EOF
1753if { (eval echo configure:1754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1754then
1755 :
1756else
1757 echo "configure: failed program was:" >&5
1758 cat conftest.$ac_ext >&5
1759 rm -fr conftest*
1760 ac_cv_header_stdc=no
1761fi
1762rm -fr conftest*
1763fi
1764
1765fi
1766fi
1767
1768echo "$ac_t""$ac_cv_header_stdc" 1>&6
1769if test $ac_cv_header_stdc = yes; then
1770 cat >> confdefs.h <<\EOF
1771#define STDC_HEADERS 1
1772EOF
1773
1774fi
1775
1776for ac_hdr in values.h stdint.h
1777do
1778ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1779echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1780echo "configure:1781: checking for $ac_hdr" >&5
1781if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1782 echo $ac_n "(cached) $ac_c" 1>&6
1783else
1784 cat > conftest.$ac_ext <<EOF
1785#line 1786 "configure"
1786#include "confdefs.h"
1787#include <$ac_hdr>
1788EOF
1789ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1790{ (eval echo configure:1791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1791ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1792if test -z "$ac_err"; then
1793 rm -rf conftest*
1794 eval "ac_cv_header_$ac_safe=yes"
1795else
1796 echo "$ac_err" >&5
1797 echo "configure: failed program was:" >&5
1798 cat conftest.$ac_ext >&5
1799 rm -rf conftest*
1800 eval "ac_cv_header_$ac_safe=no"
1801fi
1802rm -f conftest*
1803fi
1804if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1805 echo "$ac_t""yes" 1>&6
1806 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1807 cat >> confdefs.h <<EOF
1808#define $ac_tr_hdr 1
1809EOF
1810
1811else
1812 echo "$ac_t""no" 1>&6
1813fi
1814done
1815
1816
1817outfiles="Makefile kernel/Makefile processors/Makefile pipes/Makefile"
1818if [ $use_sophya = 1 ]; then
1819 outfiles="$outfiles sophya/Makefile"
1820fi
1821
1822trap '' 1 2 15
1823cat > confcache <<\EOF
1824# This file is a shell script that caches the results of configure
1825# tests run on this system so they can be shared between configure
1826# scripts and configure runs. It is not useful on other systems.
1827# If it contains results you don't want to keep, you may remove or edit it.
1828#
1829# By default, configure uses ./config.cache as the cache file,
1830# creating it if it does not exist already. You can give configure
1831# the --cache-file=FILE option to use a different cache file; that is
1832# what configure does when it calls configure scripts in
1833# subdirectories, so they share the cache.
1834# Giving --cache-file=/dev/null disables caching, for debugging configure.
1835# config.status only pays attention to the cache file if you give it the
1836# --recheck option to rerun configure.
1837#
1838EOF
1839# The following way of writing the cache mishandles newlines in values,
1840# but we know of no workaround that is simple, portable, and efficient.
1841# So, don't put newlines in cache variables' values.
1842# Ultrix sh set writes to stderr and can't be redirected directly,
1843# and sets the high bit in the cache file unless we assign to the vars.
1844(set) 2>&1 |
1845 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1846 *ac_space=\ *)
1847 # `set' does not quote correctly, so add quotes (double-quote substitution
1848 # turns \\\\ into \\, and sed turns \\ into \).
1849 sed -n \
1850 -e "s/'/'\\\\''/g" \
1851 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1852 ;;
1853 *)
1854 # `set' quotes correctly as required by POSIX, so do not add quotes.
1855 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1856 ;;
1857 esac >> confcache
1858if cmp -s $cache_file confcache; then
1859 :
1860else
1861 if test -w $cache_file; then
1862 echo "updating cache $cache_file"
1863 cat confcache > $cache_file
1864 else
1865 echo "not updating unwritable cache $cache_file"
1866 fi
1867fi
1868rm -f confcache
1869
1870trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1871
1872test "x$prefix" = xNONE && prefix=$ac_default_prefix
1873# Let make expand exec_prefix.
1874test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1875
1876# Any assignment to VPATH causes Sun make to only execute
1877# the first set of double-colon rules, so remove it if not needed.
1878# If there is a colon in the path, we need to keep it.
1879if test "x$srcdir" = x.; then
1880 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1881fi
1882
1883trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1884
1885DEFS=-DHAVE_CONFIG_H
1886
1887# Without the "./", some shells look in PATH for config.status.
1888: ${CONFIG_STATUS=./config.status}
1889
1890echo creating $CONFIG_STATUS
1891rm -f $CONFIG_STATUS
1892cat > $CONFIG_STATUS <<EOF
1893#! /bin/sh
1894# Generated automatically by configure.
1895# Run this file to recreate the current configuration.
1896# This directory was configured as follows,
1897# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1898#
1899# $0 $ac_configure_args
1900#
1901# Compiler output produced by configure, useful for debugging
1902# configure, is in ./config.log if it exists.
1903
1904ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1905for ac_option
1906do
1907 case "\$ac_option" in
1908 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1909 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1910 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1911 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1912 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1913 exit 0 ;;
1914 -help | --help | --hel | --he | --h)
1915 echo "\$ac_cs_usage"; exit 0 ;;
1916 *) echo "\$ac_cs_usage"; exit 1 ;;
1917 esac
1918done
1919
1920ac_given_srcdir=$srcdir
1921ac_given_INSTALL="$INSTALL"
1922
1923trap 'rm -fr `echo "$outfiles conf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1924EOF
1925cat >> $CONFIG_STATUS <<EOF
1926
1927# Protect against being on the right side of a sed subst in config.status.
1928sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1929 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1930$ac_vpsub
1931$extrasub
1932s%@SHELL@%$SHELL%g
1933s%@CFLAGS@%$CFLAGS%g
1934s%@CPPFLAGS@%$CPPFLAGS%g
1935s%@CXXFLAGS@%$CXXFLAGS%g
1936s%@FFLAGS@%$FFLAGS%g
1937s%@DEFS@%$DEFS%g
1938s%@LDFLAGS@%$LDFLAGS%g
1939s%@LIBS@%$LIBS%g
1940s%@exec_prefix@%$exec_prefix%g
1941s%@prefix@%$prefix%g
1942s%@program_transform_name@%$program_transform_name%g
1943s%@bindir@%$bindir%g
1944s%@sbindir@%$sbindir%g
1945s%@libexecdir@%$libexecdir%g
1946s%@datadir@%$datadir%g
1947s%@sysconfdir@%$sysconfdir%g
1948s%@sharedstatedir@%$sharedstatedir%g
1949s%@localstatedir@%$localstatedir%g
1950s%@libdir@%$libdir%g
1951s%@includedir@%$includedir%g
1952s%@oldincludedir@%$oldincludedir%g
1953s%@infodir@%$infodir%g
1954s%@mandir@%$mandir%g
1955s%@use_sophya@%$use_sophya%g
1956s%@CC@%$CC%g
1957s%@CXX@%$CXX%g
1958s%@AR@%$AR%g
1959s%@RANLIB@%$RANLIB%g
1960s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1961s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1962s%@INSTALL_DATA@%$INSTALL_DATA%g
1963s%@gcc@%$gcc%g
1964s%@cfitslibdir@%$cfitslibdir%g
1965s%@cfitsincdir@%$cfitsincdir%g
1966s%@CPP@%$CPP%g
1967
1968CEOF
1969EOF
1970
1971cat >> $CONFIG_STATUS <<\EOF
1972
1973# Split the substitutions into bite-sized pieces for seds with
1974# small command number limits, like on Digital OSF/1 and HP-UX.
1975ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1976ac_file=1 # Number of current file.
1977ac_beg=1 # First line for current file.
1978ac_end=$ac_max_sed_cmds # Line after last line for current file.
1979ac_more_lines=:
1980ac_sed_cmds=""
1981while $ac_more_lines; do
1982 if test $ac_beg -gt 1; then
1983 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1984 else
1985 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1986 fi
1987 if test ! -s conftest.s$ac_file; then
1988 ac_more_lines=false
1989 rm -f conftest.s$ac_file
1990 else
1991 if test -z "$ac_sed_cmds"; then
1992 ac_sed_cmds="sed -f conftest.s$ac_file"
1993 else
1994 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1995 fi
1996 ac_file=`expr $ac_file + 1`
1997 ac_beg=$ac_end
1998 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1999 fi
2000done
2001if test -z "$ac_sed_cmds"; then
2002 ac_sed_cmds=cat
2003fi
2004EOF
2005
2006cat >> $CONFIG_STATUS <<EOF
2007
2008CONFIG_FILES=\${CONFIG_FILES-"$outfiles"}
2009EOF
2010cat >> $CONFIG_STATUS <<\EOF
2011for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2012 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2013 case "$ac_file" in
2014 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2015 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2016 *) ac_file_in="${ac_file}.in" ;;
2017 esac
2018
2019 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2020
2021 # Remove last slash and all that follows it. Not all systems have dirname.
2022 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2023 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2024 # The file is in a subdirectory.
2025 test ! -d "$ac_dir" && mkdir "$ac_dir"
2026 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2027 # A "../" for each directory in $ac_dir_suffix.
2028 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2029 else
2030 ac_dir_suffix= ac_dots=
2031 fi
2032
2033 case "$ac_given_srcdir" in
2034 .) srcdir=.
2035 if test -z "$ac_dots"; then top_srcdir=.
2036 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2037 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2038 *) # Relative path.
2039 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2040 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2041 esac
2042
2043 case "$ac_given_INSTALL" in
2044 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2045 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2046 esac
2047
2048 echo creating "$ac_file"
2049 rm -f "$ac_file"
2050 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2051 case "$ac_file" in
2052 *Makefile*) ac_comsub="1i\\
2053# $configure_input" ;;
2054 *) ac_comsub= ;;
2055 esac
2056
2057 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2058 sed -e "$ac_comsub
2059s%@configure_input@%$configure_input%g
2060s%@srcdir@%$srcdir%g
2061s%@top_srcdir@%$top_srcdir%g
2062s%@INSTALL@%$INSTALL%g
2063" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2064fi; done
2065rm -f conftest.s*
2066
2067# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2068# NAME is the cpp macro being defined and VALUE is the value it is being given.
2069#
2070# ac_d sets the value in "#define NAME VALUE" lines.
2071ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2072ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2073ac_dC='\3'
2074ac_dD='%g'
2075# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2076ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2077ac_uB='\([ ]\)%\1#\2define\3'
2078ac_uC=' '
2079ac_uD='\4%g'
2080# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2081ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2082ac_eB='$%\1#\2define\3'
2083ac_eC=' '
2084ac_eD='%g'
2085
2086if test "${CONFIG_HEADERS+set}" != set; then
2087EOF
2088cat >> $CONFIG_STATUS <<EOF
2089 CONFIG_HEADERS="conf.h"
2090EOF
2091cat >> $CONFIG_STATUS <<\EOF
2092fi
2093for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2094 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2095 case "$ac_file" in
2096 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2097 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2098 *) ac_file_in="${ac_file}.in" ;;
2099 esac
2100
2101 echo creating $ac_file
2102
2103 rm -f conftest.frag conftest.in conftest.out
2104 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2105 cat $ac_file_inputs > conftest.in
2106
2107EOF
2108
2109# Transform confdefs.h into a sed script conftest.vals that substitutes
2110# the proper values into config.h.in to produce config.h. And first:
2111# Protect against being on the right side of a sed subst in config.status.
2112# Protect against being in an unquoted here document in config.status.
2113rm -f conftest.vals
2114cat > conftest.hdr <<\EOF
2115s/[\\&%]/\\&/g
2116s%[\\$`]%\\&%g
2117s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2118s%ac_d%ac_u%gp
2119s%ac_u%ac_e%gp
2120EOF
2121sed -n -f conftest.hdr confdefs.h > conftest.vals
2122rm -f conftest.hdr
2123
2124# This sed command replaces #undef with comments. This is necessary, for
2125# example, in the case of _POSIX_SOURCE, which is predefined and required
2126# on some systems where configure will not decide to define it.
2127cat >> conftest.vals <<\EOF
2128s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2129EOF
2130
2131# Break up conftest.vals because some shells have a limit on
2132# the size of here documents, and old seds have small limits too.
2133
2134rm -f conftest.tail
2135while :
2136do
2137 ac_lines=`grep -c . conftest.vals`
2138 # grep -c gives empty output for an empty file on some AIX systems.
2139 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2140 # Write a limited-size here document to conftest.frag.
2141 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2142 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2143 echo 'CEOF
2144 sed -f conftest.frag conftest.in > conftest.out
2145 rm -f conftest.in
2146 mv conftest.out conftest.in
2147' >> $CONFIG_STATUS
2148 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2149 rm -f conftest.vals
2150 mv conftest.tail conftest.vals
2151done
2152rm -f conftest.vals
2153
2154cat >> $CONFIG_STATUS <<\EOF
2155 rm -f conftest.frag conftest.h
2156 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2157 cat conftest.in >> conftest.h
2158 rm -f conftest.in
2159 if cmp -s $ac_file conftest.h 2>/dev/null; then
2160 echo "$ac_file is unchanged"
2161 rm -f conftest.h
2162 else
2163 # Remove last slash and all that follows it. Not all systems have dirname.
2164 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2165 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2166 # The file is in a subdirectory.
2167 test ! -d "$ac_dir" && mkdir "$ac_dir"
2168 fi
2169 rm -f $ac_file
2170 mv conftest.h $ac_file
2171 fi
2172fi; done
2173
2174EOF
2175cat >> $CONFIG_STATUS <<EOF
2176
2177EOF
2178cat >> $CONFIG_STATUS <<\EOF
2179
2180exit 0
2181EOF
2182chmod +x $CONFIG_STATUS
2183rm -fr confdefs* $ac_clean_files
2184test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2185
2186
Note: See TracBrowser for help on using the repository browser.