source: git/MP/configure @ e13573

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