source: Sophya/trunk/ArchTOIPipe/configure@ 3464

Last change on this file since 3464 was 2398, checked in by aubourg, 22 years ago

pio avec JMD a cote!

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