| 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 | --enable-multilib build many library versions (default)"
|
|---|
| 16 | ac_help="$ac_help
|
|---|
| 17 | --enable-shared[=PKGS] build shared libraries [default=yes]"
|
|---|
| 18 | ac_help="$ac_help
|
|---|
| 19 | --enable-static[=PKGS] build static libraries [default=yes]"
|
|---|
| 20 | ac_help="$ac_help
|
|---|
| 21 | --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
|
|---|
| 22 | ac_help="$ac_help
|
|---|
| 23 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
|
|---|
| 24 | ac_help="$ac_help
|
|---|
| 25 | --disable-libtool-lock avoid locking (might break parallel builds)"
|
|---|
| 26 | ac_help="$ac_help
|
|---|
| 27 | --with-pic try to use only PIC/non-PIC objects [default=use both]"
|
|---|
| 28 | ac_help="$ac_help
|
|---|
| 29 | --enable-maintainer-mode enable make rules and dependencies not useful
|
|---|
| 30 | (and sometimes confusing) to the casual installer"
|
|---|
| 31 | ac_help="$ac_help
|
|---|
| 32 | --enable-debug debugging mode"
|
|---|
| 33 | ac_help="$ac_help
|
|---|
| 34 | --disable-structs omit code for struct support"
|
|---|
| 35 | ac_help="$ac_help
|
|---|
| 36 | --disable-raw-api make the raw api unavailable"
|
|---|
| 37 | ac_help="$ac_help
|
|---|
| 38 | --enable-purify-safety purify-safe mode"
|
|---|
| 39 |
|
|---|
| 40 | # Initialize some variables set by options.
|
|---|
| 41 | # The variables have the same names as the options, with
|
|---|
| 42 | # dashes changed to underlines.
|
|---|
| 43 | build=NONE
|
|---|
| 44 | cache_file=./config.cache
|
|---|
| 45 | exec_prefix=NONE
|
|---|
| 46 | host=NONE
|
|---|
| 47 | no_create=
|
|---|
| 48 | nonopt=NONE
|
|---|
| 49 | no_recursion=
|
|---|
| 50 | prefix=NONE
|
|---|
| 51 | program_prefix=NONE
|
|---|
| 52 | program_suffix=NONE
|
|---|
| 53 | program_transform_name=s,x,x,
|
|---|
| 54 | silent=
|
|---|
| 55 | site=
|
|---|
| 56 | srcdir=
|
|---|
| 57 | target=NONE
|
|---|
| 58 | verbose=
|
|---|
| 59 | x_includes=NONE
|
|---|
| 60 | x_libraries=NONE
|
|---|
| 61 | bindir='${exec_prefix}/bin'
|
|---|
| 62 | sbindir='${exec_prefix}/sbin'
|
|---|
| 63 | libexecdir='${exec_prefix}/libexec'
|
|---|
| 64 | datadir='${prefix}/share'
|
|---|
| 65 | sysconfdir='${prefix}/etc'
|
|---|
| 66 | sharedstatedir='${prefix}/com'
|
|---|
| 67 | localstatedir='${prefix}/var'
|
|---|
| 68 | libdir='${exec_prefix}/lib'
|
|---|
| 69 | includedir='${prefix}/include'
|
|---|
| 70 | oldincludedir='/usr/include'
|
|---|
| 71 | infodir='${prefix}/info'
|
|---|
| 72 | mandir='${prefix}/man'
|
|---|
| 73 |
|
|---|
| 74 | # Initialize some other variables.
|
|---|
| 75 | subdirs=
|
|---|
| 76 | MFLAGS= MAKEFLAGS=
|
|---|
| 77 | SHELL=${CONFIG_SHELL-/bin/sh}
|
|---|
| 78 | # Maximum number of lines to put in a shell here document.
|
|---|
| 79 | ac_max_here_lines=12
|
|---|
| 80 |
|
|---|
| 81 | ac_prev=
|
|---|
| 82 | for ac_option
|
|---|
| 83 | do
|
|---|
| 84 |
|
|---|
| 85 | # If the previous option needs an argument, assign it.
|
|---|
| 86 | if test -n "$ac_prev"; then
|
|---|
| 87 | eval "$ac_prev=\$ac_option"
|
|---|
| 88 | ac_prev=
|
|---|
| 89 | continue
|
|---|
| 90 | fi
|
|---|
| 91 |
|
|---|
| 92 | case "$ac_option" in
|
|---|
| 93 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
|---|
| 94 | *) ac_optarg= ;;
|
|---|
| 95 | esac
|
|---|
| 96 |
|
|---|
| 97 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
|---|
| 98 |
|
|---|
| 99 | case "$ac_option" in
|
|---|
| 100 |
|
|---|
| 101 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
|---|
| 102 | ac_prev=bindir ;;
|
|---|
| 103 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
|---|
| 104 | bindir="$ac_optarg" ;;
|
|---|
| 105 |
|
|---|
| 106 | -build | --build | --buil | --bui | --bu)
|
|---|
| 107 | ac_prev=build ;;
|
|---|
| 108 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
|---|
| 109 | build="$ac_optarg" ;;
|
|---|
| 110 |
|
|---|
| 111 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
|---|
| 112 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
|---|
| 113 | ac_prev=cache_file ;;
|
|---|
| 114 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
|---|
| 115 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
|---|
| 116 | cache_file="$ac_optarg" ;;
|
|---|
| 117 |
|
|---|
| 118 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
|---|
| 119 | ac_prev=datadir ;;
|
|---|
| 120 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
|---|
| 121 | | --da=*)
|
|---|
| 122 | datadir="$ac_optarg" ;;
|
|---|
| 123 |
|
|---|
| 124 | -disable-* | --disable-*)
|
|---|
| 125 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
|---|
| 126 | # Reject names that are not valid shell variable names.
|
|---|
| 127 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|---|
| 128 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|---|
| 129 | fi
|
|---|
| 130 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|---|
| 131 | eval "enable_${ac_feature}=no" ;;
|
|---|
| 132 |
|
|---|
| 133 | -enable-* | --enable-*)
|
|---|
| 134 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
|---|
| 135 | # Reject names that are not valid shell variable names.
|
|---|
| 136 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|---|
| 137 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|---|
| 138 | fi
|
|---|
| 139 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|---|
| 140 | case "$ac_option" in
|
|---|
| 141 | *=*) ;;
|
|---|
| 142 | *) ac_optarg=yes ;;
|
|---|
| 143 | esac
|
|---|
| 144 | eval "enable_${ac_feature}='$ac_optarg'" ;;
|
|---|
| 145 |
|
|---|
| 146 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
|---|
| 147 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
|---|
| 148 | | --exec | --exe | --ex)
|
|---|
| 149 | ac_prev=exec_prefix ;;
|
|---|
| 150 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
|---|
| 151 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
|---|
| 152 | | --exec=* | --exe=* | --ex=*)
|
|---|
| 153 | exec_prefix="$ac_optarg" ;;
|
|---|
| 154 |
|
|---|
| 155 | -gas | --gas | --ga | --g)
|
|---|
| 156 | # Obsolete; use --with-gas.
|
|---|
| 157 | with_gas=yes ;;
|
|---|
| 158 |
|
|---|
| 159 | -help | --help | --hel | --he)
|
|---|
| 160 | # Omit some internal or obsolete options to make the list less imposing.
|
|---|
| 161 | # This message is too long to be a string in the A/UX 3.1 sh.
|
|---|
| 162 | cat << EOF
|
|---|
| 163 | Usage: configure [options] [host]
|
|---|
| 164 | Options: [defaults in brackets after descriptions]
|
|---|
| 165 | Configuration:
|
|---|
| 166 | --cache-file=FILE cache test results in FILE
|
|---|
| 167 | --help print this message
|
|---|
| 168 | --no-create do not create output files
|
|---|
| 169 | --quiet, --silent do not print \`checking...' messages
|
|---|
| 170 | --version print the version of autoconf that created configure
|
|---|
| 171 | Directory and file names:
|
|---|
| 172 | --prefix=PREFIX install architecture-independent files in PREFIX
|
|---|
| 173 | [$ac_default_prefix]
|
|---|
| 174 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
|---|
| 175 | [same as prefix]
|
|---|
| 176 | --bindir=DIR user executables in DIR [EPREFIX/bin]
|
|---|
| 177 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
|---|
| 178 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
|---|
| 179 | --datadir=DIR read-only architecture-independent data in DIR
|
|---|
| 180 | [PREFIX/share]
|
|---|
| 181 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
|---|
| 182 | --sharedstatedir=DIR modifiable architecture-independent data in DIR
|
|---|
| 183 | [PREFIX/com]
|
|---|
| 184 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
|---|
| 185 | --libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
|---|
| 186 | --includedir=DIR C header files in DIR [PREFIX/include]
|
|---|
| 187 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
|---|
| 188 | --infodir=DIR info documentation in DIR [PREFIX/info]
|
|---|
| 189 | --mandir=DIR man documentation in DIR [PREFIX/man]
|
|---|
| 190 | --srcdir=DIR find the sources in DIR [configure dir or ..]
|
|---|
| 191 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
|---|
| 192 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
|---|
| 193 | --program-transform-name=PROGRAM
|
|---|
| 194 | run sed PROGRAM on installed program names
|
|---|
| 195 | EOF
|
|---|
| 196 | cat << EOF
|
|---|
| 197 | Host type:
|
|---|
| 198 | --build=BUILD configure for building on BUILD [BUILD=HOST]
|
|---|
| 199 | --host=HOST configure for HOST [guessed]
|
|---|
| 200 | --target=TARGET configure for TARGET [TARGET=HOST]
|
|---|
| 201 | Features and packages:
|
|---|
| 202 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
|---|
| 203 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
|---|
| 204 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
|---|
| 205 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
|---|
| 206 | --x-includes=DIR X include files are in DIR
|
|---|
| 207 | --x-libraries=DIR X library files are in DIR
|
|---|
| 208 | EOF
|
|---|
| 209 | if test -n "$ac_help"; then
|
|---|
| 210 | echo "--enable and --with options recognized:$ac_help"
|
|---|
| 211 | fi
|
|---|
| 212 | exit 0 ;;
|
|---|
| 213 |
|
|---|
| 214 | -host | --host | --hos | --ho)
|
|---|
| 215 | ac_prev=host ;;
|
|---|
| 216 | -host=* | --host=* | --hos=* | --ho=*)
|
|---|
| 217 | host="$ac_optarg" ;;
|
|---|
| 218 |
|
|---|
| 219 | -includedir | --includedir | --includedi | --included | --include \
|
|---|
| 220 | | --includ | --inclu | --incl | --inc)
|
|---|
| 221 | ac_prev=includedir ;;
|
|---|
| 222 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
|---|
| 223 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
|---|
| 224 | includedir="$ac_optarg" ;;
|
|---|
| 225 |
|
|---|
| 226 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
|---|
| 227 | ac_prev=infodir ;;
|
|---|
| 228 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
|---|
| 229 | infodir="$ac_optarg" ;;
|
|---|
| 230 |
|
|---|
| 231 | -libdir | --libdir | --libdi | --libd)
|
|---|
| 232 | ac_prev=libdir ;;
|
|---|
| 233 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
|---|
| 234 | libdir="$ac_optarg" ;;
|
|---|
| 235 |
|
|---|
| 236 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
|---|
| 237 | | --libexe | --libex | --libe)
|
|---|
| 238 | ac_prev=libexecdir ;;
|
|---|
| 239 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
|---|
| 240 | | --libexe=* | --libex=* | --libe=*)
|
|---|
| 241 | libexecdir="$ac_optarg" ;;
|
|---|
| 242 |
|
|---|
| 243 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
|---|
| 244 | | --localstate | --localstat | --localsta | --localst \
|
|---|
| 245 | | --locals | --local | --loca | --loc | --lo)
|
|---|
| 246 | ac_prev=localstatedir ;;
|
|---|
| 247 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
|---|
| 248 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
|---|
| 249 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
|---|
| 250 | localstatedir="$ac_optarg" ;;
|
|---|
| 251 |
|
|---|
| 252 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
|---|
| 253 | ac_prev=mandir ;;
|
|---|
| 254 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
|---|
| 255 | mandir="$ac_optarg" ;;
|
|---|
| 256 |
|
|---|
| 257 | -nfp | --nfp | --nf)
|
|---|
| 258 | # Obsolete; use --without-fp.
|
|---|
| 259 | with_fp=no ;;
|
|---|
| 260 |
|
|---|
| 261 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|---|
| 262 | | --no-cr | --no-c)
|
|---|
| 263 | no_create=yes ;;
|
|---|
| 264 |
|
|---|
| 265 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|---|
| 266 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
|---|
| 267 | no_recursion=yes ;;
|
|---|
| 268 |
|
|---|
| 269 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
|---|
| 270 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
|---|
| 271 | | --oldin | --oldi | --old | --ol | --o)
|
|---|
| 272 | ac_prev=oldincludedir ;;
|
|---|
| 273 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
|---|
| 274 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
|---|
| 275 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
|---|
| 276 | oldincludedir="$ac_optarg" ;;
|
|---|
| 277 |
|
|---|
| 278 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
|---|
| 279 | ac_prev=prefix ;;
|
|---|
| 280 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
|---|
| 281 | prefix="$ac_optarg" ;;
|
|---|
| 282 |
|
|---|
| 283 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
|---|
| 284 | | --program-pre | --program-pr | --program-p)
|
|---|
| 285 | ac_prev=program_prefix ;;
|
|---|
| 286 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
|---|
| 287 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
|---|
| 288 | program_prefix="$ac_optarg" ;;
|
|---|
| 289 |
|
|---|
| 290 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
|---|
| 291 | | --program-suf | --program-su | --program-s)
|
|---|
| 292 | ac_prev=program_suffix ;;
|
|---|
| 293 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
|---|
| 294 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
|---|
| 295 | program_suffix="$ac_optarg" ;;
|
|---|
| 296 |
|
|---|
| 297 | -program-transform-name | --program-transform-name \
|
|---|
| 298 | | --program-transform-nam | --program-transform-na \
|
|---|
| 299 | | --program-transform-n | --program-transform- \
|
|---|
| 300 | | --program-transform | --program-transfor \
|
|---|
| 301 | | --program-transfo | --program-transf \
|
|---|
| 302 | | --program-trans | --program-tran \
|
|---|
| 303 | | --progr-tra | --program-tr | --program-t)
|
|---|
| 304 | ac_prev=program_transform_name ;;
|
|---|
| 305 | -program-transform-name=* | --program-transform-name=* \
|
|---|
| 306 | | --program-transform-nam=* | --program-transform-na=* \
|
|---|
| 307 | | --program-transform-n=* | --program-transform-=* \
|
|---|
| 308 | | --program-transform=* | --program-transfor=* \
|
|---|
| 309 | | --program-transfo=* | --program-transf=* \
|
|---|
| 310 | | --program-trans=* | --program-tran=* \
|
|---|
| 311 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
|---|
| 312 | program_transform_name="$ac_optarg" ;;
|
|---|
| 313 |
|
|---|
| 314 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|---|
| 315 | | -silent | --silent | --silen | --sile | --sil)
|
|---|
| 316 | silent=yes ;;
|
|---|
| 317 |
|
|---|
| 318 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
|---|
| 319 | ac_prev=sbindir ;;
|
|---|
| 320 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
|---|
| 321 | | --sbi=* | --sb=*)
|
|---|
| 322 | sbindir="$ac_optarg" ;;
|
|---|
| 323 |
|
|---|
| 324 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
|---|
| 325 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
|---|
| 326 | | --sharedst | --shareds | --shared | --share | --shar \
|
|---|
| 327 | | --sha | --sh)
|
|---|
| 328 | ac_prev=sharedstatedir ;;
|
|---|
| 329 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
|---|
| 330 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
|---|
| 331 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
|---|
| 332 | | --sha=* | --sh=*)
|
|---|
| 333 | sharedstatedir="$ac_optarg" ;;
|
|---|
| 334 |
|
|---|
| 335 | -site | --site | --sit)
|
|---|
| 336 | ac_prev=site ;;
|
|---|
| 337 | -site=* | --site=* | --sit=*)
|
|---|
| 338 | site="$ac_optarg" ;;
|
|---|
| 339 |
|
|---|
| 340 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
|---|
| 341 | ac_prev=srcdir ;;
|
|---|
| 342 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
|---|
| 343 | srcdir="$ac_optarg" ;;
|
|---|
| 344 |
|
|---|
| 345 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
|---|
| 346 | | --syscon | --sysco | --sysc | --sys | --sy)
|
|---|
| 347 | ac_prev=sysconfdir ;;
|
|---|
| 348 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
|---|
| 349 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
|---|
| 350 | sysconfdir="$ac_optarg" ;;
|
|---|
| 351 |
|
|---|
| 352 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
|---|
| 353 | ac_prev=target ;;
|
|---|
| 354 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
|---|
| 355 | target="$ac_optarg" ;;
|
|---|
| 356 |
|
|---|
| 357 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
|---|
| 358 | verbose=yes ;;
|
|---|
| 359 |
|
|---|
| 360 | -version | --version | --versio | --versi | --vers)
|
|---|
| 361 | echo "configure generated by autoconf version 2.13"
|
|---|
| 362 | exit 0 ;;
|
|---|
| 363 |
|
|---|
| 364 | -with-* | --with-*)
|
|---|
| 365 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
|---|
| 366 | # Reject names that are not valid shell variable names.
|
|---|
| 367 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|---|
| 368 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|---|
| 369 | fi
|
|---|
| 370 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|---|
| 371 | case "$ac_option" in
|
|---|
| 372 | *=*) ;;
|
|---|
| 373 | *) ac_optarg=yes ;;
|
|---|
| 374 | esac
|
|---|
| 375 | eval "with_${ac_package}='$ac_optarg'" ;;
|
|---|
| 376 |
|
|---|
| 377 | -without-* | --without-*)
|
|---|
| 378 | ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
|---|
| 379 | # Reject names that are not valid shell variable names.
|
|---|
| 380 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|---|
| 381 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|---|
| 382 | fi
|
|---|
| 383 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|---|
| 384 | eval "with_${ac_package}=no" ;;
|
|---|
| 385 |
|
|---|
| 386 | --x)
|
|---|
| 387 | # Obsolete; use --with-x.
|
|---|
| 388 | with_x=yes ;;
|
|---|
| 389 |
|
|---|
| 390 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
|---|
| 391 | | --x-incl | --x-inc | --x-in | --x-i)
|
|---|
| 392 | ac_prev=x_includes ;;
|
|---|
| 393 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
|---|
| 394 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
|---|
| 395 | x_includes="$ac_optarg" ;;
|
|---|
| 396 |
|
|---|
| 397 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
|---|
| 398 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
|---|
| 399 | ac_prev=x_libraries ;;
|
|---|
| 400 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
|---|
| 401 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
|---|
| 402 | x_libraries="$ac_optarg" ;;
|
|---|
| 403 |
|
|---|
| 404 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
|---|
| 405 | ;;
|
|---|
| 406 |
|
|---|
| 407 | *)
|
|---|
| 408 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
|---|
| 409 | echo "configure: warning: $ac_option: invalid host type" 1>&2
|
|---|
| 410 | fi
|
|---|
| 411 | if test "x$nonopt" != xNONE; then
|
|---|
| 412 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
|---|
| 413 | fi
|
|---|
| 414 | nonopt="$ac_option"
|
|---|
| 415 | ;;
|
|---|
| 416 |
|
|---|
| 417 | esac
|
|---|
| 418 | done
|
|---|
| 419 |
|
|---|
| 420 | if test -n "$ac_prev"; then
|
|---|
| 421 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
|---|
| 422 | fi
|
|---|
| 423 |
|
|---|
| 424 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|---|
| 425 |
|
|---|
| 426 | # File descriptor usage:
|
|---|
| 427 | # 0 standard input
|
|---|
| 428 | # 1 file creation
|
|---|
| 429 | # 2 errors and warnings
|
|---|
| 430 | # 3 some systems may open it to /dev/tty
|
|---|
| 431 | # 4 used on the Kubota Titan
|
|---|
| 432 | # 6 checking for... messages and results
|
|---|
| 433 | # 5 compiler messages saved in config.log
|
|---|
| 434 | if test "$silent" = yes; then
|
|---|
| 435 | exec 6>/dev/null
|
|---|
| 436 | else
|
|---|
| 437 | exec 6>&1
|
|---|
| 438 | fi
|
|---|
| 439 | exec 5>./config.log
|
|---|
| 440 |
|
|---|
| 441 | echo "\
|
|---|
| 442 | This file contains any messages produced by compilers while
|
|---|
| 443 | running configure, to aid debugging if configure makes a mistake.
|
|---|
| 444 | " 1>&5
|
|---|
| 445 |
|
|---|
| 446 | # Strip out --no-create and --no-recursion so they do not pile up.
|
|---|
| 447 | # Also quote any args containing shell metacharacters.
|
|---|
| 448 | ac_configure_args=
|
|---|
| 449 | for ac_arg
|
|---|
| 450 | do
|
|---|
| 451 | case "$ac_arg" in
|
|---|
| 452 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|---|
| 453 | | --no-cr | --no-c) ;;
|
|---|
| 454 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|---|
| 455 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
|---|
| 456 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
|---|
| 457 | ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
|---|
| 458 | *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
|---|
| 459 | esac
|
|---|
| 460 | done
|
|---|
| 461 |
|
|---|
| 462 | # NLS nuisances.
|
|---|
| 463 | # Only set these to C if already set. These must not be set unconditionally
|
|---|
| 464 | # because not all systems understand e.g. LANG=C (notably SCO).
|
|---|
| 465 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
|---|
| 466 | # Non-C LC_CTYPE values break the ctype check.
|
|---|
| 467 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
|---|
| 468 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
|---|
| 469 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
|---|
| 470 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
|---|
| 471 |
|
|---|
| 472 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
|---|
| 473 | rm -rf conftest* confdefs.h
|
|---|
| 474 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
|---|
| 475 | echo > confdefs.h
|
|---|
| 476 |
|
|---|
| 477 | # A filename unique to this package, relative to the directory that
|
|---|
| 478 | # configure is in, which we can look for to find out if srcdir is correct.
|
|---|
| 479 | ac_unique_file=fficonfig.h.in
|
|---|
| 480 |
|
|---|
| 481 | # Find the source files, if location was not specified.
|
|---|
| 482 | if test -z "$srcdir"; then
|
|---|
| 483 | ac_srcdir_defaulted=yes
|
|---|
| 484 | # Try the directory containing this script, then its parent.
|
|---|
| 485 | ac_prog=$0
|
|---|
| 486 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
|---|
| 487 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
|---|
| 488 | srcdir=$ac_confdir
|
|---|
| 489 | if test ! -r $srcdir/$ac_unique_file; then
|
|---|
| 490 | srcdir=..
|
|---|
| 491 | fi
|
|---|
| 492 | else
|
|---|
| 493 | ac_srcdir_defaulted=no
|
|---|
| 494 | fi
|
|---|
| 495 | if test ! -r $srcdir/$ac_unique_file; then
|
|---|
| 496 | if test "$ac_srcdir_defaulted" = yes; then
|
|---|
| 497 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
|---|
| 498 | else
|
|---|
| 499 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
|---|
| 500 | fi
|
|---|
| 501 | fi
|
|---|
| 502 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
|---|
| 503 |
|
|---|
| 504 | # Prefer explicitly selected file to automatically selected ones.
|
|---|
| 505 | if test -z "$CONFIG_SITE"; then
|
|---|
| 506 | if test "x$prefix" != xNONE; then
|
|---|
| 507 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
|---|
| 508 | else
|
|---|
| 509 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
|---|
| 510 | fi
|
|---|
| 511 | fi
|
|---|
| 512 | for ac_site_file in $CONFIG_SITE; do
|
|---|
| 513 | if test -r "$ac_site_file"; then
|
|---|
| 514 | echo "loading site script $ac_site_file"
|
|---|
| 515 | . "$ac_site_file"
|
|---|
| 516 | fi
|
|---|
| 517 | done
|
|---|
| 518 |
|
|---|
| 519 | if test -r "$cache_file"; then
|
|---|
| 520 | echo "loading cache $cache_file"
|
|---|
| 521 | . $cache_file
|
|---|
| 522 | else
|
|---|
| 523 | echo "creating cache $cache_file"
|
|---|
| 524 | > $cache_file
|
|---|
| 525 | fi
|
|---|
| 526 |
|
|---|
| 527 | ac_ext=c
|
|---|
| 528 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 529 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 530 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 531 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 532 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 533 |
|
|---|
| 534 | ac_exeext=
|
|---|
| 535 | ac_objext=o
|
|---|
| 536 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
|---|
| 537 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
|---|
| 538 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
|---|
| 539 | ac_n= ac_c='
|
|---|
| 540 | ' ac_t=' '
|
|---|
| 541 | else
|
|---|
| 542 | ac_n=-n ac_c= ac_t=
|
|---|
| 543 | fi
|
|---|
| 544 | else
|
|---|
| 545 | ac_n= ac_c='\c' ac_t=
|
|---|
| 546 | fi
|
|---|
| 547 |
|
|---|
| 548 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
|
|---|
| 549 | echo "configure:550: checking for Cygwin environment" >&5
|
|---|
| 550 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
|
|---|
| 551 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 552 | else
|
|---|
| 553 | cat > conftest.$ac_ext <<EOF
|
|---|
| 554 | #line 555 "configure"
|
|---|
| 555 | #include "confdefs.h"
|
|---|
| 556 |
|
|---|
| 557 | int main() {
|
|---|
| 558 |
|
|---|
| 559 | #ifndef __CYGWIN__
|
|---|
| 560 | #define __CYGWIN__ __CYGWIN32__
|
|---|
| 561 | #endif
|
|---|
| 562 | return __CYGWIN__;
|
|---|
| 563 | ; return 0; }
|
|---|
| 564 | EOF
|
|---|
| 565 | if { (eval echo configure:566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 566 | rm -rf conftest*
|
|---|
| 567 | ac_cv_cygwin=yes
|
|---|
| 568 | else
|
|---|
| 569 | echo "configure: failed program was:" >&5
|
|---|
| 570 | cat conftest.$ac_ext >&5
|
|---|
| 571 | rm -rf conftest*
|
|---|
| 572 | ac_cv_cygwin=no
|
|---|
| 573 | fi
|
|---|
| 574 | rm -f conftest*
|
|---|
| 575 | rm -f conftest*
|
|---|
| 576 | fi
|
|---|
| 577 |
|
|---|
| 578 | echo "$ac_t""$ac_cv_cygwin" 1>&6
|
|---|
| 579 | CYGWIN=
|
|---|
| 580 | test "$ac_cv_cygwin" = yes && CYGWIN=yes
|
|---|
| 581 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
|
|---|
| 582 | echo "configure:583: checking for mingw32 environment" >&5
|
|---|
| 583 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
|
|---|
| 584 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 585 | else
|
|---|
| 586 | cat > conftest.$ac_ext <<EOF
|
|---|
| 587 | #line 588 "configure"
|
|---|
| 588 | #include "confdefs.h"
|
|---|
| 589 |
|
|---|
| 590 | int main() {
|
|---|
| 591 | return __MINGW32__;
|
|---|
| 592 | ; return 0; }
|
|---|
| 593 | EOF
|
|---|
| 594 | if { (eval echo configure:595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 595 | rm -rf conftest*
|
|---|
| 596 | ac_cv_mingw32=yes
|
|---|
| 597 | else
|
|---|
| 598 | echo "configure: failed program was:" >&5
|
|---|
| 599 | cat conftest.$ac_ext >&5
|
|---|
| 600 | rm -rf conftest*
|
|---|
| 601 | ac_cv_mingw32=no
|
|---|
| 602 | fi
|
|---|
| 603 | rm -f conftest*
|
|---|
| 604 | rm -f conftest*
|
|---|
| 605 | fi
|
|---|
| 606 |
|
|---|
| 607 | echo "$ac_t""$ac_cv_mingw32" 1>&6
|
|---|
| 608 | MINGW32=
|
|---|
| 609 | test "$ac_cv_mingw32" = yes && MINGW32=yes
|
|---|
| 610 |
|
|---|
| 611 |
|
|---|
| 612 |
|
|---|
| 613 |
|
|---|
| 614 |
|
|---|
| 615 | # This works around the fact that libtool configuration may change LD
|
|---|
| 616 | # for this particular configuration, but some shells, instead of
|
|---|
| 617 | # keeping the changes in LD private, export them just because LD is
|
|---|
| 618 | # exported.
|
|---|
| 619 | ORIGINAL_LD_FOR_MULTILIBS=$LD
|
|---|
| 620 |
|
|---|
| 621 | # Check whether --enable-multilib or --disable-multilib was given.
|
|---|
| 622 | if test "${enable_multilib+set}" = set; then
|
|---|
| 623 | enableval="$enable_multilib"
|
|---|
| 624 | case "${enableval}" in
|
|---|
| 625 | yes) multilib=yes ;;
|
|---|
| 626 | no) multilib=no ;;
|
|---|
| 627 | *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
|
|---|
| 628 | esac
|
|---|
| 629 | else
|
|---|
| 630 | multilib=yes
|
|---|
| 631 | fi
|
|---|
| 632 |
|
|---|
| 633 |
|
|---|
| 634 | if test "${srcdir}" = "."; then
|
|---|
| 635 | if test "${with_target_subdir}" != "."; then
|
|---|
| 636 | libffi_basedir="${srcdir}/${with_multisrctop}.."
|
|---|
| 637 | else
|
|---|
| 638 | libffi_basedir="${srcdir}/${with_multisrctop}"
|
|---|
| 639 | fi
|
|---|
| 640 | else
|
|---|
| 641 | libffi_basedir="${srcdir}"
|
|---|
| 642 | fi
|
|---|
| 643 |
|
|---|
| 644 |
|
|---|
| 645 | ac_aux_dir=
|
|---|
| 646 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
|---|
| 647 | if test -f $ac_dir/install-sh; then
|
|---|
| 648 | ac_aux_dir=$ac_dir
|
|---|
| 649 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
|---|
| 650 | break
|
|---|
| 651 | elif test -f $ac_dir/install.sh; then
|
|---|
| 652 | ac_aux_dir=$ac_dir
|
|---|
| 653 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
|---|
| 654 | break
|
|---|
| 655 | fi
|
|---|
| 656 | done
|
|---|
| 657 | if test -z "$ac_aux_dir"; then
|
|---|
| 658 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
|---|
| 659 | fi
|
|---|
| 660 | ac_config_guess=$ac_aux_dir/config.guess
|
|---|
| 661 | ac_config_sub=$ac_aux_dir/config.sub
|
|---|
| 662 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
|---|
| 663 |
|
|---|
| 664 |
|
|---|
| 665 | # Make sure we can run config.sub.
|
|---|
| 666 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
|
|---|
| 667 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
|
|---|
| 668 | fi
|
|---|
| 669 |
|
|---|
| 670 | echo $ac_n "checking host system type""... $ac_c" 1>&6
|
|---|
| 671 | echo "configure:672: checking host system type" >&5
|
|---|
| 672 |
|
|---|
| 673 | host_alias=$host
|
|---|
| 674 | case "$host_alias" in
|
|---|
| 675 | NONE)
|
|---|
| 676 | case $nonopt in
|
|---|
| 677 | NONE)
|
|---|
| 678 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
|
|---|
| 679 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
|
|---|
| 680 | fi ;;
|
|---|
| 681 | *) host_alias=$nonopt ;;
|
|---|
| 682 | esac ;;
|
|---|
| 683 | esac
|
|---|
| 684 |
|
|---|
| 685 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
|
|---|
| 686 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 687 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 688 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 689 | echo "$ac_t""$host" 1>&6
|
|---|
| 690 |
|
|---|
| 691 |
|
|---|
| 692 | # Check whether --enable-shared or --disable-shared was given.
|
|---|
| 693 | if test "${enable_shared+set}" = set; then
|
|---|
| 694 | enableval="$enable_shared"
|
|---|
| 695 | p=${PACKAGE-default}
|
|---|
| 696 | case $enableval in
|
|---|
| 697 | yes) enable_shared=yes ;;
|
|---|
| 698 | no) enable_shared=no ;;
|
|---|
| 699 | *)
|
|---|
| 700 | enable_shared=no
|
|---|
| 701 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 702 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 703 | for pkg in $enableval; do
|
|---|
| 704 | if test "X$pkg" = "X$p"; then
|
|---|
| 705 | enable_shared=yes
|
|---|
| 706 | fi
|
|---|
| 707 | done
|
|---|
| 708 | IFS="$ac_save_ifs"
|
|---|
| 709 | ;;
|
|---|
| 710 | esac
|
|---|
| 711 | else
|
|---|
| 712 | enable_shared=yes
|
|---|
| 713 | fi
|
|---|
| 714 |
|
|---|
| 715 | # Check whether --enable-static or --disable-static was given.
|
|---|
| 716 | if test "${enable_static+set}" = set; then
|
|---|
| 717 | enableval="$enable_static"
|
|---|
| 718 | p=${PACKAGE-default}
|
|---|
| 719 | case $enableval in
|
|---|
| 720 | yes) enable_static=yes ;;
|
|---|
| 721 | no) enable_static=no ;;
|
|---|
| 722 | *)
|
|---|
| 723 | enable_static=no
|
|---|
| 724 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 725 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 726 | for pkg in $enableval; do
|
|---|
| 727 | if test "X$pkg" = "X$p"; then
|
|---|
| 728 | enable_static=yes
|
|---|
| 729 | fi
|
|---|
| 730 | done
|
|---|
| 731 | IFS="$ac_save_ifs"
|
|---|
| 732 | ;;
|
|---|
| 733 | esac
|
|---|
| 734 | else
|
|---|
| 735 | enable_static=yes
|
|---|
| 736 | fi
|
|---|
| 737 |
|
|---|
| 738 | # Check whether --enable-fast-install or --disable-fast-install was given.
|
|---|
| 739 | if test "${enable_fast_install+set}" = set; then
|
|---|
| 740 | enableval="$enable_fast_install"
|
|---|
| 741 | p=${PACKAGE-default}
|
|---|
| 742 | case $enableval in
|
|---|
| 743 | yes) enable_fast_install=yes ;;
|
|---|
| 744 | no) enable_fast_install=no ;;
|
|---|
| 745 | *)
|
|---|
| 746 | enable_fast_install=no
|
|---|
| 747 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 748 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 749 | for pkg in $enableval; do
|
|---|
| 750 | if test "X$pkg" = "X$p"; then
|
|---|
| 751 | enable_fast_install=yes
|
|---|
| 752 | fi
|
|---|
| 753 | done
|
|---|
| 754 | IFS="$ac_save_ifs"
|
|---|
| 755 | ;;
|
|---|
| 756 | esac
|
|---|
| 757 | else
|
|---|
| 758 | enable_fast_install=yes
|
|---|
| 759 | fi
|
|---|
| 760 |
|
|---|
| 761 | echo $ac_n "checking build system type""... $ac_c" 1>&6
|
|---|
| 762 | echo "configure:763: checking build system type" >&5
|
|---|
| 763 |
|
|---|
| 764 | build_alias=$build
|
|---|
| 765 | case "$build_alias" in
|
|---|
| 766 | NONE)
|
|---|
| 767 | case $nonopt in
|
|---|
| 768 | NONE) build_alias=$host_alias ;;
|
|---|
| 769 | *) build_alias=$nonopt ;;
|
|---|
| 770 | esac ;;
|
|---|
| 771 | esac
|
|---|
| 772 |
|
|---|
| 773 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
|
|---|
| 774 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 775 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 776 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 777 | echo "$ac_t""$build" 1>&6
|
|---|
| 778 |
|
|---|
| 779 | # Extract the first word of "gcc", so it can be a program name with args.
|
|---|
| 780 | set dummy gcc; ac_word=$2
|
|---|
| 781 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 782 | echo "configure:783: checking for $ac_word" >&5
|
|---|
| 783 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 784 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 785 | else
|
|---|
| 786 | if test -n "$CC"; then
|
|---|
| 787 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 788 | else
|
|---|
| 789 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 790 | ac_dummy="$PATH"
|
|---|
| 791 | for ac_dir in $ac_dummy; do
|
|---|
| 792 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 793 | if test -f $ac_dir/$ac_word; then
|
|---|
| 794 | ac_cv_prog_CC="gcc"
|
|---|
| 795 | break
|
|---|
| 796 | fi
|
|---|
| 797 | done
|
|---|
| 798 | IFS="$ac_save_ifs"
|
|---|
| 799 | fi
|
|---|
| 800 | fi
|
|---|
| 801 | CC="$ac_cv_prog_CC"
|
|---|
| 802 | if test -n "$CC"; then
|
|---|
| 803 | echo "$ac_t""$CC" 1>&6
|
|---|
| 804 | else
|
|---|
| 805 | echo "$ac_t""no" 1>&6
|
|---|
| 806 | fi
|
|---|
| 807 |
|
|---|
| 808 | if test -z "$CC"; then
|
|---|
| 809 | # Extract the first word of "cc", so it can be a program name with args.
|
|---|
| 810 | set dummy cc; ac_word=$2
|
|---|
| 811 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 812 | echo "configure:813: checking for $ac_word" >&5
|
|---|
| 813 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 814 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 815 | else
|
|---|
| 816 | if test -n "$CC"; then
|
|---|
| 817 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 818 | else
|
|---|
| 819 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 820 | ac_prog_rejected=no
|
|---|
| 821 | ac_dummy="$PATH"
|
|---|
| 822 | for ac_dir in $ac_dummy; do
|
|---|
| 823 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 824 | if test -f $ac_dir/$ac_word; then
|
|---|
| 825 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|---|
| 826 | ac_prog_rejected=yes
|
|---|
| 827 | continue
|
|---|
| 828 | fi
|
|---|
| 829 | ac_cv_prog_CC="cc"
|
|---|
| 830 | break
|
|---|
| 831 | fi
|
|---|
| 832 | done
|
|---|
| 833 | IFS="$ac_save_ifs"
|
|---|
| 834 | if test $ac_prog_rejected = yes; then
|
|---|
| 835 | # We found a bogon in the path, so make sure we never use it.
|
|---|
| 836 | set dummy $ac_cv_prog_CC
|
|---|
| 837 | shift
|
|---|
| 838 | if test $# -gt 0; then
|
|---|
| 839 | # We chose a different compiler from the bogus one.
|
|---|
| 840 | # However, it has the same basename, so the bogon will be chosen
|
|---|
| 841 | # first if we set CC to just the basename; use the full file name.
|
|---|
| 842 | shift
|
|---|
| 843 | set dummy "$ac_dir/$ac_word" "$@"
|
|---|
| 844 | shift
|
|---|
| 845 | ac_cv_prog_CC="$@"
|
|---|
| 846 | fi
|
|---|
| 847 | fi
|
|---|
| 848 | fi
|
|---|
| 849 | fi
|
|---|
| 850 | CC="$ac_cv_prog_CC"
|
|---|
| 851 | if test -n "$CC"; then
|
|---|
| 852 | echo "$ac_t""$CC" 1>&6
|
|---|
| 853 | else
|
|---|
| 854 | echo "$ac_t""no" 1>&6
|
|---|
| 855 | fi
|
|---|
| 856 |
|
|---|
| 857 | if test -z "$CC"; then
|
|---|
| 858 | case "`uname -s`" in
|
|---|
| 859 | *win32* | *WIN32*)
|
|---|
| 860 | # Extract the first word of "cl", so it can be a program name with args.
|
|---|
| 861 | set dummy cl; ac_word=$2
|
|---|
| 862 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 863 | echo "configure:864: checking for $ac_word" >&5
|
|---|
| 864 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 865 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 866 | else
|
|---|
| 867 | if test -n "$CC"; then
|
|---|
| 868 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 869 | else
|
|---|
| 870 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 871 | ac_dummy="$PATH"
|
|---|
| 872 | for ac_dir in $ac_dummy; do
|
|---|
| 873 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 874 | if test -f $ac_dir/$ac_word; then
|
|---|
| 875 | ac_cv_prog_CC="cl"
|
|---|
| 876 | break
|
|---|
| 877 | fi
|
|---|
| 878 | done
|
|---|
| 879 | IFS="$ac_save_ifs"
|
|---|
| 880 | fi
|
|---|
| 881 | fi
|
|---|
| 882 | CC="$ac_cv_prog_CC"
|
|---|
| 883 | if test -n "$CC"; then
|
|---|
| 884 | echo "$ac_t""$CC" 1>&6
|
|---|
| 885 | else
|
|---|
| 886 | echo "$ac_t""no" 1>&6
|
|---|
| 887 | fi
|
|---|
| 888 | ;;
|
|---|
| 889 | esac
|
|---|
| 890 | fi
|
|---|
| 891 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|---|
| 892 | fi
|
|---|
| 893 |
|
|---|
| 894 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|---|
| 895 | echo "configure:896: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
|---|
| 896 |
|
|---|
| 897 | ac_ext=c
|
|---|
| 898 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 899 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 900 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 901 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 902 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 903 |
|
|---|
| 904 | cat > conftest.$ac_ext << EOF
|
|---|
| 905 |
|
|---|
| 906 | #line 907 "configure"
|
|---|
| 907 | #include "confdefs.h"
|
|---|
| 908 |
|
|---|
| 909 | main(){return(0);}
|
|---|
| 910 | EOF
|
|---|
| 911 | if { (eval echo configure:912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 912 | ac_cv_prog_cc_works=yes
|
|---|
| 913 | # If we can't run a trivial program, we are probably using a cross compiler.
|
|---|
| 914 | if (./conftest; exit) 2>/dev/null; then
|
|---|
| 915 | ac_cv_prog_cc_cross=no
|
|---|
| 916 | else
|
|---|
| 917 | ac_cv_prog_cc_cross=yes
|
|---|
| 918 | fi
|
|---|
| 919 | else
|
|---|
| 920 | echo "configure: failed program was:" >&5
|
|---|
| 921 | cat conftest.$ac_ext >&5
|
|---|
| 922 | ac_cv_prog_cc_works=no
|
|---|
| 923 | fi
|
|---|
| 924 | rm -fr conftest*
|
|---|
| 925 | ac_ext=c
|
|---|
| 926 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 927 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 928 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 929 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 930 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 931 |
|
|---|
| 932 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|---|
| 933 | if test $ac_cv_prog_cc_works = no; then
|
|---|
| 934 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 935 | fi
|
|---|
| 936 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|---|
| 937 | echo "configure:938: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|---|
| 938 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|---|
| 939 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 940 |
|
|---|
| 941 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
|---|
| 942 | echo "configure:943: checking whether we are using GNU C" >&5
|
|---|
| 943 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
|---|
| 944 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 945 | else
|
|---|
| 946 | cat > conftest.c <<EOF
|
|---|
| 947 | #ifdef __GNUC__
|
|---|
| 948 | yes;
|
|---|
| 949 | #endif
|
|---|
| 950 | EOF
|
|---|
| 951 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|---|
| 952 | ac_cv_prog_gcc=yes
|
|---|
| 953 | else
|
|---|
| 954 | ac_cv_prog_gcc=no
|
|---|
| 955 | fi
|
|---|
| 956 | fi
|
|---|
| 957 |
|
|---|
| 958 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|---|
| 959 |
|
|---|
| 960 | if test $ac_cv_prog_gcc = yes; then
|
|---|
| 961 | GCC=yes
|
|---|
| 962 | else
|
|---|
| 963 | GCC=
|
|---|
| 964 | fi
|
|---|
| 965 |
|
|---|
| 966 | ac_test_CFLAGS="${CFLAGS+set}"
|
|---|
| 967 | ac_save_CFLAGS="$CFLAGS"
|
|---|
| 968 | CFLAGS=
|
|---|
| 969 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|---|
| 970 | echo "configure:971: checking whether ${CC-cc} accepts -g" >&5
|
|---|
| 971 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
|---|
| 972 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 973 | else
|
|---|
| 974 | echo 'void f(){}' > conftest.c
|
|---|
| 975 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|---|
| 976 | ac_cv_prog_cc_g=yes
|
|---|
| 977 | else
|
|---|
| 978 | ac_cv_prog_cc_g=no
|
|---|
| 979 | fi
|
|---|
| 980 | rm -f conftest*
|
|---|
| 981 |
|
|---|
| 982 | fi
|
|---|
| 983 |
|
|---|
| 984 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|---|
| 985 | if test "$ac_test_CFLAGS" = set; then
|
|---|
| 986 | CFLAGS="$ac_save_CFLAGS"
|
|---|
| 987 | elif test $ac_cv_prog_cc_g = yes; then
|
|---|
| 988 | if test "$GCC" = yes; then
|
|---|
| 989 | CFLAGS="-g -O2"
|
|---|
| 990 | else
|
|---|
| 991 | CFLAGS="-g"
|
|---|
| 992 | fi
|
|---|
| 993 | else
|
|---|
| 994 | if test "$GCC" = yes; then
|
|---|
| 995 | CFLAGS="-O2"
|
|---|
| 996 | else
|
|---|
| 997 | CFLAGS=
|
|---|
| 998 | fi
|
|---|
| 999 | fi
|
|---|
| 1000 |
|
|---|
| 1001 | # Check whether --with-gnu-ld or --without-gnu-ld was given.
|
|---|
| 1002 | if test "${with_gnu_ld+set}" = set; then
|
|---|
| 1003 | withval="$with_gnu_ld"
|
|---|
| 1004 | test "$withval" = no || with_gnu_ld=yes
|
|---|
| 1005 | else
|
|---|
| 1006 | with_gnu_ld=no
|
|---|
| 1007 | fi
|
|---|
| 1008 |
|
|---|
| 1009 | ac_prog=ld
|
|---|
| 1010 | if test "$GCC" = yes; then
|
|---|
| 1011 | # Check if gcc -print-prog-name=ld gives a path.
|
|---|
| 1012 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
|
|---|
| 1013 | echo "configure:1014: checking for ld used by GCC" >&5
|
|---|
| 1014 | case $host in
|
|---|
| 1015 | *-*-mingw*)
|
|---|
| 1016 | # gcc leaves a trailing carriage return which upsets mingw
|
|---|
| 1017 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
|---|
| 1018 | *)
|
|---|
| 1019 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
|---|
| 1020 | esac
|
|---|
| 1021 | case $ac_prog in
|
|---|
| 1022 | # Accept absolute paths.
|
|---|
| 1023 | [\\/]* | [A-Za-z]:[\\/]*)
|
|---|
| 1024 | re_direlt='/[^/][^/]*/\.\./'
|
|---|
| 1025 | # Canonicalize the path of ld
|
|---|
| 1026 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
|
|---|
| 1027 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
|---|
| 1028 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
|---|
| 1029 | done
|
|---|
| 1030 | test -z "$LD" && LD="$ac_prog"
|
|---|
| 1031 | ;;
|
|---|
| 1032 | "")
|
|---|
| 1033 | # If it fails, then pretend we aren't using GCC.
|
|---|
| 1034 | ac_prog=ld
|
|---|
| 1035 | ;;
|
|---|
| 1036 | *)
|
|---|
| 1037 | # If it is relative, then search for the first ld in PATH.
|
|---|
| 1038 | with_gnu_ld=unknown
|
|---|
| 1039 | ;;
|
|---|
| 1040 | esac
|
|---|
| 1041 | elif test "$with_gnu_ld" = yes; then
|
|---|
| 1042 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
|
|---|
| 1043 | echo "configure:1044: checking for GNU ld" >&5
|
|---|
| 1044 | else
|
|---|
| 1045 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
|
|---|
| 1046 | echo "configure:1047: checking for non-GNU ld" >&5
|
|---|
| 1047 | fi
|
|---|
| 1048 | if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
|
|---|
| 1049 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1050 | else
|
|---|
| 1051 | if test -z "$LD"; then
|
|---|
| 1052 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
|---|
| 1053 | for ac_dir in $PATH; do
|
|---|
| 1054 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1055 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
|---|
| 1056 | lt_cv_path_LD="$ac_dir/$ac_prog"
|
|---|
| 1057 | # Check to see if the program is GNU ld. I'd rather use --version,
|
|---|
| 1058 | # but apparently some GNU ld's only accept -v.
|
|---|
| 1059 | # Break only if it was the GNU/non-GNU ld that we prefer.
|
|---|
| 1060 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
|---|
| 1061 | test "$with_gnu_ld" != no && break
|
|---|
| 1062 | else
|
|---|
| 1063 | test "$with_gnu_ld" != yes && break
|
|---|
| 1064 | fi
|
|---|
| 1065 | fi
|
|---|
| 1066 | done
|
|---|
| 1067 | IFS="$ac_save_ifs"
|
|---|
| 1068 | else
|
|---|
| 1069 | lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
|---|
| 1070 | fi
|
|---|
| 1071 | fi
|
|---|
| 1072 |
|
|---|
| 1073 | LD="$lt_cv_path_LD"
|
|---|
| 1074 | if test -n "$LD"; then
|
|---|
| 1075 | echo "$ac_t""$LD" 1>&6
|
|---|
| 1076 | else
|
|---|
| 1077 | echo "$ac_t""no" 1>&6
|
|---|
| 1078 | fi
|
|---|
| 1079 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
|
|---|
| 1080 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
|
|---|
| 1081 | echo "configure:1082: checking if the linker ($LD) is GNU ld" >&5
|
|---|
| 1082 | if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
|
|---|
| 1083 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1084 | else
|
|---|
| 1085 | # I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
|---|
| 1086 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
|---|
| 1087 | lt_cv_prog_gnu_ld=yes
|
|---|
| 1088 | else
|
|---|
| 1089 | lt_cv_prog_gnu_ld=no
|
|---|
| 1090 | fi
|
|---|
| 1091 | fi
|
|---|
| 1092 |
|
|---|
| 1093 | echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
|
|---|
| 1094 | with_gnu_ld=$lt_cv_prog_gnu_ld
|
|---|
| 1095 |
|
|---|
| 1096 |
|
|---|
| 1097 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
|
|---|
| 1098 | echo "configure:1099: checking for $LD option to reload object files" >&5
|
|---|
| 1099 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
|
|---|
| 1100 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1101 | else
|
|---|
| 1102 | lt_cv_ld_reload_flag='-r'
|
|---|
| 1103 | fi
|
|---|
| 1104 |
|
|---|
| 1105 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
|
|---|
| 1106 | reload_flag=$lt_cv_ld_reload_flag
|
|---|
| 1107 | test -n "$reload_flag" && reload_flag=" $reload_flag"
|
|---|
| 1108 |
|
|---|
| 1109 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
|
|---|
| 1110 | echo "configure:1111: checking for BSD-compatible nm" >&5
|
|---|
| 1111 | if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
|
|---|
| 1112 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1113 | else
|
|---|
| 1114 | if test -n "$NM"; then
|
|---|
| 1115 | # Let the user override the test.
|
|---|
| 1116 | lt_cv_path_NM="$NM"
|
|---|
| 1117 | else
|
|---|
| 1118 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
|---|
| 1119 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
|
|---|
| 1120 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1121 | tmp_nm=$ac_dir/${ac_tool_prefix}nm
|
|---|
| 1122 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
|
|---|
| 1123 | # Check to see if the nm accepts a BSD-compat flag.
|
|---|
| 1124 | # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
|---|
| 1125 | # nm: unknown option "B" ignored
|
|---|
| 1126 | # Tru64's nm complains that /dev/null is an invalid object file
|
|---|
| 1127 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
|
|---|
| 1128 | lt_cv_path_NM="$tmp_nm -B"
|
|---|
| 1129 | break
|
|---|
| 1130 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
|
|---|
| 1131 | lt_cv_path_NM="$tmp_nm -p"
|
|---|
| 1132 | break
|
|---|
| 1133 | else
|
|---|
| 1134 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
|---|
| 1135 | continue # so that we can try to find one that supports BSD flags
|
|---|
| 1136 | fi
|
|---|
| 1137 | fi
|
|---|
| 1138 | done
|
|---|
| 1139 | IFS="$ac_save_ifs"
|
|---|
| 1140 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
|
|---|
| 1141 | fi
|
|---|
| 1142 | fi
|
|---|
| 1143 |
|
|---|
| 1144 | NM="$lt_cv_path_NM"
|
|---|
| 1145 | echo "$ac_t""$NM" 1>&6
|
|---|
| 1146 |
|
|---|
| 1147 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
|---|
| 1148 | echo "configure:1149: checking whether ln -s works" >&5
|
|---|
| 1149 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
|
|---|
| 1150 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1151 | else
|
|---|
| 1152 | rm -f conftestdata
|
|---|
| 1153 | if ln -s X conftestdata 2>/dev/null
|
|---|
| 1154 | then
|
|---|
| 1155 | rm -f conftestdata
|
|---|
| 1156 | ac_cv_prog_LN_S="ln -s"
|
|---|
| 1157 | else
|
|---|
| 1158 | ac_cv_prog_LN_S=ln
|
|---|
| 1159 | fi
|
|---|
| 1160 | fi
|
|---|
| 1161 | LN_S="$ac_cv_prog_LN_S"
|
|---|
| 1162 | if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
|---|
| 1163 | echo "$ac_t""yes" 1>&6
|
|---|
| 1164 | else
|
|---|
| 1165 | echo "$ac_t""no" 1>&6
|
|---|
| 1166 | fi
|
|---|
| 1167 |
|
|---|
| 1168 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
|
|---|
| 1169 | echo "configure:1170: checking how to recognise dependant libraries" >&5
|
|---|
| 1170 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
|
|---|
| 1171 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1172 | else
|
|---|
| 1173 | lt_cv_file_magic_cmd='$MAGIC_CMD'
|
|---|
| 1174 | lt_cv_file_magic_test_file=
|
|---|
| 1175 | lt_cv_deplibs_check_method='unknown'
|
|---|
| 1176 | # Need to set the preceding variable on all platforms that support
|
|---|
| 1177 | # interlibrary dependencies.
|
|---|
| 1178 | # 'none' -- dependencies not supported.
|
|---|
| 1179 | # `unknown' -- same as none, but documents that we really don't know.
|
|---|
| 1180 | # 'pass_all' -- all dependencies passed with no checks.
|
|---|
| 1181 | # 'test_compile' -- check by making test program.
|
|---|
| 1182 | # 'file_magic [regex]' -- check by looking for files in library path
|
|---|
| 1183 | # which responds to the $file_magic_cmd with a given egrep regex.
|
|---|
| 1184 | # If you have `file' or equivalent on your system and you're not sure
|
|---|
| 1185 | # whether `pass_all' will *always* work, you probably want this one.
|
|---|
| 1186 |
|
|---|
| 1187 | case $host_os in
|
|---|
| 1188 | aix*)
|
|---|
| 1189 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1190 | ;;
|
|---|
| 1191 |
|
|---|
| 1192 | beos*)
|
|---|
| 1193 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1194 | ;;
|
|---|
| 1195 |
|
|---|
| 1196 | bsdi4*)
|
|---|
| 1197 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
|---|
| 1198 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
|---|
| 1199 | lt_cv_file_magic_test_file=/shlib/libc.so
|
|---|
| 1200 | ;;
|
|---|
| 1201 |
|
|---|
| 1202 | cygwin* | mingw* |pw32*)
|
|---|
| 1203 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
|---|
| 1204 | lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|---|
| 1205 | ;;
|
|---|
| 1206 |
|
|---|
| 1207 | darwin* | rhapsody*)
|
|---|
| 1208 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
|
|---|
| 1209 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
|---|
| 1210 | case "$host_os" in
|
|---|
| 1211 | rhapsody* | darwin1.012)
|
|---|
| 1212 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
|
|---|
| 1213 | ;;
|
|---|
| 1214 | *) # Darwin 1.3 on
|
|---|
| 1215 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
|
|---|
| 1216 | ;;
|
|---|
| 1217 | esac
|
|---|
| 1218 | ;;
|
|---|
| 1219 |
|
|---|
| 1220 | freebsd* )
|
|---|
| 1221 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
|---|
| 1222 | case $host_cpu in
|
|---|
| 1223 | i*86 )
|
|---|
| 1224 | # Not sure whether the presence of OpenBSD here was a mistake.
|
|---|
| 1225 | # Let's accept both of them until this is cleared up.
|
|---|
| 1226 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
|
|---|
| 1227 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1228 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
|---|
| 1229 | ;;
|
|---|
| 1230 | esac
|
|---|
| 1231 | else
|
|---|
| 1232 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1233 | fi
|
|---|
| 1234 | ;;
|
|---|
| 1235 |
|
|---|
| 1236 | gnu*)
|
|---|
| 1237 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1238 | ;;
|
|---|
| 1239 |
|
|---|
| 1240 | hpux10.20*|hpux11*)
|
|---|
| 1241 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
|
|---|
| 1242 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1243 | lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
|---|
| 1244 | ;;
|
|---|
| 1245 |
|
|---|
| 1246 | irix5* | irix6*)
|
|---|
| 1247 | case $host_os in
|
|---|
| 1248 | irix5*)
|
|---|
| 1249 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 1250 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
|
|---|
| 1251 | ;;
|
|---|
| 1252 | *)
|
|---|
| 1253 | case $LD in
|
|---|
| 1254 | *-32|*"-32 ") libmagic=32-bit;;
|
|---|
| 1255 | *-n32|*"-n32 ") libmagic=N32;;
|
|---|
| 1256 | *-64|*"-64 ") libmagic=64-bit;;
|
|---|
| 1257 | *) libmagic=never-match;;
|
|---|
| 1258 | esac
|
|---|
| 1259 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 1260 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
|
|---|
| 1261 | ;;
|
|---|
| 1262 | esac
|
|---|
| 1263 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
|
|---|
| 1264 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1265 | ;;
|
|---|
| 1266 |
|
|---|
| 1267 | # This must be Linux ELF.
|
|---|
| 1268 | linux-gnu*)
|
|---|
| 1269 | case $host_cpu in
|
|---|
| 1270 | alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
|
|---|
| 1271 | lt_cv_deplibs_check_method=pass_all ;;
|
|---|
| 1272 | *)
|
|---|
| 1273 | # glibc up to 2.1.1 does not perform some relocations on ARM
|
|---|
| 1274 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
|
|---|
| 1275 | esac
|
|---|
| 1276 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
|---|
| 1277 | ;;
|
|---|
| 1278 |
|
|---|
| 1279 | netbsd*)
|
|---|
| 1280 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
|---|
| 1281 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
|---|
| 1282 | else
|
|---|
| 1283 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
|
|---|
| 1284 | fi
|
|---|
| 1285 | ;;
|
|---|
| 1286 |
|
|---|
| 1287 | newsos6)
|
|---|
| 1288 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
|---|
| 1289 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1290 | lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
|---|
| 1291 | ;;
|
|---|
| 1292 |
|
|---|
| 1293 | osf3* | osf4* | osf5*)
|
|---|
| 1294 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 1295 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
|
|---|
| 1296 | lt_cv_file_magic_test_file=/shlib/libc.so
|
|---|
| 1297 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1298 | ;;
|
|---|
| 1299 |
|
|---|
| 1300 | sco3.2v5*)
|
|---|
| 1301 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1302 | ;;
|
|---|
| 1303 |
|
|---|
| 1304 | solaris*)
|
|---|
| 1305 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1306 | lt_cv_file_magic_test_file=/lib/libc.so
|
|---|
| 1307 | ;;
|
|---|
| 1308 |
|
|---|
| 1309 | sysv5uw[78]* | sysv4*uw2*)
|
|---|
| 1310 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1311 | ;;
|
|---|
| 1312 |
|
|---|
| 1313 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
|---|
| 1314 | case $host_vendor in
|
|---|
| 1315 | ncr)
|
|---|
| 1316 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1317 | ;;
|
|---|
| 1318 | motorola)
|
|---|
| 1319 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
|
|---|
| 1320 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
|---|
| 1321 | ;;
|
|---|
| 1322 | esac
|
|---|
| 1323 | ;;
|
|---|
| 1324 | esac
|
|---|
| 1325 |
|
|---|
| 1326 | fi
|
|---|
| 1327 |
|
|---|
| 1328 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
|
|---|
| 1329 | file_magic_cmd=$lt_cv_file_magic_cmd
|
|---|
| 1330 | deplibs_check_method=$lt_cv_deplibs_check_method
|
|---|
| 1331 |
|
|---|
| 1332 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6
|
|---|
| 1333 | echo "configure:1334: checking for object suffix" >&5
|
|---|
| 1334 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
|
|---|
| 1335 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1336 | else
|
|---|
| 1337 | rm -f conftest*
|
|---|
| 1338 | echo 'int i = 1;' > conftest.$ac_ext
|
|---|
| 1339 | if { (eval echo configure:1340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 1340 | for ac_file in conftest.*; do
|
|---|
| 1341 | case $ac_file in
|
|---|
| 1342 | *.c) ;;
|
|---|
| 1343 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
|
|---|
| 1344 | esac
|
|---|
| 1345 | done
|
|---|
| 1346 | else
|
|---|
| 1347 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
|
|---|
| 1348 | fi
|
|---|
| 1349 | rm -f conftest*
|
|---|
| 1350 | fi
|
|---|
| 1351 |
|
|---|
| 1352 | echo "$ac_t""$ac_cv_objext" 1>&6
|
|---|
| 1353 | OBJEXT=$ac_cv_objext
|
|---|
| 1354 | ac_objext=$ac_cv_objext
|
|---|
| 1355 |
|
|---|
| 1356 |
|
|---|
| 1357 |
|
|---|
| 1358 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
|---|
| 1359 | echo "configure:1360: checking for executable suffix" >&5
|
|---|
| 1360 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
|---|
| 1361 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1362 | else
|
|---|
| 1363 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
|
|---|
| 1364 | ac_cv_exeext=.exe
|
|---|
| 1365 | else
|
|---|
| 1366 | rm -f conftest*
|
|---|
| 1367 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
|---|
| 1368 | ac_cv_exeext=
|
|---|
| 1369 | if { (eval echo configure:1370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
|---|
| 1370 | for file in conftest.*; do
|
|---|
| 1371 | case $file in
|
|---|
| 1372 | *.c | *.o | *.obj) ;;
|
|---|
| 1373 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
|---|
| 1374 | esac
|
|---|
| 1375 | done
|
|---|
| 1376 | else
|
|---|
| 1377 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 1378 | fi
|
|---|
| 1379 | rm -f conftest*
|
|---|
| 1380 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
|---|
| 1381 | fi
|
|---|
| 1382 | fi
|
|---|
| 1383 |
|
|---|
| 1384 | EXEEXT=""
|
|---|
| 1385 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
|---|
| 1386 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
|---|
| 1387 | ac_exeext=$EXEEXT
|
|---|
| 1388 |
|
|---|
| 1389 | if test $host != $build; then
|
|---|
| 1390 | ac_tool_prefix=${host_alias}-
|
|---|
| 1391 | else
|
|---|
| 1392 | ac_tool_prefix=
|
|---|
| 1393 | fi
|
|---|
| 1394 |
|
|---|
| 1395 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
|
|---|
| 1396 |
|
|---|
| 1397 | # Only perform the check for file, if the check method requires it
|
|---|
| 1398 | case $deplibs_check_method in
|
|---|
| 1399 | file_magic*)
|
|---|
| 1400 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
|---|
| 1401 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
|
|---|
| 1402 | echo "configure:1403: checking for ${ac_tool_prefix}file" >&5
|
|---|
| 1403 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
|---|
| 1404 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1405 | else
|
|---|
| 1406 | case $MAGIC_CMD in
|
|---|
| 1407 | /*)
|
|---|
| 1408 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
|---|
| 1409 | ;;
|
|---|
| 1410 | ?:/*)
|
|---|
| 1411 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
|---|
| 1412 | ;;
|
|---|
| 1413 | *)
|
|---|
| 1414 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
|---|
| 1415 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 1416 | ac_dummy="/usr/bin:$PATH"
|
|---|
| 1417 | for ac_dir in $ac_dummy; do
|
|---|
| 1418 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1419 | if test -f $ac_dir/${ac_tool_prefix}file; then
|
|---|
| 1420 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
|
|---|
| 1421 | if test -n "$file_magic_test_file"; then
|
|---|
| 1422 | case $deplibs_check_method in
|
|---|
| 1423 | "file_magic "*)
|
|---|
| 1424 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
|---|
| 1425 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1426 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
|---|
| 1427 | egrep "$file_magic_regex" > /dev/null; then
|
|---|
| 1428 | :
|
|---|
| 1429 | else
|
|---|
| 1430 | cat <<EOF 1>&2
|
|---|
| 1431 |
|
|---|
| 1432 | *** Warning: the command libtool uses to detect shared libraries,
|
|---|
| 1433 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
|---|
| 1434 | *** The result is that libtool may fail to recognize shared libraries
|
|---|
| 1435 | *** as such. This will affect the creation of libtool libraries that
|
|---|
| 1436 | *** depend on shared libraries, but programs linked with such libtool
|
|---|
| 1437 | *** libraries will work regardless of this problem. Nevertheless, you
|
|---|
| 1438 | *** may want to report the problem to your system manager and/or to
|
|---|
| 1439 | *** bug-libtool@gnu.org
|
|---|
| 1440 |
|
|---|
| 1441 | EOF
|
|---|
| 1442 | fi ;;
|
|---|
| 1443 | esac
|
|---|
| 1444 | fi
|
|---|
| 1445 | break
|
|---|
| 1446 | fi
|
|---|
| 1447 | done
|
|---|
| 1448 | IFS="$ac_save_ifs"
|
|---|
| 1449 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
|---|
| 1450 | ;;
|
|---|
| 1451 | esac
|
|---|
| 1452 | fi
|
|---|
| 1453 |
|
|---|
| 1454 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1455 | if test -n "$MAGIC_CMD"; then
|
|---|
| 1456 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
|---|
| 1457 | else
|
|---|
| 1458 | echo "$ac_t""no" 1>&6
|
|---|
| 1459 | fi
|
|---|
| 1460 |
|
|---|
| 1461 | if test -z "$lt_cv_path_MAGIC_CMD"; then
|
|---|
| 1462 | if test -n "$ac_tool_prefix"; then
|
|---|
| 1463 | echo $ac_n "checking for file""... $ac_c" 1>&6
|
|---|
| 1464 | echo "configure:1465: checking for file" >&5
|
|---|
| 1465 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
|---|
| 1466 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1467 | else
|
|---|
| 1468 | case $MAGIC_CMD in
|
|---|
| 1469 | /*)
|
|---|
| 1470 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
|---|
| 1471 | ;;
|
|---|
| 1472 | ?:/*)
|
|---|
| 1473 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
|---|
| 1474 | ;;
|
|---|
| 1475 | *)
|
|---|
| 1476 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
|---|
| 1477 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 1478 | ac_dummy="/usr/bin:$PATH"
|
|---|
| 1479 | for ac_dir in $ac_dummy; do
|
|---|
| 1480 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1481 | if test -f $ac_dir/file; then
|
|---|
| 1482 | lt_cv_path_MAGIC_CMD="$ac_dir/file"
|
|---|
| 1483 | if test -n "$file_magic_test_file"; then
|
|---|
| 1484 | case $deplibs_check_method in
|
|---|
| 1485 | "file_magic "*)
|
|---|
| 1486 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
|---|
| 1487 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1488 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
|---|
| 1489 | egrep "$file_magic_regex" > /dev/null; then
|
|---|
| 1490 | :
|
|---|
| 1491 | else
|
|---|
| 1492 | cat <<EOF 1>&2
|
|---|
| 1493 |
|
|---|
| 1494 | *** Warning: the command libtool uses to detect shared libraries,
|
|---|
| 1495 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
|---|
| 1496 | *** The result is that libtool may fail to recognize shared libraries
|
|---|
| 1497 | *** as such. This will affect the creation of libtool libraries that
|
|---|
| 1498 | *** depend on shared libraries, but programs linked with such libtool
|
|---|
| 1499 | *** libraries will work regardless of this problem. Nevertheless, you
|
|---|
| 1500 | *** may want to report the problem to your system manager and/or to
|
|---|
| 1501 | *** bug-libtool@gnu.org
|
|---|
| 1502 |
|
|---|
| 1503 | EOF
|
|---|
| 1504 | fi ;;
|
|---|
| 1505 | esac
|
|---|
| 1506 | fi
|
|---|
| 1507 | break
|
|---|
| 1508 | fi
|
|---|
| 1509 | done
|
|---|
| 1510 | IFS="$ac_save_ifs"
|
|---|
| 1511 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
|---|
| 1512 | ;;
|
|---|
| 1513 | esac
|
|---|
| 1514 | fi
|
|---|
| 1515 |
|
|---|
| 1516 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1517 | if test -n "$MAGIC_CMD"; then
|
|---|
| 1518 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
|---|
| 1519 | else
|
|---|
| 1520 | echo "$ac_t""no" 1>&6
|
|---|
| 1521 | fi
|
|---|
| 1522 |
|
|---|
| 1523 | else
|
|---|
| 1524 | MAGIC_CMD=:
|
|---|
| 1525 | fi
|
|---|
| 1526 | fi
|
|---|
| 1527 |
|
|---|
| 1528 | fi
|
|---|
| 1529 | ;;
|
|---|
| 1530 | esac
|
|---|
| 1531 |
|
|---|
| 1532 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
|---|
| 1533 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
|---|
| 1534 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1535 | echo "configure:1536: checking for $ac_word" >&5
|
|---|
| 1536 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 1537 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1538 | else
|
|---|
| 1539 | if test -n "$RANLIB"; then
|
|---|
| 1540 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 1541 | else
|
|---|
| 1542 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 1543 | ac_dummy="$PATH"
|
|---|
| 1544 | for ac_dir in $ac_dummy; do
|
|---|
| 1545 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1546 | if test -f $ac_dir/$ac_word; then
|
|---|
| 1547 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
|---|
| 1548 | break
|
|---|
| 1549 | fi
|
|---|
| 1550 | done
|
|---|
| 1551 | IFS="$ac_save_ifs"
|
|---|
| 1552 | fi
|
|---|
| 1553 | fi
|
|---|
| 1554 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 1555 | if test -n "$RANLIB"; then
|
|---|
| 1556 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 1557 | else
|
|---|
| 1558 | echo "$ac_t""no" 1>&6
|
|---|
| 1559 | fi
|
|---|
| 1560 |
|
|---|
| 1561 |
|
|---|
| 1562 | if test -z "$ac_cv_prog_RANLIB"; then
|
|---|
| 1563 | if test -n "$ac_tool_prefix"; then
|
|---|
| 1564 | # Extract the first word of "ranlib", so it can be a program name with args.
|
|---|
| 1565 | set dummy ranlib; ac_word=$2
|
|---|
| 1566 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1567 | echo "configure:1568: checking for $ac_word" >&5
|
|---|
| 1568 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 1569 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1570 | else
|
|---|
| 1571 | if test -n "$RANLIB"; then
|
|---|
| 1572 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 1573 | else
|
|---|
| 1574 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 1575 | ac_dummy="$PATH"
|
|---|
| 1576 | for ac_dir in $ac_dummy; do
|
|---|
| 1577 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1578 | if test -f $ac_dir/$ac_word; then
|
|---|
| 1579 | ac_cv_prog_RANLIB="ranlib"
|
|---|
| 1580 | break
|
|---|
| 1581 | fi
|
|---|
| 1582 | done
|
|---|
| 1583 | IFS="$ac_save_ifs"
|
|---|
| 1584 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|---|
| 1585 | fi
|
|---|
| 1586 | fi
|
|---|
| 1587 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 1588 | if test -n "$RANLIB"; then
|
|---|
| 1589 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 1590 | else
|
|---|
| 1591 | echo "$ac_t""no" 1>&6
|
|---|
| 1592 | fi
|
|---|
| 1593 |
|
|---|
| 1594 | else
|
|---|
| 1595 | RANLIB=":"
|
|---|
| 1596 | fi
|
|---|
| 1597 | fi
|
|---|
| 1598 |
|
|---|
| 1599 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
|---|
| 1600 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
|---|
| 1601 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1602 | echo "configure:1603: checking for $ac_word" >&5
|
|---|
| 1603 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
|---|
| 1604 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1605 | else
|
|---|
| 1606 | if test -n "$STRIP"; then
|
|---|
| 1607 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
|---|
| 1608 | else
|
|---|
| 1609 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 1610 | ac_dummy="$PATH"
|
|---|
| 1611 | for ac_dir in $ac_dummy; do
|
|---|
| 1612 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1613 | if test -f $ac_dir/$ac_word; then
|
|---|
| 1614 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
|---|
| 1615 | break
|
|---|
| 1616 | fi
|
|---|
| 1617 | done
|
|---|
| 1618 | IFS="$ac_save_ifs"
|
|---|
| 1619 | fi
|
|---|
| 1620 | fi
|
|---|
| 1621 | STRIP="$ac_cv_prog_STRIP"
|
|---|
| 1622 | if test -n "$STRIP"; then
|
|---|
| 1623 | echo "$ac_t""$STRIP" 1>&6
|
|---|
| 1624 | else
|
|---|
| 1625 | echo "$ac_t""no" 1>&6
|
|---|
| 1626 | fi
|
|---|
| 1627 |
|
|---|
| 1628 |
|
|---|
| 1629 | if test -z "$ac_cv_prog_STRIP"; then
|
|---|
| 1630 | if test -n "$ac_tool_prefix"; then
|
|---|
| 1631 | # Extract the first word of "strip", so it can be a program name with args.
|
|---|
| 1632 | set dummy strip; ac_word=$2
|
|---|
| 1633 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1634 | echo "configure:1635: checking for $ac_word" >&5
|
|---|
| 1635 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
|---|
| 1636 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1637 | else
|
|---|
| 1638 | if test -n "$STRIP"; then
|
|---|
| 1639 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
|---|
| 1640 | else
|
|---|
| 1641 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 1642 | ac_dummy="$PATH"
|
|---|
| 1643 | for ac_dir in $ac_dummy; do
|
|---|
| 1644 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1645 | if test -f $ac_dir/$ac_word; then
|
|---|
| 1646 | ac_cv_prog_STRIP="strip"
|
|---|
| 1647 | break
|
|---|
| 1648 | fi
|
|---|
| 1649 | done
|
|---|
| 1650 | IFS="$ac_save_ifs"
|
|---|
| 1651 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
|
|---|
| 1652 | fi
|
|---|
| 1653 | fi
|
|---|
| 1654 | STRIP="$ac_cv_prog_STRIP"
|
|---|
| 1655 | if test -n "$STRIP"; then
|
|---|
| 1656 | echo "$ac_t""$STRIP" 1>&6
|
|---|
| 1657 | else
|
|---|
| 1658 | echo "$ac_t""no" 1>&6
|
|---|
| 1659 | fi
|
|---|
| 1660 |
|
|---|
| 1661 | else
|
|---|
| 1662 | STRIP=":"
|
|---|
| 1663 | fi
|
|---|
| 1664 | fi
|
|---|
| 1665 |
|
|---|
| 1666 |
|
|---|
| 1667 | # Check for any special flags to pass to ltconfig.
|
|---|
| 1668 | libtool_flags="--cache-file=$cache_file"
|
|---|
| 1669 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
|
|---|
| 1670 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
|
|---|
| 1671 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
|
|---|
| 1672 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
|
|---|
| 1673 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
|
|---|
| 1674 |
|
|---|
| 1675 |
|
|---|
| 1676 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
|
|---|
| 1677 | if test "${enable_libtool_lock+set}" = set; then
|
|---|
| 1678 | enableval="$enable_libtool_lock"
|
|---|
| 1679 | :
|
|---|
| 1680 | fi
|
|---|
| 1681 |
|
|---|
| 1682 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
|
|---|
| 1683 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
|
|---|
| 1684 |
|
|---|
| 1685 | # Check whether --with-pic or --without-pic was given.
|
|---|
| 1686 | if test "${with_pic+set}" = set; then
|
|---|
| 1687 | withval="$with_pic"
|
|---|
| 1688 | pic_mode="$withval"
|
|---|
| 1689 | else
|
|---|
| 1690 | pic_mode=default
|
|---|
| 1691 | fi
|
|---|
| 1692 |
|
|---|
| 1693 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
|
|---|
| 1694 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
|
|---|
| 1695 |
|
|---|
| 1696 | # Some flags need to be propagated to the compiler or linker for good
|
|---|
| 1697 | # libtool support.
|
|---|
| 1698 | case $host in
|
|---|
| 1699 | *-*-irix6*)
|
|---|
| 1700 | # Find out which ABI we are using.
|
|---|
| 1701 | echo '#line 1702 "configure"' > conftest.$ac_ext
|
|---|
| 1702 | if { (eval echo configure:1703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 1703 | case `/usr/bin/file conftest.$ac_objext` in
|
|---|
| 1704 | *32-bit*)
|
|---|
| 1705 | LD="${LD-ld} -32"
|
|---|
| 1706 | ;;
|
|---|
| 1707 | *N32*)
|
|---|
| 1708 | LD="${LD-ld} -n32"
|
|---|
| 1709 | ;;
|
|---|
| 1710 | *64-bit*)
|
|---|
| 1711 | LD="${LD-ld} -64"
|
|---|
| 1712 | ;;
|
|---|
| 1713 | esac
|
|---|
| 1714 | fi
|
|---|
| 1715 | rm -rf conftest*
|
|---|
| 1716 | ;;
|
|---|
| 1717 |
|
|---|
| 1718 | *-*-sco3.2v5*)
|
|---|
| 1719 | # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
|---|
| 1720 | SAVE_CFLAGS="$CFLAGS"
|
|---|
| 1721 | CFLAGS="$CFLAGS -belf"
|
|---|
| 1722 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
|
|---|
| 1723 | echo "configure:1724: checking whether the C compiler needs -belf" >&5
|
|---|
| 1724 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
|
|---|
| 1725 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1726 | else
|
|---|
| 1727 |
|
|---|
| 1728 | ac_ext=c
|
|---|
| 1729 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 1730 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 1731 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 1732 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 1733 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 1734 |
|
|---|
| 1735 | cat > conftest.$ac_ext <<EOF
|
|---|
| 1736 | #line 1737 "configure"
|
|---|
| 1737 | #include "confdefs.h"
|
|---|
| 1738 |
|
|---|
| 1739 | int main() {
|
|---|
| 1740 |
|
|---|
| 1741 | ; return 0; }
|
|---|
| 1742 | EOF
|
|---|
| 1743 | if { (eval echo configure:1744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 1744 | rm -rf conftest*
|
|---|
| 1745 | lt_cv_cc_needs_belf=yes
|
|---|
| 1746 | else
|
|---|
| 1747 | echo "configure: failed program was:" >&5
|
|---|
| 1748 | cat conftest.$ac_ext >&5
|
|---|
| 1749 | rm -rf conftest*
|
|---|
| 1750 | lt_cv_cc_needs_belf=no
|
|---|
| 1751 | fi
|
|---|
| 1752 | rm -f conftest*
|
|---|
| 1753 | ac_ext=c
|
|---|
| 1754 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 1755 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 1756 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 1757 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 1758 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 1759 |
|
|---|
| 1760 | fi
|
|---|
| 1761 |
|
|---|
| 1762 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
|
|---|
| 1763 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
|---|
| 1764 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
|---|
| 1765 | CFLAGS="$SAVE_CFLAGS"
|
|---|
| 1766 | fi
|
|---|
| 1767 | ;;
|
|---|
| 1768 |
|
|---|
| 1769 |
|
|---|
| 1770 | esac
|
|---|
| 1771 |
|
|---|
| 1772 |
|
|---|
| 1773 | # Save cache, so that ltconfig can load it
|
|---|
| 1774 | cat > confcache <<\EOF
|
|---|
| 1775 | # This file is a shell script that caches the results of configure
|
|---|
| 1776 | # tests run on this system so they can be shared between configure
|
|---|
| 1777 | # scripts and configure runs. It is not useful on other systems.
|
|---|
| 1778 | # If it contains results you don't want to keep, you may remove or edit it.
|
|---|
| 1779 | #
|
|---|
| 1780 | # By default, configure uses ./config.cache as the cache file,
|
|---|
| 1781 | # creating it if it does not exist already. You can give configure
|
|---|
| 1782 | # the --cache-file=FILE option to use a different cache file; that is
|
|---|
| 1783 | # what configure does when it calls configure scripts in
|
|---|
| 1784 | # subdirectories, so they share the cache.
|
|---|
| 1785 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
|---|
| 1786 | # config.status only pays attention to the cache file if you give it the
|
|---|
| 1787 | # --recheck option to rerun configure.
|
|---|
| 1788 | #
|
|---|
| 1789 | EOF
|
|---|
| 1790 | # The following way of writing the cache mishandles newlines in values,
|
|---|
| 1791 | # but we know of no workaround that is simple, portable, and efficient.
|
|---|
| 1792 | # So, don't put newlines in cache variables' values.
|
|---|
| 1793 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
|---|
| 1794 | # and sets the high bit in the cache file unless we assign to the vars.
|
|---|
| 1795 | (set) 2>&1 |
|
|---|
| 1796 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
|---|
| 1797 | *ac_space=\ *)
|
|---|
| 1798 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
|---|
| 1799 | # turns \\\\ into \\, and sed turns \\ into \).
|
|---|
| 1800 | sed -n \
|
|---|
| 1801 | -e "s/'/'\\\\''/g" \
|
|---|
| 1802 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
|---|
| 1803 | ;;
|
|---|
| 1804 | *)
|
|---|
| 1805 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
|---|
| 1806 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
|---|
| 1807 | ;;
|
|---|
| 1808 | esac >> confcache
|
|---|
| 1809 | if cmp -s $cache_file confcache; then
|
|---|
| 1810 | :
|
|---|
| 1811 | else
|
|---|
| 1812 | if test -w $cache_file; then
|
|---|
| 1813 | echo "updating cache $cache_file"
|
|---|
| 1814 | cat confcache > $cache_file
|
|---|
| 1815 | else
|
|---|
| 1816 | echo "not updating unwritable cache $cache_file"
|
|---|
| 1817 | fi
|
|---|
| 1818 | fi
|
|---|
| 1819 | rm -f confcache
|
|---|
| 1820 |
|
|---|
| 1821 |
|
|---|
| 1822 | # Actually configure libtool. ac_aux_dir is where install-sh is found.
|
|---|
| 1823 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
|
|---|
| 1824 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
|
|---|
| 1825 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
|
|---|
| 1826 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
|
|---|
| 1827 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
|
|---|
| 1828 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
|
|---|
| 1829 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
|
|---|
| 1830 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
|
|---|
| 1831 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
|
|---|
| 1832 |
|
|---|
| 1833 | # Reload cache, that may have been modified by ltconfig
|
|---|
| 1834 | if test -r "$cache_file"; then
|
|---|
| 1835 | echo "loading cache $cache_file"
|
|---|
| 1836 | . $cache_file
|
|---|
| 1837 | else
|
|---|
| 1838 | echo "creating cache $cache_file"
|
|---|
| 1839 | > $cache_file
|
|---|
| 1840 | fi
|
|---|
| 1841 |
|
|---|
| 1842 |
|
|---|
| 1843 | # This can be used to rebuild libtool when needed
|
|---|
| 1844 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
|
|---|
| 1845 |
|
|---|
| 1846 | # Always use our own libtool.
|
|---|
| 1847 | LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
|---|
| 1848 |
|
|---|
| 1849 | # Redirect the config.log output again, so that the ltconfig log is not
|
|---|
| 1850 | # clobbered by the next message.
|
|---|
| 1851 | exec 5>>./config.log
|
|---|
| 1852 |
|
|---|
| 1853 |
|
|---|
| 1854 |
|
|---|
| 1855 |
|
|---|
| 1856 |
|
|---|
| 1857 |
|
|---|
| 1858 |
|
|---|
| 1859 | # Find a good install program. We prefer a C program (faster),
|
|---|
| 1860 | # so one script is as good as another. But avoid the broken or
|
|---|
| 1861 | # incompatible versions:
|
|---|
| 1862 | # SysV /etc/install, /usr/sbin/install
|
|---|
| 1863 | # SunOS /usr/etc/install
|
|---|
| 1864 | # IRIX /sbin/install
|
|---|
| 1865 | # AIX /bin/install
|
|---|
| 1866 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
|---|
| 1867 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|---|
| 1868 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|---|
| 1869 | # ./install, which can be erroneously created by make from ./install.sh.
|
|---|
| 1870 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
|---|
| 1871 | echo "configure:1872: checking for a BSD compatible install" >&5
|
|---|
| 1872 | if test -z "$INSTALL"; then
|
|---|
| 1873 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
|---|
| 1874 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1875 | else
|
|---|
| 1876 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
|
|---|
| 1877 | for ac_dir in $PATH; do
|
|---|
| 1878 | # Account for people who put trailing slashes in PATH elements.
|
|---|
| 1879 | case "$ac_dir/" in
|
|---|
| 1880 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
|---|
| 1881 | *)
|
|---|
| 1882 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
|---|
| 1883 | # Don't use installbsd from OSF since it installs stuff as root
|
|---|
| 1884 | # by default.
|
|---|
| 1885 | for ac_prog in ginstall scoinst install; do
|
|---|
| 1886 | if test -f $ac_dir/$ac_prog; then
|
|---|
| 1887 | if test $ac_prog = install &&
|
|---|
| 1888 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|---|
| 1889 | # AIX install. It has an incompatible calling convention.
|
|---|
| 1890 | :
|
|---|
| 1891 | else
|
|---|
| 1892 | ac_cv_path_install="$ac_dir/$ac_prog -c"
|
|---|
| 1893 | break 2
|
|---|
| 1894 | fi
|
|---|
| 1895 | fi
|
|---|
| 1896 | done
|
|---|
| 1897 | ;;
|
|---|
| 1898 | esac
|
|---|
| 1899 | done
|
|---|
| 1900 | IFS="$ac_save_IFS"
|
|---|
| 1901 |
|
|---|
| 1902 | fi
|
|---|
| 1903 | if test "${ac_cv_path_install+set}" = set; then
|
|---|
| 1904 | INSTALL="$ac_cv_path_install"
|
|---|
| 1905 | else
|
|---|
| 1906 | # As a last resort, use the slow shell script. We don't cache a
|
|---|
| 1907 | # path for INSTALL within a source directory, because that will
|
|---|
| 1908 | # break other packages using the cache if that directory is
|
|---|
| 1909 | # removed, or if the path is relative.
|
|---|
| 1910 | INSTALL="$ac_install_sh"
|
|---|
| 1911 | fi
|
|---|
| 1912 | fi
|
|---|
| 1913 | echo "$ac_t""$INSTALL" 1>&6
|
|---|
| 1914 |
|
|---|
| 1915 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
|---|
| 1916 | # It thinks the first close brace ends the variable substitution.
|
|---|
| 1917 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|---|
| 1918 |
|
|---|
| 1919 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
|---|
| 1920 |
|
|---|
| 1921 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|---|
| 1922 |
|
|---|
| 1923 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
|
|---|
| 1924 | echo "configure:1925: checking whether build environment is sane" >&5
|
|---|
| 1925 | # Just in case
|
|---|
| 1926 | sleep 1
|
|---|
| 1927 | echo timestamp > conftestfile
|
|---|
| 1928 | # Do `set' in a subshell so we don't clobber the current shell's
|
|---|
| 1929 | # arguments. Must try -L first in case configure is actually a
|
|---|
| 1930 | # symlink; some systems play weird games with the mod time of symlinks
|
|---|
| 1931 | # (eg FreeBSD returns the mod time of the symlink's containing
|
|---|
| 1932 | # directory).
|
|---|
| 1933 | if (
|
|---|
| 1934 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
|
|---|
| 1935 | if test "$*" = "X"; then
|
|---|
| 1936 | # -L didn't work.
|
|---|
| 1937 | set X `ls -t $srcdir/configure conftestfile`
|
|---|
| 1938 | fi
|
|---|
| 1939 | if test "$*" != "X $srcdir/configure conftestfile" \
|
|---|
| 1940 | && test "$*" != "X conftestfile $srcdir/configure"; then
|
|---|
| 1941 |
|
|---|
| 1942 | # If neither matched, then we have a broken ls. This can happen
|
|---|
| 1943 | # if, for instance, CONFIG_SHELL is bash and it inherits a
|
|---|
| 1944 | # broken ls alias from the environment. This has actually
|
|---|
| 1945 | # happened. Such a system could not be considered "sane".
|
|---|
| 1946 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
|
|---|
| 1947 | alias in your environment" 1>&2; exit 1; }
|
|---|
| 1948 | fi
|
|---|
| 1949 |
|
|---|
| 1950 | test "$2" = conftestfile
|
|---|
| 1951 | )
|
|---|
| 1952 | then
|
|---|
| 1953 | # Ok.
|
|---|
| 1954 | :
|
|---|
| 1955 | else
|
|---|
| 1956 | { echo "configure: error: newly created file is older than distributed files!
|
|---|
| 1957 | Check your system clock" 1>&2; exit 1; }
|
|---|
| 1958 | fi
|
|---|
| 1959 | rm -f conftest*
|
|---|
| 1960 | echo "$ac_t""yes" 1>&6
|
|---|
| 1961 | if test "$program_transform_name" = s,x,x,; then
|
|---|
| 1962 | program_transform_name=
|
|---|
| 1963 | else
|
|---|
| 1964 | # Double any \ or $. echo might interpret backslashes.
|
|---|
| 1965 | cat <<\EOF_SED > conftestsed
|
|---|
| 1966 | s,\\,\\\\,g; s,\$,$$,g
|
|---|
| 1967 | EOF_SED
|
|---|
| 1968 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
|---|
| 1969 | rm -f conftestsed
|
|---|
| 1970 | fi
|
|---|
| 1971 | test "$program_prefix" != NONE &&
|
|---|
| 1972 | program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
|---|
| 1973 | # Use a double $ so make ignores it.
|
|---|
| 1974 | test "$program_suffix" != NONE &&
|
|---|
| 1975 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
|---|
| 1976 |
|
|---|
| 1977 | # sed with no file args requires a program.
|
|---|
| 1978 | test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
|---|
| 1979 |
|
|---|
| 1980 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
|---|
| 1981 | echo "configure:1982: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
|---|
| 1982 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
|---|
| 1983 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
|---|
| 1984 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1985 | else
|
|---|
| 1986 | cat > conftestmake <<\EOF
|
|---|
| 1987 | all:
|
|---|
| 1988 | @echo 'ac_maketemp="${MAKE}"'
|
|---|
| 1989 | EOF
|
|---|
| 1990 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|---|
| 1991 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
|---|
| 1992 | if test -n "$ac_maketemp"; then
|
|---|
| 1993 | eval ac_cv_prog_make_${ac_make}_set=yes
|
|---|
| 1994 | else
|
|---|
| 1995 | eval ac_cv_prog_make_${ac_make}_set=no
|
|---|
| 1996 | fi
|
|---|
| 1997 | rm -f conftestmake
|
|---|
| 1998 | fi
|
|---|
| 1999 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
|---|
| 2000 | echo "$ac_t""yes" 1>&6
|
|---|
| 2001 | SET_MAKE=
|
|---|
| 2002 | else
|
|---|
| 2003 | echo "$ac_t""no" 1>&6
|
|---|
| 2004 | SET_MAKE="MAKE=${MAKE-make}"
|
|---|
| 2005 | fi
|
|---|
| 2006 |
|
|---|
| 2007 |
|
|---|
| 2008 | PACKAGE=libffi
|
|---|
| 2009 |
|
|---|
| 2010 | VERSION=2.00-beta
|
|---|
| 2011 |
|
|---|
| 2012 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
|
|---|
| 2013 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
|
|---|
| 2014 | fi
|
|---|
| 2015 |
|
|---|
| 2016 |
|
|---|
| 2017 |
|
|---|
| 2018 | missing_dir=`cd $ac_aux_dir && pwd`
|
|---|
| 2019 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
|
|---|
| 2020 | echo "configure:2021: checking for working aclocal" >&5
|
|---|
| 2021 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 2022 | # an executable is not found, even if stderr is redirected.
|
|---|
| 2023 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 2024 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 2025 | ACLOCAL=aclocal
|
|---|
| 2026 | echo "$ac_t""found" 1>&6
|
|---|
| 2027 | else
|
|---|
| 2028 | ACLOCAL="$missing_dir/missing aclocal"
|
|---|
| 2029 | echo "$ac_t""missing" 1>&6
|
|---|
| 2030 | fi
|
|---|
| 2031 |
|
|---|
| 2032 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
|
|---|
| 2033 | echo "configure:2034: checking for working autoconf" >&5
|
|---|
| 2034 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 2035 | # an executable is not found, even if stderr is redirected.
|
|---|
| 2036 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 2037 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 2038 | AUTOCONF=autoconf
|
|---|
| 2039 | echo "$ac_t""found" 1>&6
|
|---|
| 2040 | else
|
|---|
| 2041 | AUTOCONF="$missing_dir/missing autoconf"
|
|---|
| 2042 | echo "$ac_t""missing" 1>&6
|
|---|
| 2043 | fi
|
|---|
| 2044 |
|
|---|
| 2045 | echo $ac_n "checking for working automake""... $ac_c" 1>&6
|
|---|
| 2046 | echo "configure:2047: checking for working automake" >&5
|
|---|
| 2047 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 2048 | # an executable is not found, even if stderr is redirected.
|
|---|
| 2049 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 2050 | if (automake --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 2051 | AUTOMAKE=automake
|
|---|
| 2052 | echo "$ac_t""found" 1>&6
|
|---|
| 2053 | else
|
|---|
| 2054 | AUTOMAKE="$missing_dir/missing automake"
|
|---|
| 2055 | echo "$ac_t""missing" 1>&6
|
|---|
| 2056 | fi
|
|---|
| 2057 |
|
|---|
| 2058 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
|
|---|
| 2059 | echo "configure:2060: checking for working autoheader" >&5
|
|---|
| 2060 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 2061 | # an executable is not found, even if stderr is redirected.
|
|---|
| 2062 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 2063 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 2064 | AUTOHEADER=autoheader
|
|---|
| 2065 | echo "$ac_t""found" 1>&6
|
|---|
| 2066 | else
|
|---|
| 2067 | AUTOHEADER="$missing_dir/missing autoheader"
|
|---|
| 2068 | echo "$ac_t""missing" 1>&6
|
|---|
| 2069 | fi
|
|---|
| 2070 |
|
|---|
| 2071 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
|
|---|
| 2072 | echo "configure:2073: checking for working makeinfo" >&5
|
|---|
| 2073 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 2074 | # an executable is not found, even if stderr is redirected.
|
|---|
| 2075 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 2076 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 2077 | MAKEINFO=makeinfo
|
|---|
| 2078 | echo "$ac_t""found" 1>&6
|
|---|
| 2079 | else
|
|---|
| 2080 | MAKEINFO="$missing_dir/missing makeinfo"
|
|---|
| 2081 | echo "$ac_t""missing" 1>&6
|
|---|
| 2082 | fi
|
|---|
| 2083 |
|
|---|
| 2084 |
|
|---|
| 2085 |
|
|---|
| 2086 |
|
|---|
| 2087 |
|
|---|
| 2088 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
|---|
| 2089 | echo "configure:2090: checking for executable suffix" >&5
|
|---|
| 2090 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
|---|
| 2091 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2092 | else
|
|---|
| 2093 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
|
|---|
| 2094 | ac_cv_exeext=.exe
|
|---|
| 2095 | else
|
|---|
| 2096 | rm -f conftest*
|
|---|
| 2097 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
|---|
| 2098 | ac_cv_exeext=
|
|---|
| 2099 | if { (eval echo configure:2100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
|---|
| 2100 | for file in conftest.*; do
|
|---|
| 2101 | case $file in
|
|---|
| 2102 | *.c | *.o | *.obj) ;;
|
|---|
| 2103 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
|---|
| 2104 | esac
|
|---|
| 2105 | done
|
|---|
| 2106 | else
|
|---|
| 2107 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 2108 | fi
|
|---|
| 2109 | rm -f conftest*
|
|---|
| 2110 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
|---|
| 2111 | fi
|
|---|
| 2112 | fi
|
|---|
| 2113 |
|
|---|
| 2114 | EXEEXT=""
|
|---|
| 2115 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
|---|
| 2116 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
|---|
| 2117 | ac_exeext=$EXEEXT
|
|---|
| 2118 |
|
|---|
| 2119 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
|
|---|
| 2120 | echo "configure:2121: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
|---|
| 2121 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
|
|---|
| 2122 | if test "${enable_maintainer_mode+set}" = set; then
|
|---|
| 2123 | enableval="$enable_maintainer_mode"
|
|---|
| 2124 | USE_MAINTAINER_MODE=$enableval
|
|---|
| 2125 | else
|
|---|
| 2126 | USE_MAINTAINER_MODE=no
|
|---|
| 2127 | fi
|
|---|
| 2128 |
|
|---|
| 2129 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
|
|---|
| 2130 |
|
|---|
| 2131 |
|
|---|
| 2132 | if test $USE_MAINTAINER_MODE = yes; then
|
|---|
| 2133 | MAINTAINER_MODE_TRUE=
|
|---|
| 2134 | MAINTAINER_MODE_FALSE='#'
|
|---|
| 2135 | else
|
|---|
| 2136 | MAINTAINER_MODE_TRUE='#'
|
|---|
| 2137 | MAINTAINER_MODE_FALSE=
|
|---|
| 2138 | fi
|
|---|
| 2139 | MAINT=$MAINTAINER_MODE_TRUE
|
|---|
| 2140 |
|
|---|
| 2141 |
|
|---|
| 2142 |
|
|---|
| 2143 | # Extract the first word of "gcc", so it can be a program name with args.
|
|---|
| 2144 | set dummy gcc; ac_word=$2
|
|---|
| 2145 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2146 | echo "configure:2147: checking for $ac_word" >&5
|
|---|
| 2147 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 2148 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2149 | else
|
|---|
| 2150 | if test -n "$CC"; then
|
|---|
| 2151 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 2152 | else
|
|---|
| 2153 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 2154 | ac_dummy="$PATH"
|
|---|
| 2155 | for ac_dir in $ac_dummy; do
|
|---|
| 2156 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2157 | if test -f $ac_dir/$ac_word; then
|
|---|
| 2158 | ac_cv_prog_CC="gcc"
|
|---|
| 2159 | break
|
|---|
| 2160 | fi
|
|---|
| 2161 | done
|
|---|
| 2162 | IFS="$ac_save_ifs"
|
|---|
| 2163 | fi
|
|---|
| 2164 | fi
|
|---|
| 2165 | CC="$ac_cv_prog_CC"
|
|---|
| 2166 | if test -n "$CC"; then
|
|---|
| 2167 | echo "$ac_t""$CC" 1>&6
|
|---|
| 2168 | else
|
|---|
| 2169 | echo "$ac_t""no" 1>&6
|
|---|
| 2170 | fi
|
|---|
| 2171 |
|
|---|
| 2172 | if test -z "$CC"; then
|
|---|
| 2173 | # Extract the first word of "cc", so it can be a program name with args.
|
|---|
| 2174 | set dummy cc; ac_word=$2
|
|---|
| 2175 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2176 | echo "configure:2177: checking for $ac_word" >&5
|
|---|
| 2177 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 2178 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2179 | else
|
|---|
| 2180 | if test -n "$CC"; then
|
|---|
| 2181 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 2182 | else
|
|---|
| 2183 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 2184 | ac_prog_rejected=no
|
|---|
| 2185 | ac_dummy="$PATH"
|
|---|
| 2186 | for ac_dir in $ac_dummy; do
|
|---|
| 2187 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2188 | if test -f $ac_dir/$ac_word; then
|
|---|
| 2189 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|---|
| 2190 | ac_prog_rejected=yes
|
|---|
| 2191 | continue
|
|---|
| 2192 | fi
|
|---|
| 2193 | ac_cv_prog_CC="cc"
|
|---|
| 2194 | break
|
|---|
| 2195 | fi
|
|---|
| 2196 | done
|
|---|
| 2197 | IFS="$ac_save_ifs"
|
|---|
| 2198 | if test $ac_prog_rejected = yes; then
|
|---|
| 2199 | # We found a bogon in the path, so make sure we never use it.
|
|---|
| 2200 | set dummy $ac_cv_prog_CC
|
|---|
| 2201 | shift
|
|---|
| 2202 | if test $# -gt 0; then
|
|---|
| 2203 | # We chose a different compiler from the bogus one.
|
|---|
| 2204 | # However, it has the same basename, so the bogon will be chosen
|
|---|
| 2205 | # first if we set CC to just the basename; use the full file name.
|
|---|
| 2206 | shift
|
|---|
| 2207 | set dummy "$ac_dir/$ac_word" "$@"
|
|---|
| 2208 | shift
|
|---|
| 2209 | ac_cv_prog_CC="$@"
|
|---|
| 2210 | fi
|
|---|
| 2211 | fi
|
|---|
| 2212 | fi
|
|---|
| 2213 | fi
|
|---|
| 2214 | CC="$ac_cv_prog_CC"
|
|---|
| 2215 | if test -n "$CC"; then
|
|---|
| 2216 | echo "$ac_t""$CC" 1>&6
|
|---|
| 2217 | else
|
|---|
| 2218 | echo "$ac_t""no" 1>&6
|
|---|
| 2219 | fi
|
|---|
| 2220 |
|
|---|
| 2221 | if test -z "$CC"; then
|
|---|
| 2222 | case "`uname -s`" in
|
|---|
| 2223 | *win32* | *WIN32*)
|
|---|
| 2224 | # Extract the first word of "cl", so it can be a program name with args.
|
|---|
| 2225 | set dummy cl; ac_word=$2
|
|---|
| 2226 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2227 | echo "configure:2228: checking for $ac_word" >&5
|
|---|
| 2228 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 2229 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2230 | else
|
|---|
| 2231 | if test -n "$CC"; then
|
|---|
| 2232 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 2233 | else
|
|---|
| 2234 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 2235 | ac_dummy="$PATH"
|
|---|
| 2236 | for ac_dir in $ac_dummy; do
|
|---|
| 2237 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2238 | if test -f $ac_dir/$ac_word; then
|
|---|
| 2239 | ac_cv_prog_CC="cl"
|
|---|
| 2240 | break
|
|---|
| 2241 | fi
|
|---|
| 2242 | done
|
|---|
| 2243 | IFS="$ac_save_ifs"
|
|---|
| 2244 | fi
|
|---|
| 2245 | fi
|
|---|
| 2246 | CC="$ac_cv_prog_CC"
|
|---|
| 2247 | if test -n "$CC"; then
|
|---|
| 2248 | echo "$ac_t""$CC" 1>&6
|
|---|
| 2249 | else
|
|---|
| 2250 | echo "$ac_t""no" 1>&6
|
|---|
| 2251 | fi
|
|---|
| 2252 | ;;
|
|---|
| 2253 | esac
|
|---|
| 2254 | fi
|
|---|
| 2255 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|---|
| 2256 | fi
|
|---|
| 2257 |
|
|---|
| 2258 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|---|
| 2259 | echo "configure:2260: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
|---|
| 2260 |
|
|---|
| 2261 | ac_ext=c
|
|---|
| 2262 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2263 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2264 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2265 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2266 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2267 |
|
|---|
| 2268 | cat > conftest.$ac_ext << EOF
|
|---|
| 2269 |
|
|---|
| 2270 | #line 2271 "configure"
|
|---|
| 2271 | #include "confdefs.h"
|
|---|
| 2272 |
|
|---|
| 2273 | main(){return(0);}
|
|---|
| 2274 | EOF
|
|---|
| 2275 | if { (eval echo configure:2276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 2276 | ac_cv_prog_cc_works=yes
|
|---|
| 2277 | # If we can't run a trivial program, we are probably using a cross compiler.
|
|---|
| 2278 | if (./conftest; exit) 2>/dev/null; then
|
|---|
| 2279 | ac_cv_prog_cc_cross=no
|
|---|
| 2280 | else
|
|---|
| 2281 | ac_cv_prog_cc_cross=yes
|
|---|
| 2282 | fi
|
|---|
| 2283 | else
|
|---|
| 2284 | echo "configure: failed program was:" >&5
|
|---|
| 2285 | cat conftest.$ac_ext >&5
|
|---|
| 2286 | ac_cv_prog_cc_works=no
|
|---|
| 2287 | fi
|
|---|
| 2288 | rm -fr conftest*
|
|---|
| 2289 | ac_ext=c
|
|---|
| 2290 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2291 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2292 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2293 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2294 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2295 |
|
|---|
| 2296 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|---|
| 2297 | if test $ac_cv_prog_cc_works = no; then
|
|---|
| 2298 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 2299 | fi
|
|---|
| 2300 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|---|
| 2301 | echo "configure:2302: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|---|
| 2302 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|---|
| 2303 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2304 |
|
|---|
| 2305 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
|---|
| 2306 | echo "configure:2307: checking whether we are using GNU C" >&5
|
|---|
| 2307 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
|---|
| 2308 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2309 | else
|
|---|
| 2310 | cat > conftest.c <<EOF
|
|---|
| 2311 | #ifdef __GNUC__
|
|---|
| 2312 | yes;
|
|---|
| 2313 | #endif
|
|---|
| 2314 | EOF
|
|---|
| 2315 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|---|
| 2316 | ac_cv_prog_gcc=yes
|
|---|
| 2317 | else
|
|---|
| 2318 | ac_cv_prog_gcc=no
|
|---|
| 2319 | fi
|
|---|
| 2320 | fi
|
|---|
| 2321 |
|
|---|
| 2322 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|---|
| 2323 |
|
|---|
| 2324 | if test $ac_cv_prog_gcc = yes; then
|
|---|
| 2325 | GCC=yes
|
|---|
| 2326 | else
|
|---|
| 2327 | GCC=
|
|---|
| 2328 | fi
|
|---|
| 2329 |
|
|---|
| 2330 | ac_test_CFLAGS="${CFLAGS+set}"
|
|---|
| 2331 | ac_save_CFLAGS="$CFLAGS"
|
|---|
| 2332 | CFLAGS=
|
|---|
| 2333 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|---|
| 2334 | echo "configure:2335: checking whether ${CC-cc} accepts -g" >&5
|
|---|
| 2335 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
|---|
| 2336 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2337 | else
|
|---|
| 2338 | echo 'void f(){}' > conftest.c
|
|---|
| 2339 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|---|
| 2340 | ac_cv_prog_cc_g=yes
|
|---|
| 2341 | else
|
|---|
| 2342 | ac_cv_prog_cc_g=no
|
|---|
| 2343 | fi
|
|---|
| 2344 | rm -f conftest*
|
|---|
| 2345 |
|
|---|
| 2346 | fi
|
|---|
| 2347 |
|
|---|
| 2348 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|---|
| 2349 | if test "$ac_test_CFLAGS" = set; then
|
|---|
| 2350 | CFLAGS="$ac_save_CFLAGS"
|
|---|
| 2351 | elif test $ac_cv_prog_cc_g = yes; then
|
|---|
| 2352 | if test "$GCC" = yes; then
|
|---|
| 2353 | CFLAGS="-g -O2"
|
|---|
| 2354 | else
|
|---|
| 2355 | CFLAGS="-g"
|
|---|
| 2356 | fi
|
|---|
| 2357 | else
|
|---|
| 2358 | if test "$GCC" = yes; then
|
|---|
| 2359 | CFLAGS="-O2"
|
|---|
| 2360 | else
|
|---|
| 2361 | CFLAGS=
|
|---|
| 2362 | fi
|
|---|
| 2363 | fi
|
|---|
| 2364 |
|
|---|
| 2365 |
|
|---|
| 2366 |
|
|---|
| 2367 |
|
|---|
| 2368 |
|
|---|
| 2369 |
|
|---|
| 2370 |
|
|---|
| 2371 | TARGETDIR="unknown"
|
|---|
| 2372 | case "$host" in
|
|---|
| 2373 | mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS; TARGETDIR=mips;;
|
|---|
| 2374 | i*86-*-linux*) TARGET=X86; TARGETDIR=x86;;
|
|---|
| 2375 | i*86-*-solaris*) TARGET=X86; TARGETDIR=x86;;
|
|---|
| 2376 | i*86-*-beos*) TARGET=X86; TARGETDIR=x86;;
|
|---|
| 2377 | i*86-*-freebsd*) TARGET=X86; TARGETDIR=x86;;
|
|---|
| 2378 | i*86-*-netbsdelf*) TARGET=X86; TARGETDIR=x86;;
|
|---|
| 2379 | i*86-*-win32*) TARGET=X86_WIN32; TARGETDIR=x86;;
|
|---|
| 2380 | i*86-*-cygwin*) TARGET=X86_WIN32; TARGETDIR=x86;;
|
|---|
| 2381 | i*86-*-mingw*) TARGET=X86_WIN32; TARGETDIR=x86;;
|
|---|
| 2382 | sparc-sun-4*) TARGET=SPARC; TARGETDIR=sparc;;
|
|---|
| 2383 | sparc*-sun-*) TARGET=SPARC; TARGETDIR=sparc;;
|
|---|
| 2384 | sparc-*-linux*) TARGET=SPARC; TARGETDIR=sparc;;
|
|---|
| 2385 | sparc64-*-linux*) TARGET=SPARC; TARGETDIR=sparc;;
|
|---|
| 2386 | alpha*-*-linux* | alpha*-*-osf* | alpha*-*-freebsd*) TARGET=ALPHA; TARGETDIR=alpha;;
|
|---|
| 2387 | ia64*-*-*) TARGET=IA64; TARGETDIR=ia64;;
|
|---|
| 2388 | m68k-*-linux*) TARGET=M68K; TARGETDIR=m68k;;
|
|---|
| 2389 | powerpc-*-linux* | powerpc-*-sysv*) TARGET=POWERPC; TARGETDIR=powerpc;;
|
|---|
| 2390 | powerpc-*-beos*) TARGET=POWERPC; TARGETDIR=powerpc;;
|
|---|
| 2391 | powerpc-*-darwin*) TARGET=POWERPC_DARWIN; TARGETDIR=powerpc;;
|
|---|
| 2392 | powerpc-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
|
|---|
| 2393 | rs6000-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
|
|---|
| 2394 | arm*-*-linux-*) TARGET=ARM; TARGETDIR=arm;;
|
|---|
| 2395 | esac
|
|---|
| 2396 |
|
|---|
| 2397 | if test $TARGETDIR = unknown; then
|
|---|
| 2398 | { echo "configure: error: "libffi has not been ported to $host."" 1>&2; exit 1; }
|
|---|
| 2399 | fi
|
|---|
| 2400 |
|
|---|
| 2401 |
|
|---|
| 2402 |
|
|---|
| 2403 | if test ${TARGET}${ac_cv_prog_gcc} = MIPSyes; then
|
|---|
| 2404 | MIPS_GCC_TRUE=
|
|---|
| 2405 | MIPS_GCC_FALSE='#'
|
|---|
| 2406 | else
|
|---|
| 2407 | MIPS_GCC_TRUE='#'
|
|---|
| 2408 | MIPS_GCC_FALSE=
|
|---|
| 2409 | fi
|
|---|
| 2410 |
|
|---|
| 2411 |
|
|---|
| 2412 | if test ${TARGET}${ac_cv_prog_gcc} = MIPSno; then
|
|---|
| 2413 | MIPS_SGI_TRUE=
|
|---|
| 2414 | MIPS_SGI_FALSE='#'
|
|---|
| 2415 | else
|
|---|
| 2416 | MIPS_SGI_TRUE='#'
|
|---|
| 2417 | MIPS_SGI_FALSE=
|
|---|
| 2418 | fi
|
|---|
| 2419 |
|
|---|
| 2420 |
|
|---|
| 2421 | if test x$TARGET = xSPARC; then
|
|---|
| 2422 | SPARC_TRUE=
|
|---|
| 2423 | SPARC_FALSE='#'
|
|---|
| 2424 | else
|
|---|
| 2425 | SPARC_TRUE='#'
|
|---|
| 2426 | SPARC_FALSE=
|
|---|
| 2427 | fi
|
|---|
| 2428 |
|
|---|
| 2429 |
|
|---|
| 2430 | if test x$TARGET = xX86; then
|
|---|
| 2431 | X86_TRUE=
|
|---|
| 2432 | X86_FALSE='#'
|
|---|
| 2433 | else
|
|---|
| 2434 | X86_TRUE='#'
|
|---|
| 2435 | X86_FALSE=
|
|---|
| 2436 | fi
|
|---|
| 2437 |
|
|---|
| 2438 |
|
|---|
| 2439 | if test x$TARGET = xX86_WIN32; then
|
|---|
| 2440 | X86_WIN32_TRUE=
|
|---|
| 2441 | X86_WIN32_FALSE='#'
|
|---|
| 2442 | else
|
|---|
| 2443 | X86_WIN32_TRUE='#'
|
|---|
| 2444 | X86_WIN32_FALSE=
|
|---|
| 2445 | fi
|
|---|
| 2446 |
|
|---|
| 2447 |
|
|---|
| 2448 | if test x$TARGET = xALPHA; then
|
|---|
| 2449 | ALPHA_TRUE=
|
|---|
| 2450 | ALPHA_FALSE='#'
|
|---|
| 2451 | else
|
|---|
| 2452 | ALPHA_TRUE='#'
|
|---|
| 2453 | ALPHA_FALSE=
|
|---|
| 2454 | fi
|
|---|
| 2455 |
|
|---|
| 2456 |
|
|---|
| 2457 | if test x$TARGET = xIA64; then
|
|---|
| 2458 | IA64_TRUE=
|
|---|
| 2459 | IA64_FALSE='#'
|
|---|
| 2460 | else
|
|---|
| 2461 | IA64_TRUE='#'
|
|---|
| 2462 | IA64_FALSE=
|
|---|
| 2463 | fi
|
|---|
| 2464 |
|
|---|
| 2465 |
|
|---|
| 2466 | if test x$TARGET = xM68K; then
|
|---|
| 2467 | M68K_TRUE=
|
|---|
| 2468 | M68K_FALSE='#'
|
|---|
| 2469 | else
|
|---|
| 2470 | M68K_TRUE='#'
|
|---|
| 2471 | M68K_FALSE=
|
|---|
| 2472 | fi
|
|---|
| 2473 |
|
|---|
| 2474 |
|
|---|
| 2475 | if test x$TARGET = xPOWERPC; then
|
|---|
| 2476 | POWERPC_TRUE=
|
|---|
| 2477 | POWERPC_FALSE='#'
|
|---|
| 2478 | else
|
|---|
| 2479 | POWERPC_TRUE='#'
|
|---|
| 2480 | POWERPC_FALSE=
|
|---|
| 2481 | fi
|
|---|
| 2482 |
|
|---|
| 2483 |
|
|---|
| 2484 | if test x$TARGET = xPOWERPC_AIX; then
|
|---|
| 2485 | POWERPC_AIX_TRUE=
|
|---|
| 2486 | POWERPC_AIX_FALSE='#'
|
|---|
| 2487 | else
|
|---|
| 2488 | POWERPC_AIX_TRUE='#'
|
|---|
| 2489 | POWERPC_AIX_FALSE=
|
|---|
| 2490 | fi
|
|---|
| 2491 |
|
|---|
| 2492 |
|
|---|
| 2493 | if test x$TARGET = xPOWERPC_DARWIN; then
|
|---|
| 2494 | POWERPC_DARWIN_TRUE=
|
|---|
| 2495 | POWERPC_DARWIN_FALSE='#'
|
|---|
| 2496 | else
|
|---|
| 2497 | POWERPC_DARWIN_TRUE='#'
|
|---|
| 2498 | POWERPC_DARWIN_FALSE=
|
|---|
| 2499 | fi
|
|---|
| 2500 |
|
|---|
| 2501 |
|
|---|
| 2502 | if test x$TARGET = xARM; then
|
|---|
| 2503 | ARM_TRUE=
|
|---|
| 2504 | ARM_FALSE='#'
|
|---|
| 2505 | else
|
|---|
| 2506 | ARM_TRUE='#'
|
|---|
| 2507 | ARM_FALSE=
|
|---|
| 2508 | fi
|
|---|
| 2509 |
|
|---|
| 2510 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
|---|
| 2511 | echo "configure:2512: checking how to run the C preprocessor" >&5
|
|---|
| 2512 | # On Suns, sometimes $CPP names a directory.
|
|---|
| 2513 | if test -n "$CPP" && test -d "$CPP"; then
|
|---|
| 2514 | CPP=
|
|---|
| 2515 | fi
|
|---|
| 2516 | if test -z "$CPP"; then
|
|---|
| 2517 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
|---|
| 2518 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2519 | else
|
|---|
| 2520 | # This must be in double quotes, not single quotes, because CPP may get
|
|---|
| 2521 | # substituted into the Makefile and "${CC-cc}" will confuse make.
|
|---|
| 2522 | CPP="${CC-cc} -E"
|
|---|
| 2523 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
|---|
| 2524 | # not just through cpp.
|
|---|
| 2525 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2526 | #line 2527 "configure"
|
|---|
| 2527 | #include "confdefs.h"
|
|---|
| 2528 | #include <assert.h>
|
|---|
| 2529 | Syntax Error
|
|---|
| 2530 | EOF
|
|---|
| 2531 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 2532 | { (eval echo configure:2533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 2533 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 2534 | if test -z "$ac_err"; then
|
|---|
| 2535 | :
|
|---|
| 2536 | else
|
|---|
| 2537 | echo "$ac_err" >&5
|
|---|
| 2538 | echo "configure: failed program was:" >&5
|
|---|
| 2539 | cat conftest.$ac_ext >&5
|
|---|
| 2540 | rm -rf conftest*
|
|---|
| 2541 | CPP="${CC-cc} -E -traditional-cpp"
|
|---|
| 2542 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2543 | #line 2544 "configure"
|
|---|
| 2544 | #include "confdefs.h"
|
|---|
| 2545 | #include <assert.h>
|
|---|
| 2546 | Syntax Error
|
|---|
| 2547 | EOF
|
|---|
| 2548 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 2549 | { (eval echo configure:2550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 2550 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 2551 | if test -z "$ac_err"; then
|
|---|
| 2552 | :
|
|---|
| 2553 | else
|
|---|
| 2554 | echo "$ac_err" >&5
|
|---|
| 2555 | echo "configure: failed program was:" >&5
|
|---|
| 2556 | cat conftest.$ac_ext >&5
|
|---|
| 2557 | rm -rf conftest*
|
|---|
| 2558 | CPP="${CC-cc} -nologo -E"
|
|---|
| 2559 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2560 | #line 2561 "configure"
|
|---|
| 2561 | #include "confdefs.h"
|
|---|
| 2562 | #include <assert.h>
|
|---|
| 2563 | Syntax Error
|
|---|
| 2564 | EOF
|
|---|
| 2565 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 2566 | { (eval echo configure:2567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 2567 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 2568 | if test -z "$ac_err"; then
|
|---|
| 2569 | :
|
|---|
| 2570 | else
|
|---|
| 2571 | echo "$ac_err" >&5
|
|---|
| 2572 | echo "configure: failed program was:" >&5
|
|---|
| 2573 | cat conftest.$ac_ext >&5
|
|---|
| 2574 | rm -rf conftest*
|
|---|
| 2575 | CPP=/lib/cpp
|
|---|
| 2576 | fi
|
|---|
| 2577 | rm -f conftest*
|
|---|
| 2578 | fi
|
|---|
| 2579 | rm -f conftest*
|
|---|
| 2580 | fi
|
|---|
| 2581 | rm -f conftest*
|
|---|
| 2582 | ac_cv_prog_CPP="$CPP"
|
|---|
| 2583 | fi
|
|---|
| 2584 | CPP="$ac_cv_prog_CPP"
|
|---|
| 2585 | else
|
|---|
| 2586 | ac_cv_prog_CPP="$CPP"
|
|---|
| 2587 | fi
|
|---|
| 2588 | echo "$ac_t""$CPP" 1>&6
|
|---|
| 2589 |
|
|---|
| 2590 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
|---|
| 2591 | echo "configure:2592: checking for ANSI C header files" >&5
|
|---|
| 2592 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
|---|
| 2593 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2594 | else
|
|---|
| 2595 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2596 | #line 2597 "configure"
|
|---|
| 2597 | #include "confdefs.h"
|
|---|
| 2598 | #include <stdlib.h>
|
|---|
| 2599 | #include <stdarg.h>
|
|---|
| 2600 | #include <string.h>
|
|---|
| 2601 | #include <float.h>
|
|---|
| 2602 | EOF
|
|---|
| 2603 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 2604 | { (eval echo configure:2605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 2605 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 2606 | if test -z "$ac_err"; then
|
|---|
| 2607 | rm -rf conftest*
|
|---|
| 2608 | ac_cv_header_stdc=yes
|
|---|
| 2609 | else
|
|---|
| 2610 | echo "$ac_err" >&5
|
|---|
| 2611 | echo "configure: failed program was:" >&5
|
|---|
| 2612 | cat conftest.$ac_ext >&5
|
|---|
| 2613 | rm -rf conftest*
|
|---|
| 2614 | ac_cv_header_stdc=no
|
|---|
| 2615 | fi
|
|---|
| 2616 | rm -f conftest*
|
|---|
| 2617 |
|
|---|
| 2618 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 2619 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|---|
| 2620 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2621 | #line 2622 "configure"
|
|---|
| 2622 | #include "confdefs.h"
|
|---|
| 2623 | #include <string.h>
|
|---|
| 2624 | EOF
|
|---|
| 2625 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 2626 | egrep "memchr" >/dev/null 2>&1; then
|
|---|
| 2627 | :
|
|---|
| 2628 | else
|
|---|
| 2629 | rm -rf conftest*
|
|---|
| 2630 | ac_cv_header_stdc=no
|
|---|
| 2631 | fi
|
|---|
| 2632 | rm -f conftest*
|
|---|
| 2633 |
|
|---|
| 2634 | fi
|
|---|
| 2635 |
|
|---|
| 2636 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 2637 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|---|
| 2638 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2639 | #line 2640 "configure"
|
|---|
| 2640 | #include "confdefs.h"
|
|---|
| 2641 | #include <stdlib.h>
|
|---|
| 2642 | EOF
|
|---|
| 2643 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 2644 | egrep "free" >/dev/null 2>&1; then
|
|---|
| 2645 | :
|
|---|
| 2646 | else
|
|---|
| 2647 | rm -rf conftest*
|
|---|
| 2648 | ac_cv_header_stdc=no
|
|---|
| 2649 | fi
|
|---|
| 2650 | rm -f conftest*
|
|---|
| 2651 |
|
|---|
| 2652 | fi
|
|---|
| 2653 |
|
|---|
| 2654 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 2655 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|---|
| 2656 | if test "$cross_compiling" = yes; then
|
|---|
| 2657 | :
|
|---|
| 2658 | else
|
|---|
| 2659 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2660 | #line 2661 "configure"
|
|---|
| 2661 | #include "confdefs.h"
|
|---|
| 2662 | #include <ctype.h>
|
|---|
| 2663 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|---|
| 2664 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|---|
| 2665 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|---|
| 2666 | int main () { int i; for (i = 0; i < 256; i++)
|
|---|
| 2667 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
|---|
| 2668 | exit (0); }
|
|---|
| 2669 |
|
|---|
| 2670 | EOF
|
|---|
| 2671 | if { (eval echo configure:2672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|---|
| 2672 | then
|
|---|
| 2673 | :
|
|---|
| 2674 | else
|
|---|
| 2675 | echo "configure: failed program was:" >&5
|
|---|
| 2676 | cat conftest.$ac_ext >&5
|
|---|
| 2677 | rm -fr conftest*
|
|---|
| 2678 | ac_cv_header_stdc=no
|
|---|
| 2679 | fi
|
|---|
| 2680 | rm -fr conftest*
|
|---|
| 2681 | fi
|
|---|
| 2682 |
|
|---|
| 2683 | fi
|
|---|
| 2684 | fi
|
|---|
| 2685 |
|
|---|
| 2686 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
|---|
| 2687 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 2688 | cat >> confdefs.h <<\EOF
|
|---|
| 2689 | #define STDC_HEADERS 1
|
|---|
| 2690 | EOF
|
|---|
| 2691 |
|
|---|
| 2692 | fi
|
|---|
| 2693 |
|
|---|
| 2694 | for ac_func in memcpy
|
|---|
| 2695 | do
|
|---|
| 2696 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 2697 | echo "configure:2698: checking for $ac_func" >&5
|
|---|
| 2698 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 2699 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2700 | else
|
|---|
| 2701 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2702 | #line 2703 "configure"
|
|---|
| 2703 | #include "confdefs.h"
|
|---|
| 2704 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 2705 | which can conflict with char $ac_func(); below. */
|
|---|
| 2706 | #include <assert.h>
|
|---|
| 2707 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 2708 | /* We use char because int might match the return type of a gcc2
|
|---|
| 2709 | builtin and then its argument prototype would still apply. */
|
|---|
| 2710 | char $ac_func();
|
|---|
| 2711 |
|
|---|
| 2712 | int main() {
|
|---|
| 2713 |
|
|---|
| 2714 | /* The GNU C library defines this for functions which it implements
|
|---|
| 2715 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 2716 | something starting with __ and the normal name is an alias. */
|
|---|
| 2717 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 2718 | choke me
|
|---|
| 2719 | #else
|
|---|
| 2720 | $ac_func();
|
|---|
| 2721 | #endif
|
|---|
| 2722 |
|
|---|
| 2723 | ; return 0; }
|
|---|
| 2724 | EOF
|
|---|
| 2725 | if { (eval echo configure:2726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 2726 | rm -rf conftest*
|
|---|
| 2727 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 2728 | else
|
|---|
| 2729 | echo "configure: failed program was:" >&5
|
|---|
| 2730 | cat conftest.$ac_ext >&5
|
|---|
| 2731 | rm -rf conftest*
|
|---|
| 2732 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 2733 | fi
|
|---|
| 2734 | rm -f conftest*
|
|---|
| 2735 | fi
|
|---|
| 2736 |
|
|---|
| 2737 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 2738 | echo "$ac_t""yes" 1>&6
|
|---|
| 2739 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 2740 | cat >> confdefs.h <<EOF
|
|---|
| 2741 | #define $ac_tr_func 1
|
|---|
| 2742 | EOF
|
|---|
| 2743 |
|
|---|
| 2744 | else
|
|---|
| 2745 | echo "$ac_t""no" 1>&6
|
|---|
| 2746 | fi
|
|---|
| 2747 | done
|
|---|
| 2748 |
|
|---|
| 2749 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
|---|
| 2750 | # for constant arguments. Useless!
|
|---|
| 2751 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
|---|
| 2752 | echo "configure:2753: checking for working alloca.h" >&5
|
|---|
| 2753 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
|
|---|
| 2754 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2755 | else
|
|---|
| 2756 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2757 | #line 2758 "configure"
|
|---|
| 2758 | #include "confdefs.h"
|
|---|
| 2759 | #include <alloca.h>
|
|---|
| 2760 | int main() {
|
|---|
| 2761 | char *p = alloca(2 * sizeof(int));
|
|---|
| 2762 | ; return 0; }
|
|---|
| 2763 | EOF
|
|---|
| 2764 | if { (eval echo configure:2765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 2765 | rm -rf conftest*
|
|---|
| 2766 | ac_cv_header_alloca_h=yes
|
|---|
| 2767 | else
|
|---|
| 2768 | echo "configure: failed program was:" >&5
|
|---|
| 2769 | cat conftest.$ac_ext >&5
|
|---|
| 2770 | rm -rf conftest*
|
|---|
| 2771 | ac_cv_header_alloca_h=no
|
|---|
| 2772 | fi
|
|---|
| 2773 | rm -f conftest*
|
|---|
| 2774 | fi
|
|---|
| 2775 |
|
|---|
| 2776 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
|---|
| 2777 | if test $ac_cv_header_alloca_h = yes; then
|
|---|
| 2778 | cat >> confdefs.h <<\EOF
|
|---|
| 2779 | #define HAVE_ALLOCA_H 1
|
|---|
| 2780 | EOF
|
|---|
| 2781 |
|
|---|
| 2782 | fi
|
|---|
| 2783 |
|
|---|
| 2784 | echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
|---|
| 2785 | echo "configure:2786: checking for alloca" >&5
|
|---|
| 2786 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
|
|---|
| 2787 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2788 | else
|
|---|
| 2789 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2790 | #line 2791 "configure"
|
|---|
| 2791 | #include "confdefs.h"
|
|---|
| 2792 |
|
|---|
| 2793 | #ifdef __GNUC__
|
|---|
| 2794 | # define alloca __builtin_alloca
|
|---|
| 2795 | #else
|
|---|
| 2796 | # ifdef _MSC_VER
|
|---|
| 2797 | # include <malloc.h>
|
|---|
| 2798 | # define alloca _alloca
|
|---|
| 2799 | # else
|
|---|
| 2800 | # if HAVE_ALLOCA_H
|
|---|
| 2801 | # include <alloca.h>
|
|---|
| 2802 | # else
|
|---|
| 2803 | # ifdef _AIX
|
|---|
| 2804 | #pragma alloca
|
|---|
| 2805 | # else
|
|---|
| 2806 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
|---|
| 2807 | char *alloca ();
|
|---|
| 2808 | # endif
|
|---|
| 2809 | # endif
|
|---|
| 2810 | # endif
|
|---|
| 2811 | # endif
|
|---|
| 2812 | #endif
|
|---|
| 2813 |
|
|---|
| 2814 | int main() {
|
|---|
| 2815 | char *p = (char *) alloca(1);
|
|---|
| 2816 | ; return 0; }
|
|---|
| 2817 | EOF
|
|---|
| 2818 | if { (eval echo configure:2819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 2819 | rm -rf conftest*
|
|---|
| 2820 | ac_cv_func_alloca_works=yes
|
|---|
| 2821 | else
|
|---|
| 2822 | echo "configure: failed program was:" >&5
|
|---|
| 2823 | cat conftest.$ac_ext >&5
|
|---|
| 2824 | rm -rf conftest*
|
|---|
| 2825 | ac_cv_func_alloca_works=no
|
|---|
| 2826 | fi
|
|---|
| 2827 | rm -f conftest*
|
|---|
| 2828 | fi
|
|---|
| 2829 |
|
|---|
| 2830 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
|---|
| 2831 | if test $ac_cv_func_alloca_works = yes; then
|
|---|
| 2832 | cat >> confdefs.h <<\EOF
|
|---|
| 2833 | #define HAVE_ALLOCA 1
|
|---|
| 2834 | EOF
|
|---|
| 2835 |
|
|---|
| 2836 | fi
|
|---|
| 2837 |
|
|---|
| 2838 | if test $ac_cv_func_alloca_works = no; then
|
|---|
| 2839 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
|---|
| 2840 | # that cause trouble. Some versions do not even contain alloca or
|
|---|
| 2841 | # contain a buggy version. If you still want to use their alloca,
|
|---|
| 2842 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
|---|
| 2843 | ALLOCA=alloca.${ac_objext}
|
|---|
| 2844 | cat >> confdefs.h <<\EOF
|
|---|
| 2845 | #define C_ALLOCA 1
|
|---|
| 2846 | EOF
|
|---|
| 2847 |
|
|---|
| 2848 |
|
|---|
| 2849 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
|---|
| 2850 | echo "configure:2851: checking whether alloca needs Cray hooks" >&5
|
|---|
| 2851 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
|
|---|
| 2852 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2853 | else
|
|---|
| 2854 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2855 | #line 2856 "configure"
|
|---|
| 2856 | #include "confdefs.h"
|
|---|
| 2857 | #if defined(CRAY) && ! defined(CRAY2)
|
|---|
| 2858 | webecray
|
|---|
| 2859 | #else
|
|---|
| 2860 | wenotbecray
|
|---|
| 2861 | #endif
|
|---|
| 2862 |
|
|---|
| 2863 | EOF
|
|---|
| 2864 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 2865 | egrep "webecray" >/dev/null 2>&1; then
|
|---|
| 2866 | rm -rf conftest*
|
|---|
| 2867 | ac_cv_os_cray=yes
|
|---|
| 2868 | else
|
|---|
| 2869 | rm -rf conftest*
|
|---|
| 2870 | ac_cv_os_cray=no
|
|---|
| 2871 | fi
|
|---|
| 2872 | rm -f conftest*
|
|---|
| 2873 |
|
|---|
| 2874 | fi
|
|---|
| 2875 |
|
|---|
| 2876 | echo "$ac_t""$ac_cv_os_cray" 1>&6
|
|---|
| 2877 | if test $ac_cv_os_cray = yes; then
|
|---|
| 2878 | for ac_func in _getb67 GETB67 getb67; do
|
|---|
| 2879 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 2880 | echo "configure:2881: checking for $ac_func" >&5
|
|---|
| 2881 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 2882 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2883 | else
|
|---|
| 2884 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2885 | #line 2886 "configure"
|
|---|
| 2886 | #include "confdefs.h"
|
|---|
| 2887 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 2888 | which can conflict with char $ac_func(); below. */
|
|---|
| 2889 | #include <assert.h>
|
|---|
| 2890 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 2891 | /* We use char because int might match the return type of a gcc2
|
|---|
| 2892 | builtin and then its argument prototype would still apply. */
|
|---|
| 2893 | char $ac_func();
|
|---|
| 2894 |
|
|---|
| 2895 | int main() {
|
|---|
| 2896 |
|
|---|
| 2897 | /* The GNU C library defines this for functions which it implements
|
|---|
| 2898 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 2899 | something starting with __ and the normal name is an alias. */
|
|---|
| 2900 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 2901 | choke me
|
|---|
| 2902 | #else
|
|---|
| 2903 | $ac_func();
|
|---|
| 2904 | #endif
|
|---|
| 2905 |
|
|---|
| 2906 | ; return 0; }
|
|---|
| 2907 | EOF
|
|---|
| 2908 | if { (eval echo configure:2909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 2909 | rm -rf conftest*
|
|---|
| 2910 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 2911 | else
|
|---|
| 2912 | echo "configure: failed program was:" >&5
|
|---|
| 2913 | cat conftest.$ac_ext >&5
|
|---|
| 2914 | rm -rf conftest*
|
|---|
| 2915 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 2916 | fi
|
|---|
| 2917 | rm -f conftest*
|
|---|
| 2918 | fi
|
|---|
| 2919 |
|
|---|
| 2920 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 2921 | echo "$ac_t""yes" 1>&6
|
|---|
| 2922 | cat >> confdefs.h <<EOF
|
|---|
| 2923 | #define CRAY_STACKSEG_END $ac_func
|
|---|
| 2924 | EOF
|
|---|
| 2925 |
|
|---|
| 2926 | break
|
|---|
| 2927 | else
|
|---|
| 2928 | echo "$ac_t""no" 1>&6
|
|---|
| 2929 | fi
|
|---|
| 2930 |
|
|---|
| 2931 | done
|
|---|
| 2932 | fi
|
|---|
| 2933 |
|
|---|
| 2934 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
|---|
| 2935 | echo "configure:2936: checking stack direction for C alloca" >&5
|
|---|
| 2936 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
|
|---|
| 2937 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2938 | else
|
|---|
| 2939 | if test "$cross_compiling" = yes; then
|
|---|
| 2940 | ac_cv_c_stack_direction=0
|
|---|
| 2941 | else
|
|---|
| 2942 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2943 | #line 2944 "configure"
|
|---|
| 2944 | #include "confdefs.h"
|
|---|
| 2945 | find_stack_direction ()
|
|---|
| 2946 | {
|
|---|
| 2947 | static char *addr = 0;
|
|---|
| 2948 | auto char dummy;
|
|---|
| 2949 | if (addr == 0)
|
|---|
| 2950 | {
|
|---|
| 2951 | addr = &dummy;
|
|---|
| 2952 | return find_stack_direction ();
|
|---|
| 2953 | }
|
|---|
| 2954 | else
|
|---|
| 2955 | return (&dummy > addr) ? 1 : -1;
|
|---|
| 2956 | }
|
|---|
| 2957 | main ()
|
|---|
| 2958 | {
|
|---|
| 2959 | exit (find_stack_direction() < 0);
|
|---|
| 2960 | }
|
|---|
| 2961 | EOF
|
|---|
| 2962 | if { (eval echo configure:2963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|---|
| 2963 | then
|
|---|
| 2964 | ac_cv_c_stack_direction=1
|
|---|
| 2965 | else
|
|---|
| 2966 | echo "configure: failed program was:" >&5
|
|---|
| 2967 | cat conftest.$ac_ext >&5
|
|---|
| 2968 | rm -fr conftest*
|
|---|
| 2969 | ac_cv_c_stack_direction=-1
|
|---|
| 2970 | fi
|
|---|
| 2971 | rm -fr conftest*
|
|---|
| 2972 | fi
|
|---|
| 2973 |
|
|---|
| 2974 | fi
|
|---|
| 2975 |
|
|---|
| 2976 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
|---|
| 2977 | cat >> confdefs.h <<EOF
|
|---|
| 2978 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
|---|
| 2979 | EOF
|
|---|
| 2980 |
|
|---|
| 2981 | fi
|
|---|
| 2982 |
|
|---|
| 2983 |
|
|---|
| 2984 | echo $ac_n "checking size of short""... $ac_c" 1>&6
|
|---|
| 2985 | echo "configure:2986: checking size of short" >&5
|
|---|
| 2986 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
|
|---|
| 2987 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2988 | else
|
|---|
| 2989 | for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
|
|---|
| 2990 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2991 | #line 2992 "configure"
|
|---|
| 2992 | #include "confdefs.h"
|
|---|
| 2993 | #include "confdefs.h"
|
|---|
| 2994 | #include <sys/types.h>
|
|---|
| 2995 |
|
|---|
| 2996 |
|
|---|
| 2997 | int main() {
|
|---|
| 2998 | switch (0) case 0: case (sizeof (short) == $ac_size):;
|
|---|
| 2999 | ; return 0; }
|
|---|
| 3000 | EOF
|
|---|
| 3001 | if { (eval echo configure:3002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 3002 | rm -rf conftest*
|
|---|
| 3003 | ac_cv_sizeof_short=$ac_size
|
|---|
| 3004 | else
|
|---|
| 3005 | echo "configure: failed program was:" >&5
|
|---|
| 3006 | cat conftest.$ac_ext >&5
|
|---|
| 3007 | fi
|
|---|
| 3008 | rm -f conftest*
|
|---|
| 3009 | if test x$ac_cv_sizeof_short != x ; then break; fi
|
|---|
| 3010 | done
|
|---|
| 3011 |
|
|---|
| 3012 | fi
|
|---|
| 3013 |
|
|---|
| 3014 | if test x$ac_cv_sizeof_short = x ; then
|
|---|
| 3015 | { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
|
|---|
| 3016 | fi
|
|---|
| 3017 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6
|
|---|
| 3018 | cat >> confdefs.h <<EOF
|
|---|
| 3019 | #define SIZEOF_SHORT $ac_cv_sizeof_short
|
|---|
| 3020 | EOF
|
|---|
| 3021 |
|
|---|
| 3022 |
|
|---|
| 3023 | echo $ac_n "checking size of int""... $ac_c" 1>&6
|
|---|
| 3024 | echo "configure:3025: checking size of int" >&5
|
|---|
| 3025 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
|
|---|
| 3026 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3027 | else
|
|---|
| 3028 | for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
|
|---|
| 3029 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3030 | #line 3031 "configure"
|
|---|
| 3031 | #include "confdefs.h"
|
|---|
| 3032 | #include "confdefs.h"
|
|---|
| 3033 | #include <sys/types.h>
|
|---|
| 3034 |
|
|---|
| 3035 |
|
|---|
| 3036 | int main() {
|
|---|
| 3037 | switch (0) case 0: case (sizeof (int) == $ac_size):;
|
|---|
| 3038 | ; return 0; }
|
|---|
| 3039 | EOF
|
|---|
| 3040 | if { (eval echo configure:3041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 3041 | rm -rf conftest*
|
|---|
| 3042 | ac_cv_sizeof_int=$ac_size
|
|---|
| 3043 | else
|
|---|
| 3044 | echo "configure: failed program was:" >&5
|
|---|
| 3045 | cat conftest.$ac_ext >&5
|
|---|
| 3046 | fi
|
|---|
| 3047 | rm -f conftest*
|
|---|
| 3048 | if test x$ac_cv_sizeof_int != x ; then break; fi
|
|---|
| 3049 | done
|
|---|
| 3050 |
|
|---|
| 3051 | fi
|
|---|
| 3052 |
|
|---|
| 3053 | if test x$ac_cv_sizeof_int = x ; then
|
|---|
| 3054 | { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
|
|---|
| 3055 | fi
|
|---|
| 3056 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6
|
|---|
| 3057 | cat >> confdefs.h <<EOF
|
|---|
| 3058 | #define SIZEOF_INT $ac_cv_sizeof_int
|
|---|
| 3059 | EOF
|
|---|
| 3060 |
|
|---|
| 3061 |
|
|---|
| 3062 | echo $ac_n "checking size of long""... $ac_c" 1>&6
|
|---|
| 3063 | echo "configure:3064: checking size of long" >&5
|
|---|
| 3064 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
|
|---|
| 3065 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3066 | else
|
|---|
| 3067 | for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
|
|---|
| 3068 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3069 | #line 3070 "configure"
|
|---|
| 3070 | #include "confdefs.h"
|
|---|
| 3071 | #include "confdefs.h"
|
|---|
| 3072 | #include <sys/types.h>
|
|---|
| 3073 |
|
|---|
| 3074 |
|
|---|
| 3075 | int main() {
|
|---|
| 3076 | switch (0) case 0: case (sizeof (long) == $ac_size):;
|
|---|
| 3077 | ; return 0; }
|
|---|
| 3078 | EOF
|
|---|
| 3079 | if { (eval echo configure:3080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 3080 | rm -rf conftest*
|
|---|
| 3081 | ac_cv_sizeof_long=$ac_size
|
|---|
| 3082 | else
|
|---|
| 3083 | echo "configure: failed program was:" >&5
|
|---|
| 3084 | cat conftest.$ac_ext >&5
|
|---|
| 3085 | fi
|
|---|
| 3086 | rm -f conftest*
|
|---|
| 3087 | if test x$ac_cv_sizeof_long != x ; then break; fi
|
|---|
| 3088 | done
|
|---|
| 3089 |
|
|---|
| 3090 | fi
|
|---|
| 3091 |
|
|---|
| 3092 | if test x$ac_cv_sizeof_long = x ; then
|
|---|
| 3093 | { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
|
|---|
| 3094 | fi
|
|---|
| 3095 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6
|
|---|
| 3096 | cat >> confdefs.h <<EOF
|
|---|
| 3097 | #define SIZEOF_LONG $ac_cv_sizeof_long
|
|---|
| 3098 | EOF
|
|---|
| 3099 |
|
|---|
| 3100 |
|
|---|
| 3101 | echo $ac_n "checking size of long long""... $ac_c" 1>&6
|
|---|
| 3102 | echo "configure:3103: checking size of long long" >&5
|
|---|
| 3103 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
|
|---|
| 3104 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3105 | else
|
|---|
| 3106 | for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
|
|---|
| 3107 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3108 | #line 3109 "configure"
|
|---|
| 3109 | #include "confdefs.h"
|
|---|
| 3110 | #include "confdefs.h"
|
|---|
| 3111 | #include <sys/types.h>
|
|---|
| 3112 |
|
|---|
| 3113 |
|
|---|
| 3114 | int main() {
|
|---|
| 3115 | switch (0) case 0: case (sizeof (long long) == $ac_size):;
|
|---|
| 3116 | ; return 0; }
|
|---|
| 3117 | EOF
|
|---|
| 3118 | if { (eval echo configure:3119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 3119 | rm -rf conftest*
|
|---|
| 3120 | ac_cv_sizeof_long_long=$ac_size
|
|---|
| 3121 | else
|
|---|
| 3122 | echo "configure: failed program was:" >&5
|
|---|
| 3123 | cat conftest.$ac_ext >&5
|
|---|
| 3124 | fi
|
|---|
| 3125 | rm -f conftest*
|
|---|
| 3126 | if test x$ac_cv_sizeof_long_long != x ; then break; fi
|
|---|
| 3127 | done
|
|---|
| 3128 |
|
|---|
| 3129 | fi
|
|---|
| 3130 |
|
|---|
| 3131 | if test x$ac_cv_sizeof_long_long = x ; then
|
|---|
| 3132 | { echo "configure: error: cannot determine a size for long long" 1>&2; exit 1; }
|
|---|
| 3133 | fi
|
|---|
| 3134 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
|
|---|
| 3135 | cat >> confdefs.h <<EOF
|
|---|
| 3136 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
|
|---|
| 3137 | EOF
|
|---|
| 3138 |
|
|---|
| 3139 |
|
|---|
| 3140 | echo $ac_n "checking size of float""... $ac_c" 1>&6
|
|---|
| 3141 | echo "configure:3142: checking size of float" >&5
|
|---|
| 3142 | if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
|
|---|
| 3143 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3144 | else
|
|---|
| 3145 | for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
|
|---|
| 3146 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3147 | #line 3148 "configure"
|
|---|
| 3148 | #include "confdefs.h"
|
|---|
| 3149 | #include "confdefs.h"
|
|---|
| 3150 | #include <sys/types.h>
|
|---|
| 3151 |
|
|---|
| 3152 |
|
|---|
| 3153 | int main() {
|
|---|
| 3154 | switch (0) case 0: case (sizeof (float) == $ac_size):;
|
|---|
| 3155 | ; return 0; }
|
|---|
| 3156 | EOF
|
|---|
| 3157 | if { (eval echo configure:3158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 3158 | rm -rf conftest*
|
|---|
| 3159 | ac_cv_sizeof_float=$ac_size
|
|---|
| 3160 | else
|
|---|
| 3161 | echo "configure: failed program was:" >&5
|
|---|
| 3162 | cat conftest.$ac_ext >&5
|
|---|
| 3163 | fi
|
|---|
| 3164 | rm -f conftest*
|
|---|
| 3165 | if test x$ac_cv_sizeof_float != x ; then break; fi
|
|---|
| 3166 | done
|
|---|
| 3167 |
|
|---|
| 3168 | fi
|
|---|
| 3169 |
|
|---|
| 3170 | if test x$ac_cv_sizeof_float = x ; then
|
|---|
| 3171 | { echo "configure: error: cannot determine a size for float" 1>&2; exit 1; }
|
|---|
| 3172 | fi
|
|---|
| 3173 | echo "$ac_t""$ac_cv_sizeof_float" 1>&6
|
|---|
| 3174 | cat >> confdefs.h <<EOF
|
|---|
| 3175 | #define SIZEOF_FLOAT $ac_cv_sizeof_float
|
|---|
| 3176 | EOF
|
|---|
| 3177 |
|
|---|
| 3178 |
|
|---|
| 3179 | echo $ac_n "checking size of double""... $ac_c" 1>&6
|
|---|
| 3180 | echo "configure:3181: checking size of double" >&5
|
|---|
| 3181 | if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
|
|---|
| 3182 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3183 | else
|
|---|
| 3184 | for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
|
|---|
| 3185 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3186 | #line 3187 "configure"
|
|---|
| 3187 | #include "confdefs.h"
|
|---|
| 3188 | #include "confdefs.h"
|
|---|
| 3189 | #include <sys/types.h>
|
|---|
| 3190 |
|
|---|
| 3191 |
|
|---|
| 3192 | int main() {
|
|---|
| 3193 | switch (0) case 0: case (sizeof (double) == $ac_size):;
|
|---|
| 3194 | ; return 0; }
|
|---|
| 3195 | EOF
|
|---|
| 3196 | if { (eval echo configure:3197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 3197 | rm -rf conftest*
|
|---|
| 3198 | ac_cv_sizeof_double=$ac_size
|
|---|
| 3199 | else
|
|---|
| 3200 | echo "configure: failed program was:" >&5
|
|---|
| 3201 | cat conftest.$ac_ext >&5
|
|---|
| 3202 | fi
|
|---|
| 3203 | rm -f conftest*
|
|---|
| 3204 | if test x$ac_cv_sizeof_double != x ; then break; fi
|
|---|
| 3205 | done
|
|---|
| 3206 |
|
|---|
| 3207 | fi
|
|---|
| 3208 |
|
|---|
| 3209 | if test x$ac_cv_sizeof_double = x ; then
|
|---|
| 3210 | { echo "configure: error: cannot determine a size for double" 1>&2; exit 1; }
|
|---|
| 3211 | fi
|
|---|
| 3212 | echo "$ac_t""$ac_cv_sizeof_double" 1>&6
|
|---|
| 3213 | cat >> confdefs.h <<EOF
|
|---|
| 3214 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double
|
|---|
| 3215 | EOF
|
|---|
| 3216 |
|
|---|
| 3217 |
|
|---|
| 3218 | echo $ac_n "checking size of long double""... $ac_c" 1>&6
|
|---|
| 3219 | echo "configure:3220: checking size of long double" >&5
|
|---|
| 3220 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
|
|---|
| 3221 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3222 | else
|
|---|
| 3223 | for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
|
|---|
| 3224 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3225 | #line 3226 "configure"
|
|---|
| 3226 | #include "confdefs.h"
|
|---|
| 3227 | #include "confdefs.h"
|
|---|
| 3228 | #include <sys/types.h>
|
|---|
| 3229 |
|
|---|
| 3230 |
|
|---|
| 3231 | int main() {
|
|---|
| 3232 | switch (0) case 0: case (sizeof (long double) == $ac_size):;
|
|---|
| 3233 | ; return 0; }
|
|---|
| 3234 | EOF
|
|---|
| 3235 | if { (eval echo configure:3236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 3236 | rm -rf conftest*
|
|---|
| 3237 | ac_cv_sizeof_long_double=$ac_size
|
|---|
| 3238 | else
|
|---|
| 3239 | echo "configure: failed program was:" >&5
|
|---|
| 3240 | cat conftest.$ac_ext >&5
|
|---|
| 3241 | fi
|
|---|
| 3242 | rm -f conftest*
|
|---|
| 3243 | if test x$ac_cv_sizeof_long_double != x ; then break; fi
|
|---|
| 3244 | done
|
|---|
| 3245 |
|
|---|
| 3246 | fi
|
|---|
| 3247 |
|
|---|
| 3248 | if test x$ac_cv_sizeof_long_double = x ; then
|
|---|
| 3249 | { echo "configure: error: cannot determine a size for long double" 1>&2; exit 1; }
|
|---|
| 3250 | fi
|
|---|
| 3251 | echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
|
|---|
| 3252 | cat >> confdefs.h <<EOF
|
|---|
| 3253 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
|
|---|
| 3254 | EOF
|
|---|
| 3255 |
|
|---|
| 3256 |
|
|---|
| 3257 |
|
|---|
| 3258 | echo $ac_n "checking size of void *""... $ac_c" 1>&6
|
|---|
| 3259 | echo "configure:3260: checking size of void *" >&5
|
|---|
| 3260 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
|
|---|
| 3261 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3262 | else
|
|---|
| 3263 | for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
|
|---|
| 3264 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3265 | #line 3266 "configure"
|
|---|
| 3266 | #include "confdefs.h"
|
|---|
| 3267 | #include "confdefs.h"
|
|---|
| 3268 | #include <sys/types.h>
|
|---|
| 3269 |
|
|---|
| 3270 |
|
|---|
| 3271 | int main() {
|
|---|
| 3272 | switch (0) case 0: case (sizeof (void *) == $ac_size):;
|
|---|
| 3273 | ; return 0; }
|
|---|
| 3274 | EOF
|
|---|
| 3275 | if { (eval echo configure:3276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 3276 | rm -rf conftest*
|
|---|
| 3277 | ac_cv_sizeof_void_p=$ac_size
|
|---|
| 3278 | else
|
|---|
| 3279 | echo "configure: failed program was:" >&5
|
|---|
| 3280 | cat conftest.$ac_ext >&5
|
|---|
| 3281 | fi
|
|---|
| 3282 | rm -f conftest*
|
|---|
| 3283 | if test x$ac_cv_sizeof_void_p != x ; then break; fi
|
|---|
| 3284 | done
|
|---|
| 3285 |
|
|---|
| 3286 | fi
|
|---|
| 3287 |
|
|---|
| 3288 | if test x$ac_cv_sizeof_void_p = x ; then
|
|---|
| 3289 | { echo "configure: error: cannot determine a size for void *" 1>&2; exit 1; }
|
|---|
| 3290 | fi
|
|---|
| 3291 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
|
|---|
| 3292 | cat >> confdefs.h <<EOF
|
|---|
| 3293 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
|
|---|
| 3294 | EOF
|
|---|
| 3295 |
|
|---|
| 3296 |
|
|---|
| 3297 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
|
|---|
| 3298 | echo "configure:3299: checking whether byte ordering is bigendian" >&5
|
|---|
| 3299 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
|
|---|
| 3300 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3301 | else
|
|---|
| 3302 | ac_cv_c_bigendian=unknown
|
|---|
| 3303 | # See if sys/param.h defines the BYTE_ORDER macro.
|
|---|
| 3304 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3305 | #line 3306 "configure"
|
|---|
| 3306 | #include "confdefs.h"
|
|---|
| 3307 | #include <sys/types.h>
|
|---|
| 3308 | #include <sys/param.h>
|
|---|
| 3309 | int main() {
|
|---|
| 3310 |
|
|---|
| 3311 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
|---|
| 3312 | bogus endian macros
|
|---|
| 3313 | #endif
|
|---|
| 3314 | ; return 0; }
|
|---|
| 3315 | EOF
|
|---|
| 3316 | if { (eval echo configure:3317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 3317 | rm -rf conftest*
|
|---|
| 3318 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
|---|
| 3319 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3320 | #line 3321 "configure"
|
|---|
| 3321 | #include "confdefs.h"
|
|---|
| 3322 | #include <sys/types.h>
|
|---|
| 3323 | #include <sys/param.h>
|
|---|
| 3324 | int main() {
|
|---|
| 3325 |
|
|---|
| 3326 | #if BYTE_ORDER != BIG_ENDIAN
|
|---|
| 3327 | not big endian
|
|---|
| 3328 | #endif
|
|---|
| 3329 | ; return 0; }
|
|---|
| 3330 | EOF
|
|---|
| 3331 | if { (eval echo configure:3332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 3332 | rm -rf conftest*
|
|---|
| 3333 | ac_cv_c_bigendian=yes
|
|---|
| 3334 | else
|
|---|
| 3335 | echo "configure: failed program was:" >&5
|
|---|
| 3336 | cat conftest.$ac_ext >&5
|
|---|
| 3337 | rm -rf conftest*
|
|---|
| 3338 | ac_cv_c_bigendian=no
|
|---|
| 3339 | fi
|
|---|
| 3340 | rm -f conftest*
|
|---|
| 3341 | else
|
|---|
| 3342 | echo "configure: failed program was:" >&5
|
|---|
| 3343 | cat conftest.$ac_ext >&5
|
|---|
| 3344 | fi
|
|---|
| 3345 | rm -f conftest*
|
|---|
| 3346 | if test $ac_cv_c_bigendian = unknown; then
|
|---|
| 3347 | if test "$cross_compiling" = yes; then
|
|---|
| 3348 | echo $ac_n "cross-compiling... " 2>&6
|
|---|
| 3349 | else
|
|---|
| 3350 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3351 | #line 3352 "configure"
|
|---|
| 3352 | #include "confdefs.h"
|
|---|
| 3353 | main () {
|
|---|
| 3354 | /* Are we little or big endian? From Harbison&Steele. */
|
|---|
| 3355 | union
|
|---|
| 3356 | {
|
|---|
| 3357 | long l;
|
|---|
| 3358 | char c[sizeof (long)];
|
|---|
| 3359 | } u;
|
|---|
| 3360 | u.l = 1;
|
|---|
| 3361 | exit (u.c[sizeof (long) - 1] == 1);
|
|---|
| 3362 | }
|
|---|
| 3363 | EOF
|
|---|
| 3364 | if { (eval echo configure:3365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|---|
| 3365 | then
|
|---|
| 3366 | ac_cv_c_bigendian=no
|
|---|
| 3367 | else
|
|---|
| 3368 | echo "configure: failed program was:" >&5
|
|---|
| 3369 | cat conftest.$ac_ext >&5
|
|---|
| 3370 | rm -fr conftest*
|
|---|
| 3371 | ac_cv_c_bigendian=yes
|
|---|
| 3372 | fi
|
|---|
| 3373 | rm -fr conftest*
|
|---|
| 3374 | fi
|
|---|
| 3375 |
|
|---|
| 3376 | fi
|
|---|
| 3377 | fi
|
|---|
| 3378 |
|
|---|
| 3379 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6
|
|---|
| 3380 | if test $ac_cv_c_bigendian = unknown; then
|
|---|
| 3381 | echo $ac_n "checking to probe for byte ordering""... $ac_c" 1>&6
|
|---|
| 3382 | echo "configure:3383: checking to probe for byte ordering" >&5
|
|---|
| 3383 |
|
|---|
| 3384 | cat >conftest.c <<EOF
|
|---|
| 3385 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
|---|
| 3386 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
|---|
| 3387 | void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
|
|---|
| 3388 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
|---|
| 3389 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
|---|
| 3390 | void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
|
|---|
| 3391 | int main() { _ascii (); _ebcdic (); return 0; }
|
|---|
| 3392 | EOF
|
|---|
| 3393 | if test -f conftest.c ; then
|
|---|
| 3394 | if ${CC-cc} ${CFLAGS} conftest.c -o conftest.o && test -f conftest.o ; then
|
|---|
| 3395 | if test `grep -l BIGenDianSyS conftest.o` ; then
|
|---|
| 3396 | echo $ac_n ' big endian probe OK, ' 1>&6
|
|---|
| 3397 | ac_cv_c_bigendian=yes
|
|---|
| 3398 | fi
|
|---|
| 3399 | if test `grep -l LiTTleEnDian conftest.o` ; then
|
|---|
| 3400 | echo $ac_n ' little endian probe OK, ' 1>&6
|
|---|
| 3401 | if test $ac_cv_c_bigendian = yes ; then
|
|---|
| 3402 | ac_cv_c_bigendian=unknown;
|
|---|
| 3403 | else
|
|---|
| 3404 | ac_cv_c_bigendian=no
|
|---|
| 3405 | fi
|
|---|
| 3406 | fi
|
|---|
| 3407 | echo $ac_n 'guessing bigendian ... ' >&6
|
|---|
| 3408 | fi
|
|---|
| 3409 | fi
|
|---|
| 3410 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6
|
|---|
| 3411 | fi
|
|---|
| 3412 | if test $ac_cv_c_bigendian = yes; then
|
|---|
| 3413 | cat >> confdefs.h <<\EOF
|
|---|
| 3414 | #define WORDS_BIGENDIAN 1
|
|---|
| 3415 | EOF
|
|---|
| 3416 |
|
|---|
| 3417 | BYTEORDER=4321
|
|---|
| 3418 | else
|
|---|
| 3419 | BYTEORDER=1234
|
|---|
| 3420 | fi
|
|---|
| 3421 | cat >> confdefs.h <<EOF
|
|---|
| 3422 | #define BYTEORDER $BYTEORDER
|
|---|
| 3423 | EOF
|
|---|
| 3424 |
|
|---|
| 3425 | if test $ac_cv_c_bigendian = unknown; then
|
|---|
| 3426 | { echo "configure: error: unknown endianess - sorry" 1>&2; exit 1; }
|
|---|
| 3427 | fi
|
|---|
| 3428 |
|
|---|
| 3429 |
|
|---|
| 3430 | if test x$TARGET = xSPARC; then
|
|---|
| 3431 | echo $ac_n "checking assembler and linker support unaligned pc related relocs""... $ac_c" 1>&6
|
|---|
| 3432 | echo "configure:3433: checking assembler and linker support unaligned pc related relocs" >&5
|
|---|
| 3433 | if eval "test \"`echo '$''{'libffi_cv_as_sparc_ua_pcrel'+set}'`\" = set"; then
|
|---|
| 3434 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3435 | else
|
|---|
| 3436 |
|
|---|
| 3437 | save_CFLAGS="$CFLAGS"
|
|---|
| 3438 | save_LDFLAGS="$LDFLAGS"
|
|---|
| 3439 | CFLAGS="$CFLAGS -fpic"
|
|---|
| 3440 | LDFLAGS="$LDFLAGS -shared"
|
|---|
| 3441 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3442 | #line 3443 "configure"
|
|---|
| 3443 | #include "confdefs.h"
|
|---|
| 3444 | asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
|
|---|
| 3445 | int main() {
|
|---|
| 3446 |
|
|---|
| 3447 | ; return 0; }
|
|---|
| 3448 | EOF
|
|---|
| 3449 | if { (eval echo configure:3450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3450 | rm -rf conftest*
|
|---|
| 3451 | libffi_cv_as_sparc_ua_pcrel=yes
|
|---|
| 3452 | else
|
|---|
| 3453 | echo "configure: failed program was:" >&5
|
|---|
| 3454 | cat conftest.$ac_ext >&5
|
|---|
| 3455 | rm -rf conftest*
|
|---|
| 3456 | libffi_cv_as_sparc_ua_pcrel=no
|
|---|
| 3457 | fi
|
|---|
| 3458 | rm -f conftest*
|
|---|
| 3459 | CFLAGS="$save_CFLAGS"
|
|---|
| 3460 | LDFLAGS="$save_LDFLAGS"
|
|---|
| 3461 | fi
|
|---|
| 3462 |
|
|---|
| 3463 | echo "$ac_t""$libffi_cv_as_sparc_ua_pcrel" 1>&6
|
|---|
| 3464 | if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
|
|---|
| 3465 | cat >> confdefs.h <<\EOF
|
|---|
| 3466 | #define HAVE_AS_SPARC_UA_PCREL 1
|
|---|
| 3467 | EOF
|
|---|
| 3468 |
|
|---|
| 3469 | fi
|
|---|
| 3470 | fi
|
|---|
| 3471 |
|
|---|
| 3472 |
|
|---|
| 3473 |
|
|---|
| 3474 |
|
|---|
| 3475 |
|
|---|
| 3476 |
|
|---|
| 3477 | # Check whether --enable-debug or --disable-debug was given.
|
|---|
| 3478 | if test "${enable_debug+set}" = set; then
|
|---|
| 3479 | enableval="$enable_debug"
|
|---|
| 3480 | if test "$enable_debug" = "yes"; then
|
|---|
| 3481 | cat >> confdefs.h <<\EOF
|
|---|
| 3482 | #define FFI_DEBUG 1
|
|---|
| 3483 | EOF
|
|---|
| 3484 |
|
|---|
| 3485 | fi
|
|---|
| 3486 | fi
|
|---|
| 3487 |
|
|---|
| 3488 |
|
|---|
| 3489 | # Check whether --enable-structs or --disable-structs was given.
|
|---|
| 3490 | if test "${enable_structs+set}" = set; then
|
|---|
| 3491 | enableval="$enable_structs"
|
|---|
| 3492 | if test "$enable_structs" = "no"; then
|
|---|
| 3493 | cat >> confdefs.h <<\EOF
|
|---|
| 3494 | #define FFI_NO_STRUCTS 1
|
|---|
| 3495 | EOF
|
|---|
| 3496 |
|
|---|
| 3497 | fi
|
|---|
| 3498 | fi
|
|---|
| 3499 |
|
|---|
| 3500 |
|
|---|
| 3501 | # Check whether --enable-raw-api or --disable-raw-api was given.
|
|---|
| 3502 | if test "${enable_raw_api+set}" = set; then
|
|---|
| 3503 | enableval="$enable_raw_api"
|
|---|
| 3504 | if test "$enable_raw_api" = "no"; then
|
|---|
| 3505 | cat >> confdefs.h <<\EOF
|
|---|
| 3506 | #define FFI_NO_RAW_API 1
|
|---|
| 3507 | EOF
|
|---|
| 3508 |
|
|---|
| 3509 | fi
|
|---|
| 3510 | fi
|
|---|
| 3511 |
|
|---|
| 3512 |
|
|---|
| 3513 | # Check whether --enable-purify-safety or --disable-purify-safety was given.
|
|---|
| 3514 | if test "${enable_purify_safety+set}" = set; then
|
|---|
| 3515 | enableval="$enable_purify_safety"
|
|---|
| 3516 | if test "$enable_purify_safety" = "yes"; then
|
|---|
| 3517 | cat >> confdefs.h <<\EOF
|
|---|
| 3518 | #define USING_PURIFY 1
|
|---|
| 3519 | EOF
|
|---|
| 3520 |
|
|---|
| 3521 | fi
|
|---|
| 3522 | fi
|
|---|
| 3523 |
|
|---|
| 3524 |
|
|---|
| 3525 | if test -n "$with_cross_host" &&
|
|---|
| 3526 | test x"$with_cross_host" != x"no"; then
|
|---|
| 3527 | toolexecdir='$(exec_prefix)/$(target_alias)'
|
|---|
| 3528 | toolexeclibdir='$(toolexecdir)/lib'
|
|---|
| 3529 | else
|
|---|
| 3530 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
|
|---|
| 3531 | toolexeclibdir='$(libdir)'
|
|---|
| 3532 | fi
|
|---|
| 3533 | toolexeclibdir=$toolexeclibdir/`$CC -print-multi-os-directory`
|
|---|
| 3534 |
|
|---|
| 3535 |
|
|---|
| 3536 |
|
|---|
| 3537 | if test "${multilib}" = "yes"; then
|
|---|
| 3538 | multilib_arg="--enable-multilib"
|
|---|
| 3539 | else
|
|---|
| 3540 | multilib_arg=
|
|---|
| 3541 | fi
|
|---|
| 3542 |
|
|---|
| 3543 | trap '' 1 2 15
|
|---|
| 3544 | cat > confcache <<\EOF
|
|---|
| 3545 | # This file is a shell script that caches the results of configure
|
|---|
| 3546 | # tests run on this system so they can be shared between configure
|
|---|
| 3547 | # scripts and configure runs. It is not useful on other systems.
|
|---|
| 3548 | # If it contains results you don't want to keep, you may remove or edit it.
|
|---|
| 3549 | #
|
|---|
| 3550 | # By default, configure uses ./config.cache as the cache file,
|
|---|
| 3551 | # creating it if it does not exist already. You can give configure
|
|---|
| 3552 | # the --cache-file=FILE option to use a different cache file; that is
|
|---|
| 3553 | # what configure does when it calls configure scripts in
|
|---|
| 3554 | # subdirectories, so they share the cache.
|
|---|
| 3555 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
|---|
| 3556 | # config.status only pays attention to the cache file if you give it the
|
|---|
| 3557 | # --recheck option to rerun configure.
|
|---|
| 3558 | #
|
|---|
| 3559 | EOF
|
|---|
| 3560 | # The following way of writing the cache mishandles newlines in values,
|
|---|
| 3561 | # but we know of no workaround that is simple, portable, and efficient.
|
|---|
| 3562 | # So, don't put newlines in cache variables' values.
|
|---|
| 3563 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
|---|
| 3564 | # and sets the high bit in the cache file unless we assign to the vars.
|
|---|
| 3565 | (set) 2>&1 |
|
|---|
| 3566 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
|---|
| 3567 | *ac_space=\ *)
|
|---|
| 3568 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
|---|
| 3569 | # turns \\\\ into \\, and sed turns \\ into \).
|
|---|
| 3570 | sed -n \
|
|---|
| 3571 | -e "s/'/'\\\\''/g" \
|
|---|
| 3572 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
|---|
| 3573 | ;;
|
|---|
| 3574 | *)
|
|---|
| 3575 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
|---|
| 3576 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
|---|
| 3577 | ;;
|
|---|
| 3578 | esac >> confcache
|
|---|
| 3579 | if cmp -s $cache_file confcache; then
|
|---|
| 3580 | :
|
|---|
| 3581 | else
|
|---|
| 3582 | if test -w $cache_file; then
|
|---|
| 3583 | echo "updating cache $cache_file"
|
|---|
| 3584 | cat confcache > $cache_file
|
|---|
| 3585 | else
|
|---|
| 3586 | echo "not updating unwritable cache $cache_file"
|
|---|
| 3587 | fi
|
|---|
| 3588 | fi
|
|---|
| 3589 | rm -f confcache
|
|---|
| 3590 |
|
|---|
| 3591 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|---|
| 3592 |
|
|---|
| 3593 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|---|
| 3594 | # Let make expand exec_prefix.
|
|---|
| 3595 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
|---|
| 3596 |
|
|---|
| 3597 | # Any assignment to VPATH causes Sun make to only execute
|
|---|
| 3598 | # the first set of double-colon rules, so remove it if not needed.
|
|---|
| 3599 | # If there is a colon in the path, we need to keep it.
|
|---|
| 3600 | if test "x$srcdir" = x.; then
|
|---|
| 3601 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
|---|
| 3602 | fi
|
|---|
| 3603 |
|
|---|
| 3604 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
|---|
| 3605 |
|
|---|
| 3606 | DEFS=-DHAVE_CONFIG_H
|
|---|
| 3607 |
|
|---|
| 3608 | # Without the "./", some shells look in PATH for config.status.
|
|---|
| 3609 | : ${CONFIG_STATUS=./config.status}
|
|---|
| 3610 |
|
|---|
| 3611 | echo creating $CONFIG_STATUS
|
|---|
| 3612 | rm -f $CONFIG_STATUS
|
|---|
| 3613 | cat > $CONFIG_STATUS <<EOF
|
|---|
| 3614 | #! /bin/sh
|
|---|
| 3615 | # Generated automatically by configure.
|
|---|
| 3616 | # Run this file to recreate the current configuration.
|
|---|
| 3617 | # This directory was configured as follows,
|
|---|
| 3618 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|---|
| 3619 | #
|
|---|
| 3620 | # $0 $ac_configure_args
|
|---|
| 3621 | #
|
|---|
| 3622 | # Compiler output produced by configure, useful for debugging
|
|---|
| 3623 | # configure, is in ./config.log if it exists.
|
|---|
| 3624 |
|
|---|
| 3625 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
|---|
| 3626 | for ac_option
|
|---|
| 3627 | do
|
|---|
| 3628 | case "\$ac_option" in
|
|---|
| 3629 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
|---|
| 3630 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
|---|
| 3631 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
|---|
| 3632 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
|---|
| 3633 | echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
|---|
| 3634 | exit 0 ;;
|
|---|
| 3635 | -help | --help | --hel | --he | --h)
|
|---|
| 3636 | echo "\$ac_cs_usage"; exit 0 ;;
|
|---|
| 3637 | *) echo "\$ac_cs_usage"; exit 1 ;;
|
|---|
| 3638 | esac
|
|---|
| 3639 | done
|
|---|
| 3640 |
|
|---|
| 3641 | ac_given_srcdir=$srcdir
|
|---|
| 3642 | ac_given_INSTALL="$INSTALL"
|
|---|
| 3643 |
|
|---|
| 3644 | trap 'rm -fr `echo "include/Makefile include/ffi.h Makefile fficonfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
|---|
| 3645 | EOF
|
|---|
| 3646 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 3647 |
|
|---|
| 3648 | # Protect against being on the right side of a sed subst in config.status.
|
|---|
| 3649 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
|---|
| 3650 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
|---|
| 3651 | $ac_vpsub
|
|---|
| 3652 | $extrasub
|
|---|
| 3653 | s%@SHELL@%$SHELL%g
|
|---|
| 3654 | s%@CFLAGS@%$CFLAGS%g
|
|---|
| 3655 | s%@CPPFLAGS@%$CPPFLAGS%g
|
|---|
| 3656 | s%@CXXFLAGS@%$CXXFLAGS%g
|
|---|
| 3657 | s%@FFLAGS@%$FFLAGS%g
|
|---|
| 3658 | s%@DEFS@%$DEFS%g
|
|---|
| 3659 | s%@LDFLAGS@%$LDFLAGS%g
|
|---|
| 3660 | s%@LIBS@%$LIBS%g
|
|---|
| 3661 | s%@exec_prefix@%$exec_prefix%g
|
|---|
| 3662 | s%@prefix@%$prefix%g
|
|---|
| 3663 | s%@program_transform_name@%$program_transform_name%g
|
|---|
| 3664 | s%@bindir@%$bindir%g
|
|---|
| 3665 | s%@sbindir@%$sbindir%g
|
|---|
| 3666 | s%@libexecdir@%$libexecdir%g
|
|---|
| 3667 | s%@datadir@%$datadir%g
|
|---|
| 3668 | s%@sysconfdir@%$sysconfdir%g
|
|---|
| 3669 | s%@sharedstatedir@%$sharedstatedir%g
|
|---|
| 3670 | s%@localstatedir@%$localstatedir%g
|
|---|
| 3671 | s%@libdir@%$libdir%g
|
|---|
| 3672 | s%@includedir@%$includedir%g
|
|---|
| 3673 | s%@oldincludedir@%$oldincludedir%g
|
|---|
| 3674 | s%@infodir@%$infodir%g
|
|---|
| 3675 | s%@mandir@%$mandir%g
|
|---|
| 3676 | s%@libffi_basedir@%$libffi_basedir%g
|
|---|
| 3677 | s%@host@%$host%g
|
|---|
| 3678 | s%@host_alias@%$host_alias%g
|
|---|
| 3679 | s%@host_cpu@%$host_cpu%g
|
|---|
| 3680 | s%@host_vendor@%$host_vendor%g
|
|---|
| 3681 | s%@host_os@%$host_os%g
|
|---|
| 3682 | s%@build@%$build%g
|
|---|
| 3683 | s%@build_alias@%$build_alias%g
|
|---|
| 3684 | s%@build_cpu@%$build_cpu%g
|
|---|
| 3685 | s%@build_vendor@%$build_vendor%g
|
|---|
| 3686 | s%@build_os@%$build_os%g
|
|---|
| 3687 | s%@CC@%$CC%g
|
|---|
| 3688 | s%@LN_S@%$LN_S%g
|
|---|
| 3689 | s%@OBJEXT@%$OBJEXT%g
|
|---|
| 3690 | s%@EXEEXT@%$EXEEXT%g
|
|---|
| 3691 | s%@RANLIB@%$RANLIB%g
|
|---|
| 3692 | s%@STRIP@%$STRIP%g
|
|---|
| 3693 | s%@LIBTOOL@%$LIBTOOL%g
|
|---|
| 3694 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
|---|
| 3695 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
|---|
| 3696 | s%@INSTALL_DATA@%$INSTALL_DATA%g
|
|---|
| 3697 | s%@PACKAGE@%$PACKAGE%g
|
|---|
| 3698 | s%@VERSION@%$VERSION%g
|
|---|
| 3699 | s%@ACLOCAL@%$ACLOCAL%g
|
|---|
| 3700 | s%@AUTOCONF@%$AUTOCONF%g
|
|---|
| 3701 | s%@AUTOMAKE@%$AUTOMAKE%g
|
|---|
| 3702 | s%@AUTOHEADER@%$AUTOHEADER%g
|
|---|
| 3703 | s%@MAKEINFO@%$MAKEINFO%g
|
|---|
| 3704 | s%@SET_MAKE@%$SET_MAKE%g
|
|---|
| 3705 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
|
|---|
| 3706 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
|
|---|
| 3707 | s%@MAINT@%$MAINT%g
|
|---|
| 3708 | s%@MIPS_GCC_TRUE@%$MIPS_GCC_TRUE%g
|
|---|
| 3709 | s%@MIPS_GCC_FALSE@%$MIPS_GCC_FALSE%g
|
|---|
| 3710 | s%@MIPS_SGI_TRUE@%$MIPS_SGI_TRUE%g
|
|---|
| 3711 | s%@MIPS_SGI_FALSE@%$MIPS_SGI_FALSE%g
|
|---|
| 3712 | s%@SPARC_TRUE@%$SPARC_TRUE%g
|
|---|
| 3713 | s%@SPARC_FALSE@%$SPARC_FALSE%g
|
|---|
| 3714 | s%@X86_TRUE@%$X86_TRUE%g
|
|---|
| 3715 | s%@X86_FALSE@%$X86_FALSE%g
|
|---|
| 3716 | s%@X86_WIN32_TRUE@%$X86_WIN32_TRUE%g
|
|---|
| 3717 | s%@X86_WIN32_FALSE@%$X86_WIN32_FALSE%g
|
|---|
| 3718 | s%@ALPHA_TRUE@%$ALPHA_TRUE%g
|
|---|
| 3719 | s%@ALPHA_FALSE@%$ALPHA_FALSE%g
|
|---|
| 3720 | s%@IA64_TRUE@%$IA64_TRUE%g
|
|---|
| 3721 | s%@IA64_FALSE@%$IA64_FALSE%g
|
|---|
| 3722 | s%@M68K_TRUE@%$M68K_TRUE%g
|
|---|
| 3723 | s%@M68K_FALSE@%$M68K_FALSE%g
|
|---|
| 3724 | s%@POWERPC_TRUE@%$POWERPC_TRUE%g
|
|---|
| 3725 | s%@POWERPC_FALSE@%$POWERPC_FALSE%g
|
|---|
| 3726 | s%@POWERPC_AIX_TRUE@%$POWERPC_AIX_TRUE%g
|
|---|
| 3727 | s%@POWERPC_AIX_FALSE@%$POWERPC_AIX_FALSE%g
|
|---|
| 3728 | s%@POWERPC_DARWIN_TRUE@%$POWERPC_DARWIN_TRUE%g
|
|---|
| 3729 | s%@POWERPC_DARWIN_FALSE@%$POWERPC_DARWIN_FALSE%g
|
|---|
| 3730 | s%@ARM_TRUE@%$ARM_TRUE%g
|
|---|
| 3731 | s%@ARM_FALSE@%$ARM_FALSE%g
|
|---|
| 3732 | s%@CPP@%$CPP%g
|
|---|
| 3733 | s%@ALLOCA@%$ALLOCA%g
|
|---|
| 3734 | s%@TARGET@%$TARGET%g
|
|---|
| 3735 | s%@TARGETDIR@%$TARGETDIR%g
|
|---|
| 3736 | s%@toolexecdir@%$toolexecdir%g
|
|---|
| 3737 | s%@toolexeclibdir@%$toolexeclibdir%g
|
|---|
| 3738 |
|
|---|
| 3739 | CEOF
|
|---|
| 3740 | EOF
|
|---|
| 3741 |
|
|---|
| 3742 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 3743 |
|
|---|
| 3744 | # Split the substitutions into bite-sized pieces for seds with
|
|---|
| 3745 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
|---|
| 3746 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
|---|
| 3747 | ac_file=1 # Number of current file.
|
|---|
| 3748 | ac_beg=1 # First line for current file.
|
|---|
| 3749 | ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
|---|
| 3750 | ac_more_lines=:
|
|---|
| 3751 | ac_sed_cmds=""
|
|---|
| 3752 | while $ac_more_lines; do
|
|---|
| 3753 | if test $ac_beg -gt 1; then
|
|---|
| 3754 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
|---|
| 3755 | else
|
|---|
| 3756 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
|---|
| 3757 | fi
|
|---|
| 3758 | if test ! -s conftest.s$ac_file; then
|
|---|
| 3759 | ac_more_lines=false
|
|---|
| 3760 | rm -f conftest.s$ac_file
|
|---|
| 3761 | else
|
|---|
| 3762 | if test -z "$ac_sed_cmds"; then
|
|---|
| 3763 | ac_sed_cmds="sed -f conftest.s$ac_file"
|
|---|
| 3764 | else
|
|---|
| 3765 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
|---|
| 3766 | fi
|
|---|
| 3767 | ac_file=`expr $ac_file + 1`
|
|---|
| 3768 | ac_beg=$ac_end
|
|---|
| 3769 | ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
|---|
| 3770 | fi
|
|---|
| 3771 | done
|
|---|
| 3772 | if test -z "$ac_sed_cmds"; then
|
|---|
| 3773 | ac_sed_cmds=cat
|
|---|
| 3774 | fi
|
|---|
| 3775 | EOF
|
|---|
| 3776 |
|
|---|
| 3777 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 3778 |
|
|---|
| 3779 | CONFIG_FILES=\${CONFIG_FILES-"include/Makefile include/ffi.h Makefile"}
|
|---|
| 3780 | EOF
|
|---|
| 3781 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 3782 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
|---|
| 3783 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|---|
| 3784 | case "$ac_file" in
|
|---|
| 3785 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|---|
| 3786 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|---|
| 3787 | *) ac_file_in="${ac_file}.in" ;;
|
|---|
| 3788 | esac
|
|---|
| 3789 |
|
|---|
| 3790 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
|---|
| 3791 |
|
|---|
| 3792 | # Remove last slash and all that follows it. Not all systems have dirname.
|
|---|
| 3793 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|---|
| 3794 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|---|
| 3795 | # The file is in a subdirectory.
|
|---|
| 3796 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|---|
| 3797 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
|---|
| 3798 | # A "../" for each directory in $ac_dir_suffix.
|
|---|
| 3799 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
|---|
| 3800 | else
|
|---|
| 3801 | ac_dir_suffix= ac_dots=
|
|---|
| 3802 | fi
|
|---|
| 3803 |
|
|---|
| 3804 | case "$ac_given_srcdir" in
|
|---|
| 3805 | .) srcdir=.
|
|---|
| 3806 | if test -z "$ac_dots"; then top_srcdir=.
|
|---|
| 3807 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
|---|
| 3808 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
|---|
| 3809 | *) # Relative path.
|
|---|
| 3810 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
|---|
| 3811 | top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|---|
| 3812 | esac
|
|---|
| 3813 |
|
|---|
| 3814 | case "$ac_given_INSTALL" in
|
|---|
| 3815 | [/$]*) INSTALL="$ac_given_INSTALL" ;;
|
|---|
| 3816 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
|---|
| 3817 | esac
|
|---|
| 3818 |
|
|---|
| 3819 | echo creating "$ac_file"
|
|---|
| 3820 | rm -f "$ac_file"
|
|---|
| 3821 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
|---|
| 3822 | case "$ac_file" in
|
|---|
| 3823 | *Makefile*) ac_comsub="1i\\
|
|---|
| 3824 | # $configure_input" ;;
|
|---|
| 3825 | *) ac_comsub= ;;
|
|---|
| 3826 | esac
|
|---|
| 3827 |
|
|---|
| 3828 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|---|
| 3829 | sed -e "$ac_comsub
|
|---|
| 3830 | s%@configure_input@%$configure_input%g
|
|---|
| 3831 | s%@srcdir@%$srcdir%g
|
|---|
| 3832 | s%@top_srcdir@%$top_srcdir%g
|
|---|
| 3833 | s%@INSTALL@%$INSTALL%g
|
|---|
| 3834 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
|---|
| 3835 | fi; done
|
|---|
| 3836 | rm -f conftest.s*
|
|---|
| 3837 |
|
|---|
| 3838 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
|---|
| 3839 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
|---|
| 3840 | #
|
|---|
| 3841 | # ac_d sets the value in "#define NAME VALUE" lines.
|
|---|
| 3842 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
|---|
| 3843 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
|---|
| 3844 | ac_dC='\3'
|
|---|
| 3845 | ac_dD='%g'
|
|---|
| 3846 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
|---|
| 3847 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|---|
| 3848 | ac_uB='\([ ]\)%\1#\2define\3'
|
|---|
| 3849 | ac_uC=' '
|
|---|
| 3850 | ac_uD='\4%g'
|
|---|
| 3851 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
|---|
| 3852 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|---|
| 3853 | ac_eB='$%\1#\2define\3'
|
|---|
| 3854 | ac_eC=' '
|
|---|
| 3855 | ac_eD='%g'
|
|---|
| 3856 |
|
|---|
| 3857 | if test "${CONFIG_HEADERS+set}" != set; then
|
|---|
| 3858 | EOF
|
|---|
| 3859 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 3860 | CONFIG_HEADERS="fficonfig.h"
|
|---|
| 3861 | EOF
|
|---|
| 3862 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 3863 | fi
|
|---|
| 3864 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
|---|
| 3865 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|---|
| 3866 | case "$ac_file" in
|
|---|
| 3867 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|---|
| 3868 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|---|
| 3869 | *) ac_file_in="${ac_file}.in" ;;
|
|---|
| 3870 | esac
|
|---|
| 3871 |
|
|---|
| 3872 | echo creating $ac_file
|
|---|
| 3873 |
|
|---|
| 3874 | rm -f conftest.frag conftest.in conftest.out
|
|---|
| 3875 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|---|
| 3876 | cat $ac_file_inputs > conftest.in
|
|---|
| 3877 |
|
|---|
| 3878 | EOF
|
|---|
| 3879 |
|
|---|
| 3880 | # Transform confdefs.h into a sed script conftest.vals that substitutes
|
|---|
| 3881 | # the proper values into config.h.in to produce config.h. And first:
|
|---|
| 3882 | # Protect against being on the right side of a sed subst in config.status.
|
|---|
| 3883 | # Protect against being in an unquoted here document in config.status.
|
|---|
| 3884 | rm -f conftest.vals
|
|---|
| 3885 | cat > conftest.hdr <<\EOF
|
|---|
| 3886 | s/[\\&%]/\\&/g
|
|---|
| 3887 | s%[\\$`]%\\&%g
|
|---|
| 3888 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
|---|
| 3889 | s%ac_d%ac_u%gp
|
|---|
| 3890 | s%ac_u%ac_e%gp
|
|---|
| 3891 | EOF
|
|---|
| 3892 | sed -n -f conftest.hdr confdefs.h > conftest.vals
|
|---|
| 3893 | rm -f conftest.hdr
|
|---|
| 3894 |
|
|---|
| 3895 | # This sed command replaces #undef with comments. This is necessary, for
|
|---|
| 3896 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
|---|
| 3897 | # on some systems where configure will not decide to define it.
|
|---|
| 3898 | cat >> conftest.vals <<\EOF
|
|---|
| 3899 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
|---|
| 3900 | EOF
|
|---|
| 3901 |
|
|---|
| 3902 | # Break up conftest.vals because some shells have a limit on
|
|---|
| 3903 | # the size of here documents, and old seds have small limits too.
|
|---|
| 3904 |
|
|---|
| 3905 | rm -f conftest.tail
|
|---|
| 3906 | while :
|
|---|
| 3907 | do
|
|---|
| 3908 | ac_lines=`grep -c . conftest.vals`
|
|---|
| 3909 | # grep -c gives empty output for an empty file on some AIX systems.
|
|---|
| 3910 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
|---|
| 3911 | # Write a limited-size here document to conftest.frag.
|
|---|
| 3912 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
|---|
| 3913 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
|---|
| 3914 | echo 'CEOF
|
|---|
| 3915 | sed -f conftest.frag conftest.in > conftest.out
|
|---|
| 3916 | rm -f conftest.in
|
|---|
| 3917 | mv conftest.out conftest.in
|
|---|
| 3918 | ' >> $CONFIG_STATUS
|
|---|
| 3919 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
|---|
| 3920 | rm -f conftest.vals
|
|---|
| 3921 | mv conftest.tail conftest.vals
|
|---|
| 3922 | done
|
|---|
| 3923 | rm -f conftest.vals
|
|---|
| 3924 |
|
|---|
| 3925 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 3926 | rm -f conftest.frag conftest.h
|
|---|
| 3927 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
|---|
| 3928 | cat conftest.in >> conftest.h
|
|---|
| 3929 | rm -f conftest.in
|
|---|
| 3930 | if cmp -s $ac_file conftest.h 2>/dev/null; then
|
|---|
| 3931 | echo "$ac_file is unchanged"
|
|---|
| 3932 | rm -f conftest.h
|
|---|
| 3933 | else
|
|---|
| 3934 | # Remove last slash and all that follows it. Not all systems have dirname.
|
|---|
| 3935 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|---|
| 3936 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|---|
| 3937 | # The file is in a subdirectory.
|
|---|
| 3938 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|---|
| 3939 | fi
|
|---|
| 3940 | rm -f $ac_file
|
|---|
| 3941 | mv conftest.h $ac_file
|
|---|
| 3942 | fi
|
|---|
| 3943 | fi; done
|
|---|
| 3944 |
|
|---|
| 3945 | EOF
|
|---|
| 3946 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 3947 |
|
|---|
| 3948 | srcdir=${srcdir}
|
|---|
| 3949 | host=${host}
|
|---|
| 3950 | target=${target}
|
|---|
| 3951 | with_multisubdir=${with_multisubdir}
|
|---|
| 3952 | ac_configure_args="${multilib_arg} ${ac_configure_args}"
|
|---|
| 3953 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
|
|---|
| 3954 | libffi_basedir=${libffi_basedir}
|
|---|
| 3955 | CC="${CC}"
|
|---|
| 3956 | DEFS="$DEFS"
|
|---|
| 3957 | test ! -d include && mkdir include
|
|---|
| 3958 | test ! -f include/fficonfig.h && cp fficonfig.h include/fficonfig.h
|
|---|
| 3959 | if cmp -s fficonfig.h include/fficonfig.h 2>/dev/null; then
|
|---|
| 3960 | echo fficonfig.h unchanged
|
|---|
| 3961 | else
|
|---|
| 3962 | echo Moving fficonfig.h to include/fficonfig.h
|
|---|
| 3963 | cp fficonfig.h include/fficonfig.h
|
|---|
| 3964 | fi
|
|---|
| 3965 |
|
|---|
| 3966 | EOF
|
|---|
| 3967 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 3968 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
|
|---|
| 3969 |
|
|---|
| 3970 | if test -n "$CONFIG_FILES"; then
|
|---|
| 3971 | LD="${ORIGINAL_LD_FOR_MULTILIBS}"
|
|---|
| 3972 | ac_file=Makefile . ${libffi_basedir}/../config-ml.in
|
|---|
| 3973 | fi
|
|---|
| 3974 |
|
|---|
| 3975 | exit 0
|
|---|
| 3976 | EOF
|
|---|
| 3977 | chmod +x $CONFIG_STATUS
|
|---|
| 3978 | rm -fr confdefs* $ac_clean_files
|
|---|
| 3979 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
|---|
| 3980 |
|
|---|
| 3981 |
|
|---|
| 3982 | # Make target subdirectories if required.
|
|---|
| 3983 | test -d src || mkdir src
|
|---|
| 3984 | test -d src/${TARGETDIR} || mkdir src/${TARGETDIR}
|
|---|