[6afd7c] | 1 | #! /bin/sh |
---|
| 2 | |
---|
| 3 | # Guess values for system-dependent variables and create Makefiles. |
---|
[43bcc5] | 4 | # Generated automatically using autoconf version 2.12 |
---|
[6afd7c] | 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
---|
| 6 | # |
---|
| 7 | # This configure script is free software; the Free Software Foundation |
---|
| 8 | # gives unlimited permission to copy, distribute and modify it. |
---|
| 9 | |
---|
| 10 | # Defaults: |
---|
| 11 | ac_help= |
---|
| 12 | ac_default_prefix=/usr/local |
---|
| 13 | # Any additions from configure.in: |
---|
| 14 | ac_default_prefix=`pwd` |
---|
| 15 | ac_help="$ac_help |
---|
[f36635] | 16 | \ |
---|
| 17 | --with-tmpdir=DIR use DIR as temporary directory" |
---|
[dc3a44] | 18 | ac_help="$ac_help |
---|
| 19 | --with-perl5=[PERL5,no] uses PERL5 as perl5 program, default is perl5" |
---|
[f36635] | 20 | ac_help="$ac_help |
---|
[6afd7c] | 21 | \ |
---|
| 22 | --enable-PACKAGE configure and build PACKAGE |
---|
| 23 | --disable-PACKAGE do not configure and build PACKAGE |
---|
[64c6d1] | 24 | where PACKAGE can be: |
---|
[78364c] | 25 | smallgmp minimal version of gmp written in C only" |
---|
[6afd7c] | 26 | ac_help="$ac_help |
---|
[64c6d1] | 27 | \ |
---|
| 28 | gmp Gnu Multiple Precision package" |
---|
| 29 | ac_help="$ac_help |
---|
[6afd7c] | 30 | \ |
---|
| 31 | MP Multi Protocol library" |
---|
| 32 | ac_help="$ac_help |
---|
| 33 | \ |
---|
| 34 | factory polynomial factorization library" |
---|
| 35 | ac_help="$ac_help |
---|
| 36 | \ |
---|
| 37 | libfac char set and modp poly factorization library" |
---|
| 38 | ac_help="$ac_help |
---|
[a04715] | 39 | \ |
---|
| 40 | sgroup numerical semigroup computations" |
---|
| 41 | ac_help="$ac_help |
---|
[6afd7c] | 42 | \ |
---|
[64c6d1] | 43 | Singular CAS for Polynomial Computations" |
---|
[78364c] | 44 | ac_help="$ac_help |
---|
[f36635] | 45 | \ |
---|
| 46 | Texinfo Texinfo for info, texi2dvi, makeinfo" |
---|
| 47 | ac_help="$ac_help |
---|
[78364c] | 48 | \ |
---|
| 49 | --with-PACKAGE use PACKAGE, provide dependent functionality |
---|
| 50 | --without-PACKAGE do not use PACKAGE, disable dependent functionality |
---|
[64c6d1] | 51 | where PACKAGE can be: |
---|
[5615cd9] | 52 | MP Multi Protocol library" |
---|
[78364c] | 53 | ac_help="$ac_help |
---|
| 54 | \ |
---|
| 55 | factory polynomial factorization library" |
---|
| 56 | ac_help="$ac_help |
---|
| 57 | \ |
---|
| 58 | libfac char set and modp poly factorization library" |
---|
| 59 | ac_help="$ac_help |
---|
| 60 | \ |
---|
| 61 | --with-apint=PACKAGE use PACKAGE for arbitary integer arithmetic |
---|
[9bc556] | 62 | where PACKAGE can be gmp or smallgmp |
---|
| 63 | All additional --enable and --with options are passed to subsequent calls |
---|
| 64 | to configure of the packages to be built. See also configure --help in |
---|
| 65 | these packages (resp. subdirs). " |
---|
[6afd7c] | 66 | |
---|
| 67 | # Initialize some variables set by options. |
---|
| 68 | # The variables have the same names as the options, with |
---|
| 69 | # dashes changed to underlines. |
---|
| 70 | build=NONE |
---|
| 71 | cache_file=./config.cache |
---|
| 72 | exec_prefix=NONE |
---|
| 73 | host=NONE |
---|
| 74 | no_create= |
---|
| 75 | nonopt=NONE |
---|
| 76 | no_recursion= |
---|
| 77 | prefix=NONE |
---|
| 78 | program_prefix=NONE |
---|
| 79 | program_suffix=NONE |
---|
| 80 | program_transform_name=s,x,x, |
---|
| 81 | silent= |
---|
| 82 | site= |
---|
| 83 | srcdir= |
---|
| 84 | target=NONE |
---|
| 85 | verbose= |
---|
| 86 | x_includes=NONE |
---|
| 87 | x_libraries=NONE |
---|
| 88 | bindir='${exec_prefix}/bin' |
---|
| 89 | sbindir='${exec_prefix}/sbin' |
---|
| 90 | libexecdir='${exec_prefix}/libexec' |
---|
| 91 | datadir='${prefix}/share' |
---|
| 92 | sysconfdir='${prefix}/etc' |
---|
| 93 | sharedstatedir='${prefix}/com' |
---|
| 94 | localstatedir='${prefix}/var' |
---|
| 95 | libdir='${exec_prefix}/lib' |
---|
| 96 | includedir='${prefix}/include' |
---|
| 97 | oldincludedir='/usr/include' |
---|
| 98 | infodir='${prefix}/info' |
---|
| 99 | mandir='${prefix}/man' |
---|
| 100 | |
---|
| 101 | # Initialize some other variables. |
---|
| 102 | subdirs= |
---|
| 103 | MFLAGS= MAKEFLAGS= |
---|
[2189fb] | 104 | # Maximum number of lines to put in a shell here document. |
---|
| 105 | ac_max_here_lines=12 |
---|
[6afd7c] | 106 | |
---|
| 107 | ac_prev= |
---|
| 108 | for ac_option |
---|
| 109 | do |
---|
| 110 | |
---|
| 111 | # If the previous option needs an argument, assign it. |
---|
| 112 | if test -n "$ac_prev"; then |
---|
| 113 | eval "$ac_prev=\$ac_option" |
---|
| 114 | ac_prev= |
---|
| 115 | continue |
---|
| 116 | fi |
---|
| 117 | |
---|
| 118 | case "$ac_option" in |
---|
| 119 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
| 120 | *) ac_optarg= ;; |
---|
| 121 | esac |
---|
| 122 | |
---|
| 123 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
| 124 | |
---|
| 125 | case "$ac_option" in |
---|
| 126 | |
---|
| 127 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
| 128 | ac_prev=bindir ;; |
---|
| 129 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
| 130 | bindir="$ac_optarg" ;; |
---|
| 131 | |
---|
| 132 | -build | --build | --buil | --bui | --bu) |
---|
| 133 | ac_prev=build ;; |
---|
| 134 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
| 135 | build="$ac_optarg" ;; |
---|
| 136 | |
---|
| 137 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 138 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 139 | ac_prev=cache_file ;; |
---|
| 140 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 141 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 142 | cache_file="$ac_optarg" ;; |
---|
| 143 | |
---|
| 144 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
| 145 | ac_prev=datadir ;; |
---|
| 146 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
| 147 | | --da=*) |
---|
| 148 | datadir="$ac_optarg" ;; |
---|
| 149 | |
---|
| 150 | -disable-* | --disable-*) |
---|
| 151 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
---|
| 152 | # Reject names that are not valid shell variable names. |
---|
| 153 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
| 154 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
| 155 | fi |
---|
| 156 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
| 157 | eval "enable_${ac_feature}=no" ;; |
---|
| 158 | |
---|
| 159 | -enable-* | --enable-*) |
---|
| 160 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
---|
| 161 | # Reject names that are not valid shell variable names. |
---|
| 162 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
| 163 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
| 164 | fi |
---|
| 165 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
| 166 | case "$ac_option" in |
---|
| 167 | *=*) ;; |
---|
| 168 | *) ac_optarg=yes ;; |
---|
| 169 | esac |
---|
| 170 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
---|
| 171 | |
---|
| 172 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
| 173 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
| 174 | | --exec | --exe | --ex) |
---|
| 175 | ac_prev=exec_prefix ;; |
---|
| 176 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
| 177 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
| 178 | | --exec=* | --exe=* | --ex=*) |
---|
| 179 | exec_prefix="$ac_optarg" ;; |
---|
| 180 | |
---|
| 181 | -gas | --gas | --ga | --g) |
---|
| 182 | # Obsolete; use --with-gas. |
---|
| 183 | with_gas=yes ;; |
---|
| 184 | |
---|
| 185 | -help | --help | --hel | --he) |
---|
| 186 | # Omit some internal or obsolete options to make the list less imposing. |
---|
| 187 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
| 188 | cat << EOF |
---|
| 189 | Usage: configure [options] [host] |
---|
| 190 | Options: [defaults in brackets after descriptions] |
---|
| 191 | Configuration: |
---|
| 192 | --cache-file=FILE cache test results in FILE |
---|
| 193 | --help print this message |
---|
| 194 | --no-create do not create output files |
---|
| 195 | --quiet, --silent do not print \`checking...' messages |
---|
| 196 | --version print the version of autoconf that created configure |
---|
| 197 | Directory and file names: |
---|
| 198 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
| 199 | [$ac_default_prefix] |
---|
| 200 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
| 201 | [same as prefix] |
---|
| 202 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
---|
| 203 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
---|
| 204 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
---|
| 205 | --datadir=DIR read-only architecture-independent data in DIR |
---|
| 206 | [PREFIX/share] |
---|
| 207 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
---|
| 208 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
---|
| 209 | [PREFIX/com] |
---|
| 210 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
---|
| 211 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
---|
| 212 | --includedir=DIR C header files in DIR [PREFIX/include] |
---|
| 213 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
---|
| 214 | --infodir=DIR info documentation in DIR [PREFIX/info] |
---|
| 215 | --mandir=DIR man documentation in DIR [PREFIX/man] |
---|
| 216 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
---|
| 217 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
| 218 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
| 219 | --program-transform-name=PROGRAM |
---|
| 220 | run sed PROGRAM on installed program names |
---|
| 221 | EOF |
---|
| 222 | cat << EOF |
---|
| 223 | Host type: |
---|
| 224 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
---|
| 225 | --host=HOST configure for HOST [guessed] |
---|
| 226 | --target=TARGET configure for TARGET [TARGET=HOST] |
---|
| 227 | Features and packages: |
---|
| 228 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
| 229 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
| 230 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
| 231 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
| 232 | --x-includes=DIR X include files are in DIR |
---|
| 233 | --x-libraries=DIR X library files are in DIR |
---|
| 234 | EOF |
---|
| 235 | if test -n "$ac_help"; then |
---|
| 236 | echo "--enable and --with options recognized:$ac_help" |
---|
| 237 | fi |
---|
| 238 | exit 0 ;; |
---|
| 239 | |
---|
| 240 | -host | --host | --hos | --ho) |
---|
| 241 | ac_prev=host ;; |
---|
| 242 | -host=* | --host=* | --hos=* | --ho=*) |
---|
| 243 | host="$ac_optarg" ;; |
---|
| 244 | |
---|
| 245 | -includedir | --includedir | --includedi | --included | --include \ |
---|
| 246 | | --includ | --inclu | --incl | --inc) |
---|
| 247 | ac_prev=includedir ;; |
---|
| 248 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
| 249 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
| 250 | includedir="$ac_optarg" ;; |
---|
| 251 | |
---|
| 252 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
| 253 | ac_prev=infodir ;; |
---|
| 254 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
| 255 | infodir="$ac_optarg" ;; |
---|
| 256 | |
---|
| 257 | -libdir | --libdir | --libdi | --libd) |
---|
| 258 | ac_prev=libdir ;; |
---|
| 259 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
| 260 | libdir="$ac_optarg" ;; |
---|
| 261 | |
---|
| 262 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
| 263 | | --libexe | --libex | --libe) |
---|
| 264 | ac_prev=libexecdir ;; |
---|
| 265 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
| 266 | | --libexe=* | --libex=* | --libe=*) |
---|
| 267 | libexecdir="$ac_optarg" ;; |
---|
| 268 | |
---|
| 269 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
| 270 | | --localstate | --localstat | --localsta | --localst \ |
---|
| 271 | | --locals | --local | --loca | --loc | --lo) |
---|
| 272 | ac_prev=localstatedir ;; |
---|
| 273 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
| 274 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
| 275 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
| 276 | localstatedir="$ac_optarg" ;; |
---|
| 277 | |
---|
| 278 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
| 279 | ac_prev=mandir ;; |
---|
| 280 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
| 281 | mandir="$ac_optarg" ;; |
---|
| 282 | |
---|
| 283 | -nfp | --nfp | --nf) |
---|
| 284 | # Obsolete; use --without-fp. |
---|
| 285 | with_fp=no ;; |
---|
| 286 | |
---|
| 287 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 288 | | --no-cr | --no-c) |
---|
| 289 | no_create=yes ;; |
---|
| 290 | |
---|
| 291 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 292 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
| 293 | no_recursion=yes ;; |
---|
| 294 | |
---|
| 295 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
| 296 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
| 297 | | --oldin | --oldi | --old | --ol | --o) |
---|
| 298 | ac_prev=oldincludedir ;; |
---|
| 299 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
| 300 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
| 301 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
| 302 | oldincludedir="$ac_optarg" ;; |
---|
| 303 | |
---|
| 304 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
| 305 | ac_prev=prefix ;; |
---|
| 306 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
| 307 | prefix="$ac_optarg" ;; |
---|
| 308 | |
---|
| 309 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
| 310 | | --program-pre | --program-pr | --program-p) |
---|
| 311 | ac_prev=program_prefix ;; |
---|
| 312 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
| 313 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
| 314 | program_prefix="$ac_optarg" ;; |
---|
| 315 | |
---|
| 316 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
| 317 | | --program-suf | --program-su | --program-s) |
---|
| 318 | ac_prev=program_suffix ;; |
---|
| 319 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
| 320 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
| 321 | program_suffix="$ac_optarg" ;; |
---|
| 322 | |
---|
| 323 | -program-transform-name | --program-transform-name \ |
---|
| 324 | | --program-transform-nam | --program-transform-na \ |
---|
| 325 | | --program-transform-n | --program-transform- \ |
---|
| 326 | | --program-transform | --program-transfor \ |
---|
| 327 | | --program-transfo | --program-transf \ |
---|
| 328 | | --program-trans | --program-tran \ |
---|
| 329 | | --progr-tra | --program-tr | --program-t) |
---|
| 330 | ac_prev=program_transform_name ;; |
---|
| 331 | -program-transform-name=* | --program-transform-name=* \ |
---|
| 332 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
| 333 | | --program-transform-n=* | --program-transform-=* \ |
---|
| 334 | | --program-transform=* | --program-transfor=* \ |
---|
| 335 | | --program-transfo=* | --program-transf=* \ |
---|
| 336 | | --program-trans=* | --program-tran=* \ |
---|
| 337 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
| 338 | program_transform_name="$ac_optarg" ;; |
---|
| 339 | |
---|
| 340 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 341 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 342 | silent=yes ;; |
---|
| 343 | |
---|
| 344 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
| 345 | ac_prev=sbindir ;; |
---|
| 346 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
| 347 | | --sbi=* | --sb=*) |
---|
| 348 | sbindir="$ac_optarg" ;; |
---|
| 349 | |
---|
| 350 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
| 351 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
| 352 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
| 353 | | --sha | --sh) |
---|
| 354 | ac_prev=sharedstatedir ;; |
---|
| 355 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
| 356 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
| 357 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
| 358 | | --sha=* | --sh=*) |
---|
| 359 | sharedstatedir="$ac_optarg" ;; |
---|
| 360 | |
---|
| 361 | -site | --site | --sit) |
---|
| 362 | ac_prev=site ;; |
---|
| 363 | -site=* | --site=* | --sit=*) |
---|
| 364 | site="$ac_optarg" ;; |
---|
| 365 | |
---|
| 366 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 367 | ac_prev=srcdir ;; |
---|
| 368 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 369 | srcdir="$ac_optarg" ;; |
---|
| 370 | |
---|
| 371 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
| 372 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
| 373 | ac_prev=sysconfdir ;; |
---|
| 374 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
| 375 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
| 376 | sysconfdir="$ac_optarg" ;; |
---|
| 377 | |
---|
| 378 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
| 379 | ac_prev=target ;; |
---|
| 380 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
| 381 | target="$ac_optarg" ;; |
---|
| 382 | |
---|
| 383 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
| 384 | verbose=yes ;; |
---|
| 385 | |
---|
| 386 | -version | --version | --versio | --versi | --vers) |
---|
[43bcc5] | 387 | echo "configure generated by autoconf version 2.12" |
---|
[6afd7c] | 388 | exit 0 ;; |
---|
| 389 | |
---|
| 390 | -with-* | --with-*) |
---|
| 391 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
---|
| 392 | # Reject names that are not valid shell variable names. |
---|
| 393 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
| 394 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
| 395 | fi |
---|
| 396 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
| 397 | case "$ac_option" in |
---|
| 398 | *=*) ;; |
---|
| 399 | *) ac_optarg=yes ;; |
---|
| 400 | esac |
---|
| 401 | eval "with_${ac_package}='$ac_optarg'" ;; |
---|
| 402 | |
---|
| 403 | -without-* | --without-*) |
---|
| 404 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
---|
| 405 | # Reject names that are not valid shell variable names. |
---|
| 406 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
| 407 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
| 408 | fi |
---|
| 409 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
| 410 | eval "with_${ac_package}=no" ;; |
---|
| 411 | |
---|
| 412 | --x) |
---|
| 413 | # Obsolete; use --with-x. |
---|
| 414 | with_x=yes ;; |
---|
| 415 | |
---|
| 416 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
| 417 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
| 418 | ac_prev=x_includes ;; |
---|
| 419 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
| 420 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
| 421 | x_includes="$ac_optarg" ;; |
---|
| 422 | |
---|
| 423 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
| 424 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
| 425 | ac_prev=x_libraries ;; |
---|
| 426 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
| 427 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
| 428 | x_libraries="$ac_optarg" ;; |
---|
| 429 | |
---|
| 430 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
---|
| 431 | ;; |
---|
| 432 | |
---|
| 433 | *) |
---|
| 434 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
---|
| 435 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
---|
| 436 | fi |
---|
| 437 | if test "x$nonopt" != xNONE; then |
---|
| 438 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
---|
| 439 | fi |
---|
| 440 | nonopt="$ac_option" |
---|
| 441 | ;; |
---|
| 442 | |
---|
| 443 | esac |
---|
| 444 | done |
---|
| 445 | |
---|
| 446 | if test -n "$ac_prev"; then |
---|
| 447 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
---|
| 448 | fi |
---|
| 449 | |
---|
| 450 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
| 451 | |
---|
| 452 | # File descriptor usage: |
---|
| 453 | # 0 standard input |
---|
| 454 | # 1 file creation |
---|
| 455 | # 2 errors and warnings |
---|
| 456 | # 3 some systems may open it to /dev/tty |
---|
| 457 | # 4 used on the Kubota Titan |
---|
| 458 | # 6 checking for... messages and results |
---|
| 459 | # 5 compiler messages saved in config.log |
---|
| 460 | if test "$silent" = yes; then |
---|
| 461 | exec 6>/dev/null |
---|
| 462 | else |
---|
| 463 | exec 6>&1 |
---|
| 464 | fi |
---|
| 465 | exec 5>./config.log |
---|
| 466 | |
---|
| 467 | echo "\ |
---|
| 468 | This file contains any messages produced by compilers while |
---|
| 469 | running configure, to aid debugging if configure makes a mistake. |
---|
| 470 | " 1>&5 |
---|
| 471 | |
---|
| 472 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 473 | # Also quote any args containing shell metacharacters. |
---|
| 474 | ac_configure_args= |
---|
| 475 | for ac_arg |
---|
| 476 | do |
---|
| 477 | case "$ac_arg" in |
---|
| 478 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 479 | | --no-cr | --no-c) ;; |
---|
| 480 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 481 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
---|
| 482 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
---|
| 483 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
| 484 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
---|
| 485 | esac |
---|
| 486 | done |
---|
| 487 | |
---|
| 488 | # NLS nuisances. |
---|
[2189fb] | 489 | # Only set these to C if already set. These must not be set unconditionally |
---|
| 490 | # because not all systems understand e.g. LANG=C (notably SCO). |
---|
| 491 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
---|
| 492 | # Non-C LC_CTYPE values break the ctype check. |
---|
[6afd7c] | 493 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
---|
[2189fb] | 494 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
---|
| 495 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
---|
| 496 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
---|
[6afd7c] | 497 | |
---|
| 498 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 499 | rm -rf conftest* confdefs.h |
---|
| 500 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
| 501 | echo > confdefs.h |
---|
| 502 | |
---|
| 503 | # A filename unique to this package, relative to the directory that |
---|
| 504 | # configure is in, which we can look for to find out if srcdir is correct. |
---|
| 505 | ac_unique_file=Singular/matpol.h |
---|
| 506 | |
---|
| 507 | # Find the source files, if location was not specified. |
---|
| 508 | if test -z "$srcdir"; then |
---|
| 509 | ac_srcdir_defaulted=yes |
---|
| 510 | # Try the directory containing this script, then its parent. |
---|
| 511 | ac_prog=$0 |
---|
| 512 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
---|
| 513 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
---|
| 514 | srcdir=$ac_confdir |
---|
| 515 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 516 | srcdir=.. |
---|
| 517 | fi |
---|
| 518 | else |
---|
| 519 | ac_srcdir_defaulted=no |
---|
| 520 | fi |
---|
| 521 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 522 | if test "$ac_srcdir_defaulted" = yes; then |
---|
| 523 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
---|
| 524 | else |
---|
| 525 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
---|
| 526 | fi |
---|
| 527 | fi |
---|
| 528 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
---|
| 529 | |
---|
| 530 | # Prefer explicitly selected file to automatically selected ones. |
---|
| 531 | if test -z "$CONFIG_SITE"; then |
---|
| 532 | if test "x$prefix" != xNONE; then |
---|
| 533 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
| 534 | else |
---|
| 535 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
| 536 | fi |
---|
| 537 | fi |
---|
| 538 | for ac_site_file in $CONFIG_SITE; do |
---|
| 539 | if test -r "$ac_site_file"; then |
---|
| 540 | echo "loading site script $ac_site_file" |
---|
| 541 | . "$ac_site_file" |
---|
| 542 | fi |
---|
| 543 | done |
---|
| 544 | |
---|
| 545 | if test -r "$cache_file"; then |
---|
| 546 | echo "loading cache $cache_file" |
---|
| 547 | . $cache_file |
---|
| 548 | else |
---|
| 549 | echo "creating cache $cache_file" |
---|
| 550 | > $cache_file |
---|
| 551 | fi |
---|
| 552 | |
---|
| 553 | ac_ext=c |
---|
| 554 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 555 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 556 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
[43bcc5] | 557 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
[2189fb] | 558 | cross_compiling=$ac_cv_prog_cc_cross |
---|
[6afd7c] | 559 | |
---|
| 560 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
| 561 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
---|
| 562 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
| 563 | ac_n= ac_c=' |
---|
| 564 | ' ac_t=' ' |
---|
| 565 | else |
---|
| 566 | ac_n=-n ac_c= ac_t= |
---|
| 567 | fi |
---|
| 568 | else |
---|
| 569 | ac_n= ac_c='\c' ac_t= |
---|
| 570 | fi |
---|
| 571 | |
---|
| 572 | |
---|
| 573 | |
---|
[354f3b] | 574 | OUTPUT_MAKEFILES="Makefile doc/Makefile doc/version.texi doc/uname.texi" |
---|
[c575e9] | 575 | if test -d "rpm"; then |
---|
| 576 | OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" rpm/Makefile" |
---|
| 577 | OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" rpm/rpmrc rpm/Singular.spec" |
---|
| 578 | fi |
---|
| 579 | if test -d "modules"; then |
---|
| 580 | OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" modules/Makefile" |
---|
| 581 | fi |
---|
| 582 | if test -d "modules/tools"; then |
---|
| 583 | OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" modules/tools/Makefile" |
---|
| 584 | fi |
---|
[460c1e1] | 585 | if test -d "emacs"; then |
---|
| 586 | OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" emacs/Makefile" |
---|
| 587 | fi |
---|
[6afd7c] | 588 | |
---|
[fe40293] | 589 | echo $ac_n "checking uname for singular""... $ac_c" 1>&6 |
---|
[43bcc5] | 590 | echo "configure:591: checking uname for singular" >&5 |
---|
[fe40293] | 591 | if eval "test \"`echo '$''{'ac_cv_singuname'+set}'`\" = set"; then |
---|
| 592 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 593 | else |
---|
| 594 | ac_cv_singuname="unknown" |
---|
| 595 | if test -r "singuname.sh"; then |
---|
| 596 | if (/bin/sh singuname.sh >/dev/null 2>&1) then |
---|
| 597 | ac_cv_singuname=`/bin/sh singuname.sh` |
---|
| 598 | fi |
---|
| 599 | fi |
---|
[6afd7c] | 600 | |
---|
[fe40293] | 601 | fi |
---|
| 602 | |
---|
| 603 | echo "$ac_t""$ac_cv_singuname" 1>&6 |
---|
| 604 | if test "$ac_cv_singuname" = unknown; then |
---|
| 605 | { echo "configure: error: Unknown architecture: Check singuname.sh" 1>&2; exit 1; } |
---|
| 606 | else |
---|
| 607 | SINGUNAME=$ac_cv_singuname |
---|
| 608 | |
---|
| 609 | fi |
---|
[6afd7c] | 610 | |
---|
[af6a6b] | 611 | VERSION_SEP="-" |
---|
[55c796] | 612 | |
---|
| 613 | # make them to env variables |
---|
| 614 | # pass them indirectly to subsequent configures |
---|
| 615 | SINGULAR_MAJOR_VERSION=1 |
---|
[16b993] | 616 | SINGULAR_MINOR_VERSION=3 |
---|
[43bcc5] | 617 | SINGULAR_SUB_VERSION=7 |
---|
[f36635] | 618 | SINGULAR_SHORT_VERSION="${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}" |
---|
| 619 | SINGULAR_VERSION="${SINGULAR_SHORT_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}" |
---|
[43bcc5] | 620 | VERSION_DATE="December 1999" |
---|
[f36635] | 621 | |
---|
[55c796] | 622 | export SINGULAR_MINOR_VERSION |
---|
| 623 | export SINGULAR_MAJOR_VERSION |
---|
| 624 | export SINGULAR_SUB_VERSION |
---|
| 625 | export SINGULAR_VERSION |
---|
| 626 | export VERSION_DATE |
---|
| 627 | |
---|
| 628 | |
---|
| 629 | |
---|
| 630 | |
---|
[f36635] | 631 | |
---|
[6afd7c] | 632 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 633 | set dummy gcc; ac_word=$2 |
---|
| 634 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[43bcc5] | 635 | echo "configure:636: checking for $ac_word" >&5 |
---|
[6afd7c] | 636 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
| 637 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 638 | else |
---|
| 639 | if test -n "$CC"; then |
---|
| 640 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 641 | else |
---|
[43bcc5] | 642 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 643 | for ac_dir in $PATH; do |
---|
[6afd7c] | 644 | test -z "$ac_dir" && ac_dir=. |
---|
| 645 | if test -f $ac_dir/$ac_word; then |
---|
| 646 | ac_cv_prog_CC="gcc" |
---|
| 647 | break |
---|
| 648 | fi |
---|
| 649 | done |
---|
| 650 | IFS="$ac_save_ifs" |
---|
| 651 | fi |
---|
| 652 | fi |
---|
| 653 | CC="$ac_cv_prog_CC" |
---|
| 654 | if test -n "$CC"; then |
---|
| 655 | echo "$ac_t""$CC" 1>&6 |
---|
| 656 | else |
---|
| 657 | echo "$ac_t""no" 1>&6 |
---|
| 658 | fi |
---|
| 659 | |
---|
| 660 | if test -z "$CC"; then |
---|
| 661 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 662 | set dummy cc; ac_word=$2 |
---|
| 663 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[43bcc5] | 664 | echo "configure:665: checking for $ac_word" >&5 |
---|
[6afd7c] | 665 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
| 666 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 667 | else |
---|
| 668 | if test -n "$CC"; then |
---|
| 669 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 670 | else |
---|
[43bcc5] | 671 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
[6afd7c] | 672 | ac_prog_rejected=no |
---|
[43bcc5] | 673 | for ac_dir in $PATH; do |
---|
[6afd7c] | 674 | test -z "$ac_dir" && ac_dir=. |
---|
| 675 | if test -f $ac_dir/$ac_word; then |
---|
| 676 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
---|
| 677 | ac_prog_rejected=yes |
---|
| 678 | continue |
---|
| 679 | fi |
---|
| 680 | ac_cv_prog_CC="cc" |
---|
| 681 | break |
---|
| 682 | fi |
---|
| 683 | done |
---|
| 684 | IFS="$ac_save_ifs" |
---|
| 685 | if test $ac_prog_rejected = yes; then |
---|
| 686 | # We found a bogon in the path, so make sure we never use it. |
---|
| 687 | set dummy $ac_cv_prog_CC |
---|
| 688 | shift |
---|
| 689 | if test $# -gt 0; then |
---|
| 690 | # We chose a different compiler from the bogus one. |
---|
| 691 | # However, it has the same basename, so the bogon will be chosen |
---|
| 692 | # first if we set CC to just the basename; use the full file name. |
---|
| 693 | shift |
---|
| 694 | set dummy "$ac_dir/$ac_word" "$@" |
---|
| 695 | shift |
---|
| 696 | ac_cv_prog_CC="$@" |
---|
| 697 | fi |
---|
| 698 | fi |
---|
| 699 | fi |
---|
| 700 | fi |
---|
| 701 | CC="$ac_cv_prog_CC" |
---|
| 702 | if test -n "$CC"; then |
---|
| 703 | echo "$ac_t""$CC" 1>&6 |
---|
| 704 | else |
---|
| 705 | echo "$ac_t""no" 1>&6 |
---|
| 706 | fi |
---|
| 707 | |
---|
| 708 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
| 709 | fi |
---|
| 710 | |
---|
[2189fb] | 711 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
[43bcc5] | 712 | echo "configure:713: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
[2189fb] | 713 | |
---|
| 714 | ac_ext=c |
---|
| 715 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 716 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 717 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
[43bcc5] | 718 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
[2189fb] | 719 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 720 | |
---|
[43bcc5] | 721 | cat > conftest.$ac_ext <<EOF |
---|
| 722 | #line 723 "configure" |
---|
[2189fb] | 723 | #include "confdefs.h" |
---|
| 724 | main(){return(0);} |
---|
| 725 | EOF |
---|
[43bcc5] | 726 | if { (eval echo configure:727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
[2189fb] | 727 | ac_cv_prog_cc_works=yes |
---|
| 728 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
| 729 | if (./conftest; exit) 2>/dev/null; then |
---|
| 730 | ac_cv_prog_cc_cross=no |
---|
| 731 | else |
---|
| 732 | ac_cv_prog_cc_cross=yes |
---|
| 733 | fi |
---|
| 734 | else |
---|
| 735 | echo "configure: failed program was:" >&5 |
---|
| 736 | cat conftest.$ac_ext >&5 |
---|
| 737 | ac_cv_prog_cc_works=no |
---|
| 738 | fi |
---|
| 739 | rm -fr conftest* |
---|
| 740 | |
---|
| 741 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
| 742 | if test $ac_cv_prog_cc_works = no; then |
---|
| 743 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
| 744 | fi |
---|
| 745 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
[43bcc5] | 746 | echo "configure:747: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
[2189fb] | 747 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
| 748 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 749 | |
---|
[6afd7c] | 750 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
[43bcc5] | 751 | echo "configure:752: checking whether we are using GNU C" >&5 |
---|
[6afd7c] | 752 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
| 753 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 754 | else |
---|
| 755 | cat > conftest.c <<EOF |
---|
| 756 | #ifdef __GNUC__ |
---|
| 757 | yes; |
---|
| 758 | #endif |
---|
| 759 | EOF |
---|
[43bcc5] | 760 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
[6afd7c] | 761 | ac_cv_prog_gcc=yes |
---|
| 762 | else |
---|
| 763 | ac_cv_prog_gcc=no |
---|
| 764 | fi |
---|
| 765 | fi |
---|
| 766 | |
---|
| 767 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
[2189fb] | 768 | |
---|
[6afd7c] | 769 | if test $ac_cv_prog_gcc = yes; then |
---|
| 770 | GCC=yes |
---|
[43bcc5] | 771 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
| 772 | ac_save_CFLAGS="$CFLAGS" |
---|
| 773 | CFLAGS= |
---|
| 774 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
| 775 | echo "configure:776: checking whether ${CC-cc} accepts -g" >&5 |
---|
[2189fb] | 776 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
[6afd7c] | 777 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 778 | else |
---|
| 779 | echo 'void f(){}' > conftest.c |
---|
| 780 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
[2189fb] | 781 | ac_cv_prog_cc_g=yes |
---|
[6afd7c] | 782 | else |
---|
[2189fb] | 783 | ac_cv_prog_cc_g=no |
---|
[6afd7c] | 784 | fi |
---|
| 785 | rm -f conftest* |
---|
| 786 | |
---|
| 787 | fi |
---|
| 788 | |
---|
[2189fb] | 789 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
[43bcc5] | 790 | if test "$ac_test_CFLAGS" = set; then |
---|
| 791 | CFLAGS="$ac_save_CFLAGS" |
---|
| 792 | elif test $ac_cv_prog_cc_g = yes; then |
---|
[2189fb] | 793 | CFLAGS="-g -O2" |
---|
| 794 | else |
---|
[463f21c] | 795 | CFLAGS="-O2" |
---|
| 796 | fi |
---|
[43bcc5] | 797 | else |
---|
| 798 | GCC= |
---|
| 799 | test "${CFLAGS+set}" = set || CFLAGS="-g" |
---|
[6afd7c] | 800 | fi |
---|
| 801 | |
---|
| 802 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
---|
[43bcc5] | 803 | echo "configure:804: checking how to run the C preprocessor" >&5 |
---|
[6afd7c] | 804 | # On Suns, sometimes $CPP names a directory. |
---|
| 805 | if test -n "$CPP" && test -d "$CPP"; then |
---|
| 806 | CPP= |
---|
| 807 | fi |
---|
| 808 | if test -z "$CPP"; then |
---|
| 809 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
---|
| 810 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 811 | else |
---|
| 812 | # This must be in double quotes, not single quotes, because CPP may get |
---|
| 813 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
---|
| 814 | CPP="${CC-cc} -E" |
---|
| 815 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 816 | # not just through cpp. |
---|
| 817 | cat > conftest.$ac_ext <<EOF |
---|
[43bcc5] | 818 | #line 819 "configure" |
---|
[6afd7c] | 819 | #include "confdefs.h" |
---|
| 820 | #include <assert.h> |
---|
| 821 | Syntax Error |
---|
| 822 | EOF |
---|
| 823 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
[43bcc5] | 824 | { (eval echo configure:825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
| 825 | ac_err=`grep -v '^ *+' conftest.out` |
---|
[6afd7c] | 826 | if test -z "$ac_err"; then |
---|
| 827 | : |
---|
| 828 | else |
---|
| 829 | echo "$ac_err" >&5 |
---|
[2189fb] | 830 | echo "configure: failed program was:" >&5 |
---|
| 831 | cat conftest.$ac_ext >&5 |
---|
[6afd7c] | 832 | rm -rf conftest* |
---|
| 833 | CPP="${CC-cc} -E -traditional-cpp" |
---|
| 834 | cat > conftest.$ac_ext <<EOF |
---|
[43bcc5] | 835 | #line 836 "configure" |
---|
[463f21c] | 836 | #include "confdefs.h" |
---|
| 837 | #include <assert.h> |
---|
| 838 | Syntax Error |
---|
| 839 | EOF |
---|
| 840 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
[43bcc5] | 841 | { (eval echo configure:842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
| 842 | ac_err=`grep -v '^ *+' conftest.out` |
---|
[6afd7c] | 843 | if test -z "$ac_err"; then |
---|
| 844 | : |
---|
| 845 | else |
---|
| 846 | echo "$ac_err" >&5 |
---|
[2189fb] | 847 | echo "configure: failed program was:" >&5 |
---|
| 848 | cat conftest.$ac_ext >&5 |
---|
[6afd7c] | 849 | rm -rf conftest* |
---|
| 850 | CPP=/lib/cpp |
---|
| 851 | fi |
---|
| 852 | rm -f conftest* |
---|
| 853 | fi |
---|
| 854 | rm -f conftest* |
---|
| 855 | ac_cv_prog_CPP="$CPP" |
---|
| 856 | fi |
---|
| 857 | CPP="$ac_cv_prog_CPP" |
---|
| 858 | else |
---|
| 859 | ac_cv_prog_CPP="$CPP" |
---|
| 860 | fi |
---|
| 861 | echo "$ac_t""$CPP" 1>&6 |
---|
| 862 | |
---|
[354f3b] | 863 | ac_aux_dir= |
---|
| 864 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
| 865 | if test -f $ac_dir/install-sh; then |
---|
| 866 | ac_aux_dir=$ac_dir |
---|
| 867 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
| 868 | break |
---|
| 869 | elif test -f $ac_dir/install.sh; then |
---|
| 870 | ac_aux_dir=$ac_dir |
---|
| 871 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
| 872 | break |
---|
| 873 | fi |
---|
| 874 | done |
---|
| 875 | if test -z "$ac_aux_dir"; then |
---|
| 876 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
---|
| 877 | fi |
---|
| 878 | ac_config_guess=$ac_aux_dir/config.guess |
---|
| 879 | ac_config_sub=$ac_aux_dir/config.sub |
---|
| 880 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
---|
| 881 | |
---|
| 882 | # Find a good install program. We prefer a C program (faster), |
---|
| 883 | # so one script is as good as another. But avoid the broken or |
---|
| 884 | # incompatible versions: |
---|
| 885 | # SysV /etc/install, /usr/sbin/install |
---|
| 886 | # SunOS /usr/etc/install |
---|
| 887 | # IRIX /sbin/install |
---|
| 888 | # AIX /bin/install |
---|
| 889 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
| 890 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
| 891 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
| 892 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
---|
[43bcc5] | 893 | echo "configure:894: checking for a BSD compatible install" >&5 |
---|
[354f3b] | 894 | if test -z "$INSTALL"; then |
---|
| 895 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
---|
| 896 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 897 | else |
---|
[43bcc5] | 898 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" |
---|
[354f3b] | 899 | for ac_dir in $PATH; do |
---|
| 900 | # Account for people who put trailing slashes in PATH elements. |
---|
| 901 | case "$ac_dir/" in |
---|
| 902 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
---|
| 903 | *) |
---|
| 904 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
[43bcc5] | 905 | for ac_prog in ginstall installbsd scoinst install; do |
---|
[354f3b] | 906 | if test -f $ac_dir/$ac_prog; then |
---|
| 907 | if test $ac_prog = install && |
---|
| 908 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
---|
| 909 | # AIX install. It has an incompatible calling convention. |
---|
[43bcc5] | 910 | # OSF/1 installbsd also uses dspmsg, but is usable. |
---|
[354f3b] | 911 | : |
---|
| 912 | else |
---|
| 913 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
---|
| 914 | break 2 |
---|
| 915 | fi |
---|
| 916 | fi |
---|
| 917 | done |
---|
| 918 | ;; |
---|
| 919 | esac |
---|
| 920 | done |
---|
| 921 | IFS="$ac_save_IFS" |
---|
| 922 | |
---|
| 923 | fi |
---|
| 924 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 925 | INSTALL="$ac_cv_path_install" |
---|
| 926 | else |
---|
| 927 | # As a last resort, use the slow shell script. We don't cache a |
---|
| 928 | # path for INSTALL within a source directory, because that will |
---|
| 929 | # break other packages using the cache if that directory is |
---|
| 930 | # removed, or if the path is relative. |
---|
| 931 | INSTALL="$ac_install_sh" |
---|
| 932 | fi |
---|
| 933 | fi |
---|
| 934 | echo "$ac_t""$INSTALL" 1>&6 |
---|
| 935 | |
---|
| 936 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
| 937 | # It thinks the first close brace ends the variable substitution. |
---|
| 938 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
| 939 | |
---|
| 940 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
| 941 | |
---|
[6afd7c] | 942 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
---|
[43bcc5] | 943 | echo "configure:944: checking for AIX" >&5 |
---|
[6afd7c] | 944 | cat > conftest.$ac_ext <<EOF |
---|
[43bcc5] | 945 | #line 946 "configure" |
---|
[6afd7c] | 946 | #include "confdefs.h" |
---|
| 947 | #ifdef _AIX |
---|
| 948 | yes |
---|
| 949 | #endif |
---|
| 950 | |
---|
| 951 | EOF |
---|
| 952 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 953 | egrep "yes" >/dev/null 2>&1; then |
---|
| 954 | rm -rf conftest* |
---|
| 955 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
---|
| 956 | #define _ALL_SOURCE 1 |
---|
| 957 | EOF |
---|
| 958 | |
---|
| 959 | else |
---|
| 960 | rm -rf conftest* |
---|
| 961 | echo "$ac_t""no" 1>&6 |
---|
| 962 | fi |
---|
| 963 | rm -f conftest* |
---|
| 964 | |
---|
| 965 | |
---|
| 966 | |
---|
[3d8259] | 967 | for ac_prog in perl5 perl |
---|
| 968 | do |
---|
| 969 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 970 | set dummy $ac_prog; ac_word=$2 |
---|
| 971 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[43bcc5] | 972 | echo "configure:973: checking for $ac_word" >&5 |
---|
[3d8259] | 973 | if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then |
---|
| 974 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 975 | else |
---|
| 976 | if test -n "$PERL"; then |
---|
| 977 | ac_cv_prog_PERL="$PERL" # Let the user override the test. |
---|
| 978 | else |
---|
[43bcc5] | 979 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 980 | for ac_dir in $PATH; do |
---|
[3d8259] | 981 | test -z "$ac_dir" && ac_dir=. |
---|
| 982 | if test -f $ac_dir/$ac_word; then |
---|
| 983 | ac_cv_prog_PERL="$ac_prog" |
---|
| 984 | break |
---|
| 985 | fi |
---|
| 986 | done |
---|
| 987 | IFS="$ac_save_ifs" |
---|
| 988 | fi |
---|
| 989 | fi |
---|
| 990 | PERL="$ac_cv_prog_PERL" |
---|
| 991 | if test -n "$PERL"; then |
---|
| 992 | echo "$ac_t""$PERL" 1>&6 |
---|
| 993 | else |
---|
| 994 | echo "$ac_t""no" 1>&6 |
---|
| 995 | fi |
---|
| 996 | |
---|
| 997 | test -n "$PERL" && break |
---|
| 998 | done |
---|
| 999 | |
---|
[f36635] | 1000 | # Extract the first word of "latex2html", so it can be a program name with args. |
---|
| 1001 | set dummy latex2html; ac_word=$2 |
---|
| 1002 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[43bcc5] | 1003 | echo "configure:1004: checking for $ac_word" >&5 |
---|
[f36635] | 1004 | if eval "test \"`echo '$''{'ac_cv_prog_LATEX2HTML'+set}'`\" = set"; then |
---|
| 1005 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1006 | else |
---|
| 1007 | if test -n "$LATEX2HTML"; then |
---|
| 1008 | ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test. |
---|
| 1009 | else |
---|
[43bcc5] | 1010 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 1011 | for ac_dir in $PATH; do |
---|
[f36635] | 1012 | test -z "$ac_dir" && ac_dir=. |
---|
| 1013 | if test -f $ac_dir/$ac_word; then |
---|
| 1014 | ac_cv_prog_LATEX2HTML="latex2html" |
---|
| 1015 | break |
---|
| 1016 | fi |
---|
| 1017 | done |
---|
| 1018 | IFS="$ac_save_ifs" |
---|
| 1019 | fi |
---|
| 1020 | fi |
---|
| 1021 | LATEX2HTML="$ac_cv_prog_LATEX2HTML" |
---|
| 1022 | if test -n "$LATEX2HTML"; then |
---|
| 1023 | echo "$ac_t""$LATEX2HTML" 1>&6 |
---|
| 1024 | else |
---|
| 1025 | echo "$ac_t""no" 1>&6 |
---|
| 1026 | fi |
---|
| 1027 | |
---|
[fe40293] | 1028 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
---|
[43bcc5] | 1029 | echo "configure:1030: checking whether ln -s works" >&5 |
---|
[fe40293] | 1030 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
---|
| 1031 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1032 | else |
---|
| 1033 | rm -f conftestdata |
---|
| 1034 | if ln -s X conftestdata 2>/dev/null |
---|
| 1035 | then |
---|
| 1036 | rm -f conftestdata |
---|
| 1037 | ac_cv_prog_LN_S="ln -s" |
---|
| 1038 | else |
---|
| 1039 | ac_cv_prog_LN_S=ln |
---|
| 1040 | fi |
---|
| 1041 | fi |
---|
| 1042 | LN_S="$ac_cv_prog_LN_S" |
---|
| 1043 | if test "$ac_cv_prog_LN_S" = "ln -s"; then |
---|
| 1044 | echo "$ac_t""yes" 1>&6 |
---|
| 1045 | else |
---|
| 1046 | echo "$ac_t""no" 1>&6 |
---|
| 1047 | fi |
---|
| 1048 | |
---|
[7391b83] | 1049 | if test -d Texi2html; then |
---|
[665217] | 1050 | if test -r ${T2H_HOME}/texi2html.init; then |
---|
| 1051 | TEXI2HTML=`pwd`/Texi2html/texi2html.pl |
---|
| 1052 | else |
---|
[f36635] | 1053 | TEXI2HTML=`pwd`/Texi2html/texi2html |
---|
[665217] | 1054 | fi |
---|
[f36635] | 1055 | |
---|
| 1056 | else |
---|
| 1057 | echo "configure: warning: could not find Texi2html/texi2html HTML generation might fail" 1>&2 |
---|
| 1058 | # Extract the first word of "texi2html", so it can be a program name with args. |
---|
| 1059 | set dummy texi2html; ac_word=$2 |
---|
| 1060 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[43bcc5] | 1061 | echo "configure:1062: checking for $ac_word" >&5 |
---|
[f36635] | 1062 | if eval "test \"`echo '$''{'ac_cv_prog_TEXI2HTML'+set}'`\" = set"; then |
---|
| 1063 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1064 | else |
---|
| 1065 | if test -n "$TEXI2HTML"; then |
---|
| 1066 | ac_cv_prog_TEXI2HTML="$TEXI2HTML" # Let the user override the test. |
---|
| 1067 | else |
---|
[43bcc5] | 1068 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 1069 | for ac_dir in $PATH; do |
---|
[f36635] | 1070 | test -z "$ac_dir" && ac_dir=. |
---|
| 1071 | if test -f $ac_dir/$ac_word; then |
---|
| 1072 | ac_cv_prog_TEXI2HTML="texi2html" |
---|
| 1073 | break |
---|
| 1074 | fi |
---|
| 1075 | done |
---|
| 1076 | IFS="$ac_save_ifs" |
---|
| 1077 | fi |
---|
| 1078 | fi |
---|
| 1079 | TEXI2HTML="$ac_cv_prog_TEXI2HTML" |
---|
| 1080 | if test -n "$TEXI2HTML"; then |
---|
| 1081 | echo "$ac_t""$TEXI2HTML" 1>&6 |
---|
| 1082 | else |
---|
| 1083 | echo "$ac_t""no" 1>&6 |
---|
| 1084 | fi |
---|
| 1085 | |
---|
| 1086 | fi |
---|
| 1087 | if test "$ac_cv_prog_LATEX2HTML" = latex2html; then |
---|
| 1088 | TEXI2HTML_OPTS="-l2h" |
---|
| 1089 | fi |
---|
| 1090 | |
---|
[64c6d1] | 1091 | |
---|
| 1092 | # expand prefix and pass it to subsequent configures |
---|
[23673b] | 1093 | if test "x$prefix" = xNONE; then |
---|
| 1094 | prefix=${ac_default_prefix} |
---|
| 1095 | ac_configure_args="$ac_configure_args --prefix=${prefix}" |
---|
| 1096 | fi |
---|
[64c6d1] | 1097 | |
---|
| 1098 | # expand exec_prefix |
---|
| 1099 | if test "x$exec_prefix" = xNONE; then |
---|
[fe40293] | 1100 | exec_prefix=${prefix}/${ac_cv_singuname} |
---|
| 1101 | ac_configure_args="$ac_configure_args --exec_prefix=${exec_prefix}" |
---|
[6afd7c] | 1102 | fi |
---|
| 1103 | |
---|
[64c6d1] | 1104 | # expand bindir |
---|
[8c4748] | 1105 | if test "x$bindir" = 'x${exec_prefix}/bin'; then |
---|
[dcc635] | 1106 | bindir="${exec_prefix}" |
---|
[8c4748] | 1107 | ac_configure_args="$ac_configure_args --bindir=${bindir}" |
---|
| 1108 | fi |
---|
[64c6d1] | 1109 | |
---|
| 1110 | # expand libdir |
---|
[8c4748] | 1111 | if test "x$libdir" = 'x${exec_prefix}/lib'; then |
---|
[dcc635] | 1112 | libdir="${exec_prefix}/lib" |
---|
[8c4748] | 1113 | ac_configure_args="$ac_configure_args --libdir=${libdir}" |
---|
| 1114 | fi |
---|
[64c6d1] | 1115 | |
---|
| 1116 | # expand includedir |
---|
[8c4748] | 1117 | if test "x$includedir" = 'x${prefix}/include'; then |
---|
[dcc635] | 1118 | includedir="${exec_prefix}/include" |
---|
[8c4748] | 1119 | ac_configure_args="$ac_configure_args --includedir=${includedir}" |
---|
| 1120 | fi |
---|
| 1121 | |
---|
[9bc556] | 1122 | # construct name of installed Singular executable |
---|
[55c796] | 1123 | SINGULAR=${bindir}/Singular-${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION} |
---|
[9bc556] | 1124 | export SINGULAR |
---|
| 1125 | |
---|
[8c4748] | 1126 | |
---|
[64c6d1] | 1127 | |
---|
[8c4748] | 1128 | # add -I to CPPFLAGS and -L to LDFLAGS, just to be sure |
---|
[64c6d1] | 1129 | LDFLAGS="-L${libdir} ${LDFLAGS}" |
---|
| 1130 | CPPFLAGS="-I${includedir} ${CPPFLAGS}" |
---|
[6afd7c] | 1131 | |
---|
[8c4748] | 1132 | # check for AIX |
---|
[dc32d42] | 1133 | echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6 |
---|
[43bcc5] | 1134 | echo "configure:1135: checking whether _AIX is defined" >&5 |
---|
[dc32d42] | 1135 | if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then |
---|
| 1136 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1137 | else |
---|
| 1138 | cat > conftest.$ac_ext <<EOF |
---|
[43bcc5] | 1139 | #line 1140 "configure" |
---|
[dc32d42] | 1140 | #include "confdefs.h" |
---|
| 1141 | #ifdef _AIX |
---|
| 1142 | yes |
---|
| 1143 | #endif |
---|
| 1144 | |
---|
| 1145 | EOF |
---|
| 1146 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 1147 | egrep "yes" >/dev/null 2>&1; then |
---|
| 1148 | rm -rf conftest* |
---|
| 1149 | ac_cv_is_aix=yes |
---|
| 1150 | else |
---|
| 1151 | rm -rf conftest* |
---|
| 1152 | ac_cv_is_aix=no |
---|
| 1153 | fi |
---|
| 1154 | rm -f conftest* |
---|
| 1155 | |
---|
| 1156 | fi |
---|
| 1157 | |
---|
| 1158 | if test "$ac_cv_is_aix" = yes; then |
---|
| 1159 | echo "$ac_t""yes" 1>&6 |
---|
| 1160 | else |
---|
| 1161 | echo "$ac_t""no" 1>&6 |
---|
| 1162 | fi |
---|
[6afd7c] | 1163 | |
---|
[2189fb] | 1164 | echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6 |
---|
[43bcc5] | 1165 | echo "configure:1166: checking for atof in -lm" >&5 |
---|
[2189fb] | 1166 | ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'` |
---|
[6afd7c] | 1167 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
| 1168 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1169 | else |
---|
| 1170 | ac_save_LIBS="$LIBS" |
---|
| 1171 | LIBS="-lm $LIBS" |
---|
| 1172 | cat > conftest.$ac_ext <<EOF |
---|
[43bcc5] | 1173 | #line 1174 "configure" |
---|
[6afd7c] | 1174 | #include "confdefs.h" |
---|
| 1175 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
[2189fb] | 1176 | /* We use char because int might match the return type of a gcc2 |
---|
| 1177 | builtin and then its argument prototype would still apply. */ |
---|
[6afd7c] | 1178 | char atof(); |
---|
| 1179 | |
---|
[2189fb] | 1180 | int main() { |
---|
[6afd7c] | 1181 | atof() |
---|
| 1182 | ; return 0; } |
---|
| 1183 | EOF |
---|
[43bcc5] | 1184 | if { (eval echo configure:1185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
[6afd7c] | 1185 | rm -rf conftest* |
---|
| 1186 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
| 1187 | else |
---|
[2189fb] | 1188 | echo "configure: failed program was:" >&5 |
---|
| 1189 | cat conftest.$ac_ext >&5 |
---|
[6afd7c] | 1190 | rm -rf conftest* |
---|
| 1191 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
| 1192 | fi |
---|
| 1193 | rm -f conftest* |
---|
| 1194 | LIBS="$ac_save_LIBS" |
---|
| 1195 | |
---|
| 1196 | fi |
---|
| 1197 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
| 1198 | echo "$ac_t""yes" 1>&6 |
---|
[2189fb] | 1199 | ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
| 1200 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
[6afd7c] | 1201 | cat >> confdefs.h <<EOF |
---|
| 1202 | #define $ac_tr_lib 1 |
---|
| 1203 | EOF |
---|
| 1204 | |
---|
| 1205 | LIBS="-lm $LIBS" |
---|
| 1206 | |
---|
| 1207 | else |
---|
| 1208 | echo "$ac_t""no" 1>&6 |
---|
| 1209 | fi |
---|
| 1210 | |
---|
[2189fb] | 1211 | echo $ac_n "checking for socket in -lbsd""... $ac_c" 1>&6 |
---|
[43bcc5] | 1212 | echo "configure:1213: checking for socket in -lbsd" >&5 |
---|
[2189fb] | 1213 | ac_lib_var=`echo bsd'_'socket | sed 'y%./+-%__p_%'` |
---|
[4dea87] | 1214 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
| 1215 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1216 | else |
---|
| 1217 | ac_save_LIBS="$LIBS" |
---|
| 1218 | LIBS="-lbsd $LIBS" |
---|
| 1219 | cat > conftest.$ac_ext <<EOF |
---|
[43bcc5] | 1220 | #line 1221 "configure" |
---|
[4dea87] | 1221 | #include "confdefs.h" |
---|
| 1222 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
[2189fb] | 1223 | /* We use char because int might match the return type of a gcc2 |
---|
| 1224 | builtin and then its argument prototype would still apply. */ |
---|
[4dea87] | 1225 | char socket(); |
---|
| 1226 | |
---|
[2189fb] | 1227 | int main() { |
---|
[4dea87] | 1228 | socket() |
---|
| 1229 | ; return 0; } |
---|
| 1230 | EOF |
---|
[43bcc5] | 1231 | if { (eval echo configure:1232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
[4dea87] | 1232 | rm -rf conftest* |
---|
| 1233 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
| 1234 | else |
---|
[2189fb] | 1235 | echo "configure: failed program was:" >&5 |
---|
| 1236 | cat conftest.$ac_ext >&5 |
---|
[4dea87] | 1237 | rm -rf conftest* |
---|
| 1238 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
| 1239 | fi |
---|
| 1240 | rm -f conftest* |
---|
| 1241 | LIBS="$ac_save_LIBS" |
---|
| 1242 | |
---|
| 1243 | fi |
---|
| 1244 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
| 1245 | echo "$ac_t""yes" 1>&6 |
---|
[2189fb] | 1246 | ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
| 1247 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
[4dea87] | 1248 | cat >> confdefs.h <<EOF |
---|
| 1249 | #define $ac_tr_lib 1 |
---|
| 1250 | EOF |
---|
| 1251 | |
---|
| 1252 | LIBS="-lbsd $LIBS" |
---|
| 1253 | |
---|
| 1254 | else |
---|
| 1255 | echo "$ac_t""no" 1>&6 |
---|
| 1256 | fi |
---|
| 1257 | |
---|
[2189fb] | 1258 | echo $ac_n "checking for listen in -lsocket""... $ac_c" 1>&6 |
---|
[43bcc5] | 1259 | echo "configure:1260: checking for listen in -lsocket" >&5 |
---|
[2189fb] | 1260 | ac_lib_var=`echo socket'_'listen | sed 'y%./+-%__p_%'` |
---|
[4dea87] | 1261 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
| 1262 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1263 | else |
---|
| 1264 | ac_save_LIBS="$LIBS" |
---|
| 1265 | LIBS="-lsocket $LIBS" |
---|
| 1266 | cat > conftest.$ac_ext <<EOF |
---|
[43bcc5] | 1267 | #line 1268 "configure" |
---|
[4dea87] | 1268 | #include "confdefs.h" |
---|
| 1269 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
[2189fb] | 1270 | /* We use char because int might match the return type of a gcc2 |
---|
| 1271 | builtin and then its argument prototype would still apply. */ |
---|
[4dea87] | 1272 | char listen(); |
---|
| 1273 | |
---|
[2189fb] | 1274 | int main() { |
---|
[4dea87] | 1275 | listen() |
---|
| 1276 | ; return 0; } |
---|
| 1277 | EOF |
---|
[43bcc5] | 1278 | if { (eval echo configure:1279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
[4dea87] | 1279 | rm -rf conftest* |
---|
| 1280 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
| 1281 | else |
---|
[2189fb] | 1282 | echo "configure: failed program was:" >&5 |
---|
| 1283 | cat conftest.$ac_ext >&5 |
---|
[4dea87] | 1284 | rm -rf conftest* |
---|
| 1285 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
| 1286 | fi |
---|
| 1287 | rm -f conftest* |
---|
| 1288 | LIBS="$ac_save_LIBS" |
---|
| 1289 | |
---|
| 1290 | fi |
---|
| 1291 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
| 1292 | echo "$ac_t""yes" 1>&6 |
---|
[2189fb] | 1293 | ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
| 1294 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
[4dea87] | 1295 | cat >> confdefs.h <<EOF |
---|
| 1296 | #define $ac_tr_lib 1 |
---|
| 1297 | EOF |
---|
| 1298 | |
---|
| 1299 | LIBS="-lsocket $LIBS" |
---|
| 1300 | |
---|
| 1301 | else |
---|
| 1302 | echo "$ac_t""no" 1>&6 |
---|
| 1303 | fi |
---|
| 1304 | |
---|
[2189fb] | 1305 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
---|
[43bcc5] | 1306 | echo "configure:1307: checking for gethostbyname in -lnsl" >&5 |
---|
[2189fb] | 1307 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
---|
[4dea87] | 1308 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
| 1309 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1310 | else |
---|
| 1311 | ac_save_LIBS="$LIBS" |
---|
| 1312 | LIBS="-lnsl $LIBS" |
---|
| 1313 | cat > conftest.$ac_ext <<EOF |
---|
[43bcc5] | 1314 | #line 1315 "configure" |
---|
[4dea87] | 1315 | #include "confdefs.h" |
---|
| 1316 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
[2189fb] | 1317 | /* We use char because int might match the return type of a gcc2 |
---|
| 1318 | builtin and then its argument prototype would still apply. */ |
---|
[4dea87] | 1319 | char gethostbyname(); |
---|
| 1320 | |
---|
[2189fb] | 1321 | int main() { |
---|
[4dea87] | 1322 | gethostbyname() |
---|
| 1323 | ; return 0; } |
---|
| 1324 | EOF |
---|
[43bcc5] | 1325 | if { (eval echo configure:1326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
[4dea87] | 1326 | rm -rf conftest* |
---|
| 1327 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
| 1328 | else |
---|
[2189fb] | 1329 | echo "configure: failed program was:" >&5 |
---|
| 1330 | cat conftest.$ac_ext >&5 |
---|
[4dea87] | 1331 | rm -rf conftest* |
---|
| 1332 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
| 1333 | fi |
---|
| 1334 | rm -f conftest* |
---|
| 1335 | LIBS="$ac_save_LIBS" |
---|
| 1336 | |
---|
| 1337 | fi |
---|
| 1338 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
| 1339 | echo "$ac_t""yes" 1>&6 |
---|
[2189fb] | 1340 | ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
| 1341 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
[4dea87] | 1342 | cat >> confdefs.h <<EOF |
---|
| 1343 | #define $ac_tr_lib 1 |
---|
| 1344 | EOF |
---|
| 1345 | |
---|
| 1346 | LIBS="-lnsl $LIBS" |
---|
| 1347 | |
---|
| 1348 | else |
---|
| 1349 | echo "$ac_t""no" 1>&6 |
---|
| 1350 | fi |
---|
| 1351 | |
---|
[2189fb] | 1352 | echo $ac_n "checking for mpq_init in -lgmp""... $ac_c" 1>&6 |
---|
[43bcc5] | 1353 | echo "configure:1354: checking for mpq_init in -lgmp" >&5 |
---|
[2189fb] | 1354 | ac_lib_var=`echo gmp'_'mpq_init | sed 'y%./+-%__p_%'` |
---|
[6afd7c] | 1355 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
| 1356 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1357 | else |
---|
| 1358 | ac_save_LIBS="$LIBS" |
---|
| 1359 | LIBS="-lgmp $LIBS" |
---|
| 1360 | cat > conftest.$ac_ext <<EOF |
---|
[43bcc5] | 1361 | #line 1362 "configure" |
---|
[6afd7c] | 1362 | #include "confdefs.h" |
---|
| 1363 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
[2189fb] | 1364 | /* We use char because int might match the return type of a gcc2 |
---|
| 1365 | builtin and then its argument prototype would still apply. */ |
---|
[78364c] | 1366 | char mpq_init(); |
---|
[6afd7c] | 1367 | |
---|
[2189fb] | 1368 | int main() { |
---|
[78364c] | 1369 | mpq_init() |
---|
[6afd7c] | 1370 | ; return 0; } |
---|
| 1371 | EOF |
---|
[43bcc5] | 1372 | if { (eval echo configure:1373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
[6afd7c] | 1373 | rm -rf conftest* |
---|
| 1374 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
| 1375 | else |
---|
[2189fb] | 1376 | echo "configure: failed program was:" >&5 |
---|
| 1377 | cat conftest.$ac_ext >&5 |
---|
[6afd7c] | 1378 | rm -rf conftest* |
---|
| 1379 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
| 1380 | fi |
---|
| 1381 | rm -f conftest* |
---|
| 1382 | LIBS="$ac_save_LIBS" |
---|
| 1383 | |
---|
| 1384 | fi |
---|
| 1385 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
| 1386 | echo "$ac_t""yes" 1>&6 |
---|
[2189fb] | 1387 | ac_tr_lib=HAVE_LIB`echo gmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
| 1388 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
[6afd7c] | 1389 | cat >> confdefs.h <<EOF |
---|
| 1390 | #define $ac_tr_lib 1 |
---|
| 1391 | EOF |
---|
| 1392 | |
---|
| 1393 | LIBS="-lgmp $LIBS" |
---|
| 1394 | |
---|
| 1395 | else |
---|
| 1396 | echo "$ac_t""no" 1>&6 |
---|
| 1397 | fi |
---|
| 1398 | |
---|
[2189fb] | 1399 | echo $ac_n "checking for mpz_init in -lsmallgmp""... $ac_c" 1>&6 |
---|
[43bcc5] | 1400 | echo "configure:1401: checking for mpz_init in -lsmallgmp" >&5 |
---|
[2189fb] | 1401 | ac_lib_var=`echo smallgmp'_'mpz_init | sed 'y%./+-%__p_%'` |
---|
[78364c] | 1402 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
| 1403 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1404 | else |
---|
| 1405 | ac_save_LIBS="$LIBS" |
---|
| 1406 | LIBS="-lsmallgmp $LIBS" |
---|
| 1407 | cat > conftest.$ac_ext <<EOF |
---|
[43bcc5] | 1408 | #line 1409 "configure" |
---|
[78364c] | 1409 | #include "confdefs.h" |
---|
| 1410 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
[2189fb] | 1411 | /* We use char because int might match the return type of a gcc2 |
---|
| 1412 | builtin and then its argument prototype would still apply. */ |
---|
[78364c] | 1413 | char mpz_init(); |
---|
| 1414 | |
---|
[2189fb] | 1415 | int main() { |
---|
[78364c] | 1416 | mpz_init() |
---|
| 1417 | ; return 0; } |
---|
| 1418 | EOF |
---|
[43bcc5] | 1419 | if { (eval echo configure:1420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
[78364c] | 1420 | rm -rf conftest* |
---|
| 1421 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
| 1422 | else |
---|
[2189fb] | 1423 | echo "configure: failed program was:" >&5 |
---|
| 1424 | cat conftest.$ac_ext >&5 |
---|
[78364c] | 1425 | rm -rf conftest* |
---|
| 1426 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
| 1427 | fi |
---|
| 1428 | rm -f conftest* |
---|
| 1429 | LIBS="$ac_save_LIBS" |
---|
| 1430 | |
---|
| 1431 | fi |
---|
| 1432 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
| 1433 | echo "$ac_t""yes" 1>&6 |
---|
[2189fb] | 1434 | ac_tr_lib=HAVE_LIB`echo smallgmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
| 1435 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
[78364c] | 1436 | cat >> confdefs.h <<EOF |
---|
| 1437 | #define $ac_tr_lib 1 |
---|
| 1438 | EOF |
---|
| 1439 | |
---|
| 1440 | LIBS="-lsmallgmp $LIBS" |
---|
| 1441 | |
---|
| 1442 | else |
---|
| 1443 | echo "$ac_t""no" 1>&6 |
---|
| 1444 | fi |
---|
| 1445 | |
---|
[2189fb] | 1446 | echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6 |
---|
[43bcc5] | 1447 | echo "configure:1448: checking for IMP_PutGmpInt in -lMP" >&5 |
---|
[2189fb] | 1448 | ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'` |
---|
[6afd7c] | 1449 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
| 1450 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1451 | else |
---|
| 1452 | ac_save_LIBS="$LIBS" |
---|
| 1453 | LIBS="-lMP $LIBS" |
---|
| 1454 | cat > conftest.$ac_ext <<EOF |
---|
[43bcc5] | 1455 | #line 1456 "configure" |
---|
[6afd7c] | 1456 | #include "confdefs.h" |
---|
| 1457 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
[2189fb] | 1458 | /* We use char because int might match the return type of a gcc2 |
---|
| 1459 | builtin and then its argument prototype would still apply. */ |
---|
[6afd7c] | 1460 | char IMP_PutGmpInt(); |
---|
| 1461 | |
---|
[2189fb] | 1462 | int main() { |
---|
[6afd7c] | 1463 | IMP_PutGmpInt() |
---|
| 1464 | ; return 0; } |
---|
| 1465 | EOF |
---|
[43bcc5] | 1466 | if { (eval echo configure:1467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
[6afd7c] | 1467 | rm -rf conftest* |
---|
| 1468 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
| 1469 | else |
---|
[2189fb] | 1470 | echo "configure: failed program was:" >&5 |
---|
| 1471 | cat conftest.$ac_ext >&5 |
---|
[6afd7c] | 1472 | rm -rf conftest* |
---|
| 1473 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
| 1474 | fi |
---|
| 1475 | rm -f conftest* |
---|
| 1476 | LIBS="$ac_save_LIBS" |
---|
| 1477 | |
---|
| 1478 | fi |
---|
| 1479 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
| 1480 | echo "$ac_t""yes" 1>&6 |
---|
[2189fb] | 1481 | ac_tr_lib=HAVE_LIB`echo MP | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
| 1482 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
[6afd7c] | 1483 | cat >> confdefs.h <<EOF |
---|
| 1484 | #define $ac_tr_lib 1 |
---|
| 1485 | EOF |
---|
| 1486 | |
---|
| 1487 | LIBS="-lMP $LIBS" |
---|
| 1488 | |
---|
| 1489 | else |
---|
| 1490 | echo "$ac_t""no" 1>&6 |
---|
| 1491 | fi |
---|
| 1492 | |
---|
[2189fb] | 1493 | echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6 |
---|
[43bcc5] | 1494 | echo "configure:1495: checking for MPT_GetTree in -lMPT" >&5 |
---|
[2189fb] | 1495 | ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'` |
---|
[6afd7c] | 1496 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
| 1497 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1498 | else |
---|
| 1499 | ac_save_LIBS="$LIBS" |
---|
| 1500 | LIBS="-lMPT $LIBS" |
---|
| 1501 | cat > conftest.$ac_ext <<EOF |
---|
[43bcc5] | 1502 | #line 1503 "configure" |
---|
[6afd7c] | 1503 | #include "confdefs.h" |
---|
| 1504 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
[2189fb] | 1505 | /* We use char because int might match the return type of a gcc2 |
---|
| 1506 | builtin and then its argument prototype would still apply. */ |
---|
[6afd7c] | 1507 | char MPT_GetTree(); |
---|
| 1508 | |
---|
[2189fb] | 1509 | int main() { |
---|
[6afd7c] | 1510 | MPT_GetTree() |
---|
| 1511 | ; return 0; } |
---|
| 1512 | EOF |
---|
[43bcc5] | 1513 | if { (eval echo configure:1514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
[6afd7c] | 1514 | rm -rf conftest* |
---|
| 1515 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
| 1516 | else |
---|
[2189fb] | 1517 | echo "configure: failed program was:" >&5 |
---|
| 1518 | cat conftest.$ac_ext >&5 |
---|
[6afd7c] | 1519 | rm -rf conftest* |
---|
| 1520 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
| 1521 | fi |
---|
| 1522 | rm -f conftest* |
---|
| 1523 | LIBS="$ac_save_LIBS" |
---|
| 1524 | |
---|
| 1525 | fi |
---|
| 1526 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
| 1527 | echo "$ac_t""yes" 1>&6 |
---|
[2189fb] | 1528 | ac_tr_lib=HAVE_LIB`echo MPT | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
| 1529 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
[6afd7c] | 1530 | cat >> confdefs.h <<EOF |
---|
| 1531 | #define $ac_tr_lib 1 |
---|
| 1532 | EOF |
---|
| 1533 | |
---|
| 1534 | LIBS="-lMPT $LIBS" |
---|
| 1535 | |
---|
| 1536 | else |
---|
| 1537 | echo "$ac_t""no" 1>&6 |
---|
| 1538 | fi |
---|
| 1539 | |
---|
[2189fb] | 1540 | echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6 |
---|
[43bcc5] | 1541 | echo "configure:1542: checking for atof in -lsingcf" >&5 |
---|
[2189fb] | 1542 | ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'` |
---|
[6afd7c] | 1543 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
| 1544 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1545 | else |
---|
| 1546 | ac_save_LIBS="$LIBS" |
---|
| 1547 | LIBS="-lsingcf $LIBS" |
---|
| 1548 | cat > conftest.$ac_ext <<EOF |
---|
[43bcc5] | 1549 | #line 1550 "configure" |
---|
[6afd7c] | 1550 | #include "confdefs.h" |
---|
| 1551 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
[2189fb] | 1552 | /* We use char because int might match the return type of a gcc2 |
---|
| 1553 | builtin and then its argument prototype would still apply. */ |
---|
[3fdf16] | 1554 | char atof(); |
---|
[6afd7c] | 1555 | |
---|
[2189fb] | 1556 | int main() { |
---|
[3fdf16] | 1557 | atof() |
---|
[6afd7c] | 1558 | ; return 0; } |
---|
| 1559 | EOF |
---|
[43bcc5] | 1560 | if { (eval echo configure:1561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
[6afd7c] | 1561 | rm -rf conftest* |
---|
| 1562 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
| 1563 | else |
---|
[2189fb] | 1564 | echo "configure: failed program was:" >&5 |
---|
| 1565 | cat conftest.$ac_ext >&5 |
---|
[6afd7c] | 1566 | rm -rf conftest* |
---|
| 1567 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
| 1568 | fi |
---|
| 1569 | rm -f conftest* |
---|
| 1570 | LIBS="$ac_save_LIBS" |
---|
| 1571 | |
---|
| 1572 | fi |
---|
| 1573 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
| 1574 | echo "$ac_t""yes" 1>&6 |
---|
[2189fb] | 1575 | ac_tr_lib=HAVE_LIB`echo singcf | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
| 1576 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
[6afd7c] | 1577 | cat >> confdefs.h <<EOF |
---|
| 1578 | #define $ac_tr_lib 1 |
---|
| 1579 | EOF |
---|
| 1580 | |
---|
| 1581 | LIBS="-lsingcf $LIBS" |
---|
| 1582 | |
---|
| 1583 | else |
---|
| 1584 | echo "$ac_t""no" 1>&6 |
---|
| 1585 | fi |
---|
| 1586 | |
---|
[2189fb] | 1587 | echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6 |
---|
[43bcc5] | 1588 | echo "configure:1589: checking for atof in -lsingfac" >&5 |
---|
[2189fb] | 1589 | ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'` |
---|
[6afd7c] | 1590 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
| 1591 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1592 | else |
---|
| 1593 | ac_save_LIBS="$LIBS" |
---|
| 1594 | LIBS="-lsingfac $LIBS" |
---|
| 1595 | cat > conftest.$ac_ext <<EOF |
---|
[43bcc5] | 1596 | #line 1597 "configure" |
---|
[6afd7c] | 1597 | #include "confdefs.h" |
---|
| 1598 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
[2189fb] | 1599 | /* We use char because int might match the return type of a gcc2 |
---|
| 1600 | builtin and then its argument prototype would still apply. */ |
---|
[3fdf16] | 1601 | char atof(); |
---|
[6afd7c] | 1602 | |
---|
[2189fb] | 1603 | int main() { |
---|
[3fdf16] | 1604 | atof() |
---|
[6afd7c] | 1605 | ; return 0; } |
---|
| 1606 | EOF |
---|
[43bcc5] | 1607 | if { (eval echo configure:1608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
[6afd7c] | 1608 | rm -rf conftest* |
---|
| 1609 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
| 1610 | else |
---|
[2189fb] | 1611 | echo "configure: failed program was:" >&5 |
---|
| 1612 | cat conftest.$ac_ext >&5 |
---|
[6afd7c] | 1613 | rm -rf conftest* |
---|
| 1614 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
| 1615 | fi |
---|
| 1616 | rm -f conftest* |
---|
| 1617 | LIBS="$ac_save_LIBS" |
---|
| 1618 | |
---|
| 1619 | fi |
---|
| 1620 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
| 1621 | echo "$ac_t""yes" 1>&6 |
---|
[2189fb] | 1622 | ac_tr_lib=HAVE_LIB`echo singfac | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
| 1623 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
[6afd7c] | 1624 | cat >> confdefs.h <<EOF |
---|
| 1625 | #define $ac_tr_lib 1 |
---|
| 1626 | EOF |
---|
| 1627 | |
---|
| 1628 | LIBS="-lsingfac $LIBS" |
---|
| 1629 | |
---|
| 1630 | else |
---|
| 1631 | echo "$ac_t""no" 1>&6 |
---|
| 1632 | fi |
---|
| 1633 | |
---|
| 1634 | |
---|
[78364c] | 1635 | for ac_hdr in gmp.h smallgmp.h MP.h MPT.h factory.h factor.h |
---|
[6afd7c] | 1636 | do |
---|
[2189fb] | 1637 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
[6afd7c] | 1638 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
[43bcc5] | 1639 | echo "configure:1640: checking for $ac_hdr" >&5 |
---|
[6afd7c] | 1640 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
| 1641 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1642 | else |
---|
| 1643 | cat > conftest.$ac_ext <<EOF |
---|
[43bcc5] | 1644 | #line 1645 "configure" |
---|
[6afd7c] | 1645 | #include "confdefs.h" |
---|
| 1646 | #include <$ac_hdr> |
---|
| 1647 | EOF |
---|
| 1648 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
[43bcc5] | 1649 | { (eval echo configure:1650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
| 1650 | ac_err=`grep -v '^ *+' conftest.out` |
---|
[6afd7c] | 1651 | if test -z "$ac_err"; then |
---|
| 1652 | rm -rf conftest* |
---|
| 1653 | eval "ac_cv_header_$ac_safe=yes" |
---|
| 1654 | else |
---|
| 1655 | echo "$ac_err" >&5 |
---|
[2189fb] | 1656 | echo "configure: failed program was:" >&5 |
---|
| 1657 | cat conftest.$ac_ext >&5 |
---|
[6afd7c] | 1658 | rm -rf conftest* |
---|
| 1659 | eval "ac_cv_header_$ac_safe=no" |
---|
| 1660 | fi |
---|
| 1661 | rm -f conftest* |
---|
| 1662 | fi |
---|
| 1663 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
| 1664 | echo "$ac_t""yes" 1>&6 |
---|
[2189fb] | 1665 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
[6afd7c] | 1666 | cat >> confdefs.h <<EOF |
---|
| 1667 | #define $ac_tr_hdr 1 |
---|
| 1668 | EOF |
---|
| 1669 | |
---|
| 1670 | else |
---|
| 1671 | echo "$ac_t""no" 1>&6 |
---|
| 1672 | fi |
---|
| 1673 | done |
---|
| 1674 | |
---|
| 1675 | |
---|
[78364c] | 1676 | if test "$ac_cv_lib_gmp_mpq_init" = yes && \ |
---|
[6afd7c] | 1677 | test "$ac_cv_header_gmp_h" = yes; then |
---|
[8c4748] | 1678 | ac_gmp_ok=yes |
---|
[6afd7c] | 1679 | fi |
---|
| 1680 | |
---|
[78364c] | 1681 | if test "$ac_cv_lib_smallgmp_mpz_init" = yes && \ |
---|
| 1682 | test "$ac_cv_header_smallgmp_h" = yes && \ |
---|
| 1683 | test "$ac_cv_header_gmp_h" = yes; then |
---|
[8c4748] | 1684 | ac_smallgmp_ok=yes |
---|
[78364c] | 1685 | fi |
---|
| 1686 | |
---|
[6afd7c] | 1687 | if test "$ac_cv_lib_MP_IMP_PutGmpInt" = yes && \ |
---|
| 1688 | test "$ac_cv_lib_MPT_MPT_GetTree" && \ |
---|
| 1689 | test "$ac_cv_header_MP_h" = yes && \ |
---|
| 1690 | test "$ac_cv_header_MPT_h" = yes; then |
---|
| 1691 | ac_MP_ok=yes |
---|
| 1692 | fi |
---|
| 1693 | |
---|
[4c001a] | 1694 | if test "$ac_cv_lib_singcf_atof" = yes && \ |
---|
[6afd7c] | 1695 | test "$ac_cv_header_factory_h" = yes; then |
---|
| 1696 | ac_factory_ok=yes |
---|
| 1697 | fi |
---|
| 1698 | |
---|
[4c001a] | 1699 | if test "$ac_cv_lib_singfac_atof" = yes && \ |
---|
[6afd7c] | 1700 | test "$ac_cv_header_factor_h" = yes; then |
---|
| 1701 | ac_libfac_ok=yes |
---|
| 1702 | fi |
---|
| 1703 | |
---|
| 1704 | |
---|
[f36635] | 1705 | # Check whether --with-tmpdir or --without-tmpdir was given. |
---|
| 1706 | if test "${with_tmpdir+set}" = set; then |
---|
| 1707 | withval="$with_tmpdir" |
---|
| 1708 | : |
---|
| 1709 | fi |
---|
| 1710 | |
---|
[dc3a44] | 1711 | # Check whether --with-perl5 or --without-perl5 was given. |
---|
| 1712 | if test "${with_perl5+set}" = set; then |
---|
| 1713 | withval="$with_perl5" |
---|
| 1714 | : |
---|
| 1715 | fi |
---|
| 1716 | |
---|
[78364c] | 1717 | # Check whether --enable-smallgmp or --disable-smallgmp was given. |
---|
| 1718 | if test "${enable_smallgmp+set}" = set; then |
---|
| 1719 | enableval="$enable_smallgmp" |
---|
[6afd7c] | 1720 | : |
---|
| 1721 | fi |
---|
| 1722 | |
---|
[64c6d1] | 1723 | # Check whether --enable-gmp or --disable-gmp was given. |
---|
| 1724 | if test "${enable_gmp+set}" = set; then |
---|
| 1725 | enableval="$enable_gmp" |
---|
| 1726 | : |
---|
| 1727 | fi |
---|
| 1728 | |
---|
[6afd7c] | 1729 | # Check whether --enable-MP or --disable-MP was given. |
---|
| 1730 | if test "${enable_MP+set}" = set; then |
---|
| 1731 | enableval="$enable_MP" |
---|
| 1732 | : |
---|
| 1733 | fi |
---|
| 1734 | |
---|
| 1735 | # Check whether --enable-factory or --disable-factory was given. |
---|
| 1736 | if test "${enable_factory+set}" = set; then |
---|
| 1737 | enableval="$enable_factory" |
---|
| 1738 | : |
---|
| 1739 | fi |
---|
| 1740 | |
---|
| 1741 | # Check whether --enable-libfac or --disable-libfac was given. |
---|
| 1742 | if test "${enable_libfac+set}" = set; then |
---|
| 1743 | enableval="$enable_libfac" |
---|
| 1744 | : |
---|
| 1745 | fi |
---|
| 1746 | |
---|
[a04715] | 1747 | # Check whether --enable-sgroup or --disable-sgroup was given. |
---|
| 1748 | if test "${enable_sgroup+set}" = set; then |
---|
| 1749 | enableval="$enable_sgroup" |
---|
| 1750 | : |
---|
| 1751 | fi |
---|
| 1752 | |
---|
[6afd7c] | 1753 | # Check whether --enable-Singular or --disable-Singular was given. |
---|
| 1754 | if test "${enable_Singular+set}" = set; then |
---|
| 1755 | enableval="$enable_Singular" |
---|
| 1756 | : |
---|
| 1757 | fi |
---|
| 1758 | |
---|
[f36635] | 1759 | # Check whether --enable-Texinfo or --disable-Texinfo was given. |
---|
| 1760 | if test "${enable_Texinfo+set}" = set; then |
---|
| 1761 | enableval="$enable_Texinfo" |
---|
| 1762 | : |
---|
| 1763 | fi |
---|
| 1764 | |
---|
[78364c] | 1765 | # Check whether --with-MP or --without-MP was given. |
---|
| 1766 | if test "${with_MP+set}" = set; then |
---|
| 1767 | withval="$with_MP" |
---|
| 1768 | : |
---|
[6afd7c] | 1769 | fi |
---|
[78364c] | 1770 | |
---|
| 1771 | # Check whether --with-factory or --without-factory was given. |
---|
| 1772 | if test "${with_factory+set}" = set; then |
---|
| 1773 | withval="$with_factory" |
---|
| 1774 | : |
---|
| 1775 | fi |
---|
| 1776 | |
---|
| 1777 | # Check whether --with-libfac or --without-libfac was given. |
---|
| 1778 | if test "${with_libfac+set}" = set; then |
---|
| 1779 | withval="$with_libfac" |
---|
| 1780 | : |
---|
| 1781 | fi |
---|
| 1782 | |
---|
| 1783 | # Check whether --with-gmp or --without-gmp was given. |
---|
| 1784 | if test "${with_gmp+set}" = set; then |
---|
| 1785 | withval="$with_gmp" |
---|
| 1786 | : |
---|
| 1787 | fi |
---|
| 1788 | |
---|
| 1789 | |
---|
[f36635] | 1790 | echo $ac_n "checking which tmp dir to use""... $ac_c" 1>&6 |
---|
[43bcc5] | 1791 | echo "configure:1792: checking which tmp dir to use" >&5 |
---|
[f36635] | 1792 | if test "${with_tmpdir+set}" = set && test -d ${with_tmpdir}; then |
---|
| 1793 | if (echo "${with_tmpdir}" | egrep "\." >/dev/null 2>&1) |
---|
| 1794 | then |
---|
| 1795 | TMP_DIR="/tmp" |
---|
| 1796 | else |
---|
| 1797 | TMP_DIR=${with_tmpdir} |
---|
| 1798 | fi |
---|
| 1799 | else |
---|
| 1800 | TMP_DIR="/tmp" |
---|
| 1801 | fi |
---|
| 1802 | echo "$ac_t""$TMP_DIR" 1>&6 |
---|
| 1803 | |
---|
| 1804 | |
---|
[dc3a44] | 1805 | # perl version 5 |
---|
| 1806 | if test "${with_perl5+set}" != set; then |
---|
| 1807 | echo $ac_n "checking for perl5""... $ac_c" 1>&6 |
---|
[43bcc5] | 1808 | echo "configure:1809: checking for perl5" >&5 |
---|
[dc3a44] | 1809 | if eval "test \"`echo '$''{'ac_cv_prog_perl5'+set}'`\" = set"; then |
---|
| 1810 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1811 | else |
---|
| 1812 | if (perl5 -v >/dev/null 2>&1) |
---|
| 1813 | then |
---|
| 1814 | if (perl5 -v | egrep "version 5\.[0-9]" >/dev/null 2>&1 ) |
---|
| 1815 | then |
---|
| 1816 | ac_cv_prog_perl5=perl5 |
---|
| 1817 | fi |
---|
| 1818 | elif (perl -v >/dev/null 2>&1) |
---|
| 1819 | then |
---|
| 1820 | if (perl -v | egrep "version 5\.[0-9]" >/dev/null 2>&1 ) |
---|
| 1821 | then |
---|
| 1822 | ac_cv_prog_perl5=perl |
---|
| 1823 | fi |
---|
| 1824 | fi |
---|
| 1825 | |
---|
| 1826 | fi |
---|
| 1827 | |
---|
| 1828 | if test "${ac_cv_prog_perl5+set}" = set; then |
---|
| 1829 | echo "$ac_t""${ac_cv_prog_perl5}" 1>&6 |
---|
| 1830 | PERL5=${ac_cv_prog_perl5} |
---|
| 1831 | |
---|
| 1832 | else |
---|
| 1833 | { echo "configure: error: can not find perl version 5" 1>&2; exit 1; } |
---|
| 1834 | fi |
---|
| 1835 | elif test "${with_perl5}" = no; then |
---|
| 1836 | echo "configure: warning: building without perl5 -- make might fail" 1>&2 |
---|
| 1837 | else |
---|
| 1838 | unset PERL5 |
---|
| 1839 | unset ac_cv_prog_PERL5 |
---|
| 1840 | for ac_prog in ${with_perl5} |
---|
| 1841 | do |
---|
| 1842 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1843 | set dummy $ac_prog; ac_word=$2 |
---|
| 1844 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[43bcc5] | 1845 | echo "configure:1846: checking for $ac_word" >&5 |
---|
[dc3a44] | 1846 | if eval "test \"`echo '$''{'ac_cv_prog_PERL5'+set}'`\" = set"; then |
---|
| 1847 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1848 | else |
---|
| 1849 | if test -n "$PERL5"; then |
---|
| 1850 | ac_cv_prog_PERL5="$PERL5" # Let the user override the test. |
---|
| 1851 | else |
---|
[43bcc5] | 1852 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 1853 | for ac_dir in $PATH; do |
---|
[dc3a44] | 1854 | test -z "$ac_dir" && ac_dir=. |
---|
| 1855 | if test -f $ac_dir/$ac_word; then |
---|
| 1856 | ac_cv_prog_PERL5="$ac_prog" |
---|
| 1857 | break |
---|
| 1858 | fi |
---|
| 1859 | done |
---|
| 1860 | IFS="$ac_save_ifs" |
---|
| 1861 | fi |
---|
| 1862 | fi |
---|
| 1863 | PERL5="$ac_cv_prog_PERL5" |
---|
| 1864 | if test -n "$PERL5"; then |
---|
| 1865 | echo "$ac_t""$PERL5" 1>&6 |
---|
| 1866 | else |
---|
| 1867 | echo "$ac_t""no" 1>&6 |
---|
| 1868 | fi |
---|
| 1869 | |
---|
| 1870 | test -n "$PERL5" && break |
---|
| 1871 | done |
---|
| 1872 | |
---|
| 1873 | if test "x${PERL5}" = x; then |
---|
| 1874 | echo "configure: warning: building without perl5 -- make might fail" 1>&2 |
---|
| 1875 | fi |
---|
| 1876 | fi |
---|
| 1877 | |
---|
| 1878 | |
---|
[f36635] | 1879 | echo $ac_n "checking whether to configure and build texinfo""... $ac_c" 1>&6 |
---|
[43bcc5] | 1880 | echo "configure:1881: checking whether to configure and build texinfo" >&5 |
---|
[f36635] | 1881 | if test "$enable_texinfo" != no && test -d Texinfo; then |
---|
| 1882 | echo "$ac_t""yes" 1>&6 |
---|
| 1883 | enable_texinfo=yes |
---|
| 1884 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS Texinfo" |
---|
| 1885 | TEXI2DVI=${bindir}/texi2dvi |
---|
| 1886 | MAKEINFO="${bindir}/makeinfo --force" |
---|
| 1887 | TEXINDEX=${bindir}/texindex |
---|
| 1888 | else |
---|
| 1889 | echo "$ac_t""no" 1>&6 |
---|
| 1890 | echo "configure: warning: Building of doc might fail. Need Texinfo" 1>&2 |
---|
| 1891 | enable_texinfo=no |
---|
| 1892 | TEXI2DVI=texi2dvi |
---|
| 1893 | MAKEINFO=makeinfo |
---|
| 1894 | TEXINDEX=${bindir}/texindex |
---|
| 1895 | fi |
---|
| 1896 | |
---|
| 1897 | |
---|
| 1898 | |
---|
| 1899 | |
---|
| 1900 | |
---|
[64c6d1] | 1901 | echo $ac_n "checking whether to configure and build gmp lib""... $ac_c" 1>&6 |
---|
[43bcc5] | 1902 | echo "configure:1903: checking whether to configure and build gmp lib" >&5 |
---|
[64c6d1] | 1903 | if test "$enable_gmp" != yes && test "$enable_gmp" != no; then |
---|
| 1904 | if test "$ac_gmp_ok" != yes && test -d gmp; then |
---|
| 1905 | echo "$ac_t""yes" 1>&6 |
---|
| 1906 | enable_gmp=yes |
---|
| 1907 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp" |
---|
| 1908 | ac_configure_args="$ac_configure_args --enable-gmp" |
---|
[8c4748] | 1909 | OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES gmp/Makefile.in" |
---|
[64c6d1] | 1910 | else |
---|
| 1911 | echo "$ac_t""no" 1>&6 |
---|
| 1912 | enable_gmp=no |
---|
| 1913 | fi |
---|
| 1914 | elif test "$enable_gmp" = yes; then |
---|
| 1915 | if test ! -d gmp; then |
---|
| 1916 | echo "$ac_t""no" 1>&6 |
---|
| 1917 | { echo "configure: error: Can not find gmp subdir" 1>&2; exit 1; } |
---|
| 1918 | else |
---|
| 1919 | echo "$ac_t""yes" 1>&6 |
---|
| 1920 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp" |
---|
[8c4748] | 1921 | OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES gmp/Makefile.in" |
---|
[64c6d1] | 1922 | fi |
---|
| 1923 | else |
---|
| 1924 | echo "$ac_t""no" 1>&6 |
---|
| 1925 | fi |
---|
| 1926 | |
---|
[78364c] | 1927 | echo $ac_n "checking whether to configure and build smallgmp lib""... $ac_c" 1>&6 |
---|
[43bcc5] | 1928 | echo "configure:1929: checking whether to configure and build smallgmp lib" >&5 |
---|
[78364c] | 1929 | if test "$enable_smallgmp" != yes && test "$enable_smallgmp" != no; then |
---|
[64c6d1] | 1930 | if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \ |
---|
| 1931 | test "$enable_gmp" != yes && test -d smallgmp; then |
---|
| 1932 | echo "$ac_t""yes" 1>&6 |
---|
[78364c] | 1933 | enable_smallgmp=yes |
---|
[64c6d1] | 1934 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp" |
---|
| 1935 | ac_configure_args="$ac_configure_args --enable-smallgmp --enable-gmp" |
---|
[dc32d42] | 1936 | else |
---|
[64c6d1] | 1937 | echo "$ac_t""no" 1>&6 |
---|
[78364c] | 1938 | enable_smallgmp=no |
---|
[dc32d42] | 1939 | fi |
---|
[64c6d1] | 1940 | elif test "$enable_smallgmp" = yes; then |
---|
| 1941 | if test ! -d smallgmp; then |
---|
| 1942 | echo "$ac_t""no" 1>&6 |
---|
| 1943 | { echo "configure: error: Can not find smallgmp subdir" 1>&2; exit 1; } |
---|
| 1944 | else |
---|
| 1945 | echo "$ac_t""yes" 1>&6 |
---|
| 1946 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp" |
---|
| 1947 | if test "$ac_gmp_ok" != yes && test "$enable_gmp" != yes; then |
---|
| 1948 | ac_configure_args="$ac_configure_args --enable-gmp" |
---|
| 1949 | fi |
---|
[6afd7c] | 1950 | fi |
---|
[64c6d1] | 1951 | else |
---|
| 1952 | echo "$ac_t""${enable_smallgmp}" 1>&6 |
---|
[78364c] | 1953 | fi |
---|
[64c6d1] | 1954 | |
---|
| 1955 | # Check whether we have at least one of smallgmp or gmp |
---|
| 1956 | if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \ |
---|
| 1957 | test "$enable_smallgmp" != yes && test "$enable_gmp" != yes; then |
---|
| 1958 | { echo "configure: error: can neither find nor built gmp or smallgmp" 1>&2; exit 1; } |
---|
| 1959 | fi |
---|
| 1960 | |
---|
| 1961 | # Check whether we need to cheat subsequent configures with --enable-gmp |
---|
| 1962 | if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes; then |
---|
[78364c] | 1963 | ac_configure_args="$ac_configure_args --enable-gmp" |
---|
[6afd7c] | 1964 | fi |
---|
| 1965 | |
---|
| 1966 | echo $ac_n "checking whether to configure and build MP lib""... $ac_c" 1>&6 |
---|
[43bcc5] | 1967 | echo "configure:1968: checking whether to configure and build MP lib" >&5 |
---|
[6afd7c] | 1968 | if test "$enable_MP" != yes && test "$enable_MP" != no; then |
---|
[64c6d1] | 1969 | if test "$with_MP" != no && test "$ac_MP_ok" != yes && test -d MP && \ |
---|
| 1970 | (test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes); then |
---|
| 1971 | echo "$ac_t""yes" 1>&6 |
---|
[6afd7c] | 1972 | enable_MP=yes |
---|
[64c6d1] | 1973 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP" |
---|
| 1974 | ac_configure_args="$ac_configure_args --enable-MP" |
---|
[6afd7c] | 1975 | else |
---|
[64c6d1] | 1976 | echo "$ac_t""no" 1>&6 |
---|
[6afd7c] | 1977 | enable_MP=no |
---|
| 1978 | fi |
---|
[64c6d1] | 1979 | elif test "$enable_MP" = yes; then |
---|
| 1980 | if test ! -d MP; then |
---|
| 1981 | echo "$ac_t""no" 1>&6 |
---|
| 1982 | { echo "configure: error: can not build MP without MP directory" 1>&2; exit 1; } |
---|
| 1983 | fi |
---|
| 1984 | if test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes; then |
---|
[dc32d42] | 1985 | echo "$ac_t""yes" 1>&6 |
---|
| 1986 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP" |
---|
| 1987 | else |
---|
| 1988 | echo "$ac_t""no" 1>&6 |
---|
[64c6d1] | 1989 | { echo "configure: error: can not build MP without gmp" 1>&2; exit 1; } |
---|
[dc32d42] | 1990 | fi |
---|
[6afd7c] | 1991 | else |
---|
| 1992 | echo "$ac_t""no" 1>&6 |
---|
| 1993 | fi |
---|
[64c6d1] | 1994 | |
---|
[6afd7c] | 1995 | echo $ac_n "checking whether to configure and build factory lib""... $ac_c" 1>&6 |
---|
[43bcc5] | 1996 | echo "configure:1997: checking whether to configure and build factory lib" >&5 |
---|
[6afd7c] | 1997 | if test "$enable_factory" != yes && test "$enable_factory" != no; then |
---|
[64c6d1] | 1998 | if test "$with_factory" != no && test "$ac_factory_ok" != yes && \ |
---|
| 1999 | test -d factory; then |
---|
[6afd7c] | 2000 | enable_factory=yes |
---|
[64c6d1] | 2001 | echo "$ac_t""yes" 1>&6 |
---|
| 2002 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory" |
---|
| 2003 | ac_configure_args="$ac_configure_args --enable-factory" |
---|
[6afd7c] | 2004 | else |
---|
| 2005 | enable_factory=no |
---|
[64c6d1] | 2006 | echo "$ac_t""no" 1>&6 |
---|
[6afd7c] | 2007 | fi |
---|
[64c6d1] | 2008 | elif test "$enable_factory" = yes; then |
---|
| 2009 | if test -d factory; then |
---|
[78364c] | 2010 | echo "$ac_t""yes" 1>&6 |
---|
| 2011 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory" |
---|
[dc32d42] | 2012 | else |
---|
| 2013 | echo "$ac_t""no" 1>&6 |
---|
[64c6d1] | 2014 | { echo "configure: error: can not build factory without factory directory" 1>&2; exit 1; } |
---|
[dc32d42] | 2015 | fi |
---|
[6afd7c] | 2016 | else |
---|
| 2017 | echo "$ac_t""no" 1>&6 |
---|
| 2018 | fi |
---|
| 2019 | |
---|
| 2020 | echo $ac_n "checking whether to configure and build libfac lib""... $ac_c" 1>&6 |
---|
[43bcc5] | 2021 | echo "configure:2022: checking whether to configure and build libfac lib" >&5 |
---|
[6afd7c] | 2022 | if test "$enable_libfac" != yes && test "$enable_libfac" != no; then |
---|
[64c6d1] | 2023 | if test "$with_libfac" != no && test "$ac_libfac_ok" != yes && \ |
---|
| 2024 | test -d libfac && \ |
---|
| 2025 | (test "$ac_factory_ok" = yes || test "$enable_factory" = yes); then |
---|
[6afd7c] | 2026 | enable_libfac=yes |
---|
[64c6d1] | 2027 | echo "$ac_t""yes" 1>&6 |
---|
| 2028 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac" |
---|
| 2029 | ac_configure_args="$ac_configure_args --enable-libfac" |
---|
[6afd7c] | 2030 | else |
---|
| 2031 | enable_libfac=no |
---|
[64c6d1] | 2032 | echo "$ac_t""no" 1>&6 |
---|
| 2033 | fi |
---|
| 2034 | elif test "$enable_libfac" = yes; then |
---|
| 2035 | if test ! -d libfac; then |
---|
| 2036 | echo "$ac_t""no" 1>&6 |
---|
| 2037 | { echo "configure: error: can not build libfac without libfac directory" 1>&2; exit 1; } |
---|
[6afd7c] | 2038 | fi |
---|
[dc32d42] | 2039 | if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then |
---|
[64c6d1] | 2040 | echo "$ac_t""yes" 1>&6 |
---|
| 2041 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac" |
---|
[dc32d42] | 2042 | else |
---|
| 2043 | echo "$ac_t""no" 1>&6 |
---|
[64c6d1] | 2044 | { echo "configure: error: Can not build libfac without factory" 1>&2; exit 1; } |
---|
[dc32d42] | 2045 | fi |
---|
[6afd7c] | 2046 | else |
---|
| 2047 | echo "$ac_t""no" 1>&6 |
---|
| 2048 | fi |
---|
| 2049 | |
---|
[64c6d1] | 2050 | echo $ac_n "checking whether to configure and build sgroup lib""... $ac_c" 1>&6 |
---|
[43bcc5] | 2051 | echo "configure:2052: checking whether to configure and build sgroup lib" >&5 |
---|
[64c6d1] | 2052 | if test "$enable_sgroup" != yes && test "$enable_sgroup" != no; then |
---|
| 2053 | if test "$with_sgroup" != no && test "$ac_sgroup_ok" != yes && \ |
---|
| 2054 | test -d sgroup && \ |
---|
| 2055 | (test "$ac_MP_ok" = yes || test "$enable_MP" = yes); then |
---|
[a04715] | 2056 | enable_sgroup=yes |
---|
[64c6d1] | 2057 | echo "$ac_t""yes" 1>&6 |
---|
| 2058 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup" |
---|
| 2059 | ac_configure_args="$ac_configure_args --enable-sgroup" |
---|
[a04715] | 2060 | else |
---|
| 2061 | enable_sgroup=no |
---|
[64c6d1] | 2062 | echo "$ac_t""no" 1>&6 |
---|
| 2063 | fi |
---|
| 2064 | elif test "$enable_sgroup" = yes; then |
---|
| 2065 | if test ! -d sgroup; then |
---|
| 2066 | echo "$ac_t""no" 1>&6 |
---|
| 2067 | { echo "configure: error: can not build sgroup without sgroup directory" 1>&2; exit 1; } |
---|
| 2068 | fi |
---|
| 2069 | if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then |
---|
| 2070 | echo "$ac_t""yes" 1>&6 |
---|
| 2071 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup" |
---|
| 2072 | else |
---|
| 2073 | echo "$ac_t""no" 1>&6 |
---|
| 2074 | { echo "configure: error: Can not build sgroup without MP" 1>&2; exit 1; } |
---|
[a04715] | 2075 | fi |
---|
| 2076 | else |
---|
| 2077 | echo "$ac_t""no" 1>&6 |
---|
| 2078 | fi |
---|
| 2079 | |
---|
[6afd7c] | 2080 | echo $ac_n "checking whether to configure and build Singular""... $ac_c" 1>&6 |
---|
[43bcc5] | 2081 | echo "configure:2082: checking whether to configure and build Singular" >&5 |
---|
[6afd7c] | 2082 | if test "$enable_Singular" != yes && test "$enable_Singular" != no; then |
---|
[64c6d1] | 2083 | if test "$with_Singular" != no && test -d Singular; then |
---|
[6afd7c] | 2084 | enable_Singular=yes |
---|
[64c6d1] | 2085 | echo "$ac_t""yes" 1>&6 |
---|
| 2086 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular" |
---|
| 2087 | ac_configure_args="$ac_configure_args --enable-Singular" |
---|
[6afd7c] | 2088 | else |
---|
| 2089 | enable_Singular=no |
---|
[64c6d1] | 2090 | echo "$ac_t""no" 1>&6 |
---|
| 2091 | fi |
---|
| 2092 | elif test "$enable_Singular" = yes; then |
---|
| 2093 | if test -d Singular; then |
---|
| 2094 | echo "$ac_t""yes" 1>&6 |
---|
| 2095 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular" |
---|
| 2096 | else |
---|
| 2097 | echo "$ac_t""no" 1>&6 |
---|
| 2098 | { echo "configure: error: can not build Singular without Singular directory" 1>&2; exit 1; } |
---|
[6afd7c] | 2099 | fi |
---|
| 2100 | else |
---|
| 2101 | echo "$ac_t""no" 1>&6 |
---|
| 2102 | fi |
---|
| 2103 | |
---|
| 2104 | |
---|
[9bc556] | 2105 | echo $ac_n "checking which apint package to use""... $ac_c" 1>&6 |
---|
[43bcc5] | 2106 | echo "configure:2107: checking which apint package to use" >&5 |
---|
[64c6d1] | 2107 | if test "$with_apint" = gmp; then |
---|
| 2108 | if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then |
---|
| 2109 | echo "$ac_t""gmp" 1>&6 |
---|
| 2110 | else |
---|
| 2111 | echo "$ac_t""none" 1>&6 |
---|
| 2112 | { echo "configure: error: can not use with gmp without finding or building it" 1>&2; exit 1; } |
---|
| 2113 | fi |
---|
| 2114 | elif test "$with_apint" = smallgmp; then |
---|
| 2115 | if test "$ac_smallgmp_ok" = yes || test "$enable_smallgmp" = yes; then |
---|
| 2116 | echo "$ac_t""smallgmp" 1>&6 |
---|
| 2117 | else |
---|
| 2118 | echo "$ac_t""none" 1>&6 |
---|
| 2119 | { echo "configure: error: can not use with smallgmp without finding or building it" 1>&2; exit 1; } |
---|
| 2120 | fi |
---|
| 2121 | elif test "$ac_gmp_ok" = yes || test "$enable_gmp"; then |
---|
| 2122 | echo "$ac_t""gmp" 1>&6 |
---|
| 2123 | ac_configure_args="$ac_configure_args --with-apint=gmp" |
---|
[9bc556] | 2124 | else |
---|
[64c6d1] | 2125 | echo "$ac_t""smallgmp" 1>&6 |
---|
| 2126 | ac_configure_args="$ac_configure_args --with-apint=smallgmp" |
---|
| 2127 | fi |
---|
[6afd7c] | 2128 | |
---|
[dc32d42] | 2129 | echo $ac_n "checking whether to use with MP""... $ac_c" 1>&6 |
---|
[43bcc5] | 2130 | echo "configure:2131: checking whether to use with MP" >&5 |
---|
[64c6d1] | 2131 | if test "$with_MP" = yes; then |
---|
[dc32d42] | 2132 | if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then |
---|
[64c6d1] | 2133 | echo "$ac_t""yes" 1>&6 |
---|
[6afd7c] | 2134 | else |
---|
[64c6d1] | 2135 | echo "$ac_t""none" 1>&6 |
---|
| 2136 | { echo "configure: error: can not use with MP without finding or building it" 1>&2; exit 1; } |
---|
[6afd7c] | 2137 | fi |
---|
[64c6d1] | 2138 | elif test "$with_MP" = no; then |
---|
| 2139 | echo "$ac_t""no" 1>&6 |
---|
| 2140 | elif test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then |
---|
[6afd7c] | 2141 | echo "$ac_t""yes" 1>&6 |
---|
[64c6d1] | 2142 | ac_configure_args="$ac_configure_args --with-MP" |
---|
[6afd7c] | 2143 | else |
---|
| 2144 | echo "$ac_t""no" 1>&6 |
---|
[64c6d1] | 2145 | ac_configure_args="$ac_configure_args --without-MP" |
---|
[78364c] | 2146 | fi |
---|
| 2147 | |
---|
[dc32d42] | 2148 | echo $ac_n "checking whether to use with factory""... $ac_c" 1>&6 |
---|
[43bcc5] | 2149 | echo "configure:2150: checking whether to use with factory" >&5 |
---|
[64c6d1] | 2150 | if test "$with_factory" = yes; then |
---|
[dc32d42] | 2151 | if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then |
---|
[64c6d1] | 2152 | echo "$ac_t""yes" 1>&6 |
---|
[6afd7c] | 2153 | else |
---|
[64c6d1] | 2154 | echo "$ac_t""none" 1>&6 |
---|
| 2155 | { echo "configure: error: can not use with factory without finding or building it" 1>&2; exit 1; } |
---|
[6afd7c] | 2156 | fi |
---|
[64c6d1] | 2157 | elif test "$with_factory" = no; then |
---|
| 2158 | echo "$ac_t""no" 1>&6 |
---|
| 2159 | elif test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then |
---|
[6afd7c] | 2160 | echo "$ac_t""yes" 1>&6 |
---|
[64c6d1] | 2161 | ac_configure_args="$ac_configure_args --with-factory" |
---|
[6afd7c] | 2162 | else |
---|
| 2163 | echo "$ac_t""no" 1>&6 |
---|
[64c6d1] | 2164 | ac_configure_args="$ac_configure_args --without-factory" |
---|
[6afd7c] | 2165 | fi |
---|
[64c6d1] | 2166 | |
---|
[dc32d42] | 2167 | echo $ac_n "checking whether to use with libfac""... $ac_c" 1>&6 |
---|
[43bcc5] | 2168 | echo "configure:2169: checking whether to use with libfac" >&5 |
---|
[64c6d1] | 2169 | if test "$with_libfac" = yes; then |
---|
[dc32d42] | 2170 | if test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then |
---|
[64c6d1] | 2171 | echo "$ac_t""yes" 1>&6 |
---|
[6afd7c] | 2172 | else |
---|
[64c6d1] | 2173 | echo "$ac_t""none" 1>&6 |
---|
| 2174 | { echo "configure: error: can not use with libfac without finding or building it" 1>&2; exit 1; } |
---|
[6afd7c] | 2175 | fi |
---|
[64c6d1] | 2176 | elif test "$with_libfac" = no; then |
---|
| 2177 | echo "$ac_t""no" 1>&6 |
---|
| 2178 | elif test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then |
---|
[6afd7c] | 2179 | echo "$ac_t""yes" 1>&6 |
---|
[64c6d1] | 2180 | ac_configure_args="$ac_configure_args --with-libfac" |
---|
[6afd7c] | 2181 | else |
---|
| 2182 | echo "$ac_t""no" 1>&6 |
---|
[64c6d1] | 2183 | ac_configure_args="$ac_configure_args --without-libfac" |
---|
[6afd7c] | 2184 | fi |
---|
| 2185 | |
---|
[518752] | 2186 | echo $ac_n "checking whether to use mtrack""... $ac_c" 1>&6 |
---|
[43bcc5] | 2187 | echo "configure:2188: checking whether to use mtrack" >&5 |
---|
[518752] | 2188 | if test -d mpr && test "$ac_cv_singuname" = ix86-Linux; then |
---|
| 2189 | echo "$ac_t""yes" 1>&6 |
---|
| 2190 | ac_configure_args="$ac_configure_args --with-mtrack" |
---|
| 2191 | OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" mpr/Makefile" |
---|
| 2192 | BUILD_SUBDIRS="$BUILD_SUBDIRS mpr" |
---|
| 2193 | fi |
---|
| 2194 | |
---|
[dc32d42] | 2195 | echo $ac_n "checking whether to use with Singular""... $ac_c" 1>&6 |
---|
[43bcc5] | 2196 | echo "configure:2197: checking whether to use with Singular" >&5 |
---|
[dc32d42] | 2197 | if test "$with_Singular" != no && test "$with_Singular" != yes; then |
---|
[6afd7c] | 2198 | if test "$enable_Singular" = yes; then |
---|
[dc32d42] | 2199 | with_Singular=yes |
---|
[6afd7c] | 2200 | else |
---|
| 2201 | with_Singular=no |
---|
| 2202 | fi |
---|
[dc32d42] | 2203 | ac_configure_args="$ac_configure_args --with-Singular=$with_Singular" |
---|
[6afd7c] | 2204 | fi |
---|
[dc32d42] | 2205 | |
---|
[6afd7c] | 2206 | if test "$with_Singular" != no; then |
---|
| 2207 | echo "$ac_t""yes" 1>&6 |
---|
| 2208 | else |
---|
| 2209 | echo "$ac_t""no" 1>&6 |
---|
| 2210 | fi |
---|
| 2211 | |
---|
[9bc556] | 2212 | |
---|
[8c4748] | 2213 | SUBDIRS="" |
---|
[a6a8b76] | 2214 | if test -d doc; then |
---|
| 2215 | SUBDIRS="$SUBDIRS doc" |
---|
| 2216 | fi |
---|
[78364c] | 2217 | if test -d smallgmp; then |
---|
[8c4748] | 2218 | SUBDIRS="$SUBDIRS smallgmp" |
---|
[6afd7c] | 2219 | fi |
---|
[64c6d1] | 2220 | if test -d gmp; then |
---|
[8c4748] | 2221 | SUBDIRS="$SUBDIRS gmp" |
---|
[64c6d1] | 2222 | fi |
---|
[6afd7c] | 2223 | if test -d MP; then |
---|
| 2224 | SUBDIRS="$SUBDIRS MP" |
---|
| 2225 | fi |
---|
| 2226 | if test -d factory; then |
---|
| 2227 | SUBDIRS="$SUBDIRS factory" |
---|
| 2228 | fi |
---|
| 2229 | if test -d libfac; then |
---|
| 2230 | SUBDIRS="$SUBDIRS libfac" |
---|
| 2231 | fi |
---|
[85c8634] | 2232 | if test -d rpm; then |
---|
| 2233 | SUBDIRS="$SUBDIRS rpm" |
---|
| 2234 | fi |
---|
[aa76e7] | 2235 | if test -d mpr; then |
---|
| 2236 | SUBDIRS="$SUBDIRS mpr" |
---|
| 2237 | fi |
---|
[518752] | 2238 | if test -d Singular; then |
---|
| 2239 | SUBDIRS="$SUBDIRS Singular" |
---|
| 2240 | fi |
---|
[460c1e1] | 2241 | if test -d emacs; then |
---|
| 2242 | SUBDIRS="$SUBDIRS emacs" |
---|
[6b27cb] | 2243 | BUILD_SUBDIRS="$BUILD_SUBDIRS emacs" |
---|
| 2244 | fi |
---|
| 2245 | if test -d Texi2html; then |
---|
| 2246 | SUBDIRS="$SUBDIRS Texi2html" |
---|
| 2247 | BUILD_SUBDIRS="$BUILD_SUBDIRS Texi2html" |
---|
[460c1e1] | 2248 | fi |
---|
[518752] | 2249 | if test -d sgroup; then |
---|
| 2250 | SUBDIRS="$SUBDIRS sgroup" |
---|
| 2251 | fi |
---|
[6afd7c] | 2252 | |
---|
| 2253 | |
---|
| 2254 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
---|
[43bcc5] | 2255 | echo "configure:2256: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
---|
[2189fb] | 2256 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
---|
[6afd7c] | 2257 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
---|
| 2258 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2259 | else |
---|
| 2260 | cat > conftestmake <<\EOF |
---|
| 2261 | all: |
---|
| 2262 | @echo 'ac_maketemp="${MAKE}"' |
---|
| 2263 | EOF |
---|
| 2264 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
| 2265 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
---|
| 2266 | if test -n "$ac_maketemp"; then |
---|
| 2267 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
| 2268 | else |
---|
| 2269 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
| 2270 | fi |
---|
| 2271 | rm -f conftestmake |
---|
| 2272 | fi |
---|
| 2273 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
| 2274 | echo "$ac_t""yes" 1>&6 |
---|
| 2275 | SET_MAKE= |
---|
| 2276 | else |
---|
| 2277 | echo "$ac_t""no" 1>&6 |
---|
| 2278 | SET_MAKE="MAKE=${MAKE-make}" |
---|
| 2279 | fi |
---|
| 2280 | |
---|
| 2281 | |
---|
| 2282 | |
---|
[6b27cb] | 2283 | |
---|
[6afd7c] | 2284 | subdirs="$CONFIG_SUBDIRS" |
---|
| 2285 | |
---|
| 2286 | |
---|
[8c4748] | 2287 | trap '' 1 2 15 |
---|
[6afd7c] | 2288 | cat > confcache <<\EOF |
---|
| 2289 | # This file is a shell script that caches the results of configure |
---|
| 2290 | # tests run on this system so they can be shared between configure |
---|
| 2291 | # scripts and configure runs. It is not useful on other systems. |
---|
| 2292 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
| 2293 | # |
---|
| 2294 | # By default, configure uses ./config.cache as the cache file, |
---|
| 2295 | # creating it if it does not exist already. You can give configure |
---|
| 2296 | # the --cache-file=FILE option to use a different cache file; that is |
---|
| 2297 | # what configure does when it calls configure scripts in |
---|
| 2298 | # subdirectories, so they share the cache. |
---|
| 2299 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
| 2300 | # config.status only pays attention to the cache file if you give it the |
---|
| 2301 | # --recheck option to rerun configure. |
---|
| 2302 | # |
---|
| 2303 | EOF |
---|
[2189fb] | 2304 | # The following way of writing the cache mishandles newlines in values, |
---|
| 2305 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 2306 | # So, don't put newlines in cache variables' values. |
---|
[6afd7c] | 2307 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 2308 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 2309 | (set) 2>&1 | |
---|
[43bcc5] | 2310 | case `(ac_space=' '; set) 2>&1` in |
---|
[2189fb] | 2311 | *ac_space=\ *) |
---|
| 2312 | # `set' does not quote correctly, so add quotes (double-quote substitution |
---|
| 2313 | # turns \\\\ into \\, and sed turns \\ into \). |
---|
| 2314 | sed -n \ |
---|
| 2315 | -e "s/'/'\\\\''/g" \ |
---|
| 2316 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
---|
| 2317 | ;; |
---|
| 2318 | *) |
---|
| 2319 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 2320 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
---|
| 2321 | ;; |
---|
| 2322 | esac >> confcache |
---|
[6afd7c] | 2323 | if cmp -s $cache_file confcache; then |
---|
| 2324 | : |
---|
| 2325 | else |
---|
| 2326 | if test -w $cache_file; then |
---|
| 2327 | echo "updating cache $cache_file" |
---|
| 2328 | cat confcache > $cache_file |
---|
| 2329 | else |
---|
| 2330 | echo "not updating unwritable cache $cache_file" |
---|
| 2331 | fi |
---|
| 2332 | fi |
---|
| 2333 | rm -f confcache |
---|
| 2334 | |
---|
| 2335 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
| 2336 | |
---|
| 2337 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 2338 | # Let make expand exec_prefix. |
---|
| 2339 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 2340 | |
---|
| 2341 | # Any assignment to VPATH causes Sun make to only execute |
---|
| 2342 | # the first set of double-colon rules, so remove it if not needed. |
---|
| 2343 | # If there is a colon in the path, we need to keep it. |
---|
| 2344 | if test "x$srcdir" = x.; then |
---|
| 2345 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
---|
| 2346 | fi |
---|
| 2347 | |
---|
| 2348 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
---|
| 2349 | |
---|
| 2350 | # Transform confdefs.h into DEFS. |
---|
| 2351 | # Protect against shell expansion while executing Makefile rules. |
---|
| 2352 | # Protect against Makefile macro expansion. |
---|
| 2353 | cat > conftest.defs <<\EOF |
---|
| 2354 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g |
---|
| 2355 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g |
---|
| 2356 | s%\[%\\&%g |
---|
| 2357 | s%\]%\\&%g |
---|
| 2358 | s%\$%$$%g |
---|
| 2359 | EOF |
---|
| 2360 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` |
---|
| 2361 | rm -f conftest.defs |
---|
| 2362 | |
---|
| 2363 | |
---|
| 2364 | # Without the "./", some shells look in PATH for config.status. |
---|
| 2365 | : ${CONFIG_STATUS=./config.status} |
---|
| 2366 | |
---|
| 2367 | echo creating $CONFIG_STATUS |
---|
| 2368 | rm -f $CONFIG_STATUS |
---|
| 2369 | cat > $CONFIG_STATUS <<EOF |
---|
| 2370 | #! /bin/sh |
---|
| 2371 | # Generated automatically by configure. |
---|
| 2372 | # Run this file to recreate the current configuration. |
---|
| 2373 | # This directory was configured as follows, |
---|
| 2374 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
| 2375 | # |
---|
| 2376 | # $0 $ac_configure_args |
---|
| 2377 | # |
---|
| 2378 | # Compiler output produced by configure, useful for debugging |
---|
| 2379 | # configure, is in ./config.log if it exists. |
---|
| 2380 | |
---|
| 2381 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
---|
| 2382 | for ac_option |
---|
| 2383 | do |
---|
| 2384 | case "\$ac_option" in |
---|
| 2385 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 2386 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
---|
| 2387 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
---|
| 2388 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
---|
[43bcc5] | 2389 | echo "$CONFIG_STATUS generated by autoconf version 2.12" |
---|
[6afd7c] | 2390 | exit 0 ;; |
---|
| 2391 | -help | --help | --hel | --he | --h) |
---|
| 2392 | echo "\$ac_cs_usage"; exit 0 ;; |
---|
| 2393 | *) echo "\$ac_cs_usage"; exit 1 ;; |
---|
| 2394 | esac |
---|
| 2395 | done |
---|
| 2396 | |
---|
| 2397 | ac_given_srcdir=$srcdir |
---|
[354f3b] | 2398 | ac_given_INSTALL="$INSTALL" |
---|
[6afd7c] | 2399 | |
---|
[8c4748] | 2400 | trap 'rm -fr `echo "${OUTPUT_MAKEFILES}" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
---|
[6afd7c] | 2401 | EOF |
---|
| 2402 | cat >> $CONFIG_STATUS <<EOF |
---|
| 2403 | |
---|
| 2404 | # Protect against being on the right side of a sed subst in config.status. |
---|
| 2405 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
---|
| 2406 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
---|
| 2407 | $ac_vpsub |
---|
| 2408 | $extrasub |
---|
| 2409 | s%@CFLAGS@%$CFLAGS%g |
---|
| 2410 | s%@CPPFLAGS@%$CPPFLAGS%g |
---|
| 2411 | s%@CXXFLAGS@%$CXXFLAGS%g |
---|
| 2412 | s%@DEFS@%$DEFS%g |
---|
| 2413 | s%@LDFLAGS@%$LDFLAGS%g |
---|
| 2414 | s%@LIBS@%$LIBS%g |
---|
| 2415 | s%@exec_prefix@%$exec_prefix%g |
---|
| 2416 | s%@prefix@%$prefix%g |
---|
| 2417 | s%@program_transform_name@%$program_transform_name%g |
---|
| 2418 | s%@bindir@%$bindir%g |
---|
| 2419 | s%@sbindir@%$sbindir%g |
---|
| 2420 | s%@libexecdir@%$libexecdir%g |
---|
| 2421 | s%@datadir@%$datadir%g |
---|
| 2422 | s%@sysconfdir@%$sysconfdir%g |
---|
| 2423 | s%@sharedstatedir@%$sharedstatedir%g |
---|
| 2424 | s%@localstatedir@%$localstatedir%g |
---|
| 2425 | s%@libdir@%$libdir%g |
---|
| 2426 | s%@includedir@%$includedir%g |
---|
| 2427 | s%@oldincludedir@%$oldincludedir%g |
---|
| 2428 | s%@infodir@%$infodir%g |
---|
| 2429 | s%@mandir@%$mandir%g |
---|
[fe40293] | 2430 | s%@SINGUNAME@%$SINGUNAME%g |
---|
[55c796] | 2431 | s%@SINGULAR_VERSION@%$SINGULAR_VERSION%g |
---|
[f36635] | 2432 | s%@VERSION_DATE@%$VERSION_DATE%g |
---|
| 2433 | s%@SINGULAR_SHORT_VERSION@%$SINGULAR_SHORT_VERSION%g |
---|
[6afd7c] | 2434 | s%@CC@%$CC%g |
---|
| 2435 | s%@CPP@%$CPP%g |
---|
[354f3b] | 2436 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
---|
| 2437 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
---|
[3d8259] | 2438 | s%@PERL@%$PERL%g |
---|
[f36635] | 2439 | s%@LATEX2HTML@%$LATEX2HTML%g |
---|
[fe40293] | 2440 | s%@LN_S@%$LN_S%g |
---|
[f36635] | 2441 | s%@TEXI2HTML@%$TEXI2HTML%g |
---|
| 2442 | s%@TEXI2HTML_OPTS@%$TEXI2HTML_OPTS%g |
---|
[9bc556] | 2443 | s%@SINGULAR@%$SINGULAR%g |
---|
[f36635] | 2444 | s%@TMP_DIR@%$TMP_DIR%g |
---|
[dc3a44] | 2445 | s%@PERL5@%$PERL5%g |
---|
[f36635] | 2446 | s%@TEXI2DVI@%$TEXI2DVI%g |
---|
| 2447 | s%@MAKEINFO@%$MAKEINFO%g |
---|
| 2448 | s%@TEXINDEX@%$TEXINDEX%g |
---|
[6afd7c] | 2449 | s%@SET_MAKE@%$SET_MAKE%g |
---|
| 2450 | s%@SUBDIRS@%$SUBDIRS%g |
---|
[6b27cb] | 2451 | s%@BUILD_SUBDIRS@%$BUILD_SUBDIRS%g |
---|
[6afd7c] | 2452 | s%@CONFIG_SUBDIRS@%$CONFIG_SUBDIRS%g |
---|
| 2453 | s%@subdirs@%$subdirs%g |
---|
| 2454 | |
---|
| 2455 | CEOF |
---|
| 2456 | EOF |
---|
[2189fb] | 2457 | |
---|
| 2458 | cat >> $CONFIG_STATUS <<\EOF |
---|
| 2459 | |
---|
| 2460 | # Split the substitutions into bite-sized pieces for seds with |
---|
| 2461 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
| 2462 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
---|
| 2463 | ac_file=1 # Number of current file. |
---|
| 2464 | ac_beg=1 # First line for current file. |
---|
| 2465 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
---|
| 2466 | ac_more_lines=: |
---|
| 2467 | ac_sed_cmds="" |
---|
| 2468 | while $ac_more_lines; do |
---|
| 2469 | if test $ac_beg -gt 1; then |
---|
| 2470 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
| 2471 | else |
---|
| 2472 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
| 2473 | fi |
---|
| 2474 | if test ! -s conftest.s$ac_file; then |
---|
| 2475 | ac_more_lines=false |
---|
| 2476 | rm -f conftest.s$ac_file |
---|
| 2477 | else |
---|
| 2478 | if test -z "$ac_sed_cmds"; then |
---|
| 2479 | ac_sed_cmds="sed -f conftest.s$ac_file" |
---|
| 2480 | else |
---|
| 2481 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
---|
| 2482 | fi |
---|
| 2483 | ac_file=`expr $ac_file + 1` |
---|
| 2484 | ac_beg=$ac_end |
---|
| 2485 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
---|
| 2486 | fi |
---|
| 2487 | done |
---|
| 2488 | if test -z "$ac_sed_cmds"; then |
---|
| 2489 | ac_sed_cmds=cat |
---|
| 2490 | fi |
---|
| 2491 | EOF |
---|
| 2492 | |
---|
[6afd7c] | 2493 | cat >> $CONFIG_STATUS <<EOF |
---|
| 2494 | |
---|
[8c4748] | 2495 | CONFIG_FILES=\${CONFIG_FILES-"${OUTPUT_MAKEFILES}"} |
---|
[6afd7c] | 2496 | EOF |
---|
| 2497 | cat >> $CONFIG_STATUS <<\EOF |
---|
| 2498 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
---|
[2189fb] | 2499 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
[6afd7c] | 2500 | case "$ac_file" in |
---|
[2189fb] | 2501 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
[6afd7c] | 2502 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
| 2503 | *) ac_file_in="${ac_file}.in" ;; |
---|
| 2504 | esac |
---|
| 2505 | |
---|
[2189fb] | 2506 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
---|
[6afd7c] | 2507 | |
---|
| 2508 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
| 2509 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
| 2510 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
| 2511 | # The file is in a subdirectory. |
---|
| 2512 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
| 2513 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
---|
| 2514 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 2515 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
| 2516 | else |
---|
| 2517 | ac_dir_suffix= ac_dots= |
---|
| 2518 | fi |
---|
| 2519 | |
---|
| 2520 | case "$ac_given_srcdir" in |
---|
| 2521 | .) srcdir=. |
---|
| 2522 | if test -z "$ac_dots"; then top_srcdir=. |
---|
| 2523 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
---|
| 2524 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
---|
| 2525 | *) # Relative path. |
---|
| 2526 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
---|
| 2527 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
---|
| 2528 | esac |
---|
| 2529 | |
---|
[354f3b] | 2530 | case "$ac_given_INSTALL" in |
---|
| 2531 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
| 2532 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
| 2533 | esac |
---|
[2189fb] | 2534 | |
---|
[6afd7c] | 2535 | echo creating "$ac_file" |
---|
| 2536 | rm -f "$ac_file" |
---|
| 2537 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
---|
| 2538 | case "$ac_file" in |
---|
| 2539 | *Makefile*) ac_comsub="1i\\ |
---|
| 2540 | # $configure_input" ;; |
---|
| 2541 | *) ac_comsub= ;; |
---|
| 2542 | esac |
---|
[2189fb] | 2543 | |
---|
| 2544 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
[6afd7c] | 2545 | sed -e "$ac_comsub |
---|
| 2546 | s%@configure_input@%$configure_input%g |
---|
| 2547 | s%@srcdir@%$srcdir%g |
---|
| 2548 | s%@top_srcdir@%$top_srcdir%g |
---|
[354f3b] | 2549 | s%@INSTALL@%$INSTALL%g |
---|
[2189fb] | 2550 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
---|
[6afd7c] | 2551 | fi; done |
---|
[2189fb] | 2552 | rm -f conftest.s* |
---|
[6afd7c] | 2553 | |
---|
[2189fb] | 2554 | EOF |
---|
| 2555 | cat >> $CONFIG_STATUS <<EOF |
---|
[6afd7c] | 2556 | |
---|
[2189fb] | 2557 | EOF |
---|
| 2558 | cat >> $CONFIG_STATUS <<\EOF |
---|
[6afd7c] | 2559 | |
---|
| 2560 | exit 0 |
---|
| 2561 | EOF |
---|
| 2562 | chmod +x $CONFIG_STATUS |
---|
| 2563 | rm -fr confdefs* $ac_clean_files |
---|
| 2564 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
---|
| 2565 | |
---|
| 2566 | if test "$no_recursion" != yes; then |
---|
| 2567 | |
---|
| 2568 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
---|
| 2569 | ac_sub_configure_args= |
---|
| 2570 | ac_prev= |
---|
| 2571 | for ac_arg in $ac_configure_args; do |
---|
| 2572 | if test -n "$ac_prev"; then |
---|
| 2573 | ac_prev= |
---|
| 2574 | continue |
---|
| 2575 | fi |
---|
| 2576 | case "$ac_arg" in |
---|
| 2577 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 2578 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 2579 | ac_prev=cache_file ;; |
---|
| 2580 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 2581 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 2582 | ;; |
---|
| 2583 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 2584 | ac_prev=srcdir ;; |
---|
| 2585 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 2586 | ;; |
---|
| 2587 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
---|
| 2588 | esac |
---|
| 2589 | done |
---|
| 2590 | |
---|
| 2591 | for ac_config_dir in $CONFIG_SUBDIRS; do |
---|
| 2592 | |
---|
| 2593 | # Do not complain, so a configure script can configure whichever |
---|
| 2594 | # parts of a large source tree are present. |
---|
| 2595 | if test ! -d $srcdir/$ac_config_dir; then |
---|
| 2596 | continue |
---|
| 2597 | fi |
---|
| 2598 | |
---|
| 2599 | echo configuring in $ac_config_dir |
---|
| 2600 | |
---|
| 2601 | case "$srcdir" in |
---|
| 2602 | .) ;; |
---|
| 2603 | *) |
---|
| 2604 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
---|
| 2605 | else |
---|
| 2606 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } |
---|
| 2607 | fi |
---|
| 2608 | ;; |
---|
| 2609 | esac |
---|
| 2610 | |
---|
| 2611 | ac_popdir=`pwd` |
---|
| 2612 | cd $ac_config_dir |
---|
| 2613 | |
---|
[2189fb] | 2614 | # A "../" for each directory in /$ac_config_dir. |
---|
| 2615 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` |
---|
| 2616 | |
---|
[6afd7c] | 2617 | case "$srcdir" in |
---|
| 2618 | .) # No --srcdir option. We are building in place. |
---|
| 2619 | ac_sub_srcdir=$srcdir ;; |
---|
| 2620 | /*) # Absolute path. |
---|
| 2621 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; |
---|
| 2622 | *) # Relative path. |
---|
[2189fb] | 2623 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
---|
[6afd7c] | 2624 | esac |
---|
| 2625 | |
---|
| 2626 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
| 2627 | if test -f $ac_sub_srcdir/configure; then |
---|
| 2628 | ac_sub_configure=$ac_sub_srcdir/configure |
---|
| 2629 | elif test -f $ac_sub_srcdir/configure.in; then |
---|
| 2630 | ac_sub_configure=$ac_configure |
---|
| 2631 | else |
---|
| 2632 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
---|
| 2633 | ac_sub_configure= |
---|
| 2634 | fi |
---|
| 2635 | |
---|
| 2636 | # The recursion is here. |
---|
| 2637 | if test -n "$ac_sub_configure"; then |
---|
| 2638 | |
---|
| 2639 | # Make the cache file name correct relative to the subdirectory. |
---|
| 2640 | case "$cache_file" in |
---|
| 2641 | /*) ac_sub_cache_file=$cache_file ;; |
---|
| 2642 | *) # Relative path. |
---|
| 2643 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
---|
| 2644 | esac |
---|
[354f3b] | 2645 | case "$ac_given_INSTALL" in |
---|
| 2646 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
| 2647 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
| 2648 | esac |
---|
[6afd7c] | 2649 | |
---|
| 2650 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
---|
| 2651 | # The eval makes quoting arguments work. |
---|
| 2652 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
---|
| 2653 | then : |
---|
| 2654 | else |
---|
| 2655 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } |
---|
| 2656 | fi |
---|
| 2657 | fi |
---|
| 2658 | |
---|
| 2659 | cd $ac_popdir |
---|
| 2660 | done |
---|
| 2661 | fi |
---|
[dc32d42] | 2662 | |
---|