| 1 | #! /bin/sh
|
|---|
| 2 |
|
|---|
| 3 | # Guess values for system-dependent variables and create Makefiles.
|
|---|
| 4 | # Generated automatically using autoconf version 2.13
|
|---|
| 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
|
|---|
| 6 | #
|
|---|
| 7 | # This configure script is free software; the Free Software Foundation
|
|---|
| 8 | # gives unlimited permission to copy, distribute and modify it.
|
|---|
| 9 |
|
|---|
| 10 | # Defaults:
|
|---|
| 11 | ac_help=
|
|---|
| 12 | ac_default_prefix=/usr/local
|
|---|
| 13 | # Any additions from configure.in:
|
|---|
| 14 | ac_help="$ac_help
|
|---|
| 15 | --with-target-subdir=SUBDIR
|
|---|
| 16 | configuring in a subdirectory"
|
|---|
| 17 | ac_help="$ac_help
|
|---|
| 18 | --with-cross-host=HOST configuring with a cross compiler"
|
|---|
| 19 | ac_help="$ac_help
|
|---|
| 20 | --enable-multilib build many library versions (default)"
|
|---|
| 21 | ac_help="$ac_help
|
|---|
| 22 | --enable-maintainer-mode enable make rules and dependencies not useful
|
|---|
| 23 | (and sometimes confusing) to the casual installer"
|
|---|
| 24 | ac_help="$ac_help
|
|---|
| 25 | --enable-shared[=PKGS] build shared libraries [default=yes]"
|
|---|
| 26 | ac_help="$ac_help
|
|---|
| 27 | --enable-static[=PKGS] build static libraries [default=yes]"
|
|---|
| 28 | ac_help="$ac_help
|
|---|
| 29 | --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
|
|---|
| 30 | ac_help="$ac_help
|
|---|
| 31 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
|
|---|
| 32 | ac_help="$ac_help
|
|---|
| 33 | --disable-libtool-lock avoid locking (might break parallel builds)"
|
|---|
| 34 | ac_help="$ac_help
|
|---|
| 35 | --with-pic try to use only PIC/non-PIC objects [default=use both]"
|
|---|
| 36 | ac_help="$ac_help
|
|---|
| 37 | --disable-getenv-properties
|
|---|
| 38 | don't set system properties from GCJ_PROPERTIES"
|
|---|
| 39 | ac_help="$ac_help
|
|---|
| 40 | --enable-hash-synchronization
|
|---|
| 41 | Use global hash table for monitor locks"
|
|---|
| 42 | ac_help="$ac_help
|
|---|
| 43 | --enable-libgcj-debug enable runtime debugging code"
|
|---|
| 44 | ac_help="$ac_help
|
|---|
| 45 | --enable-interpreter enable interpreter"
|
|---|
| 46 | ac_help="$ac_help
|
|---|
| 47 | --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
|
|---|
| 48 | ac_help="$ac_help
|
|---|
| 49 | --disable-java-net disable java.net"
|
|---|
| 50 | ac_help="$ac_help
|
|---|
| 51 | --without-libffi don't use libffi"
|
|---|
| 52 | ac_help="$ac_help
|
|---|
| 53 | --disable-jvmpi disable JVMPI support"
|
|---|
| 54 | ac_help="$ac_help
|
|---|
| 55 | --with-ecos enable runtime eCos target support"
|
|---|
| 56 | ac_help="$ac_help
|
|---|
| 57 | --with-system-zlib use installed libz"
|
|---|
| 58 | ac_help="$ac_help
|
|---|
| 59 | --enable-java-gc=TYPE choose garbage collector [boehm]"
|
|---|
| 60 | ac_help="$ac_help
|
|---|
| 61 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
|
|---|
| 62 | ac_help="$ac_help
|
|---|
| 63 | --with-x use the X Window System"
|
|---|
| 64 | ac_help="$ac_help
|
|---|
| 65 | --enable-java-awt list of AWT peer implementations to be built"
|
|---|
| 66 |
|
|---|
| 67 | # Initialize some variables set by options.
|
|---|
| 68 | # The variables have the same names as the options, with
|
|---|
| 69 | # dashes changed to underlines.
|
|---|
| 70 | build=NONE
|
|---|
| 71 | cache_file=./config.cache
|
|---|
| 72 | exec_prefix=NONE
|
|---|
| 73 | host=NONE
|
|---|
| 74 | no_create=
|
|---|
| 75 | nonopt=NONE
|
|---|
| 76 | no_recursion=
|
|---|
| 77 | prefix=NONE
|
|---|
| 78 | program_prefix=NONE
|
|---|
| 79 | program_suffix=NONE
|
|---|
| 80 | program_transform_name=s,x,x,
|
|---|
| 81 | silent=
|
|---|
| 82 | site=
|
|---|
| 83 | srcdir=
|
|---|
| 84 | target=NONE
|
|---|
| 85 | verbose=
|
|---|
| 86 | x_includes=NONE
|
|---|
| 87 | x_libraries=NONE
|
|---|
| 88 | bindir='${exec_prefix}/bin'
|
|---|
| 89 | sbindir='${exec_prefix}/sbin'
|
|---|
| 90 | libexecdir='${exec_prefix}/libexec'
|
|---|
| 91 | datadir='${prefix}/share'
|
|---|
| 92 | sysconfdir='${prefix}/etc'
|
|---|
| 93 | sharedstatedir='${prefix}/com'
|
|---|
| 94 | localstatedir='${prefix}/var'
|
|---|
| 95 | libdir='${exec_prefix}/lib'
|
|---|
| 96 | includedir='${prefix}/include'
|
|---|
| 97 | oldincludedir='/usr/include'
|
|---|
| 98 | infodir='${prefix}/info'
|
|---|
| 99 | mandir='${prefix}/man'
|
|---|
| 100 |
|
|---|
| 101 | # Initialize some other variables.
|
|---|
| 102 | subdirs=
|
|---|
| 103 | MFLAGS= MAKEFLAGS=
|
|---|
| 104 | SHELL=${CONFIG_SHELL-/bin/sh}
|
|---|
| 105 | # Maximum number of lines to put in a shell here document.
|
|---|
| 106 | ac_max_here_lines=12
|
|---|
| 107 |
|
|---|
| 108 | ac_prev=
|
|---|
| 109 | for ac_option
|
|---|
| 110 | do
|
|---|
| 111 |
|
|---|
| 112 | # If the previous option needs an argument, assign it.
|
|---|
| 113 | if test -n "$ac_prev"; then
|
|---|
| 114 | eval "$ac_prev=\$ac_option"
|
|---|
| 115 | ac_prev=
|
|---|
| 116 | continue
|
|---|
| 117 | fi
|
|---|
| 118 |
|
|---|
| 119 | case "$ac_option" in
|
|---|
| 120 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
|---|
| 121 | *) ac_optarg= ;;
|
|---|
| 122 | esac
|
|---|
| 123 |
|
|---|
| 124 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
|---|
| 125 |
|
|---|
| 126 | case "$ac_option" in
|
|---|
| 127 |
|
|---|
| 128 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
|---|
| 129 | ac_prev=bindir ;;
|
|---|
| 130 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
|---|
| 131 | bindir="$ac_optarg" ;;
|
|---|
| 132 |
|
|---|
| 133 | -build | --build | --buil | --bui | --bu)
|
|---|
| 134 | ac_prev=build ;;
|
|---|
| 135 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
|---|
| 136 | build="$ac_optarg" ;;
|
|---|
| 137 |
|
|---|
| 138 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
|---|
| 139 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
|---|
| 140 | ac_prev=cache_file ;;
|
|---|
| 141 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
|---|
| 142 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
|---|
| 143 | cache_file="$ac_optarg" ;;
|
|---|
| 144 |
|
|---|
| 145 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
|---|
| 146 | ac_prev=datadir ;;
|
|---|
| 147 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
|---|
| 148 | | --da=*)
|
|---|
| 149 | datadir="$ac_optarg" ;;
|
|---|
| 150 |
|
|---|
| 151 | -disable-* | --disable-*)
|
|---|
| 152 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
|---|
| 153 | # Reject names that are not valid shell variable names.
|
|---|
| 154 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|---|
| 155 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|---|
| 156 | fi
|
|---|
| 157 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|---|
| 158 | eval "enable_${ac_feature}=no" ;;
|
|---|
| 159 |
|
|---|
| 160 | -enable-* | --enable-*)
|
|---|
| 161 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
|---|
| 162 | # Reject names that are not valid shell variable names.
|
|---|
| 163 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|---|
| 164 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|---|
| 165 | fi
|
|---|
| 166 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|---|
| 167 | case "$ac_option" in
|
|---|
| 168 | *=*) ;;
|
|---|
| 169 | *) ac_optarg=yes ;;
|
|---|
| 170 | esac
|
|---|
| 171 | eval "enable_${ac_feature}='$ac_optarg'" ;;
|
|---|
| 172 |
|
|---|
| 173 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
|---|
| 174 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
|---|
| 175 | | --exec | --exe | --ex)
|
|---|
| 176 | ac_prev=exec_prefix ;;
|
|---|
| 177 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
|---|
| 178 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
|---|
| 179 | | --exec=* | --exe=* | --ex=*)
|
|---|
| 180 | exec_prefix="$ac_optarg" ;;
|
|---|
| 181 |
|
|---|
| 182 | -gas | --gas | --ga | --g)
|
|---|
| 183 | # Obsolete; use --with-gas.
|
|---|
| 184 | with_gas=yes ;;
|
|---|
| 185 |
|
|---|
| 186 | -help | --help | --hel | --he)
|
|---|
| 187 | # Omit some internal or obsolete options to make the list less imposing.
|
|---|
| 188 | # This message is too long to be a string in the A/UX 3.1 sh.
|
|---|
| 189 | cat << EOF
|
|---|
| 190 | Usage: configure [options] [host]
|
|---|
| 191 | Options: [defaults in brackets after descriptions]
|
|---|
| 192 | Configuration:
|
|---|
| 193 | --cache-file=FILE cache test results in FILE
|
|---|
| 194 | --help print this message
|
|---|
| 195 | --no-create do not create output files
|
|---|
| 196 | --quiet, --silent do not print \`checking...' messages
|
|---|
| 197 | --version print the version of autoconf that created configure
|
|---|
| 198 | Directory and file names:
|
|---|
| 199 | --prefix=PREFIX install architecture-independent files in PREFIX
|
|---|
| 200 | [$ac_default_prefix]
|
|---|
| 201 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
|---|
| 202 | [same as prefix]
|
|---|
| 203 | --bindir=DIR user executables in DIR [EPREFIX/bin]
|
|---|
| 204 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
|---|
| 205 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
|---|
| 206 | --datadir=DIR read-only architecture-independent data in DIR
|
|---|
| 207 | [PREFIX/share]
|
|---|
| 208 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
|---|
| 209 | --sharedstatedir=DIR modifiable architecture-independent data in DIR
|
|---|
| 210 | [PREFIX/com]
|
|---|
| 211 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
|---|
| 212 | --libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
|---|
| 213 | --includedir=DIR C header files in DIR [PREFIX/include]
|
|---|
| 214 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
|---|
| 215 | --infodir=DIR info documentation in DIR [PREFIX/info]
|
|---|
| 216 | --mandir=DIR man documentation in DIR [PREFIX/man]
|
|---|
| 217 | --srcdir=DIR find the sources in DIR [configure dir or ..]
|
|---|
| 218 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
|---|
| 219 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
|---|
| 220 | --program-transform-name=PROGRAM
|
|---|
| 221 | run sed PROGRAM on installed program names
|
|---|
| 222 | EOF
|
|---|
| 223 | cat << EOF
|
|---|
| 224 | Host type:
|
|---|
| 225 | --build=BUILD configure for building on BUILD [BUILD=HOST]
|
|---|
| 226 | --host=HOST configure for HOST [guessed]
|
|---|
| 227 | --target=TARGET configure for TARGET [TARGET=HOST]
|
|---|
| 228 | Features and packages:
|
|---|
| 229 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
|---|
| 230 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
|---|
| 231 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
|---|
| 232 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
|---|
| 233 | --x-includes=DIR X include files are in DIR
|
|---|
| 234 | --x-libraries=DIR X library files are in DIR
|
|---|
| 235 | EOF
|
|---|
| 236 | if test -n "$ac_help"; then
|
|---|
| 237 | echo "--enable and --with options recognized:$ac_help"
|
|---|
| 238 | fi
|
|---|
| 239 | exit 0 ;;
|
|---|
| 240 |
|
|---|
| 241 | -host | --host | --hos | --ho)
|
|---|
| 242 | ac_prev=host ;;
|
|---|
| 243 | -host=* | --host=* | --hos=* | --ho=*)
|
|---|
| 244 | host="$ac_optarg" ;;
|
|---|
| 245 |
|
|---|
| 246 | -includedir | --includedir | --includedi | --included | --include \
|
|---|
| 247 | | --includ | --inclu | --incl | --inc)
|
|---|
| 248 | ac_prev=includedir ;;
|
|---|
| 249 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
|---|
| 250 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
|---|
| 251 | includedir="$ac_optarg" ;;
|
|---|
| 252 |
|
|---|
| 253 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
|---|
| 254 | ac_prev=infodir ;;
|
|---|
| 255 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
|---|
| 256 | infodir="$ac_optarg" ;;
|
|---|
| 257 |
|
|---|
| 258 | -libdir | --libdir | --libdi | --libd)
|
|---|
| 259 | ac_prev=libdir ;;
|
|---|
| 260 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
|---|
| 261 | libdir="$ac_optarg" ;;
|
|---|
| 262 |
|
|---|
| 263 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
|---|
| 264 | | --libexe | --libex | --libe)
|
|---|
| 265 | ac_prev=libexecdir ;;
|
|---|
| 266 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
|---|
| 267 | | --libexe=* | --libex=* | --libe=*)
|
|---|
| 268 | libexecdir="$ac_optarg" ;;
|
|---|
| 269 |
|
|---|
| 270 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
|---|
| 271 | | --localstate | --localstat | --localsta | --localst \
|
|---|
| 272 | | --locals | --local | --loca | --loc | --lo)
|
|---|
| 273 | ac_prev=localstatedir ;;
|
|---|
| 274 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
|---|
| 275 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
|---|
| 276 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
|---|
| 277 | localstatedir="$ac_optarg" ;;
|
|---|
| 278 |
|
|---|
| 279 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
|---|
| 280 | ac_prev=mandir ;;
|
|---|
| 281 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
|---|
| 282 | mandir="$ac_optarg" ;;
|
|---|
| 283 |
|
|---|
| 284 | -nfp | --nfp | --nf)
|
|---|
| 285 | # Obsolete; use --without-fp.
|
|---|
| 286 | with_fp=no ;;
|
|---|
| 287 |
|
|---|
| 288 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|---|
| 289 | | --no-cr | --no-c)
|
|---|
| 290 | no_create=yes ;;
|
|---|
| 291 |
|
|---|
| 292 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|---|
| 293 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
|---|
| 294 | no_recursion=yes ;;
|
|---|
| 295 |
|
|---|
| 296 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
|---|
| 297 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
|---|
| 298 | | --oldin | --oldi | --old | --ol | --o)
|
|---|
| 299 | ac_prev=oldincludedir ;;
|
|---|
| 300 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
|---|
| 301 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
|---|
| 302 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
|---|
| 303 | oldincludedir="$ac_optarg" ;;
|
|---|
| 304 |
|
|---|
| 305 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
|---|
| 306 | ac_prev=prefix ;;
|
|---|
| 307 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
|---|
| 308 | prefix="$ac_optarg" ;;
|
|---|
| 309 |
|
|---|
| 310 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
|---|
| 311 | | --program-pre | --program-pr | --program-p)
|
|---|
| 312 | ac_prev=program_prefix ;;
|
|---|
| 313 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
|---|
| 314 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
|---|
| 315 | program_prefix="$ac_optarg" ;;
|
|---|
| 316 |
|
|---|
| 317 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
|---|
| 318 | | --program-suf | --program-su | --program-s)
|
|---|
| 319 | ac_prev=program_suffix ;;
|
|---|
| 320 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
|---|
| 321 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
|---|
| 322 | program_suffix="$ac_optarg" ;;
|
|---|
| 323 |
|
|---|
| 324 | -program-transform-name | --program-transform-name \
|
|---|
| 325 | | --program-transform-nam | --program-transform-na \
|
|---|
| 326 | | --program-transform-n | --program-transform- \
|
|---|
| 327 | | --program-transform | --program-transfor \
|
|---|
| 328 | | --program-transfo | --program-transf \
|
|---|
| 329 | | --program-trans | --program-tran \
|
|---|
| 330 | | --progr-tra | --program-tr | --program-t)
|
|---|
| 331 | ac_prev=program_transform_name ;;
|
|---|
| 332 | -program-transform-name=* | --program-transform-name=* \
|
|---|
| 333 | | --program-transform-nam=* | --program-transform-na=* \
|
|---|
| 334 | | --program-transform-n=* | --program-transform-=* \
|
|---|
| 335 | | --program-transform=* | --program-transfor=* \
|
|---|
| 336 | | --program-transfo=* | --program-transf=* \
|
|---|
| 337 | | --program-trans=* | --program-tran=* \
|
|---|
| 338 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
|---|
| 339 | program_transform_name="$ac_optarg" ;;
|
|---|
| 340 |
|
|---|
| 341 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|---|
| 342 | | -silent | --silent | --silen | --sile | --sil)
|
|---|
| 343 | silent=yes ;;
|
|---|
| 344 |
|
|---|
| 345 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
|---|
| 346 | ac_prev=sbindir ;;
|
|---|
| 347 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
|---|
| 348 | | --sbi=* | --sb=*)
|
|---|
| 349 | sbindir="$ac_optarg" ;;
|
|---|
| 350 |
|
|---|
| 351 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
|---|
| 352 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
|---|
| 353 | | --sharedst | --shareds | --shared | --share | --shar \
|
|---|
| 354 | | --sha | --sh)
|
|---|
| 355 | ac_prev=sharedstatedir ;;
|
|---|
| 356 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
|---|
| 357 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
|---|
| 358 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
|---|
| 359 | | --sha=* | --sh=*)
|
|---|
| 360 | sharedstatedir="$ac_optarg" ;;
|
|---|
| 361 |
|
|---|
| 362 | -site | --site | --sit)
|
|---|
| 363 | ac_prev=site ;;
|
|---|
| 364 | -site=* | --site=* | --sit=*)
|
|---|
| 365 | site="$ac_optarg" ;;
|
|---|
| 366 |
|
|---|
| 367 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
|---|
| 368 | ac_prev=srcdir ;;
|
|---|
| 369 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
|---|
| 370 | srcdir="$ac_optarg" ;;
|
|---|
| 371 |
|
|---|
| 372 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
|---|
| 373 | | --syscon | --sysco | --sysc | --sys | --sy)
|
|---|
| 374 | ac_prev=sysconfdir ;;
|
|---|
| 375 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
|---|
| 376 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
|---|
| 377 | sysconfdir="$ac_optarg" ;;
|
|---|
| 378 |
|
|---|
| 379 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
|---|
| 380 | ac_prev=target ;;
|
|---|
| 381 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
|---|
| 382 | target="$ac_optarg" ;;
|
|---|
| 383 |
|
|---|
| 384 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
|---|
| 385 | verbose=yes ;;
|
|---|
| 386 |
|
|---|
| 387 | -version | --version | --versio | --versi | --vers)
|
|---|
| 388 | echo "configure generated by autoconf version 2.13"
|
|---|
| 389 | exit 0 ;;
|
|---|
| 390 |
|
|---|
| 391 | -with-* | --with-*)
|
|---|
| 392 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
|---|
| 393 | # Reject names that are not valid shell variable names.
|
|---|
| 394 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|---|
| 395 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|---|
| 396 | fi
|
|---|
| 397 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|---|
| 398 | case "$ac_option" in
|
|---|
| 399 | *=*) ;;
|
|---|
| 400 | *) ac_optarg=yes ;;
|
|---|
| 401 | esac
|
|---|
| 402 | eval "with_${ac_package}='$ac_optarg'" ;;
|
|---|
| 403 |
|
|---|
| 404 | -without-* | --without-*)
|
|---|
| 405 | ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
|---|
| 406 | # Reject names that are not valid shell variable names.
|
|---|
| 407 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|---|
| 408 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|---|
| 409 | fi
|
|---|
| 410 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|---|
| 411 | eval "with_${ac_package}=no" ;;
|
|---|
| 412 |
|
|---|
| 413 | --x)
|
|---|
| 414 | # Obsolete; use --with-x.
|
|---|
| 415 | with_x=yes ;;
|
|---|
| 416 |
|
|---|
| 417 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
|---|
| 418 | | --x-incl | --x-inc | --x-in | --x-i)
|
|---|
| 419 | ac_prev=x_includes ;;
|
|---|
| 420 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
|---|
| 421 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
|---|
| 422 | x_includes="$ac_optarg" ;;
|
|---|
| 423 |
|
|---|
| 424 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
|---|
| 425 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
|---|
| 426 | ac_prev=x_libraries ;;
|
|---|
| 427 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
|---|
| 428 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
|---|
| 429 | x_libraries="$ac_optarg" ;;
|
|---|
| 430 |
|
|---|
| 431 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
|---|
| 432 | ;;
|
|---|
| 433 |
|
|---|
| 434 | *)
|
|---|
| 435 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
|---|
| 436 | echo "configure: warning: $ac_option: invalid host type" 1>&2
|
|---|
| 437 | fi
|
|---|
| 438 | if test "x$nonopt" != xNONE; then
|
|---|
| 439 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
|---|
| 440 | fi
|
|---|
| 441 | nonopt="$ac_option"
|
|---|
| 442 | ;;
|
|---|
| 443 |
|
|---|
| 444 | esac
|
|---|
| 445 | done
|
|---|
| 446 |
|
|---|
| 447 | if test -n "$ac_prev"; then
|
|---|
| 448 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
|---|
| 449 | fi
|
|---|
| 450 |
|
|---|
| 451 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|---|
| 452 |
|
|---|
| 453 | # File descriptor usage:
|
|---|
| 454 | # 0 standard input
|
|---|
| 455 | # 1 file creation
|
|---|
| 456 | # 2 errors and warnings
|
|---|
| 457 | # 3 some systems may open it to /dev/tty
|
|---|
| 458 | # 4 used on the Kubota Titan
|
|---|
| 459 | # 6 checking for... messages and results
|
|---|
| 460 | # 5 compiler messages saved in config.log
|
|---|
| 461 | if test "$silent" = yes; then
|
|---|
| 462 | exec 6>/dev/null
|
|---|
| 463 | else
|
|---|
| 464 | exec 6>&1
|
|---|
| 465 | fi
|
|---|
| 466 | exec 5>./config.log
|
|---|
| 467 |
|
|---|
| 468 | echo "\
|
|---|
| 469 | This file contains any messages produced by compilers while
|
|---|
| 470 | running configure, to aid debugging if configure makes a mistake.
|
|---|
| 471 | " 1>&5
|
|---|
| 472 |
|
|---|
| 473 | # Strip out --no-create and --no-recursion so they do not pile up.
|
|---|
| 474 | # Also quote any args containing shell metacharacters.
|
|---|
| 475 | ac_configure_args=
|
|---|
| 476 | for ac_arg
|
|---|
| 477 | do
|
|---|
| 478 | case "$ac_arg" in
|
|---|
| 479 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|---|
| 480 | | --no-cr | --no-c) ;;
|
|---|
| 481 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|---|
| 482 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
|---|
| 483 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
|---|
| 484 | ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
|---|
| 485 | *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
|---|
| 486 | esac
|
|---|
| 487 | done
|
|---|
| 488 |
|
|---|
| 489 | # NLS nuisances.
|
|---|
| 490 | # Only set these to C if already set. These must not be set unconditionally
|
|---|
| 491 | # because not all systems understand e.g. LANG=C (notably SCO).
|
|---|
| 492 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
|---|
| 493 | # Non-C LC_CTYPE values break the ctype check.
|
|---|
| 494 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
|---|
| 495 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
|---|
| 496 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
|---|
| 497 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
|---|
| 498 |
|
|---|
| 499 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
|---|
| 500 | rm -rf conftest* confdefs.h
|
|---|
| 501 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
|---|
| 502 | echo > confdefs.h
|
|---|
| 503 |
|
|---|
| 504 | # A filename unique to this package, relative to the directory that
|
|---|
| 505 | # configure is in, which we can look for to find out if srcdir is correct.
|
|---|
| 506 | ac_unique_file=java/lang/System.java
|
|---|
| 507 |
|
|---|
| 508 | # Find the source files, if location was not specified.
|
|---|
| 509 | if test -z "$srcdir"; then
|
|---|
| 510 | ac_srcdir_defaulted=yes
|
|---|
| 511 | # Try the directory containing this script, then its parent.
|
|---|
| 512 | ac_prog=$0
|
|---|
| 513 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
|---|
| 514 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
|---|
| 515 | srcdir=$ac_confdir
|
|---|
| 516 | if test ! -r $srcdir/$ac_unique_file; then
|
|---|
| 517 | srcdir=..
|
|---|
| 518 | fi
|
|---|
| 519 | else
|
|---|
| 520 | ac_srcdir_defaulted=no
|
|---|
| 521 | fi
|
|---|
| 522 | if test ! -r $srcdir/$ac_unique_file; then
|
|---|
| 523 | if test "$ac_srcdir_defaulted" = yes; then
|
|---|
| 524 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
|---|
| 525 | else
|
|---|
| 526 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
|---|
| 527 | fi
|
|---|
| 528 | fi
|
|---|
| 529 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
|---|
| 530 |
|
|---|
| 531 | # Prefer explicitly selected file to automatically selected ones.
|
|---|
| 532 | if test -z "$CONFIG_SITE"; then
|
|---|
| 533 | if test "x$prefix" != xNONE; then
|
|---|
| 534 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
|---|
| 535 | else
|
|---|
| 536 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
|---|
| 537 | fi
|
|---|
| 538 | fi
|
|---|
| 539 | for ac_site_file in $CONFIG_SITE; do
|
|---|
| 540 | if test -r "$ac_site_file"; then
|
|---|
| 541 | echo "loading site script $ac_site_file"
|
|---|
| 542 | . "$ac_site_file"
|
|---|
| 543 | fi
|
|---|
| 544 | done
|
|---|
| 545 |
|
|---|
| 546 | if test -r "$cache_file"; then
|
|---|
| 547 | echo "loading cache $cache_file"
|
|---|
| 548 | . $cache_file
|
|---|
| 549 | else
|
|---|
| 550 | echo "creating cache $cache_file"
|
|---|
| 551 | > $cache_file
|
|---|
| 552 | fi
|
|---|
| 553 |
|
|---|
| 554 | ac_ext=c
|
|---|
| 555 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 556 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 557 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 558 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 559 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 560 |
|
|---|
| 561 | ac_exeext=
|
|---|
| 562 | ac_objext=o
|
|---|
| 563 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
|---|
| 564 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
|---|
| 565 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
|---|
| 566 | ac_n= ac_c='
|
|---|
| 567 | ' ac_t=' '
|
|---|
| 568 | else
|
|---|
| 569 | ac_n=-n ac_c= ac_t=
|
|---|
| 570 | fi
|
|---|
| 571 | else
|
|---|
| 572 | ac_n= ac_c='\c' ac_t=
|
|---|
| 573 | fi
|
|---|
| 574 |
|
|---|
| 575 | echo $ac_n "checking for path separator""... $ac_c" 1>&6
|
|---|
| 576 | echo "configure:577: checking for path separator" >&5
|
|---|
| 577 | # Filter path to get backslahes into forwardslashes
|
|---|
| 578 | case "`uname -s 2> /dev/null`" in
|
|---|
| 579 | OS/2)
|
|---|
| 580 | PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
|
|---|
| 581 | PATH_IFS=';'
|
|---|
| 582 | ;;
|
|---|
| 583 | *)
|
|---|
| 584 | PATH_IFS=':'
|
|---|
| 585 | ;;
|
|---|
| 586 | esac
|
|---|
| 587 | echo "$ac_t""${PATH_IFS}" 1>&6
|
|---|
| 588 |
|
|---|
| 589 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
|
|---|
| 590 | echo "configure:591: checking for Cygwin environment" >&5
|
|---|
| 591 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
|
|---|
| 592 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 593 | else
|
|---|
| 594 | cat > conftest.$ac_ext <<EOF
|
|---|
| 595 | #line 596 "configure"
|
|---|
| 596 | #include "confdefs.h"
|
|---|
| 597 |
|
|---|
| 598 | int main() {
|
|---|
| 599 |
|
|---|
| 600 | #ifndef __CYGWIN__
|
|---|
| 601 | #define __CYGWIN__ __CYGWIN32__
|
|---|
| 602 | #endif
|
|---|
| 603 | return __CYGWIN__;
|
|---|
| 604 | ; return 0; }
|
|---|
| 605 | EOF
|
|---|
| 606 | if { (eval echo configure:607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 607 | rm -rf conftest*
|
|---|
| 608 | ac_cv_cygwin=yes
|
|---|
| 609 | else
|
|---|
| 610 | echo "configure: failed program was:" >&5
|
|---|
| 611 | cat conftest.$ac_ext >&5
|
|---|
| 612 | rm -rf conftest*
|
|---|
| 613 | ac_cv_cygwin=no
|
|---|
| 614 | fi
|
|---|
| 615 | rm -f conftest*
|
|---|
| 616 | rm -f conftest*
|
|---|
| 617 | fi
|
|---|
| 618 |
|
|---|
| 619 | echo "$ac_t""$ac_cv_cygwin" 1>&6
|
|---|
| 620 | CYGWIN=
|
|---|
| 621 | test "$ac_cv_cygwin" = yes && CYGWIN=yes
|
|---|
| 622 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
|
|---|
| 623 | echo "configure:624: checking for mingw32 environment" >&5
|
|---|
| 624 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
|
|---|
| 625 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 626 | else
|
|---|
| 627 | cat > conftest.$ac_ext <<EOF
|
|---|
| 628 | #line 629 "configure"
|
|---|
| 629 | #include "confdefs.h"
|
|---|
| 630 |
|
|---|
| 631 | int main() {
|
|---|
| 632 | return __MINGW32__;
|
|---|
| 633 | ; return 0; }
|
|---|
| 634 | EOF
|
|---|
| 635 | if { (eval echo configure:636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 636 | rm -rf conftest*
|
|---|
| 637 | ac_cv_mingw32=yes
|
|---|
| 638 | else
|
|---|
| 639 | echo "configure: failed program was:" >&5
|
|---|
| 640 | cat conftest.$ac_ext >&5
|
|---|
| 641 | rm -rf conftest*
|
|---|
| 642 | ac_cv_mingw32=no
|
|---|
| 643 | fi
|
|---|
| 644 | rm -f conftest*
|
|---|
| 645 | rm -f conftest*
|
|---|
| 646 | fi
|
|---|
| 647 |
|
|---|
| 648 | echo "$ac_t""$ac_cv_mingw32" 1>&6
|
|---|
| 649 | MINGW32=
|
|---|
| 650 | test "$ac_cv_mingw32" = yes && MINGW32=yes
|
|---|
| 651 | echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
|
|---|
| 652 | echo "configure:653: checking for EMX/OS2 environment" >&5
|
|---|
| 653 | if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
|
|---|
| 654 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 655 | else
|
|---|
| 656 | : ${CC=gcc.exe}
|
|---|
| 657 | cat > conftest.$ac_ext <<EOF
|
|---|
| 658 | #line 659 "configure"
|
|---|
| 659 | #include "confdefs.h"
|
|---|
| 660 |
|
|---|
| 661 | int main() {
|
|---|
| 662 | return __EMX__;
|
|---|
| 663 | ; return 0; }
|
|---|
| 664 | EOF
|
|---|
| 665 | if { (eval echo configure:666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 666 | rm -rf conftest*
|
|---|
| 667 | ac_cv_emxos2=yes
|
|---|
| 668 | else
|
|---|
| 669 | echo "configure: failed program was:" >&5
|
|---|
| 670 | cat conftest.$ac_ext >&5
|
|---|
| 671 | rm -rf conftest*
|
|---|
| 672 | ac_cv_emxos2=no
|
|---|
| 673 | fi
|
|---|
| 674 | rm -f conftest*
|
|---|
| 675 | rm -f conftest*
|
|---|
| 676 | fi
|
|---|
| 677 |
|
|---|
| 678 | echo "$ac_t""$ac_cv_emxos2" 1>&6
|
|---|
| 679 | if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
|
|---|
| 680 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 681 | else
|
|---|
| 682 | if test "$ac_cv_emxos2" = yes ; then
|
|---|
| 683 | ac_cv_libpre=
|
|---|
| 684 | else
|
|---|
| 685 | ac_cv_libpre=lib
|
|---|
| 686 | fi
|
|---|
| 687 |
|
|---|
| 688 | fi
|
|---|
| 689 |
|
|---|
| 690 | EMXOS2=
|
|---|
| 691 | test "$ac_cv_emxos2" = yes && EMXOS2=yes
|
|---|
| 692 |
|
|---|
| 693 |
|
|---|
| 694 |
|
|---|
| 695 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
|---|
| 696 | echo "configure:697: checking for executable suffix" >&5
|
|---|
| 697 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
|---|
| 698 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 699 | else
|
|---|
| 700 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
|---|
| 701 | ac_cv_exeext=.exe
|
|---|
| 702 | else
|
|---|
| 703 | rm -f conftest*
|
|---|
| 704 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
|---|
| 705 | ac_cv_exeext=
|
|---|
| 706 | if { (eval echo configure:707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
|---|
| 707 | for file in conftest.*; do
|
|---|
| 708 | case $file in
|
|---|
| 709 | *.c | *.o | *.obj) ;;
|
|---|
| 710 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
|---|
| 711 | esac
|
|---|
| 712 | done
|
|---|
| 713 | else
|
|---|
| 714 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 715 | fi
|
|---|
| 716 | rm -f conftest*
|
|---|
| 717 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
|---|
| 718 | fi
|
|---|
| 719 | fi
|
|---|
| 720 |
|
|---|
| 721 | EXEEXT=""
|
|---|
| 722 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
|---|
| 723 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
|---|
| 724 | ac_exeext=$EXEEXT
|
|---|
| 725 |
|
|---|
| 726 |
|
|---|
| 727 |
|
|---|
| 728 | # This works around the fact that libtool configuration may change LD
|
|---|
| 729 | # for this particular configuration, but some shells, instead of
|
|---|
| 730 | # keeping the changes in LD private, export them just because LD is
|
|---|
| 731 | # exported.
|
|---|
| 732 | ORIGINAL_LD_FOR_MULTILIBS=$LD
|
|---|
| 733 |
|
|---|
| 734 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
|---|
| 735 | echo "configure:736: checking whether ln -s works" >&5
|
|---|
| 736 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
|
|---|
| 737 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 738 | else
|
|---|
| 739 | rm -f conftestdata
|
|---|
| 740 | if ln -s X conftestdata 2>/dev/null
|
|---|
| 741 | then
|
|---|
| 742 | rm -f conftestdata
|
|---|
| 743 | ac_cv_prog_LN_S="ln -s"
|
|---|
| 744 | else
|
|---|
| 745 | echo A > conftestdata;
|
|---|
| 746 | if ln conftestdata conftestdata2 2>/dev/null; then
|
|---|
| 747 | ac_cv_prog_LN_S=ln
|
|---|
| 748 | else
|
|---|
| 749 | ac_cv_prog_LN_S=cp
|
|---|
| 750 | fi
|
|---|
| 751 | fi
|
|---|
| 752 | rm -f conftestdata*
|
|---|
| 753 | fi
|
|---|
| 754 | LN_S="$ac_cv_prog_LN_S"
|
|---|
| 755 | if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
|---|
| 756 | echo "$ac_t""yes" 1>&6
|
|---|
| 757 | else
|
|---|
| 758 | echo "$ac_t""no" 1>&6
|
|---|
| 759 | fi
|
|---|
| 760 |
|
|---|
| 761 |
|
|---|
| 762 | # Check whether --with-target-subdir or --without-target-subdir was given.
|
|---|
| 763 | if test "${with_target_subdir+set}" = set; then
|
|---|
| 764 | withval="$with_target_subdir"
|
|---|
| 765 | :
|
|---|
| 766 | fi
|
|---|
| 767 |
|
|---|
| 768 | # Check whether --with-cross-host or --without-cross-host was given.
|
|---|
| 769 | if test "${with_cross_host+set}" = set; then
|
|---|
| 770 | withval="$with_cross_host"
|
|---|
| 771 | :
|
|---|
| 772 | fi
|
|---|
| 773 |
|
|---|
| 774 |
|
|---|
| 775 | # Find a good install program. We prefer a C program (faster),
|
|---|
| 776 | # so one script is as good as another. But avoid the broken or
|
|---|
| 777 | # incompatible versions:
|
|---|
| 778 | # SysV /etc/install, /usr/sbin/install
|
|---|
| 779 | # SunOS /usr/etc/install
|
|---|
| 780 | # IRIX /sbin/install
|
|---|
| 781 | # AIX /bin/install
|
|---|
| 782 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
|---|
| 783 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|---|
| 784 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|---|
| 785 | # ./install, which can be erroneously created by make from ./install.sh.
|
|---|
| 786 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
|---|
| 787 | echo "configure:788: checking for a BSD compatible install" >&5
|
|---|
| 788 | if test -z "$INSTALL"; then
|
|---|
| 789 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
|---|
| 790 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 791 | else
|
|---|
| 792 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
|
|---|
| 793 | for ac_dir in $PATH; do
|
|---|
| 794 | # Account for people who put trailing slashes in PATH elements.
|
|---|
| 795 | case "$ac_dir/" in
|
|---|
| 796 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
|---|
| 797 | # We reject the install program from OS/2 or W3.1
|
|---|
| 798 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
|
|---|
| 799 | *)
|
|---|
| 800 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
|---|
| 801 | # Don't use installbsd from OSF since it installs stuff as root
|
|---|
| 802 | # by default.
|
|---|
| 803 | for ac_prog in ginstall scoinst install; do
|
|---|
| 804 | if test -f $ac_dir/$ac_prog$ac_exeext; then
|
|---|
| 805 | if test $ac_prog = install &&
|
|---|
| 806 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|---|
| 807 | # AIX install. It has an incompatible calling convention.
|
|---|
| 808 | :
|
|---|
| 809 | else
|
|---|
| 810 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
|
|---|
| 811 | break 2
|
|---|
| 812 | fi
|
|---|
| 813 | fi
|
|---|
| 814 | done
|
|---|
| 815 | ;;
|
|---|
| 816 | esac
|
|---|
| 817 | done
|
|---|
| 818 | IFS="$ac_save_IFS"
|
|---|
| 819 |
|
|---|
| 820 | fi
|
|---|
| 821 | if test "${ac_cv_path_install+set}" = set; then
|
|---|
| 822 | INSTALL="$ac_cv_path_install"
|
|---|
| 823 | else
|
|---|
| 824 | # As a last resort, use the slow shell script. We don't cache a
|
|---|
| 825 | # path for INSTALL within a source directory, because that will
|
|---|
| 826 | # break other packages using the cache if that directory is
|
|---|
| 827 | # removed, or if the path is relative.
|
|---|
| 828 | INSTALL="$ac_install_sh"
|
|---|
| 829 | fi
|
|---|
| 830 | fi
|
|---|
| 831 | echo "$ac_t""$INSTALL" 1>&6
|
|---|
| 832 |
|
|---|
| 833 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
|---|
| 834 | # It thinks the first close brace ends the variable substitution.
|
|---|
| 835 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|---|
| 836 |
|
|---|
| 837 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
|---|
| 838 |
|
|---|
| 839 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|---|
| 840 |
|
|---|
| 841 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
|
|---|
| 842 | echo "configure:843: checking whether build environment is sane" >&5
|
|---|
| 843 | # Just in case
|
|---|
| 844 | sleep 1
|
|---|
| 845 | echo timestamp > conftestfile
|
|---|
| 846 | # Do `set' in a subshell so we don't clobber the current shell's
|
|---|
| 847 | # arguments. Must try -L first in case configure is actually a
|
|---|
| 848 | # symlink; some systems play weird games with the mod time of symlinks
|
|---|
| 849 | # (eg FreeBSD returns the mod time of the symlink's containing
|
|---|
| 850 | # directory).
|
|---|
| 851 | if (
|
|---|
| 852 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
|
|---|
| 853 | if test "$*" = "X"; then
|
|---|
| 854 | # -L didn't work.
|
|---|
| 855 | set X `ls -t $srcdir/configure conftestfile`
|
|---|
| 856 | fi
|
|---|
| 857 | if test "$*" != "X $srcdir/configure conftestfile" \
|
|---|
| 858 | && test "$*" != "X conftestfile $srcdir/configure"; then
|
|---|
| 859 |
|
|---|
| 860 | # If neither matched, then we have a broken ls. This can happen
|
|---|
| 861 | # if, for instance, CONFIG_SHELL is bash and it inherits a
|
|---|
| 862 | # broken ls alias from the environment. This has actually
|
|---|
| 863 | # happened. Such a system could not be considered "sane".
|
|---|
| 864 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
|
|---|
| 865 | alias in your environment" 1>&2; exit 1; }
|
|---|
| 866 | fi
|
|---|
| 867 |
|
|---|
| 868 | test "$2" = conftestfile
|
|---|
| 869 | )
|
|---|
| 870 | then
|
|---|
| 871 | # Ok.
|
|---|
| 872 | :
|
|---|
| 873 | else
|
|---|
| 874 | { echo "configure: error: newly created file is older than distributed files!
|
|---|
| 875 | Check your system clock" 1>&2; exit 1; }
|
|---|
| 876 | fi
|
|---|
| 877 | rm -f conftest*
|
|---|
| 878 | echo "$ac_t""yes" 1>&6
|
|---|
| 879 | if test "$program_transform_name" = s,x,x,; then
|
|---|
| 880 | program_transform_name=
|
|---|
| 881 | else
|
|---|
| 882 | # Double any \ or $. echo might interpret backslashes.
|
|---|
| 883 | cat <<\EOF_SED > conftestsed
|
|---|
| 884 | s,\\,\\\\,g; s,\$,$$,g
|
|---|
| 885 | EOF_SED
|
|---|
| 886 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
|---|
| 887 | rm -f conftestsed
|
|---|
| 888 | fi
|
|---|
| 889 | test "$program_prefix" != NONE &&
|
|---|
| 890 | program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
|---|
| 891 | # Use a double $ so make ignores it.
|
|---|
| 892 | test "$program_suffix" != NONE &&
|
|---|
| 893 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
|---|
| 894 |
|
|---|
| 895 | # sed with no file args requires a program.
|
|---|
| 896 | test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
|---|
| 897 |
|
|---|
| 898 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
|---|
| 899 | echo "configure:900: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
|---|
| 900 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
|---|
| 901 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
|---|
| 902 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 903 | else
|
|---|
| 904 | cat > conftestmake <<\EOF
|
|---|
| 905 | all:
|
|---|
| 906 | @echo 'ac_maketemp="${MAKE}"'
|
|---|
| 907 | EOF
|
|---|
| 908 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|---|
| 909 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
|---|
| 910 | if test -n "$ac_maketemp"; then
|
|---|
| 911 | eval ac_cv_prog_make_${ac_make}_set=yes
|
|---|
| 912 | else
|
|---|
| 913 | eval ac_cv_prog_make_${ac_make}_set=no
|
|---|
| 914 | fi
|
|---|
| 915 | rm -f conftestmake
|
|---|
| 916 | fi
|
|---|
| 917 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
|---|
| 918 | echo "$ac_t""yes" 1>&6
|
|---|
| 919 | SET_MAKE=
|
|---|
| 920 | else
|
|---|
| 921 | echo "$ac_t""no" 1>&6
|
|---|
| 922 | SET_MAKE="MAKE=${MAKE-make}"
|
|---|
| 923 | fi
|
|---|
| 924 |
|
|---|
| 925 | if test $host != $build; then
|
|---|
| 926 | ac_tool_prefix=${host_alias}-
|
|---|
| 927 | else
|
|---|
| 928 | ac_tool_prefix=
|
|---|
| 929 | fi
|
|---|
| 930 |
|
|---|
| 931 |
|
|---|
| 932 | # Check whether --enable-multilib or --disable-multilib was given.
|
|---|
| 933 | if test "${enable_multilib+set}" = set; then
|
|---|
| 934 | enableval="$enable_multilib"
|
|---|
| 935 | case "${enableval}" in
|
|---|
| 936 | yes) multilib=yes ;;
|
|---|
| 937 | no) multilib=no ;;
|
|---|
| 938 | *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
|
|---|
| 939 | esac
|
|---|
| 940 | else
|
|---|
| 941 | multilib=yes
|
|---|
| 942 | fi
|
|---|
| 943 |
|
|---|
| 944 |
|
|---|
| 945 | # When building with srcdir == objdir, links to the source files will
|
|---|
| 946 | # be created in directories within the target_subdir. We have to
|
|---|
| 947 | # adjust toplevel_srcdir accordingly, so that configure finds
|
|---|
| 948 | # install-sh and other auxiliary files that live in the top-level
|
|---|
| 949 | # source directory.
|
|---|
| 950 | if test "${srcdir}" = "."; then
|
|---|
| 951 | if test -z "${with_target_subdir}"; then
|
|---|
| 952 | toprel=".."
|
|---|
| 953 | else
|
|---|
| 954 | if test "${with_target_subdir}" != "."; then
|
|---|
| 955 | toprel="${with_multisrctop}../.."
|
|---|
| 956 | else
|
|---|
| 957 | toprel="${with_multisrctop}.."
|
|---|
| 958 | fi
|
|---|
| 959 | fi
|
|---|
| 960 | else
|
|---|
| 961 | toprel=".."
|
|---|
| 962 | fi
|
|---|
| 963 |
|
|---|
| 964 | libgcj_basedir=$srcdir/$toprel/./libjava
|
|---|
| 965 |
|
|---|
| 966 |
|
|---|
| 967 | ac_aux_dir=
|
|---|
| 968 | for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
|
|---|
| 969 | if test -f $ac_dir/install-sh; then
|
|---|
| 970 | ac_aux_dir=$ac_dir
|
|---|
| 971 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
|---|
| 972 | break
|
|---|
| 973 | elif test -f $ac_dir/install.sh; then
|
|---|
| 974 | ac_aux_dir=$ac_dir
|
|---|
| 975 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
|---|
| 976 | break
|
|---|
| 977 | fi
|
|---|
| 978 | done
|
|---|
| 979 | if test -z "$ac_aux_dir"; then
|
|---|
| 980 | { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
|
|---|
| 981 | fi
|
|---|
| 982 | ac_config_guess=$ac_aux_dir/config.guess
|
|---|
| 983 | ac_config_sub=$ac_aux_dir/config.sub
|
|---|
| 984 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
|---|
| 985 |
|
|---|
| 986 | if :; then :; else
|
|---|
| 987 | # This overrides the previous occurrence for automake, but not for
|
|---|
| 988 | # autoconf, which is exactly what we want.
|
|---|
| 989 | ac_aux_dir=
|
|---|
| 990 | for ac_dir in .. $srcdir/..; do
|
|---|
| 991 | if test -f $ac_dir/install-sh; then
|
|---|
| 992 | ac_aux_dir=$ac_dir
|
|---|
| 993 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
|---|
| 994 | break
|
|---|
| 995 | elif test -f $ac_dir/install.sh; then
|
|---|
| 996 | ac_aux_dir=$ac_dir
|
|---|
| 997 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
|---|
| 998 | break
|
|---|
| 999 | fi
|
|---|
| 1000 | done
|
|---|
| 1001 | if test -z "$ac_aux_dir"; then
|
|---|
| 1002 | { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
|
|---|
| 1003 | fi
|
|---|
| 1004 | ac_config_guess=$ac_aux_dir/config.guess
|
|---|
| 1005 | ac_config_sub=$ac_aux_dir/config.sub
|
|---|
| 1006 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
|---|
| 1007 |
|
|---|
| 1008 | fi
|
|---|
| 1009 |
|
|---|
| 1010 | # This works around an automake problem.
|
|---|
| 1011 | mkinstalldirs="`cd $ac_aux_dir && pwd`/mkinstalldirs"
|
|---|
| 1012 |
|
|---|
| 1013 |
|
|---|
| 1014 |
|
|---|
| 1015 | # Do some error checking and defaulting for the host and target type.
|
|---|
| 1016 | # The inputs are:
|
|---|
| 1017 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT
|
|---|
| 1018 | #
|
|---|
| 1019 | # The rules are:
|
|---|
| 1020 | # 1. You are not allowed to specify --host, --target, and nonopt at the
|
|---|
| 1021 | # same time.
|
|---|
| 1022 | # 2. Host defaults to nonopt.
|
|---|
| 1023 | # 3. If nonopt is not specified, then host defaults to the current host,
|
|---|
| 1024 | # as determined by config.guess.
|
|---|
| 1025 | # 4. Target and build default to nonopt.
|
|---|
| 1026 | # 5. If nonopt is not specified, then target and build default to host.
|
|---|
| 1027 |
|
|---|
| 1028 | # The aliases save the names the user supplied, while $host etc.
|
|---|
| 1029 | # will get canonicalized.
|
|---|
| 1030 | case $host---$target---$nonopt in
|
|---|
| 1031 | NONE---*---* | *---NONE---* | *---*---NONE) ;;
|
|---|
| 1032 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
|
|---|
| 1033 | esac
|
|---|
| 1034 |
|
|---|
| 1035 |
|
|---|
| 1036 | # Make sure we can run config.sub.
|
|---|
| 1037 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
|
|---|
| 1038 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
|
|---|
| 1039 | fi
|
|---|
| 1040 |
|
|---|
| 1041 | echo $ac_n "checking host system type""... $ac_c" 1>&6
|
|---|
| 1042 | echo "configure:1043: checking host system type" >&5
|
|---|
| 1043 |
|
|---|
| 1044 | host_alias=$host
|
|---|
| 1045 | case "$host_alias" in
|
|---|
| 1046 | NONE)
|
|---|
| 1047 | case $nonopt in
|
|---|
| 1048 | NONE)
|
|---|
| 1049 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
|
|---|
| 1050 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
|
|---|
| 1051 | fi ;;
|
|---|
| 1052 | *) host_alias=$nonopt ;;
|
|---|
| 1053 | esac ;;
|
|---|
| 1054 | esac
|
|---|
| 1055 |
|
|---|
| 1056 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
|
|---|
| 1057 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 1058 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 1059 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 1060 | echo "$ac_t""$host" 1>&6
|
|---|
| 1061 |
|
|---|
| 1062 | echo $ac_n "checking target system type""... $ac_c" 1>&6
|
|---|
| 1063 | echo "configure:1064: checking target system type" >&5
|
|---|
| 1064 |
|
|---|
| 1065 | target_alias=$target
|
|---|
| 1066 | case "$target_alias" in
|
|---|
| 1067 | NONE)
|
|---|
| 1068 | case $nonopt in
|
|---|
| 1069 | NONE) target_alias=$host_alias ;;
|
|---|
| 1070 | *) target_alias=$nonopt ;;
|
|---|
| 1071 | esac ;;
|
|---|
| 1072 | esac
|
|---|
| 1073 |
|
|---|
| 1074 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
|
|---|
| 1075 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 1076 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 1077 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 1078 | echo "$ac_t""$target" 1>&6
|
|---|
| 1079 |
|
|---|
| 1080 | echo $ac_n "checking build system type""... $ac_c" 1>&6
|
|---|
| 1081 | echo "configure:1082: checking build system type" >&5
|
|---|
| 1082 |
|
|---|
| 1083 | build_alias=$build
|
|---|
| 1084 | case "$build_alias" in
|
|---|
| 1085 | NONE)
|
|---|
| 1086 | case $nonopt in
|
|---|
| 1087 | NONE) build_alias=$host_alias ;;
|
|---|
| 1088 | *) build_alias=$nonopt ;;
|
|---|
| 1089 | esac ;;
|
|---|
| 1090 | esac
|
|---|
| 1091 |
|
|---|
| 1092 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
|
|---|
| 1093 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 1094 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 1095 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 1096 | echo "$ac_t""$build" 1>&6
|
|---|
| 1097 |
|
|---|
| 1098 | test "$host_alias" != "$target_alias" &&
|
|---|
| 1099 | test "$program_prefix$program_suffix$program_transform_name" = \
|
|---|
| 1100 | NONENONEs,x,x, &&
|
|---|
| 1101 | program_prefix=${target_alias}-
|
|---|
| 1102 |
|
|---|
| 1103 |
|
|---|
| 1104 |
|
|---|
| 1105 |
|
|---|
| 1106 |
|
|---|
| 1107 | # Extract the first word of "gcc", so it can be a program name with args.
|
|---|
| 1108 | set dummy gcc; ac_word=$2
|
|---|
| 1109 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1110 | echo "configure:1111: checking for $ac_word" >&5
|
|---|
| 1111 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 1112 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1113 | else
|
|---|
| 1114 | if test -n "$CC"; then
|
|---|
| 1115 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 1116 | else
|
|---|
| 1117 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1118 | ac_dummy="$PATH"
|
|---|
| 1119 | for ac_dir in $ac_dummy; do
|
|---|
| 1120 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1121 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1122 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1123 | ac_cv_prog_CC="gcc"
|
|---|
| 1124 | break
|
|---|
| 1125 | fi
|
|---|
| 1126 | done
|
|---|
| 1127 | IFS="$ac_save_ifs"
|
|---|
| 1128 | fi
|
|---|
| 1129 | fi
|
|---|
| 1130 | CC="$ac_cv_prog_CC"
|
|---|
| 1131 | if test -n "$CC"; then
|
|---|
| 1132 | echo "$ac_t""$CC" 1>&6
|
|---|
| 1133 | else
|
|---|
| 1134 | echo "$ac_t""no" 1>&6
|
|---|
| 1135 | fi
|
|---|
| 1136 |
|
|---|
| 1137 | if test -z "$CC"; then
|
|---|
| 1138 | # Extract the first word of "cc", so it can be a program name with args.
|
|---|
| 1139 | set dummy cc; ac_word=$2
|
|---|
| 1140 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1141 | echo "configure:1142: checking for $ac_word" >&5
|
|---|
| 1142 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 1143 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1144 | else
|
|---|
| 1145 | if test -n "$CC"; then
|
|---|
| 1146 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 1147 | else
|
|---|
| 1148 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1149 | ac_prog_rejected=no
|
|---|
| 1150 | ac_dummy="$PATH"
|
|---|
| 1151 | for ac_dir in $ac_dummy; do
|
|---|
| 1152 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1153 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1154 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1155 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
|
|---|
| 1156 | "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
|
|---|
| 1157 | ac_prog_rejected=yes
|
|---|
| 1158 | continue
|
|---|
| 1159 | fi
|
|---|
| 1160 | ac_cv_prog_CC="cc"
|
|---|
| 1161 | break
|
|---|
| 1162 | fi
|
|---|
| 1163 | done
|
|---|
| 1164 | IFS="$ac_save_ifs"
|
|---|
| 1165 | if test $ac_prog_rejected = yes; then
|
|---|
| 1166 | # We found a bogon in the path, so make sure we never use it.
|
|---|
| 1167 | set dummy $ac_cv_prog_CC
|
|---|
| 1168 | shift
|
|---|
| 1169 | if test $# -gt 0; then
|
|---|
| 1170 | # We chose a different compiler from the bogus one.
|
|---|
| 1171 | # However, it has the same basename, so the bogon will be chosen
|
|---|
| 1172 | # first if we set CC to just the basename; use the full file name.
|
|---|
| 1173 | shift
|
|---|
| 1174 | set dummy "$ac_dir/$ac_word" "$@"
|
|---|
| 1175 | shift
|
|---|
| 1176 | ac_cv_prog_CC="$@"
|
|---|
| 1177 | fi
|
|---|
| 1178 | fi
|
|---|
| 1179 | fi
|
|---|
| 1180 | fi
|
|---|
| 1181 | CC="$ac_cv_prog_CC"
|
|---|
| 1182 | if test -n "$CC"; then
|
|---|
| 1183 | echo "$ac_t""$CC" 1>&6
|
|---|
| 1184 | else
|
|---|
| 1185 | echo "$ac_t""no" 1>&6
|
|---|
| 1186 | fi
|
|---|
| 1187 |
|
|---|
| 1188 | if test -z "$CC"; then
|
|---|
| 1189 | case "`uname -s`" in
|
|---|
| 1190 | *win32* | *WIN32*)
|
|---|
| 1191 | # Extract the first word of "cl", so it can be a program name with args.
|
|---|
| 1192 | set dummy cl; ac_word=$2
|
|---|
| 1193 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1194 | echo "configure:1195: checking for $ac_word" >&5
|
|---|
| 1195 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 1196 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1197 | else
|
|---|
| 1198 | if test -n "$CC"; then
|
|---|
| 1199 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 1200 | else
|
|---|
| 1201 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1202 | ac_dummy="$PATH"
|
|---|
| 1203 | for ac_dir in $ac_dummy; do
|
|---|
| 1204 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1205 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1206 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1207 | ac_cv_prog_CC="cl"
|
|---|
| 1208 | break
|
|---|
| 1209 | fi
|
|---|
| 1210 | done
|
|---|
| 1211 | IFS="$ac_save_ifs"
|
|---|
| 1212 | fi
|
|---|
| 1213 | fi
|
|---|
| 1214 | CC="$ac_cv_prog_CC"
|
|---|
| 1215 | if test -n "$CC"; then
|
|---|
| 1216 | echo "$ac_t""$CC" 1>&6
|
|---|
| 1217 | else
|
|---|
| 1218 | echo "$ac_t""no" 1>&6
|
|---|
| 1219 | fi
|
|---|
| 1220 | ;;
|
|---|
| 1221 | esac
|
|---|
| 1222 | fi
|
|---|
| 1223 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|---|
| 1224 | fi
|
|---|
| 1225 |
|
|---|
| 1226 |
|
|---|
| 1227 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
|---|
| 1228 | echo "configure:1229: checking whether we are using GNU C" >&5
|
|---|
| 1229 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
|---|
| 1230 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1231 | else
|
|---|
| 1232 | cat > conftest.c <<EOF
|
|---|
| 1233 | #ifdef __GNUC__
|
|---|
| 1234 | yes;
|
|---|
| 1235 | #endif
|
|---|
| 1236 | EOF
|
|---|
| 1237 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|---|
| 1238 | ac_cv_prog_gcc=yes
|
|---|
| 1239 | else
|
|---|
| 1240 | ac_cv_prog_gcc=no
|
|---|
| 1241 | fi
|
|---|
| 1242 | fi
|
|---|
| 1243 |
|
|---|
| 1244 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|---|
| 1245 |
|
|---|
| 1246 | if test $ac_cv_prog_gcc = yes; then
|
|---|
| 1247 | GCC=yes
|
|---|
| 1248 | else
|
|---|
| 1249 | GCC=
|
|---|
| 1250 | fi
|
|---|
| 1251 |
|
|---|
| 1252 | ac_test_CFLAGS="${CFLAGS+set}"
|
|---|
| 1253 | ac_save_CFLAGS="$CFLAGS"
|
|---|
| 1254 | CFLAGS=
|
|---|
| 1255 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|---|
| 1256 | echo "configure:1257: checking whether ${CC-cc} accepts -g" >&5
|
|---|
| 1257 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
|---|
| 1258 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1259 | else
|
|---|
| 1260 | echo 'void f(){}' > conftest.c
|
|---|
| 1261 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|---|
| 1262 | ac_cv_prog_cc_g=yes
|
|---|
| 1263 | else
|
|---|
| 1264 | ac_cv_prog_cc_g=no
|
|---|
| 1265 | fi
|
|---|
| 1266 | rm -f conftest*
|
|---|
| 1267 |
|
|---|
| 1268 | fi
|
|---|
| 1269 |
|
|---|
| 1270 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|---|
| 1271 | if test "$ac_test_CFLAGS" = set; then
|
|---|
| 1272 | CFLAGS="$ac_save_CFLAGS"
|
|---|
| 1273 | elif test $ac_cv_prog_cc_g = yes; then
|
|---|
| 1274 | if test "$GCC" = yes; then
|
|---|
| 1275 | CFLAGS="-g -O2"
|
|---|
| 1276 | else
|
|---|
| 1277 | CFLAGS="-g"
|
|---|
| 1278 | fi
|
|---|
| 1279 | else
|
|---|
| 1280 | if test "$GCC" = yes; then
|
|---|
| 1281 | CFLAGS="-O2"
|
|---|
| 1282 | else
|
|---|
| 1283 | CFLAGS=
|
|---|
| 1284 | fi
|
|---|
| 1285 | fi
|
|---|
| 1286 |
|
|---|
| 1287 |
|
|---|
| 1288 | # We use the libstdc++-v3 version of LIB_AC_PROG_CXX, but use
|
|---|
| 1289 | # glibjava_CXX instead of glibcpp_CXX. That's because we're passed a
|
|---|
| 1290 | # different definition of CXX than other directories, since we don't
|
|---|
| 1291 | # depend on libstdc++-v3 having already been built.
|
|---|
| 1292 |
|
|---|
| 1293 |
|
|---|
| 1294 |
|
|---|
| 1295 | # Use glibjava_CXX so that we do not cause CXX to be cached with the
|
|---|
| 1296 | # flags that come in CXX while configuring libjava. They're different
|
|---|
| 1297 | # from those used for all other target libraries. If CXX is set in
|
|---|
| 1298 | # the environment, respect that here.
|
|---|
| 1299 | glibjava_CXX=$CXX
|
|---|
| 1300 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++
|
|---|
| 1301 | do
|
|---|
| 1302 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|---|
| 1303 | set dummy $ac_prog; ac_word=$2
|
|---|
| 1304 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1305 | echo "configure:1306: checking for $ac_word" >&5
|
|---|
| 1306 | if eval "test \"`echo '$''{'ac_cv_prog_glibjava_CXX'+set}'`\" = set"; then
|
|---|
| 1307 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1308 | else
|
|---|
| 1309 | if test -n "$glibjava_CXX"; then
|
|---|
| 1310 | ac_cv_prog_glibjava_CXX="$glibjava_CXX" # Let the user override the test.
|
|---|
| 1311 | else
|
|---|
| 1312 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1313 | ac_dummy="$PATH"
|
|---|
| 1314 | for ac_dir in $ac_dummy; do
|
|---|
| 1315 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1316 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1317 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1318 | ac_cv_prog_glibjava_CXX="$ac_prog"
|
|---|
| 1319 | break
|
|---|
| 1320 | fi
|
|---|
| 1321 | done
|
|---|
| 1322 | IFS="$ac_save_ifs"
|
|---|
| 1323 | fi
|
|---|
| 1324 | fi
|
|---|
| 1325 | glibjava_CXX="$ac_cv_prog_glibjava_CXX"
|
|---|
| 1326 | if test -n "$glibjava_CXX"; then
|
|---|
| 1327 | echo "$ac_t""$glibjava_CXX" 1>&6
|
|---|
| 1328 | else
|
|---|
| 1329 | echo "$ac_t""no" 1>&6
|
|---|
| 1330 | fi
|
|---|
| 1331 |
|
|---|
| 1332 | test -n "$glibjava_CXX" && break
|
|---|
| 1333 | done
|
|---|
| 1334 | test -n "$glibjava_CXX" || glibjava_CXX="gcc"
|
|---|
| 1335 |
|
|---|
| 1336 |
|
|---|
| 1337 | CXX=$glibjava_CXX
|
|---|
| 1338 | test -z "$glibjava_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
|
|---|
| 1339 |
|
|---|
| 1340 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
|
|---|
| 1341 | echo "configure:1342: checking whether we are using GNU C++" >&5
|
|---|
| 1342 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
|
|---|
| 1343 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1344 | else
|
|---|
| 1345 | cat > conftest.C <<EOF
|
|---|
| 1346 | #ifdef __GNUC__
|
|---|
| 1347 | yes;
|
|---|
| 1348 | #endif
|
|---|
| 1349 | EOF
|
|---|
| 1350 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|---|
| 1351 | ac_cv_prog_gxx=yes
|
|---|
| 1352 | else
|
|---|
| 1353 | ac_cv_prog_gxx=no
|
|---|
| 1354 | fi
|
|---|
| 1355 | fi
|
|---|
| 1356 |
|
|---|
| 1357 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6
|
|---|
| 1358 |
|
|---|
| 1359 | if test $ac_cv_prog_gxx = yes; then
|
|---|
| 1360 | GXX=yes
|
|---|
| 1361 | ac_test_CXXFLAGS="${CXXFLAGS+set}"
|
|---|
| 1362 | ac_save_CXXFLAGS="$CXXFLAGS"
|
|---|
| 1363 | CXXFLAGS=
|
|---|
| 1364 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
|
|---|
| 1365 | echo "configure:1366: checking whether ${CXX-g++} accepts -g" >&5
|
|---|
| 1366 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
|
|---|
| 1367 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1368 | else
|
|---|
| 1369 | echo 'void f(){}' > conftest.cc
|
|---|
| 1370 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
|
|---|
| 1371 | ac_cv_prog_cxx_g=yes
|
|---|
| 1372 | else
|
|---|
| 1373 | ac_cv_prog_cxx_g=no
|
|---|
| 1374 | fi
|
|---|
| 1375 | rm -f conftest*
|
|---|
| 1376 |
|
|---|
| 1377 | fi
|
|---|
| 1378 |
|
|---|
| 1379 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
|
|---|
| 1380 | if test "$ac_test_CXXFLAGS" = set; then
|
|---|
| 1381 | CXXFLAGS="$ac_save_CXXFLAGS"
|
|---|
| 1382 | elif test $ac_cv_prog_cxx_g = yes; then
|
|---|
| 1383 | CXXFLAGS="-g -O2"
|
|---|
| 1384 | else
|
|---|
| 1385 | CXXFLAGS="-O2"
|
|---|
| 1386 | fi
|
|---|
| 1387 | else
|
|---|
| 1388 | GXX=
|
|---|
| 1389 | test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
|
|---|
| 1390 | fi
|
|---|
| 1391 |
|
|---|
| 1392 |
|
|---|
| 1393 | version=0.0.7
|
|---|
| 1394 |
|
|---|
| 1395 | PACKAGE=libjava
|
|---|
| 1396 |
|
|---|
| 1397 | VERSION=$version
|
|---|
| 1398 |
|
|---|
| 1399 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
|
|---|
| 1400 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
|
|---|
| 1401 | fi
|
|---|
| 1402 | cat >> confdefs.h <<EOF
|
|---|
| 1403 | #define PACKAGE "$PACKAGE"
|
|---|
| 1404 | EOF
|
|---|
| 1405 |
|
|---|
| 1406 | cat >> confdefs.h <<EOF
|
|---|
| 1407 | #define VERSION "$VERSION"
|
|---|
| 1408 | EOF
|
|---|
| 1409 |
|
|---|
| 1410 |
|
|---|
| 1411 |
|
|---|
| 1412 | missing_dir=`cd $ac_aux_dir && pwd`
|
|---|
| 1413 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
|
|---|
| 1414 | echo "configure:1415: checking for working aclocal" >&5
|
|---|
| 1415 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1416 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1417 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1418 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1419 | ACLOCAL=aclocal
|
|---|
| 1420 | echo "$ac_t""found" 1>&6
|
|---|
| 1421 | else
|
|---|
| 1422 | ACLOCAL="$missing_dir/missing aclocal"
|
|---|
| 1423 | echo "$ac_t""missing" 1>&6
|
|---|
| 1424 | fi
|
|---|
| 1425 |
|
|---|
| 1426 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
|
|---|
| 1427 | echo "configure:1428: checking for working autoconf" >&5
|
|---|
| 1428 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1429 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1430 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1431 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1432 | AUTOCONF=autoconf
|
|---|
| 1433 | echo "$ac_t""found" 1>&6
|
|---|
| 1434 | else
|
|---|
| 1435 | AUTOCONF="$missing_dir/missing autoconf"
|
|---|
| 1436 | echo "$ac_t""missing" 1>&6
|
|---|
| 1437 | fi
|
|---|
| 1438 |
|
|---|
| 1439 | echo $ac_n "checking for working automake""... $ac_c" 1>&6
|
|---|
| 1440 | echo "configure:1441: checking for working automake" >&5
|
|---|
| 1441 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1442 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1443 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1444 | if (automake --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1445 | AUTOMAKE=automake
|
|---|
| 1446 | echo "$ac_t""found" 1>&6
|
|---|
| 1447 | else
|
|---|
| 1448 | AUTOMAKE="$missing_dir/missing automake"
|
|---|
| 1449 | echo "$ac_t""missing" 1>&6
|
|---|
| 1450 | fi
|
|---|
| 1451 |
|
|---|
| 1452 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
|
|---|
| 1453 | echo "configure:1454: checking for working autoheader" >&5
|
|---|
| 1454 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1455 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1456 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1457 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1458 | AUTOHEADER=autoheader
|
|---|
| 1459 | echo "$ac_t""found" 1>&6
|
|---|
| 1460 | else
|
|---|
| 1461 | AUTOHEADER="$missing_dir/missing autoheader"
|
|---|
| 1462 | echo "$ac_t""missing" 1>&6
|
|---|
| 1463 | fi
|
|---|
| 1464 |
|
|---|
| 1465 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
|
|---|
| 1466 | echo "configure:1467: checking for working makeinfo" >&5
|
|---|
| 1467 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1468 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1469 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1470 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1471 | MAKEINFO=makeinfo
|
|---|
| 1472 | echo "$ac_t""found" 1>&6
|
|---|
| 1473 | else
|
|---|
| 1474 | MAKEINFO="$missing_dir/missing makeinfo"
|
|---|
| 1475 | echo "$ac_t""missing" 1>&6
|
|---|
| 1476 | fi
|
|---|
| 1477 |
|
|---|
| 1478 |
|
|---|
| 1479 |
|
|---|
| 1480 | # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
|
|---|
| 1481 | # run it explicitly here, it will be run implicitly before
|
|---|
| 1482 | # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
|
|---|
| 1483 | # be run before AC_CANONICAL_HOST.
|
|---|
| 1484 | echo $ac_n "checking build system type""... $ac_c" 1>&6
|
|---|
| 1485 | echo "configure:1486: checking build system type" >&5
|
|---|
| 1486 |
|
|---|
| 1487 | build_alias=$build
|
|---|
| 1488 | case "$build_alias" in
|
|---|
| 1489 | NONE)
|
|---|
| 1490 | case $nonopt in
|
|---|
| 1491 | NONE) build_alias=$host_alias ;;
|
|---|
| 1492 | *) build_alias=$nonopt ;;
|
|---|
| 1493 | esac ;;
|
|---|
| 1494 | esac
|
|---|
| 1495 |
|
|---|
| 1496 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
|
|---|
| 1497 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 1498 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 1499 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 1500 | echo "$ac_t""$build" 1>&6
|
|---|
| 1501 |
|
|---|
| 1502 |
|
|---|
| 1503 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
|
|---|
| 1504 | set dummy ${ac_tool_prefix}as; ac_word=$2
|
|---|
| 1505 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1506 | echo "configure:1507: checking for $ac_word" >&5
|
|---|
| 1507 | if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
|
|---|
| 1508 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1509 | else
|
|---|
| 1510 | if test -n "$AS"; then
|
|---|
| 1511 | ac_cv_prog_AS="$AS" # Let the user override the test.
|
|---|
| 1512 | else
|
|---|
| 1513 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1514 | ac_dummy="$PATH"
|
|---|
| 1515 | for ac_dir in $ac_dummy; do
|
|---|
| 1516 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1517 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1518 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1519 | ac_cv_prog_AS="${ac_tool_prefix}as"
|
|---|
| 1520 | break
|
|---|
| 1521 | fi
|
|---|
| 1522 | done
|
|---|
| 1523 | IFS="$ac_save_ifs"
|
|---|
| 1524 | test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
|
|---|
| 1525 | fi
|
|---|
| 1526 | fi
|
|---|
| 1527 | AS="$ac_cv_prog_AS"
|
|---|
| 1528 | if test -n "$AS"; then
|
|---|
| 1529 | echo "$ac_t""$AS" 1>&6
|
|---|
| 1530 | else
|
|---|
| 1531 | echo "$ac_t""no" 1>&6
|
|---|
| 1532 | fi
|
|---|
| 1533 |
|
|---|
| 1534 |
|
|---|
| 1535 |
|
|---|
| 1536 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
|---|
| 1537 | set dummy ${ac_tool_prefix}ar; ac_word=$2
|
|---|
| 1538 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1539 | echo "configure:1540: checking for $ac_word" >&5
|
|---|
| 1540 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
|
|---|
| 1541 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1542 | else
|
|---|
| 1543 | if test -n "$AR"; then
|
|---|
| 1544 | ac_cv_prog_AR="$AR" # Let the user override the test.
|
|---|
| 1545 | else
|
|---|
| 1546 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1547 | ac_dummy="$PATH"
|
|---|
| 1548 | for ac_dir in $ac_dummy; do
|
|---|
| 1549 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1550 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1551 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1552 | ac_cv_prog_AR="${ac_tool_prefix}ar"
|
|---|
| 1553 | break
|
|---|
| 1554 | fi
|
|---|
| 1555 | done
|
|---|
| 1556 | IFS="$ac_save_ifs"
|
|---|
| 1557 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
|
|---|
| 1558 | fi
|
|---|
| 1559 | fi
|
|---|
| 1560 | AR="$ac_cv_prog_AR"
|
|---|
| 1561 | if test -n "$AR"; then
|
|---|
| 1562 | echo "$ac_t""$AR" 1>&6
|
|---|
| 1563 | else
|
|---|
| 1564 | echo "$ac_t""no" 1>&6
|
|---|
| 1565 | fi
|
|---|
| 1566 |
|
|---|
| 1567 |
|
|---|
| 1568 |
|
|---|
| 1569 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
|---|
| 1570 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
|---|
| 1571 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1572 | echo "configure:1573: checking for $ac_word" >&5
|
|---|
| 1573 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 1574 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1575 | else
|
|---|
| 1576 | if test -n "$RANLIB"; then
|
|---|
| 1577 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 1578 | else
|
|---|
| 1579 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1580 | ac_dummy="$PATH"
|
|---|
| 1581 | for ac_dir in $ac_dummy; do
|
|---|
| 1582 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1583 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1584 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1585 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
|---|
| 1586 | break
|
|---|
| 1587 | fi
|
|---|
| 1588 | done
|
|---|
| 1589 | IFS="$ac_save_ifs"
|
|---|
| 1590 | fi
|
|---|
| 1591 | fi
|
|---|
| 1592 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 1593 | if test -n "$RANLIB"; then
|
|---|
| 1594 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 1595 | else
|
|---|
| 1596 | echo "$ac_t""no" 1>&6
|
|---|
| 1597 | fi
|
|---|
| 1598 |
|
|---|
| 1599 |
|
|---|
| 1600 | if test -z "$ac_cv_prog_RANLIB"; then
|
|---|
| 1601 | if test -n "$ac_tool_prefix"; then
|
|---|
| 1602 | # Extract the first word of "ranlib", so it can be a program name with args.
|
|---|
| 1603 | set dummy ranlib; ac_word=$2
|
|---|
| 1604 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1605 | echo "configure:1606: checking for $ac_word" >&5
|
|---|
| 1606 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 1607 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1608 | else
|
|---|
| 1609 | if test -n "$RANLIB"; then
|
|---|
| 1610 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 1611 | else
|
|---|
| 1612 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1613 | ac_dummy="$PATH"
|
|---|
| 1614 | for ac_dir in $ac_dummy; do
|
|---|
| 1615 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1616 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1617 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1618 | ac_cv_prog_RANLIB="ranlib"
|
|---|
| 1619 | break
|
|---|
| 1620 | fi
|
|---|
| 1621 | done
|
|---|
| 1622 | IFS="$ac_save_ifs"
|
|---|
| 1623 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|---|
| 1624 | fi
|
|---|
| 1625 | fi
|
|---|
| 1626 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 1627 | if test -n "$RANLIB"; then
|
|---|
| 1628 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 1629 | else
|
|---|
| 1630 | echo "$ac_t""no" 1>&6
|
|---|
| 1631 | fi
|
|---|
| 1632 |
|
|---|
| 1633 | else
|
|---|
| 1634 | RANLIB=":"
|
|---|
| 1635 | fi
|
|---|
| 1636 | fi
|
|---|
| 1637 |
|
|---|
| 1638 |
|
|---|
| 1639 | # Find a good install program. We prefer a C program (faster),
|
|---|
| 1640 | # so one script is as good as another. But avoid the broken or
|
|---|
| 1641 | # incompatible versions:
|
|---|
| 1642 | # SysV /etc/install, /usr/sbin/install
|
|---|
| 1643 | # SunOS /usr/etc/install
|
|---|
| 1644 | # IRIX /sbin/install
|
|---|
| 1645 | # AIX /bin/install
|
|---|
| 1646 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
|---|
| 1647 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|---|
| 1648 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|---|
| 1649 | # ./install, which can be erroneously created by make from ./install.sh.
|
|---|
| 1650 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
|---|
| 1651 | echo "configure:1652: checking for a BSD compatible install" >&5
|
|---|
| 1652 | if test -z "$INSTALL"; then
|
|---|
| 1653 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
|---|
| 1654 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1655 | else
|
|---|
| 1656 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1657 | for ac_dir in $PATH; do
|
|---|
| 1658 | # Account for people who put trailing slashes in PATH elements.
|
|---|
| 1659 | case "$ac_dir/" in
|
|---|
| 1660 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
|---|
| 1661 | # We reject the install program from OS/2 or W3.1
|
|---|
| 1662 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
|
|---|
| 1663 | *)
|
|---|
| 1664 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
|---|
| 1665 | # Don't use installbsd from OSF since it installs stuff as root
|
|---|
| 1666 | # by default.
|
|---|
| 1667 | for ac_prog in ginstall scoinst install; do
|
|---|
| 1668 | if test -f $ac_dir/$ac_prog$ac_exeext; then
|
|---|
| 1669 | if test $ac_prog = install &&
|
|---|
| 1670 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|---|
| 1671 | # AIX install. It has an incompatible calling convention.
|
|---|
| 1672 | :
|
|---|
| 1673 | else
|
|---|
| 1674 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
|
|---|
| 1675 | break 2
|
|---|
| 1676 | fi
|
|---|
| 1677 | fi
|
|---|
| 1678 | done
|
|---|
| 1679 | ;;
|
|---|
| 1680 | esac
|
|---|
| 1681 | done
|
|---|
| 1682 | IFS="$ac_save_IFS"
|
|---|
| 1683 |
|
|---|
| 1684 | fi
|
|---|
| 1685 | if test "${ac_cv_path_install+set}" = set; then
|
|---|
| 1686 | INSTALL="$ac_cv_path_install"
|
|---|
| 1687 | else
|
|---|
| 1688 | # As a last resort, use the slow shell script. We don't cache a
|
|---|
| 1689 | # path for INSTALL within a source directory, because that will
|
|---|
| 1690 | # break other packages using the cache if that directory is
|
|---|
| 1691 | # removed, or if the path is relative.
|
|---|
| 1692 | INSTALL="$ac_install_sh"
|
|---|
| 1693 | fi
|
|---|
| 1694 | fi
|
|---|
| 1695 | echo "$ac_t""$INSTALL" 1>&6
|
|---|
| 1696 |
|
|---|
| 1697 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
|---|
| 1698 | # It thinks the first close brace ends the variable substitution.
|
|---|
| 1699 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|---|
| 1700 |
|
|---|
| 1701 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
|---|
| 1702 |
|
|---|
| 1703 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|---|
| 1704 |
|
|---|
| 1705 |
|
|---|
| 1706 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
|
|---|
| 1707 | echo "configure:1708: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
|---|
| 1708 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
|
|---|
| 1709 | if test "${enable_maintainer_mode+set}" = set; then
|
|---|
| 1710 | enableval="$enable_maintainer_mode"
|
|---|
| 1711 | USE_MAINTAINER_MODE=$enableval
|
|---|
| 1712 | else
|
|---|
| 1713 | USE_MAINTAINER_MODE=no
|
|---|
| 1714 | fi
|
|---|
| 1715 |
|
|---|
| 1716 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
|
|---|
| 1717 |
|
|---|
| 1718 |
|
|---|
| 1719 | if test $USE_MAINTAINER_MODE = yes; then
|
|---|
| 1720 | MAINTAINER_MODE_TRUE=
|
|---|
| 1721 | MAINTAINER_MODE_FALSE='#'
|
|---|
| 1722 | else
|
|---|
| 1723 | MAINTAINER_MODE_TRUE='#'
|
|---|
| 1724 | MAINTAINER_MODE_FALSE=
|
|---|
| 1725 | fi
|
|---|
| 1726 | MAINT=$MAINTAINER_MODE_TRUE
|
|---|
| 1727 |
|
|---|
| 1728 |
|
|---|
| 1729 |
|
|---|
| 1730 | # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
|
|---|
| 1731 | # at least currently, we never actually build a program, so we never
|
|---|
| 1732 | # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
|
|---|
| 1733 | # fails, because we are probably configuring with a cross compiler
|
|---|
| 1734 | # which cant create executables. So we include AC_EXEEXT to keep
|
|---|
| 1735 | # automake happy, but we don't execute it, since we don't care about
|
|---|
| 1736 | # the result.
|
|---|
| 1737 | if false; then
|
|---|
| 1738 | # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
|
|---|
| 1739 | # to nothing, so nothing would remain between `then' and `fi' if it
|
|---|
| 1740 | # were not for the `:' below.
|
|---|
| 1741 | :
|
|---|
| 1742 |
|
|---|
| 1743 |
|
|---|
| 1744 |
|
|---|
| 1745 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
|---|
| 1746 | echo "configure:1747: checking for executable suffix" >&5
|
|---|
| 1747 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
|---|
| 1748 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1749 | else
|
|---|
| 1750 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
|---|
| 1751 | ac_cv_exeext=.exe
|
|---|
| 1752 | else
|
|---|
| 1753 | rm -f conftest*
|
|---|
| 1754 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
|---|
| 1755 | ac_cv_exeext=
|
|---|
| 1756 | if { (eval echo configure:1757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
|---|
| 1757 | for file in conftest.*; do
|
|---|
| 1758 | case $file in
|
|---|
| 1759 | *.c | *.o | *.obj) ;;
|
|---|
| 1760 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
|---|
| 1761 | esac
|
|---|
| 1762 | done
|
|---|
| 1763 | else
|
|---|
| 1764 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 1765 | fi
|
|---|
| 1766 | rm -f conftest*
|
|---|
| 1767 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
|---|
| 1768 | fi
|
|---|
| 1769 | fi
|
|---|
| 1770 |
|
|---|
| 1771 | EXEEXT=""
|
|---|
| 1772 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
|---|
| 1773 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
|---|
| 1774 | ac_exeext=$EXEEXT
|
|---|
| 1775 |
|
|---|
| 1776 | fi
|
|---|
| 1777 |
|
|---|
| 1778 | # configure.host sets the following important variables
|
|---|
| 1779 | # libgcj_cflags - host specific C compiler flags
|
|---|
| 1780 | # libgcj_cxxflags - host specific C++ compiler flags
|
|---|
| 1781 | # libgcj_javaflags - host specific Java compiler flags
|
|---|
| 1782 |
|
|---|
| 1783 | libgcj_cflags=
|
|---|
| 1784 | libgcj_cxxflags=
|
|---|
| 1785 | libgcj_javaflags=
|
|---|
| 1786 |
|
|---|
| 1787 | . ${srcdir}/configure.host
|
|---|
| 1788 |
|
|---|
| 1789 | LIBGCJ_CFLAGS="${libgcj_cflags}"
|
|---|
| 1790 | LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
|
|---|
| 1791 | LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
|
|---|
| 1792 |
|
|---|
| 1793 |
|
|---|
| 1794 |
|
|---|
| 1795 |
|
|---|
| 1796 |
|
|---|
| 1797 |
|
|---|
| 1798 |
|
|---|
| 1799 |
|
|---|
| 1800 |
|
|---|
| 1801 | # Only use libltdl for native builds.
|
|---|
| 1802 | if test -z "${with_cross_host}"; then
|
|---|
| 1803 | case $enable_ltdl_convenience in
|
|---|
| 1804 | no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
|
|---|
| 1805 | "") enable_ltdl_convenience=yes
|
|---|
| 1806 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
|
|---|
| 1807 | esac
|
|---|
| 1808 | LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
|
|---|
| 1809 | INCLTDL='-I${top_srcdir}/''libltdl'
|
|---|
| 1810 |
|
|---|
| 1811 |
|
|---|
| 1812 | DIRLTDL=libltdl
|
|---|
| 1813 | cat >> confdefs.h <<\EOF
|
|---|
| 1814 | #define USE_LTDL 1
|
|---|
| 1815 | EOF
|
|---|
| 1816 |
|
|---|
| 1817 | # Sigh. Libtool's macro doesn't do the right thing.
|
|---|
| 1818 | INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
|
|---|
| 1819 | # FIXME: this is a hack.
|
|---|
| 1820 | sub_auxdir="`cd $ac_aux_dir && pwd`"
|
|---|
| 1821 | ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
|
|---|
| 1822 | fi
|
|---|
| 1823 |
|
|---|
| 1824 |
|
|---|
| 1825 |
|
|---|
| 1826 | # Check whether --enable-shared or --disable-shared was given.
|
|---|
| 1827 | if test "${enable_shared+set}" = set; then
|
|---|
| 1828 | enableval="$enable_shared"
|
|---|
| 1829 | p=${PACKAGE-default}
|
|---|
| 1830 | case $enableval in
|
|---|
| 1831 | yes) enable_shared=yes ;;
|
|---|
| 1832 | no) enable_shared=no ;;
|
|---|
| 1833 | *)
|
|---|
| 1834 | enable_shared=no
|
|---|
| 1835 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 1836 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 1837 | for pkg in $enableval; do
|
|---|
| 1838 | if test "X$pkg" = "X$p"; then
|
|---|
| 1839 | enable_shared=yes
|
|---|
| 1840 | fi
|
|---|
| 1841 | done
|
|---|
| 1842 | IFS="$ac_save_ifs"
|
|---|
| 1843 | ;;
|
|---|
| 1844 | esac
|
|---|
| 1845 | else
|
|---|
| 1846 | enable_shared=yes
|
|---|
| 1847 | fi
|
|---|
| 1848 |
|
|---|
| 1849 | # Check whether --enable-static or --disable-static was given.
|
|---|
| 1850 | if test "${enable_static+set}" = set; then
|
|---|
| 1851 | enableval="$enable_static"
|
|---|
| 1852 | p=${PACKAGE-default}
|
|---|
| 1853 | case $enableval in
|
|---|
| 1854 | yes) enable_static=yes ;;
|
|---|
| 1855 | no) enable_static=no ;;
|
|---|
| 1856 | *)
|
|---|
| 1857 | enable_static=no
|
|---|
| 1858 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 1859 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 1860 | for pkg in $enableval; do
|
|---|
| 1861 | if test "X$pkg" = "X$p"; then
|
|---|
| 1862 | enable_static=yes
|
|---|
| 1863 | fi
|
|---|
| 1864 | done
|
|---|
| 1865 | IFS="$ac_save_ifs"
|
|---|
| 1866 | ;;
|
|---|
| 1867 | esac
|
|---|
| 1868 | else
|
|---|
| 1869 | enable_static=yes
|
|---|
| 1870 | fi
|
|---|
| 1871 |
|
|---|
| 1872 | # Check whether --enable-fast-install or --disable-fast-install was given.
|
|---|
| 1873 | if test "${enable_fast_install+set}" = set; then
|
|---|
| 1874 | enableval="$enable_fast_install"
|
|---|
| 1875 | p=${PACKAGE-default}
|
|---|
| 1876 | case $enableval in
|
|---|
| 1877 | yes) enable_fast_install=yes ;;
|
|---|
| 1878 | no) enable_fast_install=no ;;
|
|---|
| 1879 | *)
|
|---|
| 1880 | enable_fast_install=no
|
|---|
| 1881 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 1882 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 1883 | for pkg in $enableval; do
|
|---|
| 1884 | if test "X$pkg" = "X$p"; then
|
|---|
| 1885 | enable_fast_install=yes
|
|---|
| 1886 | fi
|
|---|
| 1887 | done
|
|---|
| 1888 | IFS="$ac_save_ifs"
|
|---|
| 1889 | ;;
|
|---|
| 1890 | esac
|
|---|
| 1891 | else
|
|---|
| 1892 | enable_fast_install=yes
|
|---|
| 1893 | fi
|
|---|
| 1894 |
|
|---|
| 1895 | # Check whether --with-gnu-ld or --without-gnu-ld was given.
|
|---|
| 1896 | if test "${with_gnu_ld+set}" = set; then
|
|---|
| 1897 | withval="$with_gnu_ld"
|
|---|
| 1898 | test "$withval" = no || with_gnu_ld=yes
|
|---|
| 1899 | else
|
|---|
| 1900 | with_gnu_ld=no
|
|---|
| 1901 | fi
|
|---|
| 1902 |
|
|---|
| 1903 | ac_prog=ld
|
|---|
| 1904 | if test "$GCC" = yes; then
|
|---|
| 1905 | # Check if gcc -print-prog-name=ld gives a path.
|
|---|
| 1906 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
|
|---|
| 1907 | echo "configure:1908: checking for ld used by GCC" >&5
|
|---|
| 1908 | case $host in
|
|---|
| 1909 | *-*-mingw*)
|
|---|
| 1910 | # gcc leaves a trailing carriage return which upsets mingw
|
|---|
| 1911 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
|---|
| 1912 | *)
|
|---|
| 1913 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
|---|
| 1914 | esac
|
|---|
| 1915 | case $ac_prog in
|
|---|
| 1916 | # Accept absolute paths.
|
|---|
| 1917 | [\\/]* | [A-Za-z]:[\\/]*)
|
|---|
| 1918 | re_direlt='/[^/][^/]*/\.\./'
|
|---|
| 1919 | # Canonicalize the path of ld
|
|---|
| 1920 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
|
|---|
| 1921 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
|---|
| 1922 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
|---|
| 1923 | done
|
|---|
| 1924 | test -z "$LD" && LD="$ac_prog"
|
|---|
| 1925 | ;;
|
|---|
| 1926 | "")
|
|---|
| 1927 | # If it fails, then pretend we aren't using GCC.
|
|---|
| 1928 | ac_prog=ld
|
|---|
| 1929 | ;;
|
|---|
| 1930 | *)
|
|---|
| 1931 | # If it is relative, then search for the first ld in PATH.
|
|---|
| 1932 | with_gnu_ld=unknown
|
|---|
| 1933 | ;;
|
|---|
| 1934 | esac
|
|---|
| 1935 | elif test "$with_gnu_ld" = yes; then
|
|---|
| 1936 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
|
|---|
| 1937 | echo "configure:1938: checking for GNU ld" >&5
|
|---|
| 1938 | else
|
|---|
| 1939 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
|
|---|
| 1940 | echo "configure:1941: checking for non-GNU ld" >&5
|
|---|
| 1941 | fi
|
|---|
| 1942 | if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
|
|---|
| 1943 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1944 | else
|
|---|
| 1945 | if test -z "$LD"; then
|
|---|
| 1946 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
|---|
| 1947 | for ac_dir in $PATH; do
|
|---|
| 1948 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1949 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
|---|
| 1950 | lt_cv_path_LD="$ac_dir/$ac_prog"
|
|---|
| 1951 | # Check to see if the program is GNU ld. I'd rather use --version,
|
|---|
| 1952 | # but apparently some GNU ld's only accept -v.
|
|---|
| 1953 | # Break only if it was the GNU/non-GNU ld that we prefer.
|
|---|
| 1954 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
|---|
| 1955 | test "$with_gnu_ld" != no && break
|
|---|
| 1956 | else
|
|---|
| 1957 | test "$with_gnu_ld" != yes && break
|
|---|
| 1958 | fi
|
|---|
| 1959 | fi
|
|---|
| 1960 | done
|
|---|
| 1961 | IFS="$ac_save_ifs"
|
|---|
| 1962 | else
|
|---|
| 1963 | lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
|---|
| 1964 | fi
|
|---|
| 1965 | fi
|
|---|
| 1966 |
|
|---|
| 1967 | LD="$lt_cv_path_LD"
|
|---|
| 1968 | if test -n "$LD"; then
|
|---|
| 1969 | echo "$ac_t""$LD" 1>&6
|
|---|
| 1970 | else
|
|---|
| 1971 | echo "$ac_t""no" 1>&6
|
|---|
| 1972 | fi
|
|---|
| 1973 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
|
|---|
| 1974 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
|
|---|
| 1975 | echo "configure:1976: checking if the linker ($LD) is GNU ld" >&5
|
|---|
| 1976 | if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
|
|---|
| 1977 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1978 | else
|
|---|
| 1979 | # I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
|---|
| 1980 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
|---|
| 1981 | lt_cv_prog_gnu_ld=yes
|
|---|
| 1982 | else
|
|---|
| 1983 | lt_cv_prog_gnu_ld=no
|
|---|
| 1984 | fi
|
|---|
| 1985 | fi
|
|---|
| 1986 |
|
|---|
| 1987 | echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
|
|---|
| 1988 | with_gnu_ld=$lt_cv_prog_gnu_ld
|
|---|
| 1989 |
|
|---|
| 1990 |
|
|---|
| 1991 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
|
|---|
| 1992 | echo "configure:1993: checking for $LD option to reload object files" >&5
|
|---|
| 1993 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
|
|---|
| 1994 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1995 | else
|
|---|
| 1996 | lt_cv_ld_reload_flag='-r'
|
|---|
| 1997 | fi
|
|---|
| 1998 |
|
|---|
| 1999 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
|
|---|
| 2000 | reload_flag=$lt_cv_ld_reload_flag
|
|---|
| 2001 | test -n "$reload_flag" && reload_flag=" $reload_flag"
|
|---|
| 2002 |
|
|---|
| 2003 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
|
|---|
| 2004 | echo "configure:2005: checking for BSD-compatible nm" >&5
|
|---|
| 2005 | if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
|
|---|
| 2006 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2007 | else
|
|---|
| 2008 | if test -n "$NM"; then
|
|---|
| 2009 | # Let the user override the test.
|
|---|
| 2010 | lt_cv_path_NM="$NM"
|
|---|
| 2011 | else
|
|---|
| 2012 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
|---|
| 2013 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
|
|---|
| 2014 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2015 | tmp_nm=$ac_dir/${ac_tool_prefix}nm
|
|---|
| 2016 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
|
|---|
| 2017 | # Check to see if the nm accepts a BSD-compat flag.
|
|---|
| 2018 | # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
|---|
| 2019 | # nm: unknown option "B" ignored
|
|---|
| 2020 | # Tru64's nm complains that /dev/null is an invalid object file
|
|---|
| 2021 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
|
|---|
| 2022 | lt_cv_path_NM="$tmp_nm -B"
|
|---|
| 2023 | break
|
|---|
| 2024 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
|
|---|
| 2025 | lt_cv_path_NM="$tmp_nm -p"
|
|---|
| 2026 | break
|
|---|
| 2027 | else
|
|---|
| 2028 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
|---|
| 2029 | continue # so that we can try to find one that supports BSD flags
|
|---|
| 2030 | fi
|
|---|
| 2031 | fi
|
|---|
| 2032 | done
|
|---|
| 2033 | IFS="$ac_save_ifs"
|
|---|
| 2034 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
|
|---|
| 2035 | fi
|
|---|
| 2036 | fi
|
|---|
| 2037 |
|
|---|
| 2038 | NM="$lt_cv_path_NM"
|
|---|
| 2039 | echo "$ac_t""$NM" 1>&6
|
|---|
| 2040 |
|
|---|
| 2041 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
|
|---|
| 2042 | echo "configure:2043: checking how to recognise dependant libraries" >&5
|
|---|
| 2043 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
|
|---|
| 2044 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2045 | else
|
|---|
| 2046 | lt_cv_file_magic_cmd='$MAGIC_CMD'
|
|---|
| 2047 | lt_cv_file_magic_test_file=
|
|---|
| 2048 | lt_cv_deplibs_check_method='unknown'
|
|---|
| 2049 | # Need to set the preceding variable on all platforms that support
|
|---|
| 2050 | # interlibrary dependencies.
|
|---|
| 2051 | # 'none' -- dependencies not supported.
|
|---|
| 2052 | # `unknown' -- same as none, but documents that we really don't know.
|
|---|
| 2053 | # 'pass_all' -- all dependencies passed with no checks.
|
|---|
| 2054 | # 'test_compile' -- check by making test program.
|
|---|
| 2055 | # 'file_magic [regex]' -- check by looking for files in library path
|
|---|
| 2056 | # which responds to the $file_magic_cmd with a given egrep regex.
|
|---|
| 2057 | # If you have `file' or equivalent on your system and you're not sure
|
|---|
| 2058 | # whether `pass_all' will *always* work, you probably want this one.
|
|---|
| 2059 |
|
|---|
| 2060 | case $host_os in
|
|---|
| 2061 | aix*)
|
|---|
| 2062 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 2063 | ;;
|
|---|
| 2064 |
|
|---|
| 2065 | beos*)
|
|---|
| 2066 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 2067 | ;;
|
|---|
| 2068 |
|
|---|
| 2069 | bsdi4*)
|
|---|
| 2070 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
|---|
| 2071 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
|---|
| 2072 | lt_cv_file_magic_test_file=/shlib/libc.so
|
|---|
| 2073 | ;;
|
|---|
| 2074 |
|
|---|
| 2075 | cygwin* | mingw* |pw32*)
|
|---|
| 2076 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
|---|
| 2077 | lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|---|
| 2078 | ;;
|
|---|
| 2079 |
|
|---|
| 2080 | darwin* | rhapsody*)
|
|---|
| 2081 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
|
|---|
| 2082 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
|---|
| 2083 | case "$host_os" in
|
|---|
| 2084 | rhapsody* | darwin1.012)
|
|---|
| 2085 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
|
|---|
| 2086 | ;;
|
|---|
| 2087 | *) # Darwin 1.3 on
|
|---|
| 2088 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
|
|---|
| 2089 | ;;
|
|---|
| 2090 | esac
|
|---|
| 2091 | ;;
|
|---|
| 2092 |
|
|---|
| 2093 | freebsd* )
|
|---|
| 2094 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
|---|
| 2095 | case $host_cpu in
|
|---|
| 2096 | i*86 )
|
|---|
| 2097 | # Not sure whether the presence of OpenBSD here was a mistake.
|
|---|
| 2098 | # Let's accept both of them until this is cleared up.
|
|---|
| 2099 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
|
|---|
| 2100 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 2101 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
|---|
| 2102 | ;;
|
|---|
| 2103 | esac
|
|---|
| 2104 | else
|
|---|
| 2105 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 2106 | fi
|
|---|
| 2107 | ;;
|
|---|
| 2108 |
|
|---|
| 2109 | gnu*)
|
|---|
| 2110 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 2111 | ;;
|
|---|
| 2112 |
|
|---|
| 2113 | hpux10.20*|hpux11*)
|
|---|
| 2114 | case $host_cpu in
|
|---|
| 2115 | hppa*)
|
|---|
| 2116 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
|
|---|
| 2117 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 2118 | lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
|---|
| 2119 | ;;
|
|---|
| 2120 | ia64*)
|
|---|
| 2121 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
|
|---|
| 2122 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 2123 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
|---|
| 2124 | ;;
|
|---|
| 2125 | esac
|
|---|
| 2126 | ;;
|
|---|
| 2127 |
|
|---|
| 2128 | irix5* | irix6*)
|
|---|
| 2129 | case $host_os in
|
|---|
| 2130 | irix5*)
|
|---|
| 2131 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 2132 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
|
|---|
| 2133 | ;;
|
|---|
| 2134 | *)
|
|---|
| 2135 | case $LD in
|
|---|
| 2136 | *-32|*"-32 ") libmagic=32-bit;;
|
|---|
| 2137 | *-n32|*"-n32 ") libmagic=N32;;
|
|---|
| 2138 | *-64|*"-64 ") libmagic=64-bit;;
|
|---|
| 2139 | *) libmagic=never-match;;
|
|---|
| 2140 | esac
|
|---|
| 2141 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 2142 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
|
|---|
| 2143 | ;;
|
|---|
| 2144 | esac
|
|---|
| 2145 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
|
|---|
| 2146 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 2147 | ;;
|
|---|
| 2148 |
|
|---|
| 2149 | # This must be Linux ELF.
|
|---|
| 2150 | linux-gnu*)
|
|---|
| 2151 | case $host_cpu in
|
|---|
| 2152 | alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
|
|---|
| 2153 | lt_cv_deplibs_check_method=pass_all ;;
|
|---|
| 2154 | *)
|
|---|
| 2155 | # glibc up to 2.1.1 does not perform some relocations on ARM
|
|---|
| 2156 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
|
|---|
| 2157 | esac
|
|---|
| 2158 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
|---|
| 2159 | ;;
|
|---|
| 2160 |
|
|---|
| 2161 | netbsd*)
|
|---|
| 2162 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
|---|
| 2163 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
|---|
| 2164 | else
|
|---|
| 2165 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
|
|---|
| 2166 | fi
|
|---|
| 2167 | ;;
|
|---|
| 2168 |
|
|---|
| 2169 | newsos6)
|
|---|
| 2170 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
|---|
| 2171 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 2172 | lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
|---|
| 2173 | ;;
|
|---|
| 2174 |
|
|---|
| 2175 | os2*)
|
|---|
| 2176 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 2177 | ;;
|
|---|
| 2178 |
|
|---|
| 2179 | osf3* | osf4* | osf5*)
|
|---|
| 2180 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 2181 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
|
|---|
| 2182 | lt_cv_file_magic_test_file=/shlib/libc.so
|
|---|
| 2183 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 2184 | ;;
|
|---|
| 2185 |
|
|---|
| 2186 | sco3.2v5*)
|
|---|
| 2187 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 2188 | ;;
|
|---|
| 2189 |
|
|---|
| 2190 | solaris*)
|
|---|
| 2191 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 2192 | lt_cv_file_magic_test_file=/lib/libc.so
|
|---|
| 2193 | ;;
|
|---|
| 2194 |
|
|---|
| 2195 | sysv5uw[78]* | sysv4*uw2*)
|
|---|
| 2196 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 2197 | ;;
|
|---|
| 2198 |
|
|---|
| 2199 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
|---|
| 2200 | case $host_vendor in
|
|---|
| 2201 | ncr)
|
|---|
| 2202 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 2203 | ;;
|
|---|
| 2204 | motorola)
|
|---|
| 2205 | 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]'
|
|---|
| 2206 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
|---|
| 2207 | ;;
|
|---|
| 2208 | esac
|
|---|
| 2209 | ;;
|
|---|
| 2210 | esac
|
|---|
| 2211 |
|
|---|
| 2212 | fi
|
|---|
| 2213 |
|
|---|
| 2214 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
|
|---|
| 2215 | file_magic_cmd=$lt_cv_file_magic_cmd
|
|---|
| 2216 | deplibs_check_method=$lt_cv_deplibs_check_method
|
|---|
| 2217 |
|
|---|
| 2218 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6
|
|---|
| 2219 | echo "configure:2220: checking for object suffix" >&5
|
|---|
| 2220 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
|
|---|
| 2221 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2222 | else
|
|---|
| 2223 | rm -f conftest*
|
|---|
| 2224 | echo 'int i = 1;' > conftest.$ac_ext
|
|---|
| 2225 | if { (eval echo configure:2226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 2226 | for ac_file in conftest.*; do
|
|---|
| 2227 | case $ac_file in
|
|---|
| 2228 | *.c) ;;
|
|---|
| 2229 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
|
|---|
| 2230 | esac
|
|---|
| 2231 | done
|
|---|
| 2232 | else
|
|---|
| 2233 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
|
|---|
| 2234 | fi
|
|---|
| 2235 | rm -f conftest*
|
|---|
| 2236 | fi
|
|---|
| 2237 |
|
|---|
| 2238 | echo "$ac_t""$ac_cv_objext" 1>&6
|
|---|
| 2239 | OBJEXT=$ac_cv_objext
|
|---|
| 2240 | ac_objext=$ac_cv_objext
|
|---|
| 2241 |
|
|---|
| 2242 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
|
|---|
| 2243 |
|
|---|
| 2244 | # Only perform the check for file, if the check method requires it
|
|---|
| 2245 | case $deplibs_check_method in
|
|---|
| 2246 | file_magic*)
|
|---|
| 2247 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
|---|
| 2248 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
|
|---|
| 2249 | echo "configure:2250: checking for ${ac_tool_prefix}file" >&5
|
|---|
| 2250 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
|---|
| 2251 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2252 | else
|
|---|
| 2253 | case $MAGIC_CMD in
|
|---|
| 2254 | /*)
|
|---|
| 2255 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
|---|
| 2256 | ;;
|
|---|
| 2257 | ?:/*)
|
|---|
| 2258 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
|---|
| 2259 | ;;
|
|---|
| 2260 | *)
|
|---|
| 2261 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
|---|
| 2262 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 2263 | ac_dummy="/usr/bin:$PATH"
|
|---|
| 2264 | for ac_dir in $ac_dummy; do
|
|---|
| 2265 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2266 | if test -f $ac_dir/${ac_tool_prefix}file; then
|
|---|
| 2267 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
|
|---|
| 2268 | if test -n "$file_magic_test_file"; then
|
|---|
| 2269 | case $deplibs_check_method in
|
|---|
| 2270 | "file_magic "*)
|
|---|
| 2271 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
|---|
| 2272 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 2273 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
|---|
| 2274 | egrep "$file_magic_regex" > /dev/null; then
|
|---|
| 2275 | :
|
|---|
| 2276 | else
|
|---|
| 2277 | cat <<EOF 1>&2
|
|---|
| 2278 |
|
|---|
| 2279 | *** Warning: the command libtool uses to detect shared libraries,
|
|---|
| 2280 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
|---|
| 2281 | *** The result is that libtool may fail to recognize shared libraries
|
|---|
| 2282 | *** as such. This will affect the creation of libtool libraries that
|
|---|
| 2283 | *** depend on shared libraries, but programs linked with such libtool
|
|---|
| 2284 | *** libraries will work regardless of this problem. Nevertheless, you
|
|---|
| 2285 | *** may want to report the problem to your system manager and/or to
|
|---|
| 2286 | *** bug-libtool@gnu.org
|
|---|
| 2287 |
|
|---|
| 2288 | EOF
|
|---|
| 2289 | fi ;;
|
|---|
| 2290 | esac
|
|---|
| 2291 | fi
|
|---|
| 2292 | break
|
|---|
| 2293 | fi
|
|---|
| 2294 | done
|
|---|
| 2295 | IFS="$ac_save_ifs"
|
|---|
| 2296 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
|---|
| 2297 | ;;
|
|---|
| 2298 | esac
|
|---|
| 2299 | fi
|
|---|
| 2300 |
|
|---|
| 2301 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 2302 | if test -n "$MAGIC_CMD"; then
|
|---|
| 2303 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
|---|
| 2304 | else
|
|---|
| 2305 | echo "$ac_t""no" 1>&6
|
|---|
| 2306 | fi
|
|---|
| 2307 |
|
|---|
| 2308 | if test -z "$lt_cv_path_MAGIC_CMD"; then
|
|---|
| 2309 | if test -n "$ac_tool_prefix"; then
|
|---|
| 2310 | echo $ac_n "checking for file""... $ac_c" 1>&6
|
|---|
| 2311 | echo "configure:2312: checking for file" >&5
|
|---|
| 2312 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
|---|
| 2313 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2314 | else
|
|---|
| 2315 | case $MAGIC_CMD in
|
|---|
| 2316 | /*)
|
|---|
| 2317 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
|---|
| 2318 | ;;
|
|---|
| 2319 | ?:/*)
|
|---|
| 2320 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
|---|
| 2321 | ;;
|
|---|
| 2322 | *)
|
|---|
| 2323 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
|---|
| 2324 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 2325 | ac_dummy="/usr/bin:$PATH"
|
|---|
| 2326 | for ac_dir in $ac_dummy; do
|
|---|
| 2327 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2328 | if test -f $ac_dir/file; then
|
|---|
| 2329 | lt_cv_path_MAGIC_CMD="$ac_dir/file"
|
|---|
| 2330 | if test -n "$file_magic_test_file"; then
|
|---|
| 2331 | case $deplibs_check_method in
|
|---|
| 2332 | "file_magic "*)
|
|---|
| 2333 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
|---|
| 2334 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 2335 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
|---|
| 2336 | egrep "$file_magic_regex" > /dev/null; then
|
|---|
| 2337 | :
|
|---|
| 2338 | else
|
|---|
| 2339 | cat <<EOF 1>&2
|
|---|
| 2340 |
|
|---|
| 2341 | *** Warning: the command libtool uses to detect shared libraries,
|
|---|
| 2342 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
|---|
| 2343 | *** The result is that libtool may fail to recognize shared libraries
|
|---|
| 2344 | *** as such. This will affect the creation of libtool libraries that
|
|---|
| 2345 | *** depend on shared libraries, but programs linked with such libtool
|
|---|
| 2346 | *** libraries will work regardless of this problem. Nevertheless, you
|
|---|
| 2347 | *** may want to report the problem to your system manager and/or to
|
|---|
| 2348 | *** bug-libtool@gnu.org
|
|---|
| 2349 |
|
|---|
| 2350 | EOF
|
|---|
| 2351 | fi ;;
|
|---|
| 2352 | esac
|
|---|
| 2353 | fi
|
|---|
| 2354 | break
|
|---|
| 2355 | fi
|
|---|
| 2356 | done
|
|---|
| 2357 | IFS="$ac_save_ifs"
|
|---|
| 2358 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
|---|
| 2359 | ;;
|
|---|
| 2360 | esac
|
|---|
| 2361 | fi
|
|---|
| 2362 |
|
|---|
| 2363 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 2364 | if test -n "$MAGIC_CMD"; then
|
|---|
| 2365 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
|---|
| 2366 | else
|
|---|
| 2367 | echo "$ac_t""no" 1>&6
|
|---|
| 2368 | fi
|
|---|
| 2369 |
|
|---|
| 2370 | else
|
|---|
| 2371 | MAGIC_CMD=:
|
|---|
| 2372 | fi
|
|---|
| 2373 | fi
|
|---|
| 2374 |
|
|---|
| 2375 | fi
|
|---|
| 2376 | ;;
|
|---|
| 2377 | esac
|
|---|
| 2378 |
|
|---|
| 2379 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
|---|
| 2380 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
|---|
| 2381 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2382 | echo "configure:2383: checking for $ac_word" >&5
|
|---|
| 2383 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 2384 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2385 | else
|
|---|
| 2386 | if test -n "$RANLIB"; then
|
|---|
| 2387 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 2388 | else
|
|---|
| 2389 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2390 | ac_dummy="$PATH"
|
|---|
| 2391 | for ac_dir in $ac_dummy; do
|
|---|
| 2392 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2393 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2394 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2395 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
|---|
| 2396 | break
|
|---|
| 2397 | fi
|
|---|
| 2398 | done
|
|---|
| 2399 | IFS="$ac_save_ifs"
|
|---|
| 2400 | fi
|
|---|
| 2401 | fi
|
|---|
| 2402 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 2403 | if test -n "$RANLIB"; then
|
|---|
| 2404 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 2405 | else
|
|---|
| 2406 | echo "$ac_t""no" 1>&6
|
|---|
| 2407 | fi
|
|---|
| 2408 |
|
|---|
| 2409 |
|
|---|
| 2410 | if test -z "$ac_cv_prog_RANLIB"; then
|
|---|
| 2411 | if test -n "$ac_tool_prefix"; then
|
|---|
| 2412 | # Extract the first word of "ranlib", so it can be a program name with args.
|
|---|
| 2413 | set dummy ranlib; ac_word=$2
|
|---|
| 2414 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2415 | echo "configure:2416: checking for $ac_word" >&5
|
|---|
| 2416 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 2417 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2418 | else
|
|---|
| 2419 | if test -n "$RANLIB"; then
|
|---|
| 2420 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 2421 | else
|
|---|
| 2422 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2423 | ac_dummy="$PATH"
|
|---|
| 2424 | for ac_dir in $ac_dummy; do
|
|---|
| 2425 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2426 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2427 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2428 | ac_cv_prog_RANLIB="ranlib"
|
|---|
| 2429 | break
|
|---|
| 2430 | fi
|
|---|
| 2431 | done
|
|---|
| 2432 | IFS="$ac_save_ifs"
|
|---|
| 2433 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|---|
| 2434 | fi
|
|---|
| 2435 | fi
|
|---|
| 2436 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 2437 | if test -n "$RANLIB"; then
|
|---|
| 2438 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 2439 | else
|
|---|
| 2440 | echo "$ac_t""no" 1>&6
|
|---|
| 2441 | fi
|
|---|
| 2442 |
|
|---|
| 2443 | else
|
|---|
| 2444 | RANLIB=":"
|
|---|
| 2445 | fi
|
|---|
| 2446 | fi
|
|---|
| 2447 |
|
|---|
| 2448 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
|---|
| 2449 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
|---|
| 2450 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2451 | echo "configure:2452: checking for $ac_word" >&5
|
|---|
| 2452 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
|---|
| 2453 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2454 | else
|
|---|
| 2455 | if test -n "$STRIP"; then
|
|---|
| 2456 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
|---|
| 2457 | else
|
|---|
| 2458 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2459 | ac_dummy="$PATH"
|
|---|
| 2460 | for ac_dir in $ac_dummy; do
|
|---|
| 2461 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2462 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2463 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2464 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
|---|
| 2465 | break
|
|---|
| 2466 | fi
|
|---|
| 2467 | done
|
|---|
| 2468 | IFS="$ac_save_ifs"
|
|---|
| 2469 | fi
|
|---|
| 2470 | fi
|
|---|
| 2471 | STRIP="$ac_cv_prog_STRIP"
|
|---|
| 2472 | if test -n "$STRIP"; then
|
|---|
| 2473 | echo "$ac_t""$STRIP" 1>&6
|
|---|
| 2474 | else
|
|---|
| 2475 | echo "$ac_t""no" 1>&6
|
|---|
| 2476 | fi
|
|---|
| 2477 |
|
|---|
| 2478 |
|
|---|
| 2479 | if test -z "$ac_cv_prog_STRIP"; then
|
|---|
| 2480 | if test -n "$ac_tool_prefix"; then
|
|---|
| 2481 | # Extract the first word of "strip", so it can be a program name with args.
|
|---|
| 2482 | set dummy strip; ac_word=$2
|
|---|
| 2483 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2484 | echo "configure:2485: checking for $ac_word" >&5
|
|---|
| 2485 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
|---|
| 2486 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2487 | else
|
|---|
| 2488 | if test -n "$STRIP"; then
|
|---|
| 2489 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
|---|
| 2490 | else
|
|---|
| 2491 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2492 | ac_dummy="$PATH"
|
|---|
| 2493 | for ac_dir in $ac_dummy; do
|
|---|
| 2494 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2495 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2496 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2497 | ac_cv_prog_STRIP="strip"
|
|---|
| 2498 | break
|
|---|
| 2499 | fi
|
|---|
| 2500 | done
|
|---|
| 2501 | IFS="$ac_save_ifs"
|
|---|
| 2502 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
|
|---|
| 2503 | fi
|
|---|
| 2504 | fi
|
|---|
| 2505 | STRIP="$ac_cv_prog_STRIP"
|
|---|
| 2506 | if test -n "$STRIP"; then
|
|---|
| 2507 | echo "$ac_t""$STRIP" 1>&6
|
|---|
| 2508 | else
|
|---|
| 2509 | echo "$ac_t""no" 1>&6
|
|---|
| 2510 | fi
|
|---|
| 2511 |
|
|---|
| 2512 | else
|
|---|
| 2513 | STRIP=":"
|
|---|
| 2514 | fi
|
|---|
| 2515 | fi
|
|---|
| 2516 |
|
|---|
| 2517 |
|
|---|
| 2518 | # Check for any special flags to pass to ltconfig.
|
|---|
| 2519 | libtool_flags="--cache-file=$cache_file"
|
|---|
| 2520 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
|
|---|
| 2521 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
|
|---|
| 2522 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
|
|---|
| 2523 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
|
|---|
| 2524 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
|
|---|
| 2525 | libtool_flags="$libtool_flags --enable-dlopen"
|
|---|
| 2526 |
|
|---|
| 2527 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
|
|---|
| 2528 | if test "${enable_libtool_lock+set}" = set; then
|
|---|
| 2529 | enableval="$enable_libtool_lock"
|
|---|
| 2530 | :
|
|---|
| 2531 | fi
|
|---|
| 2532 |
|
|---|
| 2533 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
|
|---|
| 2534 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
|
|---|
| 2535 |
|
|---|
| 2536 | # Check whether --with-pic or --without-pic was given.
|
|---|
| 2537 | if test "${with_pic+set}" = set; then
|
|---|
| 2538 | withval="$with_pic"
|
|---|
| 2539 | pic_mode="$withval"
|
|---|
| 2540 | else
|
|---|
| 2541 | pic_mode=default
|
|---|
| 2542 | fi
|
|---|
| 2543 |
|
|---|
| 2544 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
|
|---|
| 2545 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
|
|---|
| 2546 |
|
|---|
| 2547 | # Some flags need to be propagated to the compiler or linker for good
|
|---|
| 2548 | # libtool support.
|
|---|
| 2549 | case $host in
|
|---|
| 2550 | *-*-irix6*)
|
|---|
| 2551 | # Find out which ABI we are using.
|
|---|
| 2552 | echo '#line 2553 "configure"' > conftest.$ac_ext
|
|---|
| 2553 | if { (eval echo configure:2554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 2554 | if test "$lt_cv_prog_gnu_ld" = yes; then
|
|---|
| 2555 | case `/usr/bin/file conftest.$ac_objext` in
|
|---|
| 2556 | *32-bit*)
|
|---|
| 2557 | LD="${LD-ld} -melf32bsmip"
|
|---|
| 2558 | ;;
|
|---|
| 2559 | *N32*)
|
|---|
| 2560 | LD="${LD-ld} -melf32bmipn32"
|
|---|
| 2561 | ;;
|
|---|
| 2562 | *64-bit*)
|
|---|
| 2563 | LD="${LD-ld} -melf64bmip"
|
|---|
| 2564 | ;;
|
|---|
| 2565 | esac
|
|---|
| 2566 | else
|
|---|
| 2567 | case `/usr/bin/file conftest.$ac_objext` in
|
|---|
| 2568 | *32-bit*)
|
|---|
| 2569 | LD="${LD-ld} -32"
|
|---|
| 2570 | ;;
|
|---|
| 2571 | *N32*)
|
|---|
| 2572 | LD="${LD-ld} -n32"
|
|---|
| 2573 | ;;
|
|---|
| 2574 | *64-bit*)
|
|---|
| 2575 | LD="${LD-ld} -64"
|
|---|
| 2576 | ;;
|
|---|
| 2577 | esac
|
|---|
| 2578 | fi
|
|---|
| 2579 | fi
|
|---|
| 2580 | rm -rf conftest*
|
|---|
| 2581 | ;;
|
|---|
| 2582 |
|
|---|
| 2583 | ia64-*-hpux*)
|
|---|
| 2584 | # Find out which ABI we are using.
|
|---|
| 2585 | echo 'int i;' > conftest.$ac_ext
|
|---|
| 2586 | if { (eval echo configure:2587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 2587 | case "`/usr/bin/file conftest.o`" in
|
|---|
| 2588 | *ELF-32*)
|
|---|
| 2589 | HPUX_IA64_MODE="32"
|
|---|
| 2590 | ;;
|
|---|
| 2591 | *ELF-64*)
|
|---|
| 2592 | HPUX_IA64_MODE="64"
|
|---|
| 2593 | ;;
|
|---|
| 2594 | esac
|
|---|
| 2595 | fi
|
|---|
| 2596 | rm -rf conftest*
|
|---|
| 2597 | ;;
|
|---|
| 2598 |
|
|---|
| 2599 | *-*-sco3.2v5*)
|
|---|
| 2600 | # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
|---|
| 2601 | SAVE_CFLAGS="$CFLAGS"
|
|---|
| 2602 | CFLAGS="$CFLAGS -belf"
|
|---|
| 2603 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
|
|---|
| 2604 | echo "configure:2605: checking whether the C compiler needs -belf" >&5
|
|---|
| 2605 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
|
|---|
| 2606 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2607 | else
|
|---|
| 2608 |
|
|---|
| 2609 | ac_ext=c
|
|---|
| 2610 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2611 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2612 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2613 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2614 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2615 |
|
|---|
| 2616 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2617 | #line 2618 "configure"
|
|---|
| 2618 | #include "confdefs.h"
|
|---|
| 2619 |
|
|---|
| 2620 | int main() {
|
|---|
| 2621 |
|
|---|
| 2622 | ; return 0; }
|
|---|
| 2623 | EOF
|
|---|
| 2624 | if { (eval echo configure:2625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 2625 | rm -rf conftest*
|
|---|
| 2626 | lt_cv_cc_needs_belf=yes
|
|---|
| 2627 | else
|
|---|
| 2628 | echo "configure: failed program was:" >&5
|
|---|
| 2629 | cat conftest.$ac_ext >&5
|
|---|
| 2630 | rm -rf conftest*
|
|---|
| 2631 | lt_cv_cc_needs_belf=no
|
|---|
| 2632 | fi
|
|---|
| 2633 | rm -f conftest*
|
|---|
| 2634 | ac_ext=c
|
|---|
| 2635 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2636 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2637 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2638 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2639 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2640 |
|
|---|
| 2641 | fi
|
|---|
| 2642 |
|
|---|
| 2643 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
|
|---|
| 2644 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
|---|
| 2645 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
|---|
| 2646 | CFLAGS="$SAVE_CFLAGS"
|
|---|
| 2647 | fi
|
|---|
| 2648 | ;;
|
|---|
| 2649 |
|
|---|
| 2650 |
|
|---|
| 2651 | esac
|
|---|
| 2652 |
|
|---|
| 2653 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
|
|---|
| 2654 | echo "configure:2655: checking how to run the C++ preprocessor" >&5
|
|---|
| 2655 | if test -z "$CXXCPP"; then
|
|---|
| 2656 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
|
|---|
| 2657 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2658 | else
|
|---|
| 2659 | ac_ext=C
|
|---|
| 2660 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2661 | ac_cpp='$CXXCPP $CPPFLAGS'
|
|---|
| 2662 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2663 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2664 | cross_compiling=$ac_cv_prog_cxx_cross
|
|---|
| 2665 | CXXCPP="${CXX-g++} -E"
|
|---|
| 2666 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2667 | #include <sys/types.h>
|
|---|
| 2668 | #line 2669 "configure"
|
|---|
| 2669 | #include "confdefs.h"
|
|---|
| 2670 | #include <stdlib.h>
|
|---|
| 2671 | EOF
|
|---|
| 2672 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 2673 | { (eval echo configure:2674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 2674 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 2675 | if test -z "$ac_err"; then
|
|---|
| 2676 | :
|
|---|
| 2677 | else
|
|---|
| 2678 | echo "$ac_err" >&5
|
|---|
| 2679 | echo "configure: failed program was:" >&5
|
|---|
| 2680 | cat conftest.$ac_ext >&5
|
|---|
| 2681 | rm -rf conftest*
|
|---|
| 2682 | CXXCPP=/lib/cpp
|
|---|
| 2683 | fi
|
|---|
| 2684 | rm -f conftest*
|
|---|
| 2685 | ac_cv_prog_CXXCPP="$CXXCPP"
|
|---|
| 2686 | ac_ext=c
|
|---|
| 2687 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2688 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2689 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2690 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2691 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2692 | fi
|
|---|
| 2693 | fi
|
|---|
| 2694 | CXXCPP="$ac_cv_prog_CXXCPP"
|
|---|
| 2695 | echo "$ac_t""$CXXCPP" 1>&6
|
|---|
| 2696 |
|
|---|
| 2697 |
|
|---|
| 2698 | # Save cache, so that ltconfig can load it
|
|---|
| 2699 | cat > confcache <<\EOF
|
|---|
| 2700 | # This file is a shell script that caches the results of configure
|
|---|
| 2701 | # tests run on this system so they can be shared between configure
|
|---|
| 2702 | # scripts and configure runs. It is not useful on other systems.
|
|---|
| 2703 | # If it contains results you don't want to keep, you may remove or edit it.
|
|---|
| 2704 | #
|
|---|
| 2705 | # By default, configure uses ./config.cache as the cache file,
|
|---|
| 2706 | # creating it if it does not exist already. You can give configure
|
|---|
| 2707 | # the --cache-file=FILE option to use a different cache file; that is
|
|---|
| 2708 | # what configure does when it calls configure scripts in
|
|---|
| 2709 | # subdirectories, so they share the cache.
|
|---|
| 2710 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
|---|
| 2711 | # config.status only pays attention to the cache file if you give it the
|
|---|
| 2712 | # --recheck option to rerun configure.
|
|---|
| 2713 | #
|
|---|
| 2714 | EOF
|
|---|
| 2715 | # The following way of writing the cache mishandles newlines in values,
|
|---|
| 2716 | # but we know of no workaround that is simple, portable, and efficient.
|
|---|
| 2717 | # So, don't put newlines in cache variables' values.
|
|---|
| 2718 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
|---|
| 2719 | # and sets the high bit in the cache file unless we assign to the vars.
|
|---|
| 2720 | (set) 2>&1 |
|
|---|
| 2721 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
|---|
| 2722 | *ac_space=\ *)
|
|---|
| 2723 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
|---|
| 2724 | # turns \\\\ into \\, and sed turns \\ into \).
|
|---|
| 2725 | sed -n \
|
|---|
| 2726 | -e "s/'/'\\\\''/g" \
|
|---|
| 2727 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
|---|
| 2728 | ;;
|
|---|
| 2729 | *)
|
|---|
| 2730 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
|---|
| 2731 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
|---|
| 2732 | ;;
|
|---|
| 2733 | esac >> confcache
|
|---|
| 2734 | if cmp -s $cache_file confcache; then
|
|---|
| 2735 | :
|
|---|
| 2736 | else
|
|---|
| 2737 | if test -w $cache_file; then
|
|---|
| 2738 | echo "updating cache $cache_file"
|
|---|
| 2739 | cat confcache > $cache_file
|
|---|
| 2740 | else
|
|---|
| 2741 | echo "not updating unwritable cache $cache_file"
|
|---|
| 2742 | fi
|
|---|
| 2743 | fi
|
|---|
| 2744 | rm -f confcache
|
|---|
| 2745 |
|
|---|
| 2746 |
|
|---|
| 2747 | # Actually configure libtool. ac_aux_dir is where install-sh is found.
|
|---|
| 2748 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
|
|---|
| 2749 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
|
|---|
| 2750 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
|
|---|
| 2751 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
|
|---|
| 2752 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
|
|---|
| 2753 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
|
|---|
| 2754 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
|
|---|
| 2755 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
|
|---|
| 2756 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
|
|---|
| 2757 |
|
|---|
| 2758 | # Reload cache, that may have been modified by ltconfig
|
|---|
| 2759 | if test -r "$cache_file"; then
|
|---|
| 2760 | echo "loading cache $cache_file"
|
|---|
| 2761 | . $cache_file
|
|---|
| 2762 | else
|
|---|
| 2763 | echo "creating cache $cache_file"
|
|---|
| 2764 | > $cache_file
|
|---|
| 2765 | fi
|
|---|
| 2766 |
|
|---|
| 2767 |
|
|---|
| 2768 | # This can be used to rebuild libtool when needed
|
|---|
| 2769 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
|
|---|
| 2770 |
|
|---|
| 2771 | # Always use our own libtool.
|
|---|
| 2772 | LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
|---|
| 2773 |
|
|---|
| 2774 | # Redirect the config.log output again, so that the ltconfig log is not
|
|---|
| 2775 | # clobbered by the next message.
|
|---|
| 2776 | exec 5>>./config.log
|
|---|
| 2777 |
|
|---|
| 2778 |
|
|---|
| 2779 |
|
|---|
| 2780 | LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
|
|---|
| 2781 | lt_save_CC="$CC"
|
|---|
| 2782 | lt_save_CFLAGS="$CFLAGS"
|
|---|
| 2783 | AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
|
|---|
| 2784 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
|
|---|
| 2785 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
|
|---|
| 2786 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
|
|---|
| 2787 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
|
|---|
| 2788 | deplibs_check_method="$deplibs_check_method" \
|
|---|
| 2789 | file_magic_cmd="$file_magic_cmd" \
|
|---|
| 2790 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
|
|---|
| 2791 | --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
|
|---|
| 2792 | || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
|
|---|
| 2793 | CC="$lt_save_CC"
|
|---|
| 2794 | CFLAGS="$lt_save_CFLAGS"
|
|---|
| 2795 |
|
|---|
| 2796 | # Redirect the config.log output again, so that the ltconfig log is not
|
|---|
| 2797 | # clobbered by the next message.
|
|---|
| 2798 | exec 5>>./config.log
|
|---|
| 2799 |
|
|---|
| 2800 |
|
|---|
| 2801 |
|
|---|
| 2802 |
|
|---|
| 2803 |
|
|---|
| 2804 |
|
|---|
| 2805 | subdirs="$DIRLTDL"
|
|---|
| 2806 |
|
|---|
| 2807 |
|
|---|
| 2808 | if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
|
|---|
| 2809 | COMPPATH=.
|
|---|
| 2810 | else
|
|---|
| 2811 | COMPPATH=..
|
|---|
| 2812 | fi
|
|---|
| 2813 |
|
|---|
| 2814 |
|
|---|
| 2815 |
|
|---|
| 2816 |
|
|---|
| 2817 | if test -d $srcdir/testsuite; then
|
|---|
| 2818 | TESTSUBDIR_TRUE=
|
|---|
| 2819 | TESTSUBDIR_FALSE='#'
|
|---|
| 2820 | else
|
|---|
| 2821 | TESTSUBDIR_TRUE='#'
|
|---|
| 2822 | TESTSUBDIR_FALSE=
|
|---|
| 2823 | fi
|
|---|
| 2824 |
|
|---|
| 2825 | # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
|
|---|
| 2826 | if test "${enable_getenv_properties+set}" = set; then
|
|---|
| 2827 | enableval="$enable_getenv_properties"
|
|---|
| 2828 | :
|
|---|
| 2829 | fi
|
|---|
| 2830 |
|
|---|
| 2831 |
|
|---|
| 2832 | if test -z "$enable_getenv_properties"; then
|
|---|
| 2833 | enable_getenv_properties=${enable_getenv_properties_default-yes}
|
|---|
| 2834 | fi
|
|---|
| 2835 | if test "$enable_getenv_properties" = no; then
|
|---|
| 2836 | cat >> confdefs.h <<\EOF
|
|---|
| 2837 | #define DISABLE_GETENV_PROPERTIES 1
|
|---|
| 2838 | EOF
|
|---|
| 2839 |
|
|---|
| 2840 | fi
|
|---|
| 2841 |
|
|---|
| 2842 | if test -z "$enable_main_args"; then
|
|---|
| 2843 | enable_main_args=${enable_main_args_default-yes}
|
|---|
| 2844 | fi
|
|---|
| 2845 | if test "$enable_main_args" = no; then
|
|---|
| 2846 | cat >> confdefs.h <<\EOF
|
|---|
| 2847 | #define DISABLE_MAIN_ARGS 1
|
|---|
| 2848 | EOF
|
|---|
| 2849 |
|
|---|
| 2850 | fi
|
|---|
| 2851 |
|
|---|
| 2852 |
|
|---|
| 2853 | # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
|
|---|
| 2854 | if test "${enable_hash_synchronization+set}" = set; then
|
|---|
| 2855 | enableval="$enable_hash_synchronization"
|
|---|
| 2856 | :
|
|---|
| 2857 | fi
|
|---|
| 2858 |
|
|---|
| 2859 |
|
|---|
| 2860 | if test -z "$enable_hash_synchronization"; then
|
|---|
| 2861 | enable_hash_synchronization=$enable_hash_synchronization_default
|
|---|
| 2862 | fi
|
|---|
| 2863 |
|
|---|
| 2864 | if test "${slow_pthread_self}" = "yes"; then
|
|---|
| 2865 | cat >> confdefs.h <<\EOF
|
|---|
| 2866 | #define SLOW_PTHREAD_SELF 1
|
|---|
| 2867 | EOF
|
|---|
| 2868 |
|
|---|
| 2869 | fi
|
|---|
| 2870 |
|
|---|
| 2871 |
|
|---|
| 2872 | LIBGCJDEBUG="false"
|
|---|
| 2873 |
|
|---|
| 2874 | # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
|
|---|
| 2875 | if test "${enable_libgcj_debug+set}" = set; then
|
|---|
| 2876 | enableval="$enable_libgcj_debug"
|
|---|
| 2877 | if test "$enable_libgcj_debug" = yes; then
|
|---|
| 2878 | cat >> confdefs.h <<\EOF
|
|---|
| 2879 | #define DEBUG 1
|
|---|
| 2880 | EOF
|
|---|
| 2881 |
|
|---|
| 2882 | LIBGCJDEBUG="true"
|
|---|
| 2883 | fi
|
|---|
| 2884 | fi
|
|---|
| 2885 |
|
|---|
| 2886 |
|
|---|
| 2887 | # Check whether --enable-interpreter or --disable-interpreter was given.
|
|---|
| 2888 | if test "${enable_interpreter+set}" = set; then
|
|---|
| 2889 | enableval="$enable_interpreter"
|
|---|
| 2890 | if test "$enable_interpreter" = yes; then
|
|---|
| 2891 | # This can also be set in configure.host.
|
|---|
| 2892 | libgcj_interpreter=yes
|
|---|
| 2893 | elif test "$enable_interpreter" = no; then
|
|---|
| 2894 | libgcj_interpreter=no
|
|---|
| 2895 | fi
|
|---|
| 2896 | fi
|
|---|
| 2897 |
|
|---|
| 2898 |
|
|---|
| 2899 | if test "$libgcj_interpreter" = yes; then
|
|---|
| 2900 | cat >> confdefs.h <<\EOF
|
|---|
| 2901 | #define INTERPRETER 1
|
|---|
| 2902 | EOF
|
|---|
| 2903 |
|
|---|
| 2904 | fi
|
|---|
| 2905 |
|
|---|
| 2906 | echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
|
|---|
| 2907 | echo "configure:2908: checking for exception model to use" >&5
|
|---|
| 2908 |
|
|---|
| 2909 | ac_ext=C
|
|---|
| 2910 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2911 | ac_cpp='$CXXCPP $CPPFLAGS'
|
|---|
| 2912 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2913 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2914 | cross_compiling=$ac_cv_prog_cxx_cross
|
|---|
| 2915 |
|
|---|
| 2916 | # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
|
|---|
| 2917 | if test "${enable_sjlj_exceptions+set}" = set; then
|
|---|
| 2918 | enableval="$enable_sjlj_exceptions"
|
|---|
| 2919 | :
|
|---|
| 2920 | else
|
|---|
| 2921 | cat > conftest.$ac_ext << EOF
|
|---|
| 2922 | #line 2923 "configure"
|
|---|
| 2923 | struct S { ~S(); };
|
|---|
| 2924 | void bar();
|
|---|
| 2925 | void foo()
|
|---|
| 2926 | {
|
|---|
| 2927 | S s;
|
|---|
| 2928 | bar();
|
|---|
| 2929 | }
|
|---|
| 2930 | EOF
|
|---|
| 2931 | old_CXXFLAGS="$CXXFLAGS"
|
|---|
| 2932 | CXXFLAGS=-S
|
|---|
| 2933 | if { (eval echo configure:2934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 2934 | if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
|
|---|
| 2935 | enable_sjlj_exceptions=yes
|
|---|
| 2936 | elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
|
|---|
| 2937 | enable_sjlj_exceptions=no
|
|---|
| 2938 | fi
|
|---|
| 2939 | fi
|
|---|
| 2940 | CXXFLAGS="$old_CXXFLAGS"
|
|---|
| 2941 | rm -f conftest*
|
|---|
| 2942 | fi
|
|---|
| 2943 |
|
|---|
| 2944 | if test x$enable_sjlj_exceptions = xyes; then
|
|---|
| 2945 | cat >> confdefs.h <<\EOF
|
|---|
| 2946 | #define SJLJ_EXCEPTIONS 1
|
|---|
| 2947 | EOF
|
|---|
| 2948 |
|
|---|
| 2949 | ac_exception_model_name=sjlj
|
|---|
| 2950 | elif test x$enable_sjlj_exceptions = xno; then
|
|---|
| 2951 | ac_exception_model_name="call frame"
|
|---|
| 2952 | else
|
|---|
| 2953 | { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
|
|---|
| 2954 | fi
|
|---|
| 2955 | ac_ext=c
|
|---|
| 2956 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2957 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2958 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2959 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2960 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2961 |
|
|---|
| 2962 | echo "$ac_t""$ac_exception_model_name" 1>&6
|
|---|
| 2963 |
|
|---|
| 2964 | # If we are non using SJLJ exceptions, and this host does not have support
|
|---|
| 2965 | # for unwinding from a signal handler, enable checked dereferences and divides.
|
|---|
| 2966 | if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
|
|---|
| 2967 | CHECKREFSPEC=-fcheck-references
|
|---|
| 2968 | DIVIDESPEC=-fuse-divide-subroutine
|
|---|
| 2969 | EXCEPTIONSPEC=
|
|---|
| 2970 | fi
|
|---|
| 2971 |
|
|---|
| 2972 | # Check whether --enable-java-net or --disable-java-net was given.
|
|---|
| 2973 | if test "${enable_java_net+set}" = set; then
|
|---|
| 2974 | enableval="$enable_java_net"
|
|---|
| 2975 | :
|
|---|
| 2976 | fi
|
|---|
| 2977 |
|
|---|
| 2978 |
|
|---|
| 2979 | if test -z "$enable_java_net"; then
|
|---|
| 2980 | enable_java_net=${enable_java_net_default-yes}
|
|---|
| 2981 | fi
|
|---|
| 2982 | if test "$enable_java_net" = no; then
|
|---|
| 2983 | cat >> confdefs.h <<\EOF
|
|---|
| 2984 | #define DISABLE_JAVA_NET 1
|
|---|
| 2985 | EOF
|
|---|
| 2986 |
|
|---|
| 2987 | fi
|
|---|
| 2988 |
|
|---|
| 2989 | # Check whether --with-libffi or --without-libffi was given.
|
|---|
| 2990 | if test "${with_libffi+set}" = set; then
|
|---|
| 2991 | withval="$with_libffi"
|
|---|
| 2992 | :
|
|---|
| 2993 | else
|
|---|
| 2994 | with_libffi=${with_libffi_default-yes}
|
|---|
| 2995 | fi
|
|---|
| 2996 |
|
|---|
| 2997 |
|
|---|
| 2998 | LIBFFI=
|
|---|
| 2999 | LIBFFIINCS=
|
|---|
| 3000 | if test "$with_libffi" != no; then
|
|---|
| 3001 | cat >> confdefs.h <<\EOF
|
|---|
| 3002 | #define USE_LIBFFI 1
|
|---|
| 3003 | EOF
|
|---|
| 3004 |
|
|---|
| 3005 | LIBFFI=../libffi/libffi_convenience.la
|
|---|
| 3006 | LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I$(MULTIBUILDTOP)../libffi/include'
|
|---|
| 3007 | fi
|
|---|
| 3008 |
|
|---|
| 3009 |
|
|---|
| 3010 |
|
|---|
| 3011 | # Check whether --enable-jvmpi or --disable-jvmpi was given.
|
|---|
| 3012 | if test "${enable_jvmpi+set}" = set; then
|
|---|
| 3013 | enableval="$enable_jvmpi"
|
|---|
| 3014 | :
|
|---|
| 3015 | fi
|
|---|
| 3016 |
|
|---|
| 3017 |
|
|---|
| 3018 | if test "$enable_jvmpi" != no; then
|
|---|
| 3019 | cat >> confdefs.h <<\EOF
|
|---|
| 3020 | #define ENABLE_JVMPI 1
|
|---|
| 3021 | EOF
|
|---|
| 3022 |
|
|---|
| 3023 | fi
|
|---|
| 3024 |
|
|---|
| 3025 | TARGET_ECOS=${PROCESS-"no"}
|
|---|
| 3026 | # Check whether --with-ecos or --without-ecos was given.
|
|---|
| 3027 | if test "${with_ecos+set}" = set; then
|
|---|
| 3028 | withval="$with_ecos"
|
|---|
| 3029 | TARGET_ECOS="$with_ecos"
|
|---|
| 3030 |
|
|---|
| 3031 | fi
|
|---|
| 3032 |
|
|---|
| 3033 |
|
|---|
| 3034 | PLATFORMOBJS=
|
|---|
| 3035 | case "$TARGET_ECOS" in
|
|---|
| 3036 | no) case "$host" in
|
|---|
| 3037 | *mingw*)
|
|---|
| 3038 | PLATFORM=Win32
|
|---|
| 3039 | PLATFORMOBJS=win32.lo
|
|---|
| 3040 | PLATFORMH=win32.h
|
|---|
| 3041 | ;;
|
|---|
| 3042 | *)
|
|---|
| 3043 | PLATFORM=Posix
|
|---|
| 3044 | PLATFORMOBJS=posix.lo
|
|---|
| 3045 | PLATFORMH=posix.h
|
|---|
| 3046 | ;;
|
|---|
| 3047 | esac
|
|---|
| 3048 | ;;
|
|---|
| 3049 | *)
|
|---|
| 3050 | PLATFORM=Ecos
|
|---|
| 3051 | cat >> confdefs.h <<\EOF
|
|---|
| 3052 | #define ECOS 1
|
|---|
| 3053 | EOF
|
|---|
| 3054 |
|
|---|
| 3055 | PLATFORMOBJS=posix.lo
|
|---|
| 3056 | PLATFORMH=posix.h
|
|---|
| 3057 | ;;
|
|---|
| 3058 | esac
|
|---|
| 3059 |
|
|---|
| 3060 |
|
|---|
| 3061 |
|
|---|
| 3062 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
|---|
| 3063 | echo "configure:3064: checking how to run the C preprocessor" >&5
|
|---|
| 3064 | # On Suns, sometimes $CPP names a directory.
|
|---|
| 3065 | if test -n "$CPP" && test -d "$CPP"; then
|
|---|
| 3066 | CPP=
|
|---|
| 3067 | fi
|
|---|
| 3068 | if test -z "$CPP"; then
|
|---|
| 3069 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
|---|
| 3070 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3071 | else
|
|---|
| 3072 | # This must be in double quotes, not single quotes, because CPP may get
|
|---|
| 3073 | # substituted into the Makefile and "${CC-cc}" will confuse make.
|
|---|
| 3074 | CPP="${CC-cc} -E"
|
|---|
| 3075 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
|---|
| 3076 | # not just through cpp.
|
|---|
| 3077 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3078 | #include <sys/types.h>
|
|---|
| 3079 | #line 3080 "configure"
|
|---|
| 3080 | #include "confdefs.h"
|
|---|
| 3081 | #include <assert.h>
|
|---|
| 3082 | Syntax Error
|
|---|
| 3083 | EOF
|
|---|
| 3084 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 3085 | { (eval echo configure:3086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 3086 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 3087 | if test -z "$ac_err"; then
|
|---|
| 3088 | :
|
|---|
| 3089 | else
|
|---|
| 3090 | echo "$ac_err" >&5
|
|---|
| 3091 | echo "configure: failed program was:" >&5
|
|---|
| 3092 | cat conftest.$ac_ext >&5
|
|---|
| 3093 | rm -rf conftest*
|
|---|
| 3094 | CPP="${CC-cc} -E -traditional-cpp"
|
|---|
| 3095 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3096 | #include <sys/types.h>
|
|---|
| 3097 | #line 3098 "configure"
|
|---|
| 3098 | #include "confdefs.h"
|
|---|
| 3099 | #include <assert.h>
|
|---|
| 3100 | Syntax Error
|
|---|
| 3101 | EOF
|
|---|
| 3102 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 3103 | { (eval echo configure:3104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 3104 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 3105 | if test -z "$ac_err"; then
|
|---|
| 3106 | :
|
|---|
| 3107 | else
|
|---|
| 3108 | echo "$ac_err" >&5
|
|---|
| 3109 | echo "configure: failed program was:" >&5
|
|---|
| 3110 | cat conftest.$ac_ext >&5
|
|---|
| 3111 | rm -rf conftest*
|
|---|
| 3112 | CPP="${CC-cc} -nologo -E"
|
|---|
| 3113 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3114 | #include <sys/types.h>
|
|---|
| 3115 | #line 3116 "configure"
|
|---|
| 3116 | #include "confdefs.h"
|
|---|
| 3117 | #include <assert.h>
|
|---|
| 3118 | Syntax Error
|
|---|
| 3119 | EOF
|
|---|
| 3120 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 3121 | { (eval echo configure:3122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 3122 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 3123 | if test -z "$ac_err"; then
|
|---|
| 3124 | :
|
|---|
| 3125 | else
|
|---|
| 3126 | echo "$ac_err" >&5
|
|---|
| 3127 | echo "configure: failed program was:" >&5
|
|---|
| 3128 | cat conftest.$ac_ext >&5
|
|---|
| 3129 | rm -rf conftest*
|
|---|
| 3130 | CPP=/lib/cpp
|
|---|
| 3131 | fi
|
|---|
| 3132 | rm -f conftest*
|
|---|
| 3133 | fi
|
|---|
| 3134 | rm -f conftest*
|
|---|
| 3135 | fi
|
|---|
| 3136 | rm -f conftest*
|
|---|
| 3137 | ac_cv_prog_CPP="$CPP"
|
|---|
| 3138 | fi
|
|---|
| 3139 | CPP="$ac_cv_prog_CPP"
|
|---|
| 3140 | else
|
|---|
| 3141 | ac_cv_prog_CPP="$CPP"
|
|---|
| 3142 | fi
|
|---|
| 3143 | echo "$ac_t""$CPP" 1>&6
|
|---|
| 3144 |
|
|---|
| 3145 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3146 | #line 3147 "configure"
|
|---|
| 3147 | #include "confdefs.h"
|
|---|
| 3148 | #include <stdint.h>
|
|---|
| 3149 | EOF
|
|---|
| 3150 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 3151 | egrep "uint32_t" >/dev/null 2>&1; then
|
|---|
| 3152 | rm -rf conftest*
|
|---|
| 3153 | cat >> confdefs.h <<\EOF
|
|---|
| 3154 | #define HAVE_INT32_DEFINED 1
|
|---|
| 3155 | EOF
|
|---|
| 3156 |
|
|---|
| 3157 | fi
|
|---|
| 3158 | rm -f conftest*
|
|---|
| 3159 |
|
|---|
| 3160 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3161 | #line 3162 "configure"
|
|---|
| 3162 | #include "confdefs.h"
|
|---|
| 3163 | #include <inttypes.h>
|
|---|
| 3164 | EOF
|
|---|
| 3165 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 3166 | egrep "uint32_t" >/dev/null 2>&1; then
|
|---|
| 3167 | rm -rf conftest*
|
|---|
| 3168 | cat >> confdefs.h <<\EOF
|
|---|
| 3169 | #define HAVE_INT32_DEFINED 1
|
|---|
| 3170 | EOF
|
|---|
| 3171 |
|
|---|
| 3172 | fi
|
|---|
| 3173 | rm -f conftest*
|
|---|
| 3174 |
|
|---|
| 3175 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3176 | #line 3177 "configure"
|
|---|
| 3177 | #include "confdefs.h"
|
|---|
| 3178 | #include <sys/types.h>
|
|---|
| 3179 | EOF
|
|---|
| 3180 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 3181 | egrep "u_int32_t" >/dev/null 2>&1; then
|
|---|
| 3182 | rm -rf conftest*
|
|---|
| 3183 | cat >> confdefs.h <<\EOF
|
|---|
| 3184 | #define HAVE_BSD_INT32_DEFINED 1
|
|---|
| 3185 | EOF
|
|---|
| 3186 |
|
|---|
| 3187 | fi
|
|---|
| 3188 | rm -f conftest*
|
|---|
| 3189 |
|
|---|
| 3190 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3191 | #line 3192 "configure"
|
|---|
| 3192 | #include "confdefs.h"
|
|---|
| 3193 | #include <sys/config.h>
|
|---|
| 3194 | EOF
|
|---|
| 3195 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 3196 | egrep "u_int32_t" >/dev/null 2>&1; then
|
|---|
| 3197 | rm -rf conftest*
|
|---|
| 3198 | cat >> confdefs.h <<\EOF
|
|---|
| 3199 | #define HAVE_BSD_INT32_DEFINED 1
|
|---|
| 3200 | EOF
|
|---|
| 3201 |
|
|---|
| 3202 | fi
|
|---|
| 3203 | rm -f conftest*
|
|---|
| 3204 |
|
|---|
| 3205 |
|
|---|
| 3206 |
|
|---|
| 3207 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3208 | #line 3209 "configure"
|
|---|
| 3209 | #include "confdefs.h"
|
|---|
| 3210 | #include <time.h>
|
|---|
| 3211 | EOF
|
|---|
| 3212 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 3213 | egrep "mktime" >/dev/null 2>&1; then
|
|---|
| 3214 | rm -rf conftest*
|
|---|
| 3215 | cat >> confdefs.h <<\EOF
|
|---|
| 3216 | #define HAVE_MKTIME 1
|
|---|
| 3217 | EOF
|
|---|
| 3218 |
|
|---|
| 3219 | fi
|
|---|
| 3220 | rm -f conftest*
|
|---|
| 3221 |
|
|---|
| 3222 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3223 | #line 3224 "configure"
|
|---|
| 3224 | #include "confdefs.h"
|
|---|
| 3225 | #include <time.h>
|
|---|
| 3226 | EOF
|
|---|
| 3227 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 3228 | egrep "localtime" >/dev/null 2>&1; then
|
|---|
| 3229 | rm -rf conftest*
|
|---|
| 3230 | cat >> confdefs.h <<\EOF
|
|---|
| 3231 | #define HAVE_LOCALTIME 1
|
|---|
| 3232 | EOF
|
|---|
| 3233 |
|
|---|
| 3234 | fi
|
|---|
| 3235 | rm -f conftest*
|
|---|
| 3236 |
|
|---|
| 3237 |
|
|---|
| 3238 | test -d java || mkdir java
|
|---|
| 3239 | test -d java/io || mkdir java/io
|
|---|
| 3240 | test -d gnu || mkdir gnu
|
|---|
| 3241 |
|
|---|
| 3242 |
|
|---|
| 3243 |
|
|---|
| 3244 | test -d java/lang || mkdir java/lang
|
|---|
| 3245 |
|
|---|
| 3246 |
|
|---|
| 3247 |
|
|---|
| 3248 | case "${host}" in
|
|---|
| 3249 | *mingw*)
|
|---|
| 3250 | SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32"
|
|---|
| 3251 | ;;
|
|---|
| 3252 | *)
|
|---|
| 3253 | SYSTEMSPEC=
|
|---|
| 3254 | ;;
|
|---|
| 3255 | esac
|
|---|
| 3256 |
|
|---|
| 3257 |
|
|---|
| 3258 | LIBGCJTESTSPEC="-L`pwd`/.libs -rpath `pwd`/.libs"
|
|---|
| 3259 |
|
|---|
| 3260 |
|
|---|
| 3261 | # Check whether --with-system-zlib or --without-system-zlib was given.
|
|---|
| 3262 | if test "${with_system_zlib+set}" = set; then
|
|---|
| 3263 | withval="$with_system_zlib"
|
|---|
| 3264 | :
|
|---|
| 3265 | fi
|
|---|
| 3266 |
|
|---|
| 3267 | ZLIBSPEC=
|
|---|
| 3268 |
|
|---|
| 3269 | ZLIBTESTSPEC=
|
|---|
| 3270 |
|
|---|
| 3271 |
|
|---|
| 3272 | libsubdir=.libs
|
|---|
| 3273 |
|
|---|
| 3274 | echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
|
|---|
| 3275 | echo "configure:3276: checking for garbage collector to use" >&5
|
|---|
| 3276 | # Check whether --enable-java-gc or --disable-java-gc was given.
|
|---|
| 3277 | if test "${enable_java_gc+set}" = set; then
|
|---|
| 3278 | enableval="$enable_java_gc"
|
|---|
| 3279 |
|
|---|
| 3280 | GC=$enableval
|
|---|
| 3281 | else
|
|---|
| 3282 | GC=boehm
|
|---|
| 3283 | fi
|
|---|
| 3284 |
|
|---|
| 3285 | GCLIBS=
|
|---|
| 3286 | GCINCS=
|
|---|
| 3287 | GCDEPS=
|
|---|
| 3288 | GCOBJS=
|
|---|
| 3289 | GCSPEC=
|
|---|
| 3290 | JC1GCSPEC=
|
|---|
| 3291 | GCTESTSPEC=
|
|---|
| 3292 | case "$GC" in
|
|---|
| 3293 | boehm)
|
|---|
| 3294 | echo "$ac_t""boehm" 1>&6
|
|---|
| 3295 | GCLIBS=../boehm-gc/libgcjgc_convenience.la
|
|---|
| 3296 | GCINCS='-I$(top_srcdir)/../boehm-gc/include'
|
|---|
| 3297 | JC1GCSPEC='-fuse-boehm-gc'
|
|---|
| 3298 | GCTESTSPEC="-L`pwd`/../boehm-gc/.libs -rpath `pwd`/../boehm-gc/.libs"
|
|---|
| 3299 |
|
|---|
| 3300 | GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
|
|---|
| 3301 | GCOBJS=boehm.lo
|
|---|
| 3302 | GCHDR=boehm-gc.h
|
|---|
| 3303 | cat >> confdefs.h <<\EOF
|
|---|
| 3304 | #define HAVE_BOEHM_GC 1
|
|---|
| 3305 | EOF
|
|---|
| 3306 |
|
|---|
| 3307 | ;;
|
|---|
| 3308 | no)
|
|---|
| 3309 | echo "$ac_t""none" 1>&6
|
|---|
| 3310 | GCOBJS=nogc.lo
|
|---|
| 3311 | GCHDR=no-gc.h
|
|---|
| 3312 | ;;
|
|---|
| 3313 | *)
|
|---|
| 3314 | { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
|
|---|
| 3315 | ;;
|
|---|
| 3316 | esac
|
|---|
| 3317 |
|
|---|
| 3318 |
|
|---|
| 3319 |
|
|---|
| 3320 |
|
|---|
| 3321 |
|
|---|
| 3322 |
|
|---|
| 3323 |
|
|---|
| 3324 |
|
|---|
| 3325 |
|
|---|
| 3326 |
|
|---|
| 3327 | echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
|
|---|
| 3328 | echo "configure:3329: checking for thread model used by GCC" >&5
|
|---|
| 3329 | THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
|
|---|
| 3330 | echo "$ac_t""$THREADS" 1>&6
|
|---|
| 3331 |
|
|---|
| 3332 | case "$THREADS" in
|
|---|
| 3333 | no | none | single)
|
|---|
| 3334 | THREADS=none
|
|---|
| 3335 | ;;
|
|---|
| 3336 | posix | pthreads)
|
|---|
| 3337 | THREADS=posix
|
|---|
| 3338 | case "$host" in
|
|---|
| 3339 | *-*-linux*)
|
|---|
| 3340 | cat >> confdefs.h <<\EOF
|
|---|
| 3341 | #define LINUX_THREADS 1
|
|---|
| 3342 | EOF
|
|---|
| 3343 |
|
|---|
| 3344 | ;;
|
|---|
| 3345 | esac
|
|---|
| 3346 | ;;
|
|---|
| 3347 | win32)
|
|---|
| 3348 | ;;
|
|---|
| 3349 | decosf1 | irix | mach | os2 | solaris | dce | vxworks)
|
|---|
| 3350 | { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
|
|---|
| 3351 | ;;
|
|---|
| 3352 | *)
|
|---|
| 3353 | { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
|
|---|
| 3354 | ;;
|
|---|
| 3355 | esac
|
|---|
| 3356 |
|
|---|
| 3357 | THREADLDFLAGS=
|
|---|
| 3358 | THREADLIBS=
|
|---|
| 3359 | THREADINCS=
|
|---|
| 3360 | THREADDEPS=
|
|---|
| 3361 | THREADOBJS=
|
|---|
| 3362 | THREADH=
|
|---|
| 3363 | THREADSPEC=
|
|---|
| 3364 | case "$THREADS" in
|
|---|
| 3365 | posix)
|
|---|
| 3366 | case "$host" in
|
|---|
| 3367 | *-*-cygwin*)
|
|---|
| 3368 | # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
|
|---|
| 3369 | ;;
|
|---|
| 3370 |
|
|---|
| 3371 | *-*-freebsd[1234]*)
|
|---|
| 3372 |
|
|---|
| 3373 | # Before FreeBSD 5, it didn't have -lpthread (or any library which
|
|---|
| 3374 | # merely adds pthread_* functions) but it does have a -pthread switch
|
|---|
| 3375 | # which is required at link-time to select -lc_r *instead* of -lc.
|
|---|
| 3376 | THREADLDFLAGS=-pthread
|
|---|
| 3377 | # Don't set THREADSPEC here as might be expected since -pthread is
|
|---|
| 3378 | # not processed when found within a spec file, it must come from
|
|---|
| 3379 | # the command line. For now, the user must provide the -pthread
|
|---|
| 3380 | # switch to link code compiled with gcj. In future, consider adding
|
|---|
| 3381 | # support for weak references to pthread_* functions ala gthr.h API.
|
|---|
| 3382 | THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
|
|---|
| 3383 | ;;
|
|---|
| 3384 | *-*-freebsd*)
|
|---|
| 3385 | # FreeBSD 5 implements a model much closer to other modern UNIX
|
|---|
| 3386 | # which support threads. However, it still does not support
|
|---|
| 3387 | # -lpthread.
|
|---|
| 3388 | THREADLDFLAGS=-pthread
|
|---|
| 3389 | THREADSPEC=-lc_r
|
|---|
| 3390 | ;;
|
|---|
| 3391 | *)
|
|---|
| 3392 | THREADLIBS=-lpthread
|
|---|
| 3393 | THREADSPEC=-lpthread
|
|---|
| 3394 | ;;
|
|---|
| 3395 | esac
|
|---|
| 3396 | THREADOBJS=posix-threads.lo
|
|---|
| 3397 | THREADH=posix-threads.h
|
|---|
| 3398 | # MIT pthreads doesn't seem to have the mutexattr functions.
|
|---|
| 3399 | # But for now we don't check for it. We just assume you aren't
|
|---|
| 3400 | # using MIT pthreads.
|
|---|
| 3401 | cat >> confdefs.h <<\EOF
|
|---|
| 3402 | #define HAVE_PTHREAD_MUTEXATTR_INIT 1
|
|---|
| 3403 | EOF
|
|---|
| 3404 |
|
|---|
| 3405 |
|
|---|
| 3406 | # If we're using the Boehm GC, then we happen to know that it
|
|---|
| 3407 | # defines _REENTRANT, so we don't bother. Eww.
|
|---|
| 3408 | if test "$GC" != boehm; then
|
|---|
| 3409 | cat >> confdefs.h <<\EOF
|
|---|
| 3410 | #define _REENTRANT 1
|
|---|
| 3411 | EOF
|
|---|
| 3412 |
|
|---|
| 3413 | fi
|
|---|
| 3414 | cat >> confdefs.h <<\EOF
|
|---|
| 3415 | #define _POSIX_PTHREAD_SEMANTICS 1
|
|---|
| 3416 | EOF
|
|---|
| 3417 |
|
|---|
| 3418 | ;;
|
|---|
| 3419 |
|
|---|
| 3420 | win32)
|
|---|
| 3421 | THREADOBJS=win32-threads.lo
|
|---|
| 3422 | THREADH=win32-threads.h
|
|---|
| 3423 | ;;
|
|---|
| 3424 |
|
|---|
| 3425 | none)
|
|---|
| 3426 | THREADOBJS=no-threads.lo
|
|---|
| 3427 | THREADH=no-threads.h
|
|---|
| 3428 | ;;
|
|---|
| 3429 | esac
|
|---|
| 3430 |
|
|---|
| 3431 |
|
|---|
| 3432 |
|
|---|
| 3433 |
|
|---|
| 3434 |
|
|---|
| 3435 |
|
|---|
| 3436 |
|
|---|
| 3437 |
|
|---|
| 3438 | if test -d sysdep; then true; else mkdir sysdep; fi
|
|---|
| 3439 |
|
|---|
| 3440 |
|
|---|
| 3441 | HASH_SYNC_SPEC=
|
|---|
| 3442 | # Hash synchronization is only useful with posix threads right now.
|
|---|
| 3443 | if test "$enable_hash_synchronization" = yes && test "$THREADS" = "posix"; then
|
|---|
| 3444 | HASH_SYNC_SPEC=-fhash-synchronization
|
|---|
| 3445 | cat >> confdefs.h <<\EOF
|
|---|
| 3446 | #define JV_HASH_SYNCHRONIZATION 1
|
|---|
| 3447 | EOF
|
|---|
| 3448 |
|
|---|
| 3449 | fi
|
|---|
| 3450 |
|
|---|
| 3451 |
|
|---|
| 3452 |
|
|---|
| 3453 |
|
|---|
| 3454 |
|
|---|
| 3455 | if test "$GCC" = yes; then
|
|---|
| 3456 | USING_GCC_TRUE=
|
|---|
| 3457 | USING_GCC_FALSE='#'
|
|---|
| 3458 | else
|
|---|
| 3459 | USING_GCC_TRUE='#'
|
|---|
| 3460 | USING_GCC_FALSE=
|
|---|
| 3461 | fi
|
|---|
| 3462 |
|
|---|
| 3463 | CANADIAN=no
|
|---|
| 3464 | NULL_TARGET=no
|
|---|
| 3465 | NATIVE=yes
|
|---|
| 3466 |
|
|---|
| 3467 | # We're in the tree with gcc, and need to include some of its headers.
|
|---|
| 3468 | GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
|
|---|
| 3469 |
|
|---|
| 3470 | # Figure out where generated headers like libgcj-config.h get installed.
|
|---|
| 3471 | gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
|
|---|
| 3472 | gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
|
|---|
| 3473 | gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
|
|---|
| 3474 | tool_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include
|
|---|
| 3475 |
|
|---|
| 3476 |
|
|---|
| 3477 |
|
|---|
| 3478 | if test -n "${with_cross_host}"; then
|
|---|
| 3479 | # We are being configured with a cross compiler. AC_REPLACE_FUNCS
|
|---|
| 3480 | # may not work correctly, because the compiler may not be able to
|
|---|
| 3481 | # link executables.
|
|---|
| 3482 |
|
|---|
| 3483 | # We assume newlib. This lets us hard-code the functions we know
|
|---|
| 3484 | # we'll have.
|
|---|
| 3485 | cat >> confdefs.h <<\EOF
|
|---|
| 3486 | #define HAVE_MEMMOVE 1
|
|---|
| 3487 | EOF
|
|---|
| 3488 |
|
|---|
| 3489 | cat >> confdefs.h <<\EOF
|
|---|
| 3490 | #define HAVE_MEMCPY 1
|
|---|
| 3491 | EOF
|
|---|
| 3492 |
|
|---|
| 3493 | cat >> confdefs.h <<\EOF
|
|---|
| 3494 | #define HAVE_STRERROR 1
|
|---|
| 3495 | EOF
|
|---|
| 3496 |
|
|---|
| 3497 | cat >> confdefs.h <<\EOF
|
|---|
| 3498 | #define HAVE_TIME 1
|
|---|
| 3499 | EOF
|
|---|
| 3500 |
|
|---|
| 3501 | cat >> confdefs.h <<\EOF
|
|---|
| 3502 | #define HAVE_GMTIME_R 1
|
|---|
| 3503 | EOF
|
|---|
| 3504 |
|
|---|
| 3505 | cat >> confdefs.h <<\EOF
|
|---|
| 3506 | #define HAVE_LOCALTIME_R 1
|
|---|
| 3507 | EOF
|
|---|
| 3508 |
|
|---|
| 3509 | cat >> confdefs.h <<\EOF
|
|---|
| 3510 | #define HAVE_PTHREAD_MUTEXATTR_INIT 1
|
|---|
| 3511 | EOF
|
|---|
| 3512 |
|
|---|
| 3513 | cat >> confdefs.h <<\EOF
|
|---|
| 3514 | #define HAVE_ALLOCA 1
|
|---|
| 3515 | EOF
|
|---|
| 3516 |
|
|---|
| 3517 |
|
|---|
| 3518 | cat >> confdefs.h <<\EOF
|
|---|
| 3519 | #define NO_GETUID 1
|
|---|
| 3520 | EOF
|
|---|
| 3521 |
|
|---|
| 3522 |
|
|---|
| 3523 | # If Canadian cross, then don't pick up tools from the build
|
|---|
| 3524 | # directory.
|
|---|
| 3525 | if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
|
|---|
| 3526 | CANADIAN=yes
|
|---|
| 3527 | GCC_UNWIND_INCLUDE=
|
|---|
| 3528 | GCJ="${target_alias}-gcj"
|
|---|
| 3529 | fi
|
|---|
| 3530 | NATIVE=no
|
|---|
| 3531 | else
|
|---|
| 3532 | for ac_func in strerror ioctl select fstat open fsync sleep opendir
|
|---|
| 3533 | do
|
|---|
| 3534 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 3535 | echo "configure:3536: checking for $ac_func" >&5
|
|---|
| 3536 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 3537 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3538 | else
|
|---|
| 3539 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3540 | #line 3541 "configure"
|
|---|
| 3541 | #include "confdefs.h"
|
|---|
| 3542 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 3543 | which can conflict with char $ac_func(); below. */
|
|---|
| 3544 | #include <assert.h>
|
|---|
| 3545 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3546 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3547 | builtin and then its argument prototype would still apply. */
|
|---|
| 3548 | char $ac_func();
|
|---|
| 3549 |
|
|---|
| 3550 | int main() {
|
|---|
| 3551 |
|
|---|
| 3552 | /* The GNU C library defines this for functions which it implements
|
|---|
| 3553 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 3554 | something starting with __ and the normal name is an alias. */
|
|---|
| 3555 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 3556 | choke me
|
|---|
| 3557 | #else
|
|---|
| 3558 | $ac_func();
|
|---|
| 3559 | #endif
|
|---|
| 3560 |
|
|---|
| 3561 | ; return 0; }
|
|---|
| 3562 | EOF
|
|---|
| 3563 | if { (eval echo configure:3564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3564 | rm -rf conftest*
|
|---|
| 3565 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 3566 | else
|
|---|
| 3567 | echo "configure: failed program was:" >&5
|
|---|
| 3568 | cat conftest.$ac_ext >&5
|
|---|
| 3569 | rm -rf conftest*
|
|---|
| 3570 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 3571 | fi
|
|---|
| 3572 | rm -f conftest*
|
|---|
| 3573 | fi
|
|---|
| 3574 |
|
|---|
| 3575 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 3576 | echo "$ac_t""yes" 1>&6
|
|---|
| 3577 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 3578 | cat >> confdefs.h <<EOF
|
|---|
| 3579 | #define $ac_tr_func 1
|
|---|
| 3580 | EOF
|
|---|
| 3581 |
|
|---|
| 3582 | else
|
|---|
| 3583 | echo "$ac_t""no" 1>&6
|
|---|
| 3584 | fi
|
|---|
| 3585 | done
|
|---|
| 3586 |
|
|---|
| 3587 | for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
|
|---|
| 3588 | do
|
|---|
| 3589 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 3590 | echo "configure:3591: checking for $ac_func" >&5
|
|---|
| 3591 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 3592 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3593 | else
|
|---|
| 3594 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3595 | #line 3596 "configure"
|
|---|
| 3596 | #include "confdefs.h"
|
|---|
| 3597 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 3598 | which can conflict with char $ac_func(); below. */
|
|---|
| 3599 | #include <assert.h>
|
|---|
| 3600 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3601 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3602 | builtin and then its argument prototype would still apply. */
|
|---|
| 3603 | char $ac_func();
|
|---|
| 3604 |
|
|---|
| 3605 | int main() {
|
|---|
| 3606 |
|
|---|
| 3607 | /* The GNU C library defines this for functions which it implements
|
|---|
| 3608 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 3609 | something starting with __ and the normal name is an alias. */
|
|---|
| 3610 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 3611 | choke me
|
|---|
| 3612 | #else
|
|---|
| 3613 | $ac_func();
|
|---|
| 3614 | #endif
|
|---|
| 3615 |
|
|---|
| 3616 | ; return 0; }
|
|---|
| 3617 | EOF
|
|---|
| 3618 | if { (eval echo configure:3619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3619 | rm -rf conftest*
|
|---|
| 3620 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 3621 | else
|
|---|
| 3622 | echo "configure: failed program was:" >&5
|
|---|
| 3623 | cat conftest.$ac_ext >&5
|
|---|
| 3624 | rm -rf conftest*
|
|---|
| 3625 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 3626 | fi
|
|---|
| 3627 | rm -f conftest*
|
|---|
| 3628 | fi
|
|---|
| 3629 |
|
|---|
| 3630 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 3631 | echo "$ac_t""yes" 1>&6
|
|---|
| 3632 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 3633 | cat >> confdefs.h <<EOF
|
|---|
| 3634 | #define $ac_tr_func 1
|
|---|
| 3635 | EOF
|
|---|
| 3636 |
|
|---|
| 3637 | else
|
|---|
| 3638 | echo "$ac_t""no" 1>&6
|
|---|
| 3639 | fi
|
|---|
| 3640 | done
|
|---|
| 3641 |
|
|---|
| 3642 | for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
|
|---|
| 3643 | do
|
|---|
| 3644 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 3645 | echo "configure:3646: checking for $ac_func" >&5
|
|---|
| 3646 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 3647 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3648 | else
|
|---|
| 3649 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3650 | #line 3651 "configure"
|
|---|
| 3651 | #include "confdefs.h"
|
|---|
| 3652 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 3653 | which can conflict with char $ac_func(); below. */
|
|---|
| 3654 | #include <assert.h>
|
|---|
| 3655 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3656 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3657 | builtin and then its argument prototype would still apply. */
|
|---|
| 3658 | char $ac_func();
|
|---|
| 3659 |
|
|---|
| 3660 | int main() {
|
|---|
| 3661 |
|
|---|
| 3662 | /* The GNU C library defines this for functions which it implements
|
|---|
| 3663 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 3664 | something starting with __ and the normal name is an alias. */
|
|---|
| 3665 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 3666 | choke me
|
|---|
| 3667 | #else
|
|---|
| 3668 | $ac_func();
|
|---|
| 3669 | #endif
|
|---|
| 3670 |
|
|---|
| 3671 | ; return 0; }
|
|---|
| 3672 | EOF
|
|---|
| 3673 | if { (eval echo configure:3674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3674 | rm -rf conftest*
|
|---|
| 3675 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 3676 | else
|
|---|
| 3677 | echo "configure: failed program was:" >&5
|
|---|
| 3678 | cat conftest.$ac_ext >&5
|
|---|
| 3679 | rm -rf conftest*
|
|---|
| 3680 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 3681 | fi
|
|---|
| 3682 | rm -f conftest*
|
|---|
| 3683 | fi
|
|---|
| 3684 |
|
|---|
| 3685 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 3686 | echo "$ac_t""yes" 1>&6
|
|---|
| 3687 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 3688 | cat >> confdefs.h <<EOF
|
|---|
| 3689 | #define $ac_tr_func 1
|
|---|
| 3690 | EOF
|
|---|
| 3691 |
|
|---|
| 3692 | else
|
|---|
| 3693 | echo "$ac_t""no" 1>&6
|
|---|
| 3694 | fi
|
|---|
| 3695 | done
|
|---|
| 3696 |
|
|---|
| 3697 | for ac_func in nl_langinfo setlocale
|
|---|
| 3698 | do
|
|---|
| 3699 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 3700 | echo "configure:3701: checking for $ac_func" >&5
|
|---|
| 3701 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 3702 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3703 | else
|
|---|
| 3704 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3705 | #line 3706 "configure"
|
|---|
| 3706 | #include "confdefs.h"
|
|---|
| 3707 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 3708 | which can conflict with char $ac_func(); below. */
|
|---|
| 3709 | #include <assert.h>
|
|---|
| 3710 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3711 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3712 | builtin and then its argument prototype would still apply. */
|
|---|
| 3713 | char $ac_func();
|
|---|
| 3714 |
|
|---|
| 3715 | int main() {
|
|---|
| 3716 |
|
|---|
| 3717 | /* The GNU C library defines this for functions which it implements
|
|---|
| 3718 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 3719 | something starting with __ and the normal name is an alias. */
|
|---|
| 3720 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 3721 | choke me
|
|---|
| 3722 | #else
|
|---|
| 3723 | $ac_func();
|
|---|
| 3724 | #endif
|
|---|
| 3725 |
|
|---|
| 3726 | ; return 0; }
|
|---|
| 3727 | EOF
|
|---|
| 3728 | if { (eval echo configure:3729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3729 | rm -rf conftest*
|
|---|
| 3730 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 3731 | else
|
|---|
| 3732 | echo "configure: failed program was:" >&5
|
|---|
| 3733 | cat conftest.$ac_ext >&5
|
|---|
| 3734 | rm -rf conftest*
|
|---|
| 3735 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 3736 | fi
|
|---|
| 3737 | rm -f conftest*
|
|---|
| 3738 | fi
|
|---|
| 3739 |
|
|---|
| 3740 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 3741 | echo "$ac_t""yes" 1>&6
|
|---|
| 3742 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 3743 | cat >> confdefs.h <<EOF
|
|---|
| 3744 | #define $ac_tr_func 1
|
|---|
| 3745 | EOF
|
|---|
| 3746 |
|
|---|
| 3747 | else
|
|---|
| 3748 | echo "$ac_t""no" 1>&6
|
|---|
| 3749 | fi
|
|---|
| 3750 | done
|
|---|
| 3751 |
|
|---|
| 3752 | for ac_func in inet_aton inet_addr
|
|---|
| 3753 | do
|
|---|
| 3754 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 3755 | echo "configure:3756: checking for $ac_func" >&5
|
|---|
| 3756 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 3757 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3758 | else
|
|---|
| 3759 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3760 | #line 3761 "configure"
|
|---|
| 3761 | #include "confdefs.h"
|
|---|
| 3762 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 3763 | which can conflict with char $ac_func(); below. */
|
|---|
| 3764 | #include <assert.h>
|
|---|
| 3765 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3766 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3767 | builtin and then its argument prototype would still apply. */
|
|---|
| 3768 | char $ac_func();
|
|---|
| 3769 |
|
|---|
| 3770 | int main() {
|
|---|
| 3771 |
|
|---|
| 3772 | /* The GNU C library defines this for functions which it implements
|
|---|
| 3773 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 3774 | something starting with __ and the normal name is an alias. */
|
|---|
| 3775 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 3776 | choke me
|
|---|
| 3777 | #else
|
|---|
| 3778 | $ac_func();
|
|---|
| 3779 | #endif
|
|---|
| 3780 |
|
|---|
| 3781 | ; return 0; }
|
|---|
| 3782 | EOF
|
|---|
| 3783 | if { (eval echo configure:3784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3784 | rm -rf conftest*
|
|---|
| 3785 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 3786 | else
|
|---|
| 3787 | echo "configure: failed program was:" >&5
|
|---|
| 3788 | cat conftest.$ac_ext >&5
|
|---|
| 3789 | rm -rf conftest*
|
|---|
| 3790 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 3791 | fi
|
|---|
| 3792 | rm -f conftest*
|
|---|
| 3793 | fi
|
|---|
| 3794 |
|
|---|
| 3795 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 3796 | echo "$ac_t""yes" 1>&6
|
|---|
| 3797 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 3798 | cat >> confdefs.h <<EOF
|
|---|
| 3799 | #define $ac_tr_func 1
|
|---|
| 3800 | EOF
|
|---|
| 3801 | break
|
|---|
| 3802 | else
|
|---|
| 3803 | echo "$ac_t""no" 1>&6
|
|---|
| 3804 | fi
|
|---|
| 3805 | done
|
|---|
| 3806 |
|
|---|
| 3807 | for ac_func in inet_pton uname inet_ntoa
|
|---|
| 3808 | do
|
|---|
| 3809 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 3810 | echo "configure:3811: checking for $ac_func" >&5
|
|---|
| 3811 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 3812 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3813 | else
|
|---|
| 3814 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3815 | #line 3816 "configure"
|
|---|
| 3816 | #include "confdefs.h"
|
|---|
| 3817 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 3818 | which can conflict with char $ac_func(); below. */
|
|---|
| 3819 | #include <assert.h>
|
|---|
| 3820 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3821 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3822 | builtin and then its argument prototype would still apply. */
|
|---|
| 3823 | char $ac_func();
|
|---|
| 3824 |
|
|---|
| 3825 | int main() {
|
|---|
| 3826 |
|
|---|
| 3827 | /* The GNU C library defines this for functions which it implements
|
|---|
| 3828 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 3829 | something starting with __ and the normal name is an alias. */
|
|---|
| 3830 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 3831 | choke me
|
|---|
| 3832 | #else
|
|---|
| 3833 | $ac_func();
|
|---|
| 3834 | #endif
|
|---|
| 3835 |
|
|---|
| 3836 | ; return 0; }
|
|---|
| 3837 | EOF
|
|---|
| 3838 | if { (eval echo configure:3839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3839 | rm -rf conftest*
|
|---|
| 3840 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 3841 | else
|
|---|
| 3842 | echo "configure: failed program was:" >&5
|
|---|
| 3843 | cat conftest.$ac_ext >&5
|
|---|
| 3844 | rm -rf conftest*
|
|---|
| 3845 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 3846 | fi
|
|---|
| 3847 | rm -f conftest*
|
|---|
| 3848 | fi
|
|---|
| 3849 |
|
|---|
| 3850 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 3851 | echo "$ac_t""yes" 1>&6
|
|---|
| 3852 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 3853 | cat >> confdefs.h <<EOF
|
|---|
| 3854 | #define $ac_tr_func 1
|
|---|
| 3855 | EOF
|
|---|
| 3856 |
|
|---|
| 3857 | else
|
|---|
| 3858 | echo "$ac_t""no" 1>&6
|
|---|
| 3859 | fi
|
|---|
| 3860 | done
|
|---|
| 3861 |
|
|---|
| 3862 | for ac_func in fork execvp pipe sigaction
|
|---|
| 3863 | do
|
|---|
| 3864 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 3865 | echo "configure:3866: checking for $ac_func" >&5
|
|---|
| 3866 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 3867 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3868 | else
|
|---|
| 3869 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3870 | #line 3871 "configure"
|
|---|
| 3871 | #include "confdefs.h"
|
|---|
| 3872 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 3873 | which can conflict with char $ac_func(); below. */
|
|---|
| 3874 | #include <assert.h>
|
|---|
| 3875 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3876 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3877 | builtin and then its argument prototype would still apply. */
|
|---|
| 3878 | char $ac_func();
|
|---|
| 3879 |
|
|---|
| 3880 | int main() {
|
|---|
| 3881 |
|
|---|
| 3882 | /* The GNU C library defines this for functions which it implements
|
|---|
| 3883 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 3884 | something starting with __ and the normal name is an alias. */
|
|---|
| 3885 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 3886 | choke me
|
|---|
| 3887 | #else
|
|---|
| 3888 | $ac_func();
|
|---|
| 3889 | #endif
|
|---|
| 3890 |
|
|---|
| 3891 | ; return 0; }
|
|---|
| 3892 | EOF
|
|---|
| 3893 | if { (eval echo configure:3894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3894 | rm -rf conftest*
|
|---|
| 3895 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 3896 | else
|
|---|
| 3897 | echo "configure: failed program was:" >&5
|
|---|
| 3898 | cat conftest.$ac_ext >&5
|
|---|
| 3899 | rm -rf conftest*
|
|---|
| 3900 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 3901 | fi
|
|---|
| 3902 | rm -f conftest*
|
|---|
| 3903 | fi
|
|---|
| 3904 |
|
|---|
| 3905 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 3906 | echo "$ac_t""yes" 1>&6
|
|---|
| 3907 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 3908 | cat >> confdefs.h <<EOF
|
|---|
| 3909 | #define $ac_tr_func 1
|
|---|
| 3910 | EOF
|
|---|
| 3911 |
|
|---|
| 3912 | else
|
|---|
| 3913 | echo "$ac_t""no" 1>&6
|
|---|
| 3914 | fi
|
|---|
| 3915 | done
|
|---|
| 3916 |
|
|---|
| 3917 | for ac_hdr in execinfo.h unistd.h dlfcn.h
|
|---|
| 3918 | do
|
|---|
| 3919 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|---|
| 3920 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|---|
| 3921 | echo "configure:3922: checking for $ac_hdr" >&5
|
|---|
| 3922 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 3923 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3924 | else
|
|---|
| 3925 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3926 | #include <sys/types.h>
|
|---|
| 3927 | #line 3928 "configure"
|
|---|
| 3928 | #include "confdefs.h"
|
|---|
| 3929 | #include <$ac_hdr>
|
|---|
| 3930 | EOF
|
|---|
| 3931 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 3932 | { (eval echo configure:3933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 3933 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 3934 | if test -z "$ac_err"; then
|
|---|
| 3935 | rm -rf conftest*
|
|---|
| 3936 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 3937 | else
|
|---|
| 3938 | echo "$ac_err" >&5
|
|---|
| 3939 | echo "configure: failed program was:" >&5
|
|---|
| 3940 | cat conftest.$ac_ext >&5
|
|---|
| 3941 | rm -rf conftest*
|
|---|
| 3942 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 3943 | fi
|
|---|
| 3944 | rm -f conftest*
|
|---|
| 3945 | fi
|
|---|
| 3946 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 3947 | echo "$ac_t""yes" 1>&6
|
|---|
| 3948 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|---|
| 3949 | cat >> confdefs.h <<EOF
|
|---|
| 3950 | #define $ac_tr_hdr 1
|
|---|
| 3951 | EOF
|
|---|
| 3952 |
|
|---|
| 3953 | else
|
|---|
| 3954 | echo "$ac_t""no" 1>&6
|
|---|
| 3955 | fi
|
|---|
| 3956 | done
|
|---|
| 3957 |
|
|---|
| 3958 | echo $ac_n "checking for backtrace""... $ac_c" 1>&6
|
|---|
| 3959 | echo "configure:3960: checking for backtrace" >&5
|
|---|
| 3960 | if eval "test \"`echo '$''{'ac_cv_func_backtrace'+set}'`\" = set"; then
|
|---|
| 3961 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3962 | else
|
|---|
| 3963 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3964 | #line 3965 "configure"
|
|---|
| 3965 | #include "confdefs.h"
|
|---|
| 3966 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 3967 | which can conflict with char backtrace(); below. */
|
|---|
| 3968 | #include <assert.h>
|
|---|
| 3969 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3970 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3971 | builtin and then its argument prototype would still apply. */
|
|---|
| 3972 | char backtrace();
|
|---|
| 3973 |
|
|---|
| 3974 | int main() {
|
|---|
| 3975 |
|
|---|
| 3976 | /* The GNU C library defines this for functions which it implements
|
|---|
| 3977 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 3978 | something starting with __ and the normal name is an alias. */
|
|---|
| 3979 | #if defined (__stub_backtrace) || defined (__stub___backtrace)
|
|---|
| 3980 | choke me
|
|---|
| 3981 | #else
|
|---|
| 3982 | backtrace();
|
|---|
| 3983 | #endif
|
|---|
| 3984 |
|
|---|
| 3985 | ; return 0; }
|
|---|
| 3986 | EOF
|
|---|
| 3987 | if { (eval echo configure:3988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3988 | rm -rf conftest*
|
|---|
| 3989 | eval "ac_cv_func_backtrace=yes"
|
|---|
| 3990 | else
|
|---|
| 3991 | echo "configure: failed program was:" >&5
|
|---|
| 3992 | cat conftest.$ac_ext >&5
|
|---|
| 3993 | rm -rf conftest*
|
|---|
| 3994 | eval "ac_cv_func_backtrace=no"
|
|---|
| 3995 | fi
|
|---|
| 3996 | rm -f conftest*
|
|---|
| 3997 | fi
|
|---|
| 3998 |
|
|---|
| 3999 | if eval "test \"`echo '$ac_cv_func_'backtrace`\" = yes"; then
|
|---|
| 4000 | echo "$ac_t""yes" 1>&6
|
|---|
| 4001 |
|
|---|
| 4002 | case "$host" in
|
|---|
| 4003 | ia64-*-linux*)
|
|---|
| 4004 | # Has broken backtrace()
|
|---|
| 4005 | ;;
|
|---|
| 4006 | *)
|
|---|
| 4007 | cat >> confdefs.h <<\EOF
|
|---|
| 4008 | #define HAVE_BACKTRACE 1
|
|---|
| 4009 | EOF
|
|---|
| 4010 |
|
|---|
| 4011 | ;;
|
|---|
| 4012 | esac
|
|---|
| 4013 |
|
|---|
| 4014 | else
|
|---|
| 4015 | echo "$ac_t""no" 1>&6
|
|---|
| 4016 | fi
|
|---|
| 4017 |
|
|---|
| 4018 |
|
|---|
| 4019 | echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
|
|---|
| 4020 | echo "configure:4021: checking for dladdr in -ldl" >&5
|
|---|
| 4021 | ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
|
|---|
| 4022 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 4023 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4024 | else
|
|---|
| 4025 | ac_save_LIBS="$LIBS"
|
|---|
| 4026 | LIBS="-ldl $LIBS"
|
|---|
| 4027 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4028 | #line 4029 "configure"
|
|---|
| 4029 | #include "confdefs.h"
|
|---|
| 4030 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 4031 | /* We use char because int might match the return type of a gcc2
|
|---|
| 4032 | builtin and then its argument prototype would still apply. */
|
|---|
| 4033 | char dladdr();
|
|---|
| 4034 |
|
|---|
| 4035 | int main() {
|
|---|
| 4036 | dladdr()
|
|---|
| 4037 | ; return 0; }
|
|---|
| 4038 | EOF
|
|---|
| 4039 | if { (eval echo configure:4040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4040 | rm -rf conftest*
|
|---|
| 4041 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 4042 | else
|
|---|
| 4043 | echo "configure: failed program was:" >&5
|
|---|
| 4044 | cat conftest.$ac_ext >&5
|
|---|
| 4045 | rm -rf conftest*
|
|---|
| 4046 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 4047 | fi
|
|---|
| 4048 | rm -f conftest*
|
|---|
| 4049 | LIBS="$ac_save_LIBS"
|
|---|
| 4050 |
|
|---|
| 4051 | fi
|
|---|
| 4052 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 4053 | echo "$ac_t""yes" 1>&6
|
|---|
| 4054 |
|
|---|
| 4055 | cat >> confdefs.h <<\EOF
|
|---|
| 4056 | #define HAVE_DLADDR 1
|
|---|
| 4057 | EOF
|
|---|
| 4058 |
|
|---|
| 4059 | else
|
|---|
| 4060 | echo "$ac_t""no" 1>&6
|
|---|
| 4061 | fi
|
|---|
| 4062 |
|
|---|
| 4063 | for ac_file in /proc/self/exe
|
|---|
| 4064 | do
|
|---|
| 4065 |
|
|---|
| 4066 | ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
|
|---|
| 4067 | echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
|
|---|
| 4068 | echo "configure:4069: checking for $ac_file" >&5
|
|---|
| 4069 | if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
|
|---|
| 4070 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4071 | else
|
|---|
| 4072 | if test "$cross_compiling" = yes; then
|
|---|
| 4073 | { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
|
|---|
| 4074 | else
|
|---|
| 4075 | if test -r $ac_file; then
|
|---|
| 4076 | eval "ac_cv_file_$ac_safe=yes"
|
|---|
| 4077 | else
|
|---|
| 4078 | eval "ac_cv_file_$ac_safe=no"
|
|---|
| 4079 | fi
|
|---|
| 4080 | fi
|
|---|
| 4081 | fi
|
|---|
| 4082 | if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
|
|---|
| 4083 | echo "$ac_t""yes" 1>&6
|
|---|
| 4084 | ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|---|
| 4085 | cat >> confdefs.h <<EOF
|
|---|
| 4086 | #define $ac_tr_file 1
|
|---|
| 4087 | EOF
|
|---|
| 4088 |
|
|---|
| 4089 | cat >> confdefs.h <<\EOF
|
|---|
| 4090 | #define HAVE_PROC_SELF_EXE 1
|
|---|
| 4091 | EOF
|
|---|
| 4092 |
|
|---|
| 4093 | else
|
|---|
| 4094 | echo "$ac_t""no" 1>&6
|
|---|
| 4095 |
|
|---|
| 4096 | fi
|
|---|
| 4097 | done
|
|---|
| 4098 |
|
|---|
| 4099 |
|
|---|
| 4100 |
|
|---|
| 4101 |
|
|---|
| 4102 | am_cv_lib_iconv_ldpath=
|
|---|
| 4103 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
|
|---|
| 4104 | if test "${with_libiconv_prefix+set}" = set; then
|
|---|
| 4105 | withval="$with_libiconv_prefix"
|
|---|
| 4106 |
|
|---|
| 4107 | for dir in `echo "$withval" | tr : ' '`; do
|
|---|
| 4108 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
|
|---|
| 4109 | if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
|
|---|
| 4110 | done
|
|---|
| 4111 |
|
|---|
| 4112 | fi
|
|---|
| 4113 |
|
|---|
| 4114 |
|
|---|
| 4115 | echo $ac_n "checking for iconv""... $ac_c" 1>&6
|
|---|
| 4116 | echo "configure:4117: checking for iconv" >&5
|
|---|
| 4117 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
|
|---|
| 4118 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4119 | else
|
|---|
| 4120 |
|
|---|
| 4121 | am_cv_func_iconv="no, consider installing GNU libiconv"
|
|---|
| 4122 | am_cv_lib_iconv=no
|
|---|
| 4123 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4124 | #line 4125 "configure"
|
|---|
| 4125 | #include "confdefs.h"
|
|---|
| 4126 | #include <stdlib.h>
|
|---|
| 4127 | #include <iconv.h>
|
|---|
| 4128 | int main() {
|
|---|
| 4129 | iconv_t cd = iconv_open("","");
|
|---|
| 4130 | iconv(cd,NULL,NULL,NULL,NULL);
|
|---|
| 4131 | iconv_close(cd);
|
|---|
| 4132 | ; return 0; }
|
|---|
| 4133 | EOF
|
|---|
| 4134 | if { (eval echo configure:4135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4135 | rm -rf conftest*
|
|---|
| 4136 | am_cv_func_iconv=yes
|
|---|
| 4137 | else
|
|---|
| 4138 | echo "configure: failed program was:" >&5
|
|---|
| 4139 | cat conftest.$ac_ext >&5
|
|---|
| 4140 | fi
|
|---|
| 4141 | rm -f conftest*
|
|---|
| 4142 | if test "$am_cv_func_iconv" != yes; then
|
|---|
| 4143 | am_save_LIBS="$LIBS"
|
|---|
| 4144 | LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
|
|---|
| 4145 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4146 | #line 4147 "configure"
|
|---|
| 4147 | #include "confdefs.h"
|
|---|
| 4148 | #include <stdlib.h>
|
|---|
| 4149 | #include <iconv.h>
|
|---|
| 4150 | int main() {
|
|---|
| 4151 | iconv_t cd = iconv_open("","");
|
|---|
| 4152 | iconv(cd,NULL,NULL,NULL,NULL);
|
|---|
| 4153 | iconv_close(cd);
|
|---|
| 4154 | ; return 0; }
|
|---|
| 4155 | EOF
|
|---|
| 4156 | if { (eval echo configure:4157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4157 | rm -rf conftest*
|
|---|
| 4158 | am_cv_lib_iconv=yes
|
|---|
| 4159 | am_cv_func_iconv=yes
|
|---|
| 4160 | else
|
|---|
| 4161 | echo "configure: failed program was:" >&5
|
|---|
| 4162 | cat conftest.$ac_ext >&5
|
|---|
| 4163 | fi
|
|---|
| 4164 | rm -f conftest*
|
|---|
| 4165 | LIBS="$am_save_LIBS"
|
|---|
| 4166 | fi
|
|---|
| 4167 |
|
|---|
| 4168 | fi
|
|---|
| 4169 |
|
|---|
| 4170 | echo "$ac_t""$am_cv_func_iconv" 1>&6
|
|---|
| 4171 | if test "$am_cv_func_iconv" = yes; then
|
|---|
| 4172 | cat >> confdefs.h <<\EOF
|
|---|
| 4173 | #define HAVE_ICONV 1
|
|---|
| 4174 | EOF
|
|---|
| 4175 |
|
|---|
| 4176 | echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
|
|---|
| 4177 | echo "configure:4178: checking for iconv declaration" >&5
|
|---|
| 4178 | if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
|
|---|
| 4179 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4180 | else
|
|---|
| 4181 |
|
|---|
| 4182 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4183 | #line 4184 "configure"
|
|---|
| 4184 | #include "confdefs.h"
|
|---|
| 4185 |
|
|---|
| 4186 | #include <stdlib.h>
|
|---|
| 4187 | #include <iconv.h>
|
|---|
| 4188 | extern
|
|---|
| 4189 | #ifdef __cplusplus
|
|---|
| 4190 | "C"
|
|---|
| 4191 | #endif
|
|---|
| 4192 | #if defined(__STDC__) || defined(__cplusplus)
|
|---|
| 4193 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
|
|---|
| 4194 | #else
|
|---|
| 4195 | size_t iconv();
|
|---|
| 4196 | #endif
|
|---|
| 4197 |
|
|---|
| 4198 | int main() {
|
|---|
| 4199 |
|
|---|
| 4200 | ; return 0; }
|
|---|
| 4201 | EOF
|
|---|
| 4202 | if { (eval echo configure:4203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 4203 | rm -rf conftest*
|
|---|
| 4204 | am_cv_proto_iconv_arg1=""
|
|---|
| 4205 | else
|
|---|
| 4206 | echo "configure: failed program was:" >&5
|
|---|
| 4207 | cat conftest.$ac_ext >&5
|
|---|
| 4208 | rm -rf conftest*
|
|---|
| 4209 | am_cv_proto_iconv_arg1="const"
|
|---|
| 4210 | fi
|
|---|
| 4211 | rm -f conftest*
|
|---|
| 4212 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
|
|---|
| 4213 | fi
|
|---|
| 4214 |
|
|---|
| 4215 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
|
|---|
| 4216 | echo "$ac_t""${ac_t:-
|
|---|
| 4217 | }$am_cv_proto_iconv" 1>&6
|
|---|
| 4218 | cat >> confdefs.h <<EOF
|
|---|
| 4219 | #define ICONV_CONST $am_cv_proto_iconv_arg1
|
|---|
| 4220 | EOF
|
|---|
| 4221 |
|
|---|
| 4222 | fi
|
|---|
| 4223 | LIBICONV=
|
|---|
| 4224 | if test "$am_cv_lib_iconv" = yes; then
|
|---|
| 4225 | LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
|
|---|
| 4226 | fi
|
|---|
| 4227 |
|
|---|
| 4228 |
|
|---|
| 4229 | if test $ac_cv_header_locale_h = yes; then
|
|---|
| 4230 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
|
|---|
| 4231 | echo "configure:4232: checking for LC_MESSAGES" >&5
|
|---|
| 4232 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
|
|---|
| 4233 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4234 | else
|
|---|
| 4235 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4236 | #line 4237 "configure"
|
|---|
| 4237 | #include "confdefs.h"
|
|---|
| 4238 | #include <locale.h>
|
|---|
| 4239 | int main() {
|
|---|
| 4240 | return LC_MESSAGES
|
|---|
| 4241 | ; return 0; }
|
|---|
| 4242 | EOF
|
|---|
| 4243 | if { (eval echo configure:4244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4244 | rm -rf conftest*
|
|---|
| 4245 | am_cv_val_LC_MESSAGES=yes
|
|---|
| 4246 | else
|
|---|
| 4247 | echo "configure: failed program was:" >&5
|
|---|
| 4248 | cat conftest.$ac_ext >&5
|
|---|
| 4249 | rm -rf conftest*
|
|---|
| 4250 | am_cv_val_LC_MESSAGES=no
|
|---|
| 4251 | fi
|
|---|
| 4252 | rm -f conftest*
|
|---|
| 4253 | fi
|
|---|
| 4254 |
|
|---|
| 4255 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
|
|---|
| 4256 | if test $am_cv_val_LC_MESSAGES = yes; then
|
|---|
| 4257 | cat >> confdefs.h <<\EOF
|
|---|
| 4258 | #define HAVE_LC_MESSAGES 1
|
|---|
| 4259 | EOF
|
|---|
| 4260 |
|
|---|
| 4261 | fi
|
|---|
| 4262 | fi
|
|---|
| 4263 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
|
|---|
| 4264 | echo "configure:4265: checking whether struct tm is in sys/time.h or time.h" >&5
|
|---|
| 4265 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
|
|---|
| 4266 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4267 | else
|
|---|
| 4268 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4269 | #line 4270 "configure"
|
|---|
| 4270 | #include "confdefs.h"
|
|---|
| 4271 | #include <sys/types.h>
|
|---|
| 4272 | #include <time.h>
|
|---|
| 4273 | int main() {
|
|---|
| 4274 | struct tm *tp; tp->tm_sec;
|
|---|
| 4275 | ; return 0; }
|
|---|
| 4276 | EOF
|
|---|
| 4277 | if { (eval echo configure:4278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 4278 | rm -rf conftest*
|
|---|
| 4279 | ac_cv_struct_tm=time.h
|
|---|
| 4280 | else
|
|---|
| 4281 | echo "configure: failed program was:" >&5
|
|---|
| 4282 | cat conftest.$ac_ext >&5
|
|---|
| 4283 | rm -rf conftest*
|
|---|
| 4284 | ac_cv_struct_tm=sys/time.h
|
|---|
| 4285 | fi
|
|---|
| 4286 | rm -f conftest*
|
|---|
| 4287 | fi
|
|---|
| 4288 |
|
|---|
| 4289 | echo "$ac_t""$ac_cv_struct_tm" 1>&6
|
|---|
| 4290 | if test $ac_cv_struct_tm = sys/time.h; then
|
|---|
| 4291 | cat >> confdefs.h <<\EOF
|
|---|
| 4292 | #define TM_IN_SYS_TIME 1
|
|---|
| 4293 | EOF
|
|---|
| 4294 |
|
|---|
| 4295 | fi
|
|---|
| 4296 |
|
|---|
| 4297 | echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
|
|---|
| 4298 | echo "configure:4299: checking for tm_zone in struct tm" >&5
|
|---|
| 4299 | if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
|
|---|
| 4300 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4301 | else
|
|---|
| 4302 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4303 | #line 4304 "configure"
|
|---|
| 4304 | #include "confdefs.h"
|
|---|
| 4305 | #include <sys/types.h>
|
|---|
| 4306 | #include <$ac_cv_struct_tm>
|
|---|
| 4307 | int main() {
|
|---|
| 4308 | struct tm tm; tm.tm_zone;
|
|---|
| 4309 | ; return 0; }
|
|---|
| 4310 | EOF
|
|---|
| 4311 | if { (eval echo configure:4312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 4312 | rm -rf conftest*
|
|---|
| 4313 | ac_cv_struct_tm_zone=yes
|
|---|
| 4314 | else
|
|---|
| 4315 | echo "configure: failed program was:" >&5
|
|---|
| 4316 | cat conftest.$ac_ext >&5
|
|---|
| 4317 | rm -rf conftest*
|
|---|
| 4318 | ac_cv_struct_tm_zone=no
|
|---|
| 4319 | fi
|
|---|
| 4320 | rm -f conftest*
|
|---|
| 4321 | fi
|
|---|
| 4322 |
|
|---|
| 4323 | echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
|
|---|
| 4324 | if test "$ac_cv_struct_tm_zone" = yes; then
|
|---|
| 4325 | cat >> confdefs.h <<\EOF
|
|---|
| 4326 | #define HAVE_TM_ZONE 1
|
|---|
| 4327 | EOF
|
|---|
| 4328 |
|
|---|
| 4329 | else
|
|---|
| 4330 | echo $ac_n "checking for tzname""... $ac_c" 1>&6
|
|---|
| 4331 | echo "configure:4332: checking for tzname" >&5
|
|---|
| 4332 | if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
|
|---|
| 4333 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4334 | else
|
|---|
| 4335 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4336 | #line 4337 "configure"
|
|---|
| 4337 | #include "confdefs.h"
|
|---|
| 4338 | #include <time.h>
|
|---|
| 4339 | #ifndef tzname /* For SGI. */
|
|---|
| 4340 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */
|
|---|
| 4341 | #endif
|
|---|
| 4342 | int main() {
|
|---|
| 4343 | atoi(*tzname);
|
|---|
| 4344 | ; return 0; }
|
|---|
| 4345 | EOF
|
|---|
| 4346 | if { (eval echo configure:4347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4347 | rm -rf conftest*
|
|---|
| 4348 | ac_cv_var_tzname=yes
|
|---|
| 4349 | else
|
|---|
| 4350 | echo "configure: failed program was:" >&5
|
|---|
| 4351 | cat conftest.$ac_ext >&5
|
|---|
| 4352 | rm -rf conftest*
|
|---|
| 4353 | ac_cv_var_tzname=no
|
|---|
| 4354 | fi
|
|---|
| 4355 | rm -f conftest*
|
|---|
| 4356 | fi
|
|---|
| 4357 |
|
|---|
| 4358 | echo "$ac_t""$ac_cv_var_tzname" 1>&6
|
|---|
| 4359 | if test $ac_cv_var_tzname = yes; then
|
|---|
| 4360 | cat >> confdefs.h <<\EOF
|
|---|
| 4361 | #define HAVE_TZNAME 1
|
|---|
| 4362 | EOF
|
|---|
| 4363 |
|
|---|
| 4364 | fi
|
|---|
| 4365 | fi
|
|---|
| 4366 |
|
|---|
| 4367 |
|
|---|
| 4368 | for ac_func in gethostbyname_r
|
|---|
| 4369 | do
|
|---|
| 4370 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 4371 | echo "configure:4372: checking for $ac_func" >&5
|
|---|
| 4372 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 4373 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4374 | else
|
|---|
| 4375 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4376 | #line 4377 "configure"
|
|---|
| 4377 | #include "confdefs.h"
|
|---|
| 4378 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 4379 | which can conflict with char $ac_func(); below. */
|
|---|
| 4380 | #include <assert.h>
|
|---|
| 4381 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 4382 | /* We use char because int might match the return type of a gcc2
|
|---|
| 4383 | builtin and then its argument prototype would still apply. */
|
|---|
| 4384 | char $ac_func();
|
|---|
| 4385 |
|
|---|
| 4386 | int main() {
|
|---|
| 4387 |
|
|---|
| 4388 | /* The GNU C library defines this for functions which it implements
|
|---|
| 4389 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 4390 | something starting with __ and the normal name is an alias. */
|
|---|
| 4391 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 4392 | choke me
|
|---|
| 4393 | #else
|
|---|
| 4394 | $ac_func();
|
|---|
| 4395 | #endif
|
|---|
| 4396 |
|
|---|
| 4397 | ; return 0; }
|
|---|
| 4398 | EOF
|
|---|
| 4399 | if { (eval echo configure:4400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4400 | rm -rf conftest*
|
|---|
| 4401 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 4402 | else
|
|---|
| 4403 | echo "configure: failed program was:" >&5
|
|---|
| 4404 | cat conftest.$ac_ext >&5
|
|---|
| 4405 | rm -rf conftest*
|
|---|
| 4406 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 4407 | fi
|
|---|
| 4408 | rm -f conftest*
|
|---|
| 4409 | fi
|
|---|
| 4410 |
|
|---|
| 4411 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 4412 | echo "$ac_t""yes" 1>&6
|
|---|
| 4413 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 4414 | cat >> confdefs.h <<EOF
|
|---|
| 4415 | #define $ac_tr_func 1
|
|---|
| 4416 | EOF
|
|---|
| 4417 |
|
|---|
| 4418 | cat >> confdefs.h <<\EOF
|
|---|
| 4419 | #define HAVE_GETHOSTBYNAME_R 1
|
|---|
| 4420 | EOF
|
|---|
| 4421 |
|
|---|
| 4422 | # There are two different kinds of gethostbyname_r.
|
|---|
| 4423 | # We look for the one that returns `int'.
|
|---|
| 4424 | # Hopefully this check is robust enough.
|
|---|
| 4425 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4426 | #line 4427 "configure"
|
|---|
| 4427 | #include "confdefs.h"
|
|---|
| 4428 | #include <netdb.h>
|
|---|
| 4429 | EOF
|
|---|
| 4430 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 4431 | egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
|
|---|
| 4432 | rm -rf conftest*
|
|---|
| 4433 |
|
|---|
| 4434 | cat >> confdefs.h <<\EOF
|
|---|
| 4435 | #define GETHOSTBYNAME_R_RETURNS_INT 1
|
|---|
| 4436 | EOF
|
|---|
| 4437 |
|
|---|
| 4438 | fi
|
|---|
| 4439 | rm -f conftest*
|
|---|
| 4440 |
|
|---|
| 4441 |
|
|---|
| 4442 | case " $GCINCS " in
|
|---|
| 4443 | *" -D_REENTRANT "*) ;;
|
|---|
| 4444 | *)
|
|---|
| 4445 | echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
|
|---|
| 4446 | echo "configure:4447: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
|
|---|
| 4447 | if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
|
|---|
| 4448 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4449 | else
|
|---|
| 4450 |
|
|---|
| 4451 | ac_ext=C
|
|---|
| 4452 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 4453 | ac_cpp='$CXXCPP $CPPFLAGS'
|
|---|
| 4454 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 4455 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 4456 | cross_compiling=$ac_cv_prog_cxx_cross
|
|---|
| 4457 |
|
|---|
| 4458 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4459 | #line 4460 "configure"
|
|---|
| 4460 | #include "confdefs.h"
|
|---|
| 4461 | #include <netdb.h>
|
|---|
| 4462 | int main() {
|
|---|
| 4463 | gethostbyname_r("", 0, 0);
|
|---|
| 4464 | ; return 0; }
|
|---|
| 4465 | EOF
|
|---|
| 4466 | if { (eval echo configure:4467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 4467 | rm -rf conftest*
|
|---|
| 4468 | libjava_cv_gethostbyname_r_needs_reentrant=no
|
|---|
| 4469 | else
|
|---|
| 4470 | echo "configure: failed program was:" >&5
|
|---|
| 4471 | cat conftest.$ac_ext >&5
|
|---|
| 4472 | rm -rf conftest*
|
|---|
| 4473 | CPPFLAGS_SAVE="$CPPFLAGS"
|
|---|
| 4474 | CPPFLAGS="$CPPFLAGS -D_REENTRANT"
|
|---|
| 4475 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4476 | #line 4477 "configure"
|
|---|
| 4477 | #include "confdefs.h"
|
|---|
| 4478 | #include <netdb.h>
|
|---|
| 4479 | int main() {
|
|---|
| 4480 | gethostbyname_r("", 0, 0);
|
|---|
| 4481 | ; return 0; }
|
|---|
| 4482 | EOF
|
|---|
| 4483 | if { (eval echo configure:4484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 4484 | rm -rf conftest*
|
|---|
| 4485 | libjava_cv_gethostbyname_r_needs_reentrant=yes
|
|---|
| 4486 | else
|
|---|
| 4487 | echo "configure: failed program was:" >&5
|
|---|
| 4488 | cat conftest.$ac_ext >&5
|
|---|
| 4489 | rm -rf conftest*
|
|---|
| 4490 | libjava_cv_gethostbyname_r_needs_reentrant=fail
|
|---|
| 4491 | fi
|
|---|
| 4492 | rm -f conftest*
|
|---|
| 4493 | CPPFLAGS="$CPPFLAGS_SAVE"
|
|---|
| 4494 |
|
|---|
| 4495 | fi
|
|---|
| 4496 | rm -f conftest*
|
|---|
| 4497 | ac_ext=c
|
|---|
| 4498 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 4499 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 4500 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 4501 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 4502 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 4503 |
|
|---|
| 4504 |
|
|---|
| 4505 | fi
|
|---|
| 4506 |
|
|---|
| 4507 | echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
|
|---|
| 4508 | if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
|
|---|
| 4509 | cat >> confdefs.h <<\EOF
|
|---|
| 4510 | #define _REENTRANT 1
|
|---|
| 4511 | EOF
|
|---|
| 4512 |
|
|---|
| 4513 | fi
|
|---|
| 4514 | ;;
|
|---|
| 4515 | esac
|
|---|
| 4516 |
|
|---|
| 4517 | echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
|
|---|
| 4518 | echo "configure:4519: checking for struct hostent_data" >&5
|
|---|
| 4519 | if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
|
|---|
| 4520 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4521 | else
|
|---|
| 4522 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4523 | #line 4524 "configure"
|
|---|
| 4524 | #include "confdefs.h"
|
|---|
| 4525 |
|
|---|
| 4526 | #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
|
|---|
| 4527 | # define _REENTRANT 1
|
|---|
| 4528 | #endif
|
|---|
| 4529 | #include <netdb.h>
|
|---|
| 4530 | int main() {
|
|---|
| 4531 | struct hostent_data data;
|
|---|
| 4532 | ; return 0; }
|
|---|
| 4533 | EOF
|
|---|
| 4534 | if { (eval echo configure:4535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 4535 | rm -rf conftest*
|
|---|
| 4536 | libjava_cv_struct_hostent_data=yes
|
|---|
| 4537 | else
|
|---|
| 4538 | echo "configure: failed program was:" >&5
|
|---|
| 4539 | cat conftest.$ac_ext >&5
|
|---|
| 4540 | rm -rf conftest*
|
|---|
| 4541 | libjava_cv_struct_hostent_data=no
|
|---|
| 4542 | fi
|
|---|
| 4543 | rm -f conftest*
|
|---|
| 4544 | fi
|
|---|
| 4545 |
|
|---|
| 4546 | echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
|
|---|
| 4547 | if test "x$libjava_cv_struct_hostent_data" = xyes; then
|
|---|
| 4548 | cat >> confdefs.h <<\EOF
|
|---|
| 4549 | #define HAVE_STRUCT_HOSTENT_DATA 1
|
|---|
| 4550 | EOF
|
|---|
| 4551 |
|
|---|
| 4552 | fi
|
|---|
| 4553 |
|
|---|
| 4554 | else
|
|---|
| 4555 | echo "$ac_t""no" 1>&6
|
|---|
| 4556 | fi
|
|---|
| 4557 | done
|
|---|
| 4558 |
|
|---|
| 4559 |
|
|---|
| 4560 | # FIXME: libjava source code expects to find a prototype for
|
|---|
| 4561 | # gethostbyaddr_r in netdb.h. The outer check ensures that
|
|---|
| 4562 | # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
|
|---|
| 4563 | # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
|
|---|
| 4564 | # linkage check is enough, yet C++ code requires proper prototypes.)
|
|---|
| 4565 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4566 | #line 4567 "configure"
|
|---|
| 4567 | #include "confdefs.h"
|
|---|
| 4568 | #include <netdb.h>
|
|---|
| 4569 | EOF
|
|---|
| 4570 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 4571 | egrep "gethostbyaddr_r" >/dev/null 2>&1; then
|
|---|
| 4572 | rm -rf conftest*
|
|---|
| 4573 |
|
|---|
| 4574 | for ac_func in gethostbyaddr_r
|
|---|
| 4575 | do
|
|---|
| 4576 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 4577 | echo "configure:4578: checking for $ac_func" >&5
|
|---|
| 4578 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 4579 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4580 | else
|
|---|
| 4581 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4582 | #line 4583 "configure"
|
|---|
| 4583 | #include "confdefs.h"
|
|---|
| 4584 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 4585 | which can conflict with char $ac_func(); below. */
|
|---|
| 4586 | #include <assert.h>
|
|---|
| 4587 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 4588 | /* We use char because int might match the return type of a gcc2
|
|---|
| 4589 | builtin and then its argument prototype would still apply. */
|
|---|
| 4590 | char $ac_func();
|
|---|
| 4591 |
|
|---|
| 4592 | int main() {
|
|---|
| 4593 |
|
|---|
| 4594 | /* The GNU C library defines this for functions which it implements
|
|---|
| 4595 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 4596 | something starting with __ and the normal name is an alias. */
|
|---|
| 4597 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 4598 | choke me
|
|---|
| 4599 | #else
|
|---|
| 4600 | $ac_func();
|
|---|
| 4601 | #endif
|
|---|
| 4602 |
|
|---|
| 4603 | ; return 0; }
|
|---|
| 4604 | EOF
|
|---|
| 4605 | if { (eval echo configure:4606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4606 | rm -rf conftest*
|
|---|
| 4607 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 4608 | else
|
|---|
| 4609 | echo "configure: failed program was:" >&5
|
|---|
| 4610 | cat conftest.$ac_ext >&5
|
|---|
| 4611 | rm -rf conftest*
|
|---|
| 4612 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 4613 | fi
|
|---|
| 4614 | rm -f conftest*
|
|---|
| 4615 | fi
|
|---|
| 4616 |
|
|---|
| 4617 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 4618 | echo "$ac_t""yes" 1>&6
|
|---|
| 4619 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 4620 | cat >> confdefs.h <<EOF
|
|---|
| 4621 | #define $ac_tr_func 1
|
|---|
| 4622 | EOF
|
|---|
| 4623 |
|
|---|
| 4624 | cat >> confdefs.h <<\EOF
|
|---|
| 4625 | #define HAVE_GETHOSTBYADDR_R 1
|
|---|
| 4626 | EOF
|
|---|
| 4627 |
|
|---|
| 4628 | # There are two different kinds of gethostbyaddr_r.
|
|---|
| 4629 | # We look for the one that returns `int'.
|
|---|
| 4630 | # Hopefully this check is robust enough.
|
|---|
| 4631 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4632 | #line 4633 "configure"
|
|---|
| 4633 | #include "confdefs.h"
|
|---|
| 4634 | #include <netdb.h>
|
|---|
| 4635 | EOF
|
|---|
| 4636 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 4637 | egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
|
|---|
| 4638 | rm -rf conftest*
|
|---|
| 4639 |
|
|---|
| 4640 | cat >> confdefs.h <<\EOF
|
|---|
| 4641 | #define GETHOSTBYADDR_R_RETURNS_INT 1
|
|---|
| 4642 | EOF
|
|---|
| 4643 |
|
|---|
| 4644 | fi
|
|---|
| 4645 | rm -f conftest*
|
|---|
| 4646 |
|
|---|
| 4647 | else
|
|---|
| 4648 | echo "$ac_t""no" 1>&6
|
|---|
| 4649 | fi
|
|---|
| 4650 | done
|
|---|
| 4651 |
|
|---|
| 4652 | fi
|
|---|
| 4653 | rm -f conftest*
|
|---|
| 4654 |
|
|---|
| 4655 |
|
|---|
| 4656 | for ac_func in gethostname
|
|---|
| 4657 | do
|
|---|
| 4658 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 4659 | echo "configure:4660: checking for $ac_func" >&5
|
|---|
| 4660 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 4661 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4662 | else
|
|---|
| 4663 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4664 | #line 4665 "configure"
|
|---|
| 4665 | #include "confdefs.h"
|
|---|
| 4666 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 4667 | which can conflict with char $ac_func(); below. */
|
|---|
| 4668 | #include <assert.h>
|
|---|
| 4669 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 4670 | /* We use char because int might match the return type of a gcc2
|
|---|
| 4671 | builtin and then its argument prototype would still apply. */
|
|---|
| 4672 | char $ac_func();
|
|---|
| 4673 |
|
|---|
| 4674 | int main() {
|
|---|
| 4675 |
|
|---|
| 4676 | /* The GNU C library defines this for functions which it implements
|
|---|
| 4677 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 4678 | something starting with __ and the normal name is an alias. */
|
|---|
| 4679 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 4680 | choke me
|
|---|
| 4681 | #else
|
|---|
| 4682 | $ac_func();
|
|---|
| 4683 | #endif
|
|---|
| 4684 |
|
|---|
| 4685 | ; return 0; }
|
|---|
| 4686 | EOF
|
|---|
| 4687 | if { (eval echo configure:4688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4688 | rm -rf conftest*
|
|---|
| 4689 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 4690 | else
|
|---|
| 4691 | echo "configure: failed program was:" >&5
|
|---|
| 4692 | cat conftest.$ac_ext >&5
|
|---|
| 4693 | rm -rf conftest*
|
|---|
| 4694 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 4695 | fi
|
|---|
| 4696 | rm -f conftest*
|
|---|
| 4697 | fi
|
|---|
| 4698 |
|
|---|
| 4699 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 4700 | echo "$ac_t""yes" 1>&6
|
|---|
| 4701 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 4702 | cat >> confdefs.h <<EOF
|
|---|
| 4703 | #define $ac_tr_func 1
|
|---|
| 4704 | EOF
|
|---|
| 4705 |
|
|---|
| 4706 | cat >> confdefs.h <<\EOF
|
|---|
| 4707 | #define HAVE_GETHOSTNAME 1
|
|---|
| 4708 | EOF
|
|---|
| 4709 |
|
|---|
| 4710 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4711 | #line 4712 "configure"
|
|---|
| 4712 | #include "confdefs.h"
|
|---|
| 4713 | #include <unistd.h>
|
|---|
| 4714 | EOF
|
|---|
| 4715 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 4716 | egrep "gethostname" >/dev/null 2>&1; then
|
|---|
| 4717 | rm -rf conftest*
|
|---|
| 4718 |
|
|---|
| 4719 | cat >> confdefs.h <<\EOF
|
|---|
| 4720 | #define HAVE_GETHOSTNAME_DECL 1
|
|---|
| 4721 | EOF
|
|---|
| 4722 |
|
|---|
| 4723 | fi
|
|---|
| 4724 | rm -f conftest*
|
|---|
| 4725 |
|
|---|
| 4726 | else
|
|---|
| 4727 | echo "$ac_t""no" 1>&6
|
|---|
| 4728 | fi
|
|---|
| 4729 | done
|
|---|
| 4730 |
|
|---|
| 4731 |
|
|---|
| 4732 | # Look for these functions in the thread library, but only bother
|
|---|
| 4733 | # if using POSIX threads.
|
|---|
| 4734 | if test "$THREADS" = posix; then
|
|---|
| 4735 | save_LIBS="$LIBS"
|
|---|
| 4736 | LIBS="$LIBS $THREADLIBS"
|
|---|
| 4737 | # Some POSIX thread systems don't have pthread_mutexattr_settype.
|
|---|
| 4738 | # E.g., Solaris.
|
|---|
| 4739 | for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
|
|---|
| 4740 | do
|
|---|
| 4741 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 4742 | echo "configure:4743: checking for $ac_func" >&5
|
|---|
| 4743 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 4744 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4745 | else
|
|---|
| 4746 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4747 | #line 4748 "configure"
|
|---|
| 4748 | #include "confdefs.h"
|
|---|
| 4749 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 4750 | which can conflict with char $ac_func(); below. */
|
|---|
| 4751 | #include <assert.h>
|
|---|
| 4752 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 4753 | /* We use char because int might match the return type of a gcc2
|
|---|
| 4754 | builtin and then its argument prototype would still apply. */
|
|---|
| 4755 | char $ac_func();
|
|---|
| 4756 |
|
|---|
| 4757 | int main() {
|
|---|
| 4758 |
|
|---|
| 4759 | /* The GNU C library defines this for functions which it implements
|
|---|
| 4760 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 4761 | something starting with __ and the normal name is an alias. */
|
|---|
| 4762 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 4763 | choke me
|
|---|
| 4764 | #else
|
|---|
| 4765 | $ac_func();
|
|---|
| 4766 | #endif
|
|---|
| 4767 |
|
|---|
| 4768 | ; return 0; }
|
|---|
| 4769 | EOF
|
|---|
| 4770 | if { (eval echo configure:4771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4771 | rm -rf conftest*
|
|---|
| 4772 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 4773 | else
|
|---|
| 4774 | echo "configure: failed program was:" >&5
|
|---|
| 4775 | cat conftest.$ac_ext >&5
|
|---|
| 4776 | rm -rf conftest*
|
|---|
| 4777 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 4778 | fi
|
|---|
| 4779 | rm -f conftest*
|
|---|
| 4780 | fi
|
|---|
| 4781 |
|
|---|
| 4782 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 4783 | echo "$ac_t""yes" 1>&6
|
|---|
| 4784 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 4785 | cat >> confdefs.h <<EOF
|
|---|
| 4786 | #define $ac_tr_func 1
|
|---|
| 4787 | EOF
|
|---|
| 4788 |
|
|---|
| 4789 | else
|
|---|
| 4790 | echo "$ac_t""no" 1>&6
|
|---|
| 4791 | fi
|
|---|
| 4792 | done
|
|---|
| 4793 |
|
|---|
| 4794 |
|
|---|
| 4795 | # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
|
|---|
| 4796 | # Solaris 7 the name librt is preferred.
|
|---|
| 4797 | for ac_func in sched_yield
|
|---|
| 4798 | do
|
|---|
| 4799 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 4800 | echo "configure:4801: checking for $ac_func" >&5
|
|---|
| 4801 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 4802 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4803 | else
|
|---|
| 4804 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4805 | #line 4806 "configure"
|
|---|
| 4806 | #include "confdefs.h"
|
|---|
| 4807 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 4808 | which can conflict with char $ac_func(); below. */
|
|---|
| 4809 | #include <assert.h>
|
|---|
| 4810 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 4811 | /* We use char because int might match the return type of a gcc2
|
|---|
| 4812 | builtin and then its argument prototype would still apply. */
|
|---|
| 4813 | char $ac_func();
|
|---|
| 4814 |
|
|---|
| 4815 | int main() {
|
|---|
| 4816 |
|
|---|
| 4817 | /* The GNU C library defines this for functions which it implements
|
|---|
| 4818 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 4819 | something starting with __ and the normal name is an alias. */
|
|---|
| 4820 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 4821 | choke me
|
|---|
| 4822 | #else
|
|---|
| 4823 | $ac_func();
|
|---|
| 4824 | #endif
|
|---|
| 4825 |
|
|---|
| 4826 | ; return 0; }
|
|---|
| 4827 | EOF
|
|---|
| 4828 | if { (eval echo configure:4829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4829 | rm -rf conftest*
|
|---|
| 4830 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 4831 | else
|
|---|
| 4832 | echo "configure: failed program was:" >&5
|
|---|
| 4833 | cat conftest.$ac_ext >&5
|
|---|
| 4834 | rm -rf conftest*
|
|---|
| 4835 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 4836 | fi
|
|---|
| 4837 | rm -f conftest*
|
|---|
| 4838 | fi
|
|---|
| 4839 |
|
|---|
| 4840 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 4841 | echo "$ac_t""yes" 1>&6
|
|---|
| 4842 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 4843 | cat >> confdefs.h <<EOF
|
|---|
| 4844 | #define $ac_tr_func 1
|
|---|
| 4845 | EOF
|
|---|
| 4846 |
|
|---|
| 4847 | else
|
|---|
| 4848 | echo "$ac_t""no" 1>&6
|
|---|
| 4849 | echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
|
|---|
| 4850 | echo "configure:4851: checking for sched_yield in -lrt" >&5
|
|---|
| 4851 | ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
|
|---|
| 4852 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 4853 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4854 | else
|
|---|
| 4855 | ac_save_LIBS="$LIBS"
|
|---|
| 4856 | LIBS="-lrt $LIBS"
|
|---|
| 4857 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4858 | #line 4859 "configure"
|
|---|
| 4859 | #include "confdefs.h"
|
|---|
| 4860 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 4861 | /* We use char because int might match the return type of a gcc2
|
|---|
| 4862 | builtin and then its argument prototype would still apply. */
|
|---|
| 4863 | char sched_yield();
|
|---|
| 4864 |
|
|---|
| 4865 | int main() {
|
|---|
| 4866 | sched_yield()
|
|---|
| 4867 | ; return 0; }
|
|---|
| 4868 | EOF
|
|---|
| 4869 | if { (eval echo configure:4870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4870 | rm -rf conftest*
|
|---|
| 4871 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 4872 | else
|
|---|
| 4873 | echo "configure: failed program was:" >&5
|
|---|
| 4874 | cat conftest.$ac_ext >&5
|
|---|
| 4875 | rm -rf conftest*
|
|---|
| 4876 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 4877 | fi
|
|---|
| 4878 | rm -f conftest*
|
|---|
| 4879 | LIBS="$ac_save_LIBS"
|
|---|
| 4880 |
|
|---|
| 4881 | fi
|
|---|
| 4882 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 4883 | echo "$ac_t""yes" 1>&6
|
|---|
| 4884 |
|
|---|
| 4885 | cat >> confdefs.h <<\EOF
|
|---|
| 4886 | #define HAVE_SCHED_YIELD 1
|
|---|
| 4887 | EOF
|
|---|
| 4888 |
|
|---|
| 4889 | THREADLIBS="$THREADLIBS -lrt"
|
|---|
| 4890 | THREADSPEC="$THREADSPEC -lrt"
|
|---|
| 4891 | else
|
|---|
| 4892 | echo "$ac_t""no" 1>&6
|
|---|
| 4893 |
|
|---|
| 4894 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
|
|---|
| 4895 | echo "configure:4896: checking for sched_yield in -lposix4" >&5
|
|---|
| 4896 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
|
|---|
| 4897 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 4898 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4899 | else
|
|---|
| 4900 | ac_save_LIBS="$LIBS"
|
|---|
| 4901 | LIBS="-lposix4 $LIBS"
|
|---|
| 4902 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4903 | #line 4904 "configure"
|
|---|
| 4904 | #include "confdefs.h"
|
|---|
| 4905 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 4906 | /* We use char because int might match the return type of a gcc2
|
|---|
| 4907 | builtin and then its argument prototype would still apply. */
|
|---|
| 4908 | char sched_yield();
|
|---|
| 4909 |
|
|---|
| 4910 | int main() {
|
|---|
| 4911 | sched_yield()
|
|---|
| 4912 | ; return 0; }
|
|---|
| 4913 | EOF
|
|---|
| 4914 | if { (eval echo configure:4915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4915 | rm -rf conftest*
|
|---|
| 4916 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 4917 | else
|
|---|
| 4918 | echo "configure: failed program was:" >&5
|
|---|
| 4919 | cat conftest.$ac_ext >&5
|
|---|
| 4920 | rm -rf conftest*
|
|---|
| 4921 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 4922 | fi
|
|---|
| 4923 | rm -f conftest*
|
|---|
| 4924 | LIBS="$ac_save_LIBS"
|
|---|
| 4925 |
|
|---|
| 4926 | fi
|
|---|
| 4927 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 4928 | echo "$ac_t""yes" 1>&6
|
|---|
| 4929 |
|
|---|
| 4930 | cat >> confdefs.h <<\EOF
|
|---|
| 4931 | #define HAVE_SCHED_YIELD 1
|
|---|
| 4932 | EOF
|
|---|
| 4933 |
|
|---|
| 4934 | THREADLIBS="$THREADLIBS -lposix4"
|
|---|
| 4935 | THREADSPEC="$THREADSPEC -lposix4"
|
|---|
| 4936 | else
|
|---|
| 4937 | echo "$ac_t""no" 1>&6
|
|---|
| 4938 | fi
|
|---|
| 4939 |
|
|---|
| 4940 | fi
|
|---|
| 4941 |
|
|---|
| 4942 | fi
|
|---|
| 4943 | done
|
|---|
| 4944 |
|
|---|
| 4945 | LIBS="$save_LIBS"
|
|---|
| 4946 |
|
|---|
| 4947 | # We can save a little space at runtime if the mutex has m_count
|
|---|
| 4948 | # or __m_count. This is a nice hack for Linux.
|
|---|
| 4949 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4950 | #line 4951 "configure"
|
|---|
| 4951 | #include "confdefs.h"
|
|---|
| 4952 | #include <pthread.h>
|
|---|
| 4953 | int main() {
|
|---|
| 4954 |
|
|---|
| 4955 | extern pthread_mutex_t *mutex; int q = mutex->m_count;
|
|---|
| 4956 |
|
|---|
| 4957 | ; return 0; }
|
|---|
| 4958 | EOF
|
|---|
| 4959 | if { (eval echo configure:4960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 4960 | rm -rf conftest*
|
|---|
| 4961 | cat >> confdefs.h <<\EOF
|
|---|
| 4962 | #define PTHREAD_MUTEX_HAVE_M_COUNT 1
|
|---|
| 4963 | EOF
|
|---|
| 4964 |
|
|---|
| 4965 | else
|
|---|
| 4966 | echo "configure: failed program was:" >&5
|
|---|
| 4967 | cat conftest.$ac_ext >&5
|
|---|
| 4968 | rm -rf conftest*
|
|---|
| 4969 |
|
|---|
| 4970 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4971 | #line 4972 "configure"
|
|---|
| 4972 | #include "confdefs.h"
|
|---|
| 4973 | #include <pthread.h>
|
|---|
| 4974 | int main() {
|
|---|
| 4975 |
|
|---|
| 4976 | extern pthread_mutex_t *mutex; int q = mutex->__m_count;
|
|---|
| 4977 |
|
|---|
| 4978 | ; return 0; }
|
|---|
| 4979 | EOF
|
|---|
| 4980 | if { (eval echo configure:4981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 4981 | rm -rf conftest*
|
|---|
| 4982 | cat >> confdefs.h <<\EOF
|
|---|
| 4983 | #define PTHREAD_MUTEX_HAVE___M_COUNT 1
|
|---|
| 4984 | EOF
|
|---|
| 4985 |
|
|---|
| 4986 | else
|
|---|
| 4987 | echo "configure: failed program was:" >&5
|
|---|
| 4988 | cat conftest.$ac_ext >&5
|
|---|
| 4989 | fi
|
|---|
| 4990 | rm -f conftest*
|
|---|
| 4991 | fi
|
|---|
| 4992 | rm -f conftest*
|
|---|
| 4993 | fi
|
|---|
| 4994 |
|
|---|
| 4995 | # We require a way to get the time.
|
|---|
| 4996 | time_found=no
|
|---|
| 4997 | for ac_func in gettimeofday time ftime
|
|---|
| 4998 | do
|
|---|
| 4999 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 5000 | echo "configure:5001: checking for $ac_func" >&5
|
|---|
| 5001 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 5002 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5003 | else
|
|---|
| 5004 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5005 | #line 5006 "configure"
|
|---|
| 5006 | #include "confdefs.h"
|
|---|
| 5007 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 5008 | which can conflict with char $ac_func(); below. */
|
|---|
| 5009 | #include <assert.h>
|
|---|
| 5010 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 5011 | /* We use char because int might match the return type of a gcc2
|
|---|
| 5012 | builtin and then its argument prototype would still apply. */
|
|---|
| 5013 | char $ac_func();
|
|---|
| 5014 |
|
|---|
| 5015 | int main() {
|
|---|
| 5016 |
|
|---|
| 5017 | /* The GNU C library defines this for functions which it implements
|
|---|
| 5018 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 5019 | something starting with __ and the normal name is an alias. */
|
|---|
| 5020 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 5021 | choke me
|
|---|
| 5022 | #else
|
|---|
| 5023 | $ac_func();
|
|---|
| 5024 | #endif
|
|---|
| 5025 |
|
|---|
| 5026 | ; return 0; }
|
|---|
| 5027 | EOF
|
|---|
| 5028 | if { (eval echo configure:5029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 5029 | rm -rf conftest*
|
|---|
| 5030 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 5031 | else
|
|---|
| 5032 | echo "configure: failed program was:" >&5
|
|---|
| 5033 | cat conftest.$ac_ext >&5
|
|---|
| 5034 | rm -rf conftest*
|
|---|
| 5035 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 5036 | fi
|
|---|
| 5037 | rm -f conftest*
|
|---|
| 5038 | fi
|
|---|
| 5039 |
|
|---|
| 5040 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 5041 | echo "$ac_t""yes" 1>&6
|
|---|
| 5042 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 5043 | cat >> confdefs.h <<EOF
|
|---|
| 5044 | #define $ac_tr_func 1
|
|---|
| 5045 | EOF
|
|---|
| 5046 | time_found=yes
|
|---|
| 5047 | else
|
|---|
| 5048 | echo "$ac_t""no" 1>&6
|
|---|
| 5049 | fi
|
|---|
| 5050 | done
|
|---|
| 5051 |
|
|---|
| 5052 | if test "$time_found" = no; then
|
|---|
| 5053 | { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
|
|---|
| 5054 | fi
|
|---|
| 5055 |
|
|---|
| 5056 | for ac_func in memmove
|
|---|
| 5057 | do
|
|---|
| 5058 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 5059 | echo "configure:5060: checking for $ac_func" >&5
|
|---|
| 5060 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 5061 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5062 | else
|
|---|
| 5063 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5064 | #line 5065 "configure"
|
|---|
| 5065 | #include "confdefs.h"
|
|---|
| 5066 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 5067 | which can conflict with char $ac_func(); below. */
|
|---|
| 5068 | #include <assert.h>
|
|---|
| 5069 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 5070 | /* We use char because int might match the return type of a gcc2
|
|---|
| 5071 | builtin and then its argument prototype would still apply. */
|
|---|
| 5072 | char $ac_func();
|
|---|
| 5073 |
|
|---|
| 5074 | int main() {
|
|---|
| 5075 |
|
|---|
| 5076 | /* The GNU C library defines this for functions which it implements
|
|---|
| 5077 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 5078 | something starting with __ and the normal name is an alias. */
|
|---|
| 5079 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 5080 | choke me
|
|---|
| 5081 | #else
|
|---|
| 5082 | $ac_func();
|
|---|
| 5083 | #endif
|
|---|
| 5084 |
|
|---|
| 5085 | ; return 0; }
|
|---|
| 5086 | EOF
|
|---|
| 5087 | if { (eval echo configure:5088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 5088 | rm -rf conftest*
|
|---|
| 5089 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 5090 | else
|
|---|
| 5091 | echo "configure: failed program was:" >&5
|
|---|
| 5092 | cat conftest.$ac_ext >&5
|
|---|
| 5093 | rm -rf conftest*
|
|---|
| 5094 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 5095 | fi
|
|---|
| 5096 | rm -f conftest*
|
|---|
| 5097 | fi
|
|---|
| 5098 |
|
|---|
| 5099 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 5100 | echo "$ac_t""yes" 1>&6
|
|---|
| 5101 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 5102 | cat >> confdefs.h <<EOF
|
|---|
| 5103 | #define $ac_tr_func 1
|
|---|
| 5104 | EOF
|
|---|
| 5105 |
|
|---|
| 5106 | else
|
|---|
| 5107 | echo "$ac_t""no" 1>&6
|
|---|
| 5108 | fi
|
|---|
| 5109 | done
|
|---|
| 5110 |
|
|---|
| 5111 |
|
|---|
| 5112 | # We require memcpy.
|
|---|
| 5113 | memcpy_found=no
|
|---|
| 5114 | for ac_func in memcpy
|
|---|
| 5115 | do
|
|---|
| 5116 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 5117 | echo "configure:5118: checking for $ac_func" >&5
|
|---|
| 5118 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 5119 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5120 | else
|
|---|
| 5121 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5122 | #line 5123 "configure"
|
|---|
| 5123 | #include "confdefs.h"
|
|---|
| 5124 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 5125 | which can conflict with char $ac_func(); below. */
|
|---|
| 5126 | #include <assert.h>
|
|---|
| 5127 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 5128 | /* We use char because int might match the return type of a gcc2
|
|---|
| 5129 | builtin and then its argument prototype would still apply. */
|
|---|
| 5130 | char $ac_func();
|
|---|
| 5131 |
|
|---|
| 5132 | int main() {
|
|---|
| 5133 |
|
|---|
| 5134 | /* The GNU C library defines this for functions which it implements
|
|---|
| 5135 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 5136 | something starting with __ and the normal name is an alias. */
|
|---|
| 5137 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 5138 | choke me
|
|---|
| 5139 | #else
|
|---|
| 5140 | $ac_func();
|
|---|
| 5141 | #endif
|
|---|
| 5142 |
|
|---|
| 5143 | ; return 0; }
|
|---|
| 5144 | EOF
|
|---|
| 5145 | if { (eval echo configure:5146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 5146 | rm -rf conftest*
|
|---|
| 5147 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 5148 | else
|
|---|
| 5149 | echo "configure: failed program was:" >&5
|
|---|
| 5150 | cat conftest.$ac_ext >&5
|
|---|
| 5151 | rm -rf conftest*
|
|---|
| 5152 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 5153 | fi
|
|---|
| 5154 | rm -f conftest*
|
|---|
| 5155 | fi
|
|---|
| 5156 |
|
|---|
| 5157 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 5158 | echo "$ac_t""yes" 1>&6
|
|---|
| 5159 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 5160 | cat >> confdefs.h <<EOF
|
|---|
| 5161 | #define $ac_tr_func 1
|
|---|
| 5162 | EOF
|
|---|
| 5163 | memcpy_found=yes
|
|---|
| 5164 | else
|
|---|
| 5165 | echo "$ac_t""no" 1>&6
|
|---|
| 5166 | fi
|
|---|
| 5167 | done
|
|---|
| 5168 |
|
|---|
| 5169 | if test "$memcpy_found" = no; then
|
|---|
| 5170 | { echo "configure: error: memcpy is required" 1>&2; exit 1; }
|
|---|
| 5171 | fi
|
|---|
| 5172 |
|
|---|
| 5173 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
|
|---|
| 5174 | echo "configure:5175: checking for dlopen in -ldl" >&5
|
|---|
| 5175 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
|
|---|
| 5176 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 5177 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5178 | else
|
|---|
| 5179 | ac_save_LIBS="$LIBS"
|
|---|
| 5180 | LIBS="-ldl $LIBS"
|
|---|
| 5181 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5182 | #line 5183 "configure"
|
|---|
| 5183 | #include "confdefs.h"
|
|---|
| 5184 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 5185 | /* We use char because int might match the return type of a gcc2
|
|---|
| 5186 | builtin and then its argument prototype would still apply. */
|
|---|
| 5187 | char dlopen();
|
|---|
| 5188 |
|
|---|
| 5189 | int main() {
|
|---|
| 5190 | dlopen()
|
|---|
| 5191 | ; return 0; }
|
|---|
| 5192 | EOF
|
|---|
| 5193 | if { (eval echo configure:5194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 5194 | rm -rf conftest*
|
|---|
| 5195 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 5196 | else
|
|---|
| 5197 | echo "configure: failed program was:" >&5
|
|---|
| 5198 | cat conftest.$ac_ext >&5
|
|---|
| 5199 | rm -rf conftest*
|
|---|
| 5200 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 5201 | fi
|
|---|
| 5202 | rm -f conftest*
|
|---|
| 5203 | LIBS="$ac_save_LIBS"
|
|---|
| 5204 |
|
|---|
| 5205 | fi
|
|---|
| 5206 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 5207 | echo "$ac_t""yes" 1>&6
|
|---|
| 5208 |
|
|---|
| 5209 | cat >> confdefs.h <<\EOF
|
|---|
| 5210 | #define HAVE_DLOPEN 1
|
|---|
| 5211 | EOF
|
|---|
| 5212 |
|
|---|
| 5213 | else
|
|---|
| 5214 | echo "$ac_t""no" 1>&6
|
|---|
| 5215 | fi
|
|---|
| 5216 |
|
|---|
| 5217 |
|
|---|
| 5218 | # Some library-finding code we stole from Tcl.
|
|---|
| 5219 | #--------------------------------------------------------------------
|
|---|
| 5220 | # Check for the existence of the -lsocket and -lnsl libraries.
|
|---|
| 5221 | # The order here is important, so that they end up in the right
|
|---|
| 5222 | # order in the command line generated by make. Here are some
|
|---|
| 5223 | # special considerations:
|
|---|
| 5224 | # 1. Use "connect" and "accept" to check for -lsocket, and
|
|---|
| 5225 | # "gethostbyname" to check for -lnsl.
|
|---|
| 5226 | # 2. Use each function name only once: can't redo a check because
|
|---|
| 5227 | # autoconf caches the results of the last check and won't redo it.
|
|---|
| 5228 | # 3. Use -lnsl and -lsocket only if they supply procedures that
|
|---|
| 5229 | # aren't already present in the normal libraries. This is because
|
|---|
| 5230 | # IRIX 5.2 has libraries, but they aren't needed and they're
|
|---|
| 5231 | # bogus: they goof up name resolution if used.
|
|---|
| 5232 | # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
|
|---|
| 5233 | # To get around this problem, check for both libraries together
|
|---|
| 5234 | # if -lsocket doesn't work by itself.
|
|---|
| 5235 | #--------------------------------------------------------------------
|
|---|
| 5236 |
|
|---|
| 5237 | echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
|
|---|
| 5238 | echo "configure:5239: checking for socket libraries" >&5
|
|---|
| 5239 | if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
|
|---|
| 5240 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5241 | else
|
|---|
| 5242 | gcj_cv_lib_sockets=
|
|---|
| 5243 | gcj_checkBoth=0
|
|---|
| 5244 | unset ac_cv_func_connect
|
|---|
| 5245 | echo $ac_n "checking for connect""... $ac_c" 1>&6
|
|---|
| 5246 | echo "configure:5247: checking for connect" >&5
|
|---|
| 5247 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
|
|---|
| 5248 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5249 | else
|
|---|
| 5250 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5251 | #line 5252 "configure"
|
|---|
| 5252 | #include "confdefs.h"
|
|---|
| 5253 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 5254 | which can conflict with char connect(); below. */
|
|---|
| 5255 | #include <assert.h>
|
|---|
| 5256 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 5257 | /* We use char because int might match the return type of a gcc2
|
|---|
| 5258 | builtin and then its argument prototype would still apply. */
|
|---|
| 5259 | char connect();
|
|---|
| 5260 |
|
|---|
| 5261 | int main() {
|
|---|
| 5262 |
|
|---|
| 5263 | /* The GNU C library defines this for functions which it implements
|
|---|
| 5264 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 5265 | something starting with __ and the normal name is an alias. */
|
|---|
| 5266 | #if defined (__stub_connect) || defined (__stub___connect)
|
|---|
| 5267 | choke me
|
|---|
| 5268 | #else
|
|---|
| 5269 | connect();
|
|---|
| 5270 | #endif
|
|---|
| 5271 |
|
|---|
| 5272 | ; return 0; }
|
|---|
| 5273 | EOF
|
|---|
| 5274 | if { (eval echo configure:5275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 5275 | rm -rf conftest*
|
|---|
| 5276 | eval "ac_cv_func_connect=yes"
|
|---|
| 5277 | else
|
|---|
| 5278 | echo "configure: failed program was:" >&5
|
|---|
| 5279 | cat conftest.$ac_ext >&5
|
|---|
| 5280 | rm -rf conftest*
|
|---|
| 5281 | eval "ac_cv_func_connect=no"
|
|---|
| 5282 | fi
|
|---|
| 5283 | rm -f conftest*
|
|---|
| 5284 | fi
|
|---|
| 5285 |
|
|---|
| 5286 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
|
|---|
| 5287 | echo "$ac_t""yes" 1>&6
|
|---|
| 5288 | gcj_checkSocket=0
|
|---|
| 5289 | else
|
|---|
| 5290 | echo "$ac_t""no" 1>&6
|
|---|
| 5291 | gcj_checkSocket=1
|
|---|
| 5292 | fi
|
|---|
| 5293 |
|
|---|
| 5294 | if test "$gcj_checkSocket" = 1; then
|
|---|
| 5295 | unset ac_cv_func_connect
|
|---|
| 5296 | echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
|
|---|
| 5297 | echo "configure:5298: checking for main in -lsocket" >&5
|
|---|
| 5298 | ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
|
|---|
| 5299 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 5300 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5301 | else
|
|---|
| 5302 | ac_save_LIBS="$LIBS"
|
|---|
| 5303 | LIBS="-lsocket $LIBS"
|
|---|
| 5304 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5305 | #line 5306 "configure"
|
|---|
| 5306 | #include "confdefs.h"
|
|---|
| 5307 |
|
|---|
| 5308 | int main() {
|
|---|
| 5309 | main()
|
|---|
| 5310 | ; return 0; }
|
|---|
| 5311 | EOF
|
|---|
| 5312 | if { (eval echo configure:5313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 5313 | rm -rf conftest*
|
|---|
| 5314 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 5315 | else
|
|---|
| 5316 | echo "configure: failed program was:" >&5
|
|---|
| 5317 | cat conftest.$ac_ext >&5
|
|---|
| 5318 | rm -rf conftest*
|
|---|
| 5319 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 5320 | fi
|
|---|
| 5321 | rm -f conftest*
|
|---|
| 5322 | LIBS="$ac_save_LIBS"
|
|---|
| 5323 |
|
|---|
| 5324 | fi
|
|---|
| 5325 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 5326 | echo "$ac_t""yes" 1>&6
|
|---|
| 5327 | gcj_cv_lib_sockets="-lsocket"
|
|---|
| 5328 | else
|
|---|
| 5329 | echo "$ac_t""no" 1>&6
|
|---|
| 5330 | gcj_checkBoth=1
|
|---|
| 5331 | fi
|
|---|
| 5332 |
|
|---|
| 5333 | fi
|
|---|
| 5334 | if test "$gcj_checkBoth" = 1; then
|
|---|
| 5335 | gcj_oldLibs=$LIBS
|
|---|
| 5336 | LIBS="$LIBS -lsocket -lnsl"
|
|---|
| 5337 | unset ac_cv_func_accept
|
|---|
| 5338 | echo $ac_n "checking for accept""... $ac_c" 1>&6
|
|---|
| 5339 | echo "configure:5340: checking for accept" >&5
|
|---|
| 5340 | if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
|
|---|
| 5341 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5342 | else
|
|---|
| 5343 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5344 | #line 5345 "configure"
|
|---|
| 5345 | #include "confdefs.h"
|
|---|
| 5346 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 5347 | which can conflict with char accept(); below. */
|
|---|
| 5348 | #include <assert.h>
|
|---|
| 5349 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 5350 | /* We use char because int might match the return type of a gcc2
|
|---|
| 5351 | builtin and then its argument prototype would still apply. */
|
|---|
| 5352 | char accept();
|
|---|
| 5353 |
|
|---|
| 5354 | int main() {
|
|---|
| 5355 |
|
|---|
| 5356 | /* The GNU C library defines this for functions which it implements
|
|---|
| 5357 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 5358 | something starting with __ and the normal name is an alias. */
|
|---|
| 5359 | #if defined (__stub_accept) || defined (__stub___accept)
|
|---|
| 5360 | choke me
|
|---|
| 5361 | #else
|
|---|
| 5362 | accept();
|
|---|
| 5363 | #endif
|
|---|
| 5364 |
|
|---|
| 5365 | ; return 0; }
|
|---|
| 5366 | EOF
|
|---|
| 5367 | if { (eval echo configure:5368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 5368 | rm -rf conftest*
|
|---|
| 5369 | eval "ac_cv_func_accept=yes"
|
|---|
| 5370 | else
|
|---|
| 5371 | echo "configure: failed program was:" >&5
|
|---|
| 5372 | cat conftest.$ac_ext >&5
|
|---|
| 5373 | rm -rf conftest*
|
|---|
| 5374 | eval "ac_cv_func_accept=no"
|
|---|
| 5375 | fi
|
|---|
| 5376 | rm -f conftest*
|
|---|
| 5377 | fi
|
|---|
| 5378 |
|
|---|
| 5379 | if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
|
|---|
| 5380 | echo "$ac_t""yes" 1>&6
|
|---|
| 5381 | gcj_checkNsl=0
|
|---|
| 5382 | gcj_cv_lib_sockets="-lsocket -lnsl"
|
|---|
| 5383 | else
|
|---|
| 5384 | echo "$ac_t""no" 1>&6
|
|---|
| 5385 | fi
|
|---|
| 5386 |
|
|---|
| 5387 | unset ac_cv_func_accept
|
|---|
| 5388 | LIBS=$gcj_oldLibs
|
|---|
| 5389 | fi
|
|---|
| 5390 | unset ac_cv_func_gethostbyname
|
|---|
| 5391 | gcj_oldLibs=$LIBS
|
|---|
| 5392 | LIBS="$LIBS $gcj_cv_lib_sockets"
|
|---|
| 5393 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
|
|---|
| 5394 | echo "configure:5395: checking for gethostbyname" >&5
|
|---|
| 5395 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
|
|---|
| 5396 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5397 | else
|
|---|
| 5398 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5399 | #line 5400 "configure"
|
|---|
| 5400 | #include "confdefs.h"
|
|---|
| 5401 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 5402 | which can conflict with char gethostbyname(); below. */
|
|---|
| 5403 | #include <assert.h>
|
|---|
| 5404 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 5405 | /* We use char because int might match the return type of a gcc2
|
|---|
| 5406 | builtin and then its argument prototype would still apply. */
|
|---|
| 5407 | char gethostbyname();
|
|---|
| 5408 |
|
|---|
| 5409 | int main() {
|
|---|
| 5410 |
|
|---|
| 5411 | /* The GNU C library defines this for functions which it implements
|
|---|
| 5412 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 5413 | something starting with __ and the normal name is an alias. */
|
|---|
| 5414 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
|
|---|
| 5415 | choke me
|
|---|
| 5416 | #else
|
|---|
| 5417 | gethostbyname();
|
|---|
| 5418 | #endif
|
|---|
| 5419 |
|
|---|
| 5420 | ; return 0; }
|
|---|
| 5421 | EOF
|
|---|
| 5422 | if { (eval echo configure:5423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 5423 | rm -rf conftest*
|
|---|
| 5424 | eval "ac_cv_func_gethostbyname=yes"
|
|---|
| 5425 | else
|
|---|
| 5426 | echo "configure: failed program was:" >&5
|
|---|
| 5427 | cat conftest.$ac_ext >&5
|
|---|
| 5428 | rm -rf conftest*
|
|---|
| 5429 | eval "ac_cv_func_gethostbyname=no"
|
|---|
| 5430 | fi
|
|---|
| 5431 | rm -f conftest*
|
|---|
| 5432 | fi
|
|---|
| 5433 |
|
|---|
| 5434 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
|
|---|
| 5435 | echo "$ac_t""yes" 1>&6
|
|---|
| 5436 | :
|
|---|
| 5437 | else
|
|---|
| 5438 | echo "$ac_t""no" 1>&6
|
|---|
| 5439 | echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
|
|---|
| 5440 | echo "configure:5441: checking for main in -lnsl" >&5
|
|---|
| 5441 | ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
|
|---|
| 5442 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 5443 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5444 | else
|
|---|
| 5445 | ac_save_LIBS="$LIBS"
|
|---|
| 5446 | LIBS="-lnsl $LIBS"
|
|---|
| 5447 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5448 | #line 5449 "configure"
|
|---|
| 5449 | #include "confdefs.h"
|
|---|
| 5450 |
|
|---|
| 5451 | int main() {
|
|---|
| 5452 | main()
|
|---|
| 5453 | ; return 0; }
|
|---|
| 5454 | EOF
|
|---|
| 5455 | if { (eval echo configure:5456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 5456 | rm -rf conftest*
|
|---|
| 5457 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 5458 | else
|
|---|
| 5459 | echo "configure: failed program was:" >&5
|
|---|
| 5460 | cat conftest.$ac_ext >&5
|
|---|
| 5461 | rm -rf conftest*
|
|---|
| 5462 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 5463 | fi
|
|---|
| 5464 | rm -f conftest*
|
|---|
| 5465 | LIBS="$ac_save_LIBS"
|
|---|
| 5466 |
|
|---|
| 5467 | fi
|
|---|
| 5468 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 5469 | echo "$ac_t""yes" 1>&6
|
|---|
| 5470 | gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
|
|---|
| 5471 | else
|
|---|
| 5472 | echo "$ac_t""no" 1>&6
|
|---|
| 5473 | fi
|
|---|
| 5474 |
|
|---|
| 5475 | fi
|
|---|
| 5476 |
|
|---|
| 5477 | unset ac_cv_func_gethostbyname
|
|---|
| 5478 | LIBS=$gcj_oldLIBS
|
|---|
| 5479 |
|
|---|
| 5480 | fi
|
|---|
| 5481 |
|
|---|
| 5482 | echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
|
|---|
| 5483 | SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
|
|---|
| 5484 |
|
|---|
| 5485 | if test "$with_system_zlib" = yes; then
|
|---|
| 5486 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
|
|---|
| 5487 | echo "configure:5488: checking for deflate in -lz" >&5
|
|---|
| 5488 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
|
|---|
| 5489 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 5490 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5491 | else
|
|---|
| 5492 | ac_save_LIBS="$LIBS"
|
|---|
| 5493 | LIBS="-lz $LIBS"
|
|---|
| 5494 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5495 | #line 5496 "configure"
|
|---|
| 5496 | #include "confdefs.h"
|
|---|
| 5497 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 5498 | /* We use char because int might match the return type of a gcc2
|
|---|
| 5499 | builtin and then its argument prototype would still apply. */
|
|---|
| 5500 | char deflate();
|
|---|
| 5501 |
|
|---|
| 5502 | int main() {
|
|---|
| 5503 | deflate()
|
|---|
| 5504 | ; return 0; }
|
|---|
| 5505 | EOF
|
|---|
| 5506 | if { (eval echo configure:5507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 5507 | rm -rf conftest*
|
|---|
| 5508 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 5509 | else
|
|---|
| 5510 | echo "configure: failed program was:" >&5
|
|---|
| 5511 | cat conftest.$ac_ext >&5
|
|---|
| 5512 | rm -rf conftest*
|
|---|
| 5513 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 5514 | fi
|
|---|
| 5515 | rm -f conftest*
|
|---|
| 5516 | LIBS="$ac_save_LIBS"
|
|---|
| 5517 |
|
|---|
| 5518 | fi
|
|---|
| 5519 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 5520 | echo "$ac_t""yes" 1>&6
|
|---|
| 5521 | ZLIBSPEC=-lz
|
|---|
| 5522 | else
|
|---|
| 5523 | echo "$ac_t""no" 1>&6
|
|---|
| 5524 | ZLIBSPEC=
|
|---|
| 5525 | fi
|
|---|
| 5526 |
|
|---|
| 5527 | fi
|
|---|
| 5528 |
|
|---|
| 5529 | # On Solaris, and maybe other architectures, the Boehm collector
|
|---|
| 5530 | # requires -ldl.
|
|---|
| 5531 | if test "$GC" = boehm; then
|
|---|
| 5532 | echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
|
|---|
| 5533 | echo "configure:5534: checking for main in -ldl" >&5
|
|---|
| 5534 | ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
|
|---|
| 5535 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 5536 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5537 | else
|
|---|
| 5538 | ac_save_LIBS="$LIBS"
|
|---|
| 5539 | LIBS="-ldl $LIBS"
|
|---|
| 5540 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5541 | #line 5542 "configure"
|
|---|
| 5542 | #include "confdefs.h"
|
|---|
| 5543 |
|
|---|
| 5544 | int main() {
|
|---|
| 5545 | main()
|
|---|
| 5546 | ; return 0; }
|
|---|
| 5547 | EOF
|
|---|
| 5548 | if { (eval echo configure:5549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 5549 | rm -rf conftest*
|
|---|
| 5550 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 5551 | else
|
|---|
| 5552 | echo "configure: failed program was:" >&5
|
|---|
| 5553 | cat conftest.$ac_ext >&5
|
|---|
| 5554 | rm -rf conftest*
|
|---|
| 5555 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 5556 | fi
|
|---|
| 5557 | rm -f conftest*
|
|---|
| 5558 | LIBS="$ac_save_LIBS"
|
|---|
| 5559 |
|
|---|
| 5560 | fi
|
|---|
| 5561 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 5562 | echo "$ac_t""yes" 1>&6
|
|---|
| 5563 | SYSTEMSPEC="$SYSTEMSPEC -ldl"
|
|---|
| 5564 | else
|
|---|
| 5565 | echo "$ac_t""no" 1>&6
|
|---|
| 5566 | fi
|
|---|
| 5567 |
|
|---|
| 5568 | fi
|
|---|
| 5569 |
|
|---|
| 5570 | if test -z "${with_multisubdir}"; then
|
|---|
| 5571 | builddotdot=.
|
|---|
| 5572 | else
|
|---|
| 5573 |
|
|---|
| 5574 | builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
|
|---|
| 5575 |
|
|---|
| 5576 | fi
|
|---|
| 5577 | if test -x "${builddotdot}/../../gcc/gcj"; then
|
|---|
| 5578 | dir="`cd ${builddotdot}/../../gcc && pwd`"
|
|---|
| 5579 | GCJ="$dir/gcj -B`pwd`/ -B$dir/"
|
|---|
| 5580 | else
|
|---|
| 5581 | CANADIAN=yes
|
|---|
| 5582 | NULL_TARGET=yes
|
|---|
| 5583 | GCJ="gcj -B`pwd`/"
|
|---|
| 5584 | fi
|
|---|
| 5585 | fi
|
|---|
| 5586 |
|
|---|
| 5587 | # Create it, so that compile/link tests don't fail
|
|---|
| 5588 | test -f libgcj.spec || touch libgcj.spec
|
|---|
| 5589 |
|
|---|
| 5590 | # We must search the source tree for java.lang, since we still don't
|
|---|
| 5591 | # have libgcj.jar nor java/lang/*.class
|
|---|
| 5592 | GCJ_SAVE_CPPFLAGS=$CPPFLAGS
|
|---|
| 5593 | CPPFLAGS="$CPPFLAGS -I`pwd` -I`cd $srcdir && pwd`"
|
|---|
| 5594 |
|
|---|
| 5595 | # Since some classes depend on this one, we need its source available
|
|---|
| 5596 | # before we can do any GCJ compilation test :-(
|
|---|
| 5597 | if test ! -f gnu/classpath/Configuration.java; then
|
|---|
| 5598 | test -d gnu || mkdir gnu
|
|---|
| 5599 | test -d gnu/classpath || mkdir gnu/classpath
|
|---|
| 5600 | sed 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
|
|---|
| 5601 | < $srcdir/gnu/classpath/Configuration.java.in \
|
|---|
| 5602 | > gnu/classpath/Configuration.java
|
|---|
| 5603 | # We do not want to redirect the output of the grep below to /dev/null,
|
|---|
| 5604 | # but we add /dev/null to the input list so that grep will print the
|
|---|
| 5605 | # filename of Configuration.java in case it finds any matches.
|
|---|
| 5606 | if grep @ gnu/classpath/Configuration.java /dev/null; then
|
|---|
| 5607 | { echo "configure: error: configure.in is missing the substitutions above" 1>&2; exit 1; }
|
|---|
| 5608 | fi
|
|---|
| 5609 | fi
|
|---|
| 5610 |
|
|---|
| 5611 | # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
|
|---|
| 5612 | set dummy ${ac_tool_prefix}gcj; ac_word=$2
|
|---|
| 5613 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 5614 | echo "configure:5615: checking for $ac_word" >&5
|
|---|
| 5615 | if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
|
|---|
| 5616 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5617 | else
|
|---|
| 5618 | if test -n "$GCJ"; then
|
|---|
| 5619 | ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
|
|---|
| 5620 | else
|
|---|
| 5621 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 5622 | ac_dummy="$PATH"
|
|---|
| 5623 | for ac_dir in $ac_dummy; do
|
|---|
| 5624 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 5625 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 5626 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 5627 | ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
|
|---|
| 5628 | break
|
|---|
| 5629 | fi
|
|---|
| 5630 | done
|
|---|
| 5631 | IFS="$ac_save_ifs"
|
|---|
| 5632 | fi
|
|---|
| 5633 | fi
|
|---|
| 5634 | GCJ="$ac_cv_prog_GCJ"
|
|---|
| 5635 | if test -n "$GCJ"; then
|
|---|
| 5636 | echo "$ac_t""$GCJ" 1>&6
|
|---|
| 5637 | else
|
|---|
| 5638 | echo "$ac_t""no" 1>&6
|
|---|
| 5639 | fi
|
|---|
| 5640 |
|
|---|
| 5641 |
|
|---|
| 5642 | if test -z "$ac_cv_prog_GCJ"; then
|
|---|
| 5643 | if test -n "$ac_tool_prefix"; then
|
|---|
| 5644 | # Extract the first word of "gcj", so it can be a program name with args.
|
|---|
| 5645 | set dummy gcj; ac_word=$2
|
|---|
| 5646 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 5647 | echo "configure:5648: checking for $ac_word" >&5
|
|---|
| 5648 | if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
|
|---|
| 5649 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5650 | else
|
|---|
| 5651 | if test -n "$GCJ"; then
|
|---|
| 5652 | ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
|
|---|
| 5653 | else
|
|---|
| 5654 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 5655 | ac_dummy="$PATH"
|
|---|
| 5656 | for ac_dir in $ac_dummy; do
|
|---|
| 5657 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 5658 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 5659 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 5660 | ac_cv_prog_GCJ="gcj"
|
|---|
| 5661 | break
|
|---|
| 5662 | fi
|
|---|
| 5663 | done
|
|---|
| 5664 | IFS="$ac_save_ifs"
|
|---|
| 5665 | test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no"
|
|---|
| 5666 | fi
|
|---|
| 5667 | fi
|
|---|
| 5668 | GCJ="$ac_cv_prog_GCJ"
|
|---|
| 5669 | if test -n "$GCJ"; then
|
|---|
| 5670 | echo "$ac_t""$GCJ" 1>&6
|
|---|
| 5671 | else
|
|---|
| 5672 | echo "$ac_t""no" 1>&6
|
|---|
| 5673 | fi
|
|---|
| 5674 |
|
|---|
| 5675 | else
|
|---|
| 5676 | GCJ="no"
|
|---|
| 5677 | fi
|
|---|
| 5678 | fi
|
|---|
| 5679 |
|
|---|
| 5680 | test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
|
|---|
| 5681 |
|
|---|
| 5682 |
|
|---|
| 5683 |
|
|---|
| 5684 | LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
|
|---|
| 5685 | lt_save_CC="$CC"
|
|---|
| 5686 | lt_save_CFLAGS="$CFLAGS"
|
|---|
| 5687 | AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
|
|---|
| 5688 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
|
|---|
| 5689 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
|
|---|
| 5690 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
|
|---|
| 5691 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
|
|---|
| 5692 | deplibs_check_method="$deplibs_check_method" \
|
|---|
| 5693 | file_magic_cmd="$file_magic_cmd" \
|
|---|
| 5694 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
|
|---|
| 5695 | --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
|
|---|
| 5696 | || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
|
|---|
| 5697 | CC="$lt_save_CC"
|
|---|
| 5698 | CFLAGS="$lt_save_CFLAGS"
|
|---|
| 5699 |
|
|---|
| 5700 | # Redirect the config.log output again, so that the ltconfig log is not
|
|---|
| 5701 | # clobbered by the next message.
|
|---|
| 5702 | exec 5>>./config.log
|
|---|
| 5703 |
|
|---|
| 5704 |
|
|---|
| 5705 |
|
|---|
| 5706 |
|
|---|
| 5707 | CPPFLAGS=$GCJ_SAVE_CPPFLAGS
|
|---|
| 5708 |
|
|---|
| 5709 | echo $ac_n "checking size of void *""... $ac_c" 1>&6
|
|---|
| 5710 | echo "configure:5711: checking size of void *" >&5
|
|---|
| 5711 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
|
|---|
| 5712 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5713 | else
|
|---|
| 5714 | for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
|
|---|
| 5715 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5716 | #line 5717 "configure"
|
|---|
| 5717 | #include "confdefs.h"
|
|---|
| 5718 | #include "confdefs.h"
|
|---|
| 5719 | #include <sys/types.h>
|
|---|
| 5720 |
|
|---|
| 5721 |
|
|---|
| 5722 | int main() {
|
|---|
| 5723 | switch (0) case 0: case (sizeof (void *) == $ac_size):;
|
|---|
| 5724 | ; return 0; }
|
|---|
| 5725 | EOF
|
|---|
| 5726 | if { (eval echo configure:5727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5727 | rm -rf conftest*
|
|---|
| 5728 | ac_cv_sizeof_void_p=$ac_size
|
|---|
| 5729 | else
|
|---|
| 5730 | echo "configure: failed program was:" >&5
|
|---|
| 5731 | cat conftest.$ac_ext >&5
|
|---|
| 5732 | fi
|
|---|
| 5733 | rm -f conftest*
|
|---|
| 5734 | if test x$ac_cv_sizeof_void_p != x ; then break; fi
|
|---|
| 5735 | done
|
|---|
| 5736 |
|
|---|
| 5737 | fi
|
|---|
| 5738 |
|
|---|
| 5739 | if test x$ac_cv_sizeof_void_p = x ; then
|
|---|
| 5740 | { echo "configure: error: cannot determine a size for void *" 1>&2; exit 1; }
|
|---|
| 5741 | fi
|
|---|
| 5742 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
|
|---|
| 5743 | cat >> confdefs.h <<EOF
|
|---|
| 5744 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
|
|---|
| 5745 | EOF
|
|---|
| 5746 |
|
|---|
| 5747 |
|
|---|
| 5748 |
|
|---|
| 5749 | ZLIBS=
|
|---|
| 5750 | SYS_ZLIBS=
|
|---|
| 5751 | ZINCS=
|
|---|
| 5752 |
|
|---|
| 5753 | if test -z "$ZLIBSPEC"; then
|
|---|
| 5754 | # Use zlib from the GCC tree.
|
|---|
| 5755 | ZINCS='-I$(top_srcdir)/../zlib'
|
|---|
| 5756 | ZLIBS=../zlib/libzgcj_convenience.la
|
|---|
| 5757 | else
|
|---|
| 5758 | # System's zlib.
|
|---|
| 5759 | SYS_ZLIBS="$ZLIBSPEC"
|
|---|
| 5760 | fi
|
|---|
| 5761 |
|
|---|
| 5762 |
|
|---|
| 5763 |
|
|---|
| 5764 |
|
|---|
| 5765 |
|
|---|
| 5766 |
|
|---|
| 5767 |
|
|---|
| 5768 |
|
|---|
| 5769 |
|
|---|
| 5770 | if test "$CANADIAN" = yes; then
|
|---|
| 5771 | CANADIAN_TRUE=
|
|---|
| 5772 | CANADIAN_FALSE='#'
|
|---|
| 5773 | else
|
|---|
| 5774 | CANADIAN_TRUE='#'
|
|---|
| 5775 | CANADIAN_FALSE=
|
|---|
| 5776 | fi
|
|---|
| 5777 |
|
|---|
| 5778 |
|
|---|
| 5779 | if test "$NULL_TARGET" = yes; then
|
|---|
| 5780 | NULL_TARGET_TRUE=
|
|---|
| 5781 | NULL_TARGET_FALSE='#'
|
|---|
| 5782 | else
|
|---|
| 5783 | NULL_TARGET_TRUE='#'
|
|---|
| 5784 | NULL_TARGET_FALSE=
|
|---|
| 5785 | fi
|
|---|
| 5786 |
|
|---|
| 5787 |
|
|---|
| 5788 | if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
|
|---|
| 5789 | NATIVE_TRUE=
|
|---|
| 5790 | NATIVE_FALSE='#'
|
|---|
| 5791 | else
|
|---|
| 5792 | NATIVE_TRUE='#'
|
|---|
| 5793 | NATIVE_FALSE=
|
|---|
| 5794 | fi
|
|---|
| 5795 |
|
|---|
| 5796 |
|
|---|
| 5797 | if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
|
|---|
| 5798 | NEEDS_DATA_START_TRUE=
|
|---|
| 5799 | NEEDS_DATA_START_FALSE='#'
|
|---|
| 5800 | else
|
|---|
| 5801 | NEEDS_DATA_START_TRUE='#'
|
|---|
| 5802 | NEEDS_DATA_START_FALSE=
|
|---|
| 5803 | fi
|
|---|
| 5804 |
|
|---|
| 5805 |
|
|---|
| 5806 | if test -n "$with_cross_host" &&
|
|---|
| 5807 | test x"$with_cross_host" != x"no"; then
|
|---|
| 5808 | toolexecdir='$(exec_prefix)/$(target_alias)'
|
|---|
| 5809 | toolexecmainlibdir='$(toolexecdir)/lib'
|
|---|
| 5810 | else
|
|---|
| 5811 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
|
|---|
| 5812 | toolexecmainlibdir='$(libdir)'
|
|---|
| 5813 | fi
|
|---|
| 5814 | toolexeclibdir=$toolexecmainlibdir/`$CC -print-multi-os-directory`
|
|---|
| 5815 |
|
|---|
| 5816 |
|
|---|
| 5817 |
|
|---|
| 5818 |
|
|---|
| 5819 |
|
|---|
| 5820 |
|
|---|
| 5821 | # Determine gcj version number.
|
|---|
| 5822 |
|
|---|
| 5823 | gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
|
|---|
| 5824 |
|
|---|
| 5825 | GCJVERSION=$gcjversion
|
|---|
| 5826 |
|
|---|
| 5827 | cat >> confdefs.h <<EOF
|
|---|
| 5828 | #define GCJVERSION "$GCJVERSION"
|
|---|
| 5829 | EOF
|
|---|
| 5830 |
|
|---|
| 5831 |
|
|---|
| 5832 | echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6
|
|---|
| 5833 | echo "configure:5834: checking for g++ -ffloat-store bug" >&5
|
|---|
| 5834 | save_CFLAGS="$CFLAGS"
|
|---|
| 5835 | CFLAGS="-x c++ -O2 -ffloat-store"
|
|---|
| 5836 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5837 | #line 5838 "configure"
|
|---|
| 5838 | #include "confdefs.h"
|
|---|
| 5839 | #include <math.h>
|
|---|
| 5840 | int main() {
|
|---|
| 5841 |
|
|---|
| 5842 | ; return 0; }
|
|---|
| 5843 | EOF
|
|---|
| 5844 | if { (eval echo configure:5845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5845 | rm -rf conftest*
|
|---|
| 5846 | echo "$ac_t""no" 1>&6
|
|---|
| 5847 | else
|
|---|
| 5848 | echo "configure: failed program was:" >&5
|
|---|
| 5849 | cat conftest.$ac_ext >&5
|
|---|
| 5850 | rm -rf conftest*
|
|---|
| 5851 | cat >> confdefs.h <<\EOF
|
|---|
| 5852 | #define __NO_MATH_INLINES 1
|
|---|
| 5853 | EOF
|
|---|
| 5854 |
|
|---|
| 5855 | echo "$ac_t""yes" 1>&6
|
|---|
| 5856 | fi
|
|---|
| 5857 | rm -f conftest*
|
|---|
| 5858 | CFLAGS="$save_CFLAGS"
|
|---|
| 5859 |
|
|---|
| 5860 | for ac_hdr in unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h pwd.h sys/config.h stdint.h langinfo.h locale.h
|
|---|
| 5861 | do
|
|---|
| 5862 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|---|
| 5863 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|---|
| 5864 | echo "configure:5865: checking for $ac_hdr" >&5
|
|---|
| 5865 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 5866 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5867 | else
|
|---|
| 5868 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5869 | #include <sys/types.h>
|
|---|
| 5870 | #line 5871 "configure"
|
|---|
| 5871 | #include "confdefs.h"
|
|---|
| 5872 | #include <$ac_hdr>
|
|---|
| 5873 | EOF
|
|---|
| 5874 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 5875 | { (eval echo configure:5876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 5876 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 5877 | if test -z "$ac_err"; then
|
|---|
| 5878 | rm -rf conftest*
|
|---|
| 5879 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 5880 | else
|
|---|
| 5881 | echo "$ac_err" >&5
|
|---|
| 5882 | echo "configure: failed program was:" >&5
|
|---|
| 5883 | cat conftest.$ac_ext >&5
|
|---|
| 5884 | rm -rf conftest*
|
|---|
| 5885 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 5886 | fi
|
|---|
| 5887 | rm -f conftest*
|
|---|
| 5888 | fi
|
|---|
| 5889 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 5890 | echo "$ac_t""yes" 1>&6
|
|---|
| 5891 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|---|
| 5892 | cat >> confdefs.h <<EOF
|
|---|
| 5893 | #define $ac_tr_hdr 1
|
|---|
| 5894 | EOF
|
|---|
| 5895 |
|
|---|
| 5896 | else
|
|---|
| 5897 | echo "$ac_t""no" 1>&6
|
|---|
| 5898 | fi
|
|---|
| 5899 | done
|
|---|
| 5900 |
|
|---|
| 5901 | for ac_hdr in dirent.h
|
|---|
| 5902 | do
|
|---|
| 5903 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|---|
| 5904 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|---|
| 5905 | echo "configure:5906: checking for $ac_hdr" >&5
|
|---|
| 5906 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 5907 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5908 | else
|
|---|
| 5909 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5910 | #include <sys/types.h>
|
|---|
| 5911 | #line 5912 "configure"
|
|---|
| 5912 | #include "confdefs.h"
|
|---|
| 5913 | #include <$ac_hdr>
|
|---|
| 5914 | EOF
|
|---|
| 5915 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 5916 | { (eval echo configure:5917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 5917 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 5918 | if test -z "$ac_err"; then
|
|---|
| 5919 | rm -rf conftest*
|
|---|
| 5920 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 5921 | else
|
|---|
| 5922 | echo "$ac_err" >&5
|
|---|
| 5923 | echo "configure: failed program was:" >&5
|
|---|
| 5924 | cat conftest.$ac_ext >&5
|
|---|
| 5925 | rm -rf conftest*
|
|---|
| 5926 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 5927 | fi
|
|---|
| 5928 | rm -f conftest*
|
|---|
| 5929 | fi
|
|---|
| 5930 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 5931 | echo "$ac_t""yes" 1>&6
|
|---|
| 5932 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|---|
| 5933 | cat >> confdefs.h <<EOF
|
|---|
| 5934 | #define $ac_tr_hdr 1
|
|---|
| 5935 | EOF
|
|---|
| 5936 |
|
|---|
| 5937 | else
|
|---|
| 5938 | echo "$ac_t""no" 1>&6
|
|---|
| 5939 | fi
|
|---|
| 5940 | done
|
|---|
| 5941 |
|
|---|
| 5942 | for ac_hdr in inttypes.h
|
|---|
| 5943 | do
|
|---|
| 5944 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|---|
| 5945 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|---|
| 5946 | echo "configure:5947: checking for $ac_hdr" >&5
|
|---|
| 5947 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 5948 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5949 | else
|
|---|
| 5950 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5951 | #include <sys/types.h>
|
|---|
| 5952 | #line 5953 "configure"
|
|---|
| 5953 | #include "confdefs.h"
|
|---|
| 5954 | #include <$ac_hdr>
|
|---|
| 5955 | EOF
|
|---|
| 5956 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 5957 | { (eval echo configure:5958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 5958 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 5959 | if test -z "$ac_err"; then
|
|---|
| 5960 | rm -rf conftest*
|
|---|
| 5961 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 5962 | else
|
|---|
| 5963 | echo "$ac_err" >&5
|
|---|
| 5964 | echo "configure: failed program was:" >&5
|
|---|
| 5965 | cat conftest.$ac_ext >&5
|
|---|
| 5966 | rm -rf conftest*
|
|---|
| 5967 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 5968 | fi
|
|---|
| 5969 | rm -f conftest*
|
|---|
| 5970 | fi
|
|---|
| 5971 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 5972 | echo "$ac_t""yes" 1>&6
|
|---|
| 5973 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|---|
| 5974 | cat >> confdefs.h <<EOF
|
|---|
| 5975 | #define $ac_tr_hdr 1
|
|---|
| 5976 | EOF
|
|---|
| 5977 |
|
|---|
| 5978 | cat >> confdefs.h <<\EOF
|
|---|
| 5979 | #define HAVE_INTTYPES_H 1
|
|---|
| 5980 | EOF
|
|---|
| 5981 |
|
|---|
| 5982 | cat >> confdefs.h <<\EOF
|
|---|
| 5983 | #define JV_HAVE_INTTYPES_H 1
|
|---|
| 5984 | EOF
|
|---|
| 5985 |
|
|---|
| 5986 |
|
|---|
| 5987 | else
|
|---|
| 5988 | echo "$ac_t""no" 1>&6
|
|---|
| 5989 | fi
|
|---|
| 5990 | done
|
|---|
| 5991 |
|
|---|
| 5992 | echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
|
|---|
| 5993 | echo "configure:5994: checking for sys/wait.h that is POSIX.1 compatible" >&5
|
|---|
| 5994 | if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
|
|---|
| 5995 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5996 | else
|
|---|
| 5997 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5998 | #line 5999 "configure"
|
|---|
| 5999 | #include "confdefs.h"
|
|---|
| 6000 | #include <sys/types.h>
|
|---|
| 6001 | #include <sys/wait.h>
|
|---|
| 6002 | #ifndef WEXITSTATUS
|
|---|
| 6003 | #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
|
|---|
| 6004 | #endif
|
|---|
| 6005 | #ifndef WIFEXITED
|
|---|
| 6006 | #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
|
|---|
| 6007 | #endif
|
|---|
| 6008 | int main() {
|
|---|
| 6009 | int s;
|
|---|
| 6010 | wait (&s);
|
|---|
| 6011 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
|
|---|
| 6012 | ; return 0; }
|
|---|
| 6013 | EOF
|
|---|
| 6014 | if { (eval echo configure:6015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 6015 | rm -rf conftest*
|
|---|
| 6016 | ac_cv_header_sys_wait_h=yes
|
|---|
| 6017 | else
|
|---|
| 6018 | echo "configure: failed program was:" >&5
|
|---|
| 6019 | cat conftest.$ac_ext >&5
|
|---|
| 6020 | rm -rf conftest*
|
|---|
| 6021 | ac_cv_header_sys_wait_h=no
|
|---|
| 6022 | fi
|
|---|
| 6023 | rm -f conftest*
|
|---|
| 6024 | fi
|
|---|
| 6025 |
|
|---|
| 6026 | echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
|
|---|
| 6027 | if test $ac_cv_header_sys_wait_h = yes; then
|
|---|
| 6028 | cat >> confdefs.h <<\EOF
|
|---|
| 6029 | #define HAVE_SYS_WAIT_H 1
|
|---|
| 6030 | EOF
|
|---|
| 6031 |
|
|---|
| 6032 | fi
|
|---|
| 6033 |
|
|---|
| 6034 |
|
|---|
| 6035 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
|---|
| 6036 | echo "configure:6037: checking for ANSI C header files" >&5
|
|---|
| 6037 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
|---|
| 6038 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6039 | else
|
|---|
| 6040 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6041 | #include <sys/types.h>
|
|---|
| 6042 | #line 6043 "configure"
|
|---|
| 6043 | #include "confdefs.h"
|
|---|
| 6044 | #include <stdlib.h>
|
|---|
| 6045 | #include <stdarg.h>
|
|---|
| 6046 | #include <string.h>
|
|---|
| 6047 | #include <float.h>
|
|---|
| 6048 | EOF
|
|---|
| 6049 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 6050 | { (eval echo configure:6051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 6051 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 6052 | if test -z "$ac_err"; then
|
|---|
| 6053 | rm -rf conftest*
|
|---|
| 6054 | ac_cv_header_stdc=yes
|
|---|
| 6055 | else
|
|---|
| 6056 | echo "$ac_err" >&5
|
|---|
| 6057 | echo "configure: failed program was:" >&5
|
|---|
| 6058 | cat conftest.$ac_ext >&5
|
|---|
| 6059 | rm -rf conftest*
|
|---|
| 6060 | ac_cv_header_stdc=no
|
|---|
| 6061 | fi
|
|---|
| 6062 | rm -f conftest*
|
|---|
| 6063 |
|
|---|
| 6064 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 6065 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|---|
| 6066 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6067 | #line 6068 "configure"
|
|---|
| 6068 | #include "confdefs.h"
|
|---|
| 6069 | #include <string.h>
|
|---|
| 6070 | EOF
|
|---|
| 6071 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 6072 | egrep "memchr" >/dev/null 2>&1; then
|
|---|
| 6073 | :
|
|---|
| 6074 | else
|
|---|
| 6075 | rm -rf conftest*
|
|---|
| 6076 | ac_cv_header_stdc=no
|
|---|
| 6077 | fi
|
|---|
| 6078 | rm -f conftest*
|
|---|
| 6079 |
|
|---|
| 6080 | fi
|
|---|
| 6081 |
|
|---|
| 6082 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 6083 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|---|
| 6084 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6085 | #line 6086 "configure"
|
|---|
| 6086 | #include "confdefs.h"
|
|---|
| 6087 | #include <stdlib.h>
|
|---|
| 6088 | EOF
|
|---|
| 6089 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 6090 | egrep "free" >/dev/null 2>&1; then
|
|---|
| 6091 | :
|
|---|
| 6092 | else
|
|---|
| 6093 | rm -rf conftest*
|
|---|
| 6094 | ac_cv_header_stdc=no
|
|---|
| 6095 | fi
|
|---|
| 6096 | rm -f conftest*
|
|---|
| 6097 |
|
|---|
| 6098 | fi
|
|---|
| 6099 |
|
|---|
| 6100 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 6101 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|---|
| 6102 | if test "$cross_compiling" = yes; then
|
|---|
| 6103 | :
|
|---|
| 6104 | else
|
|---|
| 6105 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6106 | #line 6107 "configure"
|
|---|
| 6107 | #include "confdefs.h"
|
|---|
| 6108 | #include <ctype.h>
|
|---|
| 6109 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|---|
| 6110 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|---|
| 6111 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|---|
| 6112 | int main () { int i; for (i = 0; i < 256; i++)
|
|---|
| 6113 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
|---|
| 6114 | exit (0); }
|
|---|
| 6115 |
|
|---|
| 6116 | EOF
|
|---|
| 6117 | if { (eval echo configure:6118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|---|
| 6118 | then
|
|---|
| 6119 | :
|
|---|
| 6120 | else
|
|---|
| 6121 | echo "configure: failed program was:" >&5
|
|---|
| 6122 | cat conftest.$ac_ext >&5
|
|---|
| 6123 | rm -fr conftest*
|
|---|
| 6124 | ac_cv_header_stdc=no
|
|---|
| 6125 | fi
|
|---|
| 6126 | rm -fr conftest*
|
|---|
| 6127 | fi
|
|---|
| 6128 |
|
|---|
| 6129 | fi
|
|---|
| 6130 | fi
|
|---|
| 6131 |
|
|---|
| 6132 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
|---|
| 6133 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 6134 | cat >> confdefs.h <<\EOF
|
|---|
| 6135 | #define STDC_HEADERS 1
|
|---|
| 6136 | EOF
|
|---|
| 6137 |
|
|---|
| 6138 | fi
|
|---|
| 6139 |
|
|---|
| 6140 | echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
|
|---|
| 6141 | echo "configure:6142: checking for ssize_t" >&5
|
|---|
| 6142 | if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
|
|---|
| 6143 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6144 | else
|
|---|
| 6145 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6146 | #line 6147 "configure"
|
|---|
| 6147 | #include "confdefs.h"
|
|---|
| 6148 | #include <sys/types.h>
|
|---|
| 6149 | #if STDC_HEADERS
|
|---|
| 6150 | #include <stdlib.h>
|
|---|
| 6151 | #include <stddef.h>
|
|---|
| 6152 | #endif
|
|---|
| 6153 | EOF
|
|---|
| 6154 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 6155 | egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|---|
| 6156 | rm -rf conftest*
|
|---|
| 6157 | ac_cv_type_ssize_t=yes
|
|---|
| 6158 | else
|
|---|
| 6159 | rm -rf conftest*
|
|---|
| 6160 | ac_cv_type_ssize_t=no
|
|---|
| 6161 | fi
|
|---|
| 6162 | rm -f conftest*
|
|---|
| 6163 |
|
|---|
| 6164 | fi
|
|---|
| 6165 | echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
|
|---|
| 6166 | if test $ac_cv_type_ssize_t = no; then
|
|---|
| 6167 | cat >> confdefs.h <<\EOF
|
|---|
| 6168 | #define ssize_t int
|
|---|
| 6169 | EOF
|
|---|
| 6170 |
|
|---|
| 6171 | fi
|
|---|
| 6172 |
|
|---|
| 6173 |
|
|---|
| 6174 | echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
|
|---|
| 6175 | echo "configure:6176: checking for in_addr_t" >&5
|
|---|
| 6176 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6177 | #line 6178 "configure"
|
|---|
| 6178 | #include "confdefs.h"
|
|---|
| 6179 | #include <sys/types.h>
|
|---|
| 6180 | #if STDC_HEADERS
|
|---|
| 6181 | #include <stdlib.h>
|
|---|
| 6182 | #include <stddef.h>
|
|---|
| 6183 | #endif
|
|---|
| 6184 | #if HAVE_NETINET_IN_H
|
|---|
| 6185 | #include <netinet/in.h>
|
|---|
| 6186 | #endif
|
|---|
| 6187 | int main() {
|
|---|
| 6188 | in_addr_t foo;
|
|---|
| 6189 | ; return 0; }
|
|---|
| 6190 | EOF
|
|---|
| 6191 | if { (eval echo configure:6192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 6192 | rm -rf conftest*
|
|---|
| 6193 | cat >> confdefs.h <<\EOF
|
|---|
| 6194 | #define HAVE_IN_ADDR_T 1
|
|---|
| 6195 | EOF
|
|---|
| 6196 |
|
|---|
| 6197 | echo "$ac_t""yes" 1>&6
|
|---|
| 6198 | else
|
|---|
| 6199 | echo "configure: failed program was:" >&5
|
|---|
| 6200 | cat conftest.$ac_ext >&5
|
|---|
| 6201 | rm -rf conftest*
|
|---|
| 6202 | echo "$ac_t""no" 1>&6
|
|---|
| 6203 | fi
|
|---|
| 6204 | rm -f conftest*
|
|---|
| 6205 |
|
|---|
| 6206 | echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
|
|---|
| 6207 | echo "configure:6208: checking whether struct ip_mreq is in netinet/in.h" >&5
|
|---|
| 6208 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6209 | #line 6210 "configure"
|
|---|
| 6210 | #include "confdefs.h"
|
|---|
| 6211 | #include <netinet/in.h>
|
|---|
| 6212 | int main() {
|
|---|
| 6213 | struct ip_mreq mreq;
|
|---|
| 6214 | ; return 0; }
|
|---|
| 6215 | EOF
|
|---|
| 6216 | if { (eval echo configure:6217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 6217 | rm -rf conftest*
|
|---|
| 6218 | cat >> confdefs.h <<\EOF
|
|---|
| 6219 | #define HAVE_STRUCT_IP_MREQ 1
|
|---|
| 6220 | EOF
|
|---|
| 6221 |
|
|---|
| 6222 | echo "$ac_t""yes" 1>&6
|
|---|
| 6223 | else
|
|---|
| 6224 | echo "configure: failed program was:" >&5
|
|---|
| 6225 | cat conftest.$ac_ext >&5
|
|---|
| 6226 | rm -rf conftest*
|
|---|
| 6227 | echo "$ac_t""no" 1>&6
|
|---|
| 6228 | fi
|
|---|
| 6229 | rm -f conftest*
|
|---|
| 6230 |
|
|---|
| 6231 | echo $ac_n "checking whether struct ipv6_mreq is in netinet/in.h""... $ac_c" 1>&6
|
|---|
| 6232 | echo "configure:6233: checking whether struct ipv6_mreq is in netinet/in.h" >&5
|
|---|
| 6233 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6234 | #line 6235 "configure"
|
|---|
| 6235 | #include "confdefs.h"
|
|---|
| 6236 | #include <netinet/in.h>
|
|---|
| 6237 | int main() {
|
|---|
| 6238 | struct ipv6_mreq mreq6;
|
|---|
| 6239 | ; return 0; }
|
|---|
| 6240 | EOF
|
|---|
| 6241 | if { (eval echo configure:6242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 6242 | rm -rf conftest*
|
|---|
| 6243 | cat >> confdefs.h <<\EOF
|
|---|
| 6244 | #define HAVE_STRUCT_IPV6_MREQ 1
|
|---|
| 6245 | EOF
|
|---|
| 6246 |
|
|---|
| 6247 | echo "$ac_t""yes" 1>&6
|
|---|
| 6248 | else
|
|---|
| 6249 | echo "configure: failed program was:" >&5
|
|---|
| 6250 | cat conftest.$ac_ext >&5
|
|---|
| 6251 | rm -rf conftest*
|
|---|
| 6252 | echo "$ac_t""no" 1>&6
|
|---|
| 6253 | fi
|
|---|
| 6254 | rm -f conftest*
|
|---|
| 6255 |
|
|---|
| 6256 | echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
|
|---|
| 6257 | echo "configure:6258: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
|
|---|
| 6258 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6259 | #line 6260 "configure"
|
|---|
| 6260 | #include "confdefs.h"
|
|---|
| 6261 | #include <netinet/in.h>
|
|---|
| 6262 | int main() {
|
|---|
| 6263 | struct sockaddr_in6 addr6;
|
|---|
| 6264 | ; return 0; }
|
|---|
| 6265 | EOF
|
|---|
| 6266 | if { (eval echo configure:6267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 6267 | rm -rf conftest*
|
|---|
| 6268 | cat >> confdefs.h <<\EOF
|
|---|
| 6269 | #define HAVE_INET6 1
|
|---|
| 6270 | EOF
|
|---|
| 6271 |
|
|---|
| 6272 | echo "$ac_t""yes" 1>&6
|
|---|
| 6273 | else
|
|---|
| 6274 | echo "configure: failed program was:" >&5
|
|---|
| 6275 | cat conftest.$ac_ext >&5
|
|---|
| 6276 | rm -rf conftest*
|
|---|
| 6277 | echo "$ac_t""no" 1>&6
|
|---|
| 6278 | fi
|
|---|
| 6279 | rm -f conftest*
|
|---|
| 6280 |
|
|---|
| 6281 | echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
|
|---|
| 6282 | echo "configure:6283: checking for socklen_t in sys/socket.h" >&5
|
|---|
| 6283 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6284 | #line 6285 "configure"
|
|---|
| 6285 | #include "confdefs.h"
|
|---|
| 6286 | #define _POSIX_PII_SOCKET
|
|---|
| 6287 | #include <sys/types.h>
|
|---|
| 6288 | #include <sys/socket.h>
|
|---|
| 6289 | int main() {
|
|---|
| 6290 | socklen_t x = 5;
|
|---|
| 6291 | ; return 0; }
|
|---|
| 6292 | EOF
|
|---|
| 6293 | if { (eval echo configure:6294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 6294 | rm -rf conftest*
|
|---|
| 6295 | cat >> confdefs.h <<\EOF
|
|---|
| 6296 | #define HAVE_SOCKLEN_T 1
|
|---|
| 6297 | EOF
|
|---|
| 6298 |
|
|---|
| 6299 | echo "$ac_t""yes" 1>&6
|
|---|
| 6300 | else
|
|---|
| 6301 | echo "configure: failed program was:" >&5
|
|---|
| 6302 | cat conftest.$ac_ext >&5
|
|---|
| 6303 | rm -rf conftest*
|
|---|
| 6304 | echo "$ac_t""no" 1>&6
|
|---|
| 6305 | fi
|
|---|
| 6306 | rm -f conftest*
|
|---|
| 6307 |
|
|---|
| 6308 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
|
|---|
| 6309 | echo "configure:6310: checking for tm_gmtoff in struct tm" >&5
|
|---|
| 6310 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6311 | #line 6312 "configure"
|
|---|
| 6312 | #include "confdefs.h"
|
|---|
| 6313 | #include <time.h>
|
|---|
| 6314 | int main() {
|
|---|
| 6315 | struct tm tim; tim.tm_gmtoff = 0;
|
|---|
| 6316 | ; return 0; }
|
|---|
| 6317 | EOF
|
|---|
| 6318 | if { (eval echo configure:6319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 6319 | rm -rf conftest*
|
|---|
| 6320 | cat >> confdefs.h <<\EOF
|
|---|
| 6321 | #define STRUCT_TM_HAS_GMTOFF 1
|
|---|
| 6322 | EOF
|
|---|
| 6323 |
|
|---|
| 6324 | echo "$ac_t""yes" 1>&6
|
|---|
| 6325 | else
|
|---|
| 6326 | echo "configure: failed program was:" >&5
|
|---|
| 6327 | cat conftest.$ac_ext >&5
|
|---|
| 6328 | rm -rf conftest*
|
|---|
| 6329 | echo "$ac_t""no" 1>&6
|
|---|
| 6330 | echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
|
|---|
| 6331 | echo "configure:6332: checking for global timezone variable" >&5
|
|---|
| 6332 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6333 | #line 6334 "configure"
|
|---|
| 6334 | #include "confdefs.h"
|
|---|
| 6335 | #include <time.h>
|
|---|
| 6336 | int main() {
|
|---|
| 6337 | long z2 = timezone;
|
|---|
| 6338 | ; return 0; }
|
|---|
| 6339 | EOF
|
|---|
| 6340 | if { (eval echo configure:6341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 6341 | rm -rf conftest*
|
|---|
| 6342 | cat >> confdefs.h <<\EOF
|
|---|
| 6343 | #define HAVE_TIMEZONE 1
|
|---|
| 6344 | EOF
|
|---|
| 6345 |
|
|---|
| 6346 | echo "$ac_t""yes" 1>&6
|
|---|
| 6347 | else
|
|---|
| 6348 | echo "configure: failed program was:" >&5
|
|---|
| 6349 | cat conftest.$ac_ext >&5
|
|---|
| 6350 | rm -rf conftest*
|
|---|
| 6351 | echo "$ac_t""no" 1>&6
|
|---|
| 6352 | fi
|
|---|
| 6353 | rm -f conftest*
|
|---|
| 6354 | fi
|
|---|
| 6355 | rm -f conftest*
|
|---|
| 6356 |
|
|---|
| 6357 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
|---|
| 6358 | # for constant arguments. Useless!
|
|---|
| 6359 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
|---|
| 6360 | echo "configure:6361: checking for working alloca.h" >&5
|
|---|
| 6361 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
|
|---|
| 6362 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6363 | else
|
|---|
| 6364 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6365 | #line 6366 "configure"
|
|---|
| 6366 | #include "confdefs.h"
|
|---|
| 6367 | #include <alloca.h>
|
|---|
| 6368 | int main() {
|
|---|
| 6369 | char *p = alloca(2 * sizeof(int));
|
|---|
| 6370 | ; return 0; }
|
|---|
| 6371 | EOF
|
|---|
| 6372 | if { (eval echo configure:6373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 6373 | rm -rf conftest*
|
|---|
| 6374 | ac_cv_header_alloca_h=yes
|
|---|
| 6375 | else
|
|---|
| 6376 | echo "configure: failed program was:" >&5
|
|---|
| 6377 | cat conftest.$ac_ext >&5
|
|---|
| 6378 | rm -rf conftest*
|
|---|
| 6379 | ac_cv_header_alloca_h=no
|
|---|
| 6380 | fi
|
|---|
| 6381 | rm -f conftest*
|
|---|
| 6382 | fi
|
|---|
| 6383 |
|
|---|
| 6384 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
|---|
| 6385 | if test $ac_cv_header_alloca_h = yes; then
|
|---|
| 6386 | cat >> confdefs.h <<\EOF
|
|---|
| 6387 | #define HAVE_ALLOCA_H 1
|
|---|
| 6388 | EOF
|
|---|
| 6389 |
|
|---|
| 6390 | fi
|
|---|
| 6391 |
|
|---|
| 6392 | echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
|---|
| 6393 | echo "configure:6394: checking for alloca" >&5
|
|---|
| 6394 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
|
|---|
| 6395 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6396 | else
|
|---|
| 6397 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6398 | #line 6399 "configure"
|
|---|
| 6399 | #include "confdefs.h"
|
|---|
| 6400 |
|
|---|
| 6401 | #ifdef __GNUC__
|
|---|
| 6402 | # define alloca __builtin_alloca
|
|---|
| 6403 | #else
|
|---|
| 6404 | # ifdef _MSC_VER
|
|---|
| 6405 | # include <malloc.h>
|
|---|
| 6406 | # define alloca _alloca
|
|---|
| 6407 | # else
|
|---|
| 6408 | # if HAVE_ALLOCA_H
|
|---|
| 6409 | # include <alloca.h>
|
|---|
| 6410 | # else
|
|---|
| 6411 | # ifdef _AIX
|
|---|
| 6412 | #pragma alloca
|
|---|
| 6413 | # else
|
|---|
| 6414 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
|---|
| 6415 | char *alloca ();
|
|---|
| 6416 | # endif
|
|---|
| 6417 | # endif
|
|---|
| 6418 | # endif
|
|---|
| 6419 | # endif
|
|---|
| 6420 | #endif
|
|---|
| 6421 |
|
|---|
| 6422 | int main() {
|
|---|
| 6423 | char *p = (char *) alloca(1);
|
|---|
| 6424 | ; return 0; }
|
|---|
| 6425 | EOF
|
|---|
| 6426 | if { (eval echo configure:6427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 6427 | rm -rf conftest*
|
|---|
| 6428 | ac_cv_func_alloca_works=yes
|
|---|
| 6429 | else
|
|---|
| 6430 | echo "configure: failed program was:" >&5
|
|---|
| 6431 | cat conftest.$ac_ext >&5
|
|---|
| 6432 | rm -rf conftest*
|
|---|
| 6433 | ac_cv_func_alloca_works=no
|
|---|
| 6434 | fi
|
|---|
| 6435 | rm -f conftest*
|
|---|
| 6436 | fi
|
|---|
| 6437 |
|
|---|
| 6438 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
|---|
| 6439 | if test $ac_cv_func_alloca_works = yes; then
|
|---|
| 6440 | cat >> confdefs.h <<\EOF
|
|---|
| 6441 | #define HAVE_ALLOCA 1
|
|---|
| 6442 | EOF
|
|---|
| 6443 |
|
|---|
| 6444 | fi
|
|---|
| 6445 |
|
|---|
| 6446 | if test $ac_cv_func_alloca_works = no; then
|
|---|
| 6447 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
|---|
| 6448 | # that cause trouble. Some versions do not even contain alloca or
|
|---|
| 6449 | # contain a buggy version. If you still want to use their alloca,
|
|---|
| 6450 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
|---|
| 6451 | ALLOCA=alloca.${ac_objext}
|
|---|
| 6452 | cat >> confdefs.h <<\EOF
|
|---|
| 6453 | #define C_ALLOCA 1
|
|---|
| 6454 | EOF
|
|---|
| 6455 |
|
|---|
| 6456 |
|
|---|
| 6457 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
|---|
| 6458 | echo "configure:6459: checking whether alloca needs Cray hooks" >&5
|
|---|
| 6459 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
|
|---|
| 6460 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6461 | else
|
|---|
| 6462 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6463 | #line 6464 "configure"
|
|---|
| 6464 | #include "confdefs.h"
|
|---|
| 6465 | #if defined(CRAY) && ! defined(CRAY2)
|
|---|
| 6466 | webecray
|
|---|
| 6467 | #else
|
|---|
| 6468 | wenotbecray
|
|---|
| 6469 | #endif
|
|---|
| 6470 |
|
|---|
| 6471 | EOF
|
|---|
| 6472 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 6473 | egrep "webecray" >/dev/null 2>&1; then
|
|---|
| 6474 | rm -rf conftest*
|
|---|
| 6475 | ac_cv_os_cray=yes
|
|---|
| 6476 | else
|
|---|
| 6477 | rm -rf conftest*
|
|---|
| 6478 | ac_cv_os_cray=no
|
|---|
| 6479 | fi
|
|---|
| 6480 | rm -f conftest*
|
|---|
| 6481 |
|
|---|
| 6482 | fi
|
|---|
| 6483 |
|
|---|
| 6484 | echo "$ac_t""$ac_cv_os_cray" 1>&6
|
|---|
| 6485 | if test $ac_cv_os_cray = yes; then
|
|---|
| 6486 | for ac_func in _getb67 GETB67 getb67; do
|
|---|
| 6487 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 6488 | echo "configure:6489: checking for $ac_func" >&5
|
|---|
| 6489 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 6490 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6491 | else
|
|---|
| 6492 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6493 | #line 6494 "configure"
|
|---|
| 6494 | #include "confdefs.h"
|
|---|
| 6495 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 6496 | which can conflict with char $ac_func(); below. */
|
|---|
| 6497 | #include <assert.h>
|
|---|
| 6498 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 6499 | /* We use char because int might match the return type of a gcc2
|
|---|
| 6500 | builtin and then its argument prototype would still apply. */
|
|---|
| 6501 | char $ac_func();
|
|---|
| 6502 |
|
|---|
| 6503 | int main() {
|
|---|
| 6504 |
|
|---|
| 6505 | /* The GNU C library defines this for functions which it implements
|
|---|
| 6506 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 6507 | something starting with __ and the normal name is an alias. */
|
|---|
| 6508 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 6509 | choke me
|
|---|
| 6510 | #else
|
|---|
| 6511 | $ac_func();
|
|---|
| 6512 | #endif
|
|---|
| 6513 |
|
|---|
| 6514 | ; return 0; }
|
|---|
| 6515 | EOF
|
|---|
| 6516 | if { (eval echo configure:6517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 6517 | rm -rf conftest*
|
|---|
| 6518 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 6519 | else
|
|---|
| 6520 | echo "configure: failed program was:" >&5
|
|---|
| 6521 | cat conftest.$ac_ext >&5
|
|---|
| 6522 | rm -rf conftest*
|
|---|
| 6523 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 6524 | fi
|
|---|
| 6525 | rm -f conftest*
|
|---|
| 6526 | fi
|
|---|
| 6527 |
|
|---|
| 6528 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 6529 | echo "$ac_t""yes" 1>&6
|
|---|
| 6530 | cat >> confdefs.h <<EOF
|
|---|
| 6531 | #define CRAY_STACKSEG_END $ac_func
|
|---|
| 6532 | EOF
|
|---|
| 6533 |
|
|---|
| 6534 | break
|
|---|
| 6535 | else
|
|---|
| 6536 | echo "$ac_t""no" 1>&6
|
|---|
| 6537 | fi
|
|---|
| 6538 |
|
|---|
| 6539 | done
|
|---|
| 6540 | fi
|
|---|
| 6541 |
|
|---|
| 6542 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
|---|
| 6543 | echo "configure:6544: checking stack direction for C alloca" >&5
|
|---|
| 6544 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
|
|---|
| 6545 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6546 | else
|
|---|
| 6547 | if test "$cross_compiling" = yes; then
|
|---|
| 6548 | ac_cv_c_stack_direction=0
|
|---|
| 6549 | else
|
|---|
| 6550 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6551 | #line 6552 "configure"
|
|---|
| 6552 | #include "confdefs.h"
|
|---|
| 6553 | find_stack_direction ()
|
|---|
| 6554 | {
|
|---|
| 6555 | static char *addr = 0;
|
|---|
| 6556 | auto char dummy;
|
|---|
| 6557 | if (addr == 0)
|
|---|
| 6558 | {
|
|---|
| 6559 | addr = &dummy;
|
|---|
| 6560 | return find_stack_direction ();
|
|---|
| 6561 | }
|
|---|
| 6562 | else
|
|---|
| 6563 | return (&dummy > addr) ? 1 : -1;
|
|---|
| 6564 | }
|
|---|
| 6565 | main ()
|
|---|
| 6566 | {
|
|---|
| 6567 | exit (find_stack_direction() < 0);
|
|---|
| 6568 | }
|
|---|
| 6569 | EOF
|
|---|
| 6570 | if { (eval echo configure:6571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|---|
| 6571 | then
|
|---|
| 6572 | ac_cv_c_stack_direction=1
|
|---|
| 6573 | else
|
|---|
| 6574 | echo "configure: failed program was:" >&5
|
|---|
| 6575 | cat conftest.$ac_ext >&5
|
|---|
| 6576 | rm -fr conftest*
|
|---|
| 6577 | ac_cv_c_stack_direction=-1
|
|---|
| 6578 | fi
|
|---|
| 6579 | rm -fr conftest*
|
|---|
| 6580 | fi
|
|---|
| 6581 |
|
|---|
| 6582 | fi
|
|---|
| 6583 |
|
|---|
| 6584 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
|---|
| 6585 | cat >> confdefs.h <<EOF
|
|---|
| 6586 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
|---|
| 6587 | EOF
|
|---|
| 6588 |
|
|---|
| 6589 | fi
|
|---|
| 6590 |
|
|---|
| 6591 |
|
|---|
| 6592 | for ac_prog in perl
|
|---|
| 6593 | do
|
|---|
| 6594 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|---|
| 6595 | set dummy $ac_prog; ac_word=$2
|
|---|
| 6596 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 6597 | echo "configure:6598: checking for $ac_word" >&5
|
|---|
| 6598 | if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
|
|---|
| 6599 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6600 | else
|
|---|
| 6601 | if test -n "$PERL"; then
|
|---|
| 6602 | ac_cv_prog_PERL="$PERL" # Let the user override the test.
|
|---|
| 6603 | else
|
|---|
| 6604 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 6605 | ac_dummy="$PATH"
|
|---|
| 6606 | for ac_dir in $ac_dummy; do
|
|---|
| 6607 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 6608 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 6609 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 6610 | ac_cv_prog_PERL="$ac_prog"
|
|---|
| 6611 | break
|
|---|
| 6612 | fi
|
|---|
| 6613 | done
|
|---|
| 6614 | IFS="$ac_save_ifs"
|
|---|
| 6615 | fi
|
|---|
| 6616 | fi
|
|---|
| 6617 | PERL="$ac_cv_prog_PERL"
|
|---|
| 6618 | if test -n "$PERL"; then
|
|---|
| 6619 | echo "$ac_t""$PERL" 1>&6
|
|---|
| 6620 | else
|
|---|
| 6621 | echo "$ac_t""no" 1>&6
|
|---|
| 6622 | fi
|
|---|
| 6623 |
|
|---|
| 6624 | test -n "$PERL" && break
|
|---|
| 6625 | done
|
|---|
| 6626 | test -n "$PERL" || PERL="false"
|
|---|
| 6627 |
|
|---|
| 6628 |
|
|---|
| 6629 | SYSDEP_SOURCES=
|
|---|
| 6630 |
|
|---|
| 6631 | case "${host}" in
|
|---|
| 6632 | i?86-*-linux*)
|
|---|
| 6633 | SIGNAL_HANDLER=include/i386-signal.h
|
|---|
| 6634 | ;;
|
|---|
| 6635 | sparc*-sun-solaris*)
|
|---|
| 6636 | SIGNAL_HANDLER=include/sparc-signal.h
|
|---|
| 6637 | ;;
|
|---|
| 6638 | # ia64-*)
|
|---|
| 6639 | # SYSDEP_SOURCES=sysdep/ia64.c
|
|---|
| 6640 | # test -d sysdep || mkdir sysdep
|
|---|
| 6641 | # ;;
|
|---|
| 6642 | ia64-*-linux*)
|
|---|
| 6643 | SIGNAL_HANDLER=include/dwarf2-signal.h
|
|---|
| 6644 | ;;
|
|---|
| 6645 | powerpc-*-linux*)
|
|---|
| 6646 | SIGNAL_HANDLER=include/dwarf2-signal.h
|
|---|
| 6647 | ;;
|
|---|
| 6648 | alpha*-*-linux*)
|
|---|
| 6649 | SIGNAL_HANDLER=include/dwarf2-signal.h
|
|---|
| 6650 | ;;
|
|---|
| 6651 | sparc*-*-linux*)
|
|---|
| 6652 | SIGNAL_HANDLER=include/dwarf2-signal.h
|
|---|
| 6653 | ;;
|
|---|
| 6654 | *mingw*)
|
|---|
| 6655 | SIGNAL_HANDLER=include/win32-signal.h
|
|---|
| 6656 | ;;
|
|---|
| 6657 | *)
|
|---|
| 6658 | SIGNAL_HANDLER=include/default-signal.h
|
|---|
| 6659 | ;;
|
|---|
| 6660 | esac
|
|---|
| 6661 |
|
|---|
| 6662 | # If we're using sjlj exceptions, forget what we just learned.
|
|---|
| 6663 | if test "$enable_sjlj_exceptions" = yes; then
|
|---|
| 6664 | SIGNAL_HANDLER=include/default-signal.h
|
|---|
| 6665 | fi
|
|---|
| 6666 |
|
|---|
| 6667 |
|
|---|
| 6668 |
|
|---|
| 6669 |
|
|---|
| 6670 |
|
|---|
| 6671 | if test "${multilib}" = "yes"; then
|
|---|
| 6672 | multilib_arg="--enable-multilib"
|
|---|
| 6673 | else
|
|---|
| 6674 | multilib_arg=
|
|---|
| 6675 | fi
|
|---|
| 6676 |
|
|---|
| 6677 | # If we find X, set shell vars x_includes and x_libraries to the
|
|---|
| 6678 | # paths, otherwise set no_x=yes.
|
|---|
| 6679 | # Uses ac_ vars as temps to allow command line to override cache and checks.
|
|---|
| 6680 | # --without-x overrides everything else, but does not touch the cache.
|
|---|
| 6681 | echo $ac_n "checking for X""... $ac_c" 1>&6
|
|---|
| 6682 | echo "configure:6683: checking for X" >&5
|
|---|
| 6683 |
|
|---|
| 6684 | # Check whether --with-x or --without-x was given.
|
|---|
| 6685 | if test "${with_x+set}" = set; then
|
|---|
| 6686 | withval="$with_x"
|
|---|
| 6687 | :
|
|---|
| 6688 | fi
|
|---|
| 6689 |
|
|---|
| 6690 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
|
|---|
| 6691 | if test "x$with_x" = xno; then
|
|---|
| 6692 | # The user explicitly disabled X.
|
|---|
| 6693 | have_x=disabled
|
|---|
| 6694 | else
|
|---|
| 6695 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
|
|---|
| 6696 | # Both variables are already set.
|
|---|
| 6697 | have_x=yes
|
|---|
| 6698 | else
|
|---|
| 6699 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
|
|---|
| 6700 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6701 | else
|
|---|
| 6702 | # One or both of the vars are not set, and there is no cached value.
|
|---|
| 6703 | ac_x_includes=NO ac_x_libraries=NO
|
|---|
| 6704 | rm -fr conftestdir
|
|---|
| 6705 | if mkdir conftestdir; then
|
|---|
| 6706 | cd conftestdir
|
|---|
| 6707 | # Make sure to not put "make" in the Imakefile rules, since we grep it out.
|
|---|
| 6708 | cat > Imakefile <<'EOF'
|
|---|
| 6709 | acfindx:
|
|---|
| 6710 | @sh -c 'echo \'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${DESTDIR}${USRLIBDIR}"; ac_im_libdir="${DESTDIR}${LIBDIR}"\''
|
|---|
| 6711 | EOF
|
|---|
| 6712 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
|
|---|
| 6713 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|---|
| 6714 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
|
|---|
| 6715 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
|
|---|
| 6716 | for ac_extension in a so sl; do
|
|---|
| 6717 | if test ! -f $ac_im_usrlibdir/${ac_cv_libpre}X11.$ac_extension &&
|
|---|
| 6718 | test -f $ac_im_libdir/${ac_cv_libpre}X11.$ac_extension; then
|
|---|
| 6719 | ac_im_usrlibdir=$ac_im_libdir; break
|
|---|
| 6720 | fi
|
|---|
| 6721 | done
|
|---|
| 6722 | # Screen out bogus values from the imake configuration. They are
|
|---|
| 6723 | # bogus both because they are the default anyway, and because
|
|---|
| 6724 | # using them would break gcc on systems where it needs fixed includes.
|
|---|
| 6725 | case "$ac_im_incroot" in
|
|---|
| 6726 | /usr/include) ;;
|
|---|
| 6727 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
|
|---|
| 6728 | esac
|
|---|
| 6729 | case "$ac_im_usrlibdir" in
|
|---|
| 6730 | /usr/lib | /lib) ;;
|
|---|
| 6731 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
|
|---|
| 6732 | esac
|
|---|
| 6733 | fi
|
|---|
| 6734 | cd ..
|
|---|
| 6735 | rm -fr conftestdir
|
|---|
| 6736 | fi
|
|---|
| 6737 |
|
|---|
| 6738 | if test "$ac_x_includes" = NO; then
|
|---|
| 6739 | # Guess where to find include files, by looking for this one X11 .h file.
|
|---|
| 6740 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
|
|---|
| 6741 |
|
|---|
| 6742 | # First, try using that file with no special directory specified.
|
|---|
| 6743 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6744 | #include <sys/types.h>
|
|---|
| 6745 | #line 6746 "configure"
|
|---|
| 6746 | #include "confdefs.h"
|
|---|
| 6747 | #include <$x_direct_test_include>
|
|---|
| 6748 | EOF
|
|---|
| 6749 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 6750 | { (eval echo configure:6751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 6751 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 6752 | if test -z "$ac_err"; then
|
|---|
| 6753 | rm -rf conftest*
|
|---|
| 6754 | # We can compile using X headers with no special include directory.
|
|---|
| 6755 | ac_x_includes=
|
|---|
| 6756 | else
|
|---|
| 6757 | echo "$ac_err" >&5
|
|---|
| 6758 | echo "configure: failed program was:" >&5
|
|---|
| 6759 | cat conftest.$ac_ext >&5
|
|---|
| 6760 | rm -rf conftest*
|
|---|
| 6761 | # Look for the header file in a standard set of common directories.
|
|---|
| 6762 | # Check X11 before X11Rn because it is often a symlink to the current release.
|
|---|
| 6763 | for ac_dir in \
|
|---|
| 6764 | /usr/X11/include \
|
|---|
| 6765 | /usr/X11R6/include \
|
|---|
| 6766 | /usr/X11R5/include \
|
|---|
| 6767 | /usr/X11R4/include \
|
|---|
| 6768 | \
|
|---|
| 6769 | /usr/include/X11 \
|
|---|
| 6770 | /usr/include/X11R6 \
|
|---|
| 6771 | /usr/include/X11R5 \
|
|---|
| 6772 | /usr/include/X11R4 \
|
|---|
| 6773 | \
|
|---|
| 6774 | /usr/local/X11/include \
|
|---|
| 6775 | /usr/local/X11R6/include \
|
|---|
| 6776 | /usr/local/X11R5/include \
|
|---|
| 6777 | /usr/local/X11R4/include \
|
|---|
| 6778 | \
|
|---|
| 6779 | /usr/local/include/X11 \
|
|---|
| 6780 | /usr/local/include/X11R6 \
|
|---|
| 6781 | /usr/local/include/X11R5 \
|
|---|
| 6782 | /usr/local/include/X11R4 \
|
|---|
| 6783 | \
|
|---|
| 6784 | /usr/X386/include \
|
|---|
| 6785 | /usr/x386/include \
|
|---|
| 6786 | /usr/XFree86/include/X11 \
|
|---|
| 6787 | \
|
|---|
| 6788 | /usr/include \
|
|---|
| 6789 | /usr/local/include \
|
|---|
| 6790 | /usr/unsupported/include \
|
|---|
| 6791 | /usr/athena/include \
|
|---|
| 6792 | /usr/local/x11r5/include \
|
|---|
| 6793 | /usr/lpp/Xamples/include \
|
|---|
| 6794 | \
|
|---|
| 6795 | /usr/openwin/include \
|
|---|
| 6796 | /usr/openwin/share/include \
|
|---|
| 6797 | ; \
|
|---|
| 6798 | do
|
|---|
| 6799 | if test -r "$ac_dir/$x_direct_test_include"; then
|
|---|
| 6800 | ac_x_includes=$ac_dir
|
|---|
| 6801 | break
|
|---|
| 6802 | fi
|
|---|
| 6803 | done
|
|---|
| 6804 | fi
|
|---|
| 6805 | rm -f conftest*
|
|---|
| 6806 | fi # $ac_x_includes = NO
|
|---|
| 6807 |
|
|---|
| 6808 | if test "$ac_x_libraries" = NO; then
|
|---|
| 6809 | # Check for the libraries.
|
|---|
| 6810 |
|
|---|
| 6811 | test -z "$x_direct_test_library" && x_direct_test_library=Xt
|
|---|
| 6812 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
|
|---|
| 6813 |
|
|---|
| 6814 | # See if we find them without any special options.
|
|---|
| 6815 | # Don't add to $LIBS permanently.
|
|---|
| 6816 | ac_save_LIBS="$LIBS"
|
|---|
| 6817 | LIBS="-l$x_direct_test_library $LIBS"
|
|---|
| 6818 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6819 | #line 6820 "configure"
|
|---|
| 6820 | #include "confdefs.h"
|
|---|
| 6821 |
|
|---|
| 6822 | int main() {
|
|---|
| 6823 | ${x_direct_test_function}()
|
|---|
| 6824 | ; return 0; }
|
|---|
| 6825 | EOF
|
|---|
| 6826 | if { (eval echo configure:6827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 6827 | rm -rf conftest*
|
|---|
| 6828 | LIBS="$ac_save_LIBS"
|
|---|
| 6829 | # We can link X programs with no special library path.
|
|---|
| 6830 | ac_x_libraries=
|
|---|
| 6831 | else
|
|---|
| 6832 | echo "configure: failed program was:" >&5
|
|---|
| 6833 | cat conftest.$ac_ext >&5
|
|---|
| 6834 | rm -rf conftest*
|
|---|
| 6835 | LIBS="$ac_save_LIBS"
|
|---|
| 6836 | # First see if replacing the include by lib works.
|
|---|
| 6837 | # Check X11 before X11Rn because it is often a symlink to the current release.
|
|---|
| 6838 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
|
|---|
| 6839 | /usr/X11/lib \
|
|---|
| 6840 | /usr/X11R6/lib \
|
|---|
| 6841 | /usr/X11R5/lib \
|
|---|
| 6842 | /usr/X11R4/lib \
|
|---|
| 6843 | \
|
|---|
| 6844 | /usr/lib/X11 \
|
|---|
| 6845 | /usr/lib/X11R6 \
|
|---|
| 6846 | /usr/lib/X11R5 \
|
|---|
| 6847 | /usr/lib/X11R4 \
|
|---|
| 6848 | \
|
|---|
| 6849 | /usr/local/X11/lib \
|
|---|
| 6850 | /usr/local/X11R6/lib \
|
|---|
| 6851 | /usr/local/X11R5/lib \
|
|---|
| 6852 | /usr/local/X11R4/lib \
|
|---|
| 6853 | \
|
|---|
| 6854 | /usr/local/lib/X11 \
|
|---|
| 6855 | /usr/local/lib/X11R6 \
|
|---|
| 6856 | /usr/local/lib/X11R5 \
|
|---|
| 6857 | /usr/local/lib/X11R4 \
|
|---|
| 6858 | \
|
|---|
| 6859 | /usr/X386/lib \
|
|---|
| 6860 | /usr/x386/lib \
|
|---|
| 6861 | /usr/XFree86/lib/X11 \
|
|---|
| 6862 | \
|
|---|
| 6863 | /usr/lib \
|
|---|
| 6864 | /usr/local/lib \
|
|---|
| 6865 | /usr/unsupported/lib \
|
|---|
| 6866 | /usr/athena/lib \
|
|---|
| 6867 | /usr/local/x11r5/lib \
|
|---|
| 6868 | /usr/lpp/Xamples/lib \
|
|---|
| 6869 | /lib/usr/lib/X11 \
|
|---|
| 6870 | \
|
|---|
| 6871 | /usr/openwin/lib \
|
|---|
| 6872 | /usr/openwin/share/lib \
|
|---|
| 6873 | ; \
|
|---|
| 6874 | do
|
|---|
| 6875 | for ac_extension in a so sl; do
|
|---|
| 6876 | if test -r $ac_dir/${ac_cv_libpre}${x_direct_test_library}.$ac_extension; then
|
|---|
| 6877 | ac_x_libraries=$ac_dir
|
|---|
| 6878 | break 2
|
|---|
| 6879 | fi
|
|---|
| 6880 | done
|
|---|
| 6881 | done
|
|---|
| 6882 | fi
|
|---|
| 6883 | rm -f conftest*
|
|---|
| 6884 | fi # $ac_x_libraries = NO
|
|---|
| 6885 |
|
|---|
| 6886 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
|
|---|
| 6887 | # Didn't find X anywhere. Cache the known absence of X.
|
|---|
| 6888 | ac_cv_have_x="have_x=no"
|
|---|
| 6889 | else
|
|---|
| 6890 | # Record where we found X for the cache.
|
|---|
| 6891 | ac_cv_have_x="have_x=yes \
|
|---|
| 6892 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
|
|---|
| 6893 | fi
|
|---|
| 6894 | fi
|
|---|
| 6895 | fi
|
|---|
| 6896 | eval "$ac_cv_have_x"
|
|---|
| 6897 | fi # $with_x != no
|
|---|
| 6898 |
|
|---|
| 6899 | if test "$have_x" != yes; then
|
|---|
| 6900 | echo "$ac_t""$have_x" 1>&6
|
|---|
| 6901 | no_x=yes
|
|---|
| 6902 | else
|
|---|
| 6903 | # If each of the values was on the command line, it overrides each guess.
|
|---|
| 6904 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes
|
|---|
| 6905 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
|
|---|
| 6906 | # Update the cache value to reflect the command line values.
|
|---|
| 6907 | ac_cv_have_x="have_x=yes \
|
|---|
| 6908 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
|
|---|
| 6909 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
|
|---|
| 6910 | fi
|
|---|
| 6911 |
|
|---|
| 6912 | if test "$no_x" = yes; then
|
|---|
| 6913 | # Not all programs may use this symbol, but it does not hurt to define it.
|
|---|
| 6914 | cat >> confdefs.h <<\EOF
|
|---|
| 6915 | #define X_DISPLAY_MISSING 1
|
|---|
| 6916 | EOF
|
|---|
| 6917 |
|
|---|
| 6918 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
|
|---|
| 6919 | else
|
|---|
| 6920 | if test -n "$x_includes"; then
|
|---|
| 6921 | X_CFLAGS="$X_CFLAGS -I$x_includes"
|
|---|
| 6922 | fi
|
|---|
| 6923 | test -n "$x_includes" && CPPFLAGS="$CPPFLAGS -I$x_includes"
|
|---|
| 6924 |
|
|---|
| 6925 | # It would also be nice to do this for all -L options, not just this one.
|
|---|
| 6926 | if test -n "$x_libraries"; then
|
|---|
| 6927 | X_LIBS="$X_LIBS -L$x_libraries"
|
|---|
| 6928 | # For Solaris; some versions of Sun CC require a space after -R and
|
|---|
| 6929 | # others require no space. Words are not sufficient . . . .
|
|---|
| 6930 | case "`(uname -sr) 2>/dev/null`" in
|
|---|
| 6931 | "SunOS 5"*)
|
|---|
| 6932 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
|
|---|
| 6933 | echo "configure:6934: checking whether -R must be followed by a space" >&5
|
|---|
| 6934 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
|
|---|
| 6935 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6936 | #line 6937 "configure"
|
|---|
| 6937 | #include "confdefs.h"
|
|---|
| 6938 |
|
|---|
| 6939 | int main() {
|
|---|
| 6940 |
|
|---|
| 6941 | ; return 0; }
|
|---|
| 6942 | EOF
|
|---|
| 6943 | if { (eval echo configure:6944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 6944 | rm -rf conftest*
|
|---|
| 6945 | ac_R_nospace=yes
|
|---|
| 6946 | else
|
|---|
| 6947 | echo "configure: failed program was:" >&5
|
|---|
| 6948 | cat conftest.$ac_ext >&5
|
|---|
| 6949 | rm -rf conftest*
|
|---|
| 6950 | ac_R_nospace=no
|
|---|
| 6951 | fi
|
|---|
| 6952 | rm -f conftest*
|
|---|
| 6953 | if test $ac_R_nospace = yes; then
|
|---|
| 6954 | echo "$ac_t""no" 1>&6
|
|---|
| 6955 | X_LIBS="$X_LIBS -R$x_libraries"
|
|---|
| 6956 | else
|
|---|
| 6957 | LIBS="$ac_xsave_LIBS -R $x_libraries"
|
|---|
| 6958 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6959 | #line 6960 "configure"
|
|---|
| 6960 | #include "confdefs.h"
|
|---|
| 6961 |
|
|---|
| 6962 | int main() {
|
|---|
| 6963 |
|
|---|
| 6964 | ; return 0; }
|
|---|
| 6965 | EOF
|
|---|
| 6966 | if { (eval echo configure:6967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 6967 | rm -rf conftest*
|
|---|
| 6968 | ac_R_space=yes
|
|---|
| 6969 | else
|
|---|
| 6970 | echo "configure: failed program was:" >&5
|
|---|
| 6971 | cat conftest.$ac_ext >&5
|
|---|
| 6972 | rm -rf conftest*
|
|---|
| 6973 | ac_R_space=no
|
|---|
| 6974 | fi
|
|---|
| 6975 | rm -f conftest*
|
|---|
| 6976 | if test $ac_R_space = yes; then
|
|---|
| 6977 | echo "$ac_t""yes" 1>&6
|
|---|
| 6978 | X_LIBS="$X_LIBS -R $x_libraries"
|
|---|
| 6979 | else
|
|---|
| 6980 | echo "$ac_t""neither works" 1>&6
|
|---|
| 6981 | fi
|
|---|
| 6982 | fi
|
|---|
| 6983 | LIBS="$ac_xsave_LIBS"
|
|---|
| 6984 | esac
|
|---|
| 6985 | fi
|
|---|
| 6986 |
|
|---|
| 6987 | # Check for system-dependent libraries X programs must link with.
|
|---|
| 6988 | # Do this before checking for the system-independent R6 libraries
|
|---|
| 6989 | # (-lICE), since we may need -lsocket or whatever for X linking.
|
|---|
| 6990 |
|
|---|
| 6991 | if test "$ISC" = yes; then
|
|---|
| 6992 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
|
|---|
| 6993 | else
|
|---|
| 6994 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
|
|---|
| 6995 | # libraries were built with DECnet support. And karl@cs.umb.edu says
|
|---|
| 6996 | # the Alpha needs dnet_stub (dnet does not exist).
|
|---|
| 6997 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
|
|---|
| 6998 | echo "configure:6999: checking for dnet_ntoa in -ldnet" >&5
|
|---|
| 6999 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
|
|---|
| 7000 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 7001 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 7002 | else
|
|---|
| 7003 | ac_save_LIBS="$LIBS"
|
|---|
| 7004 | LIBS="-ldnet $LIBS"
|
|---|
| 7005 | cat > conftest.$ac_ext <<EOF
|
|---|
| 7006 | #line 7007 "configure"
|
|---|
| 7007 | #include "confdefs.h"
|
|---|
| 7008 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 7009 | /* We use char because int might match the return type of a gcc2
|
|---|
| 7010 | builtin and then its argument prototype would still apply. */
|
|---|
| 7011 | char dnet_ntoa();
|
|---|
| 7012 |
|
|---|
| 7013 | int main() {
|
|---|
| 7014 | dnet_ntoa()
|
|---|
| 7015 | ; return 0; }
|
|---|
| 7016 | EOF
|
|---|
| 7017 | if { (eval echo configure:7018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 7018 | rm -rf conftest*
|
|---|
| 7019 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 7020 | else
|
|---|
| 7021 | echo "configure: failed program was:" >&5
|
|---|
| 7022 | cat conftest.$ac_ext >&5
|
|---|
| 7023 | rm -rf conftest*
|
|---|
| 7024 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 7025 | fi
|
|---|
| 7026 | rm -f conftest*
|
|---|
| 7027 | LIBS="$ac_save_LIBS"
|
|---|
| 7028 |
|
|---|
| 7029 | fi
|
|---|
| 7030 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 7031 | echo "$ac_t""yes" 1>&6
|
|---|
| 7032 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
|
|---|
| 7033 | else
|
|---|
| 7034 | echo "$ac_t""no" 1>&6
|
|---|
| 7035 | fi
|
|---|
| 7036 |
|
|---|
| 7037 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then
|
|---|
| 7038 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
|
|---|
| 7039 | echo "configure:7040: checking for dnet_ntoa in -ldnet_stub" >&5
|
|---|
| 7040 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
|
|---|
| 7041 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 7042 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 7043 | else
|
|---|
| 7044 | ac_save_LIBS="$LIBS"
|
|---|
| 7045 | LIBS="-ldnet_stub $LIBS"
|
|---|
| 7046 | cat > conftest.$ac_ext <<EOF
|
|---|
| 7047 | #line 7048 "configure"
|
|---|
| 7048 | #include "confdefs.h"
|
|---|
| 7049 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 7050 | /* We use char because int might match the return type of a gcc2
|
|---|
| 7051 | builtin and then its argument prototype would still apply. */
|
|---|
| 7052 | char dnet_ntoa();
|
|---|
| 7053 |
|
|---|
| 7054 | int main() {
|
|---|
| 7055 | dnet_ntoa()
|
|---|
| 7056 | ; return 0; }
|
|---|
| 7057 | EOF
|
|---|
| 7058 | if { (eval echo configure:7059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 7059 | rm -rf conftest*
|
|---|
| 7060 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 7061 | else
|
|---|
| 7062 | echo "configure: failed program was:" >&5
|
|---|
| 7063 | cat conftest.$ac_ext >&5
|
|---|
| 7064 | rm -rf conftest*
|
|---|
| 7065 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 7066 | fi
|
|---|
| 7067 | rm -f conftest*
|
|---|
| 7068 | LIBS="$ac_save_LIBS"
|
|---|
| 7069 |
|
|---|
| 7070 | fi
|
|---|
| 7071 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 7072 | echo "$ac_t""yes" 1>&6
|
|---|
| 7073 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
|
|---|
| 7074 | else
|
|---|
| 7075 | echo "$ac_t""no" 1>&6
|
|---|
| 7076 | fi
|
|---|
| 7077 |
|
|---|
| 7078 | fi
|
|---|
| 7079 |
|
|---|
| 7080 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
|
|---|
| 7081 | # to get the SysV transport functions.
|
|---|
| 7082 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
|
|---|
| 7083 | # needs -lnsl.
|
|---|
| 7084 | # The nsl library prevents programs from opening the X display
|
|---|
| 7085 | # on Irix 5.2, according to dickey@clark.net.
|
|---|
| 7086 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
|
|---|
| 7087 | echo "configure:7088: checking for gethostbyname" >&5
|
|---|
| 7088 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
|
|---|
| 7089 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 7090 | else
|
|---|
| 7091 | cat > conftest.$ac_ext <<EOF
|
|---|
| 7092 | #line 7093 "configure"
|
|---|
| 7093 | #include "confdefs.h"
|
|---|
| 7094 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 7095 | which can conflict with char gethostbyname(); below. */
|
|---|
| 7096 | #include <assert.h>
|
|---|
| 7097 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 7098 | /* We use char because int might match the return type of a gcc2
|
|---|
| 7099 | builtin and then its argument prototype would still apply. */
|
|---|
| 7100 | char gethostbyname();
|
|---|
| 7101 |
|
|---|
| 7102 | int main() {
|
|---|
| 7103 |
|
|---|
| 7104 | /* The GNU C library defines this for functions which it implements
|
|---|
| 7105 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 7106 | something starting with __ and the normal name is an alias. */
|
|---|
| 7107 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
|
|---|
| 7108 | choke me
|
|---|
| 7109 | #else
|
|---|
| 7110 | gethostbyname();
|
|---|
| 7111 | #endif
|
|---|
| 7112 |
|
|---|
| 7113 | ; return 0; }
|
|---|
| 7114 | EOF
|
|---|
| 7115 | if { (eval echo configure:7116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 7116 | rm -rf conftest*
|
|---|
| 7117 | eval "ac_cv_func_gethostbyname=yes"
|
|---|
| 7118 | else
|
|---|
| 7119 | echo "configure: failed program was:" >&5
|
|---|
| 7120 | cat conftest.$ac_ext >&5
|
|---|
| 7121 | rm -rf conftest*
|
|---|
| 7122 | eval "ac_cv_func_gethostbyname=no"
|
|---|
| 7123 | fi
|
|---|
| 7124 | rm -f conftest*
|
|---|
| 7125 | fi
|
|---|
| 7126 |
|
|---|
| 7127 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
|
|---|
| 7128 | echo "$ac_t""yes" 1>&6
|
|---|
| 7129 | :
|
|---|
| 7130 | else
|
|---|
| 7131 | echo "$ac_t""no" 1>&6
|
|---|
| 7132 | fi
|
|---|
| 7133 |
|
|---|
| 7134 | if test $ac_cv_func_gethostbyname = no; then
|
|---|
| 7135 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
|
|---|
| 7136 | echo "configure:7137: checking for gethostbyname in -lnsl" >&5
|
|---|
| 7137 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
|
|---|
| 7138 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 7139 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 7140 | else
|
|---|
| 7141 | ac_save_LIBS="$LIBS"
|
|---|
| 7142 | LIBS="-lnsl $LIBS"
|
|---|
| 7143 | cat > conftest.$ac_ext <<EOF
|
|---|
| 7144 | #line 7145 "configure"
|
|---|
| 7145 | #include "confdefs.h"
|
|---|
| 7146 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 7147 | /* We use char because int might match the return type of a gcc2
|
|---|
| 7148 | builtin and then its argument prototype would still apply. */
|
|---|
| 7149 | char gethostbyname();
|
|---|
| 7150 |
|
|---|
| 7151 | int main() {
|
|---|
| 7152 | gethostbyname()
|
|---|
| 7153 | ; return 0; }
|
|---|
| 7154 | EOF
|
|---|
| 7155 | if { (eval echo configure:7156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 7156 | rm -rf conftest*
|
|---|
| 7157 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 7158 | else
|
|---|
| 7159 | echo "configure: failed program was:" >&5
|
|---|
| 7160 | cat conftest.$ac_ext >&5
|
|---|
| 7161 | rm -rf conftest*
|
|---|
| 7162 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 7163 | fi
|
|---|
| 7164 | rm -f conftest*
|
|---|
| 7165 | LIBS="$ac_save_LIBS"
|
|---|
| 7166 |
|
|---|
| 7167 | fi
|
|---|
| 7168 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 7169 | echo "$ac_t""yes" 1>&6
|
|---|
| 7170 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
|
|---|
| 7171 | else
|
|---|
| 7172 | echo "$ac_t""no" 1>&6
|
|---|
| 7173 | fi
|
|---|
| 7174 |
|
|---|
| 7175 | fi
|
|---|
| 7176 |
|
|---|
| 7177 | # lieder@skyler.mavd.honeywell.com says without -lsocket,
|
|---|
| 7178 | # socket/setsockopt and other routines are undefined under SCO ODT
|
|---|
| 7179 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
|
|---|
| 7180 | # on later versions), says simon@lia.di.epfl.ch: it contains
|
|---|
| 7181 | # gethostby* variants that don't use the nameserver (or something).
|
|---|
| 7182 | # -lsocket must be given before -lnsl if both are needed.
|
|---|
| 7183 | # We assume that if connect needs -lnsl, so does gethostbyname.
|
|---|
| 7184 | echo $ac_n "checking for connect""... $ac_c" 1>&6
|
|---|
| 7185 | echo "configure:7186: checking for connect" >&5
|
|---|
| 7186 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
|
|---|
| 7187 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 7188 | else
|
|---|
| 7189 | cat > conftest.$ac_ext <<EOF
|
|---|
| 7190 | #line 7191 "configure"
|
|---|
| 7191 | #include "confdefs.h"
|
|---|
| 7192 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 7193 | which can conflict with char connect(); below. */
|
|---|
| 7194 | #include <assert.h>
|
|---|
| 7195 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 7196 | /* We use char because int might match the return type of a gcc2
|
|---|
| 7197 | builtin and then its argument prototype would still apply. */
|
|---|
| 7198 | char connect();
|
|---|
| 7199 |
|
|---|
| 7200 | int main() {
|
|---|
| 7201 |
|
|---|
| 7202 | /* The GNU C library defines this for functions which it implements
|
|---|
| 7203 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 7204 | something starting with __ and the normal name is an alias. */
|
|---|
| 7205 | #if defined (__stub_connect) || defined (__stub___connect)
|
|---|
| 7206 | choke me
|
|---|
| 7207 | #else
|
|---|
| 7208 | connect();
|
|---|
| 7209 | #endif
|
|---|
| 7210 |
|
|---|
| 7211 | ; return 0; }
|
|---|
| 7212 | EOF
|
|---|
| 7213 | if { (eval echo configure:7214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 7214 | rm -rf conftest*
|
|---|
| 7215 | eval "ac_cv_func_connect=yes"
|
|---|
| 7216 | else
|
|---|
| 7217 | echo "configure: failed program was:" >&5
|
|---|
| 7218 | cat conftest.$ac_ext >&5
|
|---|
| 7219 | rm -rf conftest*
|
|---|
| 7220 | eval "ac_cv_func_connect=no"
|
|---|
| 7221 | fi
|
|---|
| 7222 | rm -f conftest*
|
|---|
| 7223 | fi
|
|---|
| 7224 |
|
|---|
| 7225 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
|
|---|
| 7226 | echo "$ac_t""yes" 1>&6
|
|---|
| 7227 | :
|
|---|
| 7228 | else
|
|---|
| 7229 | echo "$ac_t""no" 1>&6
|
|---|
| 7230 | fi
|
|---|
| 7231 |
|
|---|
| 7232 | if test $ac_cv_func_connect = no; then
|
|---|
| 7233 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
|
|---|
| 7234 | echo "configure:7235: checking for connect in -lsocket" >&5
|
|---|
| 7235 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
|
|---|
| 7236 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 7237 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 7238 | else
|
|---|
| 7239 | ac_save_LIBS="$LIBS"
|
|---|
| 7240 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
|
|---|
| 7241 | cat > conftest.$ac_ext <<EOF
|
|---|
| 7242 | #line 7243 "configure"
|
|---|
| 7243 | #include "confdefs.h"
|
|---|
| 7244 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 7245 | /* We use char because int might match the return type of a gcc2
|
|---|
| 7246 | builtin and then its argument prototype would still apply. */
|
|---|
| 7247 | char connect();
|
|---|
| 7248 |
|
|---|
| 7249 | int main() {
|
|---|
| 7250 | connect()
|
|---|
| 7251 | ; return 0; }
|
|---|
| 7252 | EOF
|
|---|
| 7253 | if { (eval echo configure:7254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 7254 | rm -rf conftest*
|
|---|
| 7255 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 7256 | else
|
|---|
| 7257 | echo "configure: failed program was:" >&5
|
|---|
| 7258 | cat conftest.$ac_ext >&5
|
|---|
| 7259 | rm -rf conftest*
|
|---|
| 7260 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 7261 | fi
|
|---|
| 7262 | rm -f conftest*
|
|---|
| 7263 | LIBS="$ac_save_LIBS"
|
|---|
| 7264 |
|
|---|
| 7265 | fi
|
|---|
| 7266 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 7267 | echo "$ac_t""yes" 1>&6
|
|---|
| 7268 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
|
|---|
| 7269 | else
|
|---|
| 7270 | echo "$ac_t""no" 1>&6
|
|---|
| 7271 | fi
|
|---|
| 7272 |
|
|---|
| 7273 | fi
|
|---|
| 7274 |
|
|---|
| 7275 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
|
|---|
| 7276 | echo $ac_n "checking for remove""... $ac_c" 1>&6
|
|---|
| 7277 | echo "configure:7278: checking for remove" >&5
|
|---|
| 7278 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
|
|---|
| 7279 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 7280 | else
|
|---|
| 7281 | cat > conftest.$ac_ext <<EOF
|
|---|
| 7282 | #line 7283 "configure"
|
|---|
| 7283 | #include "confdefs.h"
|
|---|
| 7284 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 7285 | which can conflict with char remove(); below. */
|
|---|
| 7286 | #include <assert.h>
|
|---|
| 7287 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 7288 | /* We use char because int might match the return type of a gcc2
|
|---|
| 7289 | builtin and then its argument prototype would still apply. */
|
|---|
| 7290 | char remove();
|
|---|
| 7291 |
|
|---|
| 7292 | int main() {
|
|---|
| 7293 |
|
|---|
| 7294 | /* The GNU C library defines this for functions which it implements
|
|---|
| 7295 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 7296 | something starting with __ and the normal name is an alias. */
|
|---|
| 7297 | #if defined (__stub_remove) || defined (__stub___remove)
|
|---|
| 7298 | choke me
|
|---|
| 7299 | #else
|
|---|
| 7300 | remove();
|
|---|
| 7301 | #endif
|
|---|
| 7302 |
|
|---|
| 7303 | ; return 0; }
|
|---|
| 7304 | EOF
|
|---|
| 7305 | if { (eval echo configure:7306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 7306 | rm -rf conftest*
|
|---|
| 7307 | eval "ac_cv_func_remove=yes"
|
|---|
| 7308 | else
|
|---|
| 7309 | echo "configure: failed program was:" >&5
|
|---|
| 7310 | cat conftest.$ac_ext >&5
|
|---|
| 7311 | rm -rf conftest*
|
|---|
| 7312 | eval "ac_cv_func_remove=no"
|
|---|
| 7313 | fi
|
|---|
| 7314 | rm -f conftest*
|
|---|
| 7315 | fi
|
|---|
| 7316 |
|
|---|
| 7317 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
|
|---|
| 7318 | echo "$ac_t""yes" 1>&6
|
|---|
| 7319 | :
|
|---|
| 7320 | else
|
|---|
| 7321 | echo "$ac_t""no" 1>&6
|
|---|
| 7322 | fi
|
|---|
| 7323 |
|
|---|
| 7324 | if test $ac_cv_func_remove = no; then
|
|---|
| 7325 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
|
|---|
| 7326 | echo "configure:7327: checking for remove in -lposix" >&5
|
|---|
| 7327 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
|
|---|
| 7328 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 7329 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 7330 | else
|
|---|
| 7331 | ac_save_LIBS="$LIBS"
|
|---|
| 7332 | LIBS="-lposix $LIBS"
|
|---|
| 7333 | cat > conftest.$ac_ext <<EOF
|
|---|
| 7334 | #line 7335 "configure"
|
|---|
| 7335 | #include "confdefs.h"
|
|---|
| 7336 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 7337 | /* We use char because int might match the return type of a gcc2
|
|---|
| 7338 | builtin and then its argument prototype would still apply. */
|
|---|
| 7339 | char remove();
|
|---|
| 7340 |
|
|---|
| 7341 | int main() {
|
|---|
| 7342 | remove()
|
|---|
| 7343 | ; return 0; }
|
|---|
| 7344 | EOF
|
|---|
| 7345 | if { (eval echo configure:7346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 7346 | rm -rf conftest*
|
|---|
| 7347 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 7348 | else
|
|---|
| 7349 | echo "configure: failed program was:" >&5
|
|---|
| 7350 | cat conftest.$ac_ext >&5
|
|---|
| 7351 | rm -rf conftest*
|
|---|
| 7352 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 7353 | fi
|
|---|
| 7354 | rm -f conftest*
|
|---|
| 7355 | LIBS="$ac_save_LIBS"
|
|---|
| 7356 |
|
|---|
| 7357 | fi
|
|---|
| 7358 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 7359 | echo "$ac_t""yes" 1>&6
|
|---|
| 7360 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
|
|---|
| 7361 | else
|
|---|
| 7362 | echo "$ac_t""no" 1>&6
|
|---|
| 7363 | fi
|
|---|
| 7364 |
|
|---|
| 7365 | fi
|
|---|
| 7366 |
|
|---|
| 7367 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
|
|---|
| 7368 | echo $ac_n "checking for shmat""... $ac_c" 1>&6
|
|---|
| 7369 | echo "configure:7370: checking for shmat" >&5
|
|---|
| 7370 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
|
|---|
| 7371 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 7372 | else
|
|---|
| 7373 | cat > conftest.$ac_ext <<EOF
|
|---|
| 7374 | #line 7375 "configure"
|
|---|
| 7375 | #include "confdefs.h"
|
|---|
| 7376 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 7377 | which can conflict with char shmat(); below. */
|
|---|
| 7378 | #include <assert.h>
|
|---|
| 7379 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 7380 | /* We use char because int might match the return type of a gcc2
|
|---|
| 7381 | builtin and then its argument prototype would still apply. */
|
|---|
| 7382 | char shmat();
|
|---|
| 7383 |
|
|---|
| 7384 | int main() {
|
|---|
| 7385 |
|
|---|
| 7386 | /* The GNU C library defines this for functions which it implements
|
|---|
| 7387 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 7388 | something starting with __ and the normal name is an alias. */
|
|---|
| 7389 | #if defined (__stub_shmat) || defined (__stub___shmat)
|
|---|
| 7390 | choke me
|
|---|
| 7391 | #else
|
|---|
| 7392 | shmat();
|
|---|
| 7393 | #endif
|
|---|
| 7394 |
|
|---|
| 7395 | ; return 0; }
|
|---|
| 7396 | EOF
|
|---|
| 7397 | if { (eval echo configure:7398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 7398 | rm -rf conftest*
|
|---|
| 7399 | eval "ac_cv_func_shmat=yes"
|
|---|
| 7400 | else
|
|---|
| 7401 | echo "configure: failed program was:" >&5
|
|---|
| 7402 | cat conftest.$ac_ext >&5
|
|---|
| 7403 | rm -rf conftest*
|
|---|
| 7404 | eval "ac_cv_func_shmat=no"
|
|---|
| 7405 | fi
|
|---|
| 7406 | rm -f conftest*
|
|---|
| 7407 | fi
|
|---|
| 7408 |
|
|---|
| 7409 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
|
|---|
| 7410 | echo "$ac_t""yes" 1>&6
|
|---|
| 7411 | :
|
|---|
| 7412 | else
|
|---|
| 7413 | echo "$ac_t""no" 1>&6
|
|---|
| 7414 | fi
|
|---|
| 7415 |
|
|---|
| 7416 | if test $ac_cv_func_shmat = no; then
|
|---|
| 7417 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
|
|---|
| 7418 | echo "configure:7419: checking for shmat in -lipc" >&5
|
|---|
| 7419 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
|
|---|
| 7420 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 7421 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 7422 | else
|
|---|
| 7423 | ac_save_LIBS="$LIBS"
|
|---|
| 7424 | LIBS="-lipc $LIBS"
|
|---|
| 7425 | cat > conftest.$ac_ext <<EOF
|
|---|
| 7426 | #line 7427 "configure"
|
|---|
| 7427 | #include "confdefs.h"
|
|---|
| 7428 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 7429 | /* We use char because int might match the return type of a gcc2
|
|---|
| 7430 | builtin and then its argument prototype would still apply. */
|
|---|
| 7431 | char shmat();
|
|---|
| 7432 |
|
|---|
| 7433 | int main() {
|
|---|
| 7434 | shmat()
|
|---|
| 7435 | ; return 0; }
|
|---|
| 7436 | EOF
|
|---|
| 7437 | if { (eval echo configure:7438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 7438 | rm -rf conftest*
|
|---|
| 7439 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 7440 | else
|
|---|
| 7441 | echo "configure: failed program was:" >&5
|
|---|
| 7442 | cat conftest.$ac_ext >&5
|
|---|
| 7443 | rm -rf conftest*
|
|---|
| 7444 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 7445 | fi
|
|---|
| 7446 | rm -f conftest*
|
|---|
| 7447 | LIBS="$ac_save_LIBS"
|
|---|
| 7448 |
|
|---|
| 7449 | fi
|
|---|
| 7450 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 7451 | echo "$ac_t""yes" 1>&6
|
|---|
| 7452 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
|
|---|
| 7453 | else
|
|---|
| 7454 | echo "$ac_t""no" 1>&6
|
|---|
| 7455 | fi
|
|---|
| 7456 |
|
|---|
| 7457 | fi
|
|---|
| 7458 | # XFree86/OS2
|
|---|
| 7459 | if test $ac_cv_func_shmat = no; then
|
|---|
| 7460 | echo $ac_n "checking for shmat in -lshm""... $ac_c" 1>&6
|
|---|
| 7461 | echo "configure:7462: checking for shmat in -lshm" >&5
|
|---|
| 7462 | ac_lib_var=`echo shm'_'shmat | sed 'y%./+-%__p_%'`
|
|---|
| 7463 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 7464 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 7465 | else
|
|---|
| 7466 | ac_save_LIBS="$LIBS"
|
|---|
| 7467 | LIBS="-lshm $LIBS"
|
|---|
| 7468 | cat > conftest.$ac_ext <<EOF
|
|---|
| 7469 | #line 7470 "configure"
|
|---|
| 7470 | #include "confdefs.h"
|
|---|
| 7471 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 7472 | /* We use char because int might match the return type of a gcc2
|
|---|
| 7473 | builtin and then its argument prototype would still apply. */
|
|---|
| 7474 | char shmat();
|
|---|
| 7475 |
|
|---|
| 7476 | int main() {
|
|---|
| 7477 | shmat()
|
|---|
| 7478 | ; return 0; }
|
|---|
| 7479 | EOF
|
|---|
| 7480 | if { (eval echo configure:7481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 7481 | rm -rf conftest*
|
|---|
| 7482 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 7483 | else
|
|---|
| 7484 | echo "configure: failed program was:" >&5
|
|---|
| 7485 | cat conftest.$ac_ext >&5
|
|---|
| 7486 | rm -rf conftest*
|
|---|
| 7487 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 7488 | fi
|
|---|
| 7489 | rm -f conftest*
|
|---|
| 7490 | LIBS="$ac_save_LIBS"
|
|---|
| 7491 |
|
|---|
| 7492 | fi
|
|---|
| 7493 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 7494 | echo "$ac_t""yes" 1>&6
|
|---|
| 7495 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lshm"
|
|---|
| 7496 | else
|
|---|
| 7497 | echo "$ac_t""no" 1>&6
|
|---|
| 7498 | fi
|
|---|
| 7499 |
|
|---|
| 7500 | fi
|
|---|
| 7501 | fi
|
|---|
| 7502 |
|
|---|
| 7503 | # Check for libraries that X11R6 Xt/Xaw programs need.
|
|---|
| 7504 | ac_save_LDFLAGS="$LDFLAGS"
|
|---|
| 7505 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
|
|---|
| 7506 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
|
|---|
| 7507 | # check for ICE first), but we must link in the order -lSM -lICE or
|
|---|
| 7508 | # we get undefined symbols. So assume we have SM if we have ICE.
|
|---|
| 7509 | # These have to be linked with before -lX11, unlike the other
|
|---|
| 7510 | # libraries we check for below, so use a different variable.
|
|---|
| 7511 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
|
|---|
| 7512 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
|
|---|
| 7513 | echo "configure:7514: checking for IceConnectionNumber in -lICE" >&5
|
|---|
| 7514 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
|
|---|
| 7515 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 7516 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 7517 | else
|
|---|
| 7518 | ac_save_LIBS="$LIBS"
|
|---|
| 7519 | LIBS="-lICE $X_EXTRA_LIBS $LIBS"
|
|---|
| 7520 | cat > conftest.$ac_ext <<EOF
|
|---|
| 7521 | #line 7522 "configure"
|
|---|
| 7522 | #include "confdefs.h"
|
|---|
| 7523 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 7524 | /* We use char because int might match the return type of a gcc2
|
|---|
| 7525 | builtin and then its argument prototype would still apply. */
|
|---|
| 7526 | char IceConnectionNumber();
|
|---|
| 7527 |
|
|---|
| 7528 | int main() {
|
|---|
| 7529 | IceConnectionNumber()
|
|---|
| 7530 | ; return 0; }
|
|---|
| 7531 | EOF
|
|---|
| 7532 | if { (eval echo configure:7533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 7533 | rm -rf conftest*
|
|---|
| 7534 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 7535 | else
|
|---|
| 7536 | echo "configure: failed program was:" >&5
|
|---|
| 7537 | cat conftest.$ac_ext >&5
|
|---|
| 7538 | rm -rf conftest*
|
|---|
| 7539 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 7540 | fi
|
|---|
| 7541 | rm -f conftest*
|
|---|
| 7542 | LIBS="$ac_save_LIBS"
|
|---|
| 7543 |
|
|---|
| 7544 | fi
|
|---|
| 7545 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 7546 | echo "$ac_t""yes" 1>&6
|
|---|
| 7547 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
|
|---|
| 7548 | else
|
|---|
| 7549 | echo "$ac_t""no" 1>&6
|
|---|
| 7550 | fi
|
|---|
| 7551 |
|
|---|
| 7552 | LDFLAGS="$ac_save_LDFLAGS"
|
|---|
| 7553 |
|
|---|
| 7554 | fi
|
|---|
| 7555 |
|
|---|
| 7556 |
|
|---|
| 7557 | # Check whether --enable-java-awt or --disable-java-awt was given.
|
|---|
| 7558 | if test "${enable_java_awt+set}" = set; then
|
|---|
| 7559 | enableval="$enable_java_awt"
|
|---|
| 7560 | :
|
|---|
| 7561 | fi
|
|---|
| 7562 |
|
|---|
| 7563 |
|
|---|
| 7564 | peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
|
|---|
| 7565 | use_xlib_awt=""
|
|---|
| 7566 | use_gtk_awt=""
|
|---|
| 7567 |
|
|---|
| 7568 | for peer in $peerlibs ; do
|
|---|
| 7569 | case $peer in
|
|---|
| 7570 | xlib)
|
|---|
| 7571 | if test "$no_x" = yes; then
|
|---|
| 7572 | echo "*** xlib peers requested but no X library available" 1>&2
|
|---|
| 7573 | exit 1
|
|---|
| 7574 | else
|
|---|
| 7575 | use_xlib_awt="yes"
|
|---|
| 7576 | fi
|
|---|
| 7577 | ;;
|
|---|
| 7578 | gtk)
|
|---|
| 7579 | # Nothing, yet...
|
|---|
| 7580 | ;;
|
|---|
| 7581 | no)
|
|---|
| 7582 | use_xlib_awt=
|
|---|
| 7583 | use_gtk_awt=
|
|---|
| 7584 | break
|
|---|
| 7585 | ;;
|
|---|
| 7586 | *)
|
|---|
| 7587 | echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
|
|---|
| 7588 | exit 1
|
|---|
| 7589 | esac
|
|---|
| 7590 | done
|
|---|
| 7591 |
|
|---|
| 7592 |
|
|---|
| 7593 |
|
|---|
| 7594 | if test "$use_xlib_awt" = yes; then
|
|---|
| 7595 | XLIB_AWT_TRUE=
|
|---|
| 7596 | XLIB_AWT_FALSE='#'
|
|---|
| 7597 | else
|
|---|
| 7598 | XLIB_AWT_TRUE='#'
|
|---|
| 7599 | XLIB_AWT_FALSE=
|
|---|
| 7600 | fi
|
|---|
| 7601 |
|
|---|
| 7602 |
|
|---|
| 7603 | if test "$use_gtk_awt" = yes; then
|
|---|
| 7604 | GTK_AWT_TRUE=
|
|---|
| 7605 | GTK_AWT_FALSE='#'
|
|---|
| 7606 | else
|
|---|
| 7607 | GTK_AWT_TRUE='#'
|
|---|
| 7608 | GTK_AWT_FALSE=
|
|---|
| 7609 | fi
|
|---|
| 7610 |
|
|---|
| 7611 |
|
|---|
| 7612 | here=`pwd`
|
|---|
| 7613 |
|
|---|
| 7614 |
|
|---|
| 7615 | # We get this from the environment.
|
|---|
| 7616 |
|
|---|
| 7617 |
|
|---|
| 7618 | trap '' 1 2 15
|
|---|
| 7619 | cat > confcache <<\EOF
|
|---|
| 7620 | # This file is a shell script that caches the results of configure
|
|---|
| 7621 | # tests run on this system so they can be shared between configure
|
|---|
| 7622 | # scripts and configure runs. It is not useful on other systems.
|
|---|
| 7623 | # If it contains results you don't want to keep, you may remove or edit it.
|
|---|
| 7624 | #
|
|---|
| 7625 | # By default, configure uses ./config.cache as the cache file,
|
|---|
| 7626 | # creating it if it does not exist already. You can give configure
|
|---|
| 7627 | # the --cache-file=FILE option to use a different cache file; that is
|
|---|
| 7628 | # what configure does when it calls configure scripts in
|
|---|
| 7629 | # subdirectories, so they share the cache.
|
|---|
| 7630 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
|---|
| 7631 | # config.status only pays attention to the cache file if you give it the
|
|---|
| 7632 | # --recheck option to rerun configure.
|
|---|
| 7633 | #
|
|---|
| 7634 | EOF
|
|---|
| 7635 | # The following way of writing the cache mishandles newlines in values,
|
|---|
| 7636 | # but we know of no workaround that is simple, portable, and efficient.
|
|---|
| 7637 | # So, don't put newlines in cache variables' values.
|
|---|
| 7638 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
|---|
| 7639 | # and sets the high bit in the cache file unless we assign to the vars.
|
|---|
| 7640 | (set) 2>&1 |
|
|---|
| 7641 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
|---|
| 7642 | *ac_space=\ *)
|
|---|
| 7643 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
|---|
| 7644 | # turns \\\\ into \\, and sed turns \\ into \).
|
|---|
| 7645 | sed -n \
|
|---|
| 7646 | -e "s/'/'\\\\''/g" \
|
|---|
| 7647 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
|---|
| 7648 | ;;
|
|---|
| 7649 | *)
|
|---|
| 7650 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
|---|
| 7651 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
|---|
| 7652 | ;;
|
|---|
| 7653 | esac >> confcache
|
|---|
| 7654 | if cmp -s $cache_file confcache; then
|
|---|
| 7655 | :
|
|---|
| 7656 | else
|
|---|
| 7657 | if test -w $cache_file; then
|
|---|
| 7658 | echo "updating cache $cache_file"
|
|---|
| 7659 | cat confcache > $cache_file
|
|---|
| 7660 | else
|
|---|
| 7661 | echo "not updating unwritable cache $cache_file"
|
|---|
| 7662 | fi
|
|---|
| 7663 | fi
|
|---|
| 7664 | rm -f confcache
|
|---|
| 7665 |
|
|---|
| 7666 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|---|
| 7667 |
|
|---|
| 7668 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|---|
| 7669 | # Let make expand exec_prefix.
|
|---|
| 7670 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
|---|
| 7671 |
|
|---|
| 7672 | # Any assignment to VPATH causes Sun make to only execute
|
|---|
| 7673 | # the first set of double-colon rules, so remove it if not needed.
|
|---|
| 7674 | # If there is a colon in the path, we need to keep it.
|
|---|
| 7675 | if test "x$srcdir" = x.; then
|
|---|
| 7676 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
|---|
| 7677 | fi
|
|---|
| 7678 |
|
|---|
| 7679 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
|---|
| 7680 |
|
|---|
| 7681 | DEFS=-DHAVE_CONFIG_H
|
|---|
| 7682 |
|
|---|
| 7683 | # Without the "./", some shells look in PATH for config.status.
|
|---|
| 7684 | : ${CONFIG_STATUS=./config.status}
|
|---|
| 7685 |
|
|---|
| 7686 | echo creating $CONFIG_STATUS
|
|---|
| 7687 | rm -f $CONFIG_STATUS
|
|---|
| 7688 | cat > $CONFIG_STATUS <<EOF
|
|---|
| 7689 | #! /bin/sh
|
|---|
| 7690 | # Generated automatically by configure.
|
|---|
| 7691 | # Run this file to recreate the current configuration.
|
|---|
| 7692 | # This directory was configured as follows,
|
|---|
| 7693 | EOF
|
|---|
| 7694 | echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS
|
|---|
| 7695 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 7696 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|---|
| 7697 | #
|
|---|
| 7698 | # $0 $ac_configure_args
|
|---|
| 7699 | #
|
|---|
| 7700 | # Compiler output produced by configure, useful for debugging
|
|---|
| 7701 | # configure, is in ./config.log if it exists.
|
|---|
| 7702 |
|
|---|
| 7703 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
|---|
| 7704 | for ac_option
|
|---|
| 7705 | do
|
|---|
| 7706 | case "\$ac_option" in
|
|---|
| 7707 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
|---|
| 7708 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
|---|
| 7709 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
|---|
| 7710 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
|---|
| 7711 | echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
|---|
| 7712 | exit 0 ;;
|
|---|
| 7713 | -help | --help | --hel | --he | --h)
|
|---|
| 7714 | echo "\$ac_cs_usage"; exit 0 ;;
|
|---|
| 7715 | *) echo "\$ac_cs_usage"; exit 1 ;;
|
|---|
| 7716 | esac
|
|---|
| 7717 | done
|
|---|
| 7718 |
|
|---|
| 7719 | ac_given_srcdir=$srcdir
|
|---|
| 7720 | ac_given_INSTALL="$INSTALL"
|
|---|
| 7721 | PATHIFS="$PATH_IFS"
|
|---|
| 7722 |
|
|---|
| 7723 | trap 'rm -fr `echo "Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile include/config.h gcj/libgcj-config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
|---|
| 7724 | EOF
|
|---|
| 7725 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 7726 |
|
|---|
| 7727 | # Protect against being on the right side of a sed subst in config.status.
|
|---|
| 7728 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
|---|
| 7729 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
|---|
| 7730 | $ac_vpsub
|
|---|
| 7731 | $extrasub
|
|---|
| 7732 | s,\([^a-zA-Z0-9:]\)/bin/sh\(.exe\),\1${CONFIG_SHELL-/bin/sh}\2,g
|
|---|
| 7733 | s%@SHELL@%$SHELL%g
|
|---|
| 7734 | s%@CFLAGS@%$CFLAGS%g
|
|---|
| 7735 | s%@CPPFLAGS@%$CPPFLAGS%g
|
|---|
| 7736 | s%@CXXFLAGS@%$CXXFLAGS%g
|
|---|
| 7737 | s%@FFLAGS@%$FFLAGS%g
|
|---|
| 7738 | s%@DEFS@%$DEFS%g
|
|---|
| 7739 | s%@LDFLAGS@%$LDFLAGS%g
|
|---|
| 7740 | s%@LIBS@%$LIBS%g
|
|---|
| 7741 | s%@exec_prefix@%$exec_prefix%g
|
|---|
| 7742 | s%@prefix@%$prefix%g
|
|---|
| 7743 | s%@program_transform_name@%$program_transform_name%g
|
|---|
| 7744 | s%@bindir@%$bindir%g
|
|---|
| 7745 | s%@sbindir@%$sbindir%g
|
|---|
| 7746 | s%@libexecdir@%$libexecdir%g
|
|---|
| 7747 | s%@datadir@%$datadir%g
|
|---|
| 7748 | s%@sysconfdir@%$sysconfdir%g
|
|---|
| 7749 | s%@sharedstatedir@%$sharedstatedir%g
|
|---|
| 7750 | s%@localstatedir@%$localstatedir%g
|
|---|
| 7751 | s%@libdir@%$libdir%g
|
|---|
| 7752 | s%@includedir@%$includedir%g
|
|---|
| 7753 | s%@oldincludedir@%$oldincludedir%g
|
|---|
| 7754 | s%@infodir@%$infodir%g
|
|---|
| 7755 | s%@mandir@%$mandir%g
|
|---|
| 7756 | s%@PATH_IFS@%$PATH_IFS%g
|
|---|
| 7757 | s%@EXEEXT@%$EXEEXT%g
|
|---|
| 7758 | s%@LN_S@%$LN_S%g
|
|---|
| 7759 | s%@libgcj_basedir@%$libgcj_basedir%g
|
|---|
| 7760 | s%@mkinstalldirs@%$mkinstalldirs%g
|
|---|
| 7761 | s%@host@%$host%g
|
|---|
| 7762 | s%@host_alias@%$host_alias%g
|
|---|
| 7763 | s%@host_cpu@%$host_cpu%g
|
|---|
| 7764 | s%@host_vendor@%$host_vendor%g
|
|---|
| 7765 | s%@host_os@%$host_os%g
|
|---|
| 7766 | s%@target@%$target%g
|
|---|
| 7767 | s%@target_alias@%$target_alias%g
|
|---|
| 7768 | s%@target_cpu@%$target_cpu%g
|
|---|
| 7769 | s%@target_vendor@%$target_vendor%g
|
|---|
| 7770 | s%@target_os@%$target_os%g
|
|---|
| 7771 | s%@build@%$build%g
|
|---|
| 7772 | s%@build_alias@%$build_alias%g
|
|---|
| 7773 | s%@build_cpu@%$build_cpu%g
|
|---|
| 7774 | s%@build_vendor@%$build_vendor%g
|
|---|
| 7775 | s%@build_os@%$build_os%g
|
|---|
| 7776 | s%@CC@%$CC%g
|
|---|
| 7777 | s%@glibjava_CXX@%$glibjava_CXX%g
|
|---|
| 7778 | s%@CXX@%$CXX%g
|
|---|
| 7779 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
|---|
| 7780 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
|---|
| 7781 | s%@INSTALL_DATA@%$INSTALL_DATA%g
|
|---|
| 7782 | s%@PACKAGE@%$PACKAGE%g
|
|---|
| 7783 | s%@VERSION@%$VERSION%g
|
|---|
| 7784 | s%@ACLOCAL@%$ACLOCAL%g
|
|---|
| 7785 | s%@AUTOCONF@%$AUTOCONF%g
|
|---|
| 7786 | s%@AUTOMAKE@%$AUTOMAKE%g
|
|---|
| 7787 | s%@AUTOHEADER@%$AUTOHEADER%g
|
|---|
| 7788 | s%@MAKEINFO@%$MAKEINFO%g
|
|---|
| 7789 | s%@SET_MAKE@%$SET_MAKE%g
|
|---|
| 7790 | s%@AS@%$AS%g
|
|---|
| 7791 | s%@AR@%$AR%g
|
|---|
| 7792 | s%@RANLIB@%$RANLIB%g
|
|---|
| 7793 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
|
|---|
| 7794 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
|
|---|
| 7795 | s%@MAINT@%$MAINT%g
|
|---|
| 7796 | s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
|
|---|
| 7797 | s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
|
|---|
| 7798 | s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
|
|---|
| 7799 | s%@INCLTDL@%$INCLTDL%g
|
|---|
| 7800 | s%@LIBLTDL@%$LIBLTDL%g
|
|---|
| 7801 | s%@DIRLTDL@%$DIRLTDL%g
|
|---|
| 7802 | s%@OBJEXT@%$OBJEXT%g
|
|---|
| 7803 | s%@STRIP@%$STRIP%g
|
|---|
| 7804 | s%@LIBTOOL@%$LIBTOOL%g
|
|---|
| 7805 | s%@CXXCPP@%$CXXCPP%g
|
|---|
| 7806 | s%@subdirs@%$subdirs%g
|
|---|
| 7807 | s%@COMPPATH@%$COMPPATH%g
|
|---|
| 7808 | s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
|
|---|
| 7809 | s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
|
|---|
| 7810 | s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
|
|---|
| 7811 | s%@LIBFFI@%$LIBFFI%g
|
|---|
| 7812 | s%@LIBFFIINCS@%$LIBFFIINCS%g
|
|---|
| 7813 | s%@PLATFORMOBJS@%$PLATFORMOBJS%g
|
|---|
| 7814 | s%@CPP@%$CPP%g
|
|---|
| 7815 | s%@SYSTEMSPEC@%$SYSTEMSPEC%g
|
|---|
| 7816 | s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
|
|---|
| 7817 | s%@ZLIBSPEC@%$ZLIBSPEC%g
|
|---|
| 7818 | s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
|
|---|
| 7819 | s%@GCLIBS@%$GCLIBS%g
|
|---|
| 7820 | s%@GCINCS@%$GCINCS%g
|
|---|
| 7821 | s%@GCDEPS@%$GCDEPS%g
|
|---|
| 7822 | s%@GCOBJS@%$GCOBJS%g
|
|---|
| 7823 | s%@GCSPEC@%$GCSPEC%g
|
|---|
| 7824 | s%@JC1GCSPEC@%$JC1GCSPEC%g
|
|---|
| 7825 | s%@GCTESTSPEC@%$GCTESTSPEC%g
|
|---|
| 7826 | s%@THREADLIBS@%$THREADLIBS%g
|
|---|
| 7827 | s%@THREADINCS@%$THREADINCS%g
|
|---|
| 7828 | s%@THREADDEPS@%$THREADDEPS%g
|
|---|
| 7829 | s%@THREADOBJS@%$THREADOBJS%g
|
|---|
| 7830 | s%@THREADSPEC@%$THREADSPEC%g
|
|---|
| 7831 | s%@THREADLDFLAGS@%$THREADLDFLAGS%g
|
|---|
| 7832 | s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
|
|---|
| 7833 | s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
|
|---|
| 7834 | s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
|
|---|
| 7835 | s%@tool_include_dir@%$tool_include_dir%g
|
|---|
| 7836 | s%@gcc_version@%$gcc_version%g
|
|---|
| 7837 | s%@LIBICONV@%$LIBICONV%g
|
|---|
| 7838 | s%@GCJ@%$GCJ%g
|
|---|
| 7839 | s%@GCJFLAGS@%$GCJFLAGS%g
|
|---|
| 7840 | s%@ZLIBS@%$ZLIBS%g
|
|---|
| 7841 | s%@SYS_ZLIBS@%$SYS_ZLIBS%g
|
|---|
| 7842 | s%@ZINCS@%$ZINCS%g
|
|---|
| 7843 | s%@DIVIDESPEC@%$DIVIDESPEC%g
|
|---|
| 7844 | s%@CHECKREFSPEC@%$CHECKREFSPEC%g
|
|---|
| 7845 | s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
|
|---|
| 7846 | s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
|
|---|
| 7847 | s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
|
|---|
| 7848 | s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
|
|---|
| 7849 | s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
|
|---|
| 7850 | s%@NATIVE_TRUE@%$NATIVE_TRUE%g
|
|---|
| 7851 | s%@NATIVE_FALSE@%$NATIVE_FALSE%g
|
|---|
| 7852 | s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
|
|---|
| 7853 | s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
|
|---|
| 7854 | s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
|
|---|
| 7855 | s%@toolexecdir@%$toolexecdir%g
|
|---|
| 7856 | s%@toolexecmainlibdir@%$toolexecmainlibdir%g
|
|---|
| 7857 | s%@toolexeclibdir@%$toolexeclibdir%g
|
|---|
| 7858 | s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
|
|---|
| 7859 | s%@GCJVERSION@%$GCJVERSION%g
|
|---|
| 7860 | s%@ALLOCA@%$ALLOCA%g
|
|---|
| 7861 | s%@PERL@%$PERL%g
|
|---|
| 7862 | s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
|
|---|
| 7863 | s%@X_CFLAGS@%$X_CFLAGS%g
|
|---|
| 7864 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g
|
|---|
| 7865 | s%@X_LIBS@%$X_LIBS%g
|
|---|
| 7866 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
|
|---|
| 7867 | s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
|
|---|
| 7868 | s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
|
|---|
| 7869 | s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
|
|---|
| 7870 | s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
|
|---|
| 7871 | s%@here@%$here%g
|
|---|
| 7872 |
|
|---|
| 7873 | CEOF
|
|---|
| 7874 | EOF
|
|---|
| 7875 |
|
|---|
| 7876 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 7877 |
|
|---|
| 7878 | # Split the substitutions into bite-sized pieces for seds with
|
|---|
| 7879 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
|---|
| 7880 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
|---|
| 7881 | ac_file=1 # Number of current file.
|
|---|
| 7882 | ac_beg=1 # First line for current file.
|
|---|
| 7883 | ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
|---|
| 7884 | ac_more_lines=:
|
|---|
| 7885 | ac_sed_cmds=""
|
|---|
| 7886 | while $ac_more_lines; do
|
|---|
| 7887 | if test $ac_beg -gt 1; then
|
|---|
| 7888 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
|---|
| 7889 | else
|
|---|
| 7890 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
|---|
| 7891 | fi
|
|---|
| 7892 | if test ! -s conftest.s$ac_file; then
|
|---|
| 7893 | ac_more_lines=false
|
|---|
| 7894 | rm -f conftest.s$ac_file
|
|---|
| 7895 | else
|
|---|
| 7896 | if test -z "$ac_sed_cmds"; then
|
|---|
| 7897 | ac_sed_cmds="sed -f conftest.s$ac_file"
|
|---|
| 7898 | else
|
|---|
| 7899 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
|---|
| 7900 | fi
|
|---|
| 7901 | ac_file=`expr $ac_file + 1`
|
|---|
| 7902 | ac_beg=$ac_end
|
|---|
| 7903 | ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
|---|
| 7904 | fi
|
|---|
| 7905 | done
|
|---|
| 7906 | if test -z "$ac_sed_cmds"; then
|
|---|
| 7907 | ac_sed_cmds=cat
|
|---|
| 7908 | fi
|
|---|
| 7909 | EOF
|
|---|
| 7910 |
|
|---|
| 7911 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 7912 |
|
|---|
| 7913 | CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
|
|---|
| 7914 | EOF
|
|---|
| 7915 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 7916 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
|---|
| 7917 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|---|
| 7918 | case "$ac_file" in
|
|---|
| 7919 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|---|
| 7920 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|---|
| 7921 | *) ac_file_in="${ac_file}.in" ;;
|
|---|
| 7922 | esac
|
|---|
| 7923 |
|
|---|
| 7924 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
|---|
| 7925 |
|
|---|
| 7926 | # Remove last slash and all that follows it. Not all systems have dirname.
|
|---|
| 7927 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|---|
| 7928 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|---|
| 7929 | # The file is in a subdirectory.
|
|---|
| 7930 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|---|
| 7931 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
|---|
| 7932 | # A "../" for each directory in $ac_dir_suffix.
|
|---|
| 7933 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
|---|
| 7934 | else
|
|---|
| 7935 | ac_dir_suffix= ac_dots=
|
|---|
| 7936 | fi
|
|---|
| 7937 |
|
|---|
| 7938 | case "$ac_given_srcdir" in
|
|---|
| 7939 | .) srcdir=.
|
|---|
| 7940 | if test -z "$ac_dots"; then top_srcdir=.
|
|---|
| 7941 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
|---|
| 7942 | [/\\]* | [a-zA-Z]:*)
|
|---|
| 7943 | srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
|---|
| 7944 | *) # Relative path.
|
|---|
| 7945 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
|---|
| 7946 | top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|---|
| 7947 | esac
|
|---|
| 7948 |
|
|---|
| 7949 | case "$ac_given_INSTALL" in
|
|---|
| 7950 | [/$\\]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
|
|---|
| 7951 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
|---|
| 7952 | esac
|
|---|
| 7953 |
|
|---|
| 7954 | echo creating "$ac_file"
|
|---|
| 7955 | rm -f "$ac_file"
|
|---|
| 7956 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
|---|
| 7957 | case "$ac_file" in
|
|---|
| 7958 | *Makefile*) ac_comsub="1i\\
|
|---|
| 7959 | # $configure_input" ;;
|
|---|
| 7960 | *) ac_comsub= ;;
|
|---|
| 7961 | esac
|
|---|
| 7962 |
|
|---|
| 7963 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%$PATHIFS% $ac_given_srcdir/%g"`
|
|---|
| 7964 | sed -e "$ac_comsub
|
|---|
| 7965 | s%@configure_input@%$configure_input%g
|
|---|
| 7966 | s%@srcdir@%$srcdir%g
|
|---|
| 7967 | s%@top_srcdir@%$top_srcdir%g
|
|---|
| 7968 | s%@INSTALL@%$INSTALL%g
|
|---|
| 7969 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
|---|
| 7970 | fi; done
|
|---|
| 7971 | rm -f conftest.s*
|
|---|
| 7972 |
|
|---|
| 7973 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
|---|
| 7974 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
|---|
| 7975 | #
|
|---|
| 7976 | # ac_d sets the value in "#define NAME VALUE" lines.
|
|---|
| 7977 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
|---|
| 7978 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
|---|
| 7979 | ac_dC='\3'
|
|---|
| 7980 | ac_dD='%g'
|
|---|
| 7981 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
|---|
| 7982 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|---|
| 7983 | ac_uB='\([ ]\)%\1#\2define\3'
|
|---|
| 7984 | ac_uC=' '
|
|---|
| 7985 | ac_uD='\4%g'
|
|---|
| 7986 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
|---|
| 7987 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|---|
| 7988 | ac_eB='$%\1#\2define\3'
|
|---|
| 7989 | ac_eC=' '
|
|---|
| 7990 | ac_eD='%g'
|
|---|
| 7991 |
|
|---|
| 7992 | if test "${CONFIG_HEADERS+set}" != set; then
|
|---|
| 7993 | EOF
|
|---|
| 7994 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 7995 | CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
|
|---|
| 7996 | EOF
|
|---|
| 7997 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 7998 | fi
|
|---|
| 7999 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
|---|
| 8000 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|---|
| 8001 | case "$ac_file" in
|
|---|
| 8002 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|---|
| 8003 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|---|
| 8004 | *) ac_file_in="${ac_file}.in" ;;
|
|---|
| 8005 | esac
|
|---|
| 8006 |
|
|---|
| 8007 | echo creating $ac_file
|
|---|
| 8008 |
|
|---|
| 8009 | rm -f conftest.frag conftest.in conftest.out
|
|---|
| 8010 | # kso the other way around might work better with drive letters and such.
|
|---|
| 8011 | # ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|---|
| 8012 | ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%" `
|
|---|
| 8013 | cat $ac_file_inputs > conftest.in
|
|---|
| 8014 |
|
|---|
| 8015 | EOF
|
|---|
| 8016 |
|
|---|
| 8017 | # Transform confdefs.h into a sed script conftest.vals that substitutes
|
|---|
| 8018 | # the proper values into config.h.in to produce config.h. And first:
|
|---|
| 8019 | # Protect against being on the right side of a sed subst in config.status.
|
|---|
| 8020 | # Protect against being in an unquoted here document in config.status.
|
|---|
| 8021 | rm -f conftest.vals
|
|---|
| 8022 | cat > conftest.hdr <<\EOF
|
|---|
| 8023 | s/[\\&%]/\\&/g
|
|---|
| 8024 | s%[\\$`]%\\&%g
|
|---|
| 8025 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
|---|
| 8026 | s%ac_d%ac_u%gp
|
|---|
| 8027 | s%ac_u%ac_e%gp
|
|---|
| 8028 | EOF
|
|---|
| 8029 | sed -n -f conftest.hdr confdefs.h > conftest.vals
|
|---|
| 8030 | rm -f conftest.hdr
|
|---|
| 8031 |
|
|---|
| 8032 | # This sed command replaces #undef with comments. This is necessary, for
|
|---|
| 8033 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
|---|
| 8034 | # on some systems where configure will not decide to define it.
|
|---|
| 8035 | cat >> conftest.vals <<\EOF
|
|---|
| 8036 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
|---|
| 8037 | EOF
|
|---|
| 8038 |
|
|---|
| 8039 | # Break up conftest.vals because some shells have a limit on
|
|---|
| 8040 | # the size of here documents, and old seds have small limits too.
|
|---|
| 8041 |
|
|---|
| 8042 | rm -f conftest.tail
|
|---|
| 8043 | while :
|
|---|
| 8044 | do
|
|---|
| 8045 | ac_lines=`grep -c . conftest.vals`
|
|---|
| 8046 | # grep -c gives empty output for an empty file on some AIX systems.
|
|---|
| 8047 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
|---|
| 8048 | # Write a limited-size here document to conftest.frag.
|
|---|
| 8049 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
|---|
| 8050 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
|---|
| 8051 | echo 'CEOF
|
|---|
| 8052 | sed -f conftest.frag conftest.in > conftest.out
|
|---|
| 8053 | rm -f conftest.in
|
|---|
| 8054 | mv conftest.out conftest.in
|
|---|
| 8055 | ' >> $CONFIG_STATUS
|
|---|
| 8056 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
|---|
| 8057 | rm -f conftest.vals
|
|---|
| 8058 | mv conftest.tail conftest.vals
|
|---|
| 8059 | done
|
|---|
| 8060 | rm -f conftest.vals
|
|---|
| 8061 |
|
|---|
| 8062 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 8063 | rm -f conftest.frag conftest.h
|
|---|
| 8064 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
|---|
| 8065 | cat conftest.in >> conftest.h
|
|---|
| 8066 | rm -f conftest.in
|
|---|
| 8067 | if cmp -s $ac_file conftest.h 2>/dev/null; then
|
|---|
| 8068 | echo "$ac_file is unchanged"
|
|---|
| 8069 | rm -f conftest.h
|
|---|
| 8070 | else
|
|---|
| 8071 | # Remove last slash and all that follows it. Not all systems have dirname.
|
|---|
| 8072 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|---|
| 8073 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|---|
| 8074 | # The file is in a subdirectory.
|
|---|
| 8075 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|---|
| 8076 | fi
|
|---|
| 8077 | rm -f $ac_file
|
|---|
| 8078 | mv conftest.h $ac_file
|
|---|
| 8079 | fi
|
|---|
| 8080 | fi; done
|
|---|
| 8081 |
|
|---|
| 8082 | EOF
|
|---|
| 8083 |
|
|---|
| 8084 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 8085 | ac_sources="include/$PLATFORMH java/io/natFile${FILE-${PLATFORM}}.cc java/io/natFileDescriptor${FILE-${PLATFORM}}.cc java/lang/${PLATFORM}Process.java java/lang/nat${PLATFORM}Process.cc include/$GCHDR include/$THREADH sysdep/$sysdeps_dir/locks.h $SIGNAL_HANDLER"
|
|---|
| 8086 | ac_dests="include/platform.h java/io/natFile.cc java/io/natFileDescriptor.cc java/lang/ConcreteProcess.java java/lang/natConcreteProcess.cc include/java-gc.h include/java-threads.h sysdep/locks.h include/java-signal.h"
|
|---|
| 8087 | EOF
|
|---|
| 8088 |
|
|---|
| 8089 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 8090 | srcdir=$ac_given_srcdir
|
|---|
| 8091 | while test -n "$ac_sources"; do
|
|---|
| 8092 | set $ac_dests; ac_dest=$1; shift; ac_dests=$*
|
|---|
| 8093 | set $ac_sources; ac_source=$1; shift; ac_sources=$*
|
|---|
| 8094 |
|
|---|
| 8095 | echo "linking $srcdir/$ac_source to $ac_dest"
|
|---|
| 8096 |
|
|---|
| 8097 | if test ! -r $srcdir/$ac_source; then
|
|---|
| 8098 | { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
|
|---|
| 8099 | fi
|
|---|
| 8100 | rm -f $ac_dest
|
|---|
| 8101 |
|
|---|
| 8102 | # Make relative symlinks.
|
|---|
| 8103 | # Remove last slash and all that follows it. Not all systems have dirname.
|
|---|
| 8104 | ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
|
|---|
| 8105 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
|
|---|
| 8106 | # The dest file is in a subdirectory.
|
|---|
| 8107 | test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
|
|---|
| 8108 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
|
|---|
| 8109 | # A "../" for each directory in $ac_dest_dir_suffix.
|
|---|
| 8110 | ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
|
|---|
| 8111 | else
|
|---|
| 8112 | ac_dest_dir_suffix= ac_dots=
|
|---|
| 8113 | fi
|
|---|
| 8114 |
|
|---|
| 8115 | case "$srcdir" in
|
|---|
| 8116 | [/$\\]* | [A-Za-z]:*) ac_rel_source="$srcdir/$ac_source" ;;
|
|---|
| 8117 | *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
|
|---|
| 8118 | esac
|
|---|
| 8119 |
|
|---|
| 8120 | # Make a symlink if possible; otherwise try a hard link.
|
|---|
| 8121 | if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
|
|---|
| 8122 | ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
|
|---|
| 8123 | cp $srcdir/$ac_source $ac_dest; then :
|
|---|
| 8124 | else
|
|---|
| 8125 | { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
|
|---|
| 8126 | fi
|
|---|
| 8127 | done
|
|---|
| 8128 | EOF
|
|---|
| 8129 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 8130 |
|
|---|
| 8131 | srcdir=${srcdir}
|
|---|
| 8132 | host=${host}
|
|---|
| 8133 | target=${target}
|
|---|
| 8134 | with_multisubdir=${with_multisubdir}
|
|---|
| 8135 | ac_configure_args="${multilib_arg} ${ac_configure_args}"
|
|---|
| 8136 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
|
|---|
| 8137 | libgcj_basedir=${libgcj_basedir}
|
|---|
| 8138 | CC="${CC}"
|
|---|
| 8139 | CXX="${CXX}"
|
|---|
| 8140 |
|
|---|
| 8141 | EOF
|
|---|
| 8142 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 8143 | am_indx=1
|
|---|
| 8144 | for am_file in include/config.h gcj/libgcj-config.h; do
|
|---|
| 8145 | case " $CONFIG_HEADERS " in
|
|---|
| 8146 | *" $am_file "*)
|
|---|
| 8147 | echo timestamp > `echo $am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
|
|---|
| 8148 | ;;
|
|---|
| 8149 | esac
|
|---|
| 8150 | am_indx=`expr "$am_indx" + 1`
|
|---|
| 8151 | done
|
|---|
| 8152 | # Only add multilib support code if we just rebuilt top-level Makefile.
|
|---|
| 8153 | case " $CONFIG_FILES " in
|
|---|
| 8154 | *" Makefile "*)
|
|---|
| 8155 | LD="${ORIGINAL_LD_FOR_MULTILIBS}"
|
|---|
| 8156 | ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
|
|---|
| 8157 | ;;
|
|---|
| 8158 | esac
|
|---|
| 8159 |
|
|---|
| 8160 | # Make subdirectories and `.d' files. Look in both srcdir and
|
|---|
| 8161 | # builddir for the .java files.
|
|---|
| 8162 | h=`pwd`
|
|---|
| 8163 | : > deps.mk
|
|---|
| 8164 | ( (cd $srcdir && find . \( -name '*.java' -o -name '*.cc' \) -print) ;
|
|---|
| 8165 | find . \( -name '*.java' -o -name '*.cc' \) -print) | \
|
|---|
| 8166 | fgrep -v testsuite | \
|
|---|
| 8167 | sed -e 's/\.java/.d/'\;'s/\.cc/.d/' | \
|
|---|
| 8168 | while read f; do
|
|---|
| 8169 | echo "include $f" >> deps.mk
|
|---|
| 8170 | test -f $f || {
|
|---|
| 8171 |
|
|---|
| 8172 | d=`echo $f | sed -e 's,/[^/]*$,,'`
|
|---|
| 8173 |
|
|---|
| 8174 | if test ! -d $d; then
|
|---|
| 8175 | $libgcj_basedir/../mkinstalldirs $d
|
|---|
| 8176 | fi;
|
|---|
| 8177 | echo > $f
|
|---|
| 8178 | }
|
|---|
| 8179 | done
|
|---|
| 8180 |
|
|---|
| 8181 | exit 0
|
|---|
| 8182 | EOF
|
|---|
| 8183 | chmod +x $CONFIG_STATUS
|
|---|
| 8184 | rm -fr confdefs* $ac_clean_files
|
|---|
| 8185 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
|---|
| 8186 |
|
|---|
| 8187 | if test "$no_recursion" != yes; then
|
|---|
| 8188 |
|
|---|
| 8189 | # Remove --cache-file and --srcdir arguments so they do not pile up.
|
|---|
| 8190 | ac_sub_configure_args=
|
|---|
| 8191 | ac_prev=
|
|---|
| 8192 | for ac_arg in $ac_configure_args; do
|
|---|
| 8193 | if test -n "$ac_prev"; then
|
|---|
| 8194 | ac_prev=
|
|---|
| 8195 | continue
|
|---|
| 8196 | fi
|
|---|
| 8197 | case "$ac_arg" in
|
|---|
| 8198 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
|---|
| 8199 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
|---|
| 8200 | ac_prev=cache_file ;;
|
|---|
| 8201 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
|---|
| 8202 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
|---|
| 8203 | ;;
|
|---|
| 8204 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
|---|
| 8205 | ac_prev=srcdir ;;
|
|---|
| 8206 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
|---|
| 8207 | ;;
|
|---|
| 8208 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
|
|---|
| 8209 | esac
|
|---|
| 8210 | done
|
|---|
| 8211 |
|
|---|
| 8212 | for ac_config_dir in $DIRLTDL; do
|
|---|
| 8213 |
|
|---|
| 8214 | # Do not complain, so a configure script can configure whichever
|
|---|
| 8215 | # parts of a large source tree are present.
|
|---|
| 8216 | if test ! -d $srcdir/$ac_config_dir; then
|
|---|
| 8217 | continue
|
|---|
| 8218 | fi
|
|---|
| 8219 |
|
|---|
| 8220 | echo configuring in $ac_config_dir
|
|---|
| 8221 |
|
|---|
| 8222 | case "$srcdir" in
|
|---|
| 8223 | .) ;;
|
|---|
| 8224 | *)
|
|---|
| 8225 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
|
|---|
| 8226 | else
|
|---|
| 8227 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
|
|---|
| 8228 | fi
|
|---|
| 8229 | ;;
|
|---|
| 8230 | esac
|
|---|
| 8231 |
|
|---|
| 8232 | ac_popdir=`pwd`
|
|---|
| 8233 | cd $ac_config_dir
|
|---|
| 8234 |
|
|---|
| 8235 | # A "../" for each directory in /$ac_config_dir.
|
|---|
| 8236 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
|
|---|
| 8237 |
|
|---|
| 8238 | case "$srcdir" in
|
|---|
| 8239 | .) # No --srcdir option. We are building in place.
|
|---|
| 8240 | ac_sub_srcdir=$srcdir ;;
|
|---|
| 8241 | [/\\]* | [a-zA-Z]:*) # Absolute path.
|
|---|
| 8242 | ac_sub_srcdir=$srcdir/$ac_config_dir ;;
|
|---|
| 8243 | *) # Relative path.
|
|---|
| 8244 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
|
|---|
| 8245 | esac
|
|---|
| 8246 |
|
|---|
| 8247 | # Check for guested configure; otherwise get Cygnus style configure.
|
|---|
| 8248 | if test -f $ac_sub_srcdir/configure; then
|
|---|
| 8249 | ac_sub_configure=$ac_sub_srcdir/configure
|
|---|
| 8250 | elif test -f $ac_sub_srcdir/configure.in; then
|
|---|
| 8251 | ac_current_dir=`pwd`
|
|---|
| 8252 | cd $ac_sub_srcdir
|
|---|
| 8253 | autoconf
|
|---|
| 8254 | cd $ac_current_dir
|
|---|
| 8255 | ac_sub_configure=$ac_sub_srcdir/configure
|
|---|
| 8256 | else
|
|---|
| 8257 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
|
|---|
| 8258 | ac_sub_configure=
|
|---|
| 8259 | fi
|
|---|
| 8260 |
|
|---|
| 8261 | # The recursion is here.
|
|---|
| 8262 | if test -n "$ac_sub_configure"; then
|
|---|
| 8263 |
|
|---|
| 8264 | # Make the cache file name correct relative to the subdirectory.
|
|---|
| 8265 | case "$cache_file" in
|
|---|
| 8266 | [/\\]* | [a-zA-Z]:*) ac_sub_cache_file=$cache_file ;;
|
|---|
| 8267 | *) # Relative path.
|
|---|
| 8268 | ac_sub_cache_file="$ac_dots$cache_file" ;;
|
|---|
| 8269 | esac
|
|---|
| 8270 | case "$ac_given_INSTALL" in
|
|---|
| 8271 | [/$\\]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
|
|---|
| 8272 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
|---|
| 8273 | esac
|
|---|
| 8274 |
|
|---|
| 8275 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
|
|---|
| 8276 | # The eval makes quoting arguments work.
|
|---|
| 8277 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
|
|---|
| 8278 | then :
|
|---|
| 8279 | else
|
|---|
| 8280 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
|
|---|
| 8281 | fi
|
|---|
| 8282 | fi
|
|---|
| 8283 |
|
|---|
| 8284 | cd $ac_popdir
|
|---|
| 8285 | done
|
|---|
| 8286 | fi
|
|---|
| 8287 |
|
|---|