[1407] | 1 | #! /bin/sh
|
---|
| 2 |
|
---|
| 3 | # Guess values for system-dependent variables and create Makefiles.
|
---|
| 4 | # Generated automatically using autoconf version 2.13
|
---|
| 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
|
---|
| 6 | #
|
---|
| 7 | # This configure script is free software; the Free Software Foundation
|
---|
| 8 | # gives unlimited permission to copy, distribute and modify it.
|
---|
| 9 |
|
---|
| 10 | # Defaults:
|
---|
| 11 | ac_help=
|
---|
| 12 | ac_default_prefix=/usr/local
|
---|
| 13 | # Any additions from configure.in:
|
---|
| 14 | ac_help="$ac_help
|
---|
| 15 | --with-sophya Compile and link with SOPHYA"
|
---|
| 16 |
|
---|
| 17 | # Initialize some variables set by options.
|
---|
| 18 | # The variables have the same names as the options, with
|
---|
| 19 | # dashes changed to underlines.
|
---|
| 20 | build=NONE
|
---|
| 21 | cache_file=./config.cache
|
---|
| 22 | exec_prefix=NONE
|
---|
| 23 | host=NONE
|
---|
| 24 | no_create=
|
---|
| 25 | nonopt=NONE
|
---|
| 26 | no_recursion=
|
---|
| 27 | prefix=NONE
|
---|
| 28 | program_prefix=NONE
|
---|
| 29 | program_suffix=NONE
|
---|
| 30 | program_transform_name=s,x,x,
|
---|
| 31 | silent=
|
---|
| 32 | site=
|
---|
| 33 | srcdir=
|
---|
| 34 | target=NONE
|
---|
| 35 | verbose=
|
---|
| 36 | x_includes=NONE
|
---|
| 37 | x_libraries=NONE
|
---|
| 38 | bindir='${exec_prefix}/bin'
|
---|
| 39 | sbindir='${exec_prefix}/sbin'
|
---|
| 40 | libexecdir='${exec_prefix}/libexec'
|
---|
| 41 | datadir='${prefix}/share'
|
---|
| 42 | sysconfdir='${prefix}/etc'
|
---|
| 43 | sharedstatedir='${prefix}/com'
|
---|
| 44 | localstatedir='${prefix}/var'
|
---|
| 45 | libdir='${exec_prefix}/lib'
|
---|
| 46 | includedir='${prefix}/include'
|
---|
| 47 | oldincludedir='/usr/include'
|
---|
| 48 | infodir='${prefix}/info'
|
---|
| 49 | mandir='${prefix}/man'
|
---|
| 50 |
|
---|
| 51 | # Initialize some other variables.
|
---|
| 52 | subdirs=
|
---|
| 53 | MFLAGS= MAKEFLAGS=
|
---|
| 54 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
| 55 | # Maximum number of lines to put in a shell here document.
|
---|
| 56 | ac_max_here_lines=12
|
---|
| 57 |
|
---|
| 58 | ac_prev=
|
---|
| 59 | for ac_option
|
---|
| 60 | do
|
---|
| 61 |
|
---|
| 62 | # If the previous option needs an argument, assign it.
|
---|
| 63 | if test -n "$ac_prev"; then
|
---|
| 64 | eval "$ac_prev=\$ac_option"
|
---|
| 65 | ac_prev=
|
---|
| 66 | continue
|
---|
| 67 | fi
|
---|
| 68 |
|
---|
| 69 | case "$ac_option" in
|
---|
| 70 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
---|
| 71 | *) ac_optarg= ;;
|
---|
| 72 | esac
|
---|
| 73 |
|
---|
| 74 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
| 75 |
|
---|
| 76 | case "$ac_option" in
|
---|
| 77 |
|
---|
| 78 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
| 79 | ac_prev=bindir ;;
|
---|
| 80 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
| 81 | bindir="$ac_optarg" ;;
|
---|
| 82 |
|
---|
| 83 | -build | --build | --buil | --bui | --bu)
|
---|
| 84 | ac_prev=build ;;
|
---|
| 85 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
| 86 | build="$ac_optarg" ;;
|
---|
| 87 |
|
---|
| 88 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 89 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 90 | ac_prev=cache_file ;;
|
---|
| 91 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
| 92 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
| 93 | cache_file="$ac_optarg" ;;
|
---|
| 94 |
|
---|
| 95 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
| 96 | ac_prev=datadir ;;
|
---|
| 97 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
| 98 | | --da=*)
|
---|
| 99 | datadir="$ac_optarg" ;;
|
---|
| 100 |
|
---|
| 101 | -disable-* | --disable-*)
|
---|
| 102 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
---|
| 103 | # Reject names that are not valid shell variable names.
|
---|
| 104 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
| 105 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
| 106 | fi
|
---|
| 107 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
| 108 | eval "enable_${ac_feature}=no" ;;
|
---|
| 109 |
|
---|
| 110 | -enable-* | --enable-*)
|
---|
| 111 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
---|
| 112 | # Reject names that are not valid shell variable names.
|
---|
| 113 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
| 114 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
| 115 | fi
|
---|
| 116 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
| 117 | case "$ac_option" in
|
---|
| 118 | *=*) ;;
|
---|
| 119 | *) ac_optarg=yes ;;
|
---|
| 120 | esac
|
---|
| 121 | eval "enable_${ac_feature}='$ac_optarg'" ;;
|
---|
| 122 |
|
---|
| 123 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
| 124 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
| 125 | | --exec | --exe | --ex)
|
---|
| 126 | ac_prev=exec_prefix ;;
|
---|
| 127 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
| 128 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
| 129 | | --exec=* | --exe=* | --ex=*)
|
---|
| 130 | exec_prefix="$ac_optarg" ;;
|
---|
| 131 |
|
---|
| 132 | -gas | --gas | --ga | --g)
|
---|
| 133 | # Obsolete; use --with-gas.
|
---|
| 134 | with_gas=yes ;;
|
---|
| 135 |
|
---|
| 136 | -help | --help | --hel | --he)
|
---|
| 137 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
| 138 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
| 139 | cat << EOF
|
---|
| 140 | Usage: configure [options] [host]
|
---|
| 141 | Options: [defaults in brackets after descriptions]
|
---|
| 142 | Configuration:
|
---|
| 143 | --cache-file=FILE cache test results in FILE
|
---|
| 144 | --help print this message
|
---|
| 145 | --no-create do not create output files
|
---|
| 146 | --quiet, --silent do not print \`checking...' messages
|
---|
| 147 | --version print the version of autoconf that created configure
|
---|
| 148 | Directory and file names:
|
---|
| 149 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
| 150 | [$ac_default_prefix]
|
---|
| 151 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
| 152 | [same as prefix]
|
---|
| 153 | --bindir=DIR user executables in DIR [EPREFIX/bin]
|
---|
| 154 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
---|
| 155 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
---|
| 156 | --datadir=DIR read-only architecture-independent data in DIR
|
---|
| 157 | [PREFIX/share]
|
---|
| 158 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
---|
| 159 | --sharedstatedir=DIR modifiable architecture-independent data in DIR
|
---|
| 160 | [PREFIX/com]
|
---|
| 161 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
---|
| 162 | --libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
---|
| 163 | --includedir=DIR C header files in DIR [PREFIX/include]
|
---|
| 164 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
---|
| 165 | --infodir=DIR info documentation in DIR [PREFIX/info]
|
---|
| 166 | --mandir=DIR man documentation in DIR [PREFIX/man]
|
---|
| 167 | --srcdir=DIR find the sources in DIR [configure dir or ..]
|
---|
| 168 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
| 169 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
| 170 | --program-transform-name=PROGRAM
|
---|
| 171 | run sed PROGRAM on installed program names
|
---|
| 172 | EOF
|
---|
| 173 | cat << EOF
|
---|
| 174 | Host type:
|
---|
| 175 | --build=BUILD configure for building on BUILD [BUILD=HOST]
|
---|
| 176 | --host=HOST configure for HOST [guessed]
|
---|
| 177 | --target=TARGET configure for TARGET [TARGET=HOST]
|
---|
| 178 | Features and packages:
|
---|
| 179 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
| 180 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
| 181 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
| 182 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
| 183 | --x-includes=DIR X include files are in DIR
|
---|
| 184 | --x-libraries=DIR X library files are in DIR
|
---|
| 185 | EOF
|
---|
| 186 | if test -n "$ac_help"; then
|
---|
| 187 | echo "--enable and --with options recognized:$ac_help"
|
---|
| 188 | fi
|
---|
| 189 | exit 0 ;;
|
---|
| 190 |
|
---|
| 191 | -host | --host | --hos | --ho)
|
---|
| 192 | ac_prev=host ;;
|
---|
| 193 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
| 194 | host="$ac_optarg" ;;
|
---|
| 195 |
|
---|
| 196 | -includedir | --includedir | --includedi | --included | --include \
|
---|
| 197 | | --includ | --inclu | --incl | --inc)
|
---|
| 198 | ac_prev=includedir ;;
|
---|
| 199 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
| 200 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
| 201 | includedir="$ac_optarg" ;;
|
---|
| 202 |
|
---|
| 203 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
| 204 | ac_prev=infodir ;;
|
---|
| 205 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
| 206 | infodir="$ac_optarg" ;;
|
---|
| 207 |
|
---|
| 208 | -libdir | --libdir | --libdi | --libd)
|
---|
| 209 | ac_prev=libdir ;;
|
---|
| 210 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
| 211 | libdir="$ac_optarg" ;;
|
---|
| 212 |
|
---|
| 213 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
| 214 | | --libexe | --libex | --libe)
|
---|
| 215 | ac_prev=libexecdir ;;
|
---|
| 216 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
| 217 | | --libexe=* | --libex=* | --libe=*)
|
---|
| 218 | libexecdir="$ac_optarg" ;;
|
---|
| 219 |
|
---|
| 220 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
| 221 | | --localstate | --localstat | --localsta | --localst \
|
---|
| 222 | | --locals | --local | --loca | --loc | --lo)
|
---|
| 223 | ac_prev=localstatedir ;;
|
---|
| 224 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
| 225 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
| 226 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
| 227 | localstatedir="$ac_optarg" ;;
|
---|
| 228 |
|
---|
| 229 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
| 230 | ac_prev=mandir ;;
|
---|
| 231 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
| 232 | mandir="$ac_optarg" ;;
|
---|
| 233 |
|
---|
| 234 | -nfp | --nfp | --nf)
|
---|
| 235 | # Obsolete; use --without-fp.
|
---|
| 236 | with_fp=no ;;
|
---|
| 237 |
|
---|
| 238 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
| 239 | | --no-cr | --no-c)
|
---|
| 240 | no_create=yes ;;
|
---|
| 241 |
|
---|
| 242 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
| 243 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
| 244 | no_recursion=yes ;;
|
---|
| 245 |
|
---|
| 246 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
| 247 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
| 248 | | --oldin | --oldi | --old | --ol | --o)
|
---|
| 249 | ac_prev=oldincludedir ;;
|
---|
| 250 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
| 251 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
| 252 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
| 253 | oldincludedir="$ac_optarg" ;;
|
---|
| 254 |
|
---|
| 255 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 256 | ac_prev=prefix ;;
|
---|
| 257 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
| 258 | prefix="$ac_optarg" ;;
|
---|
| 259 |
|
---|
| 260 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
| 261 | | --program-pre | --program-pr | --program-p)
|
---|
| 262 | ac_prev=program_prefix ;;
|
---|
| 263 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
| 264 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
| 265 | program_prefix="$ac_optarg" ;;
|
---|
| 266 |
|
---|
| 267 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
| 268 | | --program-suf | --program-su | --program-s)
|
---|
| 269 | ac_prev=program_suffix ;;
|
---|
| 270 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
| 271 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
| 272 | program_suffix="$ac_optarg" ;;
|
---|
| 273 |
|
---|
| 274 | -program-transform-name | --program-transform-name \
|
---|
| 275 | | --program-transform-nam | --program-transform-na \
|
---|
| 276 | | --program-transform-n | --program-transform- \
|
---|
| 277 | | --program-transform | --program-transfor \
|
---|
| 278 | | --program-transfo | --program-transf \
|
---|
| 279 | | --program-trans | --program-tran \
|
---|
| 280 | | --progr-tra | --program-tr | --program-t)
|
---|
| 281 | ac_prev=program_transform_name ;;
|
---|
| 282 | -program-transform-name=* | --program-transform-name=* \
|
---|
| 283 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
| 284 | | --program-transform-n=* | --program-transform-=* \
|
---|
| 285 | | --program-transform=* | --program-transfor=* \
|
---|
| 286 | | --program-transfo=* | --program-transf=* \
|
---|
| 287 | | --program-trans=* | --program-tran=* \
|
---|
| 288 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
| 289 | program_transform_name="$ac_optarg" ;;
|
---|
| 290 |
|
---|
| 291 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 292 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 293 | silent=yes ;;
|
---|
| 294 |
|
---|
| 295 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
| 296 | ac_prev=sbindir ;;
|
---|
| 297 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
| 298 | | --sbi=* | --sb=*)
|
---|
| 299 | sbindir="$ac_optarg" ;;
|
---|
| 300 |
|
---|
| 301 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
| 302 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
| 303 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
| 304 | | --sha | --sh)
|
---|
| 305 | ac_prev=sharedstatedir ;;
|
---|
| 306 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
| 307 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
| 308 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
| 309 | | --sha=* | --sh=*)
|
---|
| 310 | sharedstatedir="$ac_optarg" ;;
|
---|
| 311 |
|
---|
| 312 | -site | --site | --sit)
|
---|
| 313 | ac_prev=site ;;
|
---|
| 314 | -site=* | --site=* | --sit=*)
|
---|
| 315 | site="$ac_optarg" ;;
|
---|
| 316 |
|
---|
| 317 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 318 | ac_prev=srcdir ;;
|
---|
| 319 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
| 320 | srcdir="$ac_optarg" ;;
|
---|
| 321 |
|
---|
| 322 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
| 323 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
| 324 | ac_prev=sysconfdir ;;
|
---|
| 325 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
| 326 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
| 327 | sysconfdir="$ac_optarg" ;;
|
---|
| 328 |
|
---|
| 329 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
| 330 | ac_prev=target ;;
|
---|
| 331 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
| 332 | target="$ac_optarg" ;;
|
---|
| 333 |
|
---|
| 334 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
| 335 | verbose=yes ;;
|
---|
| 336 |
|
---|
| 337 | -version | --version | --versio | --versi | --vers)
|
---|
| 338 | echo "configure generated by autoconf version 2.13"
|
---|
| 339 | exit 0 ;;
|
---|
| 340 |
|
---|
| 341 | -with-* | --with-*)
|
---|
| 342 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
---|
| 343 | # Reject names that are not valid shell variable names.
|
---|
| 344 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
| 345 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
| 346 | fi
|
---|
| 347 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
| 348 | case "$ac_option" in
|
---|
| 349 | *=*) ;;
|
---|
| 350 | *) ac_optarg=yes ;;
|
---|
| 351 | esac
|
---|
| 352 | eval "with_${ac_package}='$ac_optarg'" ;;
|
---|
| 353 |
|
---|
| 354 | -without-* | --without-*)
|
---|
| 355 | ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
---|
| 356 | # Reject names that are not valid shell variable names.
|
---|
| 357 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
| 358 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
| 359 | fi
|
---|
| 360 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
| 361 | eval "with_${ac_package}=no" ;;
|
---|
| 362 |
|
---|
| 363 | --x)
|
---|
| 364 | # Obsolete; use --with-x.
|
---|
| 365 | with_x=yes ;;
|
---|
| 366 |
|
---|
| 367 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
| 368 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
| 369 | ac_prev=x_includes ;;
|
---|
| 370 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
| 371 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
| 372 | x_includes="$ac_optarg" ;;
|
---|
| 373 |
|
---|
| 374 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
| 375 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
| 376 | ac_prev=x_libraries ;;
|
---|
| 377 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
| 378 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
| 379 | x_libraries="$ac_optarg" ;;
|
---|
| 380 |
|
---|
| 381 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
---|
| 382 | ;;
|
---|
| 383 |
|
---|
| 384 | *)
|
---|
| 385 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
---|
| 386 | echo "configure: warning: $ac_option: invalid host type" 1>&2
|
---|
| 387 | fi
|
---|
| 388 | if test "x$nonopt" != xNONE; then
|
---|
| 389 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
---|
| 390 | fi
|
---|
| 391 | nonopt="$ac_option"
|
---|
| 392 | ;;
|
---|
| 393 |
|
---|
| 394 | esac
|
---|
| 395 | done
|
---|
| 396 |
|
---|
| 397 | if test -n "$ac_prev"; then
|
---|
| 398 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
---|
| 399 | fi
|
---|
| 400 |
|
---|
| 401 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
| 402 |
|
---|
| 403 | # File descriptor usage:
|
---|
| 404 | # 0 standard input
|
---|
| 405 | # 1 file creation
|
---|
| 406 | # 2 errors and warnings
|
---|
| 407 | # 3 some systems may open it to /dev/tty
|
---|
| 408 | # 4 used on the Kubota Titan
|
---|
| 409 | # 6 checking for... messages and results
|
---|
| 410 | # 5 compiler messages saved in config.log
|
---|
| 411 | if test "$silent" = yes; then
|
---|
| 412 | exec 6>/dev/null
|
---|
| 413 | else
|
---|
| 414 | exec 6>&1
|
---|
| 415 | fi
|
---|
| 416 | exec 5>./config.log
|
---|
| 417 |
|
---|
| 418 | echo "\
|
---|
| 419 | This file contains any messages produced by compilers while
|
---|
| 420 | running configure, to aid debugging if configure makes a mistake.
|
---|
| 421 | " 1>&5
|
---|
| 422 |
|
---|
| 423 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
| 424 | # Also quote any args containing shell metacharacters.
|
---|
| 425 | ac_configure_args=
|
---|
| 426 | for ac_arg
|
---|
| 427 | do
|
---|
| 428 | case "$ac_arg" in
|
---|
| 429 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
| 430 | | --no-cr | --no-c) ;;
|
---|
| 431 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
| 432 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
---|
| 433 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
---|
| 434 | ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
| 435 | *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
---|
| 436 | esac
|
---|
| 437 | done
|
---|
| 438 |
|
---|
| 439 | # NLS nuisances.
|
---|
| 440 | # Only set these to C if already set. These must not be set unconditionally
|
---|
| 441 | # because not all systems understand e.g. LANG=C (notably SCO).
|
---|
| 442 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
---|
| 443 | # Non-C LC_CTYPE values break the ctype check.
|
---|
| 444 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
---|
| 445 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
---|
| 446 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
---|
| 447 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
---|
| 448 |
|
---|
| 449 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
| 450 | rm -rf conftest* confdefs.h
|
---|
| 451 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
| 452 | echo > confdefs.h
|
---|
| 453 |
|
---|
| 454 | # A filename unique to this package, relative to the directory that
|
---|
| 455 | # configure is in, which we can look for to find out if srcdir is correct.
|
---|
[1477] | 456 | ac_unique_file=kernel/toi.cc
|
---|
[1407] | 457 |
|
---|
| 458 | # Find the source files, if location was not specified.
|
---|
| 459 | if test -z "$srcdir"; then
|
---|
| 460 | ac_srcdir_defaulted=yes
|
---|
| 461 | # Try the directory containing this script, then its parent.
|
---|
| 462 | ac_prog=$0
|
---|
| 463 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
---|
| 464 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
---|
| 465 | srcdir=$ac_confdir
|
---|
| 466 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
| 467 | srcdir=..
|
---|
| 468 | fi
|
---|
| 469 | else
|
---|
| 470 | ac_srcdir_defaulted=no
|
---|
| 471 | fi
|
---|
| 472 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
| 473 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
| 474 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
---|
| 475 | else
|
---|
| 476 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
---|
| 477 | fi
|
---|
| 478 | fi
|
---|
| 479 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
---|
| 480 |
|
---|
| 481 | # Prefer explicitly selected file to automatically selected ones.
|
---|
| 482 | if test -z "$CONFIG_SITE"; then
|
---|
| 483 | if test "x$prefix" != xNONE; then
|
---|
| 484 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
| 485 | else
|
---|
| 486 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
| 487 | fi
|
---|
| 488 | fi
|
---|
| 489 | for ac_site_file in $CONFIG_SITE; do
|
---|
| 490 | if test -r "$ac_site_file"; then
|
---|
| 491 | echo "loading site script $ac_site_file"
|
---|
| 492 | . "$ac_site_file"
|
---|
| 493 | fi
|
---|
| 494 | done
|
---|
| 495 |
|
---|
| 496 | if test -r "$cache_file"; then
|
---|
| 497 | echo "loading cache $cache_file"
|
---|
| 498 | . $cache_file
|
---|
| 499 | else
|
---|
| 500 | echo "creating cache $cache_file"
|
---|
| 501 | > $cache_file
|
---|
| 502 | fi
|
---|
| 503 |
|
---|
| 504 | ac_ext=c
|
---|
| 505 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
| 506 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 507 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
| 508 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
| 509 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
| 510 |
|
---|
| 511 | ac_exeext=
|
---|
| 512 | ac_objext=o
|
---|
| 513 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
---|
| 514 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
---|
| 515 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
---|
| 516 | ac_n= ac_c='
|
---|
| 517 | ' ac_t=' '
|
---|
| 518 | else
|
---|
| 519 | ac_n=-n ac_c= ac_t=
|
---|
| 520 | fi
|
---|
| 521 | else
|
---|
| 522 | ac_n= ac_c='\c' ac_t=
|
---|
| 523 | fi
|
---|
| 524 |
|
---|
| 525 |
|
---|
| 526 |
|
---|
| 527 |
|
---|
| 528 | # Check whether --with-sophya or --without-sophya was given.
|
---|
| 529 | if test "${with_sophya+set}" = set; then
|
---|
| 530 | withval="$with_sophya"
|
---|
| 531 | use_sophya=1
|
---|
| 532 | else
|
---|
| 533 | use_sophya=0
|
---|
| 534 | fi
|
---|
| 535 |
|
---|
| 536 |
|
---|
| 537 |
|
---|
| 538 |
|
---|
| 539 | if test `uname` = OSF1 -a -z "$CXX"; then
|
---|
| 540 | if test -x /usr/bin/cxx; then
|
---|
| 541 | echo "using cxx on alpha"
|
---|
| 542 | CXX=cxx
|
---|
| 543 | export CXX
|
---|
| 544 | fi
|
---|
| 545 | fi
|
---|
| 546 |
|
---|
[1732] | 547 | if test `uname` = Linux -a -f /usr/bin/g++; then
|
---|
[1745] | 548 | CXX=/usr/bin/g++
|
---|
[1732] | 549 | fi
|
---|
| 550 |
|
---|
[1477] | 551 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
| 552 | set dummy gcc; ac_word=$2
|
---|
| 553 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
[1732] | 554 | echo "configure:555: checking for $ac_word" >&5
|
---|
[1477] | 555 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
| 556 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 557 | else
|
---|
| 558 | if test -n "$CC"; then
|
---|
| 559 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 560 | else
|
---|
| 561 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
| 562 | ac_dummy="$PATH"
|
---|
| 563 | for ac_dir in $ac_dummy; do
|
---|
| 564 | test -z "$ac_dir" && ac_dir=.
|
---|
| 565 | if test -f $ac_dir/$ac_word; then
|
---|
| 566 | ac_cv_prog_CC="gcc"
|
---|
| 567 | break
|
---|
| 568 | fi
|
---|
| 569 | done
|
---|
| 570 | IFS="$ac_save_ifs"
|
---|
| 571 | fi
|
---|
| 572 | fi
|
---|
| 573 | CC="$ac_cv_prog_CC"
|
---|
| 574 | if test -n "$CC"; then
|
---|
| 575 | echo "$ac_t""$CC" 1>&6
|
---|
| 576 | else
|
---|
| 577 | echo "$ac_t""no" 1>&6
|
---|
| 578 | fi
|
---|
| 579 |
|
---|
| 580 | if test -z "$CC"; then
|
---|
| 581 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 582 | set dummy cc; ac_word=$2
|
---|
| 583 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
[1732] | 584 | echo "configure:585: checking for $ac_word" >&5
|
---|
[1477] | 585 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
| 586 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 587 | else
|
---|
| 588 | if test -n "$CC"; then
|
---|
| 589 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 590 | else
|
---|
| 591 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
| 592 | ac_prog_rejected=no
|
---|
| 593 | ac_dummy="$PATH"
|
---|
| 594 | for ac_dir in $ac_dummy; do
|
---|
| 595 | test -z "$ac_dir" && ac_dir=.
|
---|
| 596 | if test -f $ac_dir/$ac_word; then
|
---|
| 597 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
---|
| 598 | ac_prog_rejected=yes
|
---|
| 599 | continue
|
---|
| 600 | fi
|
---|
| 601 | ac_cv_prog_CC="cc"
|
---|
| 602 | break
|
---|
| 603 | fi
|
---|
| 604 | done
|
---|
| 605 | IFS="$ac_save_ifs"
|
---|
| 606 | if test $ac_prog_rejected = yes; then
|
---|
| 607 | # We found a bogon in the path, so make sure we never use it.
|
---|
| 608 | set dummy $ac_cv_prog_CC
|
---|
| 609 | shift
|
---|
| 610 | if test $# -gt 0; then
|
---|
| 611 | # We chose a different compiler from the bogus one.
|
---|
| 612 | # However, it has the same basename, so the bogon will be chosen
|
---|
| 613 | # first if we set CC to just the basename; use the full file name.
|
---|
| 614 | shift
|
---|
| 615 | set dummy "$ac_dir/$ac_word" "$@"
|
---|
| 616 | shift
|
---|
| 617 | ac_cv_prog_CC="$@"
|
---|
| 618 | fi
|
---|
| 619 | fi
|
---|
| 620 | fi
|
---|
| 621 | fi
|
---|
| 622 | CC="$ac_cv_prog_CC"
|
---|
| 623 | if test -n "$CC"; then
|
---|
| 624 | echo "$ac_t""$CC" 1>&6
|
---|
| 625 | else
|
---|
| 626 | echo "$ac_t""no" 1>&6
|
---|
| 627 | fi
|
---|
| 628 |
|
---|
| 629 | if test -z "$CC"; then
|
---|
| 630 | case "`uname -s`" in
|
---|
| 631 | *win32* | *WIN32*)
|
---|
| 632 | # Extract the first word of "cl", so it can be a program name with args.
|
---|
| 633 | set dummy cl; ac_word=$2
|
---|
| 634 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
[1732] | 635 | echo "configure:636: checking for $ac_word" >&5
|
---|
[1477] | 636 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
| 637 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 638 | else
|
---|
| 639 | if test -n "$CC"; then
|
---|
| 640 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 641 | else
|
---|
| 642 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
| 643 | ac_dummy="$PATH"
|
---|
| 644 | for ac_dir in $ac_dummy; do
|
---|
| 645 | test -z "$ac_dir" && ac_dir=.
|
---|
| 646 | if test -f $ac_dir/$ac_word; then
|
---|
| 647 | ac_cv_prog_CC="cl"
|
---|
| 648 | break
|
---|
| 649 | fi
|
---|
| 650 | done
|
---|
| 651 | IFS="$ac_save_ifs"
|
---|
| 652 | fi
|
---|
| 653 | fi
|
---|
| 654 | CC="$ac_cv_prog_CC"
|
---|
| 655 | if test -n "$CC"; then
|
---|
| 656 | echo "$ac_t""$CC" 1>&6
|
---|
| 657 | else
|
---|
| 658 | echo "$ac_t""no" 1>&6
|
---|
| 659 | fi
|
---|
| 660 | ;;
|
---|
| 661 | esac
|
---|
| 662 | fi
|
---|
| 663 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
---|
| 664 | fi
|
---|
| 665 |
|
---|
| 666 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
---|
[1732] | 667 | echo "configure:668: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
---|
[1477] | 668 |
|
---|
| 669 | ac_ext=c
|
---|
| 670 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
| 671 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 672 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
| 673 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
| 674 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
| 675 |
|
---|
| 676 | cat > conftest.$ac_ext << EOF
|
---|
| 677 |
|
---|
[1732] | 678 | #line 679 "configure"
|
---|
[1477] | 679 | #include "confdefs.h"
|
---|
| 680 |
|
---|
| 681 | main(){return(0);}
|
---|
| 682 | EOF
|
---|
[1732] | 683 | if { (eval echo configure:684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
[1477] | 684 | ac_cv_prog_cc_works=yes
|
---|
| 685 | # If we can't run a trivial program, we are probably using a cross compiler.
|
---|
| 686 | if (./conftest; exit) 2>/dev/null; then
|
---|
| 687 | ac_cv_prog_cc_cross=no
|
---|
| 688 | else
|
---|
| 689 | ac_cv_prog_cc_cross=yes
|
---|
| 690 | fi
|
---|
| 691 | else
|
---|
| 692 | echo "configure: failed program was:" >&5
|
---|
| 693 | cat conftest.$ac_ext >&5
|
---|
| 694 | ac_cv_prog_cc_works=no
|
---|
| 695 | fi
|
---|
| 696 | rm -fr conftest*
|
---|
| 697 | ac_ext=c
|
---|
| 698 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
| 699 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 700 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
| 701 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
| 702 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
| 703 |
|
---|
| 704 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
---|
| 705 | if test $ac_cv_prog_cc_works = no; then
|
---|
| 706 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
---|
| 707 | fi
|
---|
| 708 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
---|
[1732] | 709 | echo "configure:710: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
---|
[1477] | 710 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
---|
| 711 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
| 712 |
|
---|
| 713 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
---|
[1732] | 714 | echo "configure:715: checking whether we are using GNU C" >&5
|
---|
[1477] | 715 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
---|
| 716 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 717 | else
|
---|
| 718 | cat > conftest.c <<EOF
|
---|
| 719 | #ifdef __GNUC__
|
---|
| 720 | yes;
|
---|
| 721 | #endif
|
---|
| 722 | EOF
|
---|
[1732] | 723 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
[1477] | 724 | ac_cv_prog_gcc=yes
|
---|
| 725 | else
|
---|
| 726 | ac_cv_prog_gcc=no
|
---|
| 727 | fi
|
---|
| 728 | fi
|
---|
| 729 |
|
---|
| 730 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
---|
| 731 |
|
---|
| 732 | if test $ac_cv_prog_gcc = yes; then
|
---|
| 733 | GCC=yes
|
---|
| 734 | else
|
---|
| 735 | GCC=
|
---|
| 736 | fi
|
---|
| 737 |
|
---|
| 738 | ac_test_CFLAGS="${CFLAGS+set}"
|
---|
| 739 | ac_save_CFLAGS="$CFLAGS"
|
---|
| 740 | CFLAGS=
|
---|
| 741 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
---|
[1732] | 742 | echo "configure:743: checking whether ${CC-cc} accepts -g" >&5
|
---|
[1477] | 743 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
---|
| 744 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 745 | else
|
---|
| 746 | echo 'void f(){}' > conftest.c
|
---|
| 747 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
---|
| 748 | ac_cv_prog_cc_g=yes
|
---|
| 749 | else
|
---|
| 750 | ac_cv_prog_cc_g=no
|
---|
| 751 | fi
|
---|
| 752 | rm -f conftest*
|
---|
| 753 |
|
---|
| 754 | fi
|
---|
| 755 |
|
---|
| 756 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
---|
| 757 | if test "$ac_test_CFLAGS" = set; then
|
---|
| 758 | CFLAGS="$ac_save_CFLAGS"
|
---|
| 759 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
| 760 | if test "$GCC" = yes; then
|
---|
| 761 | CFLAGS="-g -O2"
|
---|
| 762 | else
|
---|
| 763 | CFLAGS="-g"
|
---|
| 764 | fi
|
---|
| 765 | else
|
---|
| 766 | if test "$GCC" = yes; then
|
---|
| 767 | CFLAGS="-O2"
|
---|
| 768 | else
|
---|
| 769 | CFLAGS=
|
---|
| 770 | fi
|
---|
| 771 | fi
|
---|
| 772 |
|
---|
[1407] | 773 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
|
---|
| 774 | do
|
---|
| 775 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 776 | set dummy $ac_prog; ac_word=$2
|
---|
| 777 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
[1732] | 778 | echo "configure:779: checking for $ac_word" >&5
|
---|
[1407] | 779 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
|
---|
| 780 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 781 | else
|
---|
| 782 | if test -n "$CXX"; then
|
---|
| 783 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
| 784 | else
|
---|
| 785 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
| 786 | ac_dummy="$PATH"
|
---|
| 787 | for ac_dir in $ac_dummy; do
|
---|
| 788 | test -z "$ac_dir" && ac_dir=.
|
---|
| 789 | if test -f $ac_dir/$ac_word; then
|
---|
| 790 | ac_cv_prog_CXX="$ac_prog"
|
---|
| 791 | break
|
---|
| 792 | fi
|
---|
| 793 | done
|
---|
| 794 | IFS="$ac_save_ifs"
|
---|
| 795 | fi
|
---|
| 796 | fi
|
---|
| 797 | CXX="$ac_cv_prog_CXX"
|
---|
| 798 | if test -n "$CXX"; then
|
---|
| 799 | echo "$ac_t""$CXX" 1>&6
|
---|
| 800 | else
|
---|
| 801 | echo "$ac_t""no" 1>&6
|
---|
| 802 | fi
|
---|
| 803 |
|
---|
| 804 | test -n "$CXX" && break
|
---|
| 805 | done
|
---|
| 806 | test -n "$CXX" || CXX="gcc"
|
---|
| 807 |
|
---|
| 808 |
|
---|
| 809 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
---|
[1732] | 810 | echo "configure:811: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
|
---|
[1407] | 811 |
|
---|
| 812 | ac_ext=C
|
---|
| 813 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
| 814 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
| 815 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
| 816 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
| 817 | cross_compiling=$ac_cv_prog_cxx_cross
|
---|
| 818 |
|
---|
| 819 | cat > conftest.$ac_ext << EOF
|
---|
| 820 |
|
---|
[1732] | 821 | #line 822 "configure"
|
---|
[1407] | 822 | #include "confdefs.h"
|
---|
| 823 |
|
---|
| 824 | int main(){return(0);}
|
---|
| 825 | EOF
|
---|
[1732] | 826 | if { (eval echo configure:827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
[1407] | 827 | ac_cv_prog_cxx_works=yes
|
---|
| 828 | # If we can't run a trivial program, we are probably using a cross compiler.
|
---|
| 829 | if (./conftest; exit) 2>/dev/null; then
|
---|
| 830 | ac_cv_prog_cxx_cross=no
|
---|
| 831 | else
|
---|
| 832 | ac_cv_prog_cxx_cross=yes
|
---|
| 833 | fi
|
---|
| 834 | else
|
---|
| 835 | echo "configure: failed program was:" >&5
|
---|
| 836 | cat conftest.$ac_ext >&5
|
---|
| 837 | ac_cv_prog_cxx_works=no
|
---|
| 838 | fi
|
---|
| 839 | rm -fr conftest*
|
---|
| 840 | ac_ext=c
|
---|
| 841 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
| 842 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 843 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
| 844 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
| 845 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
| 846 |
|
---|
| 847 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
|
---|
| 848 | if test $ac_cv_prog_cxx_works = no; then
|
---|
| 849 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
|
---|
| 850 | fi
|
---|
| 851 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
---|
[1732] | 852 | echo "configure:853: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
|
---|
[1407] | 853 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
|
---|
| 854 | cross_compiling=$ac_cv_prog_cxx_cross
|
---|
| 855 |
|
---|
| 856 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
|
---|
[1732] | 857 | echo "configure:858: checking whether we are using GNU C++" >&5
|
---|
[1407] | 858 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
|
---|
| 859 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 860 | else
|
---|
| 861 | cat > conftest.C <<EOF
|
---|
| 862 | #ifdef __GNUC__
|
---|
| 863 | yes;
|
---|
| 864 | #endif
|
---|
| 865 | EOF
|
---|
[1732] | 866 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
[1407] | 867 | ac_cv_prog_gxx=yes
|
---|
| 868 | else
|
---|
| 869 | ac_cv_prog_gxx=no
|
---|
| 870 | fi
|
---|
| 871 | fi
|
---|
| 872 |
|
---|
| 873 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6
|
---|
| 874 |
|
---|
| 875 | if test $ac_cv_prog_gxx = yes; then
|
---|
| 876 | GXX=yes
|
---|
| 877 | else
|
---|
| 878 | GXX=
|
---|
| 879 | fi
|
---|
| 880 |
|
---|
| 881 | ac_test_CXXFLAGS="${CXXFLAGS+set}"
|
---|
| 882 | ac_save_CXXFLAGS="$CXXFLAGS"
|
---|
| 883 | CXXFLAGS=
|
---|
| 884 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
|
---|
[1732] | 885 | echo "configure:886: checking whether ${CXX-g++} accepts -g" >&5
|
---|
[1407] | 886 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
|
---|
| 887 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 888 | else
|
---|
| 889 | echo 'void f(){}' > conftest.cc
|
---|
| 890 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
|
---|
| 891 | ac_cv_prog_cxx_g=yes
|
---|
| 892 | else
|
---|
| 893 | ac_cv_prog_cxx_g=no
|
---|
| 894 | fi
|
---|
| 895 | rm -f conftest*
|
---|
| 896 |
|
---|
| 897 | fi
|
---|
| 898 |
|
---|
| 899 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
|
---|
| 900 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
| 901 | CXXFLAGS="$ac_save_CXXFLAGS"
|
---|
| 902 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
| 903 | if test "$GXX" = yes; then
|
---|
| 904 | CXXFLAGS="-g -O2"
|
---|
| 905 | else
|
---|
| 906 | CXXFLAGS="-g"
|
---|
| 907 | fi
|
---|
| 908 | else
|
---|
| 909 | if test "$GXX" = yes; then
|
---|
| 910 | CXXFLAGS="-O2"
|
---|
| 911 | else
|
---|
| 912 | CXXFLAGS=
|
---|
| 913 | fi
|
---|
| 914 | fi
|
---|
| 915 |
|
---|
[1706] | 916 | # Extract the first word of "ar", so it can be a program name with args.
|
---|
| 917 | set dummy ar; ac_word=$2
|
---|
| 918 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
[1732] | 919 | echo "configure:920: checking for $ac_word" >&5
|
---|
[1706] | 920 | if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
|
---|
| 921 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 922 | else
|
---|
| 923 | case "$AR" in
|
---|
| 924 | /*)
|
---|
| 925 | ac_cv_path_AR="$AR" # Let the user override the test with a path.
|
---|
| 926 | ;;
|
---|
| 927 | ?:/*)
|
---|
| 928 | ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
|
---|
| 929 | ;;
|
---|
| 930 | *)
|
---|
| 931 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
| 932 | ac_dummy="/usr/bin:$PATH"
|
---|
| 933 | for ac_dir in $ac_dummy; do
|
---|
| 934 | test -z "$ac_dir" && ac_dir=.
|
---|
| 935 | if test -f $ac_dir/$ac_word; then
|
---|
| 936 | ac_cv_path_AR="$ac_dir/$ac_word"
|
---|
| 937 | break
|
---|
| 938 | fi
|
---|
| 939 | done
|
---|
| 940 | IFS="$ac_save_ifs"
|
---|
| 941 | test -z "$ac_cv_path_AR" && ac_cv_path_AR="/usr/bin/ar"
|
---|
| 942 | ;;
|
---|
| 943 | esac
|
---|
| 944 | fi
|
---|
| 945 | AR="$ac_cv_path_AR"
|
---|
| 946 | if test -n "$AR"; then
|
---|
| 947 | echo "$ac_t""$AR" 1>&6
|
---|
| 948 | else
|
---|
| 949 | echo "$ac_t""no" 1>&6
|
---|
| 950 | fi
|
---|
| 951 |
|
---|
[1707] | 952 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
| 953 | set dummy ranlib; ac_word=$2
|
---|
| 954 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
[1732] | 955 | echo "configure:956: checking for $ac_word" >&5
|
---|
[1707] | 956 | if eval "test \"`echo '$''{'ac_cv_path_RANLIB'+set}'`\" = set"; then
|
---|
| 957 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 958 | else
|
---|
| 959 | case "$RANLIB" in
|
---|
| 960 | /*)
|
---|
| 961 | ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
|
---|
| 962 | ;;
|
---|
| 963 | ?:/*)
|
---|
| 964 | ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a dos path.
|
---|
| 965 | ;;
|
---|
| 966 | *)
|
---|
| 967 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
| 968 | ac_dummy="/usr/bin:$PATH"
|
---|
| 969 | for ac_dir in $ac_dummy; do
|
---|
| 970 | test -z "$ac_dir" && ac_dir=.
|
---|
| 971 | if test -f $ac_dir/$ac_word; then
|
---|
| 972 | ac_cv_path_RANLIB="$ac_dir/$ac_word"
|
---|
| 973 | break
|
---|
| 974 | fi
|
---|
| 975 | done
|
---|
| 976 | IFS="$ac_save_ifs"
|
---|
| 977 | test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="/usr/bin/ranlib"
|
---|
| 978 | ;;
|
---|
| 979 | esac
|
---|
| 980 | fi
|
---|
| 981 | RANLIB="$ac_cv_path_RANLIB"
|
---|
| 982 | if test -n "$RANLIB"; then
|
---|
| 983 | echo "$ac_t""$RANLIB" 1>&6
|
---|
| 984 | else
|
---|
| 985 | echo "$ac_t""no" 1>&6
|
---|
| 986 | fi
|
---|
| 987 |
|
---|
[1745] | 988 | ac_aux_dir=
|
---|
| 989 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
| 990 | if test -f $ac_dir/install-sh; then
|
---|
| 991 | ac_aux_dir=$ac_dir
|
---|
| 992 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
| 993 | break
|
---|
| 994 | elif test -f $ac_dir/install.sh; then
|
---|
| 995 | ac_aux_dir=$ac_dir
|
---|
| 996 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
| 997 | break
|
---|
| 998 | fi
|
---|
| 999 | done
|
---|
| 1000 | if test -z "$ac_aux_dir"; then
|
---|
| 1001 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
---|
| 1002 | fi
|
---|
| 1003 | ac_config_guess=$ac_aux_dir/config.guess
|
---|
| 1004 | ac_config_sub=$ac_aux_dir/config.sub
|
---|
| 1005 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
---|
[1407] | 1006 |
|
---|
[1745] | 1007 | # Find a good install program. We prefer a C program (faster),
|
---|
| 1008 | # so one script is as good as another. But avoid the broken or
|
---|
| 1009 | # incompatible versions:
|
---|
| 1010 | # SysV /etc/install, /usr/sbin/install
|
---|
| 1011 | # SunOS /usr/etc/install
|
---|
| 1012 | # IRIX /sbin/install
|
---|
| 1013 | # AIX /bin/install
|
---|
| 1014 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
| 1015 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
| 1016 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
| 1017 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
| 1018 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
---|
| 1019 | echo "configure:1020: checking for a BSD compatible install" >&5
|
---|
| 1020 | if test -z "$INSTALL"; then
|
---|
| 1021 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
---|
| 1022 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1023 | else
|
---|
| 1024 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
|
---|
| 1025 | for ac_dir in $PATH; do
|
---|
| 1026 | # Account for people who put trailing slashes in PATH elements.
|
---|
| 1027 | case "$ac_dir/" in
|
---|
| 1028 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
---|
| 1029 | *)
|
---|
| 1030 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
| 1031 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
| 1032 | # by default.
|
---|
| 1033 | for ac_prog in ginstall scoinst install; do
|
---|
| 1034 | if test -f $ac_dir/$ac_prog; then
|
---|
| 1035 | if test $ac_prog = install &&
|
---|
| 1036 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
---|
| 1037 | # AIX install. It has an incompatible calling convention.
|
---|
| 1038 | :
|
---|
| 1039 | else
|
---|
| 1040 | ac_cv_path_install="$ac_dir/$ac_prog -c"
|
---|
| 1041 | break 2
|
---|
| 1042 | fi
|
---|
| 1043 | fi
|
---|
| 1044 | done
|
---|
| 1045 | ;;
|
---|
| 1046 | esac
|
---|
| 1047 | done
|
---|
| 1048 | IFS="$ac_save_IFS"
|
---|
| 1049 |
|
---|
| 1050 | fi
|
---|
| 1051 | if test "${ac_cv_path_install+set}" = set; then
|
---|
| 1052 | INSTALL="$ac_cv_path_install"
|
---|
| 1053 | else
|
---|
| 1054 | # As a last resort, use the slow shell script. We don't cache a
|
---|
| 1055 | # path for INSTALL within a source directory, because that will
|
---|
| 1056 | # break other packages using the cache if that directory is
|
---|
| 1057 | # removed, or if the path is relative.
|
---|
| 1058 | INSTALL="$ac_install_sh"
|
---|
| 1059 | fi
|
---|
| 1060 | fi
|
---|
| 1061 | echo "$ac_t""$INSTALL" 1>&6
|
---|
| 1062 |
|
---|
| 1063 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
| 1064 | # It thinks the first close brace ends the variable substitution.
|
---|
| 1065 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
| 1066 |
|
---|
| 1067 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
---|
| 1068 |
|
---|
| 1069 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
| 1070 |
|
---|
| 1071 |
|
---|
[1692] | 1072 | if test $GCC = "yes"; then
|
---|
| 1073 | gcc=$CC
|
---|
| 1074 | else
|
---|
| 1075 | gcc=gcc
|
---|
| 1076 | fi
|
---|
| 1077 |
|
---|
| 1078 |
|
---|
[1407] | 1079 | echo $ac_n "checking size of short""... $ac_c" 1>&6
|
---|
[1745] | 1080 | echo "configure:1081: checking size of short" >&5
|
---|
[1407] | 1081 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
|
---|
| 1082 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1083 | else
|
---|
| 1084 | if test "$cross_compiling" = yes; then
|
---|
| 1085 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
---|
| 1086 | else
|
---|
| 1087 | cat > conftest.$ac_ext <<EOF
|
---|
[1745] | 1088 | #line 1089 "configure"
|
---|
[1407] | 1089 | #include "confdefs.h"
|
---|
| 1090 | #include <stdio.h>
|
---|
| 1091 | main()
|
---|
| 1092 | {
|
---|
| 1093 | FILE *f=fopen("conftestval", "w");
|
---|
| 1094 | if (!f) exit(1);
|
---|
| 1095 | fprintf(f, "%d\n", sizeof(short));
|
---|
| 1096 | exit(0);
|
---|
| 1097 | }
|
---|
| 1098 | EOF
|
---|
[1745] | 1099 | if { (eval echo configure:1100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
[1407] | 1100 | then
|
---|
| 1101 | ac_cv_sizeof_short=`cat conftestval`
|
---|
| 1102 | else
|
---|
| 1103 | echo "configure: failed program was:" >&5
|
---|
| 1104 | cat conftest.$ac_ext >&5
|
---|
| 1105 | rm -fr conftest*
|
---|
| 1106 | ac_cv_sizeof_short=0
|
---|
| 1107 | fi
|
---|
| 1108 | rm -fr conftest*
|
---|
| 1109 | fi
|
---|
| 1110 |
|
---|
| 1111 | fi
|
---|
| 1112 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6
|
---|
| 1113 | cat >> confdefs.h <<EOF
|
---|
| 1114 | #define SIZEOF_SHORT $ac_cv_sizeof_short
|
---|
| 1115 | EOF
|
---|
| 1116 |
|
---|
| 1117 |
|
---|
| 1118 | echo $ac_n "checking size of int""... $ac_c" 1>&6
|
---|
[1745] | 1119 | echo "configure:1120: checking size of int" >&5
|
---|
[1407] | 1120 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
|
---|
| 1121 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1122 | else
|
---|
| 1123 | if test "$cross_compiling" = yes; then
|
---|
| 1124 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
---|
| 1125 | else
|
---|
| 1126 | cat > conftest.$ac_ext <<EOF
|
---|
[1745] | 1127 | #line 1128 "configure"
|
---|
[1407] | 1128 | #include "confdefs.h"
|
---|
| 1129 | #include <stdio.h>
|
---|
| 1130 | main()
|
---|
| 1131 | {
|
---|
| 1132 | FILE *f=fopen("conftestval", "w");
|
---|
| 1133 | if (!f) exit(1);
|
---|
| 1134 | fprintf(f, "%d\n", sizeof(int));
|
---|
| 1135 | exit(0);
|
---|
| 1136 | }
|
---|
| 1137 | EOF
|
---|
[1745] | 1138 | if { (eval echo configure:1139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
[1407] | 1139 | then
|
---|
| 1140 | ac_cv_sizeof_int=`cat conftestval`
|
---|
| 1141 | else
|
---|
| 1142 | echo "configure: failed program was:" >&5
|
---|
| 1143 | cat conftest.$ac_ext >&5
|
---|
| 1144 | rm -fr conftest*
|
---|
| 1145 | ac_cv_sizeof_int=0
|
---|
| 1146 | fi
|
---|
| 1147 | rm -fr conftest*
|
---|
| 1148 | fi
|
---|
| 1149 |
|
---|
| 1150 | fi
|
---|
| 1151 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6
|
---|
| 1152 | cat >> confdefs.h <<EOF
|
---|
| 1153 | #define SIZEOF_INT $ac_cv_sizeof_int
|
---|
| 1154 | EOF
|
---|
| 1155 |
|
---|
| 1156 |
|
---|
| 1157 | echo $ac_n "checking size of long""... $ac_c" 1>&6
|
---|
[1745] | 1158 | echo "configure:1159: checking size of long" >&5
|
---|
[1407] | 1159 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
|
---|
| 1160 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1161 | else
|
---|
| 1162 | if test "$cross_compiling" = yes; then
|
---|
| 1163 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
---|
| 1164 | else
|
---|
| 1165 | cat > conftest.$ac_ext <<EOF
|
---|
[1745] | 1166 | #line 1167 "configure"
|
---|
[1407] | 1167 | #include "confdefs.h"
|
---|
| 1168 | #include <stdio.h>
|
---|
| 1169 | main()
|
---|
| 1170 | {
|
---|
| 1171 | FILE *f=fopen("conftestval", "w");
|
---|
| 1172 | if (!f) exit(1);
|
---|
| 1173 | fprintf(f, "%d\n", sizeof(long));
|
---|
| 1174 | exit(0);
|
---|
| 1175 | }
|
---|
| 1176 | EOF
|
---|
[1745] | 1177 | if { (eval echo configure:1178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
[1407] | 1178 | then
|
---|
| 1179 | ac_cv_sizeof_long=`cat conftestval`
|
---|
| 1180 | else
|
---|
| 1181 | echo "configure: failed program was:" >&5
|
---|
| 1182 | cat conftest.$ac_ext >&5
|
---|
| 1183 | rm -fr conftest*
|
---|
| 1184 | ac_cv_sizeof_long=0
|
---|
| 1185 | fi
|
---|
| 1186 | rm -fr conftest*
|
---|
| 1187 | fi
|
---|
| 1188 |
|
---|
| 1189 | fi
|
---|
| 1190 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6
|
---|
| 1191 | cat >> confdefs.h <<EOF
|
---|
| 1192 | #define SIZEOF_LONG $ac_cv_sizeof_long
|
---|
| 1193 | EOF
|
---|
| 1194 |
|
---|
| 1195 |
|
---|
[1663] | 1196 | echo $ac_n "checking size of long long""... $ac_c" 1>&6
|
---|
[1745] | 1197 | echo "configure:1198: checking size of long long" >&5
|
---|
[1663] | 1198 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
|
---|
| 1199 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1200 | else
|
---|
| 1201 | if test "$cross_compiling" = yes; then
|
---|
| 1202 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
---|
| 1203 | else
|
---|
| 1204 | cat > conftest.$ac_ext <<EOF
|
---|
[1745] | 1205 | #line 1206 "configure"
|
---|
[1663] | 1206 | #include "confdefs.h"
|
---|
| 1207 | #include <stdio.h>
|
---|
| 1208 | main()
|
---|
| 1209 | {
|
---|
| 1210 | FILE *f=fopen("conftestval", "w");
|
---|
| 1211 | if (!f) exit(1);
|
---|
| 1212 | fprintf(f, "%d\n", sizeof(long long));
|
---|
| 1213 | exit(0);
|
---|
| 1214 | }
|
---|
| 1215 | EOF
|
---|
[1745] | 1216 | if { (eval echo configure:1217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
[1663] | 1217 | then
|
---|
| 1218 | ac_cv_sizeof_long_long=`cat conftestval`
|
---|
| 1219 | else
|
---|
| 1220 | echo "configure: failed program was:" >&5
|
---|
| 1221 | cat conftest.$ac_ext >&5
|
---|
| 1222 | rm -fr conftest*
|
---|
| 1223 | ac_cv_sizeof_long_long=0
|
---|
| 1224 | fi
|
---|
| 1225 | rm -fr conftest*
|
---|
| 1226 | fi
|
---|
| 1227 |
|
---|
| 1228 | fi
|
---|
| 1229 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
|
---|
| 1230 | cat >> confdefs.h <<EOF
|
---|
| 1231 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
|
---|
| 1232 | EOF
|
---|
| 1233 |
|
---|
| 1234 |
|
---|
[1407] | 1235 | echo $ac_n "checking size of float""... $ac_c" 1>&6
|
---|
[1745] | 1236 | echo "configure:1237: checking size of float" >&5
|
---|
[1407] | 1237 | if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
|
---|
| 1238 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1239 | else
|
---|
| 1240 | if test "$cross_compiling" = yes; then
|
---|
| 1241 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
---|
| 1242 | else
|
---|
| 1243 | cat > conftest.$ac_ext <<EOF
|
---|
[1745] | 1244 | #line 1245 "configure"
|
---|
[1407] | 1245 | #include "confdefs.h"
|
---|
| 1246 | #include <stdio.h>
|
---|
| 1247 | main()
|
---|
| 1248 | {
|
---|
| 1249 | FILE *f=fopen("conftestval", "w");
|
---|
| 1250 | if (!f) exit(1);
|
---|
| 1251 | fprintf(f, "%d\n", sizeof(float));
|
---|
| 1252 | exit(0);
|
---|
| 1253 | }
|
---|
| 1254 | EOF
|
---|
[1745] | 1255 | if { (eval echo configure:1256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
[1407] | 1256 | then
|
---|
| 1257 | ac_cv_sizeof_float=`cat conftestval`
|
---|
| 1258 | else
|
---|
| 1259 | echo "configure: failed program was:" >&5
|
---|
| 1260 | cat conftest.$ac_ext >&5
|
---|
| 1261 | rm -fr conftest*
|
---|
| 1262 | ac_cv_sizeof_float=0
|
---|
| 1263 | fi
|
---|
| 1264 | rm -fr conftest*
|
---|
| 1265 | fi
|
---|
| 1266 |
|
---|
| 1267 | fi
|
---|
| 1268 | echo "$ac_t""$ac_cv_sizeof_float" 1>&6
|
---|
| 1269 | cat >> confdefs.h <<EOF
|
---|
| 1270 | #define SIZEOF_FLOAT $ac_cv_sizeof_float
|
---|
| 1271 | EOF
|
---|
| 1272 |
|
---|
| 1273 |
|
---|
| 1274 | echo $ac_n "checking size of double""... $ac_c" 1>&6
|
---|
[1745] | 1275 | echo "configure:1276: checking size of double" >&5
|
---|
[1407] | 1276 | if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
|
---|
| 1277 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1278 | else
|
---|
| 1279 | if test "$cross_compiling" = yes; then
|
---|
| 1280 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
---|
| 1281 | else
|
---|
| 1282 | cat > conftest.$ac_ext <<EOF
|
---|
[1745] | 1283 | #line 1284 "configure"
|
---|
[1407] | 1284 | #include "confdefs.h"
|
---|
| 1285 | #include <stdio.h>
|
---|
| 1286 | main()
|
---|
| 1287 | {
|
---|
| 1288 | FILE *f=fopen("conftestval", "w");
|
---|
| 1289 | if (!f) exit(1);
|
---|
| 1290 | fprintf(f, "%d\n", sizeof(double));
|
---|
| 1291 | exit(0);
|
---|
| 1292 | }
|
---|
| 1293 | EOF
|
---|
[1745] | 1294 | if { (eval echo configure:1295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
[1407] | 1295 | then
|
---|
| 1296 | ac_cv_sizeof_double=`cat conftestval`
|
---|
| 1297 | else
|
---|
| 1298 | echo "configure: failed program was:" >&5
|
---|
| 1299 | cat conftest.$ac_ext >&5
|
---|
| 1300 | rm -fr conftest*
|
---|
| 1301 | ac_cv_sizeof_double=0
|
---|
| 1302 | fi
|
---|
| 1303 | rm -fr conftest*
|
---|
| 1304 | fi
|
---|
| 1305 |
|
---|
| 1306 | fi
|
---|
| 1307 | echo "$ac_t""$ac_cv_sizeof_double" 1>&6
|
---|
| 1308 | cat >> confdefs.h <<EOF
|
---|
| 1309 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double
|
---|
| 1310 | EOF
|
---|
| 1311 |
|
---|
| 1312 |
|
---|
| 1313 | echo $ac_n "checking size of long double""... $ac_c" 1>&6
|
---|
[1745] | 1314 | echo "configure:1315: checking size of long double" >&5
|
---|
[1407] | 1315 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
|
---|
| 1316 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1317 | else
|
---|
| 1318 | if test "$cross_compiling" = yes; then
|
---|
| 1319 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
---|
| 1320 | else
|
---|
| 1321 | cat > conftest.$ac_ext <<EOF
|
---|
[1745] | 1322 | #line 1323 "configure"
|
---|
[1407] | 1323 | #include "confdefs.h"
|
---|
| 1324 | #include <stdio.h>
|
---|
| 1325 | main()
|
---|
| 1326 | {
|
---|
| 1327 | FILE *f=fopen("conftestval", "w");
|
---|
| 1328 | if (!f) exit(1);
|
---|
| 1329 | fprintf(f, "%d\n", sizeof(long double));
|
---|
| 1330 | exit(0);
|
---|
| 1331 | }
|
---|
| 1332 | EOF
|
---|
[1745] | 1333 | if { (eval echo configure:1334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
[1407] | 1334 | then
|
---|
| 1335 | ac_cv_sizeof_long_double=`cat conftestval`
|
---|
| 1336 | else
|
---|
| 1337 | echo "configure: failed program was:" >&5
|
---|
| 1338 | cat conftest.$ac_ext >&5
|
---|
| 1339 | rm -fr conftest*
|
---|
| 1340 | ac_cv_sizeof_long_double=0
|
---|
| 1341 | fi
|
---|
| 1342 | rm -fr conftest*
|
---|
| 1343 | fi
|
---|
| 1344 |
|
---|
| 1345 | fi
|
---|
| 1346 | echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
|
---|
| 1347 | cat >> confdefs.h <<EOF
|
---|
| 1348 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
|
---|
| 1349 | EOF
|
---|
| 1350 |
|
---|
| 1351 |
|
---|
| 1352 |
|
---|
| 1353 |
|
---|
| 1354 | echo $ac_n "checking "for cfitsio lib"""... $ac_c" 1>&6
|
---|
[1745] | 1355 | echo "configure:1356: checking "for cfitsio lib"" >&5
|
---|
[1407] | 1356 | MACHDIR=`uname`-$CXX
|
---|
| 1357 | if test -f $ARCHBASEREP/$MACHDIR/Libs/libcfitsio.a; then
|
---|
| 1358 | cfitslibdir='-L$(ARCHBASEREP)/$(MACHDIR)/Libs'
|
---|
[1730] | 1359 | elif test -f $EXTLIBDIR/$MACHDIR/Libs/libcfitsio.a; then
|
---|
| 1360 | cfitslibdir='-L$(EXTLIBDIR)/$(MACHDIR)/Libs'
|
---|
[1407] | 1361 | elif test -f $CFITSIOLIBDIR/$MACHDIR/Libs/libcfitsio.a; then
|
---|
| 1362 | cfitslibdir='-L$(CFITSIOLIBDIR)/$(MACHDIR)/Libs'
|
---|
| 1363 | elif test -f $CFITSIOLIBDIR/$MACHDIR/libcfitsio.a; then
|
---|
| 1364 | cfitslibdir='-L$(CFITSIOLIBDIR)/$(MACHDIR)'
|
---|
| 1365 | elif test -f $CFITSIOLIBDIR/`uname`/lib/libcfitsio.a; then
|
---|
| 1366 | cfitslibdir='-L$(CFITSIOLIBDIR)/'`uname`/lib
|
---|
| 1367 | elif test -f $CFITSIOLIBDIR/`uname`/libcfitsio.a; then
|
---|
| 1368 | cfitslibdir='-L$(CFITSIOLIBDIR)/'`uname`
|
---|
| 1369 | elif test -f $CFITSIOLIBDIR/libcfitsio.a; then
|
---|
| 1370 | cfitslibdir='-L$(CFITSIOLIBDIR)'
|
---|
| 1371 | elif test -f $CFITSIODIR/libcfitsio.a; then
|
---|
| 1372 | cfitslibdir='-L$(CFITSIODIR)'
|
---|
| 1373 | elif test -f /usr/local/lib/libcfitsio.a; then
|
---|
| 1374 | cfitslibdir=""
|
---|
| 1375 | else
|
---|
| 1376 | { echo "configure: error: "Cannot find cfitsio library"" 1>&2; exit 1; }
|
---|
| 1377 | fi
|
---|
| 1378 | echo "$ac_t""$cfitslibdir" 1>&6
|
---|
| 1379 |
|
---|
| 1380 |
|
---|
| 1381 | echo $ac_n "checking "for cfitsio includes"""... $ac_c" 1>&6
|
---|
[1745] | 1382 | echo "configure:1383: checking "for cfitsio includes"" >&5
|
---|
[1407] | 1383 | if test -f $CFITSIODIR/fitsio.h; then
|
---|
| 1384 | cfitsincdir='-I$(CFITSIODIR)'
|
---|
[1730] | 1385 | elif test -f $EXTLIBDIR/Include/FitsIO/fitsio.h; then
|
---|
[1738] | 1386 | cfitsincdir='-I$(EXTLIBDIR)/Include/FitsIO'
|
---|
[1407] | 1387 | elif test -f /usr/local/include/fitsio.h; then
|
---|
| 1388 | cfitsincdir=""
|
---|
| 1389 | else
|
---|
| 1390 | { echo "configure: error: "Cannot find cfitsio include fitsio.h"" 1>&2; exit 1; }
|
---|
| 1391 | fi
|
---|
| 1392 | echo "$ac_t""$cfitsincdir" 1>&6
|
---|
| 1393 |
|
---|
| 1394 |
|
---|
| 1395 | echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
|
---|
[1745] | 1396 | echo "configure:1397: checking for sin in -lm" >&5
|
---|
[1407] | 1397 | ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
|
---|
| 1398 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
| 1399 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1400 | else
|
---|
| 1401 | ac_save_LIBS="$LIBS"
|
---|
| 1402 | LIBS="-lm $LIBS"
|
---|
| 1403 | cat > conftest.$ac_ext <<EOF
|
---|
[1745] | 1404 | #line 1405 "configure"
|
---|
[1407] | 1405 | #include "confdefs.h"
|
---|
| 1406 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 1407 | /* We use char because int might match the return type of a gcc2
|
---|
| 1408 | builtin and then its argument prototype would still apply. */
|
---|
| 1409 | char sin();
|
---|
| 1410 |
|
---|
| 1411 | int main() {
|
---|
| 1412 | sin()
|
---|
| 1413 | ; return 0; }
|
---|
| 1414 | EOF
|
---|
[1745] | 1415 | if { (eval echo configure:1416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
[1407] | 1416 | rm -rf conftest*
|
---|
| 1417 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
| 1418 | else
|
---|
| 1419 | echo "configure: failed program was:" >&5
|
---|
| 1420 | cat conftest.$ac_ext >&5
|
---|
| 1421 | rm -rf conftest*
|
---|
| 1422 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
| 1423 | fi
|
---|
| 1424 | rm -f conftest*
|
---|
| 1425 | LIBS="$ac_save_LIBS"
|
---|
| 1426 |
|
---|
| 1427 | fi
|
---|
| 1428 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
| 1429 | echo "$ac_t""yes" 1>&6
|
---|
| 1430 | ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
---|
| 1431 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
---|
| 1432 | cat >> confdefs.h <<EOF
|
---|
| 1433 | #define $ac_tr_lib 1
|
---|
| 1434 | EOF
|
---|
| 1435 |
|
---|
| 1436 | LIBS="-lm $LIBS"
|
---|
| 1437 |
|
---|
| 1438 | else
|
---|
| 1439 | echo "$ac_t""no" 1>&6
|
---|
| 1440 | fi
|
---|
| 1441 |
|
---|
[1732] | 1442 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
|
---|
[1745] | 1443 | echo "configure:1444: checking for pthread_create in -lpthread" >&5
|
---|
[1732] | 1444 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
|
---|
| 1445 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
| 1446 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1447 | else
|
---|
| 1448 | ac_save_LIBS="$LIBS"
|
---|
| 1449 | LIBS="-lpthread $LIBS"
|
---|
| 1450 | cat > conftest.$ac_ext <<EOF
|
---|
[1745] | 1451 | #line 1452 "configure"
|
---|
[1732] | 1452 | #include "confdefs.h"
|
---|
| 1453 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 1454 | /* We use char because int might match the return type of a gcc2
|
---|
| 1455 | builtin and then its argument prototype would still apply. */
|
---|
| 1456 | char pthread_create();
|
---|
[1407] | 1457 |
|
---|
[1732] | 1458 | int main() {
|
---|
| 1459 | pthread_create()
|
---|
| 1460 | ; return 0; }
|
---|
| 1461 | EOF
|
---|
[1745] | 1462 | if { (eval echo configure:1463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
[1732] | 1463 | rm -rf conftest*
|
---|
| 1464 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
| 1465 | else
|
---|
| 1466 | echo "configure: failed program was:" >&5
|
---|
| 1467 | cat conftest.$ac_ext >&5
|
---|
| 1468 | rm -rf conftest*
|
---|
| 1469 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
| 1470 | fi
|
---|
| 1471 | rm -f conftest*
|
---|
| 1472 | LIBS="$ac_save_LIBS"
|
---|
| 1473 |
|
---|
| 1474 | fi
|
---|
| 1475 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
| 1476 | echo "$ac_t""yes" 1>&6
|
---|
| 1477 | ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
---|
| 1478 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
---|
| 1479 | cat >> confdefs.h <<EOF
|
---|
| 1480 | #define $ac_tr_lib 1
|
---|
| 1481 | EOF
|
---|
| 1482 |
|
---|
| 1483 | LIBS="-lpthread $LIBS"
|
---|
| 1484 |
|
---|
| 1485 | else
|
---|
| 1486 | echo "$ac_t""no" 1>&6
|
---|
| 1487 | fi
|
---|
| 1488 |
|
---|
| 1489 | echo $ac_n "checking for scopy_ in -lblas""... $ac_c" 1>&6
|
---|
[1745] | 1490 | echo "configure:1491: checking for scopy_ in -lblas" >&5
|
---|
[1732] | 1491 | ac_lib_var=`echo blas'_'scopy_ | sed 'y%./+-%__p_%'`
|
---|
| 1492 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
| 1493 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1494 | else
|
---|
| 1495 | ac_save_LIBS="$LIBS"
|
---|
| 1496 | LIBS="-lblas $LIBS"
|
---|
| 1497 | cat > conftest.$ac_ext <<EOF
|
---|
[1745] | 1498 | #line 1499 "configure"
|
---|
[1732] | 1499 | #include "confdefs.h"
|
---|
| 1500 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 1501 | /* We use char because int might match the return type of a gcc2
|
---|
| 1502 | builtin and then its argument prototype would still apply. */
|
---|
| 1503 | char scopy_();
|
---|
| 1504 |
|
---|
| 1505 | int main() {
|
---|
| 1506 | scopy_()
|
---|
| 1507 | ; return 0; }
|
---|
| 1508 | EOF
|
---|
[1745] | 1509 | if { (eval echo configure:1510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
[1732] | 1510 | rm -rf conftest*
|
---|
| 1511 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
| 1512 | else
|
---|
| 1513 | echo "configure: failed program was:" >&5
|
---|
| 1514 | cat conftest.$ac_ext >&5
|
---|
| 1515 | rm -rf conftest*
|
---|
| 1516 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
| 1517 | fi
|
---|
| 1518 | rm -f conftest*
|
---|
| 1519 | LIBS="$ac_save_LIBS"
|
---|
| 1520 |
|
---|
| 1521 | fi
|
---|
| 1522 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
| 1523 | echo "$ac_t""yes" 1>&6
|
---|
| 1524 | ac_tr_lib=HAVE_LIB`echo blas | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
---|
| 1525 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
---|
| 1526 | cat >> confdefs.h <<EOF
|
---|
| 1527 | #define $ac_tr_lib 1
|
---|
| 1528 | EOF
|
---|
| 1529 |
|
---|
| 1530 | LIBS="-lblas $LIBS"
|
---|
| 1531 |
|
---|
| 1532 | else
|
---|
| 1533 | echo "$ac_t""no" 1>&6
|
---|
| 1534 | fi
|
---|
| 1535 |
|
---|
| 1536 | echo $ac_n "checking for s_copy in -lg2c""... $ac_c" 1>&6
|
---|
[1745] | 1537 | echo "configure:1538: checking for s_copy in -lg2c" >&5
|
---|
[1732] | 1538 | ac_lib_var=`echo g2c'_'s_copy | sed 'y%./+-%__p_%'`
|
---|
| 1539 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
| 1540 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1541 | else
|
---|
| 1542 | ac_save_LIBS="$LIBS"
|
---|
| 1543 | LIBS="-lg2c $LIBS"
|
---|
| 1544 | cat > conftest.$ac_ext <<EOF
|
---|
[1745] | 1545 | #line 1546 "configure"
|
---|
[1732] | 1546 | #include "confdefs.h"
|
---|
| 1547 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 1548 | /* We use char because int might match the return type of a gcc2
|
---|
| 1549 | builtin and then its argument prototype would still apply. */
|
---|
| 1550 | char s_copy();
|
---|
| 1551 |
|
---|
| 1552 | int main() {
|
---|
| 1553 | s_copy()
|
---|
| 1554 | ; return 0; }
|
---|
| 1555 | EOF
|
---|
[1745] | 1556 | if { (eval echo configure:1557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
[1732] | 1557 | rm -rf conftest*
|
---|
| 1558 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
| 1559 | else
|
---|
| 1560 | echo "configure: failed program was:" >&5
|
---|
| 1561 | cat conftest.$ac_ext >&5
|
---|
| 1562 | rm -rf conftest*
|
---|
| 1563 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
| 1564 | fi
|
---|
| 1565 | rm -f conftest*
|
---|
| 1566 | LIBS="$ac_save_LIBS"
|
---|
| 1567 |
|
---|
| 1568 | fi
|
---|
| 1569 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
| 1570 | echo "$ac_t""yes" 1>&6
|
---|
| 1571 | ac_tr_lib=HAVE_LIB`echo g2c | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
---|
| 1572 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
---|
| 1573 | cat >> confdefs.h <<EOF
|
---|
| 1574 | #define $ac_tr_lib 1
|
---|
| 1575 | EOF
|
---|
| 1576 |
|
---|
| 1577 | LIBS="-lg2c $LIBS"
|
---|
| 1578 |
|
---|
| 1579 | else
|
---|
| 1580 | echo "$ac_t""no" 1>&6
|
---|
| 1581 | fi
|
---|
| 1582 |
|
---|
| 1583 |
|
---|
[1407] | 1584 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
---|
[1745] | 1585 | echo "configure:1586: checking how to run the C preprocessor" >&5
|
---|
[1407] | 1586 | # On Suns, sometimes $CPP names a directory.
|
---|
| 1587 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
| 1588 | CPP=
|
---|
| 1589 | fi
|
---|
| 1590 | if test -z "$CPP"; then
|
---|
| 1591 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
---|
| 1592 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1593 | else
|
---|
| 1594 | # This must be in double quotes, not single quotes, because CPP may get
|
---|
| 1595 | # substituted into the Makefile and "${CC-cc}" will confuse make.
|
---|
| 1596 | CPP="${CC-cc} -E"
|
---|
| 1597 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 1598 | # not just through cpp.
|
---|
| 1599 | cat > conftest.$ac_ext <<EOF
|
---|
[1745] | 1600 | #line 1601 "configure"
|
---|
[1407] | 1601 | #include "confdefs.h"
|
---|
| 1602 | #include <assert.h>
|
---|
| 1603 | Syntax Error
|
---|
| 1604 | EOF
|
---|
| 1605 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
[1745] | 1606 | { (eval echo configure:1607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
[1407] | 1607 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
| 1608 | if test -z "$ac_err"; then
|
---|
| 1609 | :
|
---|
| 1610 | else
|
---|
| 1611 | echo "$ac_err" >&5
|
---|
| 1612 | echo "configure: failed program was:" >&5
|
---|
| 1613 | cat conftest.$ac_ext >&5
|
---|
| 1614 | rm -rf conftest*
|
---|
| 1615 | CPP="${CC-cc} -E -traditional-cpp"
|
---|
| 1616 | cat > conftest.$ac_ext <<EOF
|
---|
[1745] | 1617 | #line 1618 "configure"
|
---|
[1407] | 1618 | #include "confdefs.h"
|
---|
| 1619 | #include <assert.h>
|
---|
| 1620 | Syntax Error
|
---|
| 1621 | EOF
|
---|
| 1622 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
[1745] | 1623 | { (eval echo configure:1624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
[1407] | 1624 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
| 1625 | if test -z "$ac_err"; then
|
---|
| 1626 | :
|
---|
| 1627 | else
|
---|
| 1628 | echo "$ac_err" >&5
|
---|
| 1629 | echo "configure: failed program was:" >&5
|
---|
| 1630 | cat conftest.$ac_ext >&5
|
---|
| 1631 | rm -rf conftest*
|
---|
| 1632 | CPP="${CC-cc} -nologo -E"
|
---|
| 1633 | cat > conftest.$ac_ext <<EOF
|
---|
[1745] | 1634 | #line 1635 "configure"
|
---|
[1407] | 1635 | #include "confdefs.h"
|
---|
| 1636 | #include <assert.h>
|
---|
| 1637 | Syntax Error
|
---|
| 1638 | EOF
|
---|
| 1639 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
[1745] | 1640 | { (eval echo configure:1641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
[1407] | 1641 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
| 1642 | if test -z "$ac_err"; then
|
---|
| 1643 | :
|
---|
| 1644 | else
|
---|
| 1645 | echo "$ac_err" >&5
|
---|
| 1646 | echo "configure: failed program was:" >&5
|
---|
| 1647 | cat conftest.$ac_ext >&5
|
---|
| 1648 | rm -rf conftest*
|
---|
| 1649 | CPP=/lib/cpp
|
---|
| 1650 | fi
|
---|
| 1651 | rm -f conftest*
|
---|
| 1652 | fi
|
---|
| 1653 | rm -f conftest*
|
---|
| 1654 | fi
|
---|
| 1655 | rm -f conftest*
|
---|
| 1656 | ac_cv_prog_CPP="$CPP"
|
---|
| 1657 | fi
|
---|
| 1658 | CPP="$ac_cv_prog_CPP"
|
---|
| 1659 | else
|
---|
| 1660 | ac_cv_prog_CPP="$CPP"
|
---|
| 1661 | fi
|
---|
| 1662 | echo "$ac_t""$CPP" 1>&6
|
---|
| 1663 |
|
---|
| 1664 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
---|
[1745] | 1665 | echo "configure:1666: checking for ANSI C header files" >&5
|
---|
[1407] | 1666 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
---|
| 1667 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1668 | else
|
---|
| 1669 | cat > conftest.$ac_ext <<EOF
|
---|
[1745] | 1670 | #line 1671 "configure"
|
---|
[1407] | 1671 | #include "confdefs.h"
|
---|
| 1672 | #include <stdlib.h>
|
---|
| 1673 | #include <stdarg.h>
|
---|
| 1674 | #include <string.h>
|
---|
| 1675 | #include <float.h>
|
---|
| 1676 | EOF
|
---|
| 1677 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
[1745] | 1678 | { (eval echo configure:1679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
[1407] | 1679 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
| 1680 | if test -z "$ac_err"; then
|
---|
| 1681 | rm -rf conftest*
|
---|
| 1682 | ac_cv_header_stdc=yes
|
---|
| 1683 | else
|
---|
| 1684 | echo "$ac_err" >&5
|
---|
| 1685 | echo "configure: failed program was:" >&5
|
---|
| 1686 | cat conftest.$ac_ext >&5
|
---|
| 1687 | rm -rf conftest*
|
---|
| 1688 | ac_cv_header_stdc=no
|
---|
| 1689 | fi
|
---|
| 1690 | rm -f conftest*
|
---|
| 1691 |
|
---|
| 1692 | if test $ac_cv_header_stdc = yes; then
|
---|
| 1693 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
| 1694 | cat > conftest.$ac_ext <<EOF
|
---|
[1745] | 1695 | #line 1696 "configure"
|
---|
[1407] | 1696 | #include "confdefs.h"
|
---|
| 1697 | #include <string.h>
|
---|
| 1698 | EOF
|
---|
| 1699 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 1700 | egrep "memchr" >/dev/null 2>&1; then
|
---|
| 1701 | :
|
---|
| 1702 | else
|
---|
| 1703 | rm -rf conftest*
|
---|
| 1704 | ac_cv_header_stdc=no
|
---|
| 1705 | fi
|
---|
| 1706 | rm -f conftest*
|
---|
| 1707 |
|
---|
| 1708 | fi
|
---|
| 1709 |
|
---|
| 1710 | if test $ac_cv_header_stdc = yes; then
|
---|
| 1711 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
| 1712 | cat > conftest.$ac_ext <<EOF
|
---|
[1745] | 1713 | #line 1714 "configure"
|
---|
[1407] | 1714 | #include "confdefs.h"
|
---|
| 1715 | #include <stdlib.h>
|
---|
| 1716 | EOF
|
---|
| 1717 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 1718 | egrep "free" >/dev/null 2>&1; then
|
---|
| 1719 | :
|
---|
| 1720 | else
|
---|
| 1721 | rm -rf conftest*
|
---|
| 1722 | ac_cv_header_stdc=no
|
---|
| 1723 | fi
|
---|
| 1724 | rm -f conftest*
|
---|
| 1725 |
|
---|
| 1726 | fi
|
---|
| 1727 |
|
---|
| 1728 | if test $ac_cv_header_stdc = yes; then
|
---|
| 1729 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
| 1730 | if test "$cross_compiling" = yes; then
|
---|
| 1731 | :
|
---|
| 1732 | else
|
---|
| 1733 | cat > conftest.$ac_ext <<EOF
|
---|
[1745] | 1734 | #line 1735 "configure"
|
---|
[1407] | 1735 | #include "confdefs.h"
|
---|
| 1736 | #include <ctype.h>
|
---|
| 1737 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 1738 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 1739 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 1740 | int main () { int i; for (i = 0; i < 256; i++)
|
---|
| 1741 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
---|
| 1742 | exit (0); }
|
---|
| 1743 |
|
---|
| 1744 | EOF
|
---|
[1745] | 1745 | if { (eval echo configure:1746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
[1407] | 1746 | then
|
---|
| 1747 | :
|
---|
| 1748 | else
|
---|
| 1749 | echo "configure: failed program was:" >&5
|
---|
| 1750 | cat conftest.$ac_ext >&5
|
---|
| 1751 | rm -fr conftest*
|
---|
| 1752 | ac_cv_header_stdc=no
|
---|
| 1753 | fi
|
---|
| 1754 | rm -fr conftest*
|
---|
| 1755 | fi
|
---|
| 1756 |
|
---|
| 1757 | fi
|
---|
| 1758 | fi
|
---|
| 1759 |
|
---|
| 1760 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
---|
| 1761 | if test $ac_cv_header_stdc = yes; then
|
---|
| 1762 | cat >> confdefs.h <<\EOF
|
---|
| 1763 | #define STDC_HEADERS 1
|
---|
| 1764 | EOF
|
---|
| 1765 |
|
---|
| 1766 | fi
|
---|
| 1767 |
|
---|
[1685] | 1768 | for ac_hdr in values.h stdint.h
|
---|
[1663] | 1769 | do
|
---|
| 1770 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
| 1771 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
[1745] | 1772 | echo "configure:1773: checking for $ac_hdr" >&5
|
---|
[1663] | 1773 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
| 1774 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1775 | else
|
---|
| 1776 | cat > conftest.$ac_ext <<EOF
|
---|
[1745] | 1777 | #line 1778 "configure"
|
---|
[1663] | 1778 | #include "confdefs.h"
|
---|
| 1779 | #include <$ac_hdr>
|
---|
| 1780 | EOF
|
---|
| 1781 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
[1745] | 1782 | { (eval echo configure:1783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
[1663] | 1783 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
| 1784 | if test -z "$ac_err"; then
|
---|
| 1785 | rm -rf conftest*
|
---|
| 1786 | eval "ac_cv_header_$ac_safe=yes"
|
---|
| 1787 | else
|
---|
| 1788 | echo "$ac_err" >&5
|
---|
| 1789 | echo "configure: failed program was:" >&5
|
---|
| 1790 | cat conftest.$ac_ext >&5
|
---|
| 1791 | rm -rf conftest*
|
---|
| 1792 | eval "ac_cv_header_$ac_safe=no"
|
---|
| 1793 | fi
|
---|
| 1794 | rm -f conftest*
|
---|
| 1795 | fi
|
---|
| 1796 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
| 1797 | echo "$ac_t""yes" 1>&6
|
---|
| 1798 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
| 1799 | cat >> confdefs.h <<EOF
|
---|
| 1800 | #define $ac_tr_hdr 1
|
---|
| 1801 | EOF
|
---|
| 1802 |
|
---|
| 1803 | else
|
---|
| 1804 | echo "$ac_t""no" 1>&6
|
---|
| 1805 | fi
|
---|
| 1806 | done
|
---|
[1407] | 1807 |
|
---|
[1663] | 1808 |
|
---|
[1477] | 1809 | outfiles="Makefile kernel/Makefile processors/Makefile pipes/Makefile"
|
---|
| 1810 | if [ $use_sophya = 1 ]; then
|
---|
| 1811 | outfiles="$outfiles sophya/Makefile"
|
---|
| 1812 | fi
|
---|
| 1813 |
|
---|
[1407] | 1814 | trap '' 1 2 15
|
---|
| 1815 | cat > confcache <<\EOF
|
---|
| 1816 | # This file is a shell script that caches the results of configure
|
---|
| 1817 | # tests run on this system so they can be shared between configure
|
---|
| 1818 | # scripts and configure runs. It is not useful on other systems.
|
---|
| 1819 | # If it contains results you don't want to keep, you may remove or edit it.
|
---|
| 1820 | #
|
---|
| 1821 | # By default, configure uses ./config.cache as the cache file,
|
---|
| 1822 | # creating it if it does not exist already. You can give configure
|
---|
| 1823 | # the --cache-file=FILE option to use a different cache file; that is
|
---|
| 1824 | # what configure does when it calls configure scripts in
|
---|
| 1825 | # subdirectories, so they share the cache.
|
---|
| 1826 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
---|
| 1827 | # config.status only pays attention to the cache file if you give it the
|
---|
| 1828 | # --recheck option to rerun configure.
|
---|
| 1829 | #
|
---|
| 1830 | EOF
|
---|
| 1831 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 1832 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
| 1833 | # So, don't put newlines in cache variables' values.
|
---|
| 1834 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
| 1835 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
| 1836 | (set) 2>&1 |
|
---|
| 1837 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
| 1838 | *ac_space=\ *)
|
---|
| 1839 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
---|
| 1840 | # turns \\\\ into \\, and sed turns \\ into \).
|
---|
| 1841 | sed -n \
|
---|
| 1842 | -e "s/'/'\\\\''/g" \
|
---|
| 1843 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
---|
| 1844 | ;;
|
---|
| 1845 | *)
|
---|
| 1846 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
| 1847 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
---|
| 1848 | ;;
|
---|
| 1849 | esac >> confcache
|
---|
| 1850 | if cmp -s $cache_file confcache; then
|
---|
| 1851 | :
|
---|
| 1852 | else
|
---|
| 1853 | if test -w $cache_file; then
|
---|
| 1854 | echo "updating cache $cache_file"
|
---|
| 1855 | cat confcache > $cache_file
|
---|
| 1856 | else
|
---|
| 1857 | echo "not updating unwritable cache $cache_file"
|
---|
| 1858 | fi
|
---|
| 1859 | fi
|
---|
| 1860 | rm -f confcache
|
---|
| 1861 |
|
---|
| 1862 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
| 1863 |
|
---|
| 1864 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
| 1865 | # Let make expand exec_prefix.
|
---|
| 1866 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
| 1867 |
|
---|
| 1868 | # Any assignment to VPATH causes Sun make to only execute
|
---|
| 1869 | # the first set of double-colon rules, so remove it if not needed.
|
---|
| 1870 | # If there is a colon in the path, we need to keep it.
|
---|
| 1871 | if test "x$srcdir" = x.; then
|
---|
| 1872 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
---|
| 1873 | fi
|
---|
| 1874 |
|
---|
| 1875 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
---|
| 1876 |
|
---|
| 1877 | DEFS=-DHAVE_CONFIG_H
|
---|
| 1878 |
|
---|
| 1879 | # Without the "./", some shells look in PATH for config.status.
|
---|
| 1880 | : ${CONFIG_STATUS=./config.status}
|
---|
| 1881 |
|
---|
| 1882 | echo creating $CONFIG_STATUS
|
---|
| 1883 | rm -f $CONFIG_STATUS
|
---|
| 1884 | cat > $CONFIG_STATUS <<EOF
|
---|
| 1885 | #! /bin/sh
|
---|
| 1886 | # Generated automatically by configure.
|
---|
| 1887 | # Run this file to recreate the current configuration.
|
---|
| 1888 | # This directory was configured as follows,
|
---|
| 1889 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
---|
| 1890 | #
|
---|
| 1891 | # $0 $ac_configure_args
|
---|
| 1892 | #
|
---|
| 1893 | # Compiler output produced by configure, useful for debugging
|
---|
| 1894 | # configure, is in ./config.log if it exists.
|
---|
| 1895 |
|
---|
| 1896 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
---|
| 1897 | for ac_option
|
---|
| 1898 | do
|
---|
| 1899 | case "\$ac_option" in
|
---|
| 1900 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
| 1901 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
---|
| 1902 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
---|
| 1903 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
---|
| 1904 | echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
---|
| 1905 | exit 0 ;;
|
---|
| 1906 | -help | --help | --hel | --he | --h)
|
---|
| 1907 | echo "\$ac_cs_usage"; exit 0 ;;
|
---|
| 1908 | *) echo "\$ac_cs_usage"; exit 1 ;;
|
---|
| 1909 | esac
|
---|
| 1910 | done
|
---|
| 1911 |
|
---|
| 1912 | ac_given_srcdir=$srcdir
|
---|
[1745] | 1913 | ac_given_INSTALL="$INSTALL"
|
---|
[1407] | 1914 |
|
---|
[1477] | 1915 | trap 'rm -fr `echo "$outfiles conf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
---|
[1407] | 1916 | EOF
|
---|
| 1917 | cat >> $CONFIG_STATUS <<EOF
|
---|
| 1918 |
|
---|
| 1919 | # Protect against being on the right side of a sed subst in config.status.
|
---|
| 1920 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
---|
| 1921 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
---|
| 1922 | $ac_vpsub
|
---|
| 1923 | $extrasub
|
---|
| 1924 | s%@SHELL@%$SHELL%g
|
---|
| 1925 | s%@CFLAGS@%$CFLAGS%g
|
---|
| 1926 | s%@CPPFLAGS@%$CPPFLAGS%g
|
---|
| 1927 | s%@CXXFLAGS@%$CXXFLAGS%g
|
---|
| 1928 | s%@FFLAGS@%$FFLAGS%g
|
---|
| 1929 | s%@DEFS@%$DEFS%g
|
---|
| 1930 | s%@LDFLAGS@%$LDFLAGS%g
|
---|
| 1931 | s%@LIBS@%$LIBS%g
|
---|
| 1932 | s%@exec_prefix@%$exec_prefix%g
|
---|
| 1933 | s%@prefix@%$prefix%g
|
---|
| 1934 | s%@program_transform_name@%$program_transform_name%g
|
---|
| 1935 | s%@bindir@%$bindir%g
|
---|
| 1936 | s%@sbindir@%$sbindir%g
|
---|
| 1937 | s%@libexecdir@%$libexecdir%g
|
---|
| 1938 | s%@datadir@%$datadir%g
|
---|
| 1939 | s%@sysconfdir@%$sysconfdir%g
|
---|
| 1940 | s%@sharedstatedir@%$sharedstatedir%g
|
---|
| 1941 | s%@localstatedir@%$localstatedir%g
|
---|
| 1942 | s%@libdir@%$libdir%g
|
---|
| 1943 | s%@includedir@%$includedir%g
|
---|
| 1944 | s%@oldincludedir@%$oldincludedir%g
|
---|
| 1945 | s%@infodir@%$infodir%g
|
---|
| 1946 | s%@mandir@%$mandir%g
|
---|
| 1947 | s%@use_sophya@%$use_sophya%g
|
---|
[1477] | 1948 | s%@CC@%$CC%g
|
---|
[1407] | 1949 | s%@CXX@%$CXX%g
|
---|
[1706] | 1950 | s%@AR@%$AR%g
|
---|
[1707] | 1951 | s%@RANLIB@%$RANLIB%g
|
---|
[1745] | 1952 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
---|
| 1953 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
---|
| 1954 | s%@INSTALL_DATA@%$INSTALL_DATA%g
|
---|
[1692] | 1955 | s%@gcc@%$gcc%g
|
---|
[1407] | 1956 | s%@cfitslibdir@%$cfitslibdir%g
|
---|
| 1957 | s%@cfitsincdir@%$cfitsincdir%g
|
---|
| 1958 | s%@CPP@%$CPP%g
|
---|
| 1959 |
|
---|
| 1960 | CEOF
|
---|
| 1961 | EOF
|
---|
| 1962 |
|
---|
| 1963 | cat >> $CONFIG_STATUS <<\EOF
|
---|
| 1964 |
|
---|
| 1965 | # Split the substitutions into bite-sized pieces for seds with
|
---|
| 1966 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
| 1967 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
---|
| 1968 | ac_file=1 # Number of current file.
|
---|
| 1969 | ac_beg=1 # First line for current file.
|
---|
| 1970 | ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
---|
| 1971 | ac_more_lines=:
|
---|
| 1972 | ac_sed_cmds=""
|
---|
| 1973 | while $ac_more_lines; do
|
---|
| 1974 | if test $ac_beg -gt 1; then
|
---|
| 1975 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
| 1976 | else
|
---|
| 1977 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
| 1978 | fi
|
---|
| 1979 | if test ! -s conftest.s$ac_file; then
|
---|
| 1980 | ac_more_lines=false
|
---|
| 1981 | rm -f conftest.s$ac_file
|
---|
| 1982 | else
|
---|
| 1983 | if test -z "$ac_sed_cmds"; then
|
---|
| 1984 | ac_sed_cmds="sed -f conftest.s$ac_file"
|
---|
| 1985 | else
|
---|
| 1986 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
---|
| 1987 | fi
|
---|
| 1988 | ac_file=`expr $ac_file + 1`
|
---|
| 1989 | ac_beg=$ac_end
|
---|
| 1990 | ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
---|
| 1991 | fi
|
---|
| 1992 | done
|
---|
| 1993 | if test -z "$ac_sed_cmds"; then
|
---|
| 1994 | ac_sed_cmds=cat
|
---|
| 1995 | fi
|
---|
| 1996 | EOF
|
---|
| 1997 |
|
---|
| 1998 | cat >> $CONFIG_STATUS <<EOF
|
---|
| 1999 |
|
---|
[1477] | 2000 | CONFIG_FILES=\${CONFIG_FILES-"$outfiles"}
|
---|
[1407] | 2001 | EOF
|
---|
| 2002 | cat >> $CONFIG_STATUS <<\EOF
|
---|
| 2003 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
---|
| 2004 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
| 2005 | case "$ac_file" in
|
---|
| 2006 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
| 2007 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
| 2008 | *) ac_file_in="${ac_file}.in" ;;
|
---|
| 2009 | esac
|
---|
| 2010 |
|
---|
| 2011 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
---|
| 2012 |
|
---|
| 2013 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
| 2014 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
| 2015 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
| 2016 | # The file is in a subdirectory.
|
---|
| 2017 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
| 2018 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
---|
| 2019 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 2020 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
---|
| 2021 | else
|
---|
| 2022 | ac_dir_suffix= ac_dots=
|
---|
| 2023 | fi
|
---|
| 2024 |
|
---|
| 2025 | case "$ac_given_srcdir" in
|
---|
| 2026 | .) srcdir=.
|
---|
| 2027 | if test -z "$ac_dots"; then top_srcdir=.
|
---|
| 2028 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
---|
| 2029 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
---|
| 2030 | *) # Relative path.
|
---|
| 2031 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
---|
| 2032 | top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
---|
| 2033 | esac
|
---|
| 2034 |
|
---|
[1745] | 2035 | case "$ac_given_INSTALL" in
|
---|
| 2036 | [/$]*) INSTALL="$ac_given_INSTALL" ;;
|
---|
| 2037 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
---|
| 2038 | esac
|
---|
[1407] | 2039 |
|
---|
| 2040 | echo creating "$ac_file"
|
---|
| 2041 | rm -f "$ac_file"
|
---|
| 2042 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
---|
| 2043 | case "$ac_file" in
|
---|
| 2044 | *Makefile*) ac_comsub="1i\\
|
---|
| 2045 | # $configure_input" ;;
|
---|
| 2046 | *) ac_comsub= ;;
|
---|
| 2047 | esac
|
---|
| 2048 |
|
---|
| 2049 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
---|
| 2050 | sed -e "$ac_comsub
|
---|
| 2051 | s%@configure_input@%$configure_input%g
|
---|
| 2052 | s%@srcdir@%$srcdir%g
|
---|
| 2053 | s%@top_srcdir@%$top_srcdir%g
|
---|
[1745] | 2054 | s%@INSTALL@%$INSTALL%g
|
---|
[1407] | 2055 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
---|
| 2056 | fi; done
|
---|
| 2057 | rm -f conftest.s*
|
---|
| 2058 |
|
---|
| 2059 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
| 2060 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
| 2061 | #
|
---|
| 2062 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
| 2063 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
| 2064 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
---|
| 2065 | ac_dC='\3'
|
---|
| 2066 | ac_dD='%g'
|
---|
| 2067 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
---|
| 2068 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
| 2069 | ac_uB='\([ ]\)%\1#\2define\3'
|
---|
| 2070 | ac_uC=' '
|
---|
| 2071 | ac_uD='\4%g'
|
---|
| 2072 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
| 2073 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
| 2074 | ac_eB='$%\1#\2define\3'
|
---|
| 2075 | ac_eC=' '
|
---|
| 2076 | ac_eD='%g'
|
---|
| 2077 |
|
---|
| 2078 | if test "${CONFIG_HEADERS+set}" != set; then
|
---|
| 2079 | EOF
|
---|
| 2080 | cat >> $CONFIG_STATUS <<EOF
|
---|
| 2081 | CONFIG_HEADERS="conf.h"
|
---|
| 2082 | EOF
|
---|
| 2083 | cat >> $CONFIG_STATUS <<\EOF
|
---|
| 2084 | fi
|
---|
| 2085 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
---|
| 2086 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
| 2087 | case "$ac_file" in
|
---|
| 2088 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
| 2089 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
| 2090 | *) ac_file_in="${ac_file}.in" ;;
|
---|
| 2091 | esac
|
---|
| 2092 |
|
---|
| 2093 | echo creating $ac_file
|
---|
| 2094 |
|
---|
| 2095 | rm -f conftest.frag conftest.in conftest.out
|
---|
| 2096 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
---|
| 2097 | cat $ac_file_inputs > conftest.in
|
---|
| 2098 |
|
---|
| 2099 | EOF
|
---|
| 2100 |
|
---|
| 2101 | # Transform confdefs.h into a sed script conftest.vals that substitutes
|
---|
| 2102 | # the proper values into config.h.in to produce config.h. And first:
|
---|
| 2103 | # Protect against being on the right side of a sed subst in config.status.
|
---|
| 2104 | # Protect against being in an unquoted here document in config.status.
|
---|
| 2105 | rm -f conftest.vals
|
---|
| 2106 | cat > conftest.hdr <<\EOF
|
---|
| 2107 | s/[\\&%]/\\&/g
|
---|
| 2108 | s%[\\$`]%\\&%g
|
---|
| 2109 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
---|
| 2110 | s%ac_d%ac_u%gp
|
---|
| 2111 | s%ac_u%ac_e%gp
|
---|
| 2112 | EOF
|
---|
| 2113 | sed -n -f conftest.hdr confdefs.h > conftest.vals
|
---|
| 2114 | rm -f conftest.hdr
|
---|
| 2115 |
|
---|
| 2116 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
| 2117 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
| 2118 | # on some systems where configure will not decide to define it.
|
---|
| 2119 | cat >> conftest.vals <<\EOF
|
---|
| 2120 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
---|
| 2121 | EOF
|
---|
| 2122 |
|
---|
| 2123 | # Break up conftest.vals because some shells have a limit on
|
---|
| 2124 | # the size of here documents, and old seds have small limits too.
|
---|
| 2125 |
|
---|
| 2126 | rm -f conftest.tail
|
---|
| 2127 | while :
|
---|
| 2128 | do
|
---|
| 2129 | ac_lines=`grep -c . conftest.vals`
|
---|
| 2130 | # grep -c gives empty output for an empty file on some AIX systems.
|
---|
| 2131 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
---|
| 2132 | # Write a limited-size here document to conftest.frag.
|
---|
| 2133 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
---|
| 2134 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
---|
| 2135 | echo 'CEOF
|
---|
| 2136 | sed -f conftest.frag conftest.in > conftest.out
|
---|
| 2137 | rm -f conftest.in
|
---|
| 2138 | mv conftest.out conftest.in
|
---|
| 2139 | ' >> $CONFIG_STATUS
|
---|
| 2140 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
---|
| 2141 | rm -f conftest.vals
|
---|
| 2142 | mv conftest.tail conftest.vals
|
---|
| 2143 | done
|
---|
| 2144 | rm -f conftest.vals
|
---|
| 2145 |
|
---|
| 2146 | cat >> $CONFIG_STATUS <<\EOF
|
---|
| 2147 | rm -f conftest.frag conftest.h
|
---|
| 2148 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
---|
| 2149 | cat conftest.in >> conftest.h
|
---|
| 2150 | rm -f conftest.in
|
---|
| 2151 | if cmp -s $ac_file conftest.h 2>/dev/null; then
|
---|
| 2152 | echo "$ac_file is unchanged"
|
---|
| 2153 | rm -f conftest.h
|
---|
| 2154 | else
|
---|
| 2155 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
| 2156 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
| 2157 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
| 2158 | # The file is in a subdirectory.
|
---|
| 2159 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
| 2160 | fi
|
---|
| 2161 | rm -f $ac_file
|
---|
| 2162 | mv conftest.h $ac_file
|
---|
| 2163 | fi
|
---|
| 2164 | fi; done
|
---|
| 2165 |
|
---|
| 2166 | EOF
|
---|
| 2167 | cat >> $CONFIG_STATUS <<EOF
|
---|
| 2168 |
|
---|
| 2169 | EOF
|
---|
| 2170 | cat >> $CONFIG_STATUS <<\EOF
|
---|
| 2171 |
|
---|
| 2172 | exit 0
|
---|
| 2173 | EOF
|
---|
| 2174 | chmod +x $CONFIG_STATUS
|
---|
| 2175 | rm -fr confdefs* $ac_clean_files
|
---|
| 2176 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
---|
| 2177 |
|
---|
[1477] | 2178 |
|
---|