| 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 [email protected].
|
|---|
| 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 path separator""... $ac_c" 1>&6
|
|---|
| 549 | echo "configure:550: checking for path separator" >&5
|
|---|
| 550 | # Filter path to get backslahes into forwardslashes
|
|---|
| 551 | case "`uname -s 2> /dev/null`" in
|
|---|
| 552 | OS/2)
|
|---|
| 553 | PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
|
|---|
| 554 | PATH_IFS=';'
|
|---|
| 555 | ;;
|
|---|
| 556 | *)
|
|---|
| 557 | PATH_IFS=':'
|
|---|
| 558 | ;;
|
|---|
| 559 | esac
|
|---|
| 560 | echo "$ac_t""${PATH_IFS}" 1>&6
|
|---|
| 561 |
|
|---|
| 562 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
|
|---|
| 563 | echo "configure:564: checking for Cygwin environment" >&5
|
|---|
| 564 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
|
|---|
| 565 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 566 | else
|
|---|
| 567 | cat > conftest.$ac_ext <<EOF
|
|---|
| 568 | #line 569 "configure"
|
|---|
| 569 | #include "confdefs.h"
|
|---|
| 570 |
|
|---|
| 571 | int main() {
|
|---|
| 572 |
|
|---|
| 573 | #ifndef __CYGWIN__
|
|---|
| 574 | #define __CYGWIN__ __CYGWIN32__
|
|---|
| 575 | #endif
|
|---|
| 576 | return __CYGWIN__;
|
|---|
| 577 | ; return 0; }
|
|---|
| 578 | EOF
|
|---|
| 579 | if { (eval echo configure:580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 580 | rm -rf conftest*
|
|---|
| 581 | ac_cv_cygwin=yes
|
|---|
| 582 | else
|
|---|
| 583 | echo "configure: failed program was:" >&5
|
|---|
| 584 | cat conftest.$ac_ext >&5
|
|---|
| 585 | rm -rf conftest*
|
|---|
| 586 | ac_cv_cygwin=no
|
|---|
| 587 | fi
|
|---|
| 588 | rm -f conftest*
|
|---|
| 589 | rm -f conftest*
|
|---|
| 590 | fi
|
|---|
| 591 |
|
|---|
| 592 | echo "$ac_t""$ac_cv_cygwin" 1>&6
|
|---|
| 593 | CYGWIN=
|
|---|
| 594 | test "$ac_cv_cygwin" = yes && CYGWIN=yes
|
|---|
| 595 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
|
|---|
| 596 | echo "configure:597: checking for mingw32 environment" >&5
|
|---|
| 597 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
|
|---|
| 598 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 599 | else
|
|---|
| 600 | cat > conftest.$ac_ext <<EOF
|
|---|
| 601 | #line 602 "configure"
|
|---|
| 602 | #include "confdefs.h"
|
|---|
| 603 |
|
|---|
| 604 | int main() {
|
|---|
| 605 | return __MINGW32__;
|
|---|
| 606 | ; return 0; }
|
|---|
| 607 | EOF
|
|---|
| 608 | if { (eval echo configure:609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 609 | rm -rf conftest*
|
|---|
| 610 | ac_cv_mingw32=yes
|
|---|
| 611 | else
|
|---|
| 612 | echo "configure: failed program was:" >&5
|
|---|
| 613 | cat conftest.$ac_ext >&5
|
|---|
| 614 | rm -rf conftest*
|
|---|
| 615 | ac_cv_mingw32=no
|
|---|
| 616 | fi
|
|---|
| 617 | rm -f conftest*
|
|---|
| 618 | rm -f conftest*
|
|---|
| 619 | fi
|
|---|
| 620 |
|
|---|
| 621 | echo "$ac_t""$ac_cv_mingw32" 1>&6
|
|---|
| 622 | MINGW32=
|
|---|
| 623 | test "$ac_cv_mingw32" = yes && MINGW32=yes
|
|---|
| 624 | echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
|
|---|
| 625 | echo "configure:626: checking for EMX/OS2 environment" >&5
|
|---|
| 626 | if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
|
|---|
| 627 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 628 | else
|
|---|
| 629 | : ${CC=gcc.exe}
|
|---|
| 630 | cat > conftest.$ac_ext <<EOF
|
|---|
| 631 | #line 632 "configure"
|
|---|
| 632 | #include "confdefs.h"
|
|---|
| 633 |
|
|---|
| 634 | int main() {
|
|---|
| 635 | return __EMX__;
|
|---|
| 636 | ; return 0; }
|
|---|
| 637 | EOF
|
|---|
| 638 | if { (eval echo configure:639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 639 | rm -rf conftest*
|
|---|
| 640 | ac_cv_emxos2=yes
|
|---|
| 641 | else
|
|---|
| 642 | echo "configure: failed program was:" >&5
|
|---|
| 643 | cat conftest.$ac_ext >&5
|
|---|
| 644 | rm -rf conftest*
|
|---|
| 645 | ac_cv_emxos2=no
|
|---|
| 646 | fi
|
|---|
| 647 | rm -f conftest*
|
|---|
| 648 | rm -f conftest*
|
|---|
| 649 | fi
|
|---|
| 650 |
|
|---|
| 651 | echo "$ac_t""$ac_cv_emxos2" 1>&6
|
|---|
| 652 | if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
|
|---|
| 653 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 654 | else
|
|---|
| 655 | if test "$ac_cv_emxos2" = yes ; then
|
|---|
| 656 | ac_cv_libpre=
|
|---|
| 657 | else
|
|---|
| 658 | ac_cv_libpre=lib
|
|---|
| 659 | fi
|
|---|
| 660 |
|
|---|
| 661 | fi
|
|---|
| 662 |
|
|---|
| 663 | EMXOS2=
|
|---|
| 664 | test "$ac_cv_emxos2" = yes && EMXOS2=yes
|
|---|
| 665 |
|
|---|
| 666 |
|
|---|
| 667 |
|
|---|
| 668 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
|---|
| 669 | echo "configure:670: checking for executable suffix" >&5
|
|---|
| 670 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
|---|
| 671 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 672 | else
|
|---|
| 673 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
|---|
| 674 | ac_cv_exeext=.exe
|
|---|
| 675 | else
|
|---|
| 676 | rm -f conftest*
|
|---|
| 677 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
|---|
| 678 | ac_cv_exeext=
|
|---|
| 679 | if { (eval echo configure:680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
|---|
| 680 | for file in conftest.*; do
|
|---|
| 681 | case $file in
|
|---|
| 682 | *.c | *.o | *.obj) ;;
|
|---|
| 683 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
|---|
| 684 | esac
|
|---|
| 685 | done
|
|---|
| 686 | else
|
|---|
| 687 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 688 | fi
|
|---|
| 689 | rm -f conftest*
|
|---|
| 690 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
|---|
| 691 | fi
|
|---|
| 692 | fi
|
|---|
| 693 |
|
|---|
| 694 | EXEEXT=""
|
|---|
| 695 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
|---|
| 696 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
|---|
| 697 | ac_exeext=$EXEEXT
|
|---|
| 698 |
|
|---|
| 699 |
|
|---|
| 700 |
|
|---|
| 701 |
|
|---|
| 702 |
|
|---|
| 703 |
|
|---|
| 704 | # This works around the fact that libtool configuration may change LD
|
|---|
| 705 | # for this particular configuration, but some shells, instead of
|
|---|
| 706 | # keeping the changes in LD private, export them just because LD is
|
|---|
| 707 | # exported.
|
|---|
| 708 | ORIGINAL_LD_FOR_MULTILIBS=$LD
|
|---|
| 709 |
|
|---|
| 710 | # Check whether --enable-multilib or --disable-multilib was given.
|
|---|
| 711 | if test "${enable_multilib+set}" = set; then
|
|---|
| 712 | enableval="$enable_multilib"
|
|---|
| 713 | case "${enableval}" in
|
|---|
| 714 | yes) multilib=yes ;;
|
|---|
| 715 | no) multilib=no ;;
|
|---|
| 716 | *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
|
|---|
| 717 | esac
|
|---|
| 718 | else
|
|---|
| 719 | multilib=yes
|
|---|
| 720 | fi
|
|---|
| 721 |
|
|---|
| 722 |
|
|---|
| 723 | if test "${srcdir}" = "."; then
|
|---|
| 724 | if test "${with_target_subdir}" != "."; then
|
|---|
| 725 | libffi_basedir="${srcdir}/${with_multisrctop}.."
|
|---|
| 726 | else
|
|---|
| 727 | libffi_basedir="${srcdir}/${with_multisrctop}"
|
|---|
| 728 | fi
|
|---|
| 729 | else
|
|---|
| 730 | libffi_basedir="${srcdir}"
|
|---|
| 731 | fi
|
|---|
| 732 |
|
|---|
| 733 |
|
|---|
| 734 | ac_aux_dir=
|
|---|
| 735 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
|---|
| 736 | if test -f $ac_dir/install-sh; then
|
|---|
| 737 | ac_aux_dir=$ac_dir
|
|---|
| 738 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
|---|
| 739 | break
|
|---|
| 740 | elif test -f $ac_dir/install.sh; then
|
|---|
| 741 | ac_aux_dir=$ac_dir
|
|---|
| 742 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
|---|
| 743 | break
|
|---|
| 744 | fi
|
|---|
| 745 | done
|
|---|
| 746 | if test -z "$ac_aux_dir"; then
|
|---|
| 747 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
|---|
| 748 | fi
|
|---|
| 749 | ac_config_guess=$ac_aux_dir/config.guess
|
|---|
| 750 | ac_config_sub=$ac_aux_dir/config.sub
|
|---|
| 751 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
|---|
| 752 |
|
|---|
| 753 |
|
|---|
| 754 | # Make sure we can run config.sub.
|
|---|
| 755 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
|
|---|
| 756 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
|
|---|
| 757 | fi
|
|---|
| 758 |
|
|---|
| 759 | echo $ac_n "checking host system type""... $ac_c" 1>&6
|
|---|
| 760 | echo "configure:761: checking host system type" >&5
|
|---|
| 761 |
|
|---|
| 762 | host_alias=$host
|
|---|
| 763 | case "$host_alias" in
|
|---|
| 764 | NONE)
|
|---|
| 765 | case $nonopt in
|
|---|
| 766 | NONE)
|
|---|
| 767 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
|
|---|
| 768 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
|
|---|
| 769 | fi ;;
|
|---|
| 770 | *) host_alias=$nonopt ;;
|
|---|
| 771 | esac ;;
|
|---|
| 772 | esac
|
|---|
| 773 |
|
|---|
| 774 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
|
|---|
| 775 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 776 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 777 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 778 | echo "$ac_t""$host" 1>&6
|
|---|
| 779 |
|
|---|
| 780 |
|
|---|
| 781 | # Check whether --enable-shared or --disable-shared was given.
|
|---|
| 782 | if test "${enable_shared+set}" = set; then
|
|---|
| 783 | enableval="$enable_shared"
|
|---|
| 784 | p=${PACKAGE-default}
|
|---|
| 785 | case $enableval in
|
|---|
| 786 | yes) enable_shared=yes ;;
|
|---|
| 787 | no) enable_shared=no ;;
|
|---|
| 788 | *)
|
|---|
| 789 | enable_shared=no
|
|---|
| 790 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 791 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 792 | for pkg in $enableval; do
|
|---|
| 793 | if test "X$pkg" = "X$p"; then
|
|---|
| 794 | enable_shared=yes
|
|---|
| 795 | fi
|
|---|
| 796 | done
|
|---|
| 797 | IFS="$ac_save_ifs"
|
|---|
| 798 | ;;
|
|---|
| 799 | esac
|
|---|
| 800 | else
|
|---|
| 801 | enable_shared=yes
|
|---|
| 802 | fi
|
|---|
| 803 |
|
|---|
| 804 | # Check whether --enable-static or --disable-static was given.
|
|---|
| 805 | if test "${enable_static+set}" = set; then
|
|---|
| 806 | enableval="$enable_static"
|
|---|
| 807 | p=${PACKAGE-default}
|
|---|
| 808 | case $enableval in
|
|---|
| 809 | yes) enable_static=yes ;;
|
|---|
| 810 | no) enable_static=no ;;
|
|---|
| 811 | *)
|
|---|
| 812 | enable_static=no
|
|---|
| 813 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 814 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 815 | for pkg in $enableval; do
|
|---|
| 816 | if test "X$pkg" = "X$p"; then
|
|---|
| 817 | enable_static=yes
|
|---|
| 818 | fi
|
|---|
| 819 | done
|
|---|
| 820 | IFS="$ac_save_ifs"
|
|---|
| 821 | ;;
|
|---|
| 822 | esac
|
|---|
| 823 | else
|
|---|
| 824 | enable_static=yes
|
|---|
| 825 | fi
|
|---|
| 826 |
|
|---|
| 827 | # Check whether --enable-fast-install or --disable-fast-install was given.
|
|---|
| 828 | if test "${enable_fast_install+set}" = set; then
|
|---|
| 829 | enableval="$enable_fast_install"
|
|---|
| 830 | p=${PACKAGE-default}
|
|---|
| 831 | case $enableval in
|
|---|
| 832 | yes) enable_fast_install=yes ;;
|
|---|
| 833 | no) enable_fast_install=no ;;
|
|---|
| 834 | *)
|
|---|
| 835 | enable_fast_install=no
|
|---|
| 836 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 837 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 838 | for pkg in $enableval; do
|
|---|
| 839 | if test "X$pkg" = "X$p"; then
|
|---|
| 840 | enable_fast_install=yes
|
|---|
| 841 | fi
|
|---|
| 842 | done
|
|---|
| 843 | IFS="$ac_save_ifs"
|
|---|
| 844 | ;;
|
|---|
| 845 | esac
|
|---|
| 846 | else
|
|---|
| 847 | enable_fast_install=yes
|
|---|
| 848 | fi
|
|---|
| 849 |
|
|---|
| 850 | echo $ac_n "checking build system type""... $ac_c" 1>&6
|
|---|
| 851 | echo "configure:852: checking build system type" >&5
|
|---|
| 852 |
|
|---|
| 853 | build_alias=$build
|
|---|
| 854 | case "$build_alias" in
|
|---|
| 855 | NONE)
|
|---|
| 856 | case $nonopt in
|
|---|
| 857 | NONE) build_alias=$host_alias ;;
|
|---|
| 858 | *) build_alias=$nonopt ;;
|
|---|
| 859 | esac ;;
|
|---|
| 860 | esac
|
|---|
| 861 |
|
|---|
| 862 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
|
|---|
| 863 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 864 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 865 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 866 | echo "$ac_t""$build" 1>&6
|
|---|
| 867 |
|
|---|
| 868 | # Extract the first word of "gcc", so it can be a program name with args.
|
|---|
| 869 | set dummy gcc; ac_word=$2
|
|---|
| 870 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 871 | echo "configure:872: checking for $ac_word" >&5
|
|---|
| 872 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 873 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 874 | else
|
|---|
| 875 | if test -n "$CC"; then
|
|---|
| 876 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 877 | else
|
|---|
| 878 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 879 | ac_dummy="$PATH"
|
|---|
| 880 | for ac_dir in $ac_dummy; do
|
|---|
| 881 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 882 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 883 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 884 | ac_cv_prog_CC="gcc"
|
|---|
| 885 | break
|
|---|
| 886 | fi
|
|---|
| 887 | done
|
|---|
| 888 | IFS="$ac_save_ifs"
|
|---|
| 889 | fi
|
|---|
| 890 | fi
|
|---|
| 891 | CC="$ac_cv_prog_CC"
|
|---|
| 892 | if test -n "$CC"; then
|
|---|
| 893 | echo "$ac_t""$CC" 1>&6
|
|---|
| 894 | else
|
|---|
| 895 | echo "$ac_t""no" 1>&6
|
|---|
| 896 | fi
|
|---|
| 897 |
|
|---|
| 898 | if test -z "$CC"; then
|
|---|
| 899 | # Extract the first word of "cc", so it can be a program name with args.
|
|---|
| 900 | set dummy cc; ac_word=$2
|
|---|
| 901 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 902 | echo "configure:903: checking for $ac_word" >&5
|
|---|
| 903 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 904 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 905 | else
|
|---|
| 906 | if test -n "$CC"; then
|
|---|
| 907 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 908 | else
|
|---|
| 909 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 910 | ac_prog_rejected=no
|
|---|
| 911 | ac_dummy="$PATH"
|
|---|
| 912 | for ac_dir in $ac_dummy; do
|
|---|
| 913 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 914 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 915 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 916 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
|
|---|
| 917 | "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
|
|---|
| 918 | ac_prog_rejected=yes
|
|---|
| 919 | continue
|
|---|
| 920 | fi
|
|---|
| 921 | ac_cv_prog_CC="cc"
|
|---|
| 922 | break
|
|---|
| 923 | fi
|
|---|
| 924 | done
|
|---|
| 925 | IFS="$ac_save_ifs"
|
|---|
| 926 | if test $ac_prog_rejected = yes; then
|
|---|
| 927 | # We found a bogon in the path, so make sure we never use it.
|
|---|
| 928 | set dummy $ac_cv_prog_CC
|
|---|
| 929 | shift
|
|---|
| 930 | if test $# -gt 0; then
|
|---|
| 931 | # We chose a different compiler from the bogus one.
|
|---|
| 932 | # However, it has the same basename, so the bogon will be chosen
|
|---|
| 933 | # first if we set CC to just the basename; use the full file name.
|
|---|
| 934 | shift
|
|---|
| 935 | set dummy "$ac_dir/$ac_word" "$@"
|
|---|
| 936 | shift
|
|---|
| 937 | ac_cv_prog_CC="$@"
|
|---|
| 938 | fi
|
|---|
| 939 | fi
|
|---|
| 940 | fi
|
|---|
| 941 | fi
|
|---|
| 942 | CC="$ac_cv_prog_CC"
|
|---|
| 943 | if test -n "$CC"; then
|
|---|
| 944 | echo "$ac_t""$CC" 1>&6
|
|---|
| 945 | else
|
|---|
| 946 | echo "$ac_t""no" 1>&6
|
|---|
| 947 | fi
|
|---|
| 948 |
|
|---|
| 949 | if test -z "$CC"; then
|
|---|
| 950 | case "`uname -s`" in
|
|---|
| 951 | *win32* | *WIN32*)
|
|---|
| 952 | # Extract the first word of "cl", so it can be a program name with args.
|
|---|
| 953 | set dummy cl; ac_word=$2
|
|---|
| 954 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 955 | echo "configure:956: checking for $ac_word" >&5
|
|---|
| 956 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 957 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 958 | else
|
|---|
| 959 | if test -n "$CC"; then
|
|---|
| 960 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 961 | else
|
|---|
| 962 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 963 | ac_dummy="$PATH"
|
|---|
| 964 | for ac_dir in $ac_dummy; do
|
|---|
| 965 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 966 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 967 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 968 | ac_cv_prog_CC="cl"
|
|---|
| 969 | break
|
|---|
| 970 | fi
|
|---|
| 971 | done
|
|---|
| 972 | IFS="$ac_save_ifs"
|
|---|
| 973 | fi
|
|---|
| 974 | fi
|
|---|
| 975 | CC="$ac_cv_prog_CC"
|
|---|
| 976 | if test -n "$CC"; then
|
|---|
| 977 | echo "$ac_t""$CC" 1>&6
|
|---|
| 978 | else
|
|---|
| 979 | echo "$ac_t""no" 1>&6
|
|---|
| 980 | fi
|
|---|
| 981 | ;;
|
|---|
| 982 | esac
|
|---|
| 983 | fi
|
|---|
| 984 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|---|
| 985 | fi
|
|---|
| 986 |
|
|---|
| 987 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|---|
| 988 | echo "configure:989: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
|---|
| 989 |
|
|---|
| 990 | ac_ext=c
|
|---|
| 991 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 992 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 993 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 994 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 995 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 996 |
|
|---|
| 997 | cat > conftest.$ac_ext << EOF
|
|---|
| 998 |
|
|---|
| 999 | #line 1000 "configure"
|
|---|
| 1000 | #include "confdefs.h"
|
|---|
| 1001 |
|
|---|
| 1002 | main(){return(0);}
|
|---|
| 1003 | EOF
|
|---|
| 1004 | if { (eval echo configure:1005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 1005 | ac_cv_prog_cc_works=yes
|
|---|
| 1006 | # If we can't run a trivial program, we are probably using a cross compiler.
|
|---|
| 1007 | if (./conftest; exit) 2>/dev/null; then
|
|---|
| 1008 | ac_cv_prog_cc_cross=no
|
|---|
| 1009 | else
|
|---|
| 1010 | ac_cv_prog_cc_cross=yes
|
|---|
| 1011 | fi
|
|---|
| 1012 | else
|
|---|
| 1013 | echo "configure: failed program was:" >&5
|
|---|
| 1014 | cat conftest.$ac_ext >&5
|
|---|
| 1015 | ac_cv_prog_cc_works=no
|
|---|
| 1016 | fi
|
|---|
| 1017 | rm -fr conftest*
|
|---|
| 1018 | ac_ext=c
|
|---|
| 1019 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 1020 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 1021 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 1022 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 1023 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 1024 |
|
|---|
| 1025 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|---|
| 1026 | if test $ac_cv_prog_cc_works = no; then
|
|---|
| 1027 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 1028 | fi
|
|---|
| 1029 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|---|
| 1030 | echo "configure:1031: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|---|
| 1031 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|---|
| 1032 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 1033 |
|
|---|
| 1034 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
|---|
| 1035 | echo "configure:1036: checking whether we are using GNU C" >&5
|
|---|
| 1036 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
|---|
| 1037 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1038 | else
|
|---|
| 1039 | cat > conftest.c <<EOF
|
|---|
| 1040 | #ifdef __GNUC__
|
|---|
| 1041 | yes;
|
|---|
| 1042 | #endif
|
|---|
| 1043 | EOF
|
|---|
| 1044 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|---|
| 1045 | ac_cv_prog_gcc=yes
|
|---|
| 1046 | else
|
|---|
| 1047 | ac_cv_prog_gcc=no
|
|---|
| 1048 | fi
|
|---|
| 1049 | fi
|
|---|
| 1050 |
|
|---|
| 1051 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|---|
| 1052 |
|
|---|
| 1053 | if test $ac_cv_prog_gcc = yes; then
|
|---|
| 1054 | GCC=yes
|
|---|
| 1055 | else
|
|---|
| 1056 | GCC=
|
|---|
| 1057 | fi
|
|---|
| 1058 |
|
|---|
| 1059 | ac_test_CFLAGS="${CFLAGS+set}"
|
|---|
| 1060 | ac_save_CFLAGS="$CFLAGS"
|
|---|
| 1061 | CFLAGS=
|
|---|
| 1062 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|---|
| 1063 | echo "configure:1064: checking whether ${CC-cc} accepts -g" >&5
|
|---|
| 1064 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
|---|
| 1065 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1066 | else
|
|---|
| 1067 | echo 'void f(){}' > conftest.c
|
|---|
| 1068 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|---|
| 1069 | ac_cv_prog_cc_g=yes
|
|---|
| 1070 | else
|
|---|
| 1071 | ac_cv_prog_cc_g=no
|
|---|
| 1072 | fi
|
|---|
| 1073 | rm -f conftest*
|
|---|
| 1074 |
|
|---|
| 1075 | fi
|
|---|
| 1076 |
|
|---|
| 1077 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|---|
| 1078 | if test "$ac_test_CFLAGS" = set; then
|
|---|
| 1079 | CFLAGS="$ac_save_CFLAGS"
|
|---|
| 1080 | elif test $ac_cv_prog_cc_g = yes; then
|
|---|
| 1081 | if test "$GCC" = yes; then
|
|---|
| 1082 | CFLAGS="-g -O2"
|
|---|
| 1083 | else
|
|---|
| 1084 | CFLAGS="-g"
|
|---|
| 1085 | fi
|
|---|
| 1086 | else
|
|---|
| 1087 | if test "$GCC" = yes; then
|
|---|
| 1088 | CFLAGS="-O2"
|
|---|
| 1089 | else
|
|---|
| 1090 | CFLAGS=
|
|---|
| 1091 | fi
|
|---|
| 1092 | fi
|
|---|
| 1093 |
|
|---|
| 1094 | # Check whether --with-gnu-ld or --without-gnu-ld was given.
|
|---|
| 1095 | if test "${with_gnu_ld+set}" = set; then
|
|---|
| 1096 | withval="$with_gnu_ld"
|
|---|
| 1097 | test "$withval" = no || with_gnu_ld=yes
|
|---|
| 1098 | else
|
|---|
| 1099 | with_gnu_ld=no
|
|---|
| 1100 | fi
|
|---|
| 1101 |
|
|---|
| 1102 | ac_prog=ld
|
|---|
| 1103 | if test "$GCC" = yes; then
|
|---|
| 1104 | # Check if gcc -print-prog-name=ld gives a path.
|
|---|
| 1105 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
|
|---|
| 1106 | echo "configure:1107: checking for ld used by GCC" >&5
|
|---|
| 1107 | case $host in
|
|---|
| 1108 | *-*-mingw*)
|
|---|
| 1109 | # gcc leaves a trailing carriage return which upsets mingw
|
|---|
| 1110 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
|---|
| 1111 | *)
|
|---|
| 1112 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
|---|
| 1113 | esac
|
|---|
| 1114 | case $ac_prog in
|
|---|
| 1115 | # Accept absolute paths.
|
|---|
| 1116 | [\\/]* | [A-Za-z]:[\\/]*)
|
|---|
| 1117 | re_direlt='/[^/][^/]*/\.\./'
|
|---|
| 1118 | # Canonicalize the path of ld
|
|---|
| 1119 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
|
|---|
| 1120 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
|---|
| 1121 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
|---|
| 1122 | done
|
|---|
| 1123 | test -z "$LD" && LD="$ac_prog"
|
|---|
| 1124 | ;;
|
|---|
| 1125 | "")
|
|---|
| 1126 | # If it fails, then pretend we aren't using GCC.
|
|---|
| 1127 | ac_prog=ld
|
|---|
| 1128 | ;;
|
|---|
| 1129 | *)
|
|---|
| 1130 | # If it is relative, then search for the first ld in PATH.
|
|---|
| 1131 | with_gnu_ld=unknown
|
|---|
| 1132 | ;;
|
|---|
| 1133 | esac
|
|---|
| 1134 | elif test "$with_gnu_ld" = yes; then
|
|---|
| 1135 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
|
|---|
| 1136 | echo "configure:1137: checking for GNU ld" >&5
|
|---|
| 1137 | else
|
|---|
| 1138 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
|
|---|
| 1139 | echo "configure:1140: checking for non-GNU ld" >&5
|
|---|
| 1140 | fi
|
|---|
| 1141 | if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
|
|---|
| 1142 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1143 | else
|
|---|
| 1144 | if test -z "$LD"; then
|
|---|
| 1145 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
|---|
| 1146 | for ac_dir in $PATH; do
|
|---|
| 1147 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1148 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
|---|
| 1149 | lt_cv_path_LD="$ac_dir/$ac_prog"
|
|---|
| 1150 | # Check to see if the program is GNU ld. I'd rather use --version,
|
|---|
| 1151 | # but apparently some GNU ld's only accept -v.
|
|---|
| 1152 | # Break only if it was the GNU/non-GNU ld that we prefer.
|
|---|
| 1153 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
|---|
| 1154 | test "$with_gnu_ld" != no && break
|
|---|
| 1155 | else
|
|---|
| 1156 | test "$with_gnu_ld" != yes && break
|
|---|
| 1157 | fi
|
|---|
| 1158 | fi
|
|---|
| 1159 | done
|
|---|
| 1160 | IFS="$ac_save_ifs"
|
|---|
| 1161 | else
|
|---|
| 1162 | lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
|---|
| 1163 | fi
|
|---|
| 1164 | fi
|
|---|
| 1165 |
|
|---|
| 1166 | LD="$lt_cv_path_LD"
|
|---|
| 1167 | if test -n "$LD"; then
|
|---|
| 1168 | echo "$ac_t""$LD" 1>&6
|
|---|
| 1169 | else
|
|---|
| 1170 | echo "$ac_t""no" 1>&6
|
|---|
| 1171 | fi
|
|---|
| 1172 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
|
|---|
| 1173 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
|
|---|
| 1174 | echo "configure:1175: checking if the linker ($LD) is GNU ld" >&5
|
|---|
| 1175 | if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
|
|---|
| 1176 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1177 | else
|
|---|
| 1178 | # I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
|---|
| 1179 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
|---|
| 1180 | lt_cv_prog_gnu_ld=yes
|
|---|
| 1181 | else
|
|---|
| 1182 | lt_cv_prog_gnu_ld=no
|
|---|
| 1183 | fi
|
|---|
| 1184 | fi
|
|---|
| 1185 |
|
|---|
| 1186 | echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
|
|---|
| 1187 | with_gnu_ld=$lt_cv_prog_gnu_ld
|
|---|
| 1188 |
|
|---|
| 1189 |
|
|---|
| 1190 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
|
|---|
| 1191 | echo "configure:1192: checking for $LD option to reload object files" >&5
|
|---|
| 1192 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
|
|---|
| 1193 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1194 | else
|
|---|
| 1195 | lt_cv_ld_reload_flag='-r'
|
|---|
| 1196 | fi
|
|---|
| 1197 |
|
|---|
| 1198 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
|
|---|
| 1199 | reload_flag=$lt_cv_ld_reload_flag
|
|---|
| 1200 | test -n "$reload_flag" && reload_flag=" $reload_flag"
|
|---|
| 1201 |
|
|---|
| 1202 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
|
|---|
| 1203 | echo "configure:1204: checking for BSD-compatible nm" >&5
|
|---|
| 1204 | if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
|
|---|
| 1205 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1206 | else
|
|---|
| 1207 | if test -n "$NM"; then
|
|---|
| 1208 | # Let the user override the test.
|
|---|
| 1209 | lt_cv_path_NM="$NM"
|
|---|
| 1210 | else
|
|---|
| 1211 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
|---|
| 1212 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
|
|---|
| 1213 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1214 | tmp_nm=$ac_dir/${ac_tool_prefix}nm
|
|---|
| 1215 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
|
|---|
| 1216 | # Check to see if the nm accepts a BSD-compat flag.
|
|---|
| 1217 | # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
|---|
| 1218 | # nm: unknown option "B" ignored
|
|---|
| 1219 | # Tru64's nm complains that /dev/null is an invalid object file
|
|---|
| 1220 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
|
|---|
| 1221 | lt_cv_path_NM="$tmp_nm -B"
|
|---|
| 1222 | break
|
|---|
| 1223 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
|
|---|
| 1224 | lt_cv_path_NM="$tmp_nm -p"
|
|---|
| 1225 | break
|
|---|
| 1226 | else
|
|---|
| 1227 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
|---|
| 1228 | continue # so that we can try to find one that supports BSD flags
|
|---|
| 1229 | fi
|
|---|
| 1230 | fi
|
|---|
| 1231 | done
|
|---|
| 1232 | IFS="$ac_save_ifs"
|
|---|
| 1233 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
|
|---|
| 1234 | fi
|
|---|
| 1235 | fi
|
|---|
| 1236 |
|
|---|
| 1237 | NM="$lt_cv_path_NM"
|
|---|
| 1238 | echo "$ac_t""$NM" 1>&6
|
|---|
| 1239 |
|
|---|
| 1240 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
|---|
| 1241 | echo "configure:1242: checking whether ln -s works" >&5
|
|---|
| 1242 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
|
|---|
| 1243 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1244 | else
|
|---|
| 1245 | rm -f conftestdata
|
|---|
| 1246 | if ln -s X conftestdata 2>/dev/null
|
|---|
| 1247 | then
|
|---|
| 1248 | rm -f conftestdata
|
|---|
| 1249 | ac_cv_prog_LN_S="ln -s"
|
|---|
| 1250 | else
|
|---|
| 1251 | echo A > conftestdata;
|
|---|
| 1252 | if ln conftestdata conftestdata2 2>/dev/null; then
|
|---|
| 1253 | ac_cv_prog_LN_S=ln
|
|---|
| 1254 | else
|
|---|
| 1255 | ac_cv_prog_LN_S=cp
|
|---|
| 1256 | fi
|
|---|
| 1257 | fi
|
|---|
| 1258 | rm -f conftestdata*
|
|---|
| 1259 | fi
|
|---|
| 1260 | LN_S="$ac_cv_prog_LN_S"
|
|---|
| 1261 | if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
|---|
| 1262 | echo "$ac_t""yes" 1>&6
|
|---|
| 1263 | else
|
|---|
| 1264 | echo "$ac_t""no" 1>&6
|
|---|
| 1265 | fi
|
|---|
| 1266 |
|
|---|
| 1267 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
|
|---|
| 1268 | echo "configure:1269: checking how to recognise dependant libraries" >&5
|
|---|
| 1269 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
|
|---|
| 1270 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1271 | else
|
|---|
| 1272 | lt_cv_file_magic_cmd='$MAGIC_CMD'
|
|---|
| 1273 | lt_cv_file_magic_test_file=
|
|---|
| 1274 | lt_cv_deplibs_check_method='unknown'
|
|---|
| 1275 | # Need to set the preceding variable on all platforms that support
|
|---|
| 1276 | # interlibrary dependencies.
|
|---|
| 1277 | # 'none' -- dependencies not supported.
|
|---|
| 1278 | # `unknown' -- same as none, but documents that we really don't know.
|
|---|
| 1279 | # 'pass_all' -- all dependencies passed with no checks.
|
|---|
| 1280 | # 'test_compile' -- check by making test program.
|
|---|
| 1281 | # 'file_magic [regex]' -- check by looking for files in library path
|
|---|
| 1282 | # which responds to the $file_magic_cmd with a given egrep regex.
|
|---|
| 1283 | # If you have `file' or equivalent on your system and you're not sure
|
|---|
| 1284 | # whether `pass_all' will *always* work, you probably want this one.
|
|---|
| 1285 |
|
|---|
| 1286 | case $host_os in
|
|---|
| 1287 | aix*)
|
|---|
| 1288 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1289 | ;;
|
|---|
| 1290 |
|
|---|
| 1291 | beos*)
|
|---|
| 1292 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1293 | ;;
|
|---|
| 1294 |
|
|---|
| 1295 | bsdi4*)
|
|---|
| 1296 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
|---|
| 1297 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
|---|
| 1298 | lt_cv_file_magic_test_file=/shlib/libc.so
|
|---|
| 1299 | ;;
|
|---|
| 1300 |
|
|---|
| 1301 | cygwin* | mingw* |pw32*)
|
|---|
| 1302 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
|---|
| 1303 | lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|---|
| 1304 | ;;
|
|---|
| 1305 |
|
|---|
| 1306 | darwin* | rhapsody*)
|
|---|
| 1307 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
|
|---|
| 1308 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
|---|
| 1309 | case "$host_os" in
|
|---|
| 1310 | rhapsody* | darwin1.012)
|
|---|
| 1311 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
|
|---|
| 1312 | ;;
|
|---|
| 1313 | *) # Darwin 1.3 on
|
|---|
| 1314 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
|
|---|
| 1315 | ;;
|
|---|
| 1316 | esac
|
|---|
| 1317 | ;;
|
|---|
| 1318 |
|
|---|
| 1319 | freebsd* )
|
|---|
| 1320 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
|---|
| 1321 | case $host_cpu in
|
|---|
| 1322 | i*86 )
|
|---|
| 1323 | # Not sure whether the presence of OpenBSD here was a mistake.
|
|---|
| 1324 | # Let's accept both of them until this is cleared up.
|
|---|
| 1325 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
|
|---|
| 1326 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1327 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
|---|
| 1328 | ;;
|
|---|
| 1329 | esac
|
|---|
| 1330 | else
|
|---|
| 1331 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1332 | fi
|
|---|
| 1333 | ;;
|
|---|
| 1334 |
|
|---|
| 1335 | gnu*)
|
|---|
| 1336 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1337 | ;;
|
|---|
| 1338 |
|
|---|
| 1339 | hpux10.20*|hpux11*)
|
|---|
| 1340 | case $host_cpu in
|
|---|
| 1341 | hppa*)
|
|---|
| 1342 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
|
|---|
| 1343 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1344 | lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
|---|
| 1345 | ;;
|
|---|
| 1346 | ia64*)
|
|---|
| 1347 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
|
|---|
| 1348 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1349 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
|---|
| 1350 | ;;
|
|---|
| 1351 | esac
|
|---|
| 1352 | ;;
|
|---|
| 1353 |
|
|---|
| 1354 | irix5* | irix6*)
|
|---|
| 1355 | case $host_os in
|
|---|
| 1356 | irix5*)
|
|---|
| 1357 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 1358 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
|
|---|
| 1359 | ;;
|
|---|
| 1360 | *)
|
|---|
| 1361 | case $LD in
|
|---|
| 1362 | *-32|*"-32 ") libmagic=32-bit;;
|
|---|
| 1363 | *-n32|*"-n32 ") libmagic=N32;;
|
|---|
| 1364 | *-64|*"-64 ") libmagic=64-bit;;
|
|---|
| 1365 | *) libmagic=never-match;;
|
|---|
| 1366 | esac
|
|---|
| 1367 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 1368 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
|
|---|
| 1369 | ;;
|
|---|
| 1370 | esac
|
|---|
| 1371 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
|
|---|
| 1372 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1373 | ;;
|
|---|
| 1374 |
|
|---|
| 1375 | # This must be Linux ELF.
|
|---|
| 1376 | linux-gnu*)
|
|---|
| 1377 | case $host_cpu in
|
|---|
| 1378 | alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
|
|---|
| 1379 | lt_cv_deplibs_check_method=pass_all ;;
|
|---|
| 1380 | *)
|
|---|
| 1381 | # glibc up to 2.1.1 does not perform some relocations on ARM
|
|---|
| 1382 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
|
|---|
| 1383 | esac
|
|---|
| 1384 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
|---|
| 1385 | ;;
|
|---|
| 1386 |
|
|---|
| 1387 | netbsd*)
|
|---|
| 1388 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
|---|
| 1389 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
|---|
| 1390 | else
|
|---|
| 1391 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
|
|---|
| 1392 | fi
|
|---|
| 1393 | ;;
|
|---|
| 1394 |
|
|---|
| 1395 | newsos6)
|
|---|
| 1396 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
|---|
| 1397 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1398 | lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
|---|
| 1399 | ;;
|
|---|
| 1400 |
|
|---|
| 1401 | os2*)
|
|---|
| 1402 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1403 | ;;
|
|---|
| 1404 |
|
|---|
| 1405 | osf3* | osf4* | osf5*)
|
|---|
| 1406 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 1407 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
|
|---|
| 1408 | lt_cv_file_magic_test_file=/shlib/libc.so
|
|---|
| 1409 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1410 | ;;
|
|---|
| 1411 |
|
|---|
| 1412 | sco3.2v5*)
|
|---|
| 1413 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1414 | ;;
|
|---|
| 1415 |
|
|---|
| 1416 | solaris*)
|
|---|
| 1417 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1418 | lt_cv_file_magic_test_file=/lib/libc.so
|
|---|
| 1419 | ;;
|
|---|
| 1420 |
|
|---|
| 1421 | sysv5uw[78]* | sysv4*uw2*)
|
|---|
| 1422 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1423 | ;;
|
|---|
| 1424 |
|
|---|
| 1425 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
|---|
| 1426 | case $host_vendor in
|
|---|
| 1427 | ncr)
|
|---|
| 1428 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1429 | ;;
|
|---|
| 1430 | motorola)
|
|---|
| 1431 | 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]'
|
|---|
| 1432 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
|---|
| 1433 | ;;
|
|---|
| 1434 | esac
|
|---|
| 1435 | ;;
|
|---|
| 1436 | esac
|
|---|
| 1437 |
|
|---|
| 1438 | fi
|
|---|
| 1439 |
|
|---|
| 1440 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
|
|---|
| 1441 | file_magic_cmd=$lt_cv_file_magic_cmd
|
|---|
| 1442 | deplibs_check_method=$lt_cv_deplibs_check_method
|
|---|
| 1443 |
|
|---|
| 1444 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6
|
|---|
| 1445 | echo "configure:1446: checking for object suffix" >&5
|
|---|
| 1446 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
|
|---|
| 1447 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1448 | else
|
|---|
| 1449 | rm -f conftest*
|
|---|
| 1450 | echo 'int i = 1;' > conftest.$ac_ext
|
|---|
| 1451 | if { (eval echo configure:1452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 1452 | for ac_file in conftest.*; do
|
|---|
| 1453 | case $ac_file in
|
|---|
| 1454 | *.c) ;;
|
|---|
| 1455 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
|
|---|
| 1456 | esac
|
|---|
| 1457 | done
|
|---|
| 1458 | else
|
|---|
| 1459 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
|
|---|
| 1460 | fi
|
|---|
| 1461 | rm -f conftest*
|
|---|
| 1462 | fi
|
|---|
| 1463 |
|
|---|
| 1464 | echo "$ac_t""$ac_cv_objext" 1>&6
|
|---|
| 1465 | OBJEXT=$ac_cv_objext
|
|---|
| 1466 | ac_objext=$ac_cv_objext
|
|---|
| 1467 |
|
|---|
| 1468 | if test $host != $build; then
|
|---|
| 1469 | ac_tool_prefix=${host_alias}-
|
|---|
| 1470 | else
|
|---|
| 1471 | ac_tool_prefix=
|
|---|
| 1472 | fi
|
|---|
| 1473 |
|
|---|
| 1474 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
|
|---|
| 1475 |
|
|---|
| 1476 | # Only perform the check for file, if the check method requires it
|
|---|
| 1477 | case $deplibs_check_method in
|
|---|
| 1478 | file_magic*)
|
|---|
| 1479 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
|---|
| 1480 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
|
|---|
| 1481 | echo "configure:1482: checking for ${ac_tool_prefix}file" >&5
|
|---|
| 1482 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
|---|
| 1483 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1484 | else
|
|---|
| 1485 | case $MAGIC_CMD in
|
|---|
| 1486 | /*)
|
|---|
| 1487 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
|---|
| 1488 | ;;
|
|---|
| 1489 | ?:/*)
|
|---|
| 1490 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
|---|
| 1491 | ;;
|
|---|
| 1492 | *)
|
|---|
| 1493 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
|---|
| 1494 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 1495 | ac_dummy="/usr/bin:$PATH"
|
|---|
| 1496 | for ac_dir in $ac_dummy; do
|
|---|
| 1497 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1498 | if test -f $ac_dir/${ac_tool_prefix}file; then
|
|---|
| 1499 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
|
|---|
| 1500 | if test -n "$file_magic_test_file"; then
|
|---|
| 1501 | case $deplibs_check_method in
|
|---|
| 1502 | "file_magic "*)
|
|---|
| 1503 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
|---|
| 1504 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1505 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
|---|
| 1506 | egrep "$file_magic_regex" > /dev/null; then
|
|---|
| 1507 | :
|
|---|
| 1508 | else
|
|---|
| 1509 | cat <<EOF 1>&2
|
|---|
| 1510 |
|
|---|
| 1511 | *** Warning: the command libtool uses to detect shared libraries,
|
|---|
| 1512 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
|---|
| 1513 | *** The result is that libtool may fail to recognize shared libraries
|
|---|
| 1514 | *** as such. This will affect the creation of libtool libraries that
|
|---|
| 1515 | *** depend on shared libraries, but programs linked with such libtool
|
|---|
| 1516 | *** libraries will work regardless of this problem. Nevertheless, you
|
|---|
| 1517 | *** may want to report the problem to your system manager and/or to
|
|---|
| 1518 | *** [email protected]
|
|---|
| 1519 |
|
|---|
| 1520 | EOF
|
|---|
| 1521 | fi ;;
|
|---|
| 1522 | esac
|
|---|
| 1523 | fi
|
|---|
| 1524 | break
|
|---|
| 1525 | fi
|
|---|
| 1526 | done
|
|---|
| 1527 | IFS="$ac_save_ifs"
|
|---|
| 1528 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
|---|
| 1529 | ;;
|
|---|
| 1530 | esac
|
|---|
| 1531 | fi
|
|---|
| 1532 |
|
|---|
| 1533 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1534 | if test -n "$MAGIC_CMD"; then
|
|---|
| 1535 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
|---|
| 1536 | else
|
|---|
| 1537 | echo "$ac_t""no" 1>&6
|
|---|
| 1538 | fi
|
|---|
| 1539 |
|
|---|
| 1540 | if test -z "$lt_cv_path_MAGIC_CMD"; then
|
|---|
| 1541 | if test -n "$ac_tool_prefix"; then
|
|---|
| 1542 | echo $ac_n "checking for file""... $ac_c" 1>&6
|
|---|
| 1543 | echo "configure:1544: checking for file" >&5
|
|---|
| 1544 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
|---|
| 1545 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1546 | else
|
|---|
| 1547 | case $MAGIC_CMD in
|
|---|
| 1548 | /*)
|
|---|
| 1549 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
|---|
| 1550 | ;;
|
|---|
| 1551 | ?:/*)
|
|---|
| 1552 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
|---|
| 1553 | ;;
|
|---|
| 1554 | *)
|
|---|
| 1555 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
|---|
| 1556 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 1557 | ac_dummy="/usr/bin:$PATH"
|
|---|
| 1558 | for ac_dir in $ac_dummy; do
|
|---|
| 1559 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1560 | if test -f $ac_dir/file; then
|
|---|
| 1561 | lt_cv_path_MAGIC_CMD="$ac_dir/file"
|
|---|
| 1562 | if test -n "$file_magic_test_file"; then
|
|---|
| 1563 | case $deplibs_check_method in
|
|---|
| 1564 | "file_magic "*)
|
|---|
| 1565 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
|---|
| 1566 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1567 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
|---|
| 1568 | egrep "$file_magic_regex" > /dev/null; then
|
|---|
| 1569 | :
|
|---|
| 1570 | else
|
|---|
| 1571 | cat <<EOF 1>&2
|
|---|
| 1572 |
|
|---|
| 1573 | *** Warning: the command libtool uses to detect shared libraries,
|
|---|
| 1574 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
|---|
| 1575 | *** The result is that libtool may fail to recognize shared libraries
|
|---|
| 1576 | *** as such. This will affect the creation of libtool libraries that
|
|---|
| 1577 | *** depend on shared libraries, but programs linked with such libtool
|
|---|
| 1578 | *** libraries will work regardless of this problem. Nevertheless, you
|
|---|
| 1579 | *** may want to report the problem to your system manager and/or to
|
|---|
| 1580 | *** [email protected]
|
|---|
| 1581 |
|
|---|
| 1582 | EOF
|
|---|
| 1583 | fi ;;
|
|---|
| 1584 | esac
|
|---|
| 1585 | fi
|
|---|
| 1586 | break
|
|---|
| 1587 | fi
|
|---|
| 1588 | done
|
|---|
| 1589 | IFS="$ac_save_ifs"
|
|---|
| 1590 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
|---|
| 1591 | ;;
|
|---|
| 1592 | esac
|
|---|
| 1593 | fi
|
|---|
| 1594 |
|
|---|
| 1595 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1596 | if test -n "$MAGIC_CMD"; then
|
|---|
| 1597 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
|---|
| 1598 | else
|
|---|
| 1599 | echo "$ac_t""no" 1>&6
|
|---|
| 1600 | fi
|
|---|
| 1601 |
|
|---|
| 1602 | else
|
|---|
| 1603 | MAGIC_CMD=:
|
|---|
| 1604 | fi
|
|---|
| 1605 | fi
|
|---|
| 1606 |
|
|---|
| 1607 | fi
|
|---|
| 1608 | ;;
|
|---|
| 1609 | esac
|
|---|
| 1610 |
|
|---|
| 1611 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
|---|
| 1612 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
|---|
| 1613 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1614 | echo "configure:1615: checking for $ac_word" >&5
|
|---|
| 1615 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 1616 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1617 | else
|
|---|
| 1618 | if test -n "$RANLIB"; then
|
|---|
| 1619 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 1620 | else
|
|---|
| 1621 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1622 | ac_dummy="$PATH"
|
|---|
| 1623 | for ac_dir in $ac_dummy; do
|
|---|
| 1624 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1625 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1626 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1627 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
|---|
| 1628 | break
|
|---|
| 1629 | fi
|
|---|
| 1630 | done
|
|---|
| 1631 | IFS="$ac_save_ifs"
|
|---|
| 1632 | fi
|
|---|
| 1633 | fi
|
|---|
| 1634 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 1635 | if test -n "$RANLIB"; then
|
|---|
| 1636 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 1637 | else
|
|---|
| 1638 | echo "$ac_t""no" 1>&6
|
|---|
| 1639 | fi
|
|---|
| 1640 |
|
|---|
| 1641 |
|
|---|
| 1642 | if test -z "$ac_cv_prog_RANLIB"; then
|
|---|
| 1643 | if test -n "$ac_tool_prefix"; then
|
|---|
| 1644 | # Extract the first word of "ranlib", so it can be a program name with args.
|
|---|
| 1645 | set dummy ranlib; ac_word=$2
|
|---|
| 1646 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1647 | echo "configure:1648: checking for $ac_word" >&5
|
|---|
| 1648 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 1649 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1650 | else
|
|---|
| 1651 | if test -n "$RANLIB"; then
|
|---|
| 1652 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 1653 | else
|
|---|
| 1654 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1655 | ac_dummy="$PATH"
|
|---|
| 1656 | for ac_dir in $ac_dummy; do
|
|---|
| 1657 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1658 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1659 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1660 | ac_cv_prog_RANLIB="ranlib"
|
|---|
| 1661 | break
|
|---|
| 1662 | fi
|
|---|
| 1663 | done
|
|---|
| 1664 | IFS="$ac_save_ifs"
|
|---|
| 1665 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|---|
| 1666 | fi
|
|---|
| 1667 | fi
|
|---|
| 1668 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 1669 | if test -n "$RANLIB"; then
|
|---|
| 1670 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 1671 | else
|
|---|
| 1672 | echo "$ac_t""no" 1>&6
|
|---|
| 1673 | fi
|
|---|
| 1674 |
|
|---|
| 1675 | else
|
|---|
| 1676 | RANLIB=":"
|
|---|
| 1677 | fi
|
|---|
| 1678 | fi
|
|---|
| 1679 |
|
|---|
| 1680 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
|---|
| 1681 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
|---|
| 1682 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1683 | echo "configure:1684: checking for $ac_word" >&5
|
|---|
| 1684 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
|---|
| 1685 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1686 | else
|
|---|
| 1687 | if test -n "$STRIP"; then
|
|---|
| 1688 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
|---|
| 1689 | else
|
|---|
| 1690 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1691 | ac_dummy="$PATH"
|
|---|
| 1692 | for ac_dir in $ac_dummy; do
|
|---|
| 1693 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1694 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1695 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1696 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
|---|
| 1697 | break
|
|---|
| 1698 | fi
|
|---|
| 1699 | done
|
|---|
| 1700 | IFS="$ac_save_ifs"
|
|---|
| 1701 | fi
|
|---|
| 1702 | fi
|
|---|
| 1703 | STRIP="$ac_cv_prog_STRIP"
|
|---|
| 1704 | if test -n "$STRIP"; then
|
|---|
| 1705 | echo "$ac_t""$STRIP" 1>&6
|
|---|
| 1706 | else
|
|---|
| 1707 | echo "$ac_t""no" 1>&6
|
|---|
| 1708 | fi
|
|---|
| 1709 |
|
|---|
| 1710 |
|
|---|
| 1711 | if test -z "$ac_cv_prog_STRIP"; then
|
|---|
| 1712 | if test -n "$ac_tool_prefix"; then
|
|---|
| 1713 | # Extract the first word of "strip", so it can be a program name with args.
|
|---|
| 1714 | set dummy strip; ac_word=$2
|
|---|
| 1715 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1716 | echo "configure:1717: checking for $ac_word" >&5
|
|---|
| 1717 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
|---|
| 1718 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1719 | else
|
|---|
| 1720 | if test -n "$STRIP"; then
|
|---|
| 1721 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
|---|
| 1722 | else
|
|---|
| 1723 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1724 | ac_dummy="$PATH"
|
|---|
| 1725 | for ac_dir in $ac_dummy; do
|
|---|
| 1726 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1727 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1728 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1729 | ac_cv_prog_STRIP="strip"
|
|---|
| 1730 | break
|
|---|
| 1731 | fi
|
|---|
| 1732 | done
|
|---|
| 1733 | IFS="$ac_save_ifs"
|
|---|
| 1734 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
|
|---|
| 1735 | fi
|
|---|
| 1736 | fi
|
|---|
| 1737 | STRIP="$ac_cv_prog_STRIP"
|
|---|
| 1738 | if test -n "$STRIP"; then
|
|---|
| 1739 | echo "$ac_t""$STRIP" 1>&6
|
|---|
| 1740 | else
|
|---|
| 1741 | echo "$ac_t""no" 1>&6
|
|---|
| 1742 | fi
|
|---|
| 1743 |
|
|---|
| 1744 | else
|
|---|
| 1745 | STRIP=":"
|
|---|
| 1746 | fi
|
|---|
| 1747 | fi
|
|---|
| 1748 |
|
|---|
| 1749 |
|
|---|
| 1750 | # Check for any special flags to pass to ltconfig.
|
|---|
| 1751 | libtool_flags="--cache-file=$cache_file"
|
|---|
| 1752 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
|
|---|
| 1753 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
|
|---|
| 1754 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
|
|---|
| 1755 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
|
|---|
| 1756 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
|
|---|
| 1757 |
|
|---|
| 1758 |
|
|---|
| 1759 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
|
|---|
| 1760 | if test "${enable_libtool_lock+set}" = set; then
|
|---|
| 1761 | enableval="$enable_libtool_lock"
|
|---|
| 1762 | :
|
|---|
| 1763 | fi
|
|---|
| 1764 |
|
|---|
| 1765 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
|
|---|
| 1766 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
|
|---|
| 1767 |
|
|---|
| 1768 | # Check whether --with-pic or --without-pic was given.
|
|---|
| 1769 | if test "${with_pic+set}" = set; then
|
|---|
| 1770 | withval="$with_pic"
|
|---|
| 1771 | pic_mode="$withval"
|
|---|
| 1772 | else
|
|---|
| 1773 | pic_mode=default
|
|---|
| 1774 | fi
|
|---|
| 1775 |
|
|---|
| 1776 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
|
|---|
| 1777 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
|
|---|
| 1778 |
|
|---|
| 1779 | # Some flags need to be propagated to the compiler or linker for good
|
|---|
| 1780 | # libtool support.
|
|---|
| 1781 | case $host in
|
|---|
| 1782 | *-*-irix6*)
|
|---|
| 1783 | # Find out which ABI we are using.
|
|---|
| 1784 | echo '#line 1785 "configure"' > conftest.$ac_ext
|
|---|
| 1785 | if { (eval echo configure:1786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 1786 | if test "$lt_cv_prog_gnu_ld" = yes; then
|
|---|
| 1787 | case `/usr/bin/file conftest.$ac_objext` in
|
|---|
| 1788 | *32-bit*)
|
|---|
| 1789 | LD="${LD-ld} -melf32bsmip"
|
|---|
| 1790 | ;;
|
|---|
| 1791 | *N32*)
|
|---|
| 1792 | LD="${LD-ld} -melf32bmipn32"
|
|---|
| 1793 | ;;
|
|---|
| 1794 | *64-bit*)
|
|---|
| 1795 | LD="${LD-ld} -melf64bmip"
|
|---|
| 1796 | ;;
|
|---|
| 1797 | esac
|
|---|
| 1798 | else
|
|---|
| 1799 | case `/usr/bin/file conftest.$ac_objext` in
|
|---|
| 1800 | *32-bit*)
|
|---|
| 1801 | LD="${LD-ld} -32"
|
|---|
| 1802 | ;;
|
|---|
| 1803 | *N32*)
|
|---|
| 1804 | LD="${LD-ld} -n32"
|
|---|
| 1805 | ;;
|
|---|
| 1806 | *64-bit*)
|
|---|
| 1807 | LD="${LD-ld} -64"
|
|---|
| 1808 | ;;
|
|---|
| 1809 | esac
|
|---|
| 1810 | fi
|
|---|
| 1811 | fi
|
|---|
| 1812 | rm -rf conftest*
|
|---|
| 1813 | ;;
|
|---|
| 1814 |
|
|---|
| 1815 | ia64-*-hpux*)
|
|---|
| 1816 | # Find out which ABI we are using.
|
|---|
| 1817 | echo 'int i;' > conftest.$ac_ext
|
|---|
| 1818 | if { (eval echo configure:1819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 1819 | case "`/usr/bin/file conftest.o`" in
|
|---|
| 1820 | *ELF-32*)
|
|---|
| 1821 | HPUX_IA64_MODE="32"
|
|---|
| 1822 | ;;
|
|---|
| 1823 | *ELF-64*)
|
|---|
| 1824 | HPUX_IA64_MODE="64"
|
|---|
| 1825 | ;;
|
|---|
| 1826 | esac
|
|---|
| 1827 | fi
|
|---|
| 1828 | rm -rf conftest*
|
|---|
| 1829 | ;;
|
|---|
| 1830 |
|
|---|
| 1831 | *-*-sco3.2v5*)
|
|---|
| 1832 | # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
|---|
| 1833 | SAVE_CFLAGS="$CFLAGS"
|
|---|
| 1834 | CFLAGS="$CFLAGS -belf"
|
|---|
| 1835 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
|
|---|
| 1836 | echo "configure:1837: checking whether the C compiler needs -belf" >&5
|
|---|
| 1837 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
|
|---|
| 1838 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1839 | else
|
|---|
| 1840 |
|
|---|
| 1841 | ac_ext=c
|
|---|
| 1842 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 1843 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 1844 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 1845 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 1846 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 1847 |
|
|---|
| 1848 | cat > conftest.$ac_ext <<EOF
|
|---|
| 1849 | #line 1850 "configure"
|
|---|
| 1850 | #include "confdefs.h"
|
|---|
| 1851 |
|
|---|
| 1852 | int main() {
|
|---|
| 1853 |
|
|---|
| 1854 | ; return 0; }
|
|---|
| 1855 | EOF
|
|---|
| 1856 | if { (eval echo configure:1857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 1857 | rm -rf conftest*
|
|---|
| 1858 | lt_cv_cc_needs_belf=yes
|
|---|
| 1859 | else
|
|---|
| 1860 | echo "configure: failed program was:" >&5
|
|---|
| 1861 | cat conftest.$ac_ext >&5
|
|---|
| 1862 | rm -rf conftest*
|
|---|
| 1863 | lt_cv_cc_needs_belf=no
|
|---|
| 1864 | fi
|
|---|
| 1865 | rm -f conftest*
|
|---|
| 1866 | ac_ext=c
|
|---|
| 1867 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 1868 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 1869 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 1870 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 1871 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 1872 |
|
|---|
| 1873 | fi
|
|---|
| 1874 |
|
|---|
| 1875 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
|
|---|
| 1876 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
|---|
| 1877 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
|---|
| 1878 | CFLAGS="$SAVE_CFLAGS"
|
|---|
| 1879 | fi
|
|---|
| 1880 | ;;
|
|---|
| 1881 |
|
|---|
| 1882 |
|
|---|
| 1883 | esac
|
|---|
| 1884 |
|
|---|
| 1885 |
|
|---|
| 1886 | # Save cache, so that ltconfig can load it
|
|---|
| 1887 | cat > confcache <<\EOF
|
|---|
| 1888 | # This file is a shell script that caches the results of configure
|
|---|
| 1889 | # tests run on this system so they can be shared between configure
|
|---|
| 1890 | # scripts and configure runs. It is not useful on other systems.
|
|---|
| 1891 | # If it contains results you don't want to keep, you may remove or edit it.
|
|---|
| 1892 | #
|
|---|
| 1893 | # By default, configure uses ./config.cache as the cache file,
|
|---|
| 1894 | # creating it if it does not exist already. You can give configure
|
|---|
| 1895 | # the --cache-file=FILE option to use a different cache file; that is
|
|---|
| 1896 | # what configure does when it calls configure scripts in
|
|---|
| 1897 | # subdirectories, so they share the cache.
|
|---|
| 1898 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
|---|
| 1899 | # config.status only pays attention to the cache file if you give it the
|
|---|
| 1900 | # --recheck option to rerun configure.
|
|---|
| 1901 | #
|
|---|
| 1902 | EOF
|
|---|
| 1903 | # The following way of writing the cache mishandles newlines in values,
|
|---|
| 1904 | # but we know of no workaround that is simple, portable, and efficient.
|
|---|
| 1905 | # So, don't put newlines in cache variables' values.
|
|---|
| 1906 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
|---|
| 1907 | # and sets the high bit in the cache file unless we assign to the vars.
|
|---|
| 1908 | (set) 2>&1 |
|
|---|
| 1909 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
|---|
| 1910 | *ac_space=\ *)
|
|---|
| 1911 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
|---|
| 1912 | # turns \\\\ into \\, and sed turns \\ into \).
|
|---|
| 1913 | sed -n \
|
|---|
| 1914 | -e "s/'/'\\\\''/g" \
|
|---|
| 1915 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
|---|
| 1916 | ;;
|
|---|
| 1917 | *)
|
|---|
| 1918 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
|---|
| 1919 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
|---|
| 1920 | ;;
|
|---|
| 1921 | esac >> confcache
|
|---|
| 1922 | if cmp -s $cache_file confcache; then
|
|---|
| 1923 | :
|
|---|
| 1924 | else
|
|---|
| 1925 | if test -w $cache_file; then
|
|---|
| 1926 | echo "updating cache $cache_file"
|
|---|
| 1927 | cat confcache > $cache_file
|
|---|
| 1928 | else
|
|---|
| 1929 | echo "not updating unwritable cache $cache_file"
|
|---|
| 1930 | fi
|
|---|
| 1931 | fi
|
|---|
| 1932 | rm -f confcache
|
|---|
| 1933 |
|
|---|
| 1934 |
|
|---|
| 1935 | # Actually configure libtool. ac_aux_dir is where install-sh is found.
|
|---|
| 1936 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
|
|---|
| 1937 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
|
|---|
| 1938 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
|
|---|
| 1939 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
|
|---|
| 1940 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
|
|---|
| 1941 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
|
|---|
| 1942 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
|
|---|
| 1943 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
|
|---|
| 1944 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
|
|---|
| 1945 |
|
|---|
| 1946 | # Reload cache, that may have been modified by ltconfig
|
|---|
| 1947 | if test -r "$cache_file"; then
|
|---|
| 1948 | echo "loading cache $cache_file"
|
|---|
| 1949 | . $cache_file
|
|---|
| 1950 | else
|
|---|
| 1951 | echo "creating cache $cache_file"
|
|---|
| 1952 | > $cache_file
|
|---|
| 1953 | fi
|
|---|
| 1954 |
|
|---|
| 1955 |
|
|---|
| 1956 | # This can be used to rebuild libtool when needed
|
|---|
| 1957 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
|
|---|
| 1958 |
|
|---|
| 1959 | # Always use our own libtool.
|
|---|
| 1960 | LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
|---|
| 1961 |
|
|---|
| 1962 | # Redirect the config.log output again, so that the ltconfig log is not
|
|---|
| 1963 | # clobbered by the next message.
|
|---|
| 1964 | exec 5>>./config.log
|
|---|
| 1965 |
|
|---|
| 1966 |
|
|---|
| 1967 |
|
|---|
| 1968 |
|
|---|
| 1969 |
|
|---|
| 1970 |
|
|---|
| 1971 |
|
|---|
| 1972 | # Find a good install program. We prefer a C program (faster),
|
|---|
| 1973 | # so one script is as good as another. But avoid the broken or
|
|---|
| 1974 | # incompatible versions:
|
|---|
| 1975 | # SysV /etc/install, /usr/sbin/install
|
|---|
| 1976 | # SunOS /usr/etc/install
|
|---|
| 1977 | # IRIX /sbin/install
|
|---|
| 1978 | # AIX /bin/install
|
|---|
| 1979 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
|---|
| 1980 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|---|
| 1981 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|---|
| 1982 | # ./install, which can be erroneously created by make from ./install.sh.
|
|---|
| 1983 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
|---|
| 1984 | echo "configure:1985: checking for a BSD compatible install" >&5
|
|---|
| 1985 | if test -z "$INSTALL"; then
|
|---|
| 1986 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
|---|
| 1987 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1988 | else
|
|---|
| 1989 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1990 | for ac_dir in $PATH; do
|
|---|
| 1991 | # Account for people who put trailing slashes in PATH elements.
|
|---|
| 1992 | case "$ac_dir/" in
|
|---|
| 1993 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
|---|
| 1994 | # We reject the install program from OS/2 or W3.1
|
|---|
| 1995 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
|
|---|
| 1996 | *)
|
|---|
| 1997 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
|---|
| 1998 | # Don't use installbsd from OSF since it installs stuff as root
|
|---|
| 1999 | # by default.
|
|---|
| 2000 | for ac_prog in ginstall scoinst install; do
|
|---|
| 2001 | if test -f $ac_dir/$ac_prog$ac_exeext; then
|
|---|
| 2002 | if test $ac_prog = install &&
|
|---|
| 2003 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|---|
| 2004 | # AIX install. It has an incompatible calling convention.
|
|---|
| 2005 | :
|
|---|
| 2006 | else
|
|---|
| 2007 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
|
|---|
| 2008 | break 2
|
|---|
| 2009 | fi
|
|---|
| 2010 | fi
|
|---|
| 2011 | done
|
|---|
| 2012 | ;;
|
|---|
| 2013 | esac
|
|---|
| 2014 | done
|
|---|
| 2015 | IFS="$ac_save_IFS"
|
|---|
| 2016 |
|
|---|
| 2017 | fi
|
|---|
| 2018 | if test "${ac_cv_path_install+set}" = set; then
|
|---|
| 2019 | INSTALL="$ac_cv_path_install"
|
|---|
| 2020 | else
|
|---|
| 2021 | # As a last resort, use the slow shell script. We don't cache a
|
|---|
| 2022 | # path for INSTALL within a source directory, because that will
|
|---|
| 2023 | # break other packages using the cache if that directory is
|
|---|
| 2024 | # removed, or if the path is relative.
|
|---|
| 2025 | INSTALL="$ac_install_sh"
|
|---|
| 2026 | fi
|
|---|
| 2027 | fi
|
|---|
| 2028 | echo "$ac_t""$INSTALL" 1>&6
|
|---|
| 2029 |
|
|---|
| 2030 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
|---|
| 2031 | # It thinks the first close brace ends the variable substitution.
|
|---|
| 2032 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|---|
| 2033 |
|
|---|
| 2034 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
|---|
| 2035 |
|
|---|
| 2036 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|---|
| 2037 |
|
|---|
| 2038 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
|
|---|
| 2039 | echo "configure:2040: checking whether build environment is sane" >&5
|
|---|
| 2040 | # Just in case
|
|---|
| 2041 | sleep 1
|
|---|
| 2042 | echo timestamp > conftestfile
|
|---|
| 2043 | # Do `set' in a subshell so we don't clobber the current shell's
|
|---|
| 2044 | # arguments. Must try -L first in case configure is actually a
|
|---|
| 2045 | # symlink; some systems play weird games with the mod time of symlinks
|
|---|
| 2046 | # (eg FreeBSD returns the mod time of the symlink's containing
|
|---|
| 2047 | # directory).
|
|---|
| 2048 | if (
|
|---|
| 2049 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
|
|---|
| 2050 | if test "$*" = "X"; then
|
|---|
| 2051 | # -L didn't work.
|
|---|
| 2052 | set X `ls -t $srcdir/configure conftestfile`
|
|---|
| 2053 | fi
|
|---|
| 2054 | if test "$*" != "X $srcdir/configure conftestfile" \
|
|---|
| 2055 | && test "$*" != "X conftestfile $srcdir/configure"; then
|
|---|
| 2056 |
|
|---|
| 2057 | # If neither matched, then we have a broken ls. This can happen
|
|---|
| 2058 | # if, for instance, CONFIG_SHELL is bash and it inherits a
|
|---|
| 2059 | # broken ls alias from the environment. This has actually
|
|---|
| 2060 | # happened. Such a system could not be considered "sane".
|
|---|
| 2061 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
|
|---|
| 2062 | alias in your environment" 1>&2; exit 1; }
|
|---|
| 2063 | fi
|
|---|
| 2064 |
|
|---|
| 2065 | test "$2" = conftestfile
|
|---|
| 2066 | )
|
|---|
| 2067 | then
|
|---|
| 2068 | # Ok.
|
|---|
| 2069 | :
|
|---|
| 2070 | else
|
|---|
| 2071 | { echo "configure: error: newly created file is older than distributed files!
|
|---|
| 2072 | Check your system clock" 1>&2; exit 1; }
|
|---|
| 2073 | fi
|
|---|
| 2074 | rm -f conftest*
|
|---|
| 2075 | echo "$ac_t""yes" 1>&6
|
|---|
| 2076 | if test "$program_transform_name" = s,x,x,; then
|
|---|
| 2077 | program_transform_name=
|
|---|
| 2078 | else
|
|---|
| 2079 | # Double any \ or $. echo might interpret backslashes.
|
|---|
| 2080 | cat <<\EOF_SED > conftestsed
|
|---|
| 2081 | s,\\,\\\\,g; s,\$,$$,g
|
|---|
| 2082 | EOF_SED
|
|---|
| 2083 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
|---|
| 2084 | rm -f conftestsed
|
|---|
| 2085 | fi
|
|---|
| 2086 | test "$program_prefix" != NONE &&
|
|---|
| 2087 | program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
|---|
| 2088 | # Use a double $ so make ignores it.
|
|---|
| 2089 | test "$program_suffix" != NONE &&
|
|---|
| 2090 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
|---|
| 2091 |
|
|---|
| 2092 | # sed with no file args requires a program.
|
|---|
| 2093 | test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
|---|
| 2094 |
|
|---|
| 2095 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
|---|
| 2096 | echo "configure:2097: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
|---|
| 2097 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
|---|
| 2098 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
|---|
| 2099 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2100 | else
|
|---|
| 2101 | cat > conftestmake <<\EOF
|
|---|
| 2102 | all:
|
|---|
| 2103 | @echo 'ac_maketemp="${MAKE}"'
|
|---|
| 2104 | EOF
|
|---|
| 2105 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|---|
| 2106 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
|---|
| 2107 | if test -n "$ac_maketemp"; then
|
|---|
| 2108 | eval ac_cv_prog_make_${ac_make}_set=yes
|
|---|
| 2109 | else
|
|---|
| 2110 | eval ac_cv_prog_make_${ac_make}_set=no
|
|---|
| 2111 | fi
|
|---|
| 2112 | rm -f conftestmake
|
|---|
| 2113 | fi
|
|---|
| 2114 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
|---|
| 2115 | echo "$ac_t""yes" 1>&6
|
|---|
| 2116 | SET_MAKE=
|
|---|
| 2117 | else
|
|---|
| 2118 | echo "$ac_t""no" 1>&6
|
|---|
| 2119 | SET_MAKE="MAKE=${MAKE-make}"
|
|---|
| 2120 | fi
|
|---|
| 2121 |
|
|---|
| 2122 |
|
|---|
| 2123 | PACKAGE=libffi
|
|---|
| 2124 |
|
|---|
| 2125 | VERSION=2.00-beta
|
|---|
| 2126 |
|
|---|
| 2127 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
|
|---|
| 2128 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
|
|---|
| 2129 | fi
|
|---|
| 2130 |
|
|---|
| 2131 |
|
|---|
| 2132 |
|
|---|
| 2133 | missing_dir=`cd $ac_aux_dir && pwd`
|
|---|
| 2134 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
|
|---|
| 2135 | echo "configure:2136: checking for working aclocal" >&5
|
|---|
| 2136 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 2137 | # an executable is not found, even if stderr is redirected.
|
|---|
| 2138 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 2139 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 2140 | ACLOCAL=aclocal
|
|---|
| 2141 | echo "$ac_t""found" 1>&6
|
|---|
| 2142 | else
|
|---|
| 2143 | ACLOCAL="$missing_dir/missing aclocal"
|
|---|
| 2144 | echo "$ac_t""missing" 1>&6
|
|---|
| 2145 | fi
|
|---|
| 2146 |
|
|---|
| 2147 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
|
|---|
| 2148 | echo "configure:2149: checking for working autoconf" >&5
|
|---|
| 2149 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 2150 | # an executable is not found, even if stderr is redirected.
|
|---|
| 2151 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 2152 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 2153 | AUTOCONF=autoconf
|
|---|
| 2154 | echo "$ac_t""found" 1>&6
|
|---|
| 2155 | else
|
|---|
| 2156 | AUTOCONF="$missing_dir/missing autoconf"
|
|---|
| 2157 | echo "$ac_t""missing" 1>&6
|
|---|
| 2158 | fi
|
|---|
| 2159 |
|
|---|
| 2160 | echo $ac_n "checking for working automake""... $ac_c" 1>&6
|
|---|
| 2161 | echo "configure:2162: checking for working automake" >&5
|
|---|
| 2162 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 2163 | # an executable is not found, even if stderr is redirected.
|
|---|
| 2164 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 2165 | if (automake --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 2166 | AUTOMAKE=automake
|
|---|
| 2167 | echo "$ac_t""found" 1>&6
|
|---|
| 2168 | else
|
|---|
| 2169 | AUTOMAKE="$missing_dir/missing automake"
|
|---|
| 2170 | echo "$ac_t""missing" 1>&6
|
|---|
| 2171 | fi
|
|---|
| 2172 |
|
|---|
| 2173 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
|
|---|
| 2174 | echo "configure:2175: checking for working autoheader" >&5
|
|---|
| 2175 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 2176 | # an executable is not found, even if stderr is redirected.
|
|---|
| 2177 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 2178 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 2179 | AUTOHEADER=autoheader
|
|---|
| 2180 | echo "$ac_t""found" 1>&6
|
|---|
| 2181 | else
|
|---|
| 2182 | AUTOHEADER="$missing_dir/missing autoheader"
|
|---|
| 2183 | echo "$ac_t""missing" 1>&6
|
|---|
| 2184 | fi
|
|---|
| 2185 |
|
|---|
| 2186 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
|
|---|
| 2187 | echo "configure:2188: checking for working makeinfo" >&5
|
|---|
| 2188 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 2189 | # an executable is not found, even if stderr is redirected.
|
|---|
| 2190 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 2191 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 2192 | MAKEINFO=makeinfo
|
|---|
| 2193 | echo "$ac_t""found" 1>&6
|
|---|
| 2194 | else
|
|---|
| 2195 | MAKEINFO="$missing_dir/missing makeinfo"
|
|---|
| 2196 | echo "$ac_t""missing" 1>&6
|
|---|
| 2197 | fi
|
|---|
| 2198 |
|
|---|
| 2199 |
|
|---|
| 2200 |
|
|---|
| 2201 |
|
|---|
| 2202 |
|
|---|
| 2203 |
|
|---|
| 2204 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
|---|
| 2205 | echo "configure:2206: checking for executable suffix" >&5
|
|---|
| 2206 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
|---|
| 2207 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2208 | else
|
|---|
| 2209 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
|---|
| 2210 | ac_cv_exeext=.exe
|
|---|
| 2211 | else
|
|---|
| 2212 | rm -f conftest*
|
|---|
| 2213 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
|---|
| 2214 | ac_cv_exeext=
|
|---|
| 2215 | if { (eval echo configure:2216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
|---|
| 2216 | for file in conftest.*; do
|
|---|
| 2217 | case $file in
|
|---|
| 2218 | *.c | *.o | *.obj) ;;
|
|---|
| 2219 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
|---|
| 2220 | esac
|
|---|
| 2221 | done
|
|---|
| 2222 | else
|
|---|
| 2223 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 2224 | fi
|
|---|
| 2225 | rm -f conftest*
|
|---|
| 2226 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
|---|
| 2227 | fi
|
|---|
| 2228 | fi
|
|---|
| 2229 |
|
|---|
| 2230 | EXEEXT=""
|
|---|
| 2231 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
|---|
| 2232 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
|---|
| 2233 | ac_exeext=$EXEEXT
|
|---|
| 2234 |
|
|---|
| 2235 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
|
|---|
| 2236 | echo "configure:2237: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
|---|
| 2237 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
|
|---|
| 2238 | if test "${enable_maintainer_mode+set}" = set; then
|
|---|
| 2239 | enableval="$enable_maintainer_mode"
|
|---|
| 2240 | USE_MAINTAINER_MODE=$enableval
|
|---|
| 2241 | else
|
|---|
| 2242 | USE_MAINTAINER_MODE=no
|
|---|
| 2243 | fi
|
|---|
| 2244 |
|
|---|
| 2245 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
|
|---|
| 2246 |
|
|---|
| 2247 |
|
|---|
| 2248 | if test $USE_MAINTAINER_MODE = yes; then
|
|---|
| 2249 | MAINTAINER_MODE_TRUE=
|
|---|
| 2250 | MAINTAINER_MODE_FALSE='#'
|
|---|
| 2251 | else
|
|---|
| 2252 | MAINTAINER_MODE_TRUE='#'
|
|---|
| 2253 | MAINTAINER_MODE_FALSE=
|
|---|
| 2254 | fi
|
|---|
| 2255 | MAINT=$MAINTAINER_MODE_TRUE
|
|---|
| 2256 |
|
|---|
| 2257 |
|
|---|
| 2258 |
|
|---|
| 2259 | # Extract the first word of "gcc", so it can be a program name with args.
|
|---|
| 2260 | set dummy gcc; ac_word=$2
|
|---|
| 2261 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2262 | echo "configure:2263: checking for $ac_word" >&5
|
|---|
| 2263 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 2264 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2265 | else
|
|---|
| 2266 | if test -n "$CC"; then
|
|---|
| 2267 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 2268 | else
|
|---|
| 2269 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2270 | ac_dummy="$PATH"
|
|---|
| 2271 | for ac_dir in $ac_dummy; do
|
|---|
| 2272 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2273 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2274 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2275 | ac_cv_prog_CC="gcc"
|
|---|
| 2276 | break
|
|---|
| 2277 | fi
|
|---|
| 2278 | done
|
|---|
| 2279 | IFS="$ac_save_ifs"
|
|---|
| 2280 | fi
|
|---|
| 2281 | fi
|
|---|
| 2282 | CC="$ac_cv_prog_CC"
|
|---|
| 2283 | if test -n "$CC"; then
|
|---|
| 2284 | echo "$ac_t""$CC" 1>&6
|
|---|
| 2285 | else
|
|---|
| 2286 | echo "$ac_t""no" 1>&6
|
|---|
| 2287 | fi
|
|---|
| 2288 |
|
|---|
| 2289 | if test -z "$CC"; then
|
|---|
| 2290 | # Extract the first word of "cc", so it can be a program name with args.
|
|---|
| 2291 | set dummy cc; ac_word=$2
|
|---|
| 2292 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2293 | echo "configure:2294: checking for $ac_word" >&5
|
|---|
| 2294 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 2295 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2296 | else
|
|---|
| 2297 | if test -n "$CC"; then
|
|---|
| 2298 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 2299 | else
|
|---|
| 2300 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2301 | ac_prog_rejected=no
|
|---|
| 2302 | ac_dummy="$PATH"
|
|---|
| 2303 | for ac_dir in $ac_dummy; do
|
|---|
| 2304 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2305 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2306 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2307 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
|
|---|
| 2308 | "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
|
|---|
| 2309 | ac_prog_rejected=yes
|
|---|
| 2310 | continue
|
|---|
| 2311 | fi
|
|---|
| 2312 | ac_cv_prog_CC="cc"
|
|---|
| 2313 | break
|
|---|
| 2314 | fi
|
|---|
| 2315 | done
|
|---|
| 2316 | IFS="$ac_save_ifs"
|
|---|
| 2317 | if test $ac_prog_rejected = yes; then
|
|---|
| 2318 | # We found a bogon in the path, so make sure we never use it.
|
|---|
| 2319 | set dummy $ac_cv_prog_CC
|
|---|
| 2320 | shift
|
|---|
| 2321 | if test $# -gt 0; then
|
|---|
| 2322 | # We chose a different compiler from the bogus one.
|
|---|
| 2323 | # However, it has the same basename, so the bogon will be chosen
|
|---|
| 2324 | # first if we set CC to just the basename; use the full file name.
|
|---|
| 2325 | shift
|
|---|
| 2326 | set dummy "$ac_dir/$ac_word" "$@"
|
|---|
| 2327 | shift
|
|---|
| 2328 | ac_cv_prog_CC="$@"
|
|---|
| 2329 | fi
|
|---|
| 2330 | fi
|
|---|
| 2331 | fi
|
|---|
| 2332 | fi
|
|---|
| 2333 | CC="$ac_cv_prog_CC"
|
|---|
| 2334 | if test -n "$CC"; then
|
|---|
| 2335 | echo "$ac_t""$CC" 1>&6
|
|---|
| 2336 | else
|
|---|
| 2337 | echo "$ac_t""no" 1>&6
|
|---|
| 2338 | fi
|
|---|
| 2339 |
|
|---|
| 2340 | if test -z "$CC"; then
|
|---|
| 2341 | case "`uname -s`" in
|
|---|
| 2342 | *win32* | *WIN32*)
|
|---|
| 2343 | # Extract the first word of "cl", so it can be a program name with args.
|
|---|
| 2344 | set dummy cl; ac_word=$2
|
|---|
| 2345 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2346 | echo "configure:2347: checking for $ac_word" >&5
|
|---|
| 2347 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 2348 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2349 | else
|
|---|
| 2350 | if test -n "$CC"; then
|
|---|
| 2351 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 2352 | else
|
|---|
| 2353 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2354 | ac_dummy="$PATH"
|
|---|
| 2355 | for ac_dir in $ac_dummy; do
|
|---|
| 2356 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2357 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2358 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2359 | ac_cv_prog_CC="cl"
|
|---|
| 2360 | break
|
|---|
| 2361 | fi
|
|---|
| 2362 | done
|
|---|
| 2363 | IFS="$ac_save_ifs"
|
|---|
| 2364 | fi
|
|---|
| 2365 | fi
|
|---|
| 2366 | CC="$ac_cv_prog_CC"
|
|---|
| 2367 | if test -n "$CC"; then
|
|---|
| 2368 | echo "$ac_t""$CC" 1>&6
|
|---|
| 2369 | else
|
|---|
| 2370 | echo "$ac_t""no" 1>&6
|
|---|
| 2371 | fi
|
|---|
| 2372 | ;;
|
|---|
| 2373 | esac
|
|---|
| 2374 | fi
|
|---|
| 2375 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|---|
| 2376 | fi
|
|---|
| 2377 |
|
|---|
| 2378 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|---|
| 2379 | echo "configure:2380: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
|---|
| 2380 |
|
|---|
| 2381 | ac_ext=c
|
|---|
| 2382 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2383 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2384 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2385 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2386 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2387 |
|
|---|
| 2388 | cat > conftest.$ac_ext << EOF
|
|---|
| 2389 |
|
|---|
| 2390 | #line 2391 "configure"
|
|---|
| 2391 | #include "confdefs.h"
|
|---|
| 2392 |
|
|---|
| 2393 | main(){return(0);}
|
|---|
| 2394 | EOF
|
|---|
| 2395 | if { (eval echo configure:2396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 2396 | ac_cv_prog_cc_works=yes
|
|---|
| 2397 | # If we can't run a trivial program, we are probably using a cross compiler.
|
|---|
| 2398 | if (./conftest; exit) 2>/dev/null; then
|
|---|
| 2399 | ac_cv_prog_cc_cross=no
|
|---|
| 2400 | else
|
|---|
| 2401 | ac_cv_prog_cc_cross=yes
|
|---|
| 2402 | fi
|
|---|
| 2403 | else
|
|---|
| 2404 | echo "configure: failed program was:" >&5
|
|---|
| 2405 | cat conftest.$ac_ext >&5
|
|---|
| 2406 | ac_cv_prog_cc_works=no
|
|---|
| 2407 | fi
|
|---|
| 2408 | rm -fr conftest*
|
|---|
| 2409 | ac_ext=c
|
|---|
| 2410 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2411 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2412 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2413 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2414 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2415 |
|
|---|
| 2416 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|---|
| 2417 | if test $ac_cv_prog_cc_works = no; then
|
|---|
| 2418 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 2419 | fi
|
|---|
| 2420 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|---|
| 2421 | echo "configure:2422: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|---|
| 2422 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|---|
| 2423 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2424 |
|
|---|
| 2425 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
|---|
| 2426 | echo "configure:2427: checking whether we are using GNU C" >&5
|
|---|
| 2427 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
|---|
| 2428 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2429 | else
|
|---|
| 2430 | cat > conftest.c <<EOF
|
|---|
| 2431 | #ifdef __GNUC__
|
|---|
| 2432 | yes;
|
|---|
| 2433 | #endif
|
|---|
| 2434 | EOF
|
|---|
| 2435 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|---|
| 2436 | ac_cv_prog_gcc=yes
|
|---|
| 2437 | else
|
|---|
| 2438 | ac_cv_prog_gcc=no
|
|---|
| 2439 | fi
|
|---|
| 2440 | fi
|
|---|
| 2441 |
|
|---|
| 2442 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|---|
| 2443 |
|
|---|
| 2444 | if test $ac_cv_prog_gcc = yes; then
|
|---|
| 2445 | GCC=yes
|
|---|
| 2446 | else
|
|---|
| 2447 | GCC=
|
|---|
| 2448 | fi
|
|---|
| 2449 |
|
|---|
| 2450 | ac_test_CFLAGS="${CFLAGS+set}"
|
|---|
| 2451 | ac_save_CFLAGS="$CFLAGS"
|
|---|
| 2452 | CFLAGS=
|
|---|
| 2453 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|---|
| 2454 | echo "configure:2455: checking whether ${CC-cc} accepts -g" >&5
|
|---|
| 2455 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
|---|
| 2456 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2457 | else
|
|---|
| 2458 | echo 'void f(){}' > conftest.c
|
|---|
| 2459 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|---|
| 2460 | ac_cv_prog_cc_g=yes
|
|---|
| 2461 | else
|
|---|
| 2462 | ac_cv_prog_cc_g=no
|
|---|
| 2463 | fi
|
|---|
| 2464 | rm -f conftest*
|
|---|
| 2465 |
|
|---|
| 2466 | fi
|
|---|
| 2467 |
|
|---|
| 2468 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|---|
| 2469 | if test "$ac_test_CFLAGS" = set; then
|
|---|
| 2470 | CFLAGS="$ac_save_CFLAGS"
|
|---|
| 2471 | elif test $ac_cv_prog_cc_g = yes; then
|
|---|
| 2472 | if test "$GCC" = yes; then
|
|---|
| 2473 | CFLAGS="-g -O2"
|
|---|
| 2474 | else
|
|---|
| 2475 | CFLAGS="-g"
|
|---|
| 2476 | fi
|
|---|
| 2477 | else
|
|---|
| 2478 | if test "$GCC" = yes; then
|
|---|
| 2479 | CFLAGS="-O2"
|
|---|
| 2480 | else
|
|---|
| 2481 | CFLAGS=
|
|---|
| 2482 | fi
|
|---|
| 2483 | fi
|
|---|
| 2484 |
|
|---|
| 2485 |
|
|---|
| 2486 |
|
|---|
| 2487 |
|
|---|
| 2488 |
|
|---|
| 2489 |
|
|---|
| 2490 |
|
|---|
| 2491 | TARGETDIR="unknown"
|
|---|
| 2492 | case "$host" in
|
|---|
| 2493 | mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS; TARGETDIR=mips;;
|
|---|
| 2494 | i*86-*-linux*) TARGET=X86; TARGETDIR=x86;;
|
|---|
| 2495 | i*86-*-solaris*) TARGET=X86; TARGETDIR=x86;;
|
|---|
| 2496 | i*86-*-beos*) TARGET=X86; TARGETDIR=x86;;
|
|---|
| 2497 | i*86-*-freebsd*) TARGET=X86; TARGETDIR=x86;;
|
|---|
| 2498 | i*86-*-netbsdelf*) TARGET=X86; TARGETDIR=x86;;
|
|---|
| 2499 | i*86-*-win32*) TARGET=X86_WIN32; TARGETDIR=x86;;
|
|---|
| 2500 | i*86-*-cygwin*) TARGET=X86_WIN32; TARGETDIR=x86;;
|
|---|
| 2501 | i*86-*-mingw*) TARGET=X86_WIN32; TARGETDIR=x86;;
|
|---|
| 2502 | sparc-sun-4*) TARGET=SPARC; TARGETDIR=sparc;;
|
|---|
| 2503 | sparc*-sun-*) TARGET=SPARC; TARGETDIR=sparc;;
|
|---|
| 2504 | sparc-*-linux*) TARGET=SPARC; TARGETDIR=sparc;;
|
|---|
| 2505 | sparc64-*-linux*) TARGET=SPARC; TARGETDIR=sparc;;
|
|---|
| 2506 | alpha*-*-linux* | alpha*-*-osf* | alpha*-*-freebsd*) TARGET=ALPHA; TARGETDIR=alpha;;
|
|---|
| 2507 | ia64*-*-*) TARGET=IA64; TARGETDIR=ia64;;
|
|---|
| 2508 | m68k-*-linux*) TARGET=M68K; TARGETDIR=m68k;;
|
|---|
| 2509 | powerpc-*-linux* | powerpc-*-sysv*) TARGET=POWERPC; TARGETDIR=powerpc;;
|
|---|
| 2510 | powerpc-*-beos*) TARGET=POWERPC; TARGETDIR=powerpc;;
|
|---|
| 2511 | powerpc-*-darwin*) TARGET=POWERPC_DARWIN; TARGETDIR=powerpc;;
|
|---|
| 2512 | powerpc-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
|
|---|
| 2513 | rs6000-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
|
|---|
| 2514 | arm*-*-linux-*) TARGET=ARM; TARGETDIR=arm;;
|
|---|
| 2515 | esac
|
|---|
| 2516 |
|
|---|
| 2517 | if test $TARGETDIR = unknown; then
|
|---|
| 2518 | { echo "configure: error: "libffi has not been ported to $host."" 1>&2; exit 1; }
|
|---|
| 2519 | fi
|
|---|
| 2520 |
|
|---|
| 2521 |
|
|---|
| 2522 |
|
|---|
| 2523 | if test ${TARGET}${ac_cv_prog_gcc} = MIPSyes; then
|
|---|
| 2524 | MIPS_GCC_TRUE=
|
|---|
| 2525 | MIPS_GCC_FALSE='#'
|
|---|
| 2526 | else
|
|---|
| 2527 | MIPS_GCC_TRUE='#'
|
|---|
| 2528 | MIPS_GCC_FALSE=
|
|---|
| 2529 | fi
|
|---|
| 2530 |
|
|---|
| 2531 |
|
|---|
| 2532 | if test ${TARGET}${ac_cv_prog_gcc} = MIPSno; then
|
|---|
| 2533 | MIPS_SGI_TRUE=
|
|---|
| 2534 | MIPS_SGI_FALSE='#'
|
|---|
| 2535 | else
|
|---|
| 2536 | MIPS_SGI_TRUE='#'
|
|---|
| 2537 | MIPS_SGI_FALSE=
|
|---|
| 2538 | fi
|
|---|
| 2539 |
|
|---|
| 2540 |
|
|---|
| 2541 | if test x$TARGET = xSPARC; then
|
|---|
| 2542 | SPARC_TRUE=
|
|---|
| 2543 | SPARC_FALSE='#'
|
|---|
| 2544 | else
|
|---|
| 2545 | SPARC_TRUE='#'
|
|---|
| 2546 | SPARC_FALSE=
|
|---|
| 2547 | fi
|
|---|
| 2548 |
|
|---|
| 2549 |
|
|---|
| 2550 | if test x$TARGET = xX86; then
|
|---|
| 2551 | X86_TRUE=
|
|---|
| 2552 | X86_FALSE='#'
|
|---|
| 2553 | else
|
|---|
| 2554 | X86_TRUE='#'
|
|---|
| 2555 | X86_FALSE=
|
|---|
| 2556 | fi
|
|---|
| 2557 |
|
|---|
| 2558 |
|
|---|
| 2559 | if test x$TARGET = xX86_WIN32; then
|
|---|
| 2560 | X86_WIN32_TRUE=
|
|---|
| 2561 | X86_WIN32_FALSE='#'
|
|---|
| 2562 | else
|
|---|
| 2563 | X86_WIN32_TRUE='#'
|
|---|
| 2564 | X86_WIN32_FALSE=
|
|---|
| 2565 | fi
|
|---|
| 2566 |
|
|---|
| 2567 |
|
|---|
| 2568 | if test x$TARGET = xALPHA; then
|
|---|
| 2569 | ALPHA_TRUE=
|
|---|
| 2570 | ALPHA_FALSE='#'
|
|---|
| 2571 | else
|
|---|
| 2572 | ALPHA_TRUE='#'
|
|---|
| 2573 | ALPHA_FALSE=
|
|---|
| 2574 | fi
|
|---|
| 2575 |
|
|---|
| 2576 |
|
|---|
| 2577 | if test x$TARGET = xIA64; then
|
|---|
| 2578 | IA64_TRUE=
|
|---|
| 2579 | IA64_FALSE='#'
|
|---|
| 2580 | else
|
|---|
| 2581 | IA64_TRUE='#'
|
|---|
| 2582 | IA64_FALSE=
|
|---|
| 2583 | fi
|
|---|
| 2584 |
|
|---|
| 2585 |
|
|---|
| 2586 | if test x$TARGET = xM68K; then
|
|---|
| 2587 | M68K_TRUE=
|
|---|
| 2588 | M68K_FALSE='#'
|
|---|
| 2589 | else
|
|---|
| 2590 | M68K_TRUE='#'
|
|---|
| 2591 | M68K_FALSE=
|
|---|
| 2592 | fi
|
|---|
| 2593 |
|
|---|
| 2594 |
|
|---|
| 2595 | if test x$TARGET = xPOWERPC; then
|
|---|
| 2596 | POWERPC_TRUE=
|
|---|
| 2597 | POWERPC_FALSE='#'
|
|---|
| 2598 | else
|
|---|
| 2599 | POWERPC_TRUE='#'
|
|---|
| 2600 | POWERPC_FALSE=
|
|---|
| 2601 | fi
|
|---|
| 2602 |
|
|---|
| 2603 |
|
|---|
| 2604 | if test x$TARGET = xPOWERPC_AIX; then
|
|---|
| 2605 | POWERPC_AIX_TRUE=
|
|---|
| 2606 | POWERPC_AIX_FALSE='#'
|
|---|
| 2607 | else
|
|---|
| 2608 | POWERPC_AIX_TRUE='#'
|
|---|
| 2609 | POWERPC_AIX_FALSE=
|
|---|
| 2610 | fi
|
|---|
| 2611 |
|
|---|
| 2612 |
|
|---|
| 2613 | if test x$TARGET = xPOWERPC_DARWIN; then
|
|---|
| 2614 | POWERPC_DARWIN_TRUE=
|
|---|
| 2615 | POWERPC_DARWIN_FALSE='#'
|
|---|
| 2616 | else
|
|---|
| 2617 | POWERPC_DARWIN_TRUE='#'
|
|---|
| 2618 | POWERPC_DARWIN_FALSE=
|
|---|
| 2619 | fi
|
|---|
| 2620 |
|
|---|
| 2621 |
|
|---|
| 2622 | if test x$TARGET = xARM; then
|
|---|
| 2623 | ARM_TRUE=
|
|---|
| 2624 | ARM_FALSE='#'
|
|---|
| 2625 | else
|
|---|
| 2626 | ARM_TRUE='#'
|
|---|
| 2627 | ARM_FALSE=
|
|---|
| 2628 | fi
|
|---|
| 2629 |
|
|---|
| 2630 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
|---|
| 2631 | echo "configure:2632: checking how to run the C preprocessor" >&5
|
|---|
| 2632 | # On Suns, sometimes $CPP names a directory.
|
|---|
| 2633 | if test -n "$CPP" && test -d "$CPP"; then
|
|---|
| 2634 | CPP=
|
|---|
| 2635 | fi
|
|---|
| 2636 | if test -z "$CPP"; then
|
|---|
| 2637 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
|---|
| 2638 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2639 | else
|
|---|
| 2640 | # This must be in double quotes, not single quotes, because CPP may get
|
|---|
| 2641 | # substituted into the Makefile and "${CC-cc}" will confuse make.
|
|---|
| 2642 | CPP="${CC-cc} -E"
|
|---|
| 2643 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
|---|
| 2644 | # not just through cpp.
|
|---|
| 2645 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2646 | #include <sys/types.h>
|
|---|
| 2647 | #line 2648 "configure"
|
|---|
| 2648 | #include "confdefs.h"
|
|---|
| 2649 | #include <assert.h>
|
|---|
| 2650 | Syntax Error
|
|---|
| 2651 | EOF
|
|---|
| 2652 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 2653 | { (eval echo configure:2654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 2654 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 2655 | if test -z "$ac_err"; then
|
|---|
| 2656 | :
|
|---|
| 2657 | else
|
|---|
| 2658 | echo "$ac_err" >&5
|
|---|
| 2659 | echo "configure: failed program was:" >&5
|
|---|
| 2660 | cat conftest.$ac_ext >&5
|
|---|
| 2661 | rm -rf conftest*
|
|---|
| 2662 | CPP="${CC-cc} -E -traditional-cpp"
|
|---|
| 2663 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2664 | #include <sys/types.h>
|
|---|
| 2665 | #line 2666 "configure"
|
|---|
| 2666 | #include "confdefs.h"
|
|---|
| 2667 | #include <assert.h>
|
|---|
| 2668 | Syntax Error
|
|---|
| 2669 | EOF
|
|---|
| 2670 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 2671 | { (eval echo configure:2672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 2672 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 2673 | if test -z "$ac_err"; then
|
|---|
| 2674 | :
|
|---|
| 2675 | else
|
|---|
| 2676 | echo "$ac_err" >&5
|
|---|
| 2677 | echo "configure: failed program was:" >&5
|
|---|
| 2678 | cat conftest.$ac_ext >&5
|
|---|
| 2679 | rm -rf conftest*
|
|---|
| 2680 | CPP="${CC-cc} -nologo -E"
|
|---|
| 2681 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2682 | #include <sys/types.h>
|
|---|
| 2683 | #line 2684 "configure"
|
|---|
| 2684 | #include "confdefs.h"
|
|---|
| 2685 | #include <assert.h>
|
|---|
| 2686 | Syntax Error
|
|---|
| 2687 | EOF
|
|---|
| 2688 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 2689 | { (eval echo configure:2690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 2690 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 2691 | if test -z "$ac_err"; then
|
|---|
| 2692 | :
|
|---|
| 2693 | else
|
|---|
| 2694 | echo "$ac_err" >&5
|
|---|
| 2695 | echo "configure: failed program was:" >&5
|
|---|
| 2696 | cat conftest.$ac_ext >&5
|
|---|
| 2697 | rm -rf conftest*
|
|---|
| 2698 | CPP=/lib/cpp
|
|---|
| 2699 | fi
|
|---|
| 2700 | rm -f conftest*
|
|---|
| 2701 | fi
|
|---|
| 2702 | rm -f conftest*
|
|---|
| 2703 | fi
|
|---|
| 2704 | rm -f conftest*
|
|---|
| 2705 | ac_cv_prog_CPP="$CPP"
|
|---|
| 2706 | fi
|
|---|
| 2707 | CPP="$ac_cv_prog_CPP"
|
|---|
| 2708 | else
|
|---|
| 2709 | ac_cv_prog_CPP="$CPP"
|
|---|
| 2710 | fi
|
|---|
| 2711 | echo "$ac_t""$CPP" 1>&6
|
|---|
| 2712 |
|
|---|
| 2713 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
|---|
| 2714 | echo "configure:2715: checking for ANSI C header files" >&5
|
|---|
| 2715 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
|---|
| 2716 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2717 | else
|
|---|
| 2718 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2719 | #include <sys/types.h>
|
|---|
| 2720 | #line 2721 "configure"
|
|---|
| 2721 | #include "confdefs.h"
|
|---|
| 2722 | #include <stdlib.h>
|
|---|
| 2723 | #include <stdarg.h>
|
|---|
| 2724 | #include <string.h>
|
|---|
| 2725 | #include <float.h>
|
|---|
| 2726 | EOF
|
|---|
| 2727 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 2728 | { (eval echo configure:2729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 2729 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 2730 | if test -z "$ac_err"; then
|
|---|
| 2731 | rm -rf conftest*
|
|---|
| 2732 | ac_cv_header_stdc=yes
|
|---|
| 2733 | else
|
|---|
| 2734 | echo "$ac_err" >&5
|
|---|
| 2735 | echo "configure: failed program was:" >&5
|
|---|
| 2736 | cat conftest.$ac_ext >&5
|
|---|
| 2737 | rm -rf conftest*
|
|---|
| 2738 | ac_cv_header_stdc=no
|
|---|
| 2739 | fi
|
|---|
| 2740 | rm -f conftest*
|
|---|
| 2741 |
|
|---|
| 2742 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 2743 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|---|
| 2744 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2745 | #line 2746 "configure"
|
|---|
| 2746 | #include "confdefs.h"
|
|---|
| 2747 | #include <string.h>
|
|---|
| 2748 | EOF
|
|---|
| 2749 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 2750 | egrep "memchr" >/dev/null 2>&1; then
|
|---|
| 2751 | :
|
|---|
| 2752 | else
|
|---|
| 2753 | rm -rf conftest*
|
|---|
| 2754 | ac_cv_header_stdc=no
|
|---|
| 2755 | fi
|
|---|
| 2756 | rm -f conftest*
|
|---|
| 2757 |
|
|---|
| 2758 | fi
|
|---|
| 2759 |
|
|---|
| 2760 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 2761 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|---|
| 2762 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2763 | #line 2764 "configure"
|
|---|
| 2764 | #include "confdefs.h"
|
|---|
| 2765 | #include <stdlib.h>
|
|---|
| 2766 | EOF
|
|---|
| 2767 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 2768 | egrep "free" >/dev/null 2>&1; then
|
|---|
| 2769 | :
|
|---|
| 2770 | else
|
|---|
| 2771 | rm -rf conftest*
|
|---|
| 2772 | ac_cv_header_stdc=no
|
|---|
| 2773 | fi
|
|---|
| 2774 | rm -f conftest*
|
|---|
| 2775 |
|
|---|
| 2776 | fi
|
|---|
| 2777 |
|
|---|
| 2778 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 2779 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|---|
| 2780 | if test "$cross_compiling" = yes; then
|
|---|
| 2781 | :
|
|---|
| 2782 | else
|
|---|
| 2783 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2784 | #line 2785 "configure"
|
|---|
| 2785 | #include "confdefs.h"
|
|---|
| 2786 | #include <ctype.h>
|
|---|
| 2787 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|---|
| 2788 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|---|
| 2789 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|---|
| 2790 | int main () { int i; for (i = 0; i < 256; i++)
|
|---|
| 2791 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
|---|
| 2792 | exit (0); }
|
|---|
| 2793 |
|
|---|
| 2794 | EOF
|
|---|
| 2795 | if { (eval echo configure:2796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|---|
| 2796 | then
|
|---|
| 2797 | :
|
|---|
| 2798 | else
|
|---|
| 2799 | echo "configure: failed program was:" >&5
|
|---|
| 2800 | cat conftest.$ac_ext >&5
|
|---|
| 2801 | rm -fr conftest*
|
|---|
| 2802 | ac_cv_header_stdc=no
|
|---|
| 2803 | fi
|
|---|
| 2804 | rm -fr conftest*
|
|---|
| 2805 | fi
|
|---|
| 2806 |
|
|---|
| 2807 | fi
|
|---|
| 2808 | fi
|
|---|
| 2809 |
|
|---|
| 2810 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
|---|
| 2811 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 2812 | cat >> confdefs.h <<\EOF
|
|---|
| 2813 | #define STDC_HEADERS 1
|
|---|
| 2814 | EOF
|
|---|
| 2815 |
|
|---|
| 2816 | fi
|
|---|
| 2817 |
|
|---|
| 2818 | for ac_func in memcpy
|
|---|
| 2819 | do
|
|---|
| 2820 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 2821 | echo "configure:2822: checking for $ac_func" >&5
|
|---|
| 2822 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 2823 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2824 | else
|
|---|
| 2825 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2826 | #line 2827 "configure"
|
|---|
| 2827 | #include "confdefs.h"
|
|---|
| 2828 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 2829 | which can conflict with char $ac_func(); below. */
|
|---|
| 2830 | #include <assert.h>
|
|---|
| 2831 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 2832 | /* We use char because int might match the return type of a gcc2
|
|---|
| 2833 | builtin and then its argument prototype would still apply. */
|
|---|
| 2834 | char $ac_func();
|
|---|
| 2835 |
|
|---|
| 2836 | int main() {
|
|---|
| 2837 |
|
|---|
| 2838 | /* The GNU C library defines this for functions which it implements
|
|---|
| 2839 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 2840 | something starting with __ and the normal name is an alias. */
|
|---|
| 2841 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 2842 | choke me
|
|---|
| 2843 | #else
|
|---|
| 2844 | $ac_func();
|
|---|
| 2845 | #endif
|
|---|
| 2846 |
|
|---|
| 2847 | ; return 0; }
|
|---|
| 2848 | EOF
|
|---|
| 2849 | if { (eval echo configure:2850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 2850 | rm -rf conftest*
|
|---|
| 2851 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 2852 | else
|
|---|
| 2853 | echo "configure: failed program was:" >&5
|
|---|
| 2854 | cat conftest.$ac_ext >&5
|
|---|
| 2855 | rm -rf conftest*
|
|---|
| 2856 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 2857 | fi
|
|---|
| 2858 | rm -f conftest*
|
|---|
| 2859 | fi
|
|---|
| 2860 |
|
|---|
| 2861 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 2862 | echo "$ac_t""yes" 1>&6
|
|---|
| 2863 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 2864 | cat >> confdefs.h <<EOF
|
|---|
| 2865 | #define $ac_tr_func 1
|
|---|
| 2866 | EOF
|
|---|
| 2867 |
|
|---|
| 2868 | else
|
|---|
| 2869 | echo "$ac_t""no" 1>&6
|
|---|
| 2870 | fi
|
|---|
| 2871 | done
|
|---|
| 2872 |
|
|---|
| 2873 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
|---|
| 2874 | # for constant arguments. Useless!
|
|---|
| 2875 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
|---|
| 2876 | echo "configure:2877: checking for working alloca.h" >&5
|
|---|
| 2877 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
|
|---|
| 2878 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2879 | else
|
|---|
| 2880 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2881 | #line 2882 "configure"
|
|---|
| 2882 | #include "confdefs.h"
|
|---|
| 2883 | #include <alloca.h>
|
|---|
| 2884 | int main() {
|
|---|
| 2885 | char *p = alloca(2 * sizeof(int));
|
|---|
| 2886 | ; return 0; }
|
|---|
| 2887 | EOF
|
|---|
| 2888 | if { (eval echo configure:2889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 2889 | rm -rf conftest*
|
|---|
| 2890 | ac_cv_header_alloca_h=yes
|
|---|
| 2891 | else
|
|---|
| 2892 | echo "configure: failed program was:" >&5
|
|---|
| 2893 | cat conftest.$ac_ext >&5
|
|---|
| 2894 | rm -rf conftest*
|
|---|
| 2895 | ac_cv_header_alloca_h=no
|
|---|
| 2896 | fi
|
|---|
| 2897 | rm -f conftest*
|
|---|
| 2898 | fi
|
|---|
| 2899 |
|
|---|
| 2900 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
|---|
| 2901 | if test $ac_cv_header_alloca_h = yes; then
|
|---|
| 2902 | cat >> confdefs.h <<\EOF
|
|---|
| 2903 | #define HAVE_ALLOCA_H 1
|
|---|
| 2904 | EOF
|
|---|
| 2905 |
|
|---|
| 2906 | fi
|
|---|
| 2907 |
|
|---|
| 2908 | echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
|---|
| 2909 | echo "configure:2910: checking for alloca" >&5
|
|---|
| 2910 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
|
|---|
| 2911 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2912 | else
|
|---|
| 2913 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2914 | #line 2915 "configure"
|
|---|
| 2915 | #include "confdefs.h"
|
|---|
| 2916 |
|
|---|
| 2917 | #ifdef __GNUC__
|
|---|
| 2918 | # define alloca __builtin_alloca
|
|---|
| 2919 | #else
|
|---|
| 2920 | # ifdef _MSC_VER
|
|---|
| 2921 | # include <malloc.h>
|
|---|
| 2922 | # define alloca _alloca
|
|---|
| 2923 | # else
|
|---|
| 2924 | # if HAVE_ALLOCA_H
|
|---|
| 2925 | # include <alloca.h>
|
|---|
| 2926 | # else
|
|---|
| 2927 | # ifdef _AIX
|
|---|
| 2928 | #pragma alloca
|
|---|
| 2929 | # else
|
|---|
| 2930 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
|---|
| 2931 | char *alloca ();
|
|---|
| 2932 | # endif
|
|---|
|
|---|