source: git/MP/configure @ 551da5

spielwiese
Last change on this file since 551da5 was 551da5, checked in by Hans Schönemann <hannes@…>, 24 years ago
*** empty log message *** git-svn-id: file:///usr/local/Singular/svn/trunk@3000 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100755
File size: 121.6 KB
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.12
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_default_prefix=`pwd`
15ac_help="$ac_help
16\
17   --disable-MPT           disable building of MPT library"
18ac_help="$ac_help
19\
20   --disable-gmp           configure and build without gmp library"
21ac_help="$ac_help
22\
23   --enable-example        enable building of example programs"
24ac_help="$ac_help
25\
26   --enable-mpviewer       enable building of mpviewer program"
27ac_help="$ac_help
28\
29   --enable-mppvm          enable building of mppvm routines"
30ac_help="$ac_help
31\
32   --with-default_apint=PACKAGE    use PACKAGE as MP's default ApInt format
33                           where PACKAGE can be: gmp (default), pari,
34                           saclib, none"
35ac_help="$ac_help
36\
37   --with-default_apreal=PACKAGE   use PACKAGE as MP's default ApReal format
38                           where PACKAGE can be: gmp (default), none"
39ac_help="$ac_help
40\
41   --without-gmp           build without gmp ApNumber routines"
42ac_help="$ac_help
43\
44   --with-pari             build with pari ApInt routines"
45ac_help="$ac_help
46\
47   --with-saclib           build with saclib ApInt routines"
48ac_help="$ac_help
49\
50   --with-tb               build with Toolbus device interface"
51ac_help="$ac_help
52\
53   --with-pvm              build with Pvm saclib device interface"
54ac_help="$ac_help
55\
56   --with-debug            build with debug options and logging"
57ac_help="$ac_help
58\
59   --with-extra_cflags=cflags   build with 'cflags' appended to
60                                 CFLAGS given to the compiler"
61ac_help="$ac_help
62\
63  --with-rsh=command       use 'command' as remote shell command"
64ac_help="$ac_help
65\
66  --with-malloc=HEADER     use external malloc routines declared in HEADER"
67
68# Initialize some variables set by options.
69# The variables have the same names as the options, with
70# dashes changed to underlines.
71build=NONE
72cache_file=./config.cache
73exec_prefix=NONE
74host=NONE
75no_create=
76nonopt=NONE
77no_recursion=
78prefix=NONE
79program_prefix=NONE
80program_suffix=NONE
81program_transform_name=s,x,x,
82silent=
83site=
84srcdir=
85target=NONE
86verbose=
87x_includes=NONE
88x_libraries=NONE
89bindir='${exec_prefix}/bin'
90sbindir='${exec_prefix}/sbin'
91libexecdir='${exec_prefix}/libexec'
92datadir='${prefix}/share'
93sysconfdir='${prefix}/etc'
94sharedstatedir='${prefix}/com'
95localstatedir='${prefix}/var'
96libdir='${exec_prefix}/lib'
97includedir='${prefix}/include'
98oldincludedir='/usr/include'
99infodir='${prefix}/info'
100mandir='${prefix}/man'
101
102# Initialize some other variables.
103subdirs=
104MFLAGS= MAKEFLAGS=
105# Maximum number of lines to put in a shell here document.
106ac_max_here_lines=12
107
108ac_prev=
109for ac_option
110do
111
112  # If the previous option needs an argument, assign it.
113  if test -n "$ac_prev"; then
114    eval "$ac_prev=\$ac_option"
115    ac_prev=
116    continue
117  fi
118
119  case "$ac_option" in
120  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
121  *) ac_optarg= ;;
122  esac
123
124  # Accept the important Cygnus configure options, so we can diagnose typos.
125
126  case "$ac_option" in
127
128  -bindir | --bindir | --bindi | --bind | --bin | --bi)
129    ac_prev=bindir ;;
130  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
131    bindir="$ac_optarg" ;;
132
133  -build | --build | --buil | --bui | --bu)
134    ac_prev=build ;;
135  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
136    build="$ac_optarg" ;;
137
138  -cache-file | --cache-file | --cache-fil | --cache-fi \
139  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
140    ac_prev=cache_file ;;
141  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
142  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
143    cache_file="$ac_optarg" ;;
144
145  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
146    ac_prev=datadir ;;
147  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
148  | --da=*)
149    datadir="$ac_optarg" ;;
150
151  -disable-* | --disable-*)
152    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
153    # Reject names that are not valid shell variable names.
154    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
155      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
156    fi
157    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
158    eval "enable_${ac_feature}=no" ;;
159
160  -enable-* | --enable-*)
161    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
162    # Reject names that are not valid shell variable names.
163    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
164      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165    fi
166    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
167    case "$ac_option" in
168      *=*) ;;
169      *) ac_optarg=yes ;;
170    esac
171    eval "enable_${ac_feature}='$ac_optarg'" ;;
172
173  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
174  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
175  | --exec | --exe | --ex)
176    ac_prev=exec_prefix ;;
177  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
178  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
179  | --exec=* | --exe=* | --ex=*)
180    exec_prefix="$ac_optarg" ;;
181
182  -gas | --gas | --ga | --g)
183    # Obsolete; use --with-gas.
184    with_gas=yes ;;
185
186  -help | --help | --hel | --he)
187    # Omit some internal or obsolete options to make the list less imposing.
188    # This message is too long to be a string in the A/UX 3.1 sh.
189    cat << EOF
190Usage: configure [options] [host]
191Options: [defaults in brackets after descriptions]
192Configuration:
193  --cache-file=FILE       cache test results in FILE
194  --help                  print this message
195  --no-create             do not create output files
196  --quiet, --silent       do not print \`checking...' messages
197  --version               print the version of autoconf that created configure
198Directory and file names:
199  --prefix=PREFIX         install architecture-independent files in PREFIX
200                          [$ac_default_prefix]
201  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
202                          [same as prefix]
203  --bindir=DIR            user executables in DIR [EPREFIX/bin]
204  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
205  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
206  --datadir=DIR           read-only architecture-independent data in DIR
207                          [PREFIX/share]
208  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
209  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
210                          [PREFIX/com]
211  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
212  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
213  --includedir=DIR        C header files in DIR [PREFIX/include]
214  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
215  --infodir=DIR           info documentation in DIR [PREFIX/info]
216  --mandir=DIR            man documentation in DIR [PREFIX/man]
217  --srcdir=DIR            find the sources in DIR [configure dir or ..]
218  --program-prefix=PREFIX prepend PREFIX to installed program names
219  --program-suffix=SUFFIX append SUFFIX to installed program names
220  --program-transform-name=PROGRAM
221                          run sed PROGRAM on installed program names
222EOF
223    cat << EOF
224Host type:
225  --build=BUILD           configure for building on BUILD [BUILD=HOST]
226  --host=HOST             configure for HOST [guessed]
227  --target=TARGET         configure for TARGET [TARGET=HOST]
228Features and packages:
229  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
230  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
231  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
232  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
233  --x-includes=DIR        X include files are in DIR
234  --x-libraries=DIR       X library files are in DIR
235EOF
236    if test -n "$ac_help"; then
237      echo "--enable and --with options recognized:$ac_help"
238    fi
239    exit 0 ;;
240
241  -host | --host | --hos | --ho)
242    ac_prev=host ;;
243  -host=* | --host=* | --hos=* | --ho=*)
244    host="$ac_optarg" ;;
245
246  -includedir | --includedir | --includedi | --included | --include \
247  | --includ | --inclu | --incl | --inc)
248    ac_prev=includedir ;;
249  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
250  | --includ=* | --inclu=* | --incl=* | --inc=*)
251    includedir="$ac_optarg" ;;
252
253  -infodir | --infodir | --infodi | --infod | --info | --inf)
254    ac_prev=infodir ;;
255  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
256    infodir="$ac_optarg" ;;
257
258  -libdir | --libdir | --libdi | --libd)
259    ac_prev=libdir ;;
260  -libdir=* | --libdir=* | --libdi=* | --libd=*)
261    libdir="$ac_optarg" ;;
262
263  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
264  | --libexe | --libex | --libe)
265    ac_prev=libexecdir ;;
266  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
267  | --libexe=* | --libex=* | --libe=*)
268    libexecdir="$ac_optarg" ;;
269
270  -localstatedir | --localstatedir | --localstatedi | --localstated \
271  | --localstate | --localstat | --localsta | --localst \
272  | --locals | --local | --loca | --loc | --lo)
273    ac_prev=localstatedir ;;
274  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
275  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
276  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
277    localstatedir="$ac_optarg" ;;
278
279  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
280    ac_prev=mandir ;;
281  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
282    mandir="$ac_optarg" ;;
283
284  -nfp | --nfp | --nf)
285    # Obsolete; use --without-fp.
286    with_fp=no ;;
287
288  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
289  | --no-cr | --no-c)
290    no_create=yes ;;
291
292  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
293  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
294    no_recursion=yes ;;
295
296  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
297  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
298  | --oldin | --oldi | --old | --ol | --o)
299    ac_prev=oldincludedir ;;
300  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
301  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
302  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
303    oldincludedir="$ac_optarg" ;;
304
305  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
306    ac_prev=prefix ;;
307  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
308    prefix="$ac_optarg" ;;
309
310  -program-prefix | --program-prefix | --program-prefi | --program-pref \
311  | --program-pre | --program-pr | --program-p)
312    ac_prev=program_prefix ;;
313  -program-prefix=* | --program-prefix=* | --program-prefi=* \
314  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
315    program_prefix="$ac_optarg" ;;
316
317  -program-suffix | --program-suffix | --program-suffi | --program-suff \
318  | --program-suf | --program-su | --program-s)
319    ac_prev=program_suffix ;;
320  -program-suffix=* | --program-suffix=* | --program-suffi=* \
321  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
322    program_suffix="$ac_optarg" ;;
323
324  -program-transform-name | --program-transform-name \
325  | --program-transform-nam | --program-transform-na \
326  | --program-transform-n | --program-transform- \
327  | --program-transform | --program-transfor \
328  | --program-transfo | --program-transf \
329  | --program-trans | --program-tran \
330  | --progr-tra | --program-tr | --program-t)
331    ac_prev=program_transform_name ;;
332  -program-transform-name=* | --program-transform-name=* \
333  | --program-transform-nam=* | --program-transform-na=* \
334  | --program-transform-n=* | --program-transform-=* \
335  | --program-transform=* | --program-transfor=* \
336  | --program-transfo=* | --program-transf=* \
337  | --program-trans=* | --program-tran=* \
338  | --progr-tra=* | --program-tr=* | --program-t=*)
339    program_transform_name="$ac_optarg" ;;
340
341  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
342  | -silent | --silent | --silen | --sile | --sil)
343    silent=yes ;;
344
345  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
346    ac_prev=sbindir ;;
347  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
348  | --sbi=* | --sb=*)
349    sbindir="$ac_optarg" ;;
350
351  -sharedstatedir | --sharedstatedir | --sharedstatedi \
352  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
353  | --sharedst | --shareds | --shared | --share | --shar \
354  | --sha | --sh)
355    ac_prev=sharedstatedir ;;
356  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
357  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
358  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
359  | --sha=* | --sh=*)
360    sharedstatedir="$ac_optarg" ;;
361
362  -site | --site | --sit)
363    ac_prev=site ;;
364  -site=* | --site=* | --sit=*)
365    site="$ac_optarg" ;;
366
367  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
368    ac_prev=srcdir ;;
369  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
370    srcdir="$ac_optarg" ;;
371
372  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
373  | --syscon | --sysco | --sysc | --sys | --sy)
374    ac_prev=sysconfdir ;;
375  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
376  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
377    sysconfdir="$ac_optarg" ;;
378
379  -target | --target | --targe | --targ | --tar | --ta | --t)
380    ac_prev=target ;;
381  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
382    target="$ac_optarg" ;;
383
384  -v | -verbose | --verbose | --verbos | --verbo | --verb)
385    verbose=yes ;;
386
387  -version | --version | --versio | --versi | --vers)
388    echo "configure generated by autoconf version 2.12"
389    exit 0 ;;
390
391  -with-* | --with-*)
392    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
393    # Reject names that are not valid shell variable names.
394    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
395      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
396    fi
397    ac_package=`echo $ac_package| sed 's/-/_/g'`
398    case "$ac_option" in
399      *=*) ;;
400      *) ac_optarg=yes ;;
401    esac
402    eval "with_${ac_package}='$ac_optarg'" ;;
403
404  -without-* | --without-*)
405    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
406    # Reject names that are not valid shell variable names.
407    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
408      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
409    fi
410    ac_package=`echo $ac_package| sed 's/-/_/g'`
411    eval "with_${ac_package}=no" ;;
412
413  --x)
414    # Obsolete; use --with-x.
415    with_x=yes ;;
416
417  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
418  | --x-incl | --x-inc | --x-in | --x-i)
419    ac_prev=x_includes ;;
420  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
421  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
422    x_includes="$ac_optarg" ;;
423
424  -x-libraries | --x-libraries | --x-librarie | --x-librari \
425  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
426    ac_prev=x_libraries ;;
427  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
428  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
429    x_libraries="$ac_optarg" ;;
430
431  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
432    ;;
433
434  *)
435    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
436      echo "configure: warning: $ac_option: invalid host type" 1>&2
437    fi
438    if test "x$nonopt" != xNONE; then
439      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
440    fi
441    nonopt="$ac_option"
442    ;;
443
444  esac
445done
446
447if test -n "$ac_prev"; then
448  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
449fi
450
451trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
452
453# File descriptor usage:
454# 0 standard input
455# 1 file creation
456# 2 errors and warnings
457# 3 some systems may open it to /dev/tty
458# 4 used on the Kubota Titan
459# 6 checking for... messages and results
460# 5 compiler messages saved in config.log
461if test "$silent" = yes; then
462  exec 6>/dev/null
463else
464  exec 6>&1
465fi
466exec 5>./config.log
467
468echo "\
469This file contains any messages produced by compilers while
470running configure, to aid debugging if configure makes a mistake.
471" 1>&5
472
473# Strip out --no-create and --no-recursion so they do not pile up.
474# Also quote any args containing shell metacharacters.
475ac_configure_args=
476for ac_arg
477do
478  case "$ac_arg" in
479  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
480  | --no-cr | --no-c) ;;
481  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
482  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
483  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
484  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
485  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
486  esac
487done
488
489# NLS nuisances.
490# Only set these to C if already set.  These must not be set unconditionally
491# because not all systems understand e.g. LANG=C (notably SCO).
492# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
493# Non-C LC_CTYPE values break the ctype check.
494if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
495if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
496if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
497if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
498
499# confdefs.h avoids OS command line length limits that DEFS can exceed.
500rm -rf conftest* confdefs.h
501# AIX cpp loses on an empty file, so make sure it contains at least a newline.
502echo > confdefs.h
503
504# A filename unique to this package, relative to the directory that
505# configure is in, which we can look for to find out if srcdir is correct.
506ac_unique_file=MP/MP_Put.c
507
508# Find the source files, if location was not specified.
509if test -z "$srcdir"; then
510  ac_srcdir_defaulted=yes
511  # Try the directory containing this script, then its parent.
512  ac_prog=$0
513  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
514  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
515  srcdir=$ac_confdir
516  if test ! -r $srcdir/$ac_unique_file; then
517    srcdir=..
518  fi
519else
520  ac_srcdir_defaulted=no
521fi
522if test ! -r $srcdir/$ac_unique_file; then
523  if test "$ac_srcdir_defaulted" = yes; then
524    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
525  else
526    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
527  fi
528fi
529srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
530
531# Prefer explicitly selected file to automatically selected ones.
532if test -z "$CONFIG_SITE"; then
533  if test "x$prefix" != xNONE; then
534    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
535  else
536    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
537  fi
538fi
539for ac_site_file in $CONFIG_SITE; do
540  if test -r "$ac_site_file"; then
541    echo "loading site script $ac_site_file"
542    . "$ac_site_file"
543  fi
544done
545
546if test -r "$cache_file"; then
547  echo "loading cache $cache_file"
548  . $cache_file
549else
550  echo "creating cache $cache_file"
551  > $cache_file
552fi
553
554ac_ext=c
555# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
556ac_cpp='$CPP $CPPFLAGS'
557ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
558ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
559cross_compiling=$ac_cv_prog_cc_cross
560
561if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
562  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
563  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
564    ac_n= ac_c='
565' ac_t='        '
566  else
567    ac_n=-n ac_c= ac_t=
568  fi
569else
570  ac_n= ac_c='\c' ac_t=
571fi
572
573
574
575
576PRODUCT=MP
577VERSION=1.1.2.1
578
579
580cat >> confdefs.h <<EOF
581#define MP_VERSION "$VERSION"
582EOF
583
584ac_aux_dir=
585for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
586  if test -f $ac_dir/install-sh; then
587    ac_aux_dir=$ac_dir
588    ac_install_sh="$ac_aux_dir/install-sh -c"
589    break
590  elif test -f $ac_dir/install.sh; then
591    ac_aux_dir=$ac_dir
592    ac_install_sh="$ac_aux_dir/install.sh -c"
593    break
594  fi
595done
596if test -z "$ac_aux_dir"; then
597  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
598fi
599ac_config_guess=$ac_aux_dir/config.guess
600ac_config_sub=$ac_aux_dir/config.sub
601ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
602
603
604# Do some error checking and defaulting for the host and target type.
605# The inputs are:
606#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
607#
608# The rules are:
609# 1. You are not allowed to specify --host, --target, and nonopt at the
610#    same time.
611# 2. Host defaults to nonopt.
612# 3. If nonopt is not specified, then host defaults to the current host,
613#    as determined by config.guess.
614# 4. Target and build default to nonopt.
615# 5. If nonopt is not specified, then target and build default to host.
616
617# The aliases save the names the user supplied, while $host etc.
618# will get canonicalized.
619case $host---$target---$nonopt in
620NONE---*---* | *---NONE---* | *---*---NONE) ;;
621*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
622esac
623
624
625# Make sure we can run config.sub.
626if $ac_config_sub sun4 >/dev/null 2>&1; then :
627else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
628fi
629
630echo $ac_n "checking host system type""... $ac_c" 1>&6
631echo "configure:632: checking host system type" >&5
632
633host_alias=$host
634case "$host_alias" in
635NONE)
636  case $nonopt in
637  NONE)
638    if host_alias=`$ac_config_guess`; then :
639    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
640    fi ;;
641  *) host_alias=$nonopt ;;
642  esac ;;
643esac
644
645host=`$ac_config_sub $host_alias`
646host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
647host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
648host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
649echo "$ac_t""$host" 1>&6
650
651echo $ac_n "checking target system type""... $ac_c" 1>&6
652echo "configure:653: checking target system type" >&5
653
654target_alias=$target
655case "$target_alias" in
656NONE)
657  case $nonopt in
658  NONE) target_alias=$host_alias ;;
659  *) target_alias=$nonopt ;;
660  esac ;;
661esac
662
663target=`$ac_config_sub $target_alias`
664target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
665target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
666target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
667echo "$ac_t""$target" 1>&6
668
669echo $ac_n "checking build system type""... $ac_c" 1>&6
670echo "configure:671: checking build system type" >&5
671
672build_alias=$build
673case "$build_alias" in
674NONE)
675  case $nonopt in
676  NONE) build_alias=$host_alias ;;
677  *) build_alias=$nonopt ;;
678  esac ;;
679esac
680
681build=`$ac_config_sub $build_alias`
682build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
683build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
684build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
685echo "$ac_t""$build" 1>&6
686
687test "$host_alias" != "$target_alias" &&
688  test "$program_prefix$program_suffix$program_transform_name" = \
689    NONENONEs,x,x, &&
690  program_prefix=${target_alias}-
691
692
693
694
695
696echo $ac_n "checking for architecture identifier""... $ac_c" 1>&6
697echo "configure:698: checking for architecture identifier" >&5 
698if eval "test \"`echo '$''{'ac_cv_arch'+set}'`\" = set"; then
699  echo $ac_n "(cached) $ac_c" 1>&6
700else
701  ac_cv_arch=`./pvmgetarch`
702fi
703
704echo "$ac_t""$ac_cv_arch" 1>&6
705
706if test "$libdir" = '${exec_prefix}/lib' && test "$exec_prefix" = "NONE"; then
707  libdir='${prefix}/lib/'$ac_cv_arch
708fi
709
710if test "$bindir" = '${exec_prefix}/bin' && test "$exec_prefix" = "NONE"; then
711  bindir='${prefix}/bin/'$ac_cv_arch
712fi
713
714# Extract the first word of "ranlib", so it can be a program name with args.
715set dummy ranlib; ac_word=$2
716echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
717echo "configure:718: checking for $ac_word" >&5
718if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
719  echo $ac_n "(cached) $ac_c" 1>&6
720else
721  if test -n "$RANLIB"; then
722  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
723else
724  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
725  for ac_dir in $PATH; do
726    test -z "$ac_dir" && ac_dir=.
727    if test -f $ac_dir/$ac_word; then
728      ac_cv_prog_RANLIB="ranlib"
729      break
730    fi
731  done
732  IFS="$ac_save_ifs"
733  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
734fi
735fi
736RANLIB="$ac_cv_prog_RANLIB"
737if test -n "$RANLIB"; then
738  echo "$ac_t""$RANLIB" 1>&6
739else
740  echo "$ac_t""no" 1>&6
741fi
742
743# Extract the first word of "ar", so it can be a program name with args.
744set dummy ar; ac_word=$2
745echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
746echo "configure:747: checking for $ac_word" >&5
747if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
748  echo $ac_n "(cached) $ac_c" 1>&6
749else
750  if test -n "$AR"; then
751  ac_cv_prog_AR="$AR" # Let the user override the test.
752else
753  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
754  for ac_dir in $PATH; do
755    test -z "$ac_dir" && ac_dir=.
756    if test -f $ac_dir/$ac_word; then
757      ac_cv_prog_AR="ar"
758      break
759    fi
760  done
761  IFS="$ac_save_ifs"
762  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=":"
763fi
764fi
765AR="$ac_cv_prog_AR"
766if test -n "$AR"; then
767  echo "$ac_t""$AR" 1>&6
768else
769  echo "$ac_t""no" 1>&6
770fi
771
772if test "$ac_cv_prog_AR" != ar; then
773  { echo "configure: error: *** ar program not found" 1>&2; exit 1; }
774fi
775
776
777if test "$with_debug" = yes; then
778  if test "${CFLAGS+set}" != set; then 
779    CFLAGS="-g"
780    ac_cv_cflags_not_set=yes
781  fi
782  cat >> confdefs.h <<\EOF
783#define MPT_DEBUG 1
784EOF
785
786else
787  if test "${CFLAGS+set}" != set; then
788    CFLAGS="-O"
789    ac_cv_cflags_not_set=yes
790  fi
791  cat >> confdefs.h <<\EOF
792#define NO_LOGGING 1
793EOF
794
795fi
796
797# Extract the first word of "gcc", so it can be a program name with args.
798set dummy gcc; ac_word=$2
799echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
800echo "configure:801: checking for $ac_word" >&5
801if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
802  echo $ac_n "(cached) $ac_c" 1>&6
803else
804  if test -n "$CC"; then
805  ac_cv_prog_CC="$CC" # Let the user override the test.
806else
807  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
808  for ac_dir in $PATH; do
809    test -z "$ac_dir" && ac_dir=.
810    if test -f $ac_dir/$ac_word; then
811      ac_cv_prog_CC="gcc"
812      break
813    fi
814  done
815  IFS="$ac_save_ifs"
816fi
817fi
818CC="$ac_cv_prog_CC"
819if test -n "$CC"; then
820  echo "$ac_t""$CC" 1>&6
821else
822  echo "$ac_t""no" 1>&6
823fi
824
825if test -z "$CC"; then
826  # Extract the first word of "cc", so it can be a program name with args.
827set dummy cc; ac_word=$2
828echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
829echo "configure:830: checking for $ac_word" >&5
830if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
831  echo $ac_n "(cached) $ac_c" 1>&6
832else
833  if test -n "$CC"; then
834  ac_cv_prog_CC="$CC" # Let the user override the test.
835else
836  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
837  ac_prog_rejected=no
838  for ac_dir in $PATH; do
839    test -z "$ac_dir" && ac_dir=.
840    if test -f $ac_dir/$ac_word; then
841      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
842        ac_prog_rejected=yes
843        continue
844      fi
845      ac_cv_prog_CC="cc"
846      break
847    fi
848  done
849  IFS="$ac_save_ifs"
850if test $ac_prog_rejected = yes; then
851  # We found a bogon in the path, so make sure we never use it.
852  set dummy $ac_cv_prog_CC
853  shift
854  if test $# -gt 0; then
855    # We chose a different compiler from the bogus one.
856    # However, it has the same basename, so the bogon will be chosen
857    # first if we set CC to just the basename; use the full file name.
858    shift
859    set dummy "$ac_dir/$ac_word" "$@"
860    shift
861    ac_cv_prog_CC="$@"
862  fi
863fi
864fi
865fi
866CC="$ac_cv_prog_CC"
867if test -n "$CC"; then
868  echo "$ac_t""$CC" 1>&6
869else
870  echo "$ac_t""no" 1>&6
871fi
872
873  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
874fi
875
876echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
877echo "configure:878: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
878
879ac_ext=c
880# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
881ac_cpp='$CPP $CPPFLAGS'
882ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
883ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
884cross_compiling=$ac_cv_prog_cc_cross
885
886cat > conftest.$ac_ext <<EOF
887#line 888 "configure"
888#include "confdefs.h"
889main(){return(0);}
890EOF
891if { (eval echo configure:892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
892  ac_cv_prog_cc_works=yes
893  # If we can't run a trivial program, we are probably using a cross compiler.
894  if (./conftest; exit) 2>/dev/null; then
895    ac_cv_prog_cc_cross=no
896  else
897    ac_cv_prog_cc_cross=yes
898  fi
899else
900  echo "configure: failed program was:" >&5
901  cat conftest.$ac_ext >&5
902  ac_cv_prog_cc_works=no
903fi
904rm -fr conftest*
905
906echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
907if test $ac_cv_prog_cc_works = no; then
908  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
909fi
910echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
911echo "configure:912: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
912echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
913cross_compiling=$ac_cv_prog_cc_cross
914
915echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
916echo "configure:917: checking whether we are using GNU C" >&5
917if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
918  echo $ac_n "(cached) $ac_c" 1>&6
919else
920  cat > conftest.c <<EOF
921#ifdef __GNUC__
922  yes;
923#endif
924EOF
925if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
926  ac_cv_prog_gcc=yes
927else
928  ac_cv_prog_gcc=no
929fi
930fi
931
932echo "$ac_t""$ac_cv_prog_gcc" 1>&6
933
934if test $ac_cv_prog_gcc = yes; then
935  GCC=yes
936  ac_test_CFLAGS="${CFLAGS+set}"
937  ac_save_CFLAGS="$CFLAGS"
938  CFLAGS=
939  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
940echo "configure:941: checking whether ${CC-cc} accepts -g" >&5
941if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
942  echo $ac_n "(cached) $ac_c" 1>&6
943else
944  echo 'void f(){}' > conftest.c
945if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
946  ac_cv_prog_cc_g=yes
947else
948  ac_cv_prog_cc_g=no
949fi
950rm -f conftest*
951
952fi
953
954echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
955  if test "$ac_test_CFLAGS" = set; then
956    CFLAGS="$ac_save_CFLAGS"
957  elif test $ac_cv_prog_cc_g = yes; then
958    CFLAGS="-g -O2"
959  else
960    CFLAGS="-O2"
961  fi
962else
963  GCC=
964  test "${CFLAGS+set}" = set || CFLAGS="-g"
965fi
966
967echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
968echo "configure:969: checking how to run the C preprocessor" >&5
969# On Suns, sometimes $CPP names a directory.
970if test -n "$CPP" && test -d "$CPP"; then
971  CPP=
972fi
973if test -z "$CPP"; then
974if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
975  echo $ac_n "(cached) $ac_c" 1>&6
976else
977    # This must be in double quotes, not single quotes, because CPP may get
978  # substituted into the Makefile and "${CC-cc}" will confuse make.
979  CPP="${CC-cc} -E"
980  # On the NeXT, cc -E runs the code through the compiler's parser,
981  # not just through cpp.
982  cat > conftest.$ac_ext <<EOF
983#line 984 "configure"
984#include "confdefs.h"
985#include <assert.h>
986Syntax Error
987EOF
988ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
989{ (eval echo configure:990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
990ac_err=`grep -v '^ *+' conftest.out`
991if test -z "$ac_err"; then
992  :
993else
994  echo "$ac_err" >&5
995  echo "configure: failed program was:" >&5
996  cat conftest.$ac_ext >&5
997  rm -rf conftest*
998  CPP="${CC-cc} -E -traditional-cpp"
999  cat > conftest.$ac_ext <<EOF
1000#line 1001 "configure"
1001#include "confdefs.h"
1002#include <assert.h>
1003Syntax Error
1004EOF
1005ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1006{ (eval echo configure:1007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1007ac_err=`grep -v '^ *+' conftest.out`
1008if test -z "$ac_err"; then
1009  :
1010else
1011  echo "$ac_err" >&5
1012  echo "configure: failed program was:" >&5
1013  cat conftest.$ac_ext >&5
1014  rm -rf conftest*
1015  CPP=/lib/cpp
1016fi
1017rm -f conftest*
1018fi
1019rm -f conftest*
1020  ac_cv_prog_CPP="$CPP"
1021fi
1022  CPP="$ac_cv_prog_CPP"
1023else
1024  ac_cv_prog_CPP="$CPP"
1025fi
1026echo "$ac_t""$CPP" 1>&6
1027
1028for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1029do
1030# Extract the first word of "$ac_prog", so it can be a program name with args.
1031set dummy $ac_prog; ac_word=$2
1032echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1033echo "configure:1034: checking for $ac_word" >&5
1034if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1035  echo $ac_n "(cached) $ac_c" 1>&6
1036else
1037  if test -n "$CXX"; then
1038  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1039else
1040  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1041  for ac_dir in $PATH; do
1042    test -z "$ac_dir" && ac_dir=.
1043    if test -f $ac_dir/$ac_word; then
1044      ac_cv_prog_CXX="$ac_prog"
1045      break
1046    fi
1047  done
1048  IFS="$ac_save_ifs"
1049fi
1050fi
1051CXX="$ac_cv_prog_CXX"
1052if test -n "$CXX"; then
1053  echo "$ac_t""$CXX" 1>&6
1054else
1055  echo "$ac_t""no" 1>&6
1056fi
1057
1058test -n "$CXX" && break
1059done
1060test -n "$CXX" || CXX="gcc"
1061
1062
1063echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1064echo "configure:1065: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1065
1066ac_ext=C
1067# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1068ac_cpp='$CXXCPP $CPPFLAGS'
1069ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1070ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1071cross_compiling=$ac_cv_prog_cxx_cross
1072
1073cat > conftest.$ac_ext <<EOF
1074#line 1075 "configure"
1075#include "confdefs.h"
1076main(){return(0);}
1077EOF
1078if { (eval echo configure:1079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1079  ac_cv_prog_cxx_works=yes
1080  # If we can't run a trivial program, we are probably using a cross compiler.
1081  if (./conftest; exit) 2>/dev/null; then
1082    ac_cv_prog_cxx_cross=no
1083  else
1084    ac_cv_prog_cxx_cross=yes
1085  fi
1086else
1087  echo "configure: failed program was:" >&5
1088  cat conftest.$ac_ext >&5
1089  ac_cv_prog_cxx_works=no
1090fi
1091rm -fr conftest*
1092ac_ext=c
1093# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1094ac_cpp='$CPP $CPPFLAGS'
1095ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1096ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1097cross_compiling=$ac_cv_prog_cc_cross
1098
1099echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1100if test $ac_cv_prog_cxx_works = no; then
1101  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1102fi
1103echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1104echo "configure:1105: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1105echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1106cross_compiling=$ac_cv_prog_cxx_cross
1107
1108echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1109echo "configure:1110: checking whether we are using GNU C++" >&5
1110if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1111  echo $ac_n "(cached) $ac_c" 1>&6
1112else
1113  cat > conftest.C <<EOF
1114#ifdef __GNUC__
1115  yes;
1116#endif
1117EOF
1118if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1119  ac_cv_prog_gxx=yes
1120else
1121  ac_cv_prog_gxx=no
1122fi
1123fi
1124
1125echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1126
1127if test $ac_cv_prog_gxx = yes; then
1128  GXX=yes
1129  ac_test_CXXFLAGS="${CXXFLAGS+set}"
1130  ac_save_CXXFLAGS="$CXXFLAGS"
1131  CXXFLAGS=
1132  echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1133echo "configure:1134: checking whether ${CXX-g++} accepts -g" >&5
1134if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1135  echo $ac_n "(cached) $ac_c" 1>&6
1136else
1137  echo 'void f(){}' > conftest.cc
1138if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1139  ac_cv_prog_cxx_g=yes
1140else
1141  ac_cv_prog_cxx_g=no
1142fi
1143rm -f conftest*
1144
1145fi
1146
1147echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1148  if test "$ac_test_CXXFLAGS" = set; then
1149    CXXFLAGS="$ac_save_CXXFLAGS"
1150  elif test $ac_cv_prog_cxx_g = yes; then
1151    CXXFLAGS="-g -O2"
1152  else
1153    CXXFLAGS="-O2"
1154  fi
1155else
1156  GXX=
1157  test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1158fi
1159
1160echo $ac_n "checking for AIX""... $ac_c" 1>&6
1161echo "configure:1162: checking for AIX" >&5
1162cat > conftest.$ac_ext <<EOF
1163#line 1164 "configure"
1164#include "confdefs.h"
1165#ifdef _AIX
1166  yes
1167#endif
1168
1169EOF
1170if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1171  egrep "yes" >/dev/null 2>&1; then
1172  rm -rf conftest*
1173  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1174#define _ALL_SOURCE 1
1175EOF
1176
1177else
1178  rm -rf conftest*
1179  echo "$ac_t""no" 1>&6
1180fi
1181rm -f conftest*
1182
1183
1184
1185if test "${GCC}" != yes; then
1186  echo not using gcc, so checking for special flags and defines
1187  case "$target" in
1188    hppa1*)
1189      if test "$ac_cv_prog_CC" = cc; then
1190         echo Using HPUX native compiler with -Aa and -D_HPUX_SOURCE
1191         CFLAGS="$CFLAGS -Aa "
1192         
1193      fi
1194  esac
1195fi
1196
1197if test "$libdir" = '${exec_prefix}/lib'; then
1198  if test "x$exec_prefix" = xNONE; then
1199    if test "x$prefix" = xNONE; then
1200      LDFLAGS="-L${ac_default_prefix}/lib ${LDFLAGS}"
1201    else
1202      LDFLAGS="-L${prefix}/lib ${LDFLAGS}"
1203    fi
1204  else
1205    LDFLAGS="-L${exec_prefix}/lib ${LDFLAGS}"
1206  fi
1207elif test "$libdir" = '${prefix}/lib/'$ac_cv_arch ; then
1208  if test "x$prefix" = xNONE; then
1209    LDFLAGS="-L${ac_default_prefix}/lib/$ac_cv_arch  ${LDFLAGS}"
1210  else
1211    LDFLAGS="-L${prefix}/lib/$ac_cv_arch ${LDFLAGS}"
1212  fi
1213else
1214  LDFLAGS="-L${libdir} ${LDFLAGS}"
1215fi
1216
1217if test "$includedir" = '${prefix}/include'; then
1218  if test "x$prefix" = xNONE; then
1219    CPPFLAGS="-I${ac_default_prefix}/include ${CPPFLAGS}"
1220  else
1221    CPPFLAGS="-I${prefix}/include ${CPPFLAGS}"
1222  fi
1223else
1224  CPPFLAGS="-I${includedir} ${CPPFLAGS}"
1225fi
1226
1227if test "${PVM_ROOT+set}" = set; then
1228  if test "$enable_mppvm" = yes || test "$with_pvm" = yes; then
1229    CPPFLAGS="${CPPFLAGS} -I${PVM_ROOT}/include"
1230    if test "${PVM_ARCH+set}" = set; then
1231      LDFLAGS="${LDFLAGS} -L{PVM_ROOT}/lib/${PVM_ARCH}"
1232    fi
1233  fi
1234fi
1235
1236echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1237echo "configure:1238: checking whether ${MAKE-make} sets \${MAKE}" >&5
1238set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1239if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1240  echo $ac_n "(cached) $ac_c" 1>&6
1241else
1242  cat > conftestmake <<\EOF
1243all:
1244        @echo 'ac_maketemp="${MAKE}"'
1245EOF
1246# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1247eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1248if test -n "$ac_maketemp"; then
1249  eval ac_cv_prog_make_${ac_make}_set=yes
1250else
1251  eval ac_cv_prog_make_${ac_make}_set=no
1252fi
1253rm -f conftestmake
1254fi
1255if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1256  echo "$ac_t""yes" 1>&6
1257  SET_MAKE=
1258else
1259  echo "$ac_t""no" 1>&6
1260  SET_MAKE="MAKE=${MAKE-make}"
1261fi
1262
1263echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1264echo "configure:1265: checking for ANSI C header files" >&5
1265if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1266  echo $ac_n "(cached) $ac_c" 1>&6
1267else
1268  cat > conftest.$ac_ext <<EOF
1269#line 1270 "configure"
1270#include "confdefs.h"
1271#include <stdlib.h>
1272#include <stdarg.h>
1273#include <string.h>
1274#include <float.h>
1275EOF
1276ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1277{ (eval echo configure:1278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1278ac_err=`grep -v '^ *+' conftest.out`
1279if test -z "$ac_err"; then
1280  rm -rf conftest*
1281  ac_cv_header_stdc=yes
1282else
1283  echo "$ac_err" >&5
1284  echo "configure: failed program was:" >&5
1285  cat conftest.$ac_ext >&5
1286  rm -rf conftest*
1287  ac_cv_header_stdc=no
1288fi
1289rm -f conftest*
1290
1291if test $ac_cv_header_stdc = yes; then
1292  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1293cat > conftest.$ac_ext <<EOF
1294#line 1295 "configure"
1295#include "confdefs.h"
1296#include <string.h>
1297EOF
1298if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1299  egrep "memchr" >/dev/null 2>&1; then
1300  :
1301else
1302  rm -rf conftest*
1303  ac_cv_header_stdc=no
1304fi
1305rm -f conftest*
1306
1307fi
1308
1309if test $ac_cv_header_stdc = yes; then
1310  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1311cat > conftest.$ac_ext <<EOF
1312#line 1313 "configure"
1313#include "confdefs.h"
1314#include <stdlib.h>
1315EOF
1316if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1317  egrep "free" >/dev/null 2>&1; then
1318  :
1319else
1320  rm -rf conftest*
1321  ac_cv_header_stdc=no
1322fi
1323rm -f conftest*
1324
1325fi
1326
1327if test $ac_cv_header_stdc = yes; then
1328  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1329if test "$cross_compiling" = yes; then
1330  :
1331else
1332  cat > conftest.$ac_ext <<EOF
1333#line 1334 "configure"
1334#include "confdefs.h"
1335#include <ctype.h>
1336#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1337#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1338#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1339int main () { int i; for (i = 0; i < 256; i++)
1340if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1341exit (0); }
1342
1343EOF
1344if { (eval echo configure:1345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1345then
1346  :
1347else
1348  echo "configure: failed program was:" >&5
1349  cat conftest.$ac_ext >&5
1350  rm -fr conftest*
1351  ac_cv_header_stdc=no
1352fi
1353rm -fr conftest*
1354fi
1355
1356fi
1357fi
1358
1359echo "$ac_t""$ac_cv_header_stdc" 1>&6
1360if test $ac_cv_header_stdc = yes; then
1361  cat >> confdefs.h <<\EOF
1362#define STDC_HEADERS 1
1363EOF
1364
1365fi
1366
1367echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1368echo "configure:1369: checking for pid_t" >&5
1369if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1370  echo $ac_n "(cached) $ac_c" 1>&6
1371else
1372  cat > conftest.$ac_ext <<EOF
1373#line 1374 "configure"
1374#include "confdefs.h"
1375#include <sys/types.h>
1376#if STDC_HEADERS
1377#include <stdlib.h>
1378#include <stddef.h>
1379#endif
1380EOF
1381if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1382  egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1383  rm -rf conftest*
1384  ac_cv_type_pid_t=yes
1385else
1386  rm -rf conftest*
1387  ac_cv_type_pid_t=no
1388fi
1389rm -f conftest*
1390
1391fi
1392echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1393if test $ac_cv_type_pid_t = no; then
1394  cat >> confdefs.h <<\EOF
1395#define pid_t int
1396EOF
1397
1398fi
1399
1400ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
1401echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
1402echo "configure:1403: checking for vfork.h" >&5
1403if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1404  echo $ac_n "(cached) $ac_c" 1>&6
1405else
1406  cat > conftest.$ac_ext <<EOF
1407#line 1408 "configure"
1408#include "confdefs.h"
1409#include <vfork.h>
1410EOF
1411ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1412{ (eval echo configure:1413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1413ac_err=`grep -v '^ *+' conftest.out`
1414if test -z "$ac_err"; then
1415  rm -rf conftest*
1416  eval "ac_cv_header_$ac_safe=yes"
1417else
1418  echo "$ac_err" >&5
1419  echo "configure: failed program was:" >&5
1420  cat conftest.$ac_ext >&5
1421  rm -rf conftest*
1422  eval "ac_cv_header_$ac_safe=no"
1423fi
1424rm -f conftest*
1425fi
1426if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1427  echo "$ac_t""yes" 1>&6
1428  cat >> confdefs.h <<\EOF
1429#define HAVE_VFORK_H 1
1430EOF
1431
1432else
1433  echo "$ac_t""no" 1>&6
1434fi
1435
1436echo $ac_n "checking for working vfork""... $ac_c" 1>&6
1437echo "configure:1438: checking for working vfork" >&5
1438if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
1439  echo $ac_n "(cached) $ac_c" 1>&6
1440else
1441  if test "$cross_compiling" = yes; then
1442  echo $ac_n "checking for vfork""... $ac_c" 1>&6
1443echo "configure:1444: checking for vfork" >&5
1444if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
1445  echo $ac_n "(cached) $ac_c" 1>&6
1446else
1447  cat > conftest.$ac_ext <<EOF
1448#line 1449 "configure"
1449#include "confdefs.h"
1450/* System header to define __stub macros and hopefully few prototypes,
1451    which can conflict with char vfork(); below.  */
1452#include <assert.h>
1453/* Override any gcc2 internal prototype to avoid an error.  */
1454/* We use char because int might match the return type of a gcc2
1455    builtin and then its argument prototype would still apply.  */
1456char vfork();
1457
1458int main() {
1459
1460/* The GNU C library defines this for functions which it implements
1461    to always fail with ENOSYS.  Some functions are actually named
1462    something starting with __ and the normal name is an alias.  */
1463#if defined (__stub_vfork) || defined (__stub___vfork)
1464choke me
1465#else
1466vfork();
1467#endif
1468
1469; return 0; }
1470EOF
1471if { (eval echo configure:1472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1472  rm -rf conftest*
1473  eval "ac_cv_func_vfork=yes"
1474else
1475  echo "configure: failed program was:" >&5
1476  cat conftest.$ac_ext >&5
1477  rm -rf conftest*
1478  eval "ac_cv_func_vfork=no"
1479fi
1480rm -f conftest*
1481fi
1482
1483if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
1484  echo "$ac_t""yes" 1>&6
1485  :
1486else
1487  echo "$ac_t""no" 1>&6
1488fi
1489
1490else
1491  cat > conftest.$ac_ext <<EOF
1492#line 1493 "configure"
1493#include "confdefs.h"
1494/* Thanks to Paul Eggert for this test.  */
1495#include <stdio.h>
1496#include <sys/types.h>
1497#include <sys/stat.h>
1498#ifdef HAVE_UNISTD_H
1499#include <unistd.h>
1500#endif
1501#ifdef HAVE_VFORK_H
1502#include <vfork.h>
1503#endif
1504/* On some sparc systems, changes by the child to local and incoming
1505   argument registers are propagated back to the parent.
1506   The compiler is told about this with #include <vfork.h>,
1507   but some compilers (e.g. gcc -O) don't grok <vfork.h>.
1508   Test for this by using a static variable whose address
1509   is put into a register that is clobbered by the vfork.  */
1510static
1511#ifdef __cplusplus
1512sparc_address_test (int arg)
1513#else
1514sparc_address_test (arg) int arg;
1515#endif
1516{
1517  static pid_t child;
1518  if (!child) {
1519    child = vfork ();
1520    if (child < 0) {
1521      perror ("vfork");
1522      _exit(2);
1523    }
1524    if (!child) {
1525      arg = getpid();
1526      write(-1, "", 0);
1527      _exit (arg);
1528    }
1529  }
1530}
1531main() {
1532  pid_t parent = getpid ();
1533  pid_t child;
1534
1535  sparc_address_test ();
1536
1537  child = vfork ();
1538
1539  if (child == 0) {
1540    /* Here is another test for sparc vfork register problems.
1541       This test uses lots of local variables, at least
1542       as many local variables as main has allocated so far
1543       including compiler temporaries.  4 locals are enough for
1544       gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
1545       A buggy compiler should reuse the register of parent
1546       for one of the local variables, since it will think that
1547       parent can't possibly be used any more in this routine.
1548       Assigning to the local variable will thus munge parent
1549       in the parent process.  */
1550    pid_t
1551      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
1552      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
1553    /* Convince the compiler that p..p7 are live; otherwise, it might
1554       use the same hardware register for all 8 local variables.  */
1555    if (p != p1 || p != p2 || p != p3 || p != p4
1556        || p != p5 || p != p6 || p != p7)
1557      _exit(1);
1558
1559    /* On some systems (e.g. IRIX 3.3),
1560       vfork doesn't separate parent from child file descriptors.
1561       If the child closes a descriptor before it execs or exits,
1562       this munges the parent's descriptor as well.
1563       Test for this by closing stdout in the child.  */
1564    _exit(close(fileno(stdout)) != 0);
1565  } else {
1566    int status;
1567    struct stat st;
1568
1569    while (wait(&status) != child)
1570      ;
1571    exit(
1572         /* Was there some problem with vforking?  */
1573         child < 0
1574
1575         /* Did the child fail?  (This shouldn't happen.)  */
1576         || status
1577
1578         /* Did the vfork/compiler bug occur?  */
1579         || parent != getpid()
1580
1581         /* Did the file descriptor bug occur?  */
1582         || fstat(fileno(stdout), &st) != 0
1583         );
1584  }
1585}
1586EOF
1587if { (eval echo configure:1588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1588then
1589  ac_cv_func_vfork_works=yes
1590else
1591  echo "configure: failed program was:" >&5
1592  cat conftest.$ac_ext >&5
1593  rm -fr conftest*
1594  ac_cv_func_vfork_works=no
1595fi
1596rm -fr conftest*
1597fi
1598
1599fi
1600
1601echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
1602if test $ac_cv_func_vfork_works = no; then
1603  cat >> confdefs.h <<\EOF
1604#define vfork fork
1605EOF
1606
1607fi
1608
1609
1610# Check whether --enable-MPT or --disable-MPT was given.
1611if test "${enable_MPT+set}" = set; then
1612  enableval="$enable_MPT"
1613  :
1614fi
1615
1616
1617# Check whether --enable-gmp or --disable-gmp was given.
1618if test "${enable_gmp+set}" = set; then
1619  enableval="$enable_gmp"
1620  :
1621fi
1622
1623
1624# Check whether --enable-tests or --disable-tests was given.
1625if test "${enable_tests+set}" = set; then
1626  enableval="$enable_tests"
1627  :
1628fi
1629
1630
1631# Check whether --enable-mpviewer or --disable-mpviewer was given.
1632if test "${enable_mpviewer+set}" = set; then
1633  enableval="$enable_mpviewer"
1634  :
1635fi
1636
1637
1638# Check whether --enable-mppvm or --disable-mppvm was given.
1639if test "${enable_mppvm+set}" = set; then
1640  enableval="$enable_mppvm"
1641  :
1642fi
1643
1644
1645
1646if test "$enable_gmp" != no && test -d gmp; then
1647  CONFIG_SUBDIRS="gmp"
1648  enable_gmp=yes
1649fi
1650BUILD_SUBDIRS="$CONFIG_SUBDIRS MP"
1651
1652if test "$enable_MPT" != no && test -d MPT; then
1653    BUILD_SUBDIRS="${BUILD_SUBDIRS} MPT"
1654fi
1655
1656if test "$enable_examples" = yes && test -d examples; then
1657  BUILD_SUBDIRS="${BUILD_SUBDIRS} examples"
1658  ac_check_prog=yes
1659fi
1660
1661if test "$enable_mpviewer" = yes && test -d mpviewer; then
1662  BUILD_SUBDIRS="${BUILD_SUBDIRS} mpviewer"
1663  ac_check_prog=yes
1664fi
1665
1666if test "$enable_mppvm" = yes && test -d mp-pvm3; then
1667  BUILD_SUBDIRS="${BUILD_SUBDIRS} mp-pvm3"
1668  ac_check_prog=yes
1669  with_pvm=yes
1670fi
1671
1672
1673
1674
1675if test "$ac_check_prog" = yes; then
1676  echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6
1677echo "configure:1678: checking for atof in -lm" >&5
1678ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'`
1679if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1680  echo $ac_n "(cached) $ac_c" 1>&6
1681else
1682  ac_save_LIBS="$LIBS"
1683LIBS="-lm  $LIBS"
1684cat > conftest.$ac_ext <<EOF
1685#line 1686 "configure"
1686#include "confdefs.h"
1687/* Override any gcc2 internal prototype to avoid an error.  */
1688/* We use char because int might match the return type of a gcc2
1689    builtin and then its argument prototype would still apply.  */
1690char atof();
1691
1692int main() {
1693atof()
1694; return 0; }
1695EOF
1696if { (eval echo configure:1697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1697  rm -rf conftest*
1698  eval "ac_cv_lib_$ac_lib_var=yes"
1699else
1700  echo "configure: failed program was:" >&5
1701  cat conftest.$ac_ext >&5
1702  rm -rf conftest*
1703  eval "ac_cv_lib_$ac_lib_var=no"
1704fi
1705rm -f conftest*
1706LIBS="$ac_save_LIBS"
1707
1708fi
1709if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1710  echo "$ac_t""yes" 1>&6
1711    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1712    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1713  cat >> confdefs.h <<EOF
1714#define $ac_tr_lib 1
1715EOF
1716
1717  LIBS="-lm $LIBS"
1718
1719else
1720  echo "$ac_t""no" 1>&6
1721fi
1722
1723  echo $ac_n "checking for socket in -lbsd""... $ac_c" 1>&6
1724echo "configure:1725: checking for socket in -lbsd" >&5
1725ac_lib_var=`echo bsd'_'socket | sed 'y%./+-%__p_%'`
1726if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1727  echo $ac_n "(cached) $ac_c" 1>&6
1728else
1729  ac_save_LIBS="$LIBS"
1730LIBS="-lbsd  $LIBS"
1731cat > conftest.$ac_ext <<EOF
1732#line 1733 "configure"
1733#include "confdefs.h"
1734/* Override any gcc2 internal prototype to avoid an error.  */
1735/* We use char because int might match the return type of a gcc2
1736    builtin and then its argument prototype would still apply.  */
1737char socket();
1738
1739int main() {
1740socket()
1741; return 0; }
1742EOF
1743if { (eval echo configure:1744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1744  rm -rf conftest*
1745  eval "ac_cv_lib_$ac_lib_var=yes"
1746else
1747  echo "configure: failed program was:" >&5
1748  cat conftest.$ac_ext >&5
1749  rm -rf conftest*
1750  eval "ac_cv_lib_$ac_lib_var=no"
1751fi
1752rm -f conftest*
1753LIBS="$ac_save_LIBS"
1754
1755fi
1756if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1757  echo "$ac_t""yes" 1>&6
1758    ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1759    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1760  cat >> confdefs.h <<EOF
1761#define $ac_tr_lib 1
1762EOF
1763
1764  LIBS="-lbsd $LIBS"
1765
1766else
1767  echo "$ac_t""no" 1>&6
1768fi
1769
1770  echo $ac_n "checking for mpz_init in -lgmp""... $ac_c" 1>&6
1771echo "configure:1772: checking for mpz_init in -lgmp" >&5
1772ac_lib_var=`echo gmp'_'mpz_init | sed 'y%./+-%__p_%'`
1773if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1774  echo $ac_n "(cached) $ac_c" 1>&6
1775else
1776  ac_save_LIBS="$LIBS"
1777LIBS="-lgmp  $LIBS"
1778cat > conftest.$ac_ext <<EOF
1779#line 1780 "configure"
1780#include "confdefs.h"
1781/* Override any gcc2 internal prototype to avoid an error.  */
1782/* We use char because int might match the return type of a gcc2
1783    builtin and then its argument prototype would still apply.  */
1784char mpz_init();
1785
1786int main() {
1787mpz_init()
1788; return 0; }
1789EOF
1790if { (eval echo configure:1791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1791  rm -rf conftest*
1792  eval "ac_cv_lib_$ac_lib_var=yes"
1793else
1794  echo "configure: failed program was:" >&5
1795  cat conftest.$ac_ext >&5
1796  rm -rf conftest*
1797  eval "ac_cv_lib_$ac_lib_var=no"
1798fi
1799rm -f conftest*
1800LIBS="$ac_save_LIBS"
1801
1802fi
1803if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1804  echo "$ac_t""yes" 1>&6
1805    ac_tr_lib=HAVE_LIB`echo gmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1806    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1807  cat >> confdefs.h <<EOF
1808#define $ac_tr_lib 1
1809EOF
1810
1811  LIBS="-lgmp $LIBS"
1812
1813else
1814  echo "$ac_t""no" 1>&6
1815fi
1816
1817
1818  if test "$ac_cv_lib_gmp_mpz_init" != yes || "$enable_gmp" != no; then
1819    echo "configure: warning: Did not find gmp library: Linking programs with MP will fail" 1>&2
1820    NEED_LIBS=$LIBS
1821  else
1822    NEED_LIBS="-lgmp $LIBS"
1823  fi
1824 
1825  for ac_func in select socket gethostname gethostbyname strtol strstr
1826do
1827echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1828echo "configure:1829: checking for $ac_func" >&5
1829if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1830  echo $ac_n "(cached) $ac_c" 1>&6
1831else
1832  cat > conftest.$ac_ext <<EOF
1833#line 1834 "configure"
1834#include "confdefs.h"
1835/* System header to define __stub macros and hopefully few prototypes,
1836    which can conflict with char $ac_func(); below.  */
1837#include <assert.h>
1838/* Override any gcc2 internal prototype to avoid an error.  */
1839/* We use char because int might match the return type of a gcc2
1840    builtin and then its argument prototype would still apply.  */
1841char $ac_func();
1842
1843int main() {
1844
1845/* The GNU C library defines this for functions which it implements
1846    to always fail with ENOSYS.  Some functions are actually named
1847    something starting with __ and the normal name is an alias.  */
1848#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1849choke me
1850#else
1851$ac_func();
1852#endif
1853
1854; return 0; }
1855EOF
1856if { (eval echo configure:1857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1857  rm -rf conftest*
1858  eval "ac_cv_func_$ac_func=yes"
1859else
1860  echo "configure: failed program was:" >&5
1861  cat conftest.$ac_ext >&5
1862  rm -rf conftest*
1863  eval "ac_cv_func_$ac_func=no"
1864fi
1865rm -f conftest*
1866fi
1867
1868if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1869  echo "$ac_t""yes" 1>&6
1870    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1871  cat >> confdefs.h <<EOF
1872#define $ac_tr_func 1
1873EOF
1874 
1875else
1876  echo "$ac_t""no" 1>&6
1877fi
1878done
1879
1880  if test "$ac_cv_func_select" != yes; then
1881    echo "configure: warning: Did not find library containing function select" 1>&2
1882    echo "configure: warning: Linking programs with MP might fail" 1>&2
1883  fi
1884  if test "$ac_cv_func_gethostname" != yes; then
1885    echo "configure: warning: Did not find library containing gethostname" 1>&2
1886    echo "configure: warning: Linking programs with MP might fail" 1>&2
1887  fi
1888
1889  if test "$ac_cv_func_gethostbyname" != yes; then
1890    echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1891echo "configure:1892: checking for gethostbyname in -lnsl" >&5
1892ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1893if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1894  echo $ac_n "(cached) $ac_c" 1>&6
1895else
1896  ac_save_LIBS="$LIBS"
1897LIBS="-lnsl  $LIBS"
1898cat > conftest.$ac_ext <<EOF
1899#line 1900 "configure"
1900#include "confdefs.h"
1901/* Override any gcc2 internal prototype to avoid an error.  */
1902/* We use char because int might match the return type of a gcc2
1903    builtin and then its argument prototype would still apply.  */
1904char gethostbyname();
1905
1906int main() {
1907gethostbyname()
1908; return 0; }
1909EOF
1910if { (eval echo configure:1911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1911  rm -rf conftest*
1912  eval "ac_cv_lib_$ac_lib_var=yes"
1913else
1914  echo "configure: failed program was:" >&5
1915  cat conftest.$ac_ext >&5
1916  rm -rf conftest*
1917  eval "ac_cv_lib_$ac_lib_var=no"
1918fi
1919rm -f conftest*
1920LIBS="$ac_save_LIBS"
1921
1922fi
1923if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1924  echo "$ac_t""yes" 1>&6
1925    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1926    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1927  cat >> confdefs.h <<EOF
1928#define $ac_tr_lib 1
1929EOF
1930
1931  LIBS="-lnsl $LIBS"
1932
1933else
1934  echo "$ac_t""no" 1>&6
1935fi
1936
1937    if test "$ac_cv_lib_nsl_gethostbyname" != yes; then
1938      echo "configure: warning: Did not find library containing gethostname" 1>&2
1939      echo "configure: warning: Linking programs with MP might fail" 1>&2
1940    fi
1941  fi
1942
1943  if test "$ac_cv_func_socket" != yes; then
1944    echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1945echo "configure:1946: checking for socket in -lsocket" >&5
1946ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1947if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1948  echo $ac_n "(cached) $ac_c" 1>&6
1949else
1950  ac_save_LIBS="$LIBS"
1951LIBS="-lsocket  $LIBS"
1952cat > conftest.$ac_ext <<EOF
1953#line 1954 "configure"
1954#include "confdefs.h"
1955/* Override any gcc2 internal prototype to avoid an error.  */
1956/* We use char because int might match the return type of a gcc2
1957    builtin and then its argument prototype would still apply.  */
1958char socket();
1959
1960int main() {
1961socket()
1962; return 0; }
1963EOF
1964if { (eval echo configure:1965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1965  rm -rf conftest*
1966  eval "ac_cv_lib_$ac_lib_var=yes"
1967else
1968  echo "configure: failed program was:" >&5
1969  cat conftest.$ac_ext >&5
1970  rm -rf conftest*
1971  eval "ac_cv_lib_$ac_lib_var=no"
1972fi
1973rm -f conftest*
1974LIBS="$ac_save_LIBS"
1975
1976fi
1977if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1978  echo "$ac_t""yes" 1>&6
1979    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1980    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1981  cat >> confdefs.h <<EOF
1982#define $ac_tr_lib 1
1983EOF
1984
1985  LIBS="-lsocket $LIBS"
1986
1987else
1988  echo "$ac_t""no" 1>&6
1989fi
1990
1991    if test "$ac_cv_lib_socket_socket" != yes; then
1992      echo "configure: warning: Did not find library containing socket" 1>&2
1993      echo "configure: warning: Linking programs with MP might fail" 1>&2
1994    fi
1995  fi
1996fi
1997
1998
1999echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2000echo "configure:2001: checking for ANSI C header files" >&5
2001if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2002  echo $ac_n "(cached) $ac_c" 1>&6
2003else
2004  cat > conftest.$ac_ext <<EOF
2005#line 2006 "configure"
2006#include "confdefs.h"
2007#include <stdlib.h>
2008#include <stdarg.h>
2009#include <string.h>
2010#include <float.h>
2011EOF
2012ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2013{ (eval echo configure:2014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2014ac_err=`grep -v '^ *+' conftest.out`
2015if test -z "$ac_err"; then
2016  rm -rf conftest*
2017  ac_cv_header_stdc=yes
2018else
2019  echo "$ac_err" >&5
2020  echo "configure: failed program was:" >&5
2021  cat conftest.$ac_ext >&5
2022  rm -rf conftest*
2023  ac_cv_header_stdc=no
2024fi
2025rm -f conftest*
2026
2027if test $ac_cv_header_stdc = yes; then
2028  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2029cat > conftest.$ac_ext <<EOF
2030#line 2031 "configure"
2031#include "confdefs.h"
2032#include <string.h>
2033EOF
2034if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2035  egrep "memchr" >/dev/null 2>&1; then
2036  :
2037else
2038  rm -rf conftest*
2039  ac_cv_header_stdc=no
2040fi
2041rm -f conftest*
2042
2043fi
2044
2045if test $ac_cv_header_stdc = yes; then
2046  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2047cat > conftest.$ac_ext <<EOF
2048#line 2049 "configure"
2049#include "confdefs.h"
2050#include <stdlib.h>
2051EOF
2052if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2053  egrep "free" >/dev/null 2>&1; then
2054  :
2055else
2056  rm -rf conftest*
2057  ac_cv_header_stdc=no
2058fi
2059rm -f conftest*
2060
2061fi
2062
2063if test $ac_cv_header_stdc = yes; then
2064  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2065if test "$cross_compiling" = yes; then
2066  :
2067else
2068  cat > conftest.$ac_ext <<EOF
2069#line 2070 "configure"
2070#include "confdefs.h"
2071#include <ctype.h>
2072#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2073#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2074#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2075int main () { int i; for (i = 0; i < 256; i++)
2076if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2077exit (0); }
2078
2079EOF
2080if { (eval echo configure:2081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2081then
2082  :
2083else
2084  echo "configure: failed program was:" >&5
2085  cat conftest.$ac_ext >&5
2086  rm -fr conftest*
2087  ac_cv_header_stdc=no
2088fi
2089rm -fr conftest*
2090fi
2091
2092fi
2093fi
2094
2095echo "$ac_t""$ac_cv_header_stdc" 1>&6
2096if test $ac_cv_header_stdc = yes; then
2097  cat >> confdefs.h <<\EOF
2098#define STDC_HEADERS 1
2099EOF
2100
2101fi
2102
2103ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
2104echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
2105echo "configure:2106: checking for arpa/inet.h" >&5
2106if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2107  echo $ac_n "(cached) $ac_c" 1>&6
2108else
2109  cat > conftest.$ac_ext <<EOF
2110#line 2111 "configure"
2111#include "confdefs.h"
2112#include <arpa/inet.h>
2113EOF
2114ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2115{ (eval echo configure:2116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2116ac_err=`grep -v '^ *+' conftest.out`
2117if test -z "$ac_err"; then
2118  rm -rf conftest*
2119  eval "ac_cv_header_$ac_safe=yes"
2120else
2121  echo "$ac_err" >&5
2122  echo "configure: failed program was:" >&5
2123  cat conftest.$ac_ext >&5
2124  rm -rf conftest*
2125  eval "ac_cv_header_$ac_safe=no"
2126fi
2127rm -f conftest*
2128fi
2129if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2130  echo "$ac_t""yes" 1>&6
2131  :
2132else
2133  echo "$ac_t""no" 1>&6
2134echo "*** no arpa/inet.h";exit
2135fi
2136
2137ac_safe=`echo "assert.h" | sed 'y%./+-%__p_%'`
2138echo $ac_n "checking for assert.h""... $ac_c" 1>&6
2139echo "configure:2140: checking for assert.h" >&5
2140if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2141  echo $ac_n "(cached) $ac_c" 1>&6
2142else
2143  cat > conftest.$ac_ext <<EOF
2144#line 2145 "configure"
2145#include "confdefs.h"
2146#include <assert.h>
2147EOF
2148ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2149{ (eval echo configure:2150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2150ac_err=`grep -v '^ *+' conftest.out`
2151if test -z "$ac_err"; then
2152  rm -rf conftest*
2153  eval "ac_cv_header_$ac_safe=yes"
2154else
2155  echo "$ac_err" >&5
2156  echo "configure: failed program was:" >&5
2157  cat conftest.$ac_ext >&5
2158  rm -rf conftest*
2159  eval "ac_cv_header_$ac_safe=no"
2160fi
2161rm -f conftest*
2162fi
2163if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2164  echo "$ac_t""yes" 1>&6
2165  :
2166else
2167  echo "$ac_t""no" 1>&6
2168echo "*** no assert.h";exit
2169fi
2170
2171ac_safe=`echo "ctype.h" | sed 'y%./+-%__p_%'`
2172echo $ac_n "checking for ctype.h""... $ac_c" 1>&6
2173echo "configure:2174: checking for ctype.h" >&5
2174if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2175  echo $ac_n "(cached) $ac_c" 1>&6
2176else
2177  cat > conftest.$ac_ext <<EOF
2178#line 2179 "configure"
2179#include "confdefs.h"
2180#include <ctype.h>
2181EOF
2182ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2183{ (eval echo configure:2184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2184ac_err=`grep -v '^ *+' conftest.out`
2185if test -z "$ac_err"; then
2186  rm -rf conftest*
2187  eval "ac_cv_header_$ac_safe=yes"
2188else
2189  echo "$ac_err" >&5
2190  echo "configure: failed program was:" >&5
2191  cat conftest.$ac_ext >&5
2192  rm -rf conftest*
2193  eval "ac_cv_header_$ac_safe=no"
2194fi
2195rm -f conftest*
2196fi
2197if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2198  echo "$ac_t""yes" 1>&6
2199  :
2200else
2201  echo "$ac_t""no" 1>&6
2202echo "*** no ctype.h";exit
2203fi
2204
2205ac_safe=`echo "errno.h" | sed 'y%./+-%__p_%'`
2206echo $ac_n "checking for errno.h""... $ac_c" 1>&6
2207echo "configure:2208: checking for errno.h" >&5
2208if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2209  echo $ac_n "(cached) $ac_c" 1>&6
2210else
2211  cat > conftest.$ac_ext <<EOF
2212#line 2213 "configure"
2213#include "confdefs.h"
2214#include <errno.h>
2215EOF
2216ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2217{ (eval echo configure:2218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2218ac_err=`grep -v '^ *+' conftest.out`
2219if test -z "$ac_err"; then
2220  rm -rf conftest*
2221  eval "ac_cv_header_$ac_safe=yes"
2222else
2223  echo "$ac_err" >&5
2224  echo "configure: failed program was:" >&5
2225  cat conftest.$ac_ext >&5
2226  rm -rf conftest*
2227  eval "ac_cv_header_$ac_safe=no"
2228fi
2229rm -f conftest*
2230fi
2231if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2232  echo "$ac_t""yes" 1>&6
2233  :
2234else
2235  echo "$ac_t""no" 1>&6
2236echo "*** no errno.h";exit
2237fi
2238
2239ac_safe=`echo "netdb.h" | sed 'y%./+-%__p_%'`
2240echo $ac_n "checking for netdb.h""... $ac_c" 1>&6
2241echo "configure:2242: checking for netdb.h" >&5
2242if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2243  echo $ac_n "(cached) $ac_c" 1>&6
2244else
2245  cat > conftest.$ac_ext <<EOF
2246#line 2247 "configure"
2247#include "confdefs.h"
2248#include <netdb.h>
2249EOF
2250ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2251{ (eval echo configure:2252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2252ac_err=`grep -v '^ *+' conftest.out`
2253if test -z "$ac_err"; then
2254  rm -rf conftest*
2255  eval "ac_cv_header_$ac_safe=yes"
2256else
2257  echo "$ac_err" >&5
2258  echo "configure: failed program was:" >&5
2259  cat conftest.$ac_ext >&5
2260  rm -rf conftest*
2261  eval "ac_cv_header_$ac_safe=no"
2262fi
2263rm -f conftest*
2264fi
2265if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2266  echo "$ac_t""yes" 1>&6
2267  :
2268else
2269  echo "$ac_t""no" 1>&6
2270echo "*** no netdb.h";exit
2271fi
2272
2273ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
2274echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
2275echo "configure:2276: checking for netinet/in.h" >&5
2276if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2277  echo $ac_n "(cached) $ac_c" 1>&6
2278else
2279  cat > conftest.$ac_ext <<EOF
2280#line 2281 "configure"
2281#include "confdefs.h"
2282#include <netinet/in.h>
2283EOF
2284ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2285{ (eval echo configure:2286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2286ac_err=`grep -v '^ *+' conftest.out`
2287if test -z "$ac_err"; then
2288  rm -rf conftest*
2289  eval "ac_cv_header_$ac_safe=yes"
2290else
2291  echo "$ac_err" >&5
2292  echo "configure: failed program was:" >&5
2293  cat conftest.$ac_ext >&5
2294  rm -rf conftest*
2295  eval "ac_cv_header_$ac_safe=no"
2296fi
2297rm -f conftest*
2298fi
2299if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2300  echo "$ac_t""yes" 1>&6
2301  :
2302else
2303  echo "$ac_t""no" 1>&6
2304echo "*** no netinet/in.h";exit
2305fi
2306
2307ac_safe=`echo "netinet/tcp.h" | sed 'y%./+-%__p_%'`
2308echo $ac_n "checking for netinet/tcp.h""... $ac_c" 1>&6
2309echo "configure:2310: checking for netinet/tcp.h" >&5
2310if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2311  echo $ac_n "(cached) $ac_c" 1>&6
2312else
2313  cat > conftest.$ac_ext <<EOF
2314#line 2315 "configure"
2315#include "confdefs.h"
2316#include <netinet/tcp.h>
2317EOF
2318ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2319{ (eval echo configure:2320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2320ac_err=`grep -v '^ *+' conftest.out`
2321if test -z "$ac_err"; then
2322  rm -rf conftest*
2323  eval "ac_cv_header_$ac_safe=yes"
2324else
2325  echo "$ac_err" >&5
2326  echo "configure: failed program was:" >&5
2327  cat conftest.$ac_ext >&5
2328  rm -rf conftest*
2329  eval "ac_cv_header_$ac_safe=no"
2330fi
2331rm -f conftest*
2332fi
2333if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2334  echo "$ac_t""yes" 1>&6
2335  :
2336else
2337  echo "$ac_t""no" 1>&6
2338echo "*** no netinet/tcp.h";exit
2339fi
2340
2341ac_safe=`echo "signal.h" | sed 'y%./+-%__p_%'`
2342echo $ac_n "checking for signal.h""... $ac_c" 1>&6
2343echo "configure:2344: checking for signal.h" >&5
2344if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2345  echo $ac_n "(cached) $ac_c" 1>&6
2346else
2347  cat > conftest.$ac_ext <<EOF
2348#line 2349 "configure"
2349#include "confdefs.h"
2350#include <signal.h>
2351EOF
2352ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2353{ (eval echo configure:2354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2354ac_err=`grep -v '^ *+' conftest.out`
2355if test -z "$ac_err"; then
2356  rm -rf conftest*
2357  eval "ac_cv_header_$ac_safe=yes"
2358else
2359  echo "$ac_err" >&5
2360  echo "configure: failed program was:" >&5
2361  cat conftest.$ac_ext >&5
2362  rm -rf conftest*
2363  eval "ac_cv_header_$ac_safe=no"
2364fi
2365rm -f conftest*
2366fi
2367if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2368  echo "$ac_t""yes" 1>&6
2369  :
2370else
2371  echo "$ac_t""no" 1>&6
2372echo "*** no sihnal.h";exit
2373fi
2374
2375ac_safe=`echo "stdarg.h" | sed 'y%./+-%__p_%'`
2376echo $ac_n "checking for stdarg.h""... $ac_c" 1>&6
2377echo "configure:2378: checking for stdarg.h" >&5
2378if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2379  echo $ac_n "(cached) $ac_c" 1>&6
2380else
2381  cat > conftest.$ac_ext <<EOF
2382#line 2383 "configure"
2383#include "confdefs.h"
2384#include <stdarg.h>
2385EOF
2386ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2387{ (eval echo configure:2388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2388ac_err=`grep -v '^ *+' conftest.out`
2389if test -z "$ac_err"; then
2390  rm -rf conftest*
2391  eval "ac_cv_header_$ac_safe=yes"
2392else
2393  echo "$ac_err" >&5
2394  echo "configure: failed program was:" >&5
2395  cat conftest.$ac_ext >&5
2396  rm -rf conftest*
2397  eval "ac_cv_header_$ac_safe=no"
2398fi
2399rm -f conftest*
2400fi
2401if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2402  echo "$ac_t""yes" 1>&6
2403  :
2404else
2405  echo "$ac_t""no" 1>&6
2406echo "*** no stdarg.h";exit
2407fi
2408
2409ac_safe=`echo "stdio.h" | sed 'y%./+-%__p_%'`
2410echo $ac_n "checking for stdio.h""... $ac_c" 1>&6
2411echo "configure:2412: checking for stdio.h" >&5
2412if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2413  echo $ac_n "(cached) $ac_c" 1>&6
2414else
2415  cat > conftest.$ac_ext <<EOF
2416#line 2417 "configure"
2417#include "confdefs.h"
2418#include <stdio.h>
2419EOF
2420ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2421{ (eval echo configure:2422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2422ac_err=`grep -v '^ *+' conftest.out`
2423if test -z "$ac_err"; then
2424  rm -rf conftest*
2425  eval "ac_cv_header_$ac_safe=yes"
2426else
2427  echo "$ac_err" >&5
2428  echo "configure: failed program was:" >&5
2429  cat conftest.$ac_ext >&5
2430  rm -rf conftest*
2431  eval "ac_cv_header_$ac_safe=no"
2432fi
2433rm -f conftest*
2434fi
2435if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2436  echo "$ac_t""yes" 1>&6
2437  :
2438else
2439  echo "$ac_t""no" 1>&6
2440echo "*** no stdio.h";exit
2441fi
2442
2443ac_safe=`echo "stdlib.h" | sed 'y%./+-%__p_%'`
2444echo $ac_n "checking for stdlib.h""... $ac_c" 1>&6
2445echo "configure:2446: checking for stdlib.h" >&5
2446if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2447  echo $ac_n "(cached) $ac_c" 1>&6
2448else
2449  cat > conftest.$ac_ext <<EOF
2450#line 2451 "configure"
2451#include "confdefs.h"
2452#include <stdlib.h>
2453EOF
2454ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2455{ (eval echo configure:2456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2456ac_err=`grep -v '^ *+' conftest.out`
2457if test -z "$ac_err"; then
2458  rm -rf conftest*
2459  eval "ac_cv_header_$ac_safe=yes"
2460else
2461  echo "$ac_err" >&5
2462  echo "configure: failed program was:" >&5
2463  cat conftest.$ac_ext >&5
2464  rm -rf conftest*
2465  eval "ac_cv_header_$ac_safe=no"
2466fi
2467rm -f conftest*
2468fi
2469if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2470  echo "$ac_t""yes" 1>&6
2471  :
2472else
2473  echo "$ac_t""no" 1>&6
2474echo "*** no stdlib.h";exit
2475fi
2476
2477ac_safe=`echo "string.h" | sed 'y%./+-%__p_%'`
2478echo $ac_n "checking for string.h""... $ac_c" 1>&6
2479echo "configure:2480: checking for string.h" >&5
2480if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2481  echo $ac_n "(cached) $ac_c" 1>&6
2482else
2483  cat > conftest.$ac_ext <<EOF
2484#line 2485 "configure"
2485#include "confdefs.h"
2486#include <string.h>
2487EOF
2488ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2489{ (eval echo configure:2490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2490ac_err=`grep -v '^ *+' conftest.out`
2491if test -z "$ac_err"; then
2492  rm -rf conftest*
2493  eval "ac_cv_header_$ac_safe=yes"
2494else
2495  echo "$ac_err" >&5
2496  echo "configure: failed program was:" >&5
2497  cat conftest.$ac_ext >&5
2498  rm -rf conftest*
2499  eval "ac_cv_header_$ac_safe=no"
2500fi
2501rm -f conftest*
2502fi
2503if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2504  echo "$ac_t""yes" 1>&6
2505  :
2506else
2507  echo "$ac_t""no" 1>&6
2508echo "*** no string.h";exit
2509fi
2510
2511ac_safe=`echo "stddef.h" | sed 'y%./+-%__p_%'`
2512echo $ac_n "checking for stddef.h""... $ac_c" 1>&6
2513echo "configure:2514: checking for stddef.h" >&5
2514if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2515  echo $ac_n "(cached) $ac_c" 1>&6
2516else
2517  cat > conftest.$ac_ext <<EOF
2518#line 2519 "configure"
2519#include "confdefs.h"
2520#include <stddef.h>
2521EOF
2522ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2523{ (eval echo configure:2524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2524ac_err=`grep -v '^ *+' conftest.out`
2525if test -z "$ac_err"; then
2526  rm -rf conftest*
2527  eval "ac_cv_header_$ac_safe=yes"
2528else
2529  echo "$ac_err" >&5
2530  echo "configure: failed program was:" >&5
2531  cat conftest.$ac_ext >&5
2532  rm -rf conftest*
2533  eval "ac_cv_header_$ac_safe=no"
2534fi
2535rm -f conftest*
2536fi
2537if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2538  echo "$ac_t""yes" 1>&6
2539  :
2540else
2541  echo "$ac_t""no" 1>&6
2542echo "*** no stddef.h";exit
2543fi
2544
2545ac_safe=`echo "values.h" | sed 'y%./+-%__p_%'`
2546echo $ac_n "checking for values.h""... $ac_c" 1>&6
2547echo "configure:2548: checking for values.h" >&5
2548if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2549  echo $ac_n "(cached) $ac_c" 1>&6
2550else
2551  cat > conftest.$ac_ext <<EOF
2552#line 2553 "configure"
2553#include "confdefs.h"
2554#include <values.h>
2555EOF
2556ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2557{ (eval echo configure:2558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2558ac_err=`grep -v '^ *+' conftest.out`
2559if test -z "$ac_err"; then
2560  rm -rf conftest*
2561  eval "ac_cv_header_$ac_safe=yes"
2562else
2563  echo "$ac_err" >&5
2564  echo "configure: failed program was:" >&5
2565  cat conftest.$ac_ext >&5
2566  rm -rf conftest*
2567  eval "ac_cv_header_$ac_safe=no"
2568fi
2569rm -f conftest*
2570fi
2571if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2572  echo "$ac_t""yes" 1>&6
2573  :
2574else
2575  echo "$ac_t""no" 1>&6
2576echo "*** no values.h";exit
2577fi
2578
2579
2580ac_safe=`echo "fcntl.h" | sed 'y%./+-%__p_%'`
2581echo $ac_n "checking for fcntl.h""... $ac_c" 1>&6
2582echo "configure:2583: checking for fcntl.h" >&5
2583if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2584  echo $ac_n "(cached) $ac_c" 1>&6
2585else
2586  cat > conftest.$ac_ext <<EOF
2587#line 2588 "configure"
2588#include "confdefs.h"
2589#include <fcntl.h>
2590EOF
2591ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2592{ (eval echo configure:2593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2593ac_err=`grep -v '^ *+' conftest.out`
2594if test -z "$ac_err"; then
2595  rm -rf conftest*
2596  eval "ac_cv_header_$ac_safe=yes"
2597else
2598  echo "$ac_err" >&5
2599  echo "configure: failed program was:" >&5
2600  cat conftest.$ac_ext >&5
2601  rm -rf conftest*
2602  eval "ac_cv_header_$ac_safe=no"
2603fi
2604rm -f conftest*
2605fi
2606if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2607  echo "$ac_t""yes" 1>&6
2608  :
2609else
2610  echo "$ac_t""no" 1>&6
2611echo "*** no fcntl.h";exit
2612fi
2613
2614ac_safe=`echo "sys/ioctl.h" | sed 'y%./+-%__p_%'`
2615echo $ac_n "checking for sys/ioctl.h""... $ac_c" 1>&6
2616echo "configure:2617: checking for sys/ioctl.h" >&5
2617if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2618  echo $ac_n "(cached) $ac_c" 1>&6
2619else
2620  cat > conftest.$ac_ext <<EOF
2621#line 2622 "configure"
2622#include "confdefs.h"
2623#include <sys/ioctl.h>
2624EOF
2625ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2626{ (eval echo configure:2627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2627ac_err=`grep -v '^ *+' conftest.out`
2628if test -z "$ac_err"; then
2629  rm -rf conftest*
2630  eval "ac_cv_header_$ac_safe=yes"
2631else
2632  echo "$ac_err" >&5
2633  echo "configure: failed program was:" >&5
2634  cat conftest.$ac_ext >&5
2635  rm -rf conftest*
2636  eval "ac_cv_header_$ac_safe=no"
2637fi
2638rm -f conftest*
2639fi
2640if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2641  echo "$ac_t""yes" 1>&6
2642  :
2643else
2644  echo "$ac_t""no" 1>&6
2645echo "*** no sys/ioctl.h";exit
2646fi
2647
2648ac_safe=`echo "sys/param.h" | sed 'y%./+-%__p_%'`
2649echo $ac_n "checking for sys/param.h""... $ac_c" 1>&6
2650echo "configure:2651: checking for sys/param.h" >&5
2651if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2652  echo $ac_n "(cached) $ac_c" 1>&6
2653else
2654  cat > conftest.$ac_ext <<EOF
2655#line 2656 "configure"
2656#include "confdefs.h"
2657#include <sys/param.h>
2658EOF
2659ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2660{ (eval echo configure:2661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2661ac_err=`grep -v '^ *+' conftest.out`
2662if test -z "$ac_err"; then
2663  rm -rf conftest*
2664  eval "ac_cv_header_$ac_safe=yes"
2665else
2666  echo "$ac_err" >&5
2667  echo "configure: failed program was:" >&5
2668  cat conftest.$ac_ext >&5
2669  rm -rf conftest*
2670  eval "ac_cv_header_$ac_safe=no"
2671fi
2672rm -f conftest*
2673fi
2674if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2675  echo "$ac_t""yes" 1>&6
2676  :
2677else
2678  echo "$ac_t""no" 1>&6
2679echo "*** no sys/param.h";exit
2680fi
2681
2682ac_safe=`echo "sys/socket.h" | sed 'y%./+-%__p_%'`
2683echo $ac_n "checking for sys/socket.h""... $ac_c" 1>&6
2684echo "configure:2685: checking for sys/socket.h" >&5
2685if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2686  echo $ac_n "(cached) $ac_c" 1>&6
2687else
2688  cat > conftest.$ac_ext <<EOF
2689#line 2690 "configure"
2690#include "confdefs.h"
2691#include <sys/socket.h>
2692EOF
2693ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2694{ (eval echo configure:2695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2695ac_err=`grep -v '^ *+' conftest.out`
2696if test -z "$ac_err"; then
2697  rm -rf conftest*
2698  eval "ac_cv_header_$ac_safe=yes"
2699else
2700  echo "$ac_err" >&5
2701  echo "configure: failed program was:" >&5
2702  cat conftest.$ac_ext >&5
2703  rm -rf conftest*
2704  eval "ac_cv_header_$ac_safe=no"
2705fi
2706rm -f conftest*
2707fi
2708if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2709  echo "$ac_t""yes" 1>&6
2710  :
2711else
2712  echo "$ac_t""no" 1>&6
2713echo "*** no sys/socket.h";exit
2714fi
2715
2716ac_safe=`echo "sys/stat.h" | sed 'y%./+-%__p_%'`
2717echo $ac_n "checking for sys/stat.h""... $ac_c" 1>&6
2718echo "configure:2719: checking for sys/stat.h" >&5
2719if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2720  echo $ac_n "(cached) $ac_c" 1>&6
2721else
2722  cat > conftest.$ac_ext <<EOF
2723#line 2724 "configure"
2724#include "confdefs.h"
2725#include <sys/stat.h>
2726EOF
2727ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2728{ (eval echo configure:2729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2729ac_err=`grep -v '^ *+' conftest.out`
2730if test -z "$ac_err"; then
2731  rm -rf conftest*
2732  eval "ac_cv_header_$ac_safe=yes"
2733else
2734  echo "$ac_err" >&5
2735  echo "configure: failed program was:" >&5
2736  cat conftest.$ac_ext >&5
2737  rm -rf conftest*
2738  eval "ac_cv_header_$ac_safe=no"
2739fi
2740rm -f conftest*
2741fi
2742if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2743  echo "$ac_t""yes" 1>&6
2744  :
2745else
2746  echo "$ac_t""no" 1>&6
2747echo "*** no sys/stat.h";exit
2748fi
2749
2750ac_safe=`echo "sys/time.h" | sed 'y%./+-%__p_%'`
2751echo $ac_n "checking for sys/time.h""... $ac_c" 1>&6
2752echo "configure:2753: checking for sys/time.h" >&5
2753if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2754  echo $ac_n "(cached) $ac_c" 1>&6
2755else
2756  cat > conftest.$ac_ext <<EOF
2757#line 2758 "configure"
2758#include "confdefs.h"
2759#include <sys/time.h>
2760EOF
2761ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2762{ (eval echo configure:2763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2763ac_err=`grep -v '^ *+' conftest.out`
2764if test -z "$ac_err"; then
2765  rm -rf conftest*
2766  eval "ac_cv_header_$ac_safe=yes"
2767else
2768  echo "$ac_err" >&5
2769  echo "configure: failed program was:" >&5
2770  cat conftest.$ac_ext >&5
2771  rm -rf conftest*
2772  eval "ac_cv_header_$ac_safe=no"
2773fi
2774rm -f conftest*
2775fi
2776if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2777  echo "$ac_t""yes" 1>&6
2778  :
2779else
2780  echo "$ac_t""no" 1>&6
2781echo "*** no sys/time.h";exit
2782fi
2783
2784ac_safe=`echo "sys/types.h" | sed 'y%./+-%__p_%'`
2785echo $ac_n "checking for sys/types.h""... $ac_c" 1>&6
2786echo "configure:2787: checking for sys/types.h" >&5
2787if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2788  echo $ac_n "(cached) $ac_c" 1>&6
2789else
2790  cat > conftest.$ac_ext <<EOF
2791#line 2792 "configure"
2792#include "confdefs.h"
2793#include <sys/types.h>
2794EOF
2795ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2796{ (eval echo configure:2797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2797ac_err=`grep -v '^ *+' conftest.out`
2798if test -z "$ac_err"; then
2799  rm -rf conftest*
2800  eval "ac_cv_header_$ac_safe=yes"
2801else
2802  echo "$ac_err" >&5
2803  echo "configure: failed program was:" >&5
2804  cat conftest.$ac_ext >&5
2805  rm -rf conftest*
2806  eval "ac_cv_header_$ac_safe=no"
2807fi
2808rm -f conftest*
2809fi
2810if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2811  echo "$ac_t""yes" 1>&6
2812  :
2813else
2814  echo "$ac_t""no" 1>&6
2815echo "*** no sys/types.h";exit
2816fi
2817
2818ac_safe=`echo "sys/uio.h" | sed 'y%./+-%__p_%'`
2819echo $ac_n "checking for sys/uio.h""... $ac_c" 1>&6
2820echo "configure:2821: checking for sys/uio.h" >&5
2821if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2822  echo $ac_n "(cached) $ac_c" 1>&6
2823else
2824  cat > conftest.$ac_ext <<EOF
2825#line 2826 "configure"
2826#include "confdefs.h"
2827#include <sys/uio.h>
2828EOF
2829ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2830{ (eval echo configure:2831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2831ac_err=`grep -v '^ *+' conftest.out`
2832if test -z "$ac_err"; then
2833  rm -rf conftest*
2834  eval "ac_cv_header_$ac_safe=yes"
2835else
2836  echo "$ac_err" >&5
2837  echo "configure: failed program was:" >&5
2838  cat conftest.$ac_ext >&5
2839  rm -rf conftest*
2840  eval "ac_cv_header_$ac_safe=no"
2841fi
2842rm -f conftest*
2843fi
2844if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2845  echo "$ac_t""yes" 1>&6
2846  :
2847else
2848  echo "$ac_t""no" 1>&6
2849echo "*** no sys/uio.h";exit
2850fi
2851
2852ac_safe=`echo "sys/un.h" | sed 'y%./+-%__p_%'`
2853echo $ac_n "checking for sys/un.h""... $ac_c" 1>&6
2854echo "configure:2855: checking for sys/un.h" >&5
2855if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2856  echo $ac_n "(cached) $ac_c" 1>&6
2857else
2858  cat > conftest.$ac_ext <<EOF
2859#line 2860 "configure"
2860#include "confdefs.h"
2861#include <sys/un.h>
2862EOF
2863ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2864{ (eval echo configure:2865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2865ac_err=`grep -v '^ *+' conftest.out`
2866if test -z "$ac_err"; then
2867  rm -rf conftest*
2868  eval "ac_cv_header_$ac_safe=yes"
2869else
2870  echo "$ac_err" >&5
2871  echo "configure: failed program was:" >&5
2872  cat conftest.$ac_ext >&5
2873  rm -rf conftest*
2874  eval "ac_cv_header_$ac_safe=no"
2875fi
2876rm -f conftest*
2877fi
2878if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2879  echo "$ac_t""yes" 1>&6
2880  :
2881else
2882  echo "$ac_t""no" 1>&6
2883echo "*** no sys/un.h";exit
2884fi
2885
2886ac_safe=`echo "unistd.h" | sed 'y%./+-%__p_%'`
2887echo $ac_n "checking for unistd.h""... $ac_c" 1>&6
2888echo "configure:2889: checking for unistd.h" >&5
2889if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2890  echo $ac_n "(cached) $ac_c" 1>&6
2891else
2892  cat > conftest.$ac_ext <<EOF
2893#line 2894 "configure"
2894#include "confdefs.h"
2895#include <unistd.h>
2896EOF
2897ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2898{ (eval echo configure:2899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2899ac_err=`grep -v '^ *+' conftest.out`
2900if test -z "$ac_err"; then
2901  rm -rf conftest*
2902  eval "ac_cv_header_$ac_safe=yes"
2903else
2904  echo "$ac_err" >&5
2905  echo "configure: failed program was:" >&5
2906  cat conftest.$ac_ext >&5
2907  rm -rf conftest*
2908  eval "ac_cv_header_$ac_safe=no"
2909fi
2910rm -f conftest*
2911fi
2912if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2913  echo "$ac_t""yes" 1>&6
2914  :
2915else
2916  echo "$ac_t""no" 1>&6
2917echo "*** no unistd.h";exit
2918fi
2919
2920ac_safe=`echo "math.h" | sed 'y%./+-%__p_%'`
2921echo $ac_n "checking for math.h""... $ac_c" 1>&6
2922echo "configure:2923: checking for math.h" >&5
2923if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2924  echo $ac_n "(cached) $ac_c" 1>&6
2925else
2926  cat > conftest.$ac_ext <<EOF
2927#line 2928 "configure"
2928#include "confdefs.h"
2929#include <math.h>
2930EOF
2931ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2932{ (eval echo configure:2933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2933ac_err=`grep -v '^ *+' conftest.out`
2934if test -z "$ac_err"; then
2935  rm -rf conftest*
2936  eval "ac_cv_header_$ac_safe=yes"
2937else
2938  echo "$ac_err" >&5
2939  echo "configure: failed program was:" >&5
2940  cat conftest.$ac_ext >&5
2941  rm -rf conftest*
2942  eval "ac_cv_header_$ac_safe=no"
2943fi
2944rm -f conftest*
2945fi
2946if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2947  echo "$ac_t""yes" 1>&6
2948  :
2949else
2950  echo "$ac_t""no" 1>&6
2951echo "*** no math.h";exit
2952fi
2953
2954
2955
2956for ac_hdr in sys/select.h gmp.h genpari.h saclib.h
2957do
2958ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2959echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2960echo "configure:2961: checking for $ac_hdr" >&5
2961if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2962  echo $ac_n "(cached) $ac_c" 1>&6
2963else
2964  cat > conftest.$ac_ext <<EOF
2965#line 2966 "configure"
2966#include "confdefs.h"
2967#include <$ac_hdr>
2968EOF
2969ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2970{ (eval echo configure:2971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2971ac_err=`grep -v '^ *+' conftest.out`
2972if test -z "$ac_err"; then
2973  rm -rf conftest*
2974  eval "ac_cv_header_$ac_safe=yes"
2975else
2976  echo "$ac_err" >&5
2977  echo "configure: failed program was:" >&5
2978  cat conftest.$ac_ext >&5
2979  rm -rf conftest*
2980  eval "ac_cv_header_$ac_safe=no"
2981fi
2982rm -f conftest*
2983fi
2984if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2985  echo "$ac_t""yes" 1>&6
2986    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2987  cat >> confdefs.h <<EOF
2988#define $ac_tr_hdr 1
2989EOF
2990 
2991else
2992  echo "$ac_t""no" 1>&6
2993fi
2994done
2995
2996
2997if test "$ac_cv_header_gmp_h" = yes; then
2998  cat > conftest.$ac_ext <<EOF
2999#line 3000 "configure"
3000#include "confdefs.h"
3001#include <gmp.h>
3002EOF
3003if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3004  egrep "mpz_ptr" >/dev/null 2>&1; then
3005  rm -rf conftest*
3006  MPZ_PTR=mpz_ptr
3007fi
3008rm -f conftest*
3009
3010  if test ! "$MPZ_PTR" = mpz_ptr; then
3011    cat > conftest.$ac_ext <<EOF
3012#line 3013 "configure"
3013#include "confdefs.h"
3014#include <gmp.h>
3015EOF
3016if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3017  egrep "MP_INT" >/dev/null 2>&1; then
3018  rm -rf conftest*
3019  MPZ_PTR="MP_INT*"
3020fi
3021rm -f conftest*
3022
3023    cat >> confdefs.h <<EOF
3024#define mpz_ptr MP_INT*
3025EOF
3026
3027    cat >> confdefs.h <<EOF
3028#define _mp_alloc alloc
3029EOF
3030
3031    cat >> confdefs.h <<EOF
3032#define _mp_size size
3033EOF
3034
3035    cat >> confdefs.h <<EOF
3036#define _mp_d d
3037EOF
3038
3039  fi
3040  cat > conftest.$ac_ext <<EOF
3041#line 3042 "configure"
3042#include "confdefs.h"
3043#include <gmp.h>
3044EOF
3045if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3046  egrep "mpf_ptr" >/dev/null 2>&1; then
3047  rm -rf conftest*
3048  MPF_PTR=mpf_ptr
3049fi
3050rm -f conftest*
3051
3052fi
3053
3054# Check whether --with-apint or --without-apint was given.
3055if test "${with_apint+set}" = set; then
3056  withval="$with_apint"
3057  :
3058fi
3059
3060# Check whether --with-apreal or --without-apreal was given.
3061if test "${with_apreal+set}" = set; then
3062  withval="$with_apreal"
3063  :
3064fi
3065
3066# Check whether --with-gmp or --without-gmp was given.
3067if test "${with_gmp+set}" = set; then
3068  withval="$with_gmp"
3069  :
3070fi
3071
3072
3073# Check whether --with-pari or --without-pari was given.
3074if test "${with_pari+set}" = set; then
3075  withval="$with_pari"
3076  :
3077fi
3078
3079
3080# Check whether --with-saclib or --without-saclib was given.
3081if test "${with_saclib+set}" = set; then
3082  withval="$with_saclib"
3083  :
3084fi
3085
3086
3087# Check whether --with-tb or --without-tb was given.
3088if test "${with_tb+set}" = set; then
3089  withval="$with_tb"
3090  :
3091fi
3092
3093
3094# Check whether --with-pvm or --without-pvm was given.
3095if test "${with_pvm+set}" = set; then
3096  withval="$with_pvm"
3097  :
3098fi
3099
3100
3101# Check whether --with-debug or --without-debug was given.
3102if test "${with_debug+set}" = set; then
3103  withval="$with_debug"
3104  :
3105fi
3106
3107
3108# Check whether --with-extra_cflags or --without-extra_cflags was given.
3109if test "${with_extra_cflags+set}" = set; then
3110  withval="$with_extra_cflags"
3111  :
3112fi
3113
3114
3115# Check whether --with-rsh or --without-rsh was given.
3116if test "${with_rsh+set}" = set; then
3117  withval="$with_rsh"
3118  :
3119fi
3120
3121
3122cat >> confdefs.h <<\EOF
3123#define MP_DUMMY 0
3124EOF
3125
3126cat >> confdefs.h <<\EOF
3127#define MP_GMP 1
3128EOF
3129
3130cat >> confdefs.h <<\EOF
3131#define MP_PARI 2
3132EOF
3133
3134cat >> confdefs.h <<\EOF
3135#define MP_SAC 3
3136EOF
3137
3138
3139if test "$with_default_apint" = none; then
3140  cat >> confdefs.h <<\EOF
3141#define MP_DEFAULT_APINT MP_DUMMY
3142EOF
3143
3144elif test "$with_default_apint" = pari; then
3145  if test "$ac_cv_header_genpari_h" != yes; then
3146    echo "configure: warning: Need genpari.h to use pari as default ApInt format" 1>&2
3147    echo "configure: warning: Use dummy as default MP ApInt format" 1>&2
3148    cat >> confdefs.h <<\EOF
3149#define MP_DEFAULT_APINT_FORMAT MP_DUMMY
3150EOF
3151 
3152  else
3153    cat >> confdefs.h <<\EOF
3154#define MP_DEFAULT_APINT_FORMAT MP_PARI
3155EOF
3156
3157    cat >> confdefs.h <<\EOF
3158#define MP_HAVE_PARI 1
3159EOF
3160
3161  fi
3162elif test "$with_default_apint" = saclib; then
3163  if test "$ac_cv_header_saclib_h" != yes; then
3164    echo "configure: warning: Need saclib.h to use saclib as default ApInt format" 1>&2
3165    echo "configure: warning: Use dummy as default MP ApInt format" 1>&2
3166    cat >> confdefs.h <<\EOF
3167#define MP_DEFAULT_APINTFORMAT MP_DUMMY
3168EOF
3169 
3170  else
3171    cat >> confdefs.h <<\EOF
3172#define MP_DEFAULT_APINT_FORMAT MP_SAC
3173EOF
3174
3175    cat >> confdefs.h <<\EOF
3176#define MP_HAVE_SACLIB 1
3177EOF
3178
3179  fi
3180else
3181  if test "$ac_cv_header_gmp_h" != yes && test "$enable_gmp" != yes; then
3182    echo "configure: warning: Need gmp.h to use gmp as default ApInt format" 1>&2
3183    echo "configure: warning: Use dummy as default MP ApInt format" 1>&2
3184    cat >> confdefs.h <<\EOF
3185#define MP_DEFAULT_APINTFORMAT MP_DUMMY
3186EOF
3187 
3188  elif test -z "$MPZ_PTR" && test "$enable_gmp" != yes; then
3189    echo "configure: warning: Need gmp.h containing typedef of 'mpz_ptr' or 'MP_INT'" 1>&2
3190    echo "configure: warning: Use dummy as default MP ApInt format" 1>&2
3191    cat >> confdefs.h <<\EOF
3192#define MP_DEFAULT_APINTFORMAT MP_DUMMY
3193EOF
3194
3195  else
3196    cat >> confdefs.h <<\EOF
3197#define MP_DEFAULT_APINT_FORMAT MP_GMP
3198EOF
3199
3200    cat >> confdefs.h <<\EOF
3201#define MP_HAVE_GMP_APINT 1
3202EOF
3203
3204    if test "$ac_cv_header_gmp_h" != yes; then
3205      echo "configure: warning: Need gmp.h to use gmp as default ApInt format" 1>&2
3206      echo "configure: warning: Install gmp.h before making MP" 1>&2
3207    fi
3208  fi
3209fi
3210
3211if test "$with_default_apreal" = none; then
3212  cat >> confdefs.h <<\EOF
3213#define MP_DEFAULT_APREAL MP_DUMMY
3214EOF
3215
3216else
3217  if test "$ac_cv_header_gmp_h" != yes && test "$enable_gmp" != yes; then
3218    echo "configure: warning: Need gmp.h to use gmp as default ApReal format" 1>&2
3219    echo "configure: warning: Use dummy as default MP ApReal format" 1>&2
3220    cat >> confdefs.h <<\EOF
3221#define MP_DEFAULT_APREALFORMAT MP_DUMMY
3222EOF
3223 
3224  elif test -z "$MPF_PTR" && test "$enable_gmp" != yes; then
3225    echo "configure: warning: Need gmp.h containing tyedef of 'mpf_ptr'" 1>&2
3226    echo "configure: warning: Use dummy as default MP ApReal format" 1>&2
3227    cat >> confdefs.h <<\EOF
3228#define MP_DEFAULT_APREALFORMAT MP_DUMMY
3229EOF
3230 
3231  else
3232    cat >> confdefs.h <<\EOF
3233#define MP_DEFAULT_APREAL_FORMAT MP_GMP
3234EOF
3235
3236    cat >> confdefs.h <<\EOF
3237#define MP_HAVE_GMP_APREAL 1
3238EOF
3239
3240    if test "$ac_cv_header_gmp_h" != yes ; then
3241      echo "configure: warning: Need gmp.h to use gmp as default ApReal format" 1>&2
3242      echo "configure: warning: Install gmp.h before making MP" 1>&2
3243    fi
3244  fi
3245fi
3246
3247if test "$with_gmp" != no; then
3248  if test "$ac_cv_header_gmp_h" != yes && test "$enable_gmp" != yes; then
3249    echo "configure: warning: Can not build MP with gmp ApInt routines: Need gmp.h" 1>&2
3250  else
3251    cat >> confdefs.h <<\EOF
3252#define MP_HAVE_GMP 1
3253EOF
3254
3255    if test "$ac_cv_header_gmp_h" != yes; then
3256      echo "configure: warning: Need gmp.h to build MP with gmp ApInt routines" 1>&2
3257      echo "configure: warning: Install gmp.h before making MP" 1>&2
3258    fi
3259  fi
3260fi
3261
3262if test "$with_saclib" = yes; then
3263  if test "$ac_cv_header_saclib_h" != yes; then
3264    echo "configure: warning: Can not build MP with saclib ApInt routines: Need saclib.h" 1>&2
3265  else
3266    cat >> confdefs.h <<\EOF
3267#define MP_HAVE_SAC 1
3268EOF
3269
3270  fi
3271fi
3272
3273if test "$with_pari" = yes; then
3274  if test "$ac_cv_header_genpari_h" != yes; then
3275    echo "configure: warning: Can not build MP with pari ApInt routines: Need genpari.h" 1>&2
3276  else
3277    cat >> confdefs.h <<\EOF
3278#define MP_HAVE_PARI 1
3279EOF
3280
3281    cat >> confdefs.h <<\EOF
3282#define LONG_IS_32BIT 1
3283EOF
3284
3285    echo $ac_n "checking for ulong""... $ac_c" 1>&6
3286echo "configure:3287: checking for ulong" >&5
3287if eval "test \"`echo '$''{'ac_cv_type_ulong'+set}'`\" = set"; then
3288  echo $ac_n "(cached) $ac_c" 1>&6
3289else
3290  cat > conftest.$ac_ext <<EOF
3291#line 3292 "configure"
3292#include "confdefs.h"
3293#include <sys/types.h>
3294#if STDC_HEADERS
3295#include <stdlib.h>
3296#include <stddef.h>
3297#endif
3298EOF
3299if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3300  egrep "ulong[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3301  rm -rf conftest*
3302  ac_cv_type_ulong=yes
3303else
3304  rm -rf conftest*
3305  ac_cv_type_ulong=no
3306fi
3307rm -f conftest*
3308
3309fi
3310echo "$ac_t""$ac_cv_type_ulong" 1>&6
3311if test $ac_cv_type_ulong = no; then
3312  cat >> confdefs.h <<\EOF
3313#define ulong no
3314EOF
3315
3316fi
3317
3318    if test "$ac_cv_type_ulong" = no; then
3319        cat >> confdefs.h <<\EOF
3320#define ULONG_NOT_DEFINED 1
3321EOF
3322
3323    fi
3324  fi
3325fi
3326
3327   
3328
3329if test "$with_tb" = yes; then
3330  ac_safe=`echo "TB.h" | sed 'y%./+-%__p_%'`
3331echo $ac_n "checking for TB.h""... $ac_c" 1>&6
3332echo "configure:3333: checking for TB.h" >&5
3333if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3334  echo $ac_n "(cached) $ac_c" 1>&6
3335else
3336  cat > conftest.$ac_ext <<EOF
3337#line 3338 "configure"
3338#include "confdefs.h"
3339#include <TB.h>
3340EOF
3341ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3342{ (eval echo configure:3343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3343ac_err=`grep -v '^ *+' conftest.out`
3344if test -z "$ac_err"; then
3345  rm -rf conftest*
3346  eval "ac_cv_header_$ac_safe=yes"
3347else
3348  echo "$ac_err" >&5
3349  echo "configure: failed program was:" >&5
3350  cat conftest.$ac_ext >&5
3351  rm -rf conftest*
3352  eval "ac_cv_header_$ac_safe=no"
3353fi
3354rm -f conftest*
3355fi
3356if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3357  echo "$ac_t""yes" 1>&6
3358  :
3359else
3360  echo "$ac_t""no" 1>&6
3361fi
3362
3363  if test "$ac_cv_header_TB_h" != yes; then
3364    echo "configure: warning: Can not build with Toolbus: Need TB.h" 1>&2
3365  else
3366    cat >> confdefs.h <<\EOF
3367#define MP_HAVE_TB 1
3368EOF
3369
3370  fi
3371fi
3372
3373if test "$with_pvm" = yes; then
3374 ac_safe=`echo "pvm3.h" | sed 'y%./+-%__p_%'`
3375echo $ac_n "checking for pvm3.h""... $ac_c" 1>&6
3376echo "configure:3377: checking for pvm3.h" >&5
3377if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3378  echo $ac_n "(cached) $ac_c" 1>&6
3379else
3380  cat > conftest.$ac_ext <<EOF
3381#line 3382 "configure"
3382#include "confdefs.h"
3383#include <pvm3.h>
3384EOF
3385ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3386{ (eval echo configure:3387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3387ac_err=`grep -v '^ *+' conftest.out`
3388if test -z "$ac_err"; then
3389  rm -rf conftest*
3390  eval "ac_cv_header_$ac_safe=yes"
3391else
3392  echo "$ac_err" >&5
3393  echo "configure: failed program was:" >&5
3394  cat conftest.$ac_ext >&5
3395  rm -rf conftest*
3396  eval "ac_cv_header_$ac_safe=no"
3397fi
3398rm -f conftest*
3399fi
3400if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3401  echo "$ac_t""yes" 1>&6
3402  :
3403else
3404  echo "$ac_t""no" 1>&6
3405fi
3406
3407 if test "$ac_cv_header_pvm3_h" != yes; then
3408    echo "configure: warning: Can not build with Pvm: Need pvm3.h" 1>&2
3409  else
3410    cat >> confdefs.h <<\EOF
3411#define MP_HAVE_PVM 1
3412EOF
3413
3414  fi
3415fi
3416
3417if test "${with_extra_cflags+set}" = set; then
3418  CFLAGS="$CFLAGS ${with_extra_cflags}"
3419fi
3420
3421if test "${with_rsh+set}" = set; then
3422  # Extract the first word of "${with_rsh}", so it can be a program name with args.
3423set dummy ${with_rsh}; ac_word=$2
3424echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3425echo "configure:3426: checking for $ac_word" >&5
3426if eval "test \"`echo '$''{'ac_cv_prog_with_rsh'+set}'`\" = set"; then
3427  echo $ac_n "(cached) $ac_c" 1>&6
3428else
3429  if test -n "$with_rsh"; then
3430  ac_cv_prog_with_rsh="$with_rsh" # Let the user override the test.
3431else
3432  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3433  for ac_dir in $PATH; do
3434    test -z "$ac_dir" && ac_dir=.
3435    if test -f $ac_dir/$ac_word; then
3436      ac_cv_prog_with_rsh="${with_rsh}"
3437      break
3438    fi
3439  done
3440  IFS="$ac_save_ifs"
3441fi
3442fi
3443with_rsh="$ac_cv_prog_with_rsh"
3444if test -n "$with_rsh"; then
3445  echo "$ac_t""$with_rsh" 1>&6
3446else
3447  echo "$ac_t""no" 1>&6
3448fi
3449
3450  if test "$ac_cv_prog_with_rsh" = $with_rsh; then
3451    ac_rsh_programs=${with_rsh}
3452  else
3453   ac_rsh_programs=
3454  fi
3455fi
3456
3457
3458
3459# Extract the first word of "rsh", so it can be a program name with args.
3460set dummy rsh; ac_word=$2
3461echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3462echo "configure:3463: checking for $ac_word" >&5
3463if eval "test \"`echo '$''{'ac_cv_prog_mp_rsh'+set}'`\" = set"; then
3464  echo $ac_n "(cached) $ac_c" 1>&6
3465else
3466  if test -n "$mp_rsh"; then
3467  ac_cv_prog_mp_rsh="$mp_rsh" # Let the user override the test.
3468else
3469  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3470  for ac_dir in $PATH; do
3471    test -z "$ac_dir" && ac_dir=.
3472    if test -f $ac_dir/$ac_word; then
3473      ac_cv_prog_mp_rsh="rsh"
3474      break
3475    fi
3476  done
3477  IFS="$ac_save_ifs"
3478  test -z "$ac_cv_prog_mp_rsh" && ac_cv_prog_mp_rsh="no"
3479fi
3480fi
3481mp_rsh="$ac_cv_prog_mp_rsh"
3482if test -n "$mp_rsh"; then
3483  echo "$ac_t""$mp_rsh" 1>&6
3484else
3485  echo "$ac_t""no" 1>&6
3486fi
3487
3488if test "$ac_cv_prog_mp_rsh" = rsh; then
3489   ac_rsh_programs="$ac_rsh_programs rsh"
3490fi
3491
3492# Extract the first word of "remsh", so it can be a program name with args.
3493set dummy remsh; ac_word=$2
3494echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3495echo "configure:3496: checking for $ac_word" >&5
3496if eval "test \"`echo '$''{'ac_cv_prog_mp_remsh'+set}'`\" = set"; then
3497  echo $ac_n "(cached) $ac_c" 1>&6
3498else
3499  if test -n "$mp_remsh"; then
3500  ac_cv_prog_mp_remsh="$mp_remsh" # Let the user override the test.
3501else
3502  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3503  for ac_dir in $PATH; do
3504    test -z "$ac_dir" && ac_dir=.
3505    if test -f $ac_dir/$ac_word; then
3506      ac_cv_prog_mp_remsh="remsh"
3507      break
3508    fi
3509  done
3510  IFS="$ac_save_ifs"
3511  test -z "$ac_cv_prog_mp_remsh" && ac_cv_prog_mp_remsh="no"
3512fi
3513fi
3514mp_remsh="$ac_cv_prog_mp_remsh"
3515if test -n "$mp_remsh"; then
3516  echo "$ac_t""$mp_remsh" 1>&6
3517else
3518  echo "$ac_t""no" 1>&6
3519fi
3520
3521if test "$ac_cv_prog_mp_remsh" = remsh; then
3522   ac_rsh_programs="$ac_rsh_programs remsh"
3523fi
3524
3525# Extract the first word of "ssh", so it can be a program name with args.
3526set dummy ssh; ac_word=$2
3527echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3528echo "configure:3529: checking for $ac_word" >&5
3529if eval "test \"`echo '$''{'ac_cv_prog_mp_ssh'+set}'`\" = set"; then
3530  echo $ac_n "(cached) $ac_c" 1>&6
3531else
3532  if test -n "$mp_ssh"; then
3533  ac_cv_prog_mp_ssh="$mp_ssh" # Let the user override the test.
3534else
3535  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3536  for ac_dir in $PATH; do
3537    test -z "$ac_dir" && ac_dir=.
3538    if test -f $ac_dir/$ac_word; then
3539      ac_cv_prog_mp_ssh="ssh"
3540      break
3541    fi
3542  done
3543  IFS="$ac_save_ifs"
3544  test -z "$ac_cv_prog_mp_ssh" && ac_cv_prog_mp_ssh="no"
3545fi
3546fi
3547mp_ssh="$ac_cv_prog_mp_ssh"
3548if test -n "$mp_ssh"; then
3549  echo "$ac_t""$mp_ssh" 1>&6
3550else
3551  echo "$ac_t""no" 1>&6
3552fi
3553
3554if test "$ac_cv_prog_mp_ssh" = ssh; then
3555   ac_rsh_programs="$ac_rsh_programs ssh"
3556fi
3557
3558echo $ac_n "checking which remote shell command to use""... $ac_c" 1>&6
3559echo "configure:3560: checking which remote shell command to use" >&5
3560for mp_rsh in $ac_rsh_programs; do
3561    if $mp_rsh `hostname` -n uname \>\& /dev/null; then
3562      mp_rsh_found=$mp_rsh
3563      break;
3564    else
3565      mp_rsh_found=none
3566    fi
3567done
3568echo "$ac_t""$mp_rsh_found" 1>&6
3569if test "${mp_rsh_found}" = none; then
3570   echo "configure: warning: "No working remote shell command found"" 1>&2
3571else
3572  cat >> confdefs.h <<EOF
3573#define MP_RSH_COMMAND "$mp_rsh_found"
3574EOF
3575
3576fi
3577
3578# Check whether --with-malloc or --without-malloc was given.
3579if test "${with_malloc+set}" = set; then
3580  withval="$with_malloc"
3581  :
3582fi
3583
3584
3585if test "${with_malloc+set}" = set; then
3586  ac_safe=`echo "${with_malloc}" | sed 'y%./+-%__p_%'`
3587echo $ac_n "checking for ${with_malloc}""... $ac_c" 1>&6
3588echo "configure:3589: checking for ${with_malloc}" >&5
3589if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3590  echo $ac_n "(cached) $ac_c" 1>&6
3591else
3592  cat > conftest.$ac_ext <<EOF
3593#line 3594 "configure"
3594#include "confdefs.h"
3595#include <${with_malloc}>
3596EOF
3597ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3598{ (eval echo configure:3599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3599ac_err=`grep -v '^ *+' conftest.out`
3600if test -z "$ac_err"; then
3601  rm -rf conftest*
3602  eval "ac_cv_header_$ac_safe=yes"
3603else
3604  echo "$ac_err" >&5
3605  echo "configure: failed program was:" >&5
3606  cat conftest.$ac_ext >&5
3607  rm -rf conftest*
3608  eval "ac_cv_header_$ac_safe=no"
3609fi
3610rm -f conftest*
3611fi
3612if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3613  echo "$ac_t""yes" 1>&6
3614  :
3615else
3616  echo "$ac_t""no" 1>&6
3617with_malloc=
3618fi
3619
3620fi
3621echo $ac_n "checking where malloc rotuines come from""... $ac_c" 1>&6
3622echo "configure:3623: checking where malloc rotuines come from" >&5
3623if test "${with_malloc+set}" = set; then
3624  echo "$ac_t""${with_malloc}" 1>&6
3625  cat >> confdefs.h <<\EOF
3626#define WITH_EXTERNAL_MALLOC 1
3627EOF
3628
3629  cat >> confdefs.h <<EOF
3630#define EXTERNAL_MALLOC_H "${with_malloc}"
3631EOF
3632
3633else
3634  echo "$ac_t""stdlib.h" 1>&6
3635fi
3636
3637
3638echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3639echo "configure:3640: checking whether byte ordering is bigendian" >&5
3640if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3641  echo $ac_n "(cached) $ac_c" 1>&6
3642else
3643  ac_cv_c_bigendian=unknown
3644# See if sys/param.h defines the BYTE_ORDER macro.
3645cat > conftest.$ac_ext <<EOF
3646#line 3647 "configure"
3647#include "confdefs.h"
3648#include <sys/types.h>
3649#include <sys/param.h>
3650int main() {
3651
3652#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3653 bogus endian macros
3654#endif
3655; return 0; }
3656EOF
3657if { (eval echo configure:3658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3658  rm -rf conftest*
3659  # It does; now see whether it defined to BIG_ENDIAN or not.
3660cat > conftest.$ac_ext <<EOF
3661#line 3662 "configure"
3662#include "confdefs.h"
3663#include <sys/types.h>
3664#include <sys/param.h>
3665int main() {
3666
3667#if BYTE_ORDER != BIG_ENDIAN
3668 not big endian
3669#endif
3670; return 0; }
3671EOF
3672if { (eval echo configure:3673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3673  rm -rf conftest*
3674  ac_cv_c_bigendian=yes
3675else
3676  echo "configure: failed program was:" >&5
3677  cat conftest.$ac_ext >&5
3678  rm -rf conftest*
3679  ac_cv_c_bigendian=no
3680fi
3681rm -f conftest*
3682else
3683  echo "configure: failed program was:" >&5
3684  cat conftest.$ac_ext >&5
3685fi
3686rm -f conftest*
3687if test $ac_cv_c_bigendian = unknown; then
3688if test "$cross_compiling" = yes; then
3689    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3690else
3691  cat > conftest.$ac_ext <<EOF
3692#line 3693 "configure"
3693#include "confdefs.h"
3694main () {
3695  /* Are we little or big endian?  From Harbison&Steele.  */
3696  union
3697  {
3698    long l;
3699    char c[sizeof (long)];
3700  } u;
3701  u.l = 1;
3702  exit (u.c[sizeof (long) - 1] == 1);
3703}
3704EOF
3705if { (eval echo configure:3706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3706then
3707  ac_cv_c_bigendian=no
3708else
3709  echo "configure: failed program was:" >&5
3710  cat conftest.$ac_ext >&5
3711  rm -fr conftest*
3712  ac_cv_c_bigendian=yes
3713fi
3714rm -fr conftest*
3715fi
3716
3717fi
3718fi
3719
3720echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3721if test $ac_cv_c_bigendian = yes; then
3722  cat >> confdefs.h <<\EOF
3723#define WORDS_BIGENDIAN 1
3724EOF
3725
3726fi
3727
3728echo $ac_n "checking for working const""... $ac_c" 1>&6
3729echo "configure:3730: checking for working const" >&5
3730if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3731  echo $ac_n "(cached) $ac_c" 1>&6
3732else
3733  cat > conftest.$ac_ext <<EOF
3734#line 3735 "configure"
3735#include "confdefs.h"
3736
3737int main() {
3738
3739/* Ultrix mips cc rejects this.  */
3740typedef int charset[2]; const charset x;
3741/* SunOS 4.1.1 cc rejects this.  */
3742char const *const *ccp;
3743char **p;
3744/* NEC SVR4.0.2 mips cc rejects this.  */
3745struct point {int x, y;};
3746static struct point const zero = {0,0};
3747/* AIX XL C 1.02.0.0 rejects this.
3748   It does not let you subtract one const X* pointer from another in an arm
3749   of an if-expression whose if-part is not a constant expression */
3750const char *g = "string";
3751ccp = &g + (g ? g-g : 0);
3752/* HPUX 7.0 cc rejects these. */
3753++ccp;
3754p = (char**) ccp;
3755ccp = (char const *const *) p;
3756{ /* SCO 3.2v4 cc rejects this.  */
3757  char *t;
3758  char const *s = 0 ? (char *) 0 : (char const *) 0;
3759
3760  *t++ = 0;
3761}
3762{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3763  int x[] = {25, 17};
3764  const int *foo = &x[0];
3765  ++foo;
3766}
3767{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3768  typedef const int *iptr;
3769  iptr p = 0;
3770  ++p;
3771}
3772{ /* AIX XL C 1.02.0.0 rejects this saying
3773     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3774  struct s { int j; const int *ap[3]; };
3775  struct s *b; b->j = 5;
3776}
3777{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3778  const int foo = 10;
3779}
3780
3781; return 0; }
3782EOF
3783if { (eval echo configure:3784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3784  rm -rf conftest*
3785  ac_cv_c_const=yes
3786else
3787  echo "configure: failed program was:" >&5
3788  cat conftest.$ac_ext >&5
3789  rm -rf conftest*
3790  ac_cv_c_const=no
3791fi
3792rm -f conftest*
3793fi
3794
3795echo "$ac_t""$ac_cv_c_const" 1>&6
3796if test $ac_cv_c_const = no; then
3797  cat >> confdefs.h <<\EOF
3798#define const
3799EOF
3800
3801fi
3802
3803echo $ac_n "checking for size_t""... $ac_c" 1>&6
3804echo "configure:3805: checking for size_t" >&5
3805if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3806  echo $ac_n "(cached) $ac_c" 1>&6
3807else
3808  cat > conftest.$ac_ext <<EOF
3809#line 3810 "configure"
3810#include "confdefs.h"
3811#include <sys/types.h>
3812#if STDC_HEADERS
3813#include <stdlib.h>
3814#include <stddef.h>
3815#endif
3816EOF
3817if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3818  egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3819  rm -rf conftest*
3820  ac_cv_type_size_t=yes
3821else
3822  rm -rf conftest*
3823  ac_cv_type_size_t=no
3824fi
3825rm -f conftest*
3826
3827fi
3828echo "$ac_t""$ac_cv_type_size_t" 1>&6
3829if test $ac_cv_type_size_t = no; then
3830  cat >> confdefs.h <<\EOF
3831#define size_t unsigned
3832EOF
3833
3834fi
3835
3836echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3837echo "configure:3838: checking whether time.h and sys/time.h may both be included" >&5
3838if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3839  echo $ac_n "(cached) $ac_c" 1>&6
3840else
3841  cat > conftest.$ac_ext <<EOF
3842#line 3843 "configure"
3843#include "confdefs.h"
3844#include <sys/types.h>
3845#include <sys/time.h>
3846#include <time.h>
3847int main() {
3848struct tm *tp;
3849; return 0; }
3850EOF
3851if { (eval echo configure:3852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3852  rm -rf conftest*
3853  ac_cv_header_time=yes
3854else
3855  echo "configure: failed program was:" >&5
3856  cat conftest.$ac_ext >&5
3857  rm -rf conftest*
3858  ac_cv_header_time=no
3859fi
3860rm -f conftest*
3861fi
3862
3863echo "$ac_t""$ac_cv_header_time" 1>&6
3864if test $ac_cv_header_time = yes; then
3865  cat >> confdefs.h <<\EOF
3866#define TIME_WITH_SYS_TIME 1
3867EOF
3868
3869fi
3870
3871
3872echo $ac_n "checking size of long""... $ac_c" 1>&6
3873echo "configure:3874: checking size of long" >&5
3874if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3875  echo $ac_n "(cached) $ac_c" 1>&6
3876else
3877  if test "$cross_compiling" = yes; then
3878  ac_cv_sizeof_long=4
3879else
3880  cat > conftest.$ac_ext <<EOF
3881#line 3882 "configure"
3882#include "confdefs.h"
3883#include <stdio.h>
3884main()
3885{
3886  FILE *f=fopen("conftestval", "w");
3887  if (!f) exit(1);
3888  fprintf(f, "%d\n", sizeof(long));
3889  exit(0);
3890}
3891EOF
3892if { (eval echo configure:3893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3893then
3894  ac_cv_sizeof_long=`cat conftestval`
3895else
3896  echo "configure: failed program was:" >&5
3897  cat conftest.$ac_ext >&5
3898  rm -fr conftest*
3899  ac_cv_sizeof_long=0
3900fi
3901rm -fr conftest*
3902fi
3903
3904fi
3905echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3906cat >> confdefs.h <<EOF
3907#define SIZEOF_LONG $ac_cv_sizeof_long
3908EOF
3909
3910
3911if test "$ac_cv_sizeof_long" != 4; then
3912  { echo "configure: error: Need sizeof long to equal 4" 1>&2; exit 1; }
3913fi
3914
3915
3916CLEAN="rm -f *~ a.out core *.o .log"
3917
3918
3919if test "${GCC}" = yes && test "$ac_cv_cflags_not_set" = yes; then
3920  if test "$with_debug" = yes; then
3921    CFLAGS="-g -Wall -Wno-unused ${with_extra_cflags}"
3922  else
3923    CFLAGS="-O3 -w -fomit-frame-pointer ${with_extra_cflags}"
3924  fi
3925fi
3926
3927if test "$prefix" = NONE; then
3928  ac_configure_args="$ac_configure_args --prefix=$ac_default_prefix"
3929fi
3930   
3931subdirs="$CONFIG_SUBDIRS"
3932
3933
3934trap '' 1 2 15
3935cat > confcache <<\EOF
3936# This file is a shell script that caches the results of configure
3937# tests run on this system so they can be shared between configure
3938# scripts and configure runs.  It is not useful on other systems.
3939# If it contains results you don't want to keep, you may remove or edit it.
3940#
3941# By default, configure uses ./config.cache as the cache file,
3942# creating it if it does not exist already.  You can give configure
3943# the --cache-file=FILE option to use a different cache file; that is
3944# what configure does when it calls configure scripts in
3945# subdirectories, so they share the cache.
3946# Giving --cache-file=/dev/null disables caching, for debugging configure.
3947# config.status only pays attention to the cache file if you give it the
3948# --recheck option to rerun configure.
3949#
3950EOF
3951# The following way of writing the cache mishandles newlines in values,
3952# but we know of no workaround that is simple, portable, and efficient.
3953# So, don't put newlines in cache variables' values.
3954# Ultrix sh set writes to stderr and can't be redirected directly,
3955# and sets the high bit in the cache file unless we assign to the vars.
3956(set) 2>&1 |
3957  case `(ac_space=' '; set) 2>&1` in
3958  *ac_space=\ *)
3959    # `set' does not quote correctly, so add quotes (double-quote substitution
3960    # turns \\\\ into \\, and sed turns \\ into \).
3961    sed -n \
3962      -e "s/'/'\\\\''/g" \
3963      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3964    ;;
3965  *)
3966    # `set' quotes correctly as required by POSIX, so do not add quotes.
3967    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3968    ;;
3969  esac >> confcache
3970if cmp -s $cache_file confcache; then
3971  :
3972else
3973  if test -w $cache_file; then
3974    echo "updating cache $cache_file"
3975    cat confcache > $cache_file
3976  else
3977    echo "not updating unwritable cache $cache_file"
3978  fi
3979fi
3980rm -f confcache
3981
3982trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3983
3984test "x$prefix" = xNONE && prefix=$ac_default_prefix
3985# Let make expand exec_prefix.
3986test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3987
3988# Any assignment to VPATH causes Sun make to only execute
3989# the first set of double-colon rules, so remove it if not needed.
3990# If there is a colon in the path, we need to keep it.
3991if test "x$srcdir" = x.; then
3992  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3993fi
3994
3995trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3996
3997DEFS=-DHAVE_CONFIG_H
3998
3999# Without the "./", some shells look in PATH for config.status.
4000: ${CONFIG_STATUS=./config.status}
4001
4002echo creating $CONFIG_STATUS
4003rm -f $CONFIG_STATUS
4004cat > $CONFIG_STATUS <<EOF
4005#! /bin/sh
4006# Generated automatically by configure.
4007# Run this file to recreate the current configuration.
4008# This directory was configured as follows,
4009# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4010#
4011# $0 $ac_configure_args
4012#
4013# Compiler output produced by configure, useful for debugging
4014# configure, is in ./config.log if it exists.
4015
4016ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4017for ac_option
4018do
4019  case "\$ac_option" in
4020  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4021    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4022    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4023  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4024    echo "$CONFIG_STATUS generated by autoconf version 2.12"
4025    exit 0 ;;
4026  -help | --help | --hel | --he | --h)
4027    echo "\$ac_cs_usage"; exit 0 ;;
4028  *) echo "\$ac_cs_usage"; exit 1 ;;
4029  esac
4030done
4031
4032ac_given_srcdir=$srcdir
4033
4034trap 'rm -fr `echo "Makefile MP/Makefile MPT/Makefile mpviewer/Makefile \
4035        mp-pvm3/Makefile examples/Makefile MP/MP_Config.h:MP/h/MP_Config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4036EOF
4037cat >> $CONFIG_STATUS <<EOF
4038
4039# Protect against being on the right side of a sed subst in config.status.
4040sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4041 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4042$ac_vpsub
4043$extrasub
4044s%@CFLAGS@%$CFLAGS%g
4045s%@CPPFLAGS@%$CPPFLAGS%g
4046s%@CXXFLAGS@%$CXXFLAGS%g
4047s%@DEFS@%$DEFS%g
4048s%@LDFLAGS@%$LDFLAGS%g
4049s%@LIBS@%$LIBS%g
4050s%@exec_prefix@%$exec_prefix%g
4051s%@prefix@%$prefix%g
4052s%@program_transform_name@%$program_transform_name%g
4053s%@bindir@%$bindir%g
4054s%@sbindir@%$sbindir%g
4055s%@libexecdir@%$libexecdir%g
4056s%@datadir@%$datadir%g
4057s%@sysconfdir@%$sysconfdir%g
4058s%@sharedstatedir@%$sharedstatedir%g
4059s%@localstatedir@%$localstatedir%g
4060s%@libdir@%$libdir%g
4061s%@includedir@%$includedir%g
4062s%@oldincludedir@%$oldincludedir%g
4063s%@infodir@%$infodir%g
4064s%@mandir@%$mandir%g
4065s%@PRODUCT@%$PRODUCT%g
4066s%@VERSION@%$VERSION%g
4067s%@host@%$host%g
4068s%@host_alias@%$host_alias%g
4069s%@host_cpu@%$host_cpu%g
4070s%@host_vendor@%$host_vendor%g
4071s%@host_os@%$host_os%g
4072s%@target@%$target%g
4073s%@target_alias@%$target_alias%g
4074s%@target_cpu@%$target_cpu%g
4075s%@target_vendor@%$target_vendor%g
4076s%@target_os@%$target_os%g
4077s%@build@%$build%g
4078s%@build_alias@%$build_alias%g
4079s%@build_cpu@%$build_cpu%g
4080s%@build_vendor@%$build_vendor%g
4081s%@build_os@%$build_os%g
4082s%@RANLIB@%$RANLIB%g
4083s%@AR@%$AR%g
4084s%@CC@%$CC%g
4085s%@CPP@%$CPP%g
4086s%@CXX@%$CXX%g
4087s%@SET_MAKE@%$SET_MAKE%g
4088s%@BUILD_SUBDIRS@%$BUILD_SUBDIRS%g
4089s%@CONFIG_SUBDIRS@%$CONFIG_SUBDIRS%g
4090s%@NEED_LIBS@%$NEED_LIBS%g
4091s%@with_rsh@%$with_rsh%g
4092s%@mp_rsh@%$mp_rsh%g
4093s%@mp_remsh@%$mp_remsh%g
4094s%@mp_ssh@%$mp_ssh%g
4095s%@CLEAN@%$CLEAN%g
4096s%@subdirs@%$subdirs%g
4097
4098CEOF
4099EOF
4100
4101cat >> $CONFIG_STATUS <<\EOF
4102
4103# Split the substitutions into bite-sized pieces for seds with
4104# small command number limits, like on Digital OSF/1 and HP-UX.
4105ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4106ac_file=1 # Number of current file.
4107ac_beg=1 # First line for current file.
4108ac_end=$ac_max_sed_cmds # Line after last line for current file.
4109ac_more_lines=:
4110ac_sed_cmds=""
4111while $ac_more_lines; do
4112  if test $ac_beg -gt 1; then
4113    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4114  else
4115    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4116  fi
4117  if test ! -s conftest.s$ac_file; then
4118    ac_more_lines=false
4119    rm -f conftest.s$ac_file
4120  else
4121    if test -z "$ac_sed_cmds"; then
4122      ac_sed_cmds="sed -f conftest.s$ac_file"
4123    else
4124      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4125    fi
4126    ac_file=`expr $ac_file + 1`
4127    ac_beg=$ac_end
4128    ac_end=`expr $ac_end + $ac_max_sed_cmds`
4129  fi
4130done
4131if test -z "$ac_sed_cmds"; then
4132  ac_sed_cmds=cat
4133fi
4134EOF
4135
4136cat >> $CONFIG_STATUS <<EOF
4137
4138CONFIG_FILES=\${CONFIG_FILES-"Makefile MP/Makefile MPT/Makefile mpviewer/Makefile \
4139        mp-pvm3/Makefile examples/Makefile"}
4140EOF
4141cat >> $CONFIG_STATUS <<\EOF
4142for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4143  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4144  case "$ac_file" in
4145  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4146       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4147  *) ac_file_in="${ac_file}.in" ;;
4148  esac
4149
4150  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4151
4152  # Remove last slash and all that follows it.  Not all systems have dirname.
4153  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4154  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4155    # The file is in a subdirectory.
4156    test ! -d "$ac_dir" && mkdir "$ac_dir"
4157    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4158    # A "../" for each directory in $ac_dir_suffix.
4159    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4160  else
4161    ac_dir_suffix= ac_dots=
4162  fi
4163
4164  case "$ac_given_srcdir" in
4165  .)  srcdir=.
4166      if test -z "$ac_dots"; then top_srcdir=.
4167      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4168  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4169  *) # Relative path.
4170    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4171    top_srcdir="$ac_dots$ac_given_srcdir" ;;
4172  esac
4173
4174
4175  echo creating "$ac_file"
4176  rm -f "$ac_file"
4177  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4178  case "$ac_file" in
4179  *Makefile*) ac_comsub="1i\\
4180# $configure_input" ;;
4181  *) ac_comsub= ;;
4182  esac
4183
4184  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4185  sed -e "$ac_comsub
4186s%@configure_input@%$configure_input%g
4187s%@srcdir@%$srcdir%g
4188s%@top_srcdir@%$top_srcdir%g
4189" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4190fi; done
4191rm -f conftest.s*
4192
4193# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4194# NAME is the cpp macro being defined and VALUE is the value it is being given.
4195#
4196# ac_d sets the value in "#define NAME VALUE" lines.
4197ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
4198ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
4199ac_dC='\3'
4200ac_dD='%g'
4201# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4202ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4203ac_uB='\([      ]\)%\1#\2define\3'
4204ac_uC=' '
4205ac_uD='\4%g'
4206# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4207ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4208ac_eB='$%\1#\2define\3'
4209ac_eC=' '
4210ac_eD='%g'
4211
4212if test "${CONFIG_HEADERS+set}" != set; then
4213EOF
4214cat >> $CONFIG_STATUS <<EOF
4215  CONFIG_HEADERS="MP/MP_Config.h:MP/h/MP_Config.h.in"
4216EOF
4217cat >> $CONFIG_STATUS <<\EOF
4218fi
4219for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4220  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4221  case "$ac_file" in
4222  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4223       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4224  *) ac_file_in="${ac_file}.in" ;;
4225  esac
4226
4227  echo creating $ac_file
4228
4229  rm -f conftest.frag conftest.in conftest.out
4230  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4231  cat $ac_file_inputs > conftest.in
4232
4233EOF
4234
4235# Transform confdefs.h into a sed script conftest.vals that substitutes
4236# the proper values into config.h.in to produce config.h.  And first:
4237# Protect against being on the right side of a sed subst in config.status.
4238# Protect against being in an unquoted here document in config.status.
4239rm -f conftest.vals
4240cat > conftest.hdr <<\EOF
4241s/[\\&%]/\\&/g
4242s%[\\$`]%\\&%g
4243s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4244s%ac_d%ac_u%gp
4245s%ac_u%ac_e%gp
4246EOF
4247sed -n -f conftest.hdr confdefs.h > conftest.vals
4248rm -f conftest.hdr
4249
4250# This sed command replaces #undef with comments.  This is necessary, for
4251# example, in the case of _POSIX_SOURCE, which is predefined and required
4252# on some systems where configure will not decide to define it.
4253cat >> conftest.vals <<\EOF
4254s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4255EOF
4256
4257# Break up conftest.vals because some shells have a limit on
4258# the size of here documents, and old seds have small limits too.
4259
4260rm -f conftest.tail
4261while :
4262do
4263  ac_lines=`grep -c . conftest.vals`
4264  # grep -c gives empty output for an empty file on some AIX systems.
4265  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4266  # Write a limited-size here document to conftest.frag.
4267  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4268  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4269  echo 'CEOF
4270  sed -f conftest.frag conftest.in > conftest.out
4271  rm -f conftest.in
4272  mv conftest.out conftest.in
4273' >> $CONFIG_STATUS
4274  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4275  rm -f conftest.vals
4276  mv conftest.tail conftest.vals
4277done
4278rm -f conftest.vals
4279
4280cat >> $CONFIG_STATUS <<\EOF
4281  rm -f conftest.frag conftest.h
4282  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
4283  cat conftest.in >> conftest.h
4284  rm -f conftest.in
4285  if cmp -s $ac_file conftest.h 2>/dev/null; then
4286    echo "$ac_file is unchanged"
4287    rm -f conftest.h
4288  else
4289    # Remove last slash and all that follows it.  Not all systems have dirname.
4290      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4291      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4292      # The file is in a subdirectory.
4293      test ! -d "$ac_dir" && mkdir "$ac_dir"
4294    fi
4295    rm -f $ac_file
4296    mv conftest.h $ac_file
4297  fi
4298fi; done
4299
4300EOF
4301cat >> $CONFIG_STATUS <<EOF
4302
4303EOF
4304cat >> $CONFIG_STATUS <<\EOF
4305\
4306        if test "$CONFIG_HEADERS"; then echo timestamp > MP/stamp-h; fi
4307exit 0
4308EOF
4309chmod +x $CONFIG_STATUS
4310rm -fr confdefs* $ac_clean_files
4311test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4312
4313if test "$no_recursion" != yes; then
4314
4315  # Remove --cache-file and --srcdir arguments so they do not pile up.
4316  ac_sub_configure_args=
4317  ac_prev=
4318  for ac_arg in $ac_configure_args; do
4319    if test -n "$ac_prev"; then
4320      ac_prev=
4321      continue
4322    fi
4323    case "$ac_arg" in
4324    -cache-file | --cache-file | --cache-fil | --cache-fi \
4325    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4326      ac_prev=cache_file ;;
4327    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4328    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
4329      ;;
4330    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4331      ac_prev=srcdir ;;
4332    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4333      ;;
4334    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
4335    esac
4336  done
4337
4338  for ac_config_dir in $CONFIG_SUBDIRS; do
4339
4340    # Do not complain, so a configure script can configure whichever
4341    # parts of a large source tree are present.
4342    if test ! -d $srcdir/$ac_config_dir; then
4343      continue
4344    fi
4345
4346    echo configuring in $ac_config_dir
4347
4348    case "$srcdir" in
4349    .) ;;
4350    *)
4351      if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
4352      else
4353        { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
4354      fi
4355      ;;
4356    esac
4357
4358    ac_popdir=`pwd`
4359    cd $ac_config_dir
4360
4361      # A "../" for each directory in /$ac_config_dir.
4362      ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
4363
4364    case "$srcdir" in
4365    .) # No --srcdir option.  We are building in place.
4366      ac_sub_srcdir=$srcdir ;;
4367    /*) # Absolute path.
4368      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
4369    *) # Relative path.
4370      ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
4371    esac
4372
4373    # Check for guested configure; otherwise get Cygnus style configure.
4374    if test -f $ac_sub_srcdir/configure; then
4375      ac_sub_configure=$ac_sub_srcdir/configure
4376    elif test -f $ac_sub_srcdir/configure.in; then
4377      ac_sub_configure=$ac_configure
4378    else
4379      echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
4380      ac_sub_configure=
4381    fi
4382
4383    # The recursion is here.
4384    if test -n "$ac_sub_configure"; then
4385
4386      # Make the cache file name correct relative to the subdirectory.
4387      case "$cache_file" in
4388      /*) ac_sub_cache_file=$cache_file ;;
4389      *) # Relative path.
4390        ac_sub_cache_file="$ac_dots$cache_file" ;;
4391      esac
4392
4393      echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
4394      # The eval makes quoting arguments work.
4395      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
4396      then :
4397      else
4398        { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
4399      fi
4400    fi
4401
4402    cd $ac_popdir
4403  done
4404fi
4405
Note: See TracBrowser for help on using the repository browser.