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