[6afd7c] | 1 | #! /bin/sh |
---|
| 2 | |
---|
| 3 | # Guess values for system-dependent variables and create Makefiles. |
---|
| 4 | # Generated automatically using autoconf version 2.9 |
---|
| 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 |
---|
| 16 | \ |
---|
| 17 | --enable-PACKAGE configure and build PACKAGE |
---|
| 18 | --disable-PACKAGE do not configure and build PACKAGE |
---|
| 19 | --with-PACKAGE use PACKAGE, provide dependent functionality |
---|
| 20 | --without-PACKAGE do not use PACKAGE, disable dependent functionality |
---|
| 21 | where PACKAGE can be: |
---|
| 22 | gmp GNU multiple precision library" |
---|
| 23 | ac_help="$ac_help |
---|
| 24 | \ |
---|
| 25 | MP Multi Protocol library" |
---|
| 26 | ac_help="$ac_help |
---|
| 27 | \ |
---|
| 28 | factory polynomial factorization library" |
---|
| 29 | ac_help="$ac_help |
---|
| 30 | \ |
---|
| 31 | libfac char set and modp poly factorization library" |
---|
| 32 | ac_help="$ac_help |
---|
| 33 | \ |
---|
| 34 | Singular, CAS for commutative algebra" |
---|
| 35 | |
---|
| 36 | # Initialize some variables set by options. |
---|
| 37 | # The variables have the same names as the options, with |
---|
| 38 | # dashes changed to underlines. |
---|
| 39 | build=NONE |
---|
| 40 | cache_file=./config.cache |
---|
| 41 | exec_prefix=NONE |
---|
| 42 | host=NONE |
---|
| 43 | no_create= |
---|
| 44 | nonopt=NONE |
---|
| 45 | no_recursion= |
---|
| 46 | prefix=NONE |
---|
| 47 | program_prefix=NONE |
---|
| 48 | program_suffix=NONE |
---|
| 49 | program_transform_name=s,x,x, |
---|
| 50 | silent= |
---|
| 51 | site= |
---|
| 52 | srcdir= |
---|
| 53 | target=NONE |
---|
| 54 | verbose= |
---|
| 55 | x_includes=NONE |
---|
| 56 | x_libraries=NONE |
---|
| 57 | bindir='${exec_prefix}/bin' |
---|
| 58 | sbindir='${exec_prefix}/sbin' |
---|
| 59 | libexecdir='${exec_prefix}/libexec' |
---|
| 60 | datadir='${prefix}/share' |
---|
| 61 | sysconfdir='${prefix}/etc' |
---|
| 62 | sharedstatedir='${prefix}/com' |
---|
| 63 | localstatedir='${prefix}/var' |
---|
| 64 | libdir='${exec_prefix}/lib' |
---|
| 65 | includedir='${prefix}/include' |
---|
| 66 | oldincludedir='/usr/include' |
---|
| 67 | infodir='${prefix}/info' |
---|
| 68 | mandir='${prefix}/man' |
---|
| 69 | |
---|
| 70 | # Initialize some other variables. |
---|
| 71 | subdirs= |
---|
| 72 | MFLAGS= MAKEFLAGS= |
---|
| 73 | |
---|
| 74 | ac_prev= |
---|
| 75 | for ac_option |
---|
| 76 | do |
---|
| 77 | |
---|
| 78 | # If the previous option needs an argument, assign it. |
---|
| 79 | if test -n "$ac_prev"; then |
---|
| 80 | eval "$ac_prev=\$ac_option" |
---|
| 81 | ac_prev= |
---|
| 82 | continue |
---|
| 83 | fi |
---|
| 84 | |
---|
| 85 | case "$ac_option" in |
---|
| 86 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
| 87 | *) ac_optarg= ;; |
---|
| 88 | esac |
---|
| 89 | |
---|
| 90 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
| 91 | |
---|
| 92 | case "$ac_option" in |
---|
| 93 | |
---|
| 94 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
| 95 | ac_prev=bindir ;; |
---|
| 96 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
| 97 | bindir="$ac_optarg" ;; |
---|
| 98 | |
---|
| 99 | -build | --build | --buil | --bui | --bu) |
---|
| 100 | ac_prev=build ;; |
---|
| 101 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
| 102 | build="$ac_optarg" ;; |
---|
| 103 | |
---|
| 104 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 105 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 106 | ac_prev=cache_file ;; |
---|
| 107 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 108 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 109 | cache_file="$ac_optarg" ;; |
---|
| 110 | |
---|
| 111 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
| 112 | ac_prev=datadir ;; |
---|
| 113 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
| 114 | | --da=*) |
---|
| 115 | datadir="$ac_optarg" ;; |
---|
| 116 | |
---|
| 117 | -disable-* | --disable-*) |
---|
| 118 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
---|
| 119 | # Reject names that are not valid shell variable names. |
---|
| 120 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
| 121 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
| 122 | fi |
---|
| 123 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
| 124 | eval "enable_${ac_feature}=no" ;; |
---|
| 125 | |
---|
| 126 | -enable-* | --enable-*) |
---|
| 127 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
---|
| 128 | # Reject names that are not valid shell variable names. |
---|
| 129 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
| 130 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
| 131 | fi |
---|
| 132 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
| 133 | case "$ac_option" in |
---|
| 134 | *=*) ;; |
---|
| 135 | *) ac_optarg=yes ;; |
---|
| 136 | esac |
---|
| 137 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
---|
| 138 | |
---|
| 139 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
| 140 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
| 141 | | --exec | --exe | --ex) |
---|
| 142 | ac_prev=exec_prefix ;; |
---|
| 143 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
| 144 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
| 145 | | --exec=* | --exe=* | --ex=*) |
---|
| 146 | exec_prefix="$ac_optarg" ;; |
---|
| 147 | |
---|
| 148 | -gas | --gas | --ga | --g) |
---|
| 149 | # Obsolete; use --with-gas. |
---|
| 150 | with_gas=yes ;; |
---|
| 151 | |
---|
| 152 | -help | --help | --hel | --he) |
---|
| 153 | # Omit some internal or obsolete options to make the list less imposing. |
---|
| 154 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
| 155 | cat << EOF |
---|
| 156 | Usage: configure [options] [host] |
---|
| 157 | Options: [defaults in brackets after descriptions] |
---|
| 158 | Configuration: |
---|
| 159 | --cache-file=FILE cache test results in FILE |
---|
| 160 | --help print this message |
---|
| 161 | --no-create do not create output files |
---|
| 162 | --quiet, --silent do not print \`checking...' messages |
---|
| 163 | --version print the version of autoconf that created configure |
---|
| 164 | Directory and file names: |
---|
| 165 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
| 166 | [$ac_default_prefix] |
---|
| 167 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
| 168 | [same as prefix] |
---|
| 169 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
---|
| 170 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
---|
| 171 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
---|
| 172 | --datadir=DIR read-only architecture-independent data in DIR |
---|
| 173 | [PREFIX/share] |
---|
| 174 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
---|
| 175 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
---|
| 176 | [PREFIX/com] |
---|
| 177 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
---|
| 178 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
---|
| 179 | --includedir=DIR C header files in DIR [PREFIX/include] |
---|
| 180 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
---|
| 181 | --infodir=DIR info documentation in DIR [PREFIX/info] |
---|
| 182 | --mandir=DIR man documentation in DIR [PREFIX/man] |
---|
| 183 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
---|
| 184 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
| 185 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
| 186 | --program-transform-name=PROGRAM |
---|
| 187 | run sed PROGRAM on installed program names |
---|
| 188 | EOF |
---|
| 189 | cat << EOF |
---|
| 190 | Host type: |
---|
| 191 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
---|
| 192 | --host=HOST configure for HOST [guessed] |
---|
| 193 | --target=TARGET configure for TARGET [TARGET=HOST] |
---|
| 194 | Features and packages: |
---|
| 195 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
| 196 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
| 197 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
| 198 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
| 199 | --x-includes=DIR X include files are in DIR |
---|
| 200 | --x-libraries=DIR X library files are in DIR |
---|
| 201 | EOF |
---|
| 202 | if test -n "$ac_help"; then |
---|
| 203 | echo "--enable and --with options recognized:$ac_help" |
---|
| 204 | fi |
---|
| 205 | exit 0 ;; |
---|
| 206 | |
---|
| 207 | -host | --host | --hos | --ho) |
---|
| 208 | ac_prev=host ;; |
---|
| 209 | -host=* | --host=* | --hos=* | --ho=*) |
---|
| 210 | host="$ac_optarg" ;; |
---|
| 211 | |
---|
| 212 | -includedir | --includedir | --includedi | --included | --include \ |
---|
| 213 | | --includ | --inclu | --incl | --inc) |
---|
| 214 | ac_prev=includedir ;; |
---|
| 215 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
| 216 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
| 217 | includedir="$ac_optarg" ;; |
---|
| 218 | |
---|
| 219 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
| 220 | ac_prev=infodir ;; |
---|
| 221 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
| 222 | infodir="$ac_optarg" ;; |
---|
| 223 | |
---|
| 224 | -libdir | --libdir | --libdi | --libd) |
---|
| 225 | ac_prev=libdir ;; |
---|
| 226 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
| 227 | libdir="$ac_optarg" ;; |
---|
| 228 | |
---|
| 229 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
| 230 | | --libexe | --libex | --libe) |
---|
| 231 | ac_prev=libexecdir ;; |
---|
| 232 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
| 233 | | --libexe=* | --libex=* | --libe=*) |
---|
| 234 | libexecdir="$ac_optarg" ;; |
---|
| 235 | |
---|
| 236 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
| 237 | | --localstate | --localstat | --localsta | --localst \ |
---|
| 238 | | --locals | --local | --loca | --loc | --lo) |
---|
| 239 | ac_prev=localstatedir ;; |
---|
| 240 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
| 241 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
| 242 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
| 243 | localstatedir="$ac_optarg" ;; |
---|
| 244 | |
---|
| 245 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
| 246 | ac_prev=mandir ;; |
---|
| 247 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
| 248 | mandir="$ac_optarg" ;; |
---|
| 249 | |
---|
| 250 | -nfp | --nfp | --nf) |
---|
| 251 | # Obsolete; use --without-fp. |
---|
| 252 | with_fp=no ;; |
---|
| 253 | |
---|
| 254 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 255 | | --no-cr | --no-c) |
---|
| 256 | no_create=yes ;; |
---|
| 257 | |
---|
| 258 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 259 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
| 260 | no_recursion=yes ;; |
---|
| 261 | |
---|
| 262 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
| 263 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
| 264 | | --oldin | --oldi | --old | --ol | --o) |
---|
| 265 | ac_prev=oldincludedir ;; |
---|
| 266 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
| 267 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
| 268 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
| 269 | oldincludedir="$ac_optarg" ;; |
---|
| 270 | |
---|
| 271 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
| 272 | ac_prev=prefix ;; |
---|
| 273 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
| 274 | prefix="$ac_optarg" ;; |
---|
| 275 | |
---|
| 276 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
| 277 | | --program-pre | --program-pr | --program-p) |
---|
| 278 | ac_prev=program_prefix ;; |
---|
| 279 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
| 280 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
| 281 | program_prefix="$ac_optarg" ;; |
---|
| 282 | |
---|
| 283 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
| 284 | | --program-suf | --program-su | --program-s) |
---|
| 285 | ac_prev=program_suffix ;; |
---|
| 286 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
| 287 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
| 288 | program_suffix="$ac_optarg" ;; |
---|
| 289 | |
---|
| 290 | -program-transform-name | --program-transform-name \ |
---|
| 291 | | --program-transform-nam | --program-transform-na \ |
---|
| 292 | | --program-transform-n | --program-transform- \ |
---|
| 293 | | --program-transform | --program-transfor \ |
---|
| 294 | | --program-transfo | --program-transf \ |
---|
| 295 | | --program-trans | --program-tran \ |
---|
| 296 | | --progr-tra | --program-tr | --program-t) |
---|
| 297 | ac_prev=program_transform_name ;; |
---|
| 298 | -program-transform-name=* | --program-transform-name=* \ |
---|
| 299 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
| 300 | | --program-transform-n=* | --program-transform-=* \ |
---|
| 301 | | --program-transform=* | --program-transfor=* \ |
---|
| 302 | | --program-transfo=* | --program-transf=* \ |
---|
| 303 | | --program-trans=* | --program-tran=* \ |
---|
| 304 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
| 305 | program_transform_name="$ac_optarg" ;; |
---|
| 306 | |
---|
| 307 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 308 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 309 | silent=yes ;; |
---|
| 310 | |
---|
| 311 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
| 312 | ac_prev=sbindir ;; |
---|
| 313 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
| 314 | | --sbi=* | --sb=*) |
---|
| 315 | sbindir="$ac_optarg" ;; |
---|
| 316 | |
---|
| 317 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
| 318 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
| 319 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
| 320 | | --sha | --sh) |
---|
| 321 | ac_prev=sharedstatedir ;; |
---|
| 322 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
| 323 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
| 324 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
| 325 | | --sha=* | --sh=*) |
---|
| 326 | sharedstatedir="$ac_optarg" ;; |
---|
| 327 | |
---|
| 328 | -site | --site | --sit) |
---|
| 329 | ac_prev=site ;; |
---|
| 330 | -site=* | --site=* | --sit=*) |
---|
| 331 | site="$ac_optarg" ;; |
---|
| 332 | |
---|
| 333 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 334 | ac_prev=srcdir ;; |
---|
| 335 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 336 | srcdir="$ac_optarg" ;; |
---|
| 337 | |
---|
| 338 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
| 339 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
| 340 | ac_prev=sysconfdir ;; |
---|
| 341 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
| 342 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
| 343 | sysconfdir="$ac_optarg" ;; |
---|
| 344 | |
---|
| 345 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
| 346 | ac_prev=target ;; |
---|
| 347 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
| 348 | target="$ac_optarg" ;; |
---|
| 349 | |
---|
| 350 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
| 351 | verbose=yes ;; |
---|
| 352 | |
---|
| 353 | -version | --version | --versio | --versi | --vers) |
---|
| 354 | echo "configure generated by autoconf version 2.9" |
---|
| 355 | exit 0 ;; |
---|
| 356 | |
---|
| 357 | -with-* | --with-*) |
---|
| 358 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
---|
| 359 | # Reject names that are not valid shell variable names. |
---|
| 360 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
| 361 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
| 362 | fi |
---|
| 363 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
| 364 | case "$ac_option" in |
---|
| 365 | *=*) ;; |
---|
| 366 | *) ac_optarg=yes ;; |
---|
| 367 | esac |
---|
| 368 | eval "with_${ac_package}='$ac_optarg'" ;; |
---|
| 369 | |
---|
| 370 | -without-* | --without-*) |
---|
| 371 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
---|
| 372 | # Reject names that are not valid shell variable names. |
---|
| 373 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
| 374 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
| 375 | fi |
---|
| 376 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
| 377 | eval "with_${ac_package}=no" ;; |
---|
| 378 | |
---|
| 379 | --x) |
---|
| 380 | # Obsolete; use --with-x. |
---|
| 381 | with_x=yes ;; |
---|
| 382 | |
---|
| 383 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
| 384 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
| 385 | ac_prev=x_includes ;; |
---|
| 386 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
| 387 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
| 388 | x_includes="$ac_optarg" ;; |
---|
| 389 | |
---|
| 390 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
| 391 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
| 392 | ac_prev=x_libraries ;; |
---|
| 393 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
| 394 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
| 395 | x_libraries="$ac_optarg" ;; |
---|
| 396 | |
---|
| 397 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
---|
| 398 | ;; |
---|
| 399 | |
---|
| 400 | *) |
---|
| 401 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
---|
| 402 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
---|
| 403 | fi |
---|
| 404 | if test "x$nonopt" != xNONE; then |
---|
| 405 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
---|
| 406 | fi |
---|
| 407 | nonopt="$ac_option" |
---|
| 408 | ;; |
---|
| 409 | |
---|
| 410 | esac |
---|
| 411 | done |
---|
| 412 | |
---|
| 413 | if test -n "$ac_prev"; then |
---|
| 414 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
---|
| 415 | fi |
---|
| 416 | |
---|
| 417 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
| 418 | |
---|
| 419 | # File descriptor usage: |
---|
| 420 | # 0 standard input |
---|
| 421 | # 1 file creation |
---|
| 422 | # 2 errors and warnings |
---|
| 423 | # 3 some systems may open it to /dev/tty |
---|
| 424 | # 4 used on the Kubota Titan |
---|
| 425 | # 6 checking for... messages and results |
---|
| 426 | # 5 compiler messages saved in config.log |
---|
| 427 | if test "$silent" = yes; then |
---|
| 428 | exec 6>/dev/null |
---|
| 429 | else |
---|
| 430 | exec 6>&1 |
---|
| 431 | fi |
---|
| 432 | exec 5>./config.log |
---|
| 433 | |
---|
| 434 | echo "\ |
---|
| 435 | This file contains any messages produced by compilers while |
---|
| 436 | running configure, to aid debugging if configure makes a mistake. |
---|
| 437 | " 1>&5 |
---|
| 438 | |
---|
| 439 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 440 | # Also quote any args containing shell metacharacters. |
---|
| 441 | ac_configure_args= |
---|
| 442 | for ac_arg |
---|
| 443 | do |
---|
| 444 | case "$ac_arg" in |
---|
| 445 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 446 | | --no-cr | --no-c) ;; |
---|
| 447 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 448 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
---|
| 449 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
---|
| 450 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
| 451 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
---|
| 452 | esac |
---|
| 453 | done |
---|
| 454 | |
---|
| 455 | # NLS nuisances. |
---|
| 456 | # Only set LANG and LC_ALL to C if already set. |
---|
| 457 | # These must not be set unconditionally because not all systems understand |
---|
| 458 | # e.g. LANG=C (notably SCO). |
---|
| 459 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
---|
| 460 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
---|
| 461 | |
---|
| 462 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 463 | rm -rf conftest* confdefs.h |
---|
| 464 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
| 465 | echo > confdefs.h |
---|
| 466 | |
---|
| 467 | # A filename unique to this package, relative to the directory that |
---|
| 468 | # configure is in, which we can look for to find out if srcdir is correct. |
---|
| 469 | ac_unique_file=Singular/matpol.h |
---|
| 470 | |
---|
| 471 | # Find the source files, if location was not specified. |
---|
| 472 | if test -z "$srcdir"; then |
---|
| 473 | ac_srcdir_defaulted=yes |
---|
| 474 | # Try the directory containing this script, then its parent. |
---|
| 475 | ac_prog=$0 |
---|
| 476 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
---|
| 477 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
---|
| 478 | srcdir=$ac_confdir |
---|
| 479 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 480 | srcdir=.. |
---|
| 481 | fi |
---|
| 482 | else |
---|
| 483 | ac_srcdir_defaulted=no |
---|
| 484 | fi |
---|
| 485 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 486 | if test "$ac_srcdir_defaulted" = yes; then |
---|
| 487 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
---|
| 488 | else |
---|
| 489 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
---|
| 490 | fi |
---|
| 491 | fi |
---|
| 492 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
---|
| 493 | |
---|
| 494 | # Prefer explicitly selected file to automatically selected ones. |
---|
| 495 | if test -z "$CONFIG_SITE"; then |
---|
| 496 | if test "x$prefix" != xNONE; then |
---|
| 497 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
| 498 | else |
---|
| 499 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
| 500 | fi |
---|
| 501 | fi |
---|
| 502 | for ac_site_file in $CONFIG_SITE; do |
---|
| 503 | if test -r "$ac_site_file"; then |
---|
| 504 | echo "loading site script $ac_site_file" |
---|
| 505 | . "$ac_site_file" |
---|
| 506 | fi |
---|
| 507 | done |
---|
| 508 | |
---|
| 509 | if test -r "$cache_file"; then |
---|
| 510 | echo "loading cache $cache_file" |
---|
| 511 | . $cache_file |
---|
| 512 | else |
---|
| 513 | echo "creating cache $cache_file" |
---|
| 514 | > $cache_file |
---|
| 515 | fi |
---|
| 516 | |
---|
| 517 | ac_ext=c |
---|
| 518 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 519 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 520 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 521 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 522 | |
---|
| 523 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
| 524 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
---|
| 525 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
| 526 | ac_n= ac_c=' |
---|
| 527 | ' ac_t=' ' |
---|
| 528 | else |
---|
| 529 | ac_n=-n ac_c= ac_t= |
---|
| 530 | fi |
---|
| 531 | else |
---|
| 532 | ac_n= ac_c='\c' ac_t= |
---|
| 533 | fi |
---|
| 534 | |
---|
| 535 | |
---|
| 536 | |
---|
| 537 | |
---|
| 538 | ac_aux_dir= |
---|
| 539 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
| 540 | if test -f $ac_dir/install-sh; then |
---|
| 541 | ac_aux_dir=$ac_dir |
---|
| 542 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
| 543 | break |
---|
| 544 | elif test -f $ac_dir/install.sh; then |
---|
| 545 | ac_aux_dir=$ac_dir |
---|
| 546 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
| 547 | break |
---|
| 548 | fi |
---|
| 549 | done |
---|
| 550 | if test -z "$ac_aux_dir"; then |
---|
| 551 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
---|
| 552 | fi |
---|
| 553 | ac_config_guess=$ac_aux_dir/config.guess |
---|
| 554 | ac_config_sub=$ac_aux_dir/config.sub |
---|
| 555 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
---|
| 556 | |
---|
| 557 | |
---|
| 558 | # Do some error checking and defaulting for the host and target type. |
---|
| 559 | # The inputs are: |
---|
| 560 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT |
---|
| 561 | # |
---|
| 562 | # The rules are: |
---|
| 563 | # 1. You are not allowed to specify --host, --target, and nonopt at the |
---|
| 564 | # same time. |
---|
| 565 | # 2. Host defaults to nonopt. |
---|
| 566 | # 3. If nonopt is not specified, then host defaults to the current host, |
---|
| 567 | # as determined by config.guess. |
---|
| 568 | # 4. Target and build default to nonopt. |
---|
| 569 | # 5. If nonopt is not specified, then target and build default to host. |
---|
| 570 | |
---|
| 571 | # The aliases save the names the user supplied, while $host etc. |
---|
| 572 | # will get canonicalized. |
---|
| 573 | case $host---$target---$nonopt in |
---|
| 574 | NONE---*---* | *---NONE---* | *---*---NONE) ;; |
---|
| 575 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; |
---|
| 576 | esac |
---|
| 577 | |
---|
| 578 | |
---|
| 579 | # Make sure we can run config.sub. |
---|
| 580 | if $ac_config_sub sun4 >/dev/null 2>&1; then : |
---|
| 581 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
---|
| 582 | fi |
---|
| 583 | |
---|
| 584 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
---|
| 585 | |
---|
| 586 | host_alias=$host |
---|
| 587 | case "$host_alias" in |
---|
| 588 | NONE) |
---|
| 589 | case $nonopt in |
---|
| 590 | NONE) |
---|
| 591 | if host_alias=`$ac_config_guess`; then : |
---|
| 592 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
---|
| 593 | fi ;; |
---|
| 594 | *) host_alias=$nonopt ;; |
---|
| 595 | esac ;; |
---|
| 596 | esac |
---|
| 597 | |
---|
| 598 | host=`$ac_config_sub $host_alias` |
---|
| 599 | host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'` |
---|
| 600 | host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'` |
---|
| 601 | host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'` |
---|
| 602 | echo "$ac_t""$host" 1>&6 |
---|
| 603 | |
---|
| 604 | echo $ac_n "checking target system type""... $ac_c" 1>&6 |
---|
| 605 | |
---|
| 606 | target_alias=$target |
---|
| 607 | case "$target_alias" in |
---|
| 608 | NONE) |
---|
| 609 | case $nonopt in |
---|
| 610 | NONE) target_alias=$host_alias ;; |
---|
| 611 | *) target_alias=$nonopt ;; |
---|
| 612 | esac ;; |
---|
| 613 | esac |
---|
| 614 | |
---|
| 615 | target=`$ac_config_sub $target_alias` |
---|
| 616 | target_cpu=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'` |
---|
| 617 | target_vendor=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'` |
---|
| 618 | target_os=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'` |
---|
| 619 | echo "$ac_t""$target" 1>&6 |
---|
| 620 | |
---|
| 621 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
---|
| 622 | |
---|
| 623 | build_alias=$build |
---|
| 624 | case "$build_alias" in |
---|
| 625 | NONE) |
---|
| 626 | case $nonopt in |
---|
| 627 | NONE) build_alias=$host_alias ;; |
---|
| 628 | *) build_alias=$nonopt ;; |
---|
| 629 | esac ;; |
---|
| 630 | esac |
---|
| 631 | |
---|
| 632 | build=`$ac_config_sub $build_alias` |
---|
| 633 | build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'` |
---|
| 634 | build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'` |
---|
| 635 | build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'` |
---|
| 636 | echo "$ac_t""$build" 1>&6 |
---|
| 637 | |
---|
| 638 | test "$host_alias" != "$target_alias" && |
---|
| 639 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
| 640 | NONENONEs,x,x, && |
---|
| 641 | program_prefix=${target_alias}- |
---|
| 642 | |
---|
| 643 | |
---|
| 644 | |
---|
| 645 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 646 | set dummy gcc; ac_word=$2 |
---|
| 647 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
| 648 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
| 649 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 650 | else |
---|
| 651 | if test -n "$CC"; then |
---|
| 652 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 653 | else |
---|
| 654 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 655 | for ac_dir in $PATH; do |
---|
| 656 | test -z "$ac_dir" && ac_dir=. |
---|
| 657 | if test -f $ac_dir/$ac_word; then |
---|
| 658 | ac_cv_prog_CC="gcc" |
---|
| 659 | break |
---|
| 660 | fi |
---|
| 661 | done |
---|
| 662 | IFS="$ac_save_ifs" |
---|
| 663 | fi |
---|
| 664 | fi |
---|
| 665 | CC="$ac_cv_prog_CC" |
---|
| 666 | if test -n "$CC"; then |
---|
| 667 | echo "$ac_t""$CC" 1>&6 |
---|
| 668 | else |
---|
| 669 | echo "$ac_t""no" 1>&6 |
---|
| 670 | fi |
---|
| 671 | |
---|
| 672 | if test -z "$CC"; then |
---|
| 673 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 674 | set dummy cc; ac_word=$2 |
---|
| 675 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
| 676 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
| 677 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 678 | else |
---|
| 679 | if test -n "$CC"; then |
---|
| 680 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 681 | else |
---|
| 682 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 683 | ac_prog_rejected=no |
---|
| 684 | for ac_dir in $PATH; do |
---|
| 685 | test -z "$ac_dir" && ac_dir=. |
---|
| 686 | if test -f $ac_dir/$ac_word; then |
---|
| 687 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
---|
| 688 | ac_prog_rejected=yes |
---|
| 689 | continue |
---|
| 690 | fi |
---|
| 691 | ac_cv_prog_CC="cc" |
---|
| 692 | break |
---|
| 693 | fi |
---|
| 694 | done |
---|
| 695 | IFS="$ac_save_ifs" |
---|
| 696 | if test $ac_prog_rejected = yes; then |
---|
| 697 | # We found a bogon in the path, so make sure we never use it. |
---|
| 698 | set dummy $ac_cv_prog_CC |
---|
| 699 | shift |
---|
| 700 | if test $# -gt 0; then |
---|
| 701 | # We chose a different compiler from the bogus one. |
---|
| 702 | # However, it has the same basename, so the bogon will be chosen |
---|
| 703 | # first if we set CC to just the basename; use the full file name. |
---|
| 704 | shift |
---|
| 705 | set dummy "$ac_dir/$ac_word" "$@" |
---|
| 706 | shift |
---|
| 707 | ac_cv_prog_CC="$@" |
---|
| 708 | fi |
---|
| 709 | fi |
---|
| 710 | fi |
---|
| 711 | fi |
---|
| 712 | CC="$ac_cv_prog_CC" |
---|
| 713 | if test -n "$CC"; then |
---|
| 714 | echo "$ac_t""$CC" 1>&6 |
---|
| 715 | else |
---|
| 716 | echo "$ac_t""no" 1>&6 |
---|
| 717 | fi |
---|
| 718 | |
---|
| 719 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
| 720 | fi |
---|
| 721 | |
---|
| 722 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
| 723 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
| 724 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 725 | else |
---|
| 726 | cat > conftest.c <<EOF |
---|
| 727 | #ifdef __GNUC__ |
---|
| 728 | yes; |
---|
| 729 | #endif |
---|
| 730 | EOF |
---|
| 731 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
| 732 | ac_cv_prog_gcc=yes |
---|
| 733 | else |
---|
| 734 | ac_cv_prog_gcc=no |
---|
| 735 | fi |
---|
| 736 | fi |
---|
| 737 | |
---|
| 738 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
| 739 | if test $ac_cv_prog_gcc = yes; then |
---|
| 740 | GCC=yes |
---|
| 741 | if test "${CFLAGS+set}" != set; then |
---|
| 742 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
| 743 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then |
---|
| 744 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 745 | else |
---|
| 746 | echo 'void f(){}' > conftest.c |
---|
| 747 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
| 748 | ac_cv_prog_gcc_g=yes |
---|
| 749 | else |
---|
| 750 | ac_cv_prog_gcc_g=no |
---|
| 751 | fi |
---|
| 752 | rm -f conftest* |
---|
| 753 | |
---|
| 754 | fi |
---|
| 755 | |
---|
| 756 | echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6 |
---|
| 757 | if test $ac_cv_prog_gcc_g = yes; then |
---|
| 758 | CFLAGS="-g -O" |
---|
| 759 | else |
---|
| 760 | CFLAGS="-O" |
---|
| 761 | fi |
---|
| 762 | fi |
---|
| 763 | else |
---|
| 764 | GCC= |
---|
| 765 | test "${CFLAGS+set}" = set || CFLAGS="-g" |
---|
| 766 | fi |
---|
| 767 | |
---|
| 768 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
---|
| 769 | # On Suns, sometimes $CPP names a directory. |
---|
| 770 | if test -n "$CPP" && test -d "$CPP"; then |
---|
| 771 | CPP= |
---|
| 772 | fi |
---|
| 773 | if test -z "$CPP"; then |
---|
| 774 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
---|
| 775 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 776 | else |
---|
| 777 | # This must be in double quotes, not single quotes, because CPP may get |
---|
| 778 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
---|
| 779 | CPP="${CC-cc} -E" |
---|
| 780 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 781 | # not just through cpp. |
---|
| 782 | cat > conftest.$ac_ext <<EOF |
---|
| 783 | #line 784 "configure" |
---|
| 784 | #include "confdefs.h" |
---|
| 785 | #include <assert.h> |
---|
| 786 | Syntax Error |
---|
| 787 | EOF |
---|
| 788 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
| 789 | { (eval echo configure:790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
| 790 | ac_err=`grep -v '^ *+' conftest.out` |
---|
| 791 | if test -z "$ac_err"; then |
---|
| 792 | : |
---|
| 793 | else |
---|
| 794 | echo "$ac_err" >&5 |
---|
| 795 | rm -rf conftest* |
---|
| 796 | CPP="${CC-cc} -E -traditional-cpp" |
---|
| 797 | cat > conftest.$ac_ext <<EOF |
---|
| 798 | #line 799 "configure" |
---|
| 799 | #include "confdefs.h" |
---|
| 800 | #include <assert.h> |
---|
| 801 | Syntax Error |
---|
| 802 | EOF |
---|
| 803 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
| 804 | { (eval echo configure:805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
| 805 | ac_err=`grep -v '^ *+' conftest.out` |
---|
| 806 | if test -z "$ac_err"; then |
---|
| 807 | : |
---|
| 808 | else |
---|
| 809 | echo "$ac_err" >&5 |
---|
| 810 | rm -rf conftest* |
---|
| 811 | CPP=/lib/cpp |
---|
| 812 | fi |
---|
| 813 | rm -f conftest* |
---|
| 814 | fi |
---|
| 815 | rm -f conftest* |
---|
| 816 | ac_cv_prog_CPP="$CPP" |
---|
| 817 | fi |
---|
| 818 | CPP="$ac_cv_prog_CPP" |
---|
| 819 | else |
---|
| 820 | ac_cv_prog_CPP="$CPP" |
---|
| 821 | fi |
---|
| 822 | echo "$ac_t""$CPP" 1>&6 |
---|
| 823 | |
---|
| 824 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
---|
| 825 | cat > conftest.$ac_ext <<EOF |
---|
| 826 | #line 827 "configure" |
---|
| 827 | #include "confdefs.h" |
---|
| 828 | #ifdef _AIX |
---|
| 829 | yes |
---|
| 830 | #endif |
---|
| 831 | |
---|
| 832 | EOF |
---|
| 833 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 834 | egrep "yes" >/dev/null 2>&1; then |
---|
| 835 | rm -rf conftest* |
---|
| 836 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
---|
| 837 | #define _ALL_SOURCE 1 |
---|
| 838 | EOF |
---|
| 839 | |
---|
| 840 | else |
---|
| 841 | rm -rf conftest* |
---|
| 842 | echo "$ac_t""no" 1>&6 |
---|
| 843 | fi |
---|
| 844 | rm -f conftest* |
---|
| 845 | |
---|
| 846 | |
---|
| 847 | |
---|
| 848 | if test "$libdir" = '${exec_prefix}/lib'; then |
---|
| 849 | if test "x$exec_prefix" = xNONE; then |
---|
| 850 | if test "x$prefix" = xNONE; then |
---|
| 851 | LDFLAGS="-L${ac_default_prefix}/lib ${LDFLAGS}" |
---|
| 852 | else |
---|
| 853 | LDFLAGS="-L${prefix}/lib ${LDFLAGS}" |
---|
| 854 | fi |
---|
| 855 | else |
---|
| 856 | LDFLAGS="-L${exec_prefix}/lib ${LDFLAGS}" |
---|
| 857 | fi |
---|
| 858 | else |
---|
| 859 | LDFLAGS="-L${libdir} ${LDFLAGS}" |
---|
| 860 | fi |
---|
| 861 | |
---|
| 862 | if test "$includedir" = '${prefix}/include'; then |
---|
| 863 | if test "x$prefix" = xNONE; then |
---|
| 864 | CPPFLAGS="-I${ac_default_prefix}/include ${CPPFLAGS}" |
---|
| 865 | else |
---|
| 866 | CPPFLAGS="-I${prefix}/include ${CPPFLAGS}" |
---|
| 867 | fi |
---|
| 868 | else |
---|
| 869 | CPPFLAGS="-I${includedir} ${CPPFLAGS}" |
---|
| 870 | fi |
---|
| 871 | |
---|
| 872 | if test "x$prefix" = xNONE; then |
---|
| 873 | ac_configure_args="$ac_configure_args --prefix=$ac_default_prefix" |
---|
| 874 | fi |
---|
| 875 | |
---|
| 876 | |
---|
| 877 | |
---|
| 878 | echo $ac_n "checking for -lm""... $ac_c" 1>&6 |
---|
| 879 | ac_lib_var=`echo m_atof | tr '.-/+' '___p'` |
---|
| 880 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
| 881 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 882 | else |
---|
| 883 | ac_save_LIBS="$LIBS" |
---|
| 884 | LIBS="-lm $LIBS" |
---|
| 885 | cat > conftest.$ac_ext <<EOF |
---|
| 886 | #line 887 "configure" |
---|
| 887 | #include "confdefs.h" |
---|
| 888 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 889 | char atof(); |
---|
| 890 | |
---|
| 891 | int main() { return 0; } |
---|
| 892 | int t() { |
---|
| 893 | atof() |
---|
| 894 | ; return 0; } |
---|
| 895 | EOF |
---|
| 896 | if { (eval echo configure:897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
| 897 | rm -rf conftest* |
---|
| 898 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
| 899 | else |
---|
| 900 | rm -rf conftest* |
---|
| 901 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
| 902 | fi |
---|
| 903 | rm -f conftest* |
---|
| 904 | LIBS="$ac_save_LIBS" |
---|
| 905 | |
---|
| 906 | fi |
---|
| 907 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
| 908 | echo "$ac_t""yes" 1>&6 |
---|
| 909 | ac_tr_lib=HAVE_LIB`echo m | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
| 910 | cat >> confdefs.h <<EOF |
---|
| 911 | #define $ac_tr_lib 1 |
---|
| 912 | EOF |
---|
| 913 | |
---|
| 914 | LIBS="-lm $LIBS" |
---|
| 915 | |
---|
| 916 | else |
---|
| 917 | echo "$ac_t""no" 1>&6 |
---|
| 918 | fi |
---|
| 919 | |
---|
| 920 | echo $ac_n "checking for -lgmp""... $ac_c" 1>&6 |
---|
| 921 | ac_lib_var=`echo gmp_mpz_init | tr '.-/+' '___p'` |
---|
| 922 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
| 923 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 924 | else |
---|
| 925 | ac_save_LIBS="$LIBS" |
---|
| 926 | LIBS="-lgmp $LIBS" |
---|
| 927 | cat > conftest.$ac_ext <<EOF |
---|
| 928 | #line 929 "configure" |
---|
| 929 | #include "confdefs.h" |
---|
| 930 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 931 | char mpz_init(); |
---|
| 932 | |
---|
| 933 | int main() { return 0; } |
---|
| 934 | int t() { |
---|
| 935 | mpz_init() |
---|
| 936 | ; return 0; } |
---|
| 937 | EOF |
---|
| 938 | if { (eval echo configure:939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
| 939 | rm -rf conftest* |
---|
| 940 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
| 941 | else |
---|
| 942 | rm -rf conftest* |
---|
| 943 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
| 944 | fi |
---|
| 945 | rm -f conftest* |
---|
| 946 | LIBS="$ac_save_LIBS" |
---|
| 947 | |
---|
| 948 | fi |
---|
| 949 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
| 950 | echo "$ac_t""yes" 1>&6 |
---|
| 951 | ac_tr_lib=HAVE_LIB`echo gmp | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
| 952 | cat >> confdefs.h <<EOF |
---|
| 953 | #define $ac_tr_lib 1 |
---|
| 954 | EOF |
---|
| 955 | |
---|
| 956 | LIBS="-lgmp $LIBS" |
---|
| 957 | |
---|
| 958 | else |
---|
| 959 | echo "$ac_t""no" 1>&6 |
---|
| 960 | fi |
---|
| 961 | |
---|
| 962 | echo $ac_n "checking for -lMP""... $ac_c" 1>&6 |
---|
| 963 | ac_lib_var=`echo MP_IMP_PutGmpInt | tr '.-/+' '___p'` |
---|
| 964 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
| 965 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 966 | else |
---|
| 967 | ac_save_LIBS="$LIBS" |
---|
| 968 | LIBS="-lMP $LIBS" |
---|
| 969 | cat > conftest.$ac_ext <<EOF |
---|
| 970 | #line 971 "configure" |
---|
| 971 | #include "confdefs.h" |
---|
| 972 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 973 | char IMP_PutGmpInt(); |
---|
| 974 | |
---|
| 975 | int main() { return 0; } |
---|
| 976 | int t() { |
---|
| 977 | IMP_PutGmpInt() |
---|
| 978 | ; return 0; } |
---|
| 979 | EOF |
---|
| 980 | if { (eval echo configure:981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
| 981 | rm -rf conftest* |
---|
| 982 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
| 983 | else |
---|
| 984 | rm -rf conftest* |
---|
| 985 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
| 986 | fi |
---|
| 987 | rm -f conftest* |
---|
| 988 | LIBS="$ac_save_LIBS" |
---|
| 989 | |
---|
| 990 | fi |
---|
| 991 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
| 992 | echo "$ac_t""yes" 1>&6 |
---|
| 993 | ac_tr_lib=HAVE_LIB`echo MP | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
| 994 | cat >> confdefs.h <<EOF |
---|
| 995 | #define $ac_tr_lib 1 |
---|
| 996 | EOF |
---|
| 997 | |
---|
| 998 | LIBS="-lMP $LIBS" |
---|
| 999 | |
---|
| 1000 | else |
---|
| 1001 | echo "$ac_t""no" 1>&6 |
---|
| 1002 | fi |
---|
| 1003 | |
---|
| 1004 | echo $ac_n "checking for -lMPT""... $ac_c" 1>&6 |
---|
| 1005 | ac_lib_var=`echo MPT_MPT_GetTree | tr '.-/+' '___p'` |
---|
| 1006 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
| 1007 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1008 | else |
---|
| 1009 | ac_save_LIBS="$LIBS" |
---|
| 1010 | LIBS="-lMPT $LIBS" |
---|
| 1011 | cat > conftest.$ac_ext <<EOF |
---|
| 1012 | #line 1013 "configure" |
---|
| 1013 | #include "confdefs.h" |
---|
| 1014 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 1015 | char MPT_GetTree(); |
---|
| 1016 | |
---|
| 1017 | int main() { return 0; } |
---|
| 1018 | int t() { |
---|
| 1019 | MPT_GetTree() |
---|
| 1020 | ; return 0; } |
---|
| 1021 | EOF |
---|
| 1022 | if { (eval echo configure:1023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
| 1023 | rm -rf conftest* |
---|
| 1024 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
| 1025 | else |
---|
| 1026 | rm -rf conftest* |
---|
| 1027 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
| 1028 | fi |
---|
| 1029 | rm -f conftest* |
---|
| 1030 | LIBS="$ac_save_LIBS" |
---|
| 1031 | |
---|
| 1032 | fi |
---|
| 1033 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
| 1034 | echo "$ac_t""yes" 1>&6 |
---|
| 1035 | ac_tr_lib=HAVE_LIB`echo MPT | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
| 1036 | cat >> confdefs.h <<EOF |
---|
| 1037 | #define $ac_tr_lib 1 |
---|
| 1038 | EOF |
---|
| 1039 | |
---|
| 1040 | LIBS="-lMPT $LIBS" |
---|
| 1041 | |
---|
| 1042 | else |
---|
| 1043 | echo "$ac_t""no" 1>&6 |
---|
| 1044 | fi |
---|
| 1045 | |
---|
| 1046 | echo $ac_n "checking for -lsingcf""... $ac_c" 1>&6 |
---|
[3fdf16] | 1047 | ac_lib_var=`echo singcf_atof | tr '.-/+' '___p'` |
---|
[6afd7c] | 1048 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
| 1049 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1050 | else |
---|
| 1051 | ac_save_LIBS="$LIBS" |
---|
| 1052 | LIBS="-lsingcf $LIBS" |
---|
| 1053 | cat > conftest.$ac_ext <<EOF |
---|
| 1054 | #line 1055 "configure" |
---|
| 1055 | #include "confdefs.h" |
---|
| 1056 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
[3fdf16] | 1057 | char atof(); |
---|
[6afd7c] | 1058 | |
---|
| 1059 | int main() { return 0; } |
---|
| 1060 | int t() { |
---|
[3fdf16] | 1061 | atof() |
---|
[6afd7c] | 1062 | ; return 0; } |
---|
| 1063 | EOF |
---|
| 1064 | if { (eval echo configure:1065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
| 1065 | rm -rf conftest* |
---|
| 1066 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
| 1067 | else |
---|
| 1068 | rm -rf conftest* |
---|
| 1069 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
| 1070 | fi |
---|
| 1071 | rm -f conftest* |
---|
| 1072 | LIBS="$ac_save_LIBS" |
---|
| 1073 | |
---|
| 1074 | fi |
---|
| 1075 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
| 1076 | echo "$ac_t""yes" 1>&6 |
---|
| 1077 | ac_tr_lib=HAVE_LIB`echo singcf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
| 1078 | cat >> confdefs.h <<EOF |
---|
| 1079 | #define $ac_tr_lib 1 |
---|
| 1080 | EOF |
---|
| 1081 | |
---|
| 1082 | LIBS="-lsingcf $LIBS" |
---|
| 1083 | |
---|
| 1084 | else |
---|
| 1085 | echo "$ac_t""no" 1>&6 |
---|
| 1086 | fi |
---|
| 1087 | |
---|
| 1088 | echo $ac_n "checking for -lsingfac""... $ac_c" 1>&6 |
---|
[3fdf16] | 1089 | ac_lib_var=`echo singfac_atof | tr '.-/+' '___p'` |
---|
[6afd7c] | 1090 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
| 1091 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1092 | else |
---|
| 1093 | ac_save_LIBS="$LIBS" |
---|
| 1094 | LIBS="-lsingfac $LIBS" |
---|
| 1095 | cat > conftest.$ac_ext <<EOF |
---|
| 1096 | #line 1097 "configure" |
---|
| 1097 | #include "confdefs.h" |
---|
| 1098 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
[3fdf16] | 1099 | char atof(); |
---|
[6afd7c] | 1100 | |
---|
| 1101 | int main() { return 0; } |
---|
| 1102 | int t() { |
---|
[3fdf16] | 1103 | atof() |
---|
[6afd7c] | 1104 | ; return 0; } |
---|
| 1105 | EOF |
---|
| 1106 | if { (eval echo configure:1107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
| 1107 | rm -rf conftest* |
---|
| 1108 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
| 1109 | else |
---|
| 1110 | rm -rf conftest* |
---|
| 1111 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
| 1112 | fi |
---|
| 1113 | rm -f conftest* |
---|
| 1114 | LIBS="$ac_save_LIBS" |
---|
| 1115 | |
---|
| 1116 | fi |
---|
| 1117 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
| 1118 | echo "$ac_t""yes" 1>&6 |
---|
| 1119 | ac_tr_lib=HAVE_LIB`echo singfac | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
| 1120 | cat >> confdefs.h <<EOF |
---|
| 1121 | #define $ac_tr_lib 1 |
---|
| 1122 | EOF |
---|
| 1123 | |
---|
| 1124 | LIBS="-lsingfac $LIBS" |
---|
| 1125 | |
---|
| 1126 | else |
---|
| 1127 | echo "$ac_t""no" 1>&6 |
---|
| 1128 | fi |
---|
| 1129 | |
---|
| 1130 | |
---|
| 1131 | for ac_hdr in gmp.h MP.h MPT.h factory.h factor.h |
---|
| 1132 | do |
---|
| 1133 | ac_safe=`echo "$ac_hdr" | tr './\055' '___'` |
---|
| 1134 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
| 1135 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
| 1136 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1137 | else |
---|
| 1138 | cat > conftest.$ac_ext <<EOF |
---|
| 1139 | #line 1140 "configure" |
---|
| 1140 | #include "confdefs.h" |
---|
| 1141 | #include <$ac_hdr> |
---|
| 1142 | EOF |
---|
| 1143 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
| 1144 | { (eval echo configure:1145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
| 1145 | ac_err=`grep -v '^ *+' conftest.out` |
---|
| 1146 | if test -z "$ac_err"; then |
---|
| 1147 | rm -rf conftest* |
---|
| 1148 | eval "ac_cv_header_$ac_safe=yes" |
---|
| 1149 | else |
---|
| 1150 | echo "$ac_err" >&5 |
---|
| 1151 | rm -rf conftest* |
---|
| 1152 | eval "ac_cv_header_$ac_safe=no" |
---|
| 1153 | fi |
---|
| 1154 | rm -f conftest* |
---|
| 1155 | fi |
---|
| 1156 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
| 1157 | echo "$ac_t""yes" 1>&6 |
---|
| 1158 | ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` |
---|
| 1159 | cat >> confdefs.h <<EOF |
---|
| 1160 | #define $ac_tr_hdr 1 |
---|
| 1161 | EOF |
---|
| 1162 | |
---|
| 1163 | else |
---|
| 1164 | echo "$ac_t""no" 1>&6 |
---|
| 1165 | fi |
---|
| 1166 | done |
---|
| 1167 | |
---|
| 1168 | |
---|
| 1169 | if test "$ac_cv_lib_gmp_mpz_init" = yes && \ |
---|
| 1170 | test "$ac_cv_header_gmp_h" = yes; then |
---|
| 1171 | if echo $target_os | egrep aix; then |
---|
| 1172 | cat > conftest.$ac_ext <<EOF |
---|
| 1173 | #line 1174 "configure" |
---|
| 1174 | #include "confdefs.h" |
---|
| 1175 | \ |
---|
| 1176 | #include <gmp.h> |
---|
| 1177 | #if defined(__GNU_MP_VERSION) && __GNU_MP_VERSION == 2 |
---|
| 1178 | no |
---|
| 1179 | #else |
---|
| 1180 | yes |
---|
| 1181 | #endif |
---|
| 1182 | |
---|
| 1183 | EOF |
---|
| 1184 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 1185 | egrep "yes" >/dev/null 2>&1; then |
---|
| 1186 | rm -rf conftest* |
---|
| 1187 | ac_gmp_ok=yes |
---|
| 1188 | else |
---|
| 1189 | rm -rf conftest* |
---|
| 1190 | echo "configure: warning: Found gmp lib version>2 which is broken under AIX: Can not use it" 1>&2 |
---|
| 1191 | fi |
---|
| 1192 | rm -f conftest* |
---|
| 1193 | |
---|
| 1194 | else |
---|
| 1195 | ac_gmp_ok=yes |
---|
| 1196 | fi |
---|
| 1197 | fi |
---|
| 1198 | |
---|
| 1199 | if test "$ac_cv_lib_MP_IMP_PutGmpInt" = yes && \ |
---|
| 1200 | test "$ac_cv_lib_MPT_MPT_GetTree" && \ |
---|
| 1201 | test "$ac_cv_header_MP_h" = yes && \ |
---|
| 1202 | test "$ac_cv_header_MPT_h" = yes; then |
---|
| 1203 | ac_MP_ok=yes |
---|
| 1204 | fi |
---|
| 1205 | |
---|
| 1206 | if test "$ac_cv_lib_singcf_initCanonicalForm" = yes && \ |
---|
| 1207 | test "$ac_cv_header_factory_h" = yes; then |
---|
| 1208 | ac_factory_ok=yes |
---|
| 1209 | fi |
---|
| 1210 | |
---|
| 1211 | if test "$ac_cv_lib_singfac_IrrCharSeries" = yes && \ |
---|
| 1212 | test "$ac_cv_header_factor_h" = yes; then |
---|
| 1213 | ac_libfac_ok=yes |
---|
| 1214 | fi |
---|
| 1215 | |
---|
| 1216 | |
---|
| 1217 | |
---|
| 1218 | # Check whether --enable-gmp or --disable-gmp was given. |
---|
| 1219 | if test "${enable_gmp+set}" = set; then |
---|
| 1220 | enableval="$enable_gmp" |
---|
| 1221 | : |
---|
| 1222 | fi |
---|
| 1223 | |
---|
| 1224 | # Check whether --enable-MP or --disable-MP was given. |
---|
| 1225 | if test "${enable_MP+set}" = set; then |
---|
| 1226 | enableval="$enable_MP" |
---|
| 1227 | : |
---|
| 1228 | fi |
---|
| 1229 | |
---|
| 1230 | # Check whether --enable-factory or --disable-factory was given. |
---|
| 1231 | if test "${enable_factory+set}" = set; then |
---|
| 1232 | enableval="$enable_factory" |
---|
| 1233 | : |
---|
| 1234 | fi |
---|
| 1235 | |
---|
| 1236 | # Check whether --enable-libfac or --disable-libfac was given. |
---|
| 1237 | if test "${enable_libfac+set}" = set; then |
---|
| 1238 | enableval="$enable_libfac" |
---|
| 1239 | : |
---|
| 1240 | fi |
---|
| 1241 | |
---|
| 1242 | # Check whether --enable-Singular or --disable-Singular was given. |
---|
| 1243 | if test "${enable_Singular+set}" = set; then |
---|
| 1244 | enableval="$enable_Singular" |
---|
| 1245 | : |
---|
| 1246 | fi |
---|
| 1247 | |
---|
| 1248 | |
---|
| 1249 | echo $ac_n "checking whether to configure and build gmp lib""... $ac_c" 1>&6 |
---|
| 1250 | if test "$enable_gmp" != yes && test "$enable_gmp" != no; then |
---|
| 1251 | if test "$with_gmp" != no && test "$ac_gmp_ok" != yes; then |
---|
| 1252 | enable_gmp=yes |
---|
| 1253 | else |
---|
| 1254 | enable_gmp=no |
---|
| 1255 | fi |
---|
| 1256 | fi |
---|
| 1257 | if test "$enable_gmp" = yes && test -d gmp; then |
---|
| 1258 | echo "$ac_t""yes" 1>&6 |
---|
| 1259 | CONFIG_SUBDIRS="gmp" |
---|
| 1260 | ac_configure_args="$ac_configure_args --enable-gmp" |
---|
| 1261 | else |
---|
| 1262 | echo "$ac_t""no" 1>&6 |
---|
| 1263 | if test "$enable_gmp" = yes && test ! -d gmp; then |
---|
| 1264 | echo "configure: warning: Did not find gmp subdirectory" 1>&2 |
---|
| 1265 | fi |
---|
| 1266 | enable_gmp=no |
---|
| 1267 | ac_configure_args="$ac_configure_args --disable-gmp" |
---|
| 1268 | fi |
---|
| 1269 | |
---|
| 1270 | echo $ac_n "checking whether to configure and build MP lib""... $ac_c" 1>&6 |
---|
| 1271 | if test "$enable_MP" != yes && test "$enable_MP" != no; then |
---|
| 1272 | if test "$with_MP" != no && test "$ac_MP_ok" != yes; then |
---|
| 1273 | enable_MP=yes |
---|
| 1274 | else |
---|
| 1275 | enable_MP=no |
---|
| 1276 | fi |
---|
| 1277 | fi |
---|
| 1278 | if test "$enable_MP" = yes && test -d MP; then |
---|
| 1279 | echo "$ac_t""yes" 1>&6 |
---|
| 1280 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP" |
---|
| 1281 | ac_configure_args="$ac_configure_args --enable-MP" |
---|
| 1282 | else |
---|
| 1283 | echo "$ac_t""no" 1>&6 |
---|
| 1284 | if test "$enable_MP" = yes && test ! -d MP; then |
---|
| 1285 | echo "configure: warning: Did not find MP subdirectory" 1>&2 |
---|
| 1286 | fi |
---|
| 1287 | enable_MP=no |
---|
| 1288 | ac_configure_args="$ac_configure_args --disable-MP" |
---|
| 1289 | fi |
---|
| 1290 | |
---|
| 1291 | echo $ac_n "checking whether to configure and build factory lib""... $ac_c" 1>&6 |
---|
| 1292 | if test "$enable_factory" != yes && test "$enable_factory" != no; then |
---|
| 1293 | if test "$with_factory" != no && test "$ac_factory_ok" != yes; then |
---|
| 1294 | enable_factory=yes |
---|
| 1295 | else |
---|
| 1296 | enable_factory=no |
---|
| 1297 | fi |
---|
| 1298 | fi |
---|
| 1299 | if test "$enable_factory" = yes && test -d factory; then |
---|
| 1300 | echo "$ac_t""yes" 1>&6 |
---|
| 1301 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory" |
---|
| 1302 | ac_configure_args="$ac_configure_args --enable-factory" |
---|
| 1303 | else |
---|
| 1304 | echo "$ac_t""no" 1>&6 |
---|
| 1305 | if test "$enable_factory" = yes && test ! -d factory; then |
---|
| 1306 | echo "configure: warning: Did not find factory subdirectory" 1>&2 |
---|
| 1307 | fi |
---|
| 1308 | enable_factory=no |
---|
| 1309 | ac_configure_args="$ac_configure_args --disable-factory" |
---|
| 1310 | fi |
---|
| 1311 | |
---|
| 1312 | echo $ac_n "checking whether to configure and build libfac lib""... $ac_c" 1>&6 |
---|
| 1313 | if test "$enable_libfac" != yes && test "$enable_libfac" != no; then |
---|
| 1314 | if test "$with_libfac" != no && test "$ac_libfac_ok" != yes; then |
---|
| 1315 | enable_libfac=yes |
---|
| 1316 | else |
---|
| 1317 | enable_libfac=no |
---|
| 1318 | fi |
---|
| 1319 | fi |
---|
| 1320 | if test "$enable_libfac" = yes && test -d libfac; then |
---|
| 1321 | echo "$ac_t""yes" 1>&6 |
---|
| 1322 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac" |
---|
| 1323 | ac_configure_args="$ac_configure_args --enable-libfac" |
---|
| 1324 | else |
---|
| 1325 | echo "$ac_t""no" 1>&6 |
---|
| 1326 | if test "$enable_libfac" = yes && test ! -d libfac; then |
---|
| 1327 | echo "configure: warning: Did not find libfac subdirectory" 1>&2 |
---|
| 1328 | fi |
---|
| 1329 | enable_libfac=no |
---|
| 1330 | ac_configure_args="$ac_configure_args --disable-libfac" |
---|
| 1331 | fi |
---|
| 1332 | |
---|
| 1333 | echo $ac_n "checking whether to configure and build Singular""... $ac_c" 1>&6 |
---|
| 1334 | if test "$enable_Singular" != yes && test "$enable_Singular" != no; then |
---|
| 1335 | if test "$with_Singular" != no && test "$ac_Singular_ok" != yes; then |
---|
| 1336 | enable_Singular=yes |
---|
| 1337 | else |
---|
| 1338 | enable_Singular=no |
---|
| 1339 | fi |
---|
| 1340 | fi |
---|
| 1341 | if test "$enable_Singular" = yes && test -d Singular; then |
---|
| 1342 | echo "$ac_t""yes" 1>&6 |
---|
| 1343 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular" |
---|
| 1344 | ac_configure_args="$ac_configure_args --enable-Singular" |
---|
| 1345 | else |
---|
| 1346 | echo "$ac_t""no" 1>&6 |
---|
| 1347 | if test "$enable_Singular" = yes && test ! -d Singular; then |
---|
| 1348 | echo "configure: warning: Did not find Singular subdirectory" 1>&2 |
---|
| 1349 | fi |
---|
| 1350 | enable_Singular=no |
---|
| 1351 | ac_configure_args="$ac_configure_args --disable-Singular" |
---|
| 1352 | fi |
---|
| 1353 | |
---|
| 1354 | |
---|
| 1355 | echo $ac_n "checking whether to use gmp""... $ac_c" 1>&6 |
---|
| 1356 | if test "$with_gmp" != no; then |
---|
| 1357 | if test "$ac_gmp_ok" != yes; then |
---|
| 1358 | if test "$enable_gmp" = yes; then |
---|
| 1359 | if echo $target_os | egrep aix; then |
---|
| 1360 | ac_with_gmp=no |
---|
| 1361 | ac_aix_warn=yes |
---|
| 1362 | else |
---|
| 1363 | ac_with_gmp=yes |
---|
| 1364 | fi |
---|
| 1365 | else |
---|
| 1366 | ac_with_gmp=no |
---|
| 1367 | fi |
---|
| 1368 | else |
---|
| 1369 | ac_with_gmp=yes |
---|
| 1370 | fi |
---|
[595a51] | 1371 | if test "$ac_with_gmp"=yes; then |
---|
[6afd7c] | 1372 | if test "$with_gmp" != yes; then |
---|
| 1373 | with_gmp=yes |
---|
| 1374 | ac_configure_args="$ac_configure_args --with-gmp" |
---|
| 1375 | fi |
---|
| 1376 | else |
---|
| 1377 | with_gmp=no |
---|
| 1378 | ac_configure_args="$ac_configure_args --without-gmp" |
---|
| 1379 | fi |
---|
| 1380 | fi |
---|
| 1381 | if test "$with_gmp" != no; then |
---|
| 1382 | echo "$ac_t""yes" 1>&6 |
---|
| 1383 | else |
---|
| 1384 | echo "$ac_t""no" 1>&6 |
---|
| 1385 | fi |
---|
| 1386 | if test "$ac_aix_warn" = yes; then |
---|
| 1387 | echo "configure: warning: gmp version 2 has a bug under AIX" 1>&2 |
---|
| 1388 | fi |
---|
| 1389 | |
---|
| 1390 | echo $ac_n "checking whether to use MP""... $ac_c" 1>&6 |
---|
| 1391 | if test "$with_MP" != no; then |
---|
| 1392 | if test "$ac_MP_ok" != yes; then |
---|
| 1393 | if test "$enable_MP" = yes; then |
---|
| 1394 | if test "$with_gmp" != yes; then |
---|
| 1395 | ac_with_MP=no |
---|
| 1396 | ac_gmp_warn=yes |
---|
| 1397 | else |
---|
| 1398 | ac_with_MP=yes |
---|
| 1399 | fi |
---|
| 1400 | else |
---|
| 1401 | ac_with_MP=no |
---|
| 1402 | fi |
---|
| 1403 | else |
---|
| 1404 | ac_with_MP=yes |
---|
| 1405 | fi |
---|
[595a51] | 1406 | if test "$ac_with_MP"=yes; then |
---|
[6afd7c] | 1407 | if test "$with_MP" != yes; then |
---|
| 1408 | with_MP=yes |
---|
| 1409 | ac_configure_args="$ac_configure_args --with-MP" |
---|
| 1410 | fi |
---|
| 1411 | else |
---|
| 1412 | with_MP=no |
---|
| 1413 | ac_configure_args="$ac_configure_args --without-MP" |
---|
| 1414 | fi |
---|
| 1415 | fi |
---|
| 1416 | if test "$with_MP" != no; then |
---|
| 1417 | echo "$ac_t""yes" 1>&6 |
---|
| 1418 | else |
---|
| 1419 | echo "$ac_t""no" 1>&6 |
---|
| 1420 | fi |
---|
| 1421 | if test "$ac_gmp_warn" = yes; then |
---|
| 1422 | echo "configure: warning: Need gmp to use MP" 1>&2 |
---|
| 1423 | fi |
---|
| 1424 | |
---|
| 1425 | echo $ac_n "checking whether to use factory""... $ac_c" 1>&6 |
---|
| 1426 | if test "$with_factory" != no; then |
---|
| 1427 | if test "$ac_factory_ok" != yes; then |
---|
| 1428 | if test "$enable_factory" = yes; then |
---|
| 1429 | if test "$with_gmp" != yes; then |
---|
| 1430 | ac_with_factory=no |
---|
| 1431 | ac_gmp_warn=yes |
---|
| 1432 | else |
---|
| 1433 | ac_with_factory=yes |
---|
| 1434 | fi |
---|
| 1435 | else |
---|
| 1436 | ac_with_factory=no |
---|
| 1437 | fi |
---|
| 1438 | else |
---|
| 1439 | ac_with_factory=yes |
---|
| 1440 | fi |
---|
[595a51] | 1441 | if test "$ac_with_factory"=yes; then |
---|
[6afd7c] | 1442 | if test "$with_factory" != yes; then |
---|
| 1443 | with_factory=yes |
---|
| 1444 | ac_configure_args="$ac_configure_args --with-factory" |
---|
| 1445 | fi |
---|
| 1446 | else |
---|
| 1447 | with_factory=no |
---|
| 1448 | ac_configure_args="$ac_configure_args --without-factory" |
---|
| 1449 | fi |
---|
| 1450 | fi |
---|
| 1451 | if test "$with_factory" != no; then |
---|
| 1452 | echo "$ac_t""yes" 1>&6 |
---|
| 1453 | else |
---|
| 1454 | echo "$ac_t""no" 1>&6 |
---|
| 1455 | fi |
---|
| 1456 | if test "$ac_gmp_warn" = yes; then |
---|
| 1457 | echo "configure: warning: Need gmp to use factory" 1>&2 |
---|
| 1458 | fi |
---|
| 1459 | |
---|
| 1460 | echo $ac_n "checking whether to use libfac""... $ac_c" 1>&6 |
---|
| 1461 | if test "$with_libfac" != no; then |
---|
| 1462 | if test "$ac_libfac_ok" != yes; then |
---|
| 1463 | if test "$enable_libfac" = yes; then |
---|
| 1464 | if test "$with_gmp" != yes || test "$with_factory" != yes; then |
---|
| 1465 | ac_with_libfac=no |
---|
| 1466 | ac_gmp_warn=yes |
---|
| 1467 | else |
---|
| 1468 | ac_with_libfac=yes |
---|
| 1469 | fi |
---|
| 1470 | else |
---|
| 1471 | ac_with_libfac=no |
---|
| 1472 | fi |
---|
| 1473 | else |
---|
| 1474 | ac_with_libfac=yes |
---|
| 1475 | fi |
---|
[595a51] | 1476 | if test "$ac_with_libfac"=yes; then |
---|
[6afd7c] | 1477 | if test "$with_libfac" != yes; then |
---|
| 1478 | with_libfac=yes |
---|
| 1479 | ac_configure_args="$ac_configure_args --with-libfac" |
---|
| 1480 | fi |
---|
| 1481 | else |
---|
| 1482 | with_libfac=no |
---|
| 1483 | ac_configure_args="$ac_configure_args --without-libfac" |
---|
| 1484 | fi |
---|
| 1485 | fi |
---|
| 1486 | if test "$with_libfac" != no; then |
---|
| 1487 | echo "$ac_t""yes" 1>&6 |
---|
| 1488 | else |
---|
| 1489 | echo "$ac_t""no" 1>&6 |
---|
| 1490 | fi |
---|
| 1491 | if test "$ac_gmp_warn" = yes; then |
---|
| 1492 | echo "configure: warning: Need gmp and factory to use libfac" 1>&2 |
---|
| 1493 | fi |
---|
| 1494 | |
---|
| 1495 | echo $ac_n "checking whether to build with Singular""... $ac_c" 1>&6 |
---|
| 1496 | if test "$with_Singular" != no; then |
---|
| 1497 | if test "$enable_Singular" = yes; then |
---|
| 1498 | ac_with_Singular=yes |
---|
| 1499 | else |
---|
| 1500 | ac_with_Singular=no |
---|
| 1501 | fi |
---|
[595a51] | 1502 | if test "$ac_with_Singular"=yes; then |
---|
[6afd7c] | 1503 | if test "$with_Singular" != yes; then |
---|
| 1504 | with_Singular=yes |
---|
| 1505 | ac_configure_args="$ac_configure_args --with-Singular" |
---|
| 1506 | fi |
---|
| 1507 | else |
---|
| 1508 | with_Singular=no |
---|
| 1509 | ac_configure_args="$ac_configure_args --without-Singular" |
---|
| 1510 | fi |
---|
| 1511 | fi |
---|
| 1512 | if test "$with_Singular" != no; then |
---|
| 1513 | echo "$ac_t""yes" 1>&6 |
---|
| 1514 | else |
---|
| 1515 | echo "$ac_t""no" 1>&6 |
---|
| 1516 | fi |
---|
| 1517 | |
---|
| 1518 | if test -d gmp; then |
---|
| 1519 | SUBDIRS="gmp" |
---|
| 1520 | fi |
---|
| 1521 | if test -d MP; then |
---|
| 1522 | SUBDIRS="$SUBDIRS MP" |
---|
| 1523 | fi |
---|
| 1524 | if test -d factory; then |
---|
| 1525 | SUBDIRS="$SUBDIRS factory" |
---|
| 1526 | fi |
---|
| 1527 | if test -d libfac; then |
---|
| 1528 | SUBDIRS="$SUBDIRS libfac" |
---|
| 1529 | fi |
---|
| 1530 | if test -d Singular; then |
---|
| 1531 | SUBDIRS="$SUBDIRS Singular" |
---|
| 1532 | fi |
---|
| 1533 | |
---|
| 1534 | |
---|
| 1535 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
---|
| 1536 | set dummy ${MAKE-make}; ac_make=$2 |
---|
| 1537 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
---|
| 1538 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1539 | else |
---|
| 1540 | cat > conftestmake <<\EOF |
---|
| 1541 | all: |
---|
| 1542 | @echo 'ac_maketemp="${MAKE}"' |
---|
| 1543 | EOF |
---|
| 1544 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
| 1545 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
---|
| 1546 | if test -n "$ac_maketemp"; then |
---|
| 1547 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
| 1548 | else |
---|
| 1549 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
| 1550 | fi |
---|
| 1551 | rm -f conftestmake |
---|
| 1552 | fi |
---|
| 1553 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
| 1554 | echo "$ac_t""yes" 1>&6 |
---|
| 1555 | SET_MAKE= |
---|
| 1556 | else |
---|
| 1557 | echo "$ac_t""no" 1>&6 |
---|
| 1558 | SET_MAKE="MAKE=${MAKE-make}" |
---|
| 1559 | fi |
---|
| 1560 | |
---|
| 1561 | |
---|
| 1562 | |
---|
| 1563 | subdirs="$CONFIG_SUBDIRS" |
---|
| 1564 | |
---|
| 1565 | |
---|
| 1566 | trap '' 1 2 15 |
---|
| 1567 | cat > confcache <<\EOF |
---|
| 1568 | # This file is a shell script that caches the results of configure |
---|
| 1569 | # tests run on this system so they can be shared between configure |
---|
| 1570 | # scripts and configure runs. It is not useful on other systems. |
---|
| 1571 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
| 1572 | # |
---|
| 1573 | # By default, configure uses ./config.cache as the cache file, |
---|
| 1574 | # creating it if it does not exist already. You can give configure |
---|
| 1575 | # the --cache-file=FILE option to use a different cache file; that is |
---|
| 1576 | # what configure does when it calls configure scripts in |
---|
| 1577 | # subdirectories, so they share the cache. |
---|
| 1578 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
| 1579 | # config.status only pays attention to the cache file if you give it the |
---|
| 1580 | # --recheck option to rerun configure. |
---|
| 1581 | # |
---|
| 1582 | EOF |
---|
| 1583 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 1584 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 1585 | (set) 2>&1 | |
---|
| 1586 | sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \ |
---|
| 1587 | >> confcache |
---|
| 1588 | if cmp -s $cache_file confcache; then |
---|
| 1589 | : |
---|
| 1590 | else |
---|
| 1591 | if test -w $cache_file; then |
---|
| 1592 | echo "updating cache $cache_file" |
---|
| 1593 | cat confcache > $cache_file |
---|
| 1594 | else |
---|
| 1595 | echo "not updating unwritable cache $cache_file" |
---|
| 1596 | fi |
---|
| 1597 | fi |
---|
| 1598 | rm -f confcache |
---|
| 1599 | |
---|
| 1600 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
| 1601 | |
---|
| 1602 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 1603 | # Let make expand exec_prefix. |
---|
| 1604 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 1605 | |
---|
| 1606 | # Any assignment to VPATH causes Sun make to only execute |
---|
| 1607 | # the first set of double-colon rules, so remove it if not needed. |
---|
| 1608 | # If there is a colon in the path, we need to keep it. |
---|
| 1609 | if test "x$srcdir" = x.; then |
---|
| 1610 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
---|
| 1611 | fi |
---|
| 1612 | |
---|
| 1613 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
---|
| 1614 | |
---|
| 1615 | # Transform confdefs.h into DEFS. |
---|
| 1616 | # Protect against shell expansion while executing Makefile rules. |
---|
| 1617 | # Protect against Makefile macro expansion. |
---|
| 1618 | cat > conftest.defs <<\EOF |
---|
| 1619 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g |
---|
| 1620 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g |
---|
| 1621 | s%\[%\\&%g |
---|
| 1622 | s%\]%\\&%g |
---|
| 1623 | s%\$%$$%g |
---|
| 1624 | EOF |
---|
| 1625 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` |
---|
| 1626 | rm -f conftest.defs |
---|
| 1627 | |
---|
| 1628 | |
---|
| 1629 | # Without the "./", some shells look in PATH for config.status. |
---|
| 1630 | : ${CONFIG_STATUS=./config.status} |
---|
| 1631 | |
---|
| 1632 | echo creating $CONFIG_STATUS |
---|
| 1633 | rm -f $CONFIG_STATUS |
---|
| 1634 | cat > $CONFIG_STATUS <<EOF |
---|
| 1635 | #! /bin/sh |
---|
| 1636 | # Generated automatically by configure. |
---|
| 1637 | # Run this file to recreate the current configuration. |
---|
| 1638 | # This directory was configured as follows, |
---|
| 1639 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
| 1640 | # |
---|
| 1641 | # $0 $ac_configure_args |
---|
| 1642 | # |
---|
| 1643 | # Compiler output produced by configure, useful for debugging |
---|
| 1644 | # configure, is in ./config.log if it exists. |
---|
| 1645 | |
---|
| 1646 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
---|
| 1647 | for ac_option |
---|
| 1648 | do |
---|
| 1649 | case "\$ac_option" in |
---|
| 1650 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 1651 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
---|
| 1652 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
---|
| 1653 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
---|
| 1654 | echo "$CONFIG_STATUS generated by autoconf version 2.9" |
---|
| 1655 | exit 0 ;; |
---|
| 1656 | -help | --help | --hel | --he | --h) |
---|
| 1657 | echo "\$ac_cs_usage"; exit 0 ;; |
---|
| 1658 | *) echo "\$ac_cs_usage"; exit 1 ;; |
---|
| 1659 | esac |
---|
| 1660 | done |
---|
| 1661 | |
---|
| 1662 | ac_given_srcdir=$srcdir |
---|
| 1663 | |
---|
| 1664 | trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
---|
| 1665 | EOF |
---|
| 1666 | cat >> $CONFIG_STATUS <<EOF |
---|
| 1667 | |
---|
| 1668 | # Protect against being on the right side of a sed subst in config.status. |
---|
| 1669 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
---|
| 1670 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
---|
| 1671 | $ac_vpsub |
---|
| 1672 | $extrasub |
---|
| 1673 | s%@CFLAGS@%$CFLAGS%g |
---|
| 1674 | s%@CPPFLAGS@%$CPPFLAGS%g |
---|
| 1675 | s%@CXXFLAGS@%$CXXFLAGS%g |
---|
| 1676 | s%@DEFS@%$DEFS%g |
---|
| 1677 | s%@LDFLAGS@%$LDFLAGS%g |
---|
| 1678 | s%@LIBS@%$LIBS%g |
---|
| 1679 | s%@exec_prefix@%$exec_prefix%g |
---|
| 1680 | s%@prefix@%$prefix%g |
---|
| 1681 | s%@program_transform_name@%$program_transform_name%g |
---|
| 1682 | s%@bindir@%$bindir%g |
---|
| 1683 | s%@sbindir@%$sbindir%g |
---|
| 1684 | s%@libexecdir@%$libexecdir%g |
---|
| 1685 | s%@datadir@%$datadir%g |
---|
| 1686 | s%@sysconfdir@%$sysconfdir%g |
---|
| 1687 | s%@sharedstatedir@%$sharedstatedir%g |
---|
| 1688 | s%@localstatedir@%$localstatedir%g |
---|
| 1689 | s%@libdir@%$libdir%g |
---|
| 1690 | s%@includedir@%$includedir%g |
---|
| 1691 | s%@oldincludedir@%$oldincludedir%g |
---|
| 1692 | s%@infodir@%$infodir%g |
---|
| 1693 | s%@mandir@%$mandir%g |
---|
| 1694 | s%@host@%$host%g |
---|
| 1695 | s%@host_alias@%$host_alias%g |
---|
| 1696 | s%@host_cpu@%$host_cpu%g |
---|
| 1697 | s%@host_vendor@%$host_vendor%g |
---|
| 1698 | s%@host_os@%$host_os%g |
---|
| 1699 | s%@target@%$target%g |
---|
| 1700 | s%@target_alias@%$target_alias%g |
---|
| 1701 | s%@target_cpu@%$target_cpu%g |
---|
| 1702 | s%@target_vendor@%$target_vendor%g |
---|
| 1703 | s%@target_os@%$target_os%g |
---|
| 1704 | s%@build@%$build%g |
---|
| 1705 | s%@build_alias@%$build_alias%g |
---|
| 1706 | s%@build_cpu@%$build_cpu%g |
---|
| 1707 | s%@build_vendor@%$build_vendor%g |
---|
| 1708 | s%@build_os@%$build_os%g |
---|
| 1709 | s%@CC@%$CC%g |
---|
| 1710 | s%@CPP@%$CPP%g |
---|
| 1711 | s%@SET_MAKE@%$SET_MAKE%g |
---|
| 1712 | s%@SUBDIRS@%$SUBDIRS%g |
---|
| 1713 | s%@CONFIG_SUBDIRS@%$CONFIG_SUBDIRS%g |
---|
| 1714 | s%@subdirs@%$subdirs%g |
---|
| 1715 | |
---|
| 1716 | CEOF |
---|
| 1717 | EOF |
---|
| 1718 | cat >> $CONFIG_STATUS <<EOF |
---|
| 1719 | |
---|
| 1720 | CONFIG_FILES=\${CONFIG_FILES-"Makefile"} |
---|
| 1721 | EOF |
---|
| 1722 | cat >> $CONFIG_STATUS <<\EOF |
---|
| 1723 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
---|
| 1724 | # Support "outfile[:infile]", defaulting infile="outfile.in". |
---|
| 1725 | case "$ac_file" in |
---|
| 1726 | *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` |
---|
| 1727 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
| 1728 | *) ac_file_in="${ac_file}.in" ;; |
---|
| 1729 | esac |
---|
| 1730 | |
---|
| 1731 | # Adjust relative srcdir, etc. for subdirectories. |
---|
| 1732 | |
---|
| 1733 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
| 1734 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
| 1735 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
| 1736 | # The file is in a subdirectory. |
---|
| 1737 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
| 1738 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
---|
| 1739 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 1740 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
| 1741 | else |
---|
| 1742 | ac_dir_suffix= ac_dots= |
---|
| 1743 | fi |
---|
| 1744 | |
---|
| 1745 | case "$ac_given_srcdir" in |
---|
| 1746 | .) srcdir=. |
---|
| 1747 | if test -z "$ac_dots"; then top_srcdir=. |
---|
| 1748 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
---|
| 1749 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
---|
| 1750 | *) # Relative path. |
---|
| 1751 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
---|
| 1752 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
---|
| 1753 | esac |
---|
| 1754 | |
---|
| 1755 | echo creating "$ac_file" |
---|
| 1756 | rm -f "$ac_file" |
---|
| 1757 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
---|
| 1758 | case "$ac_file" in |
---|
| 1759 | *Makefile*) ac_comsub="1i\\ |
---|
| 1760 | # $configure_input" ;; |
---|
| 1761 | *) ac_comsub= ;; |
---|
| 1762 | esac |
---|
| 1763 | sed -e "$ac_comsub |
---|
| 1764 | s%@configure_input@%$configure_input%g |
---|
| 1765 | s%@srcdir@%$srcdir%g |
---|
| 1766 | s%@top_srcdir@%$top_srcdir%g |
---|
| 1767 | " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file |
---|
| 1768 | fi; done |
---|
| 1769 | rm -f conftest.subs |
---|
| 1770 | |
---|
| 1771 | |
---|
| 1772 | |
---|
| 1773 | exit 0 |
---|
| 1774 | EOF |
---|
| 1775 | chmod +x $CONFIG_STATUS |
---|
| 1776 | rm -fr confdefs* $ac_clean_files |
---|
| 1777 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
---|
| 1778 | |
---|
| 1779 | if test "$no_recursion" != yes; then |
---|
| 1780 | |
---|
| 1781 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
---|
| 1782 | ac_sub_configure_args= |
---|
| 1783 | ac_prev= |
---|
| 1784 | for ac_arg in $ac_configure_args; do |
---|
| 1785 | if test -n "$ac_prev"; then |
---|
| 1786 | ac_prev= |
---|
| 1787 | continue |
---|
| 1788 | fi |
---|
| 1789 | case "$ac_arg" in |
---|
| 1790 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 1791 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 1792 | ac_prev=cache_file ;; |
---|
| 1793 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 1794 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 1795 | ;; |
---|
| 1796 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 1797 | ac_prev=srcdir ;; |
---|
| 1798 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 1799 | ;; |
---|
| 1800 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
---|
| 1801 | esac |
---|
| 1802 | done |
---|
| 1803 | |
---|
| 1804 | for ac_config_dir in $CONFIG_SUBDIRS; do |
---|
| 1805 | |
---|
| 1806 | # Do not complain, so a configure script can configure whichever |
---|
| 1807 | # parts of a large source tree are present. |
---|
| 1808 | if test ! -d $srcdir/$ac_config_dir; then |
---|
| 1809 | continue |
---|
| 1810 | fi |
---|
| 1811 | |
---|
| 1812 | echo configuring in $ac_config_dir |
---|
| 1813 | |
---|
| 1814 | case "$srcdir" in |
---|
| 1815 | .) ;; |
---|
| 1816 | *) |
---|
| 1817 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
---|
| 1818 | else |
---|
| 1819 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } |
---|
| 1820 | fi |
---|
| 1821 | ;; |
---|
| 1822 | esac |
---|
| 1823 | |
---|
| 1824 | ac_popdir=`pwd` |
---|
| 1825 | cd $ac_config_dir |
---|
| 1826 | |
---|
| 1827 | case "$srcdir" in |
---|
| 1828 | .) # No --srcdir option. We are building in place. |
---|
| 1829 | ac_sub_srcdir=$srcdir ;; |
---|
| 1830 | /*) # Absolute path. |
---|
| 1831 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; |
---|
| 1832 | *) # Relative path. |
---|
| 1833 | ac_sub_srcdir=../$srcdir/$ac_config_dir ;; |
---|
| 1834 | esac |
---|
| 1835 | |
---|
| 1836 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
| 1837 | if test -f $ac_sub_srcdir/configure; then |
---|
| 1838 | ac_sub_configure=$ac_sub_srcdir/configure |
---|
| 1839 | elif test -f $ac_sub_srcdir/configure.in; then |
---|
| 1840 | ac_sub_configure=$ac_configure |
---|
| 1841 | else |
---|
| 1842 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
---|
| 1843 | ac_sub_configure= |
---|
| 1844 | fi |
---|
| 1845 | |
---|
| 1846 | # The recursion is here. |
---|
| 1847 | if test -n "$ac_sub_configure"; then |
---|
| 1848 | |
---|
| 1849 | # Make the cache file name correct relative to the subdirectory. |
---|
| 1850 | # A "../" for each directory in /$ac_config_dir. |
---|
| 1851 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` |
---|
| 1852 | case "$cache_file" in |
---|
| 1853 | /*) ac_sub_cache_file=$cache_file ;; |
---|
| 1854 | *) # Relative path. |
---|
| 1855 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
---|
| 1856 | esac |
---|
| 1857 | |
---|
| 1858 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
---|
| 1859 | # The eval makes quoting arguments work. |
---|
| 1860 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
---|
| 1861 | then : |
---|
| 1862 | else |
---|
| 1863 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } |
---|
| 1864 | fi |
---|
| 1865 | fi |
---|
| 1866 | |
---|
| 1867 | cd $ac_popdir |
---|
| 1868 | done |
---|
| 1869 | fi |
---|