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