Mac binaries
[jabaws.git] / website / archive / binaries / mac / src / disembl / Tisean_3.0.1 / configure
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:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=${HOME}
15
16 # Initialize some variables set by options.
17 # The variables have the same names as the options, with
18 # dashes changed to underlines.
19 build=NONE
20 cache_file=./config.cache
21 exec_prefix=NONE
22 host=NONE
23 no_create=
24 nonopt=NONE
25 no_recursion=
26 prefix=NONE
27 program_prefix=NONE
28 program_suffix=NONE
29 program_transform_name=s,x,x,
30 silent=
31 site=
32 srcdir=
33 target=NONE
34 verbose=
35 x_includes=NONE
36 x_libraries=NONE
37 bindir='bin'
38 sbindir='${exec_prefix}/sbin'
39 libexecdir='${exec_prefix}/libexec'
40 datadir='${prefix}/share'
41 sysconfdir='${prefix}/etc'
42 sharedstatedir='${prefix}/com'
43 localstatedir='${prefix}/var'
44 libdir='${exec_prefix}/lib'
45 includedir='${prefix}/include'
46 oldincludedir='/usr/include'
47 infodir='${prefix}/info'
48 mandir='${prefix}/man'
49
50 # Initialize some other variables.
51 subdirs=
52 MFLAGS= MAKEFLAGS=
53 SHELL=${CONFIG_SHELL-/bin/sh}
54 # Maximum number of lines to put in a shell here document.
55 ac_max_here_lines=12
56
57 ac_prev=
58 for ac_option
59 do
60
61   # If the previous option needs an argument, assign it.
62   if test -n "$ac_prev"; then
63     eval "$ac_prev=\$ac_option"
64     ac_prev=
65     continue
66   fi
67
68   case "$ac_option" in
69   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
70   *) ac_optarg= ;;
71   esac
72
73   # Accept the important Cygnus configure options, so we can diagnose typos.
74
75   case "$ac_option" in
76
77   -bindir | --bindir | --bindi | --bind | --bin | --bi)
78     ac_prev=bindir ;;
79   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
80     bindir="$ac_optarg" ;;
81
82   -build | --build | --buil | --bui | --bu)
83     ac_prev=build ;;
84   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
85     build="$ac_optarg" ;;
86
87   -cache-file | --cache-file | --cache-fil | --cache-fi \
88   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
89     ac_prev=cache_file ;;
90   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
91   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
92     cache_file="$ac_optarg" ;;
93
94   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
95     ac_prev=datadir ;;
96   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
97   | --da=*)
98     datadir="$ac_optarg" ;;
99
100   -disable-* | --disable-*)
101     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
102     # Reject names that are not valid shell variable names.
103     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
104       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
105     fi
106     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
107     eval "enable_${ac_feature}=no" ;;
108
109   -enable-* | --enable-*)
110     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
111     # Reject names that are not valid shell variable names.
112     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
113       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114     fi
115     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
116     case "$ac_option" in
117       *=*) ;;
118       *) ac_optarg=yes ;;
119     esac
120     eval "enable_${ac_feature}='$ac_optarg'" ;;
121
122   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
123   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
124   | --exec | --exe | --ex)
125     ac_prev=exec_prefix ;;
126   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
127   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
128   | --exec=* | --exe=* | --ex=*)
129     exec_prefix="$ac_optarg" ;;
130
131   -gas | --gas | --ga | --g)
132     # Obsolete; use --with-gas.
133     with_gas=yes ;;
134
135   -help | --help | --hel | --he)
136     # Omit some internal or obsolete options to make the list less imposing.
137     # This message is too long to be a string in the A/UX 3.1 sh.
138     cat << EOF
139 Usage: configure [options] [host]
140 Options: [defaults in brackets after descriptions]
141 Configuration:
142   --cache-file=FILE       cache test results in FILE
143   --help                  print this message
144   --no-create             do not create output files
145   --quiet, --silent       do not print \`checking...' messages
146   --version               print the version of autoconf that created configure
147 Directory and file names:
148   --prefix=PREFIX         install architecture-independent files in PREFIX
149                           [$ac_default_prefix]
150   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
151                           [same as prefix]
152   --bindir=DIR            user executables in DIR [EPREFIX/bin]
153   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
154   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
155   --datadir=DIR           read-only architecture-independent data in DIR
156                           [PREFIX/share]
157   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
158   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
159                           [PREFIX/com]
160   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
161   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
162   --includedir=DIR        C header files in DIR [PREFIX/include]
163   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
164   --infodir=DIR           info documentation in DIR [PREFIX/info]
165   --mandir=DIR            man documentation in DIR [PREFIX/man]
166   --srcdir=DIR            find the sources in DIR [configure dir or ..]
167   --program-prefix=PREFIX prepend PREFIX to installed program names
168   --program-suffix=SUFFIX append SUFFIX to installed program names
169   --program-transform-name=PROGRAM
170                           run sed PROGRAM on installed program names
171 EOF
172     cat << EOF
173 Host type:
174   --build=BUILD           configure for building on BUILD [BUILD=HOST]
175   --host=HOST             configure for HOST [guessed]
176   --target=TARGET         configure for TARGET [TARGET=HOST]
177 Features and packages:
178   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
179   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
180   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
181   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
182   --x-includes=DIR        X include files are in DIR
183   --x-libraries=DIR       X library files are in DIR
184 EOF
185     if test -n "$ac_help"; then
186       echo "--enable and --with options recognized:$ac_help"
187     fi
188     exit 0 ;;
189
190   -host | --host | --hos | --ho)
191     ac_prev=host ;;
192   -host=* | --host=* | --hos=* | --ho=*)
193     host="$ac_optarg" ;;
194
195   -includedir | --includedir | --includedi | --included | --include \
196   | --includ | --inclu | --incl | --inc)
197     ac_prev=includedir ;;
198   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
199   | --includ=* | --inclu=* | --incl=* | --inc=*)
200     includedir="$ac_optarg" ;;
201
202   -infodir | --infodir | --infodi | --infod | --info | --inf)
203     ac_prev=infodir ;;
204   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
205     infodir="$ac_optarg" ;;
206
207   -libdir | --libdir | --libdi | --libd)
208     ac_prev=libdir ;;
209   -libdir=* | --libdir=* | --libdi=* | --libd=*)
210     libdir="$ac_optarg" ;;
211
212   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
213   | --libexe | --libex | --libe)
214     ac_prev=libexecdir ;;
215   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
216   | --libexe=* | --libex=* | --libe=*)
217     libexecdir="$ac_optarg" ;;
218
219   -localstatedir | --localstatedir | --localstatedi | --localstated \
220   | --localstate | --localstat | --localsta | --localst \
221   | --locals | --local | --loca | --loc | --lo)
222     ac_prev=localstatedir ;;
223   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
224   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
225   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
226     localstatedir="$ac_optarg" ;;
227
228   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
229     ac_prev=mandir ;;
230   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
231     mandir="$ac_optarg" ;;
232
233   -nfp | --nfp | --nf)
234     # Obsolete; use --without-fp.
235     with_fp=no ;;
236
237   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
238   | --no-cr | --no-c)
239     no_create=yes ;;
240
241   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
242   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
243     no_recursion=yes ;;
244
245   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
246   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
247   | --oldin | --oldi | --old | --ol | --o)
248     ac_prev=oldincludedir ;;
249   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
250   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
251   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
252     oldincludedir="$ac_optarg" ;;
253
254   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
255     ac_prev=prefix ;;
256   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
257     prefix="$ac_optarg" ;;
258
259   -program-prefix | --program-prefix | --program-prefi | --program-pref \
260   | --program-pre | --program-pr | --program-p)
261     ac_prev=program_prefix ;;
262   -program-prefix=* | --program-prefix=* | --program-prefi=* \
263   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
264     program_prefix="$ac_optarg" ;;
265
266   -program-suffix | --program-suffix | --program-suffi | --program-suff \
267   | --program-suf | --program-su | --program-s)
268     ac_prev=program_suffix ;;
269   -program-suffix=* | --program-suffix=* | --program-suffi=* \
270   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
271     program_suffix="$ac_optarg" ;;
272
273   -program-transform-name | --program-transform-name \
274   | --program-transform-nam | --program-transform-na \
275   | --program-transform-n | --program-transform- \
276   | --program-transform | --program-transfor \
277   | --program-transfo | --program-transf \
278   | --program-trans | --program-tran \
279   | --progr-tra | --program-tr | --program-t)
280     ac_prev=program_transform_name ;;
281   -program-transform-name=* | --program-transform-name=* \
282   | --program-transform-nam=* | --program-transform-na=* \
283   | --program-transform-n=* | --program-transform-=* \
284   | --program-transform=* | --program-transfor=* \
285   | --program-transfo=* | --program-transf=* \
286   | --program-trans=* | --program-tran=* \
287   | --progr-tra=* | --program-tr=* | --program-t=*)
288     program_transform_name="$ac_optarg" ;;
289
290   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
291   | -silent | --silent | --silen | --sile | --sil)
292     silent=yes ;;
293
294   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
295     ac_prev=sbindir ;;
296   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
297   | --sbi=* | --sb=*)
298     sbindir="$ac_optarg" ;;
299
300   -sharedstatedir | --sharedstatedir | --sharedstatedi \
301   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
302   | --sharedst | --shareds | --shared | --share | --shar \
303   | --sha | --sh)
304     ac_prev=sharedstatedir ;;
305   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
306   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
307   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
308   | --sha=* | --sh=*)
309     sharedstatedir="$ac_optarg" ;;
310
311   -site | --site | --sit)
312     ac_prev=site ;;
313   -site=* | --site=* | --sit=*)
314     site="$ac_optarg" ;;
315
316   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
317     ac_prev=srcdir ;;
318   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
319     srcdir="$ac_optarg" ;;
320
321   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
322   | --syscon | --sysco | --sysc | --sys | --sy)
323     ac_prev=sysconfdir ;;
324   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
325   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
326     sysconfdir="$ac_optarg" ;;
327
328   -target | --target | --targe | --targ | --tar | --ta | --t)
329     ac_prev=target ;;
330   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
331     target="$ac_optarg" ;;
332
333   -v | -verbose | --verbose | --verbos | --verbo | --verb)
334     verbose=yes ;;
335
336   -version | --version | --versio | --versi | --vers)
337     echo "configure generated by autoconf version 2.13"
338     exit 0 ;;
339
340   -with-* | --with-*)
341     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
342     # Reject names that are not valid shell variable names.
343     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
344       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
345     fi
346     ac_package=`echo $ac_package| sed 's/-/_/g'`
347     case "$ac_option" in
348       *=*) ;;
349       *) ac_optarg=yes ;;
350     esac
351     eval "with_${ac_package}='$ac_optarg'" ;;
352
353   -without-* | --without-*)
354     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
355     # Reject names that are not valid shell variable names.
356     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
357       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358     fi
359     ac_package=`echo $ac_package| sed 's/-/_/g'`
360     eval "with_${ac_package}=no" ;;
361
362   --x)
363     # Obsolete; use --with-x.
364     with_x=yes ;;
365
366   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
367   | --x-incl | --x-inc | --x-in | --x-i)
368     ac_prev=x_includes ;;
369   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
370   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
371     x_includes="$ac_optarg" ;;
372
373   -x-libraries | --x-libraries | --x-librarie | --x-librari \
374   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
375     ac_prev=x_libraries ;;
376   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
377   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
378     x_libraries="$ac_optarg" ;;
379
380   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
381     ;;
382
383   *)
384     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
385       echo "configure: warning: $ac_option: invalid host type" 1>&2
386     fi
387     if test "x$nonopt" != xNONE; then
388       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
389     fi
390     nonopt="$ac_option"
391     ;;
392
393   esac
394 done
395
396 if test -n "$ac_prev"; then
397   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
398 fi
399
400 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
401
402 # File descriptor usage:
403 # 0 standard input
404 # 1 file creation
405 # 2 errors and warnings
406 # 3 some systems may open it to /dev/tty
407 # 4 used on the Kubota Titan
408 # 6 checking for... messages and results
409 # 5 compiler messages saved in config.log
410 if test "$silent" = yes; then
411   exec 6>/dev/null
412 else
413   exec 6>&1
414 fi
415 exec 5>./config.log
416
417 echo "\
418 This file contains any messages produced by compilers while
419 running configure, to aid debugging if configure makes a mistake.
420 " 1>&5
421
422 # Strip out --no-create and --no-recursion so they do not pile up.
423 # Also quote any args containing shell metacharacters.
424 ac_configure_args=
425 for ac_arg
426 do
427   case "$ac_arg" in
428   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
429   | --no-cr | --no-c) ;;
430   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
431   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
432   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
433   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
434   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
435   esac
436 done
437
438 # NLS nuisances.
439 # Only set these to C if already set.  These must not be set unconditionally
440 # because not all systems understand e.g. LANG=C (notably SCO).
441 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
442 # Non-C LC_CTYPE values break the ctype check.
443 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
444 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
445 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
446 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
447
448 # confdefs.h avoids OS command line length limits that DEFS can exceed.
449 rm -rf conftest* confdefs.h
450 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
451 echo > confdefs.h
452
453 # A filename unique to this package, relative to the directory that
454 # configure is in, which we can look for to find out if srcdir is correct.
455 ac_unique_file=source_f/readfile.f
456
457 # Find the source files, if location was not specified.
458 if test -z "$srcdir"; then
459   ac_srcdir_defaulted=yes
460   # Try the directory containing this script, then its parent.
461   ac_prog=$0
462   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
463   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
464   srcdir=$ac_confdir
465   if test ! -r $srcdir/$ac_unique_file; then
466     srcdir=..
467   fi
468 else
469   ac_srcdir_defaulted=no
470 fi
471 if test ! -r $srcdir/$ac_unique_file; then
472   if test "$ac_srcdir_defaulted" = yes; then
473     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
474   else
475     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
476   fi
477 fi
478 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
479
480 # Prefer explicitly selected file to automatically selected ones.
481 if test -z "$CONFIG_SITE"; then
482   if test "x$prefix" != xNONE; then
483     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
484   else
485     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
486   fi
487 fi
488 for ac_site_file in $CONFIG_SITE; do
489   if test -r "$ac_site_file"; then
490     echo "loading site script $ac_site_file"
491     . "$ac_site_file"
492   fi
493 done
494
495 if test -r "$cache_file"; then
496   echo "loading cache $cache_file"
497   . $cache_file
498 else
499   echo "creating cache $cache_file"
500   > $cache_file
501 fi
502
503 ac_ext=c
504 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
505 ac_cpp='$CPP $CPPFLAGS'
506 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
507 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
508 cross_compiling=$ac_cv_prog_cc_cross
509
510 ac_exeext=
511 ac_objext=o
512 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
513   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
514   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
515     ac_n= ac_c='
516 ' ac_t='        '
517   else
518     ac_n=-n ac_c= ac_t=
519   fi
520 else
521   ac_n= ac_c='\c' ac_t=
522 fi
523
524
525
526
527
528 test "x$prefix" = xNONE && prefix=$ac_default_prefix
529
530 echo $ac_n "checking whether $prefix is a directory and writeable""... $ac_c" 1>&6
531 echo "configure:532: checking whether $prefix is a directory and writeable" >&5
532 mkdir -p $prefix 2>&5
533 if test -d $prefix && echo "" > $prefix/test_conf_write \
534    && rm -f $prefix/test_conf_write; then
535    echo "$ac_t""yes" 1>&6
536 else
537    echo "$ac_t""no" 1>&6
538    echo "configure: warning: 
539 *** $prefix must be a writeable directory for installation 
540 *** either you provide that or give another one, say mydir,  by calling
541 ***    $ ./configure --prefix=mydir
542 " 1>&2
543 fi
544
545
546 for ccc in "$CC" cc gcc acc "cc -Aa"; do
547    if test -z "$ccc"; then 
548       continue
549    fi
550    CC=$ccc
551    echo $ac_n "checking whether ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
552 echo "configure:553: checking whether ($CC $CFLAGS $LDFLAGS) works" >&5
553    ac_cpp='$CPP $CPPFLAGS'
554    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.c 1>&5'
555    ac_link='$CC -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.c $LIBS 1>&5'
556    echo '#include "confdefs.h"'  > conftest.c
557    echo 'main(int argc,char **argv){return(0);}' >> conftest.c
558    if { (eval $ac_link) 2>&5; } && test -s conftest; then
559          rm -fr conftest*
560          echo "$ac_t""yes" 1>&6
561          break
562    else
563          rm -fr conftest*
564          echo "$ac_t""no" 1>&6
565          CC=
566    fi
567 done
568
569 if test -z "$CC"; then
570    echo "configure: warning: 
571 *** No valid ANSI C compiler found
572 *** You will not be able to use some of the routines
573 *** If you do have a C compiler called by, say, mycc -ANSI, do:
574 ***    $ setenv CC "mycc -ANSI"
575 *** and rerun
576 " 1>&2
577 fi
578
579 if test -n "$CC" && test -z "$CFLAGS"; then
580    echo 'void f(){}' > conftest.c
581    for cflags in -O3 -O2 -O +O3 +O -xO3; do
582       echo $ac_n "checking whether $CC accepts $cflags""... $ac_c" 1>&6
583 echo "configure:584: checking whether $CC accepts $cflags" >&5
584       if test -z "`$CC $cflags -c conftest.c 2>&1`"; then
585          echo "$ac_t""yes" 1>&6
586          CFLAGS=$cflags
587          break
588       else
589          echo "$ac_t""no" 1>&6
590       fi
591    done
592    if test -z "$CFLAGS"; then
593       echo "configure: warning: 
594 *** no valid optimisation flags for $CC found
595 " 1>&2
596    fi
597    rm -f conftest*
598 fi
599
600 if test -n "$CC"; then
601    echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
602 echo "configure:603: checking for main in -lm" >&5
603 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
604 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
605   echo $ac_n "(cached) $ac_c" 1>&6
606 else
607   ac_save_LIBS="$LIBS"
608 LIBS="-lm  $LIBS"
609 cat > conftest.$ac_ext <<EOF
610 #line 611 "configure"
611 #include "confdefs.h"
612
613 int main() {
614 main()
615 ; return 0; }
616 EOF
617 if { (eval echo configure:618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
618   rm -rf conftest*
619   eval "ac_cv_lib_$ac_lib_var=yes"
620 else
621   echo "configure: failed program was:" >&5
622   cat conftest.$ac_ext >&5
623   rm -rf conftest*
624   eval "ac_cv_lib_$ac_lib_var=no"
625 fi
626 rm -f conftest*
627 LIBS="$ac_save_LIBS"
628
629 fi
630 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
631   echo "$ac_t""yes" 1>&6
632     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
633     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
634   cat >> confdefs.h <<EOF
635 #define $ac_tr_lib 1
636 EOF
637
638   LIBS="-lm $LIBS"
639
640 else
641   echo "$ac_t""no" 1>&6
642 fi
643
644
645    echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
646 echo "configure:647: checking how to run the C preprocessor" >&5
647 # On Suns, sometimes $CPP names a directory.
648 if test -n "$CPP" && test -d "$CPP"; then
649   CPP=
650 fi
651 if test -z "$CPP"; then
652 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
653   echo $ac_n "(cached) $ac_c" 1>&6
654 else
655     # This must be in double quotes, not single quotes, because CPP may get
656   # substituted into the Makefile and "${CC-cc}" will confuse make.
657   CPP="${CC-cc} -E"
658   # On the NeXT, cc -E runs the code through the compiler's parser,
659   # not just through cpp.
660   cat > conftest.$ac_ext <<EOF
661 #line 662 "configure"
662 #include "confdefs.h"
663 #include <assert.h>
664 Syntax Error
665 EOF
666 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
667 { (eval echo configure:668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
668 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
669 if test -z "$ac_err"; then
670   :
671 else
672   echo "$ac_err" >&5
673   echo "configure: failed program was:" >&5
674   cat conftest.$ac_ext >&5
675   rm -rf conftest*
676   CPP="${CC-cc} -E -traditional-cpp"
677   cat > conftest.$ac_ext <<EOF
678 #line 679 "configure"
679 #include "confdefs.h"
680 #include <assert.h>
681 Syntax Error
682 EOF
683 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
684 { (eval echo configure:685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
685 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
686 if test -z "$ac_err"; then
687   :
688 else
689   echo "$ac_err" >&5
690   echo "configure: failed program was:" >&5
691   cat conftest.$ac_ext >&5
692   rm -rf conftest*
693   CPP="${CC-cc} -nologo -E"
694   cat > conftest.$ac_ext <<EOF
695 #line 696 "configure"
696 #include "confdefs.h"
697 #include <assert.h>
698 Syntax Error
699 EOF
700 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
701 { (eval echo configure:702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
702 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
703 if test -z "$ac_err"; then
704   :
705 else
706   echo "$ac_err" >&5
707   echo "configure: failed program was:" >&5
708   cat conftest.$ac_ext >&5
709   rm -rf conftest*
710   CPP=/lib/cpp
711 fi
712 rm -f conftest*
713 fi
714 rm -f conftest*
715 fi
716 rm -f conftest*
717   ac_cv_prog_CPP="$CPP"
718 fi
719   CPP="$ac_cv_prog_CPP"
720 else
721   ac_cv_prog_CPP="$CPP"
722 fi
723 echo "$ac_t""$CPP" 1>&6
724
725 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
726 echo "configure:727: checking for ANSI C header files" >&5
727 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
728   echo $ac_n "(cached) $ac_c" 1>&6
729 else
730   cat > conftest.$ac_ext <<EOF
731 #line 732 "configure"
732 #include "confdefs.h"
733 #include <stdlib.h>
734 #include <stdarg.h>
735 #include <string.h>
736 #include <float.h>
737 EOF
738 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
739 { (eval echo configure:740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
740 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
741 if test -z "$ac_err"; then
742   rm -rf conftest*
743   ac_cv_header_stdc=yes
744 else
745   echo "$ac_err" >&5
746   echo "configure: failed program was:" >&5
747   cat conftest.$ac_ext >&5
748   rm -rf conftest*
749   ac_cv_header_stdc=no
750 fi
751 rm -f conftest*
752
753 if test $ac_cv_header_stdc = yes; then
754   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
755 cat > conftest.$ac_ext <<EOF
756 #line 757 "configure"
757 #include "confdefs.h"
758 #include <string.h>
759 EOF
760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
761   egrep "memchr" >/dev/null 2>&1; then
762   :
763 else
764   rm -rf conftest*
765   ac_cv_header_stdc=no
766 fi
767 rm -f conftest*
768
769 fi
770
771 if test $ac_cv_header_stdc = yes; then
772   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
773 cat > conftest.$ac_ext <<EOF
774 #line 775 "configure"
775 #include "confdefs.h"
776 #include <stdlib.h>
777 EOF
778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
779   egrep "free" >/dev/null 2>&1; then
780   :
781 else
782   rm -rf conftest*
783   ac_cv_header_stdc=no
784 fi
785 rm -f conftest*
786
787 fi
788
789 if test $ac_cv_header_stdc = yes; then
790   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
791 if test "$cross_compiling" = yes; then
792   :
793 else
794   cat > conftest.$ac_ext <<EOF
795 #line 796 "configure"
796 #include "confdefs.h"
797 #include <ctype.h>
798 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
799 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
800 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
801 int main () { int i; for (i = 0; i < 256; i++)
802 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
803 exit (0); }
804
805 EOF
806 if { (eval echo configure:807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
807 then
808   :
809 else
810   echo "configure: failed program was:" >&5
811   cat conftest.$ac_ext >&5
812   rm -fr conftest*
813   ac_cv_header_stdc=no
814 fi
815 rm -fr conftest*
816 fi
817
818 fi
819 fi
820
821 echo "$ac_t""$ac_cv_header_stdc" 1>&6
822 if test $ac_cv_header_stdc = yes; then
823   cat >> confdefs.h <<\EOF
824 #define STDC_HEADERS 1
825 EOF
826
827 fi
828
829    for ac_hdr in limits.h malloc.h
830 do
831 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
832 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
833 echo "configure:834: checking for $ac_hdr" >&5
834 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
835   echo $ac_n "(cached) $ac_c" 1>&6
836 else
837   cat > conftest.$ac_ext <<EOF
838 #line 839 "configure"
839 #include "confdefs.h"
840 #include <$ac_hdr>
841 EOF
842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
843 { (eval echo configure:844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
844 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
845 if test -z "$ac_err"; then
846   rm -rf conftest*
847   eval "ac_cv_header_$ac_safe=yes"
848 else
849   echo "$ac_err" >&5
850   echo "configure: failed program was:" >&5
851   cat conftest.$ac_ext >&5
852   rm -rf conftest*
853   eval "ac_cv_header_$ac_safe=no"
854 fi
855 rm -f conftest*
856 fi
857 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
858   echo "$ac_t""yes" 1>&6
859     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
860   cat >> confdefs.h <<EOF
861 #define $ac_tr_hdr 1
862 EOF
863  
864 else
865   echo "$ac_t""no" 1>&6
866 fi
867 done
868
869
870    echo $ac_n "checking for working const""... $ac_c" 1>&6
871 echo "configure:872: checking for working const" >&5
872 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
873   echo $ac_n "(cached) $ac_c" 1>&6
874 else
875   cat > conftest.$ac_ext <<EOF
876 #line 877 "configure"
877 #include "confdefs.h"
878
879 int main() {
880
881 /* Ultrix mips cc rejects this.  */
882 typedef int charset[2]; const charset x;
883 /* SunOS 4.1.1 cc rejects this.  */
884 char const *const *ccp;
885 char **p;
886 /* NEC SVR4.0.2 mips cc rejects this.  */
887 struct point {int x, y;};
888 static struct point const zero = {0,0};
889 /* AIX XL C 1.02.0.0 rejects this.
890    It does not let you subtract one const X* pointer from another in an arm
891    of an if-expression whose if-part is not a constant expression */
892 const char *g = "string";
893 ccp = &g + (g ? g-g : 0);
894 /* HPUX 7.0 cc rejects these. */
895 ++ccp;
896 p = (char**) ccp;
897 ccp = (char const *const *) p;
898 { /* SCO 3.2v4 cc rejects this.  */
899   char *t;
900   char const *s = 0 ? (char *) 0 : (char const *) 0;
901
902   *t++ = 0;
903 }
904 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
905   int x[] = {25, 17};
906   const int *foo = &x[0];
907   ++foo;
908 }
909 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
910   typedef const int *iptr;
911   iptr p = 0;
912   ++p;
913 }
914 { /* AIX XL C 1.02.0.0 rejects this saying
915      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
916   struct s { int j; const int *ap[3]; };
917   struct s *b; b->j = 5;
918 }
919 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
920   const int foo = 10;
921 }
922
923 ; return 0; }
924 EOF
925 if { (eval echo configure:926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
926   rm -rf conftest*
927   ac_cv_c_const=yes
928 else
929   echo "configure: failed program was:" >&5
930   cat conftest.$ac_ext >&5
931   rm -rf conftest*
932   ac_cv_c_const=no
933 fi
934 rm -f conftest*
935 fi
936
937 echo "$ac_t""$ac_cv_c_const" 1>&6
938 if test $ac_cv_c_const = no; then
939   cat >> confdefs.h <<\EOF
940 #define const 
941 EOF
942
943 fi
944
945    if test $ac_cv_c_const = no; then
946       CC="$CC -Dconst="
947    fi
948
949    echo $ac_n "checking for size_t""... $ac_c" 1>&6
950 echo "configure:951: checking for size_t" >&5
951 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
952   echo $ac_n "(cached) $ac_c" 1>&6
953 else
954   cat > conftest.$ac_ext <<EOF
955 #line 956 "configure"
956 #include "confdefs.h"
957 #include <sys/types.h>
958 #if STDC_HEADERS
959 #include <stdlib.h>
960 #include <stddef.h>
961 #endif
962 EOF
963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
964   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
965   rm -rf conftest*
966   ac_cv_type_size_t=yes
967 else
968   rm -rf conftest*
969   ac_cv_type_size_t=no
970 fi
971 rm -f conftest*
972
973 fi
974 echo "$ac_t""$ac_cv_type_size_t" 1>&6
975 if test $ac_cv_type_size_t = no; then
976   cat >> confdefs.h <<\EOF
977 #define size_t unsigned
978 EOF
979
980 fi
981
982
983    echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
984 echo "configure:985: checking for 8-bit clean memcmp" >&5
985 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
986   echo $ac_n "(cached) $ac_c" 1>&6
987 else
988   if test "$cross_compiling" = yes; then
989   ac_cv_func_memcmp_clean=no
990 else
991   cat > conftest.$ac_ext <<EOF
992 #line 993 "configure"
993 #include "confdefs.h"
994
995 main()
996 {
997   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
998   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
999 }
1000
1001 EOF
1002 if { (eval echo configure:1003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1003 then
1004   ac_cv_func_memcmp_clean=yes
1005 else
1006   echo "configure: failed program was:" >&5
1007   cat conftest.$ac_ext >&5
1008   rm -fr conftest*
1009   ac_cv_func_memcmp_clean=no
1010 fi
1011 rm -fr conftest*
1012 fi
1013
1014 fi
1015
1016 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
1017 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
1018
1019 fi
1020
1021
1022
1023 for fff in "$FC" f77 g77 "f77 +U77" "f77 -q -f -B108 -lU77"; do
1024    if test -z "$fff"; then 
1025       continue
1026    fi
1027    FC=$fff
1028    echo $ac_n "checking whether ($FC $FFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1029 echo "configure:1030: checking whether ($FC $FFLAGS $LDFLAGS) works" >&5
1030    cat > conftest.f << EOF
1031       character*20 argv
1032       call getarg(1,argv)
1033       write(*,'(2hxx,a)') argv
1034       end
1035 EOF
1036    (eval $FC $FFLAGS $LDFLAGS conftest.f -o conftest) 1>&5 2>&5
1037    if test -n "`(eval ./conftest TEST | grep xxTEST) 2>&5`"; then
1038       rm -f conftest.f conftest
1039       echo "$ac_t""yes" 1>&6
1040       break
1041    else
1042       rm -f conftest.f conftest
1043       echo "$ac_t""no" 1>&6
1044       FC=
1045    fi
1046 done
1047
1048 if test -z "$FC"; then
1049       echo "configure: warning: 
1050 *** No usable Fortran compiler found
1051 *** You will not be able to use some of the routines
1052 *** If you do have a working Fortran compiler called, say, myf77 -trick, do:
1053 ***    $ setenv FC "myf77 -trick"
1054 *** and rerun
1055 " 1>&2
1056 fi
1057
1058 if test -z "$CC" && test -z "$FC"; then
1059    { echo "configure: error: 
1060 *** with neither working C nor Fortran compilers there wouldn't be any
1061 *** programs left you could compile
1062 " 1>&2; exit 1; }
1063 fi
1064
1065 if test -n "$FC" && test -z "$FFLAGS"; then
1066    echo '      end' > conftest.f
1067    for fflags in -O +O; do
1068       echo $ac_n "checking whether $FC accepts $fflags""... $ac_c" 1>&6
1069 echo "configure:1070: checking whether $FC accepts $fflags" >&5
1070       cat > conftest.f << EOF
1071       write(*,'(6hxxTEST)')
1072       end
1073 EOF
1074       (eval $FC $fflags $LDFLAGS conftest.f -o conftest) 1>&5 2>&5
1075       if test -n "`(eval ./conftest | grep xxTEST) 2>&5`"; then
1076          rm -f conftest.f conftest
1077          echo "$ac_t""yes" 1>&6
1078          FFLAGS=$fflags
1079          break
1080       else
1081          rm -f conftest.f conftest
1082          echo "$ac_t""no" 1>&6
1083       fi
1084    done
1085    if test -z "$FFLAGS"; then
1086       echo "configure: warning: 
1087 *** no valid optimisation flags for $FC found
1088 " 1>&2
1089    fi
1090    rm -f conftest*
1091 fi
1092
1093
1094
1095
1096 if test -n "$FC"; then
1097    ERRUNIT=""
1098    for iu in 0 1 2 3 4 6 7 8 9; do
1099       echo $ac_n "checking whether Fortran unit $iu is stderr""... $ac_c" 1>&6
1100 echo "configure:1101: checking whether Fortran unit $iu is stderr" >&5
1101       rm -Rf ./config_test_dir
1102       mkdir ./config_test_dir
1103       cd ./config_test_dir
1104       echo "      write($iu,'(1ht)')" > test.f 
1105       echo "      end" >> test.f
1106       (eval $FC $FFLAGS test.f -o test.out) 1>&5 2>&5
1107       if test -z "`./test.out 2>&1 1>/dev/null`"; then
1108          cd ..
1109          rm -Rf ./config_test_dir
1110          echo "$ac_t""no" 1>&6
1111       else
1112          cd ..
1113          rm -Rf ./config_test_dir
1114          echo "$ac_t""yes" 1>&6
1115          ERRUNIT=$iu
1116          break
1117       fi
1118    done
1119    if test -z $ERRUNIT; then
1120       ERRUNIT=0
1121       echo "configure: warning: 
1122 *** Couldn't determine Fortran stderr unit, assuming unit 0, fingers crossed
1123 " 1>&2
1124    fi
1125    
1126 fi
1127
1128 # Extract the first word of "ar", so it can be a program name with args.
1129 set dummy ar; ac_word=$2
1130 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1131 echo "configure:1132: checking for $ac_word" >&5
1132 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1133   echo $ac_n "(cached) $ac_c" 1>&6
1134 else
1135   if test -n "$AR"; then
1136   ac_cv_prog_AR="$AR" # Let the user override the test.
1137 else
1138   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1139   ac_dummy="$PATH"
1140   for ac_dir in $ac_dummy; do
1141     test -z "$ac_dir" && ac_dir=.
1142     if test -f $ac_dir/$ac_word; then
1143       ac_cv_prog_AR="ar"
1144       break
1145     fi
1146   done
1147   IFS="$ac_save_ifs"
1148   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1149 fi
1150 fi
1151 AR="$ac_cv_prog_AR"
1152 if test -n "$AR"; then
1153   echo "$ac_t""$AR" 1>&6
1154 else
1155   echo "$ac_t""no" 1>&6
1156 fi
1157
1158 ARFLAGS=r
1159 echo $ac_n "checking whether ${AR} accepts ${ARFLAGS}""... $ac_c" 1>&6
1160 echo "configure:1161: checking whether ${AR} accepts ${ARFLAGS}" >&5
1161 if test -n "$CC"; then
1162    echo 'void f(){}' > libtest.c
1163    ${CC} -c libtest.c
1164 else
1165    echo '      end' > libtest.f
1166    ${FC} -c libtest.f
1167 fi
1168 ${AR} ${ARFLAGS} libtest.a libtest.o 1>&5 2>&5
1169 if test -s libtest.a; then
1170   echo "$ac_t""yes" 1>&6
1171 else
1172   ARFLAGS=-r
1173   echo "$ac_t""no, using ${ARFLAGS} instead" 1>&6
1174 fi
1175 rm -f libtest.*
1176
1177
1178 ac_aux_dir=
1179 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1180   if test -f $ac_dir/install-sh; then
1181     ac_aux_dir=$ac_dir
1182     ac_install_sh="$ac_aux_dir/install-sh -c"
1183     break
1184   elif test -f $ac_dir/install.sh; then
1185     ac_aux_dir=$ac_dir
1186     ac_install_sh="$ac_aux_dir/install.sh -c"
1187     break
1188   fi
1189 done
1190 if test -z "$ac_aux_dir"; then
1191   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1192 fi
1193 ac_config_guess=$ac_aux_dir/config.guess
1194 ac_config_sub=$ac_aux_dir/config.sub
1195 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1196
1197 # Find a good install program.  We prefer a C program (faster),
1198 # so one script is as good as another.  But avoid the broken or
1199 # incompatible versions:
1200 # SysV /etc/install, /usr/sbin/install
1201 # SunOS /usr/etc/install
1202 # IRIX /sbin/install
1203 # AIX /bin/install
1204 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1205 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1206 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1207 # ./install, which can be erroneously created by make from ./install.sh.
1208 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1209 echo "configure:1210: checking for a BSD compatible install" >&5
1210 if test -z "$INSTALL"; then
1211 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1212   echo $ac_n "(cached) $ac_c" 1>&6
1213 else
1214     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1215   for ac_dir in $PATH; do
1216     # Account for people who put trailing slashes in PATH elements.
1217     case "$ac_dir/" in
1218     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1219     *)
1220       # OSF1 and SCO ODT 3.0 have their own names for install.
1221       # Don't use installbsd from OSF since it installs stuff as root
1222       # by default.
1223       for ac_prog in ginstall scoinst install; do
1224         if test -f $ac_dir/$ac_prog; then
1225           if test $ac_prog = install &&
1226             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1227             # AIX install.  It has an incompatible calling convention.
1228             :
1229           else
1230             ac_cv_path_install="$ac_dir/$ac_prog -c"
1231             break 2
1232           fi
1233         fi
1234       done
1235       ;;
1236     esac
1237   done
1238   IFS="$ac_save_IFS"
1239
1240 fi
1241   if test "${ac_cv_path_install+set}" = set; then
1242     INSTALL="$ac_cv_path_install"
1243   else
1244     # As a last resort, use the slow shell script.  We don't cache a
1245     # path for INSTALL within a source directory, because that will
1246     # break other packages using the cache if that directory is
1247     # removed, or if the path is relative.
1248     INSTALL="$ac_install_sh"
1249   fi
1250 fi
1251 echo "$ac_t""$INSTALL" 1>&6
1252
1253 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1254 # It thinks the first close brace ends the variable substitution.
1255 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1256
1257 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1258
1259 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1260
1261 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1262 echo "configure:1263: checking whether ${MAKE-make} sets \${MAKE}" >&5
1263 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1264 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1265   echo $ac_n "(cached) $ac_c" 1>&6
1266 else
1267   cat > conftestmake <<\EOF
1268 all:
1269         @echo 'ac_maketemp="${MAKE}"'
1270 EOF
1271 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1272 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1273 if test -n "$ac_maketemp"; then
1274   eval ac_cv_prog_make_${ac_make}_set=yes
1275 else
1276   eval ac_cv_prog_make_${ac_make}_set=no
1277 fi
1278 rm -f conftestmake
1279 fi
1280 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1281   echo "$ac_t""yes" 1>&6
1282   SET_MAKE=
1283 else
1284   echo "$ac_t""no" 1>&6
1285   SET_MAKE="MAKE=${MAKE-make}"
1286 fi
1287
1288 # Extract the first word of "ranlib", so it can be a program name with args.
1289 set dummy ranlib; ac_word=$2
1290 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1291 echo "configure:1292: checking for $ac_word" >&5
1292 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1293   echo $ac_n "(cached) $ac_c" 1>&6
1294 else
1295   if test -n "$RANLIB"; then
1296   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1297 else
1298   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1299   ac_dummy="$PATH"
1300   for ac_dir in $ac_dummy; do
1301     test -z "$ac_dir" && ac_dir=.
1302     if test -f $ac_dir/$ac_word; then
1303       ac_cv_prog_RANLIB="ranlib"
1304       break
1305     fi
1306   done
1307   IFS="$ac_save_ifs"
1308   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1309 fi
1310 fi
1311 RANLIB="$ac_cv_prog_RANLIB"
1312 if test -n "$RANLIB"; then
1313   echo "$ac_t""$RANLIB" 1>&6
1314 else
1315   echo "$ac_t""no" 1>&6
1316 fi
1317
1318
1319 for ac_prog in gnuplot
1320 do
1321 # Extract the first word of "$ac_prog", so it can be a program name with args.
1322 set dummy $ac_prog; ac_word=$2
1323 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1324 echo "configure:1325: checking for $ac_word" >&5
1325 if eval "test \"`echo '$''{'ac_cv_prog_GP'+set}'`\" = set"; then
1326   echo $ac_n "(cached) $ac_c" 1>&6
1327 else
1328   if test -n "$GP"; then
1329   ac_cv_prog_GP="$GP" # Let the user override the test.
1330 else
1331   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1332   ac_dummy="$PATH"
1333   for ac_dir in $ac_dummy; do
1334     test -z "$ac_dir" && ac_dir=.
1335     if test -f $ac_dir/$ac_word; then
1336       ac_cv_prog_GP="$ac_prog"
1337       break
1338     fi
1339   done
1340   IFS="$ac_save_ifs"
1341 fi
1342 fi
1343 GP="$ac_cv_prog_GP"
1344 if test -n "$GP"; then
1345   echo "$ac_t""$GP" 1>&6
1346 else
1347   echo "$ac_t""no" 1>&6
1348 fi
1349
1350 test -n "$GP" && break
1351 done
1352
1353 if test -n "$GP"; then
1354    echo $ac_n "checking if gnuplot can read from a pipe""... $ac_c" 1>&6
1355 echo "configure:1356: checking if gnuplot can read from a pipe" >&5
1356    cat > conftest.gnu <<EOF
1357 set out "/dev/null"
1358 set term dumb
1359 plot '< (echo "1 1"; echo "2 2")'
1360 EOF
1361    if $GP conftest.gnu 2>&5 1>&5; then
1362       rm -f conftest.gnu
1363       echo "$ac_t""yes
1364 :-)   you may try to run $GP on the following files
1365       after you installed everything:" 1>&6
1366    find examples -name "*.gnu" -print | sed "s%\./%         %"
1367       echo ""
1368    else
1369       rm -f conftest.gnu
1370       echo "$ac_t""no 
1371 :-(   you may not be able to run $GP on the examples
1372       docs_f/docs/*.gnu without changes" 1>&6
1373    fi
1374 fi
1375
1376 trap '' 1 2 15
1377 cat > confcache <<\EOF
1378 # This file is a shell script that caches the results of configure
1379 # tests run on this system so they can be shared between configure
1380 # scripts and configure runs.  It is not useful on other systems.
1381 # If it contains results you don't want to keep, you may remove or edit it.
1382 #
1383 # By default, configure uses ./config.cache as the cache file,
1384 # creating it if it does not exist already.  You can give configure
1385 # the --cache-file=FILE option to use a different cache file; that is
1386 # what configure does when it calls configure scripts in
1387 # subdirectories, so they share the cache.
1388 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1389 # config.status only pays attention to the cache file if you give it the
1390 # --recheck option to rerun configure.
1391 #
1392 EOF
1393 # The following way of writing the cache mishandles newlines in values,
1394 # but we know of no workaround that is simple, portable, and efficient.
1395 # So, don't put newlines in cache variables' values.
1396 # Ultrix sh set writes to stderr and can't be redirected directly,
1397 # and sets the high bit in the cache file unless we assign to the vars.
1398 (set) 2>&1 |
1399   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1400   *ac_space=\ *)
1401     # `set' does not quote correctly, so add quotes (double-quote substitution
1402     # turns \\\\ into \\, and sed turns \\ into \).
1403     sed -n \
1404       -e "s/'/'\\\\''/g" \
1405       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1406     ;;
1407   *)
1408     # `set' quotes correctly as required by POSIX, so do not add quotes.
1409     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1410     ;;
1411   esac >> confcache
1412 if cmp -s $cache_file confcache; then
1413   :
1414 else
1415   if test -w $cache_file; then
1416     echo "updating cache $cache_file"
1417     cat confcache > $cache_file
1418   else
1419     echo "not updating unwritable cache $cache_file"
1420   fi
1421 fi
1422 rm -f confcache
1423
1424 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1425
1426 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1427 # Let make expand exec_prefix.
1428 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1429
1430 # Any assignment to VPATH causes Sun make to only execute
1431 # the first set of double-colon rules, so remove it if not needed.
1432 # If there is a colon in the path, we need to keep it.
1433 if test "x$srcdir" = x.; then
1434   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1435 fi
1436
1437 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1438
1439 # Transform confdefs.h into DEFS.
1440 # Protect against shell expansion while executing Makefile rules.
1441 # Protect against Makefile macro expansion.
1442 cat > conftest.defs <<\EOF
1443 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1444 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1445 s%\[%\\&%g
1446 s%\]%\\&%g
1447 s%\$%$$%g
1448 EOF
1449 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1450 rm -f conftest.defs
1451
1452
1453 # Without the "./", some shells look in PATH for config.status.
1454 : ${CONFIG_STATUS=./config.status}
1455
1456 echo creating $CONFIG_STATUS
1457 rm -f $CONFIG_STATUS
1458 cat > $CONFIG_STATUS <<EOF
1459 #! /bin/sh
1460 # Generated automatically by configure.
1461 # Run this file to recreate the current configuration.
1462 # This directory was configured as follows,
1463 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1464 #
1465 # $0 $ac_configure_args
1466 #
1467 # Compiler output produced by configure, useful for debugging
1468 # configure, is in ./config.log if it exists.
1469
1470 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1471 for ac_option
1472 do
1473   case "\$ac_option" in
1474   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1475     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1476     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1477   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1478     echo "$CONFIG_STATUS generated by autoconf version 2.13"
1479     exit 0 ;;
1480   -help | --help | --hel | --he | --h)
1481     echo "\$ac_cs_usage"; exit 0 ;;
1482   *) echo "\$ac_cs_usage"; exit 1 ;;
1483   esac
1484 done
1485
1486 ac_given_srcdir=$srcdir
1487 ac_given_INSTALL="$INSTALL"
1488
1489 trap 'rm -fr `echo "Makefile source_f/Makefile source_f/slatec/Makefile source_f/randomize/Makefile source_c/Makefile source_c/routines/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1490 EOF
1491 cat >> $CONFIG_STATUS <<EOF
1492
1493 # Protect against being on the right side of a sed subst in config.status.
1494 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1495  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1496 $ac_vpsub
1497 $extrasub
1498 s%@SHELL@%$SHELL%g
1499 s%@CFLAGS@%$CFLAGS%g
1500 s%@CPPFLAGS@%$CPPFLAGS%g
1501 s%@CXXFLAGS@%$CXXFLAGS%g
1502 s%@FFLAGS@%$FFLAGS%g
1503 s%@DEFS@%$DEFS%g
1504 s%@LDFLAGS@%$LDFLAGS%g
1505 s%@LIBS@%$LIBS%g
1506 s%@exec_prefix@%$exec_prefix%g
1507 s%@prefix@%$prefix%g
1508 s%@program_transform_name@%$program_transform_name%g
1509 s%@bindir@%$bindir%g
1510 s%@sbindir@%$sbindir%g
1511 s%@libexecdir@%$libexecdir%g
1512 s%@datadir@%$datadir%g
1513 s%@sysconfdir@%$sysconfdir%g
1514 s%@sharedstatedir@%$sharedstatedir%g
1515 s%@localstatedir@%$localstatedir%g
1516 s%@libdir@%$libdir%g
1517 s%@includedir@%$includedir%g
1518 s%@oldincludedir@%$oldincludedir%g
1519 s%@infodir@%$infodir%g
1520 s%@mandir@%$mandir%g
1521 s%@CPP@%$CPP%g
1522 s%@LIBOBJS@%$LIBOBJS%g
1523 s%@CC@%$CC%g
1524 s%@FC@%$FC%g
1525 s%@ERRUNIT@%$ERRUNIT%g
1526 s%@AR@%$AR%g
1527 s%@ARFLAGS@%$ARFLAGS%g
1528 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1529 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1530 s%@INSTALL_DATA@%$INSTALL_DATA%g
1531 s%@SET_MAKE@%$SET_MAKE%g
1532 s%@RANLIB@%$RANLIB%g
1533 s%@GP@%$GP%g
1534
1535 CEOF
1536 EOF
1537
1538 cat >> $CONFIG_STATUS <<\EOF
1539
1540 # Split the substitutions into bite-sized pieces for seds with
1541 # small command number limits, like on Digital OSF/1 and HP-UX.
1542 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1543 ac_file=1 # Number of current file.
1544 ac_beg=1 # First line for current file.
1545 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1546 ac_more_lines=:
1547 ac_sed_cmds=""
1548 while $ac_more_lines; do
1549   if test $ac_beg -gt 1; then
1550     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1551   else
1552     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1553   fi
1554   if test ! -s conftest.s$ac_file; then
1555     ac_more_lines=false
1556     rm -f conftest.s$ac_file
1557   else
1558     if test -z "$ac_sed_cmds"; then
1559       ac_sed_cmds="sed -f conftest.s$ac_file"
1560     else
1561       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1562     fi
1563     ac_file=`expr $ac_file + 1`
1564     ac_beg=$ac_end
1565     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1566   fi
1567 done
1568 if test -z "$ac_sed_cmds"; then
1569   ac_sed_cmds=cat
1570 fi
1571 EOF
1572
1573 cat >> $CONFIG_STATUS <<EOF
1574
1575 CONFIG_FILES=\${CONFIG_FILES-"Makefile source_f/Makefile source_f/slatec/Makefile source_f/randomize/Makefile source_c/Makefile source_c/routines/Makefile"}
1576 EOF
1577 cat >> $CONFIG_STATUS <<\EOF
1578 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1579   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1580   case "$ac_file" in
1581   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1582        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1583   *) ac_file_in="${ac_file}.in" ;;
1584   esac
1585
1586   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1587
1588   # Remove last slash and all that follows it.  Not all systems have dirname.
1589   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1590   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1591     # The file is in a subdirectory.
1592     test ! -d "$ac_dir" && mkdir "$ac_dir"
1593     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1594     # A "../" for each directory in $ac_dir_suffix.
1595     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1596   else
1597     ac_dir_suffix= ac_dots=
1598   fi
1599
1600   case "$ac_given_srcdir" in
1601   .)  srcdir=.
1602       if test -z "$ac_dots"; then top_srcdir=.
1603       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1604   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1605   *) # Relative path.
1606     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1607     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1608   esac
1609
1610   case "$ac_given_INSTALL" in
1611   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1612   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1613   esac
1614
1615   echo creating "$ac_file"
1616   rm -f "$ac_file"
1617   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1618   case "$ac_file" in
1619   *Makefile*) ac_comsub="1i\\
1620 # $configure_input" ;;
1621   *) ac_comsub= ;;
1622   esac
1623
1624   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1625   sed -e "$ac_comsub
1626 s%@configure_input@%$configure_input%g
1627 s%@srcdir@%$srcdir%g
1628 s%@top_srcdir@%$top_srcdir%g
1629 s%@INSTALL@%$INSTALL%g
1630 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1631 fi; done
1632 rm -f conftest.s*
1633
1634 EOF
1635 cat >> $CONFIG_STATUS <<EOF
1636
1637 EOF
1638 cat >> $CONFIG_STATUS <<\EOF
1639
1640 exit 0
1641 EOF
1642 chmod +x $CONFIG_STATUS
1643 rm -fr confdefs* $ac_clean_files
1644 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1645