| 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=`${PWDCMD-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 | case $host_cpu in | 
|---|
| 1705 | hppa*) | 
|---|
| 1706 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | 
|---|
| 1707 | lt_cv_file_magic_cmd=/usr/bin/file | 
|---|
| 1708 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | 
|---|
| 1709 | ;; | 
|---|
| 1710 | ia64*) | 
|---|
| 1711 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | 
|---|
| 1712 | lt_cv_file_magic_cmd=/usr/bin/file | 
|---|
| 1713 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | 
|---|
| 1714 | ;; | 
|---|
| 1715 | esac | 
|---|
| 1716 | ;; | 
|---|
| 1717 |  | 
|---|
| 1718 | irix5* | irix6*) | 
|---|
| 1719 | case $host_os in | 
|---|
| 1720 | irix5*) | 
|---|
| 1721 | # this will be overridden with pass_all, but let us keep it just in case | 
|---|
| 1722 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | 
|---|
| 1723 | ;; | 
|---|
| 1724 | *) | 
|---|
| 1725 | case $LD in | 
|---|
| 1726 | *-32|*"-32 ") libmagic=32-bit;; | 
|---|
| 1727 | *-n32|*"-n32 ") libmagic=N32;; | 
|---|
| 1728 | *-64|*"-64 ") libmagic=64-bit;; | 
|---|
| 1729 | *) libmagic=never-match;; | 
|---|
| 1730 | esac | 
|---|
| 1731 | # this will be overridden with pass_all, but let us keep it just in case | 
|---|
| 1732 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" | 
|---|
| 1733 | ;; | 
|---|
| 1734 | esac | 
|---|
| 1735 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | 
|---|
| 1736 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 1737 | ;; | 
|---|
| 1738 |  | 
|---|
| 1739 | # This must be Linux ELF. | 
|---|
| 1740 | linux-gnu*) | 
|---|
| 1741 | case $host_cpu in | 
|---|
| 1742 | alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* ) | 
|---|
| 1743 | lt_cv_deplibs_check_method=pass_all ;; | 
|---|
| 1744 | *) | 
|---|
| 1745 | # glibc up to 2.1.1 does not perform some relocations on ARM | 
|---|
| 1746 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; | 
|---|
| 1747 | esac | 
|---|
| 1748 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` | 
|---|
| 1749 | ;; | 
|---|
| 1750 |  | 
|---|
| 1751 | netbsd*) | 
|---|
| 1752 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 
|---|
| 1753 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' | 
|---|
| 1754 | else | 
|---|
| 1755 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' | 
|---|
| 1756 | fi | 
|---|
| 1757 | ;; | 
|---|
| 1758 |  | 
|---|
| 1759 | newsos6) | 
|---|
| 1760 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | 
|---|
| 1761 | lt_cv_file_magic_cmd=/usr/bin/file | 
|---|
| 1762 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | 
|---|
| 1763 | ;; | 
|---|
| 1764 |  | 
|---|
| 1765 | os2*) | 
|---|
| 1766 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 1767 | ;; | 
|---|
| 1768 |  | 
|---|
| 1769 | osf3* | osf4* | osf5*) | 
|---|
| 1770 | # this will be overridden with pass_all, but let us keep it just in case | 
|---|
| 1771 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | 
|---|
| 1772 | lt_cv_file_magic_test_file=/shlib/libc.so | 
|---|
| 1773 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 1774 | ;; | 
|---|
| 1775 |  | 
|---|
| 1776 | sco3.2v5*) | 
|---|
| 1777 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 1778 | ;; | 
|---|
| 1779 |  | 
|---|
| 1780 | solaris*) | 
|---|
| 1781 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 1782 | lt_cv_file_magic_test_file=/lib/libc.so | 
|---|
| 1783 | ;; | 
|---|
| 1784 |  | 
|---|
| 1785 | sysv5uw[78]* | sysv4*uw2*) | 
|---|
| 1786 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 1787 | ;; | 
|---|
| 1788 |  | 
|---|
| 1789 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
|---|
| 1790 | case $host_vendor in | 
|---|
| 1791 | ncr) | 
|---|
| 1792 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 1793 | ;; | 
|---|
| 1794 | motorola) | 
|---|
| 1795 | 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]' | 
|---|
| 1796 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | 
|---|
| 1797 | ;; | 
|---|
| 1798 | esac | 
|---|
| 1799 | ;; | 
|---|
| 1800 | esac | 
|---|
| 1801 |  | 
|---|
| 1802 | fi | 
|---|
| 1803 |  | 
|---|
| 1804 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6 | 
|---|
| 1805 | file_magic_cmd=$lt_cv_file_magic_cmd | 
|---|
| 1806 | deplibs_check_method=$lt_cv_deplibs_check_method | 
|---|
| 1807 |  | 
|---|
| 1808 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6 | 
|---|
| 1809 | echo "configure:1810: checking for object suffix" >&5 | 
|---|
| 1810 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then | 
|---|
| 1811 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1812 | else | 
|---|
| 1813 | rm -f conftest* | 
|---|
| 1814 | echo 'int i = 1;' > conftest.$ac_ext | 
|---|
| 1815 | if { (eval echo configure:1816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 1816 | for ac_file in conftest.*; do | 
|---|
| 1817 | case $ac_file in | 
|---|
| 1818 | *.c) ;; | 
|---|
| 1819 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; | 
|---|
| 1820 | esac | 
|---|
| 1821 | done | 
|---|
| 1822 | else | 
|---|
| 1823 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } | 
|---|
| 1824 | fi | 
|---|
| 1825 | rm -f conftest* | 
|---|
| 1826 | fi | 
|---|
| 1827 |  | 
|---|
| 1828 | echo "$ac_t""$ac_cv_objext" 1>&6 | 
|---|
| 1829 | OBJEXT=$ac_cv_objext | 
|---|
| 1830 | ac_objext=$ac_cv_objext | 
|---|
| 1831 |  | 
|---|
| 1832 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | 
|---|
| 1833 |  | 
|---|
| 1834 | # Only perform the check for file, if the check method requires it | 
|---|
| 1835 | case $deplibs_check_method in | 
|---|
| 1836 | file_magic*) | 
|---|
| 1837 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | 
|---|
| 1838 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 | 
|---|
| 1839 | echo "configure:1840: checking for ${ac_tool_prefix}file" >&5 | 
|---|
| 1840 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then | 
|---|
| 1841 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1842 | else | 
|---|
| 1843 | case $MAGIC_CMD in | 
|---|
| 1844 | /*) | 
|---|
| 1845 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 
|---|
| 1846 | ;; | 
|---|
| 1847 | ?:/*) | 
|---|
| 1848 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | 
|---|
| 1849 | ;; | 
|---|
| 1850 | *) | 
|---|
| 1851 | ac_save_MAGIC_CMD="$MAGIC_CMD" | 
|---|
| 1852 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" | 
|---|
| 1853 | ac_dummy="/usr/bin:$PATH" | 
|---|
| 1854 | for ac_dir in $ac_dummy; do | 
|---|
| 1855 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 1856 | if test -f $ac_dir/${ac_tool_prefix}file; then | 
|---|
| 1857 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | 
|---|
| 1858 | if test -n "$file_magic_test_file"; then | 
|---|
| 1859 | case $deplibs_check_method in | 
|---|
| 1860 | "file_magic "*) | 
|---|
| 1861 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | 
|---|
| 1862 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|---|
| 1863 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 
|---|
| 1864 | egrep "$file_magic_regex" > /dev/null; then | 
|---|
| 1865 | : | 
|---|
| 1866 | else | 
|---|
| 1867 | cat <<EOF 1>&2 | 
|---|
| 1868 |  | 
|---|
| 1869 | *** Warning: the command libtool uses to detect shared libraries, | 
|---|
| 1870 | *** $file_magic_cmd, produces output that libtool cannot recognize. | 
|---|
| 1871 | *** The result is that libtool may fail to recognize shared libraries | 
|---|
| 1872 | *** as such.  This will affect the creation of libtool libraries that | 
|---|
| 1873 | *** depend on shared libraries, but programs linked with such libtool | 
|---|
| 1874 | *** libraries will work regardless of this problem.  Nevertheless, you | 
|---|
| 1875 | *** may want to report the problem to your system manager and/or to | 
|---|
| 1876 | *** bug-libtool@gnu.org | 
|---|
| 1877 |  | 
|---|
| 1878 | EOF | 
|---|
| 1879 | fi ;; | 
|---|
| 1880 | esac | 
|---|
| 1881 | fi | 
|---|
| 1882 | break | 
|---|
| 1883 | fi | 
|---|
| 1884 | done | 
|---|
| 1885 | IFS="$ac_save_ifs" | 
|---|
| 1886 | MAGIC_CMD="$ac_save_MAGIC_CMD" | 
|---|
| 1887 | ;; | 
|---|
| 1888 | esac | 
|---|
| 1889 | fi | 
|---|
| 1890 |  | 
|---|
| 1891 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|---|
| 1892 | if test -n "$MAGIC_CMD"; then | 
|---|
| 1893 | echo "$ac_t""$MAGIC_CMD" 1>&6 | 
|---|
| 1894 | else | 
|---|
| 1895 | echo "$ac_t""no" 1>&6 | 
|---|
| 1896 | fi | 
|---|
| 1897 |  | 
|---|
| 1898 | if test -z "$lt_cv_path_MAGIC_CMD"; then | 
|---|
| 1899 | if test -n "$ac_tool_prefix"; then | 
|---|
| 1900 | echo $ac_n "checking for file""... $ac_c" 1>&6 | 
|---|
| 1901 | echo "configure:1902: checking for file" >&5 | 
|---|
| 1902 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then | 
|---|
| 1903 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1904 | else | 
|---|
| 1905 | case $MAGIC_CMD in | 
|---|
| 1906 | /*) | 
|---|
| 1907 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 
|---|
| 1908 | ;; | 
|---|
| 1909 | ?:/*) | 
|---|
| 1910 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | 
|---|
| 1911 | ;; | 
|---|
| 1912 | *) | 
|---|
| 1913 | ac_save_MAGIC_CMD="$MAGIC_CMD" | 
|---|
| 1914 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" | 
|---|
| 1915 | ac_dummy="/usr/bin:$PATH" | 
|---|
| 1916 | for ac_dir in $ac_dummy; do | 
|---|
| 1917 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 1918 | if test -f $ac_dir/file; then | 
|---|
| 1919 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | 
|---|
| 1920 | if test -n "$file_magic_test_file"; then | 
|---|
| 1921 | case $deplibs_check_method in | 
|---|
| 1922 | "file_magic "*) | 
|---|
| 1923 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | 
|---|
| 1924 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|---|
| 1925 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 
|---|
| 1926 | egrep "$file_magic_regex" > /dev/null; then | 
|---|
| 1927 | : | 
|---|
| 1928 | else | 
|---|
| 1929 | cat <<EOF 1>&2 | 
|---|
| 1930 |  | 
|---|
| 1931 | *** Warning: the command libtool uses to detect shared libraries, | 
|---|
| 1932 | *** $file_magic_cmd, produces output that libtool cannot recognize. | 
|---|
| 1933 | *** The result is that libtool may fail to recognize shared libraries | 
|---|
| 1934 | *** as such.  This will affect the creation of libtool libraries that | 
|---|
| 1935 | *** depend on shared libraries, but programs linked with such libtool | 
|---|
| 1936 | *** libraries will work regardless of this problem.  Nevertheless, you | 
|---|
| 1937 | *** may want to report the problem to your system manager and/or to | 
|---|
| 1938 | *** bug-libtool@gnu.org | 
|---|
| 1939 |  | 
|---|
| 1940 | EOF | 
|---|
| 1941 | fi ;; | 
|---|
| 1942 | esac | 
|---|
| 1943 | fi | 
|---|
| 1944 | break | 
|---|
| 1945 | fi | 
|---|
| 1946 | done | 
|---|
| 1947 | IFS="$ac_save_ifs" | 
|---|
| 1948 | MAGIC_CMD="$ac_save_MAGIC_CMD" | 
|---|
| 1949 | ;; | 
|---|
| 1950 | esac | 
|---|
| 1951 | fi | 
|---|
| 1952 |  | 
|---|
| 1953 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|---|
| 1954 | if test -n "$MAGIC_CMD"; then | 
|---|
| 1955 | echo "$ac_t""$MAGIC_CMD" 1>&6 | 
|---|
| 1956 | else | 
|---|
| 1957 | echo "$ac_t""no" 1>&6 | 
|---|
| 1958 | fi | 
|---|
| 1959 |  | 
|---|
| 1960 | else | 
|---|
| 1961 | MAGIC_CMD=: | 
|---|
| 1962 | fi | 
|---|
| 1963 | fi | 
|---|
| 1964 |  | 
|---|
| 1965 | fi | 
|---|
| 1966 | ;; | 
|---|
| 1967 | esac | 
|---|
| 1968 |  | 
|---|
| 1969 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
|---|
| 1970 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
|---|
| 1971 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 1972 | echo "configure:1973: checking for $ac_word" >&5 | 
|---|
| 1973 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | 
|---|
| 1974 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1975 | else | 
|---|
| 1976 | if test -n "$RANLIB"; then | 
|---|
| 1977 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
|---|
| 1978 | else | 
|---|
| 1979 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 1980 | ac_dummy="$PATH" | 
|---|
| 1981 | for ac_dir in $ac_dummy; do | 
|---|
| 1982 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 1983 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 1984 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 1985 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
|---|
| 1986 | break | 
|---|
| 1987 | fi | 
|---|
| 1988 | done | 
|---|
| 1989 | IFS="$ac_save_ifs" | 
|---|
| 1990 | fi | 
|---|
| 1991 | fi | 
|---|
| 1992 | RANLIB="$ac_cv_prog_RANLIB" | 
|---|
| 1993 | if test -n "$RANLIB"; then | 
|---|
| 1994 | echo "$ac_t""$RANLIB" 1>&6 | 
|---|
| 1995 | else | 
|---|
| 1996 | echo "$ac_t""no" 1>&6 | 
|---|
| 1997 | fi | 
|---|
| 1998 |  | 
|---|
| 1999 |  | 
|---|
| 2000 | if test -z "$ac_cv_prog_RANLIB"; then | 
|---|
| 2001 | if test -n "$ac_tool_prefix"; then | 
|---|
| 2002 | # Extract the first word of "ranlib", so it can be a program name with args. | 
|---|
| 2003 | set dummy ranlib; ac_word=$2 | 
|---|
| 2004 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 2005 | echo "configure:2006: checking for $ac_word" >&5 | 
|---|
| 2006 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | 
|---|
| 2007 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 2008 | else | 
|---|
| 2009 | if test -n "$RANLIB"; then | 
|---|
| 2010 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
|---|
| 2011 | else | 
|---|
| 2012 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 2013 | ac_dummy="$PATH" | 
|---|
| 2014 | for ac_dir in $ac_dummy; do | 
|---|
| 2015 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 2016 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 2017 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 2018 | ac_cv_prog_RANLIB="ranlib" | 
|---|
| 2019 | break | 
|---|
| 2020 | fi | 
|---|
| 2021 | done | 
|---|
| 2022 | IFS="$ac_save_ifs" | 
|---|
| 2023 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | 
|---|
| 2024 | fi | 
|---|
| 2025 | fi | 
|---|
| 2026 | RANLIB="$ac_cv_prog_RANLIB" | 
|---|
| 2027 | if test -n "$RANLIB"; then | 
|---|
| 2028 | echo "$ac_t""$RANLIB" 1>&6 | 
|---|
| 2029 | else | 
|---|
| 2030 | echo "$ac_t""no" 1>&6 | 
|---|
| 2031 | fi | 
|---|
| 2032 |  | 
|---|
| 2033 | else | 
|---|
| 2034 | RANLIB=":" | 
|---|
| 2035 | fi | 
|---|
| 2036 | fi | 
|---|
| 2037 |  | 
|---|
| 2038 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | 
|---|
| 2039 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | 
|---|
| 2040 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 2041 | echo "configure:2042: checking for $ac_word" >&5 | 
|---|
| 2042 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then | 
|---|
| 2043 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 2044 | else | 
|---|
| 2045 | if test -n "$STRIP"; then | 
|---|
| 2046 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | 
|---|
| 2047 | else | 
|---|
| 2048 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 2049 | ac_dummy="$PATH" | 
|---|
| 2050 | for ac_dir in $ac_dummy; do | 
|---|
| 2051 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 2052 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 2053 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 2054 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | 
|---|
| 2055 | break | 
|---|
| 2056 | fi | 
|---|
| 2057 | done | 
|---|
| 2058 | IFS="$ac_save_ifs" | 
|---|
| 2059 | fi | 
|---|
| 2060 | fi | 
|---|
| 2061 | STRIP="$ac_cv_prog_STRIP" | 
|---|
| 2062 | if test -n "$STRIP"; then | 
|---|
| 2063 | echo "$ac_t""$STRIP" 1>&6 | 
|---|
| 2064 | else | 
|---|
| 2065 | echo "$ac_t""no" 1>&6 | 
|---|
| 2066 | fi | 
|---|
| 2067 |  | 
|---|
| 2068 |  | 
|---|
| 2069 | if test -z "$ac_cv_prog_STRIP"; then | 
|---|
| 2070 | if test -n "$ac_tool_prefix"; then | 
|---|
| 2071 | # Extract the first word of "strip", so it can be a program name with args. | 
|---|
| 2072 | set dummy strip; ac_word=$2 | 
|---|
| 2073 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 2074 | echo "configure:2075: checking for $ac_word" >&5 | 
|---|
| 2075 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then | 
|---|
| 2076 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 2077 | else | 
|---|
| 2078 | if test -n "$STRIP"; then | 
|---|
| 2079 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | 
|---|
| 2080 | else | 
|---|
| 2081 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 2082 | ac_dummy="$PATH" | 
|---|
| 2083 | for ac_dir in $ac_dummy; do | 
|---|
| 2084 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 2085 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 2086 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 2087 | ac_cv_prog_STRIP="strip" | 
|---|
| 2088 | break | 
|---|
| 2089 | fi | 
|---|
| 2090 | done | 
|---|
| 2091 | IFS="$ac_save_ifs" | 
|---|
| 2092 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" | 
|---|
| 2093 | fi | 
|---|
| 2094 | fi | 
|---|
| 2095 | STRIP="$ac_cv_prog_STRIP" | 
|---|
| 2096 | if test -n "$STRIP"; then | 
|---|
| 2097 | echo "$ac_t""$STRIP" 1>&6 | 
|---|
| 2098 | else | 
|---|
| 2099 | echo "$ac_t""no" 1>&6 | 
|---|
| 2100 | fi | 
|---|
| 2101 |  | 
|---|
| 2102 | else | 
|---|
| 2103 | STRIP=":" | 
|---|
| 2104 | fi | 
|---|
| 2105 | fi | 
|---|
| 2106 |  | 
|---|
| 2107 |  | 
|---|
| 2108 | # Check for any special flags to pass to ltconfig. | 
|---|
| 2109 | libtool_flags="--cache-file=$cache_file" | 
|---|
| 2110 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | 
|---|
| 2111 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | 
|---|
| 2112 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | 
|---|
| 2113 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" | 
|---|
| 2114 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | 
|---|
| 2115 |  | 
|---|
| 2116 |  | 
|---|
| 2117 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | 
|---|
| 2118 | if test "${enable_libtool_lock+set}" = set; then | 
|---|
| 2119 | enableval="$enable_libtool_lock" | 
|---|
| 2120 | : | 
|---|
| 2121 | fi | 
|---|
| 2122 |  | 
|---|
| 2123 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" | 
|---|
| 2124 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | 
|---|
| 2125 |  | 
|---|
| 2126 | # Check whether --with-pic or --without-pic was given. | 
|---|
| 2127 | if test "${with_pic+set}" = set; then | 
|---|
| 2128 | withval="$with_pic" | 
|---|
| 2129 | pic_mode="$withval" | 
|---|
| 2130 | else | 
|---|
| 2131 | pic_mode=default | 
|---|
| 2132 | fi | 
|---|
| 2133 |  | 
|---|
| 2134 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" | 
|---|
| 2135 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | 
|---|
| 2136 |  | 
|---|
| 2137 | # Some flags need to be propagated to the compiler or linker for good | 
|---|
| 2138 | # libtool support. | 
|---|
| 2139 | case $host in | 
|---|
| 2140 | *-*-irix6*) | 
|---|
| 2141 | # Find out which ABI we are using. | 
|---|
| 2142 | echo '#line 2143 "configure"' > conftest.$ac_ext | 
|---|
| 2143 | if { (eval echo configure:2144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 2144 | if test "$lt_cv_prog_gnu_ld" = yes; then | 
|---|
| 2145 | case `/usr/bin/file conftest.$ac_objext` in | 
|---|
| 2146 | *32-bit*) | 
|---|
| 2147 | LD="${LD-ld} -melf32bsmip" | 
|---|
| 2148 | ;; | 
|---|
| 2149 | *N32*) | 
|---|
| 2150 | LD="${LD-ld} -melf32bmipn32" | 
|---|
| 2151 | ;; | 
|---|
| 2152 | *64-bit*) | 
|---|
| 2153 | LD="${LD-ld} -melf64bmip" | 
|---|
| 2154 | ;; | 
|---|
| 2155 | esac | 
|---|
| 2156 | else | 
|---|
| 2157 | case `/usr/bin/file conftest.$ac_objext` in | 
|---|
| 2158 | *32-bit*) | 
|---|
| 2159 | LD="${LD-ld} -32" | 
|---|
| 2160 | ;; | 
|---|
| 2161 | *N32*) | 
|---|
| 2162 | LD="${LD-ld} -n32" | 
|---|
| 2163 | ;; | 
|---|
| 2164 | *64-bit*) | 
|---|
| 2165 | LD="${LD-ld} -64" | 
|---|
| 2166 | ;; | 
|---|
| 2167 | esac | 
|---|
| 2168 | fi | 
|---|
| 2169 | fi | 
|---|
| 2170 | rm -rf conftest* | 
|---|
| 2171 | ;; | 
|---|
| 2172 |  | 
|---|
| 2173 | ia64-*-hpux*) | 
|---|
| 2174 | # Find out which ABI we are using. | 
|---|
| 2175 | echo 'int i;' > conftest.$ac_ext | 
|---|
| 2176 | if { (eval echo configure:2177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 2177 | case "`/usr/bin/file conftest.o`" in | 
|---|
| 2178 | *ELF-32*) | 
|---|
| 2179 | HPUX_IA64_MODE="32" | 
|---|
| 2180 | ;; | 
|---|
| 2181 | *ELF-64*) | 
|---|
| 2182 | HPUX_IA64_MODE="64" | 
|---|
| 2183 | ;; | 
|---|
| 2184 | esac | 
|---|
| 2185 | fi | 
|---|
| 2186 | rm -rf conftest* | 
|---|
| 2187 | ;; | 
|---|
| 2188 |  | 
|---|
| 2189 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | 
|---|
| 2190 | # Find out which ABI we are using. | 
|---|
| 2191 | echo 'int i;' > conftest.$ac_ext | 
|---|
| 2192 | if { (eval echo configure:2193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 2193 | case "`/usr/bin/file conftest.o`" in | 
|---|
| 2194 | *32-bit*) | 
|---|
| 2195 | case $host in | 
|---|
| 2196 | x86_64-*linux*) | 
|---|
| 2197 | LD="${LD-ld} -m elf_i386" | 
|---|
| 2198 | ;; | 
|---|
| 2199 | ppc64-*linux*|powerpc64-*linux*) | 
|---|
| 2200 | LD="${LD-ld} -m elf32ppclinux" | 
|---|
| 2201 | ;; | 
|---|
| 2202 | s390x-*linux*) | 
|---|
| 2203 | LD="${LD-ld} -m elf_s390" | 
|---|
| 2204 | ;; | 
|---|
| 2205 | sparc64-*linux*) | 
|---|
| 2206 | LD="${LD-ld} -m elf32_sparc" | 
|---|
| 2207 | ;; | 
|---|
| 2208 | esac | 
|---|
| 2209 | ;; | 
|---|
| 2210 | *64-bit*) | 
|---|
| 2211 | case $host in | 
|---|
| 2212 | x86_64-*linux*) | 
|---|
| 2213 | LD="${LD-ld} -m elf_x86_64" | 
|---|
| 2214 | ;; | 
|---|
| 2215 | ppc*-*linux*|powerpc*-*linux*) | 
|---|
| 2216 | LD="${LD-ld} -m elf64ppc" | 
|---|
| 2217 | ;; | 
|---|
| 2218 | s390*-*linux*) | 
|---|
| 2219 | LD="${LD-ld} -m elf64_s390" | 
|---|
| 2220 | ;; | 
|---|
| 2221 | sparc*-*linux*) | 
|---|
| 2222 | LD="${LD-ld} -m elf64_sparc" | 
|---|
| 2223 | ;; | 
|---|
| 2224 | esac | 
|---|
| 2225 | ;; | 
|---|
| 2226 | esac | 
|---|
| 2227 | fi | 
|---|
| 2228 | rm -rf conftest* | 
|---|
| 2229 | ;; | 
|---|
| 2230 |  | 
|---|
| 2231 | *-*-sco3.2v5*) | 
|---|
| 2232 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | 
|---|
| 2233 | SAVE_CFLAGS="$CFLAGS" | 
|---|
| 2234 | CFLAGS="$CFLAGS -belf" | 
|---|
| 2235 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 | 
|---|
| 2236 | echo "configure:2237: checking whether the C compiler needs -belf" >&5 | 
|---|
| 2237 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then | 
|---|
| 2238 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 2239 | else | 
|---|
| 2240 |  | 
|---|
| 2241 | ac_ext=c | 
|---|
| 2242 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
|---|
| 2243 | ac_cpp='$CPP $CPPFLAGS' | 
|---|
| 2244 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
|---|
| 2245 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
|---|
| 2246 | cross_compiling=$ac_cv_prog_cc_cross | 
|---|
| 2247 |  | 
|---|
| 2248 | cat > conftest.$ac_ext <<EOF | 
|---|
| 2249 | #line 2250 "configure" | 
|---|
| 2250 | #include "confdefs.h" | 
|---|
| 2251 |  | 
|---|
| 2252 | int main() { | 
|---|
| 2253 |  | 
|---|
| 2254 | ; return 0; } | 
|---|
| 2255 | EOF | 
|---|
| 2256 | if { (eval echo configure:2257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 2257 | rm -rf conftest* | 
|---|
| 2258 | lt_cv_cc_needs_belf=yes | 
|---|
| 2259 | else | 
|---|
| 2260 | echo "configure: failed program was:" >&5 | 
|---|
| 2261 | cat conftest.$ac_ext >&5 | 
|---|
| 2262 | rm -rf conftest* | 
|---|
| 2263 | lt_cv_cc_needs_belf=no | 
|---|
| 2264 | fi | 
|---|
| 2265 | rm -f conftest* | 
|---|
| 2266 | ac_ext=c | 
|---|
| 2267 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
|---|
| 2268 | ac_cpp='$CPP $CPPFLAGS' | 
|---|
| 2269 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
|---|
| 2270 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
|---|
| 2271 | cross_compiling=$ac_cv_prog_cc_cross | 
|---|
| 2272 |  | 
|---|
| 2273 | fi | 
|---|
| 2274 |  | 
|---|
| 2275 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 | 
|---|
| 2276 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | 
|---|
| 2277 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | 
|---|
| 2278 | CFLAGS="$SAVE_CFLAGS" | 
|---|
| 2279 | fi | 
|---|
| 2280 | ;; | 
|---|
| 2281 |  | 
|---|
| 2282 |  | 
|---|
| 2283 | esac | 
|---|
| 2284 |  | 
|---|
| 2285 |  | 
|---|
| 2286 | # Save cache, so that ltconfig can load it | 
|---|
| 2287 | cat > confcache <<\EOF | 
|---|
| 2288 | # This file is a shell script that caches the results of configure | 
|---|
| 2289 | # tests run on this system so they can be shared between configure | 
|---|
| 2290 | # scripts and configure runs.  It is not useful on other systems. | 
|---|
| 2291 | # If it contains results you don't want to keep, you may remove or edit it. | 
|---|
| 2292 | # | 
|---|
| 2293 | # By default, configure uses ./config.cache as the cache file, | 
|---|
| 2294 | # creating it if it does not exist already.  You can give configure | 
|---|
| 2295 | # the --cache-file=FILE option to use a different cache file; that is | 
|---|
| 2296 | # what configure does when it calls configure scripts in | 
|---|
| 2297 | # subdirectories, so they share the cache. | 
|---|
| 2298 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | 
|---|
| 2299 | # config.status only pays attention to the cache file if you give it the | 
|---|
| 2300 | # --recheck option to rerun configure. | 
|---|
| 2301 | # | 
|---|
| 2302 | EOF | 
|---|
| 2303 | # The following way of writing the cache mishandles newlines in values, | 
|---|
| 2304 | # but we know of no workaround that is simple, portable, and efficient. | 
|---|
| 2305 | # So, don't put newlines in cache variables' values. | 
|---|
| 2306 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
|---|
| 2307 | # and sets the high bit in the cache file unless we assign to the vars. | 
|---|
| 2308 | (set) 2>&1 | | 
|---|
| 2309 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | 
|---|
| 2310 | *ac_space=\ *) | 
|---|
| 2311 | # `set' does not quote correctly, so add quotes (double-quote substitution | 
|---|
| 2312 | # turns \\\\ into \\, and sed turns \\ into \). | 
|---|
| 2313 | sed -n \ | 
|---|
| 2314 | -e "s/'/'\\\\''/g" \ | 
|---|
| 2315 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | 
|---|
| 2316 | ;; | 
|---|
| 2317 | *) | 
|---|
| 2318 | # `set' quotes correctly as required by POSIX, so do not add quotes. | 
|---|
| 2319 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | 
|---|
| 2320 | ;; | 
|---|
| 2321 | esac >> confcache | 
|---|
| 2322 | if cmp -s $cache_file confcache; then | 
|---|
| 2323 | : | 
|---|
| 2324 | else | 
|---|
| 2325 | if test -w $cache_file; then | 
|---|
| 2326 | echo "updating cache $cache_file" | 
|---|
| 2327 | cat confcache > $cache_file | 
|---|
| 2328 | else | 
|---|
| 2329 | echo "not updating unwritable cache $cache_file" | 
|---|
| 2330 | fi | 
|---|
| 2331 | fi | 
|---|
| 2332 | rm -f confcache | 
|---|
| 2333 |  | 
|---|
| 2334 |  | 
|---|
| 2335 | # Actually configure libtool.  ac_aux_dir is where install-sh is found. | 
|---|
| 2336 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ | 
|---|
| 2337 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ | 
|---|
| 2338 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ | 
|---|
| 2339 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | 
|---|
| 2340 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | 
|---|
| 2341 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | 
|---|
| 2342 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ | 
|---|
| 2343 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ | 
|---|
| 2344 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } | 
|---|
| 2345 |  | 
|---|
| 2346 | # Reload cache, that may have been modified by ltconfig | 
|---|
| 2347 | if test -r "$cache_file"; then | 
|---|
| 2348 | echo "loading cache $cache_file" | 
|---|
| 2349 | . $cache_file | 
|---|
| 2350 | else | 
|---|
| 2351 | echo "creating cache $cache_file" | 
|---|
| 2352 | > $cache_file | 
|---|
| 2353 | fi | 
|---|
| 2354 |  | 
|---|
| 2355 |  | 
|---|
| 2356 | # This can be used to rebuild libtool when needed | 
|---|
| 2357 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" | 
|---|
| 2358 |  | 
|---|
| 2359 | # Always use our own libtool. | 
|---|
| 2360 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | 
|---|
| 2361 |  | 
|---|
| 2362 | # Redirect the config.log output again, so that the ltconfig log is not | 
|---|
| 2363 | # clobbered by the next message. | 
|---|
| 2364 | exec 5>>./config.log | 
|---|
| 2365 |  | 
|---|
| 2366 |  | 
|---|
| 2367 |  | 
|---|
| 2368 |  | 
|---|
| 2369 |  | 
|---|
| 2370 |  | 
|---|
| 2371 |  | 
|---|
| 2372 | test "$AR" || AR=ar | 
|---|
| 2373 |  | 
|---|
| 2374 | if test "$RANLIB"; then : | 
|---|
| 2375 |  | 
|---|
| 2376 | else | 
|---|
| 2377 | # Extract the first word of "ranlib", so it can be a program name with args. | 
|---|
| 2378 | set dummy ranlib; ac_word=$2 | 
|---|
| 2379 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 2380 | echo "configure:2381: checking for $ac_word" >&5 | 
|---|
| 2381 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | 
|---|
| 2382 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 2383 | else | 
|---|
| 2384 | if test -n "$RANLIB"; then | 
|---|
| 2385 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
|---|
| 2386 | else | 
|---|
| 2387 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 2388 | ac_dummy="$PATH" | 
|---|
| 2389 | for ac_dir in $ac_dummy; do | 
|---|
| 2390 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 2391 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 2392 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 2393 | ac_cv_prog_RANLIB="ranlib" | 
|---|
| 2394 | break | 
|---|
| 2395 | fi | 
|---|
| 2396 | done | 
|---|
| 2397 | IFS="$ac_save_ifs" | 
|---|
| 2398 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | 
|---|
| 2399 | fi | 
|---|
| 2400 | fi | 
|---|
| 2401 | RANLIB="$ac_cv_prog_RANLIB" | 
|---|
| 2402 | if test -n "$RANLIB"; then | 
|---|
| 2403 | echo "$ac_t""$RANLIB" 1>&6 | 
|---|
| 2404 | else | 
|---|
| 2405 | echo "$ac_t""no" 1>&6 | 
|---|
| 2406 | fi | 
|---|
| 2407 |  | 
|---|
| 2408 | fi | 
|---|
| 2409 | # Find a good install program.  We prefer a C program (faster), | 
|---|
| 2410 | # so one script is as good as another.  But avoid the broken or | 
|---|
| 2411 | # incompatible versions: | 
|---|
| 2412 | # SysV /etc/install, /usr/sbin/install | 
|---|
| 2413 | # SunOS /usr/etc/install | 
|---|
| 2414 | # IRIX /sbin/install | 
|---|
| 2415 | # AIX /bin/install | 
|---|
| 2416 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
|---|
| 2417 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
|---|
| 2418 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
|---|
| 2419 | # ./install, which can be erroneously created by make from ./install.sh. | 
|---|
| 2420 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | 
|---|
| 2421 | echo "configure:2422: checking for a BSD compatible install" >&5 | 
|---|
| 2422 | if test -z "$INSTALL"; then | 
|---|
| 2423 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | 
|---|
| 2424 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 2425 | else | 
|---|
| 2426 | IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS" | 
|---|
| 2427 | for ac_dir in $PATH; do | 
|---|
| 2428 | # Account for people who put trailing slashes in PATH elements. | 
|---|
| 2429 | case "$ac_dir/" in | 
|---|
| 2430 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | 
|---|
| 2431 | # We reject the install program from OS/2 or W3.1 | 
|---|
| 2432 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;; | 
|---|
| 2433 | *) | 
|---|
| 2434 | # OSF1 and SCO ODT 3.0 have their own names for install. | 
|---|
| 2435 | # Don't use installbsd from OSF since it installs stuff as root | 
|---|
| 2436 | # by default. | 
|---|
| 2437 | for ac_prog in ginstall scoinst install; do | 
|---|
| 2438 | if test -f $ac_dir/$ac_prog$ac_exeext; then | 
|---|
| 2439 | if test $ac_prog = install && | 
|---|
| 2440 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | 
|---|
| 2441 | # AIX install.  It has an incompatible calling convention. | 
|---|
| 2442 | : | 
|---|
| 2443 | else | 
|---|
| 2444 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c" | 
|---|
| 2445 | break 2 | 
|---|
| 2446 | fi | 
|---|
| 2447 | fi | 
|---|
| 2448 | done | 
|---|
| 2449 | ;; | 
|---|
| 2450 | esac | 
|---|
| 2451 | done | 
|---|
| 2452 | IFS="$ac_save_IFS" | 
|---|
| 2453 |  | 
|---|
| 2454 | fi | 
|---|
| 2455 | if test "${ac_cv_path_install+set}" = set; then | 
|---|
| 2456 | INSTALL="$ac_cv_path_install" | 
|---|
| 2457 | else | 
|---|
| 2458 | # As a last resort, use the slow shell script.  We don't cache a | 
|---|
| 2459 | # path for INSTALL within a source directory, because that will | 
|---|
| 2460 | # break other packages using the cache if that directory is | 
|---|
| 2461 | # removed, or if the path is relative. | 
|---|
| 2462 | INSTALL="$ac_install_sh" | 
|---|
| 2463 | fi | 
|---|
| 2464 | fi | 
|---|
| 2465 | echo "$ac_t""$INSTALL" 1>&6 | 
|---|
| 2466 |  | 
|---|
| 2467 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
|---|
| 2468 | # It thinks the first close brace ends the variable substitution. | 
|---|
| 2469 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
|---|
| 2470 |  | 
|---|
| 2471 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | 
|---|
| 2472 |  | 
|---|
| 2473 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
|---|
| 2474 |  | 
|---|
| 2475 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | 
|---|
| 2476 | echo "configure:2477: checking whether ${MAKE-make} sets \${MAKE}" >&5 | 
|---|
| 2477 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | 
|---|
| 2478 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | 
|---|
| 2479 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 2480 | else | 
|---|
| 2481 | cat > conftestmake <<\EOF | 
|---|
| 2482 | all: | 
|---|
| 2483 | @echo 'ac_maketemp="${MAKE}"' | 
|---|
| 2484 | EOF | 
|---|
| 2485 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | 
|---|
| 2486 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | 
|---|
| 2487 | if test -n "$ac_maketemp"; then | 
|---|
| 2488 | eval ac_cv_prog_make_${ac_make}_set=yes | 
|---|
| 2489 | else | 
|---|
| 2490 | eval ac_cv_prog_make_${ac_make}_set=no | 
|---|
| 2491 | fi | 
|---|
| 2492 | rm -f conftestmake | 
|---|
| 2493 | fi | 
|---|
| 2494 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | 
|---|
| 2495 | echo "$ac_t""yes" 1>&6 | 
|---|
| 2496 | SET_MAKE= | 
|---|
| 2497 | else | 
|---|
| 2498 | echo "$ac_t""no" 1>&6 | 
|---|
| 2499 | SET_MAKE="MAKE=${MAKE-make}" | 
|---|
| 2500 | fi | 
|---|
| 2501 |  | 
|---|
| 2502 |  | 
|---|
| 2503 | # Sanity check for the cross-compilation case: | 
|---|
| 2504 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | 
|---|
| 2505 | echo "configure:2506: checking how to run the C preprocessor" >&5 | 
|---|
| 2506 | # On Suns, sometimes $CPP names a directory. | 
|---|
| 2507 | if test -n "$CPP" && test -d "$CPP"; then | 
|---|
| 2508 | CPP= | 
|---|
| 2509 | fi | 
|---|
| 2510 | if test -z "$CPP"; then | 
|---|
| 2511 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | 
|---|
| 2512 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 2513 | else | 
|---|
| 2514 | # This must be in double quotes, not single quotes, because CPP may get | 
|---|
| 2515 | # substituted into the Makefile and "${CC-cc}" will confuse make. | 
|---|
| 2516 | CPP="${CC-cc} -E" | 
|---|
| 2517 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|---|
| 2518 | # not just through cpp. | 
|---|
| 2519 | cat > conftest.$ac_ext <<EOF | 
|---|
| 2520 | #include <sys/types.h> | 
|---|
| 2521 | #line 2522 "configure" | 
|---|
| 2522 | #include "confdefs.h" | 
|---|
| 2523 | #include <assert.h> | 
|---|
| 2524 | Syntax Error | 
|---|
| 2525 | EOF | 
|---|
| 2526 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 2527 | { (eval echo configure:2528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 2528 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 2529 | if test -z "$ac_err"; then | 
|---|
| 2530 | : | 
|---|
| 2531 | else | 
|---|
| 2532 | echo "$ac_err" >&5 | 
|---|
| 2533 | echo "configure: failed program was:" >&5 | 
|---|
| 2534 | cat conftest.$ac_ext >&5 | 
|---|
| 2535 | rm -rf conftest* | 
|---|
| 2536 | CPP="${CC-cc} -E -traditional-cpp" | 
|---|
| 2537 | cat > conftest.$ac_ext <<EOF | 
|---|
| 2538 | #include <sys/types.h> | 
|---|
| 2539 | #line 2540 "configure" | 
|---|
| 2540 | #include "confdefs.h" | 
|---|
| 2541 | #include <assert.h> | 
|---|
| 2542 | Syntax Error | 
|---|
| 2543 | EOF | 
|---|
| 2544 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 2545 | { (eval echo configure:2546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 2546 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 2547 | if test -z "$ac_err"; then | 
|---|
| 2548 | : | 
|---|
| 2549 | else | 
|---|
| 2550 | echo "$ac_err" >&5 | 
|---|
| 2551 | echo "configure: failed program was:" >&5 | 
|---|
| 2552 | cat conftest.$ac_ext >&5 | 
|---|
| 2553 | rm -rf conftest* | 
|---|
| 2554 | CPP="${CC-cc} -nologo -E" | 
|---|
| 2555 | cat > conftest.$ac_ext <<EOF | 
|---|
| 2556 | #include <sys/types.h> | 
|---|
| 2557 | #line 2558 "configure" | 
|---|
| 2558 | #include "confdefs.h" | 
|---|
| 2559 | #include <assert.h> | 
|---|
| 2560 | Syntax Error | 
|---|
| 2561 | EOF | 
|---|
| 2562 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 2563 | { (eval echo configure:2564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 2564 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 2565 | if test -z "$ac_err"; then | 
|---|
| 2566 | : | 
|---|
| 2567 | else | 
|---|
| 2568 | echo "$ac_err" >&5 | 
|---|
| 2569 | echo "configure: failed program was:" >&5 | 
|---|
| 2570 | cat conftest.$ac_ext >&5 | 
|---|
| 2571 | rm -rf conftest* | 
|---|
| 2572 | CPP=/lib/cpp | 
|---|
| 2573 | fi | 
|---|
| 2574 | rm -f conftest* | 
|---|
| 2575 | fi | 
|---|
| 2576 | rm -f conftest* | 
|---|
| 2577 | fi | 
|---|
| 2578 | rm -f conftest* | 
|---|
| 2579 | ac_cv_prog_CPP="$CPP" | 
|---|
| 2580 | fi | 
|---|
| 2581 | CPP="$ac_cv_prog_CPP" | 
|---|
| 2582 | else | 
|---|
| 2583 | ac_cv_prog_CPP="$CPP" | 
|---|
| 2584 | fi | 
|---|
| 2585 | echo "$ac_t""$CPP" 1>&6 | 
|---|
| 2586 |  | 
|---|
| 2587 | ac_safe=`echo "stdio.h" | sed 'y%./+-%__p_%'` | 
|---|
| 2588 | echo $ac_n "checking for stdio.h""... $ac_c" 1>&6 | 
|---|
| 2589 | echo "configure:2590: checking for stdio.h" >&5 | 
|---|
| 2590 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 
|---|
| 2591 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 2592 | else | 
|---|
| 2593 | cat > conftest.$ac_ext <<EOF | 
|---|
| 2594 | #include <sys/types.h> | 
|---|
| 2595 | #line 2596 "configure" | 
|---|
| 2596 | #include "confdefs.h" | 
|---|
| 2597 | #include <stdio.h> | 
|---|
| 2598 | EOF | 
|---|
| 2599 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 2600 | { (eval echo configure:2601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 2601 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 2602 | if test -z "$ac_err"; then | 
|---|
| 2603 | rm -rf conftest* | 
|---|
| 2604 | eval "ac_cv_header_$ac_safe=yes" | 
|---|
| 2605 | else | 
|---|
| 2606 | echo "$ac_err" >&5 | 
|---|
| 2607 | echo "configure: failed program was:" >&5 | 
|---|
| 2608 | cat conftest.$ac_ext >&5 | 
|---|
| 2609 | rm -rf conftest* | 
|---|
| 2610 | eval "ac_cv_header_$ac_safe=no" | 
|---|
| 2611 | fi | 
|---|
| 2612 | rm -f conftest* | 
|---|
| 2613 | fi | 
|---|
| 2614 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
|---|
| 2615 | echo "$ac_t""yes" 1>&6 | 
|---|
| 2616 | : | 
|---|
| 2617 | else | 
|---|
| 2618 | echo "$ac_t""no" 1>&6 | 
|---|
| 2619 | { echo "configure: error: Can't find stdio.h. | 
|---|
| 2620 | You must have a usable C system for the target already installed, at least | 
|---|
| 2621 | including headers and, preferably, the library, before you can configure | 
|---|
| 2622 | the G77 runtime system.  If necessary, install gcc now with \`LANGUAGES=c', | 
|---|
| 2623 | then the target library, then build with \`LANGUAGES=f77'." 1>&2; exit 1; } | 
|---|
| 2624 | fi | 
|---|
| 2625 |  | 
|---|
| 2626 |  | 
|---|
| 2627 | echo $ac_n "checking for built-in g77 integer types""... $ac_c" 1>&6 | 
|---|
| 2628 | echo "configure:2629: checking for built-in g77 integer types" >&5 | 
|---|
| 2629 | if eval "test \"`echo '$''{'libf2c_cv_has_g77_builtin_types'+set}'`\" = set"; then | 
|---|
| 2630 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 2631 | else | 
|---|
| 2632 | cat > conftest.$ac_ext <<EOF | 
|---|
| 2633 | #line 2634 "configure" | 
|---|
| 2634 | #include "confdefs.h" | 
|---|
| 2635 |  | 
|---|
| 2636 | int main() { | 
|---|
| 2637 | __g77_integer g77i; | 
|---|
| 2638 | __g77_uinteger g77ui; | 
|---|
| 2639 | __g77_longint g77l; | 
|---|
| 2640 | __g77_ulongint g77ul; | 
|---|
| 2641 | ; return 0; } | 
|---|
| 2642 | EOF | 
|---|
| 2643 | if { (eval echo configure:2644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 2644 | rm -rf conftest* | 
|---|
| 2645 | libf2c_cv_has_g77_builtin_types=yes | 
|---|
| 2646 | else | 
|---|
| 2647 | echo "configure: failed program was:" >&5 | 
|---|
| 2648 | cat conftest.$ac_ext >&5 | 
|---|
| 2649 | rm -rf conftest* | 
|---|
| 2650 | libf2c_cv_has_g77_builtin_types=no | 
|---|
| 2651 | fi | 
|---|
| 2652 | rm -f conftest* | 
|---|
| 2653 | fi | 
|---|
| 2654 |  | 
|---|
| 2655 | echo "$ac_t""$libf2c_cv_has_g77_builtin_types" 1>&6 | 
|---|
| 2656 | if test $libf2c_cv_has_g77_builtin_types = no; then | 
|---|
| 2657 | { echo "configure: error: gcc doesn't define all of the built in types __g77_integer, | 
|---|
| 2658 | __g77_uinteger, __g77_longint, and __g77_ulongint.  You may not be using | 
|---|
| 2659 | a new enough version of gcc, or your target may not have type sizes which | 
|---|
| 2660 | accommodate those types." 1>&2; exit 1; } | 
|---|
| 2661 | fi | 
|---|
| 2662 |  | 
|---|
| 2663 | # avoid confusion in case the `makefile's from the f2c distribution have | 
|---|
| 2664 | # got put here | 
|---|
| 2665 | test -f libF77/makefile && mv libF77/makefile  libF77/makefile.ori | 
|---|
| 2666 | test -f libI77/makefile && mv libI77/makefile  libI77/makefile.ori | 
|---|
| 2667 | test -f libU77/makefile && mv libU77/makefile  libU77/makefile.ori | 
|---|
| 2668 |  | 
|---|
| 2669 | subdirs="libU77 libI77 libF77" | 
|---|
| 2670 |  | 
|---|
| 2671 | # Do Makefile first since g2c.h depends on it and shouldn't get an | 
|---|
| 2672 | # earlier timestamp.  Of course, it does when the multilib gunk below | 
|---|
| 2673 | # edits Makefile, sigh; see additional touch below. | 
|---|
| 2674 | trap '' 1 2 15 | 
|---|
| 2675 | cat > confcache <<\EOF | 
|---|
| 2676 | # This file is a shell script that caches the results of configure | 
|---|
| 2677 | # tests run on this system so they can be shared between configure | 
|---|
| 2678 | # scripts and configure runs.  It is not useful on other systems. | 
|---|
| 2679 | # If it contains results you don't want to keep, you may remove or edit it. | 
|---|
| 2680 | # | 
|---|
| 2681 | # By default, configure uses ./config.cache as the cache file, | 
|---|
| 2682 | # creating it if it does not exist already.  You can give configure | 
|---|
| 2683 | # the --cache-file=FILE option to use a different cache file; that is | 
|---|
| 2684 | # what configure does when it calls configure scripts in | 
|---|
| 2685 | # subdirectories, so they share the cache. | 
|---|
| 2686 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | 
|---|
| 2687 | # config.status only pays attention to the cache file if you give it the | 
|---|
| 2688 | # --recheck option to rerun configure. | 
|---|
| 2689 | # | 
|---|
| 2690 | EOF | 
|---|
| 2691 | # The following way of writing the cache mishandles newlines in values, | 
|---|
| 2692 | # but we know of no workaround that is simple, portable, and efficient. | 
|---|
| 2693 | # So, don't put newlines in cache variables' values. | 
|---|
| 2694 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
|---|
| 2695 | # and sets the high bit in the cache file unless we assign to the vars. | 
|---|
| 2696 | (set) 2>&1 | | 
|---|
| 2697 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | 
|---|
| 2698 | *ac_space=\ *) | 
|---|
| 2699 | # `set' does not quote correctly, so add quotes (double-quote substitution | 
|---|
| 2700 | # turns \\\\ into \\, and sed turns \\ into \). | 
|---|
| 2701 | sed -n \ | 
|---|
| 2702 | -e "s/'/'\\\\''/g" \ | 
|---|
| 2703 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | 
|---|
| 2704 | ;; | 
|---|
| 2705 | *) | 
|---|
| 2706 | # `set' quotes correctly as required by POSIX, so do not add quotes. | 
|---|
| 2707 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | 
|---|
| 2708 | ;; | 
|---|
| 2709 | esac >> confcache | 
|---|
| 2710 | if cmp -s $cache_file confcache; then | 
|---|
| 2711 | : | 
|---|
| 2712 | else | 
|---|
| 2713 | if test -w $cache_file; then | 
|---|
| 2714 | echo "updating cache $cache_file" | 
|---|
| 2715 | cat confcache > $cache_file | 
|---|
| 2716 | else | 
|---|
| 2717 | echo "not updating unwritable cache $cache_file" | 
|---|
| 2718 | fi | 
|---|
| 2719 | fi | 
|---|
| 2720 | rm -f confcache | 
|---|
| 2721 |  | 
|---|
| 2722 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | 
|---|
| 2723 |  | 
|---|
| 2724 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
|---|
| 2725 | # Let make expand exec_prefix. | 
|---|
| 2726 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
|---|
| 2727 |  | 
|---|
| 2728 | # Any assignment to VPATH causes Sun make to only execute | 
|---|
| 2729 | # the first set of double-colon rules, so remove it if not needed. | 
|---|
| 2730 | # If there is a colon in the path, we need to keep it. | 
|---|
| 2731 | if test "x$srcdir" = x.; then | 
|---|
| 2732 | ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d' | 
|---|
| 2733 | fi | 
|---|
| 2734 |  | 
|---|
| 2735 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | 
|---|
| 2736 |  | 
|---|
| 2737 | # Transform confdefs.h into DEFS. | 
|---|
| 2738 | # Protect against shell expansion while executing Makefile rules. | 
|---|
| 2739 | # Protect against Makefile macro expansion. | 
|---|
| 2740 | cat > conftest.defs <<\EOF | 
|---|
| 2741 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g | 
|---|
| 2742 | s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g | 
|---|
| 2743 | s%\[%\\&%g | 
|---|
| 2744 | s%\]%\\&%g | 
|---|
| 2745 | s%\$%$$%g | 
|---|
| 2746 | EOF | 
|---|
| 2747 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012\015' '  '` | 
|---|
| 2748 | rm -f conftest.defs | 
|---|
| 2749 |  | 
|---|
| 2750 |  | 
|---|
| 2751 | # Without the "./", some shells look in PATH for config.status. | 
|---|
| 2752 | : ${CONFIG_STATUS=./config.status} | 
|---|
| 2753 |  | 
|---|
| 2754 | echo creating $CONFIG_STATUS | 
|---|
| 2755 | rm -f $CONFIG_STATUS | 
|---|
| 2756 | cat > $CONFIG_STATUS <<EOF | 
|---|
| 2757 | #! /bin/sh | 
|---|
| 2758 | # Generated automatically by configure. | 
|---|
| 2759 | # Run this file to recreate the current configuration. | 
|---|
| 2760 | # This directory was configured as follows, | 
|---|
| 2761 | EOF | 
|---|
| 2762 | echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS | 
|---|
| 2763 | cat >> $CONFIG_STATUS <<EOF | 
|---|
| 2764 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
|---|
| 2765 | # | 
|---|
| 2766 | # $0 $ac_configure_args | 
|---|
| 2767 | # | 
|---|
| 2768 | # Compiler output produced by configure, useful for debugging | 
|---|
| 2769 | # configure, is in ./config.log if it exists. | 
|---|
| 2770 |  | 
|---|
| 2771 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | 
|---|
| 2772 | for ac_option | 
|---|
| 2773 | do | 
|---|
| 2774 | case "\$ac_option" in | 
|---|
| 2775 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
|---|
| 2776 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | 
|---|
| 2777 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | 
|---|
| 2778 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | 
|---|
| 2779 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | 
|---|
| 2780 | exit 0 ;; | 
|---|
| 2781 | -help | --help | --hel | --he | --h) | 
|---|
| 2782 | echo "\$ac_cs_usage"; exit 0 ;; | 
|---|
| 2783 | *) echo "\$ac_cs_usage"; exit 1 ;; | 
|---|
| 2784 | esac | 
|---|
| 2785 | done | 
|---|
| 2786 |  | 
|---|
| 2787 | ac_given_srcdir=$srcdir | 
|---|
| 2788 | ac_given_INSTALL="$INSTALL" | 
|---|
| 2789 | PATHIFS="$PATH_IFS" | 
|---|
| 2790 |  | 
|---|
| 2791 | trap 'rm -fr `echo "Makefile g2c.h:g2c.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | 
|---|
| 2792 | EOF | 
|---|
| 2793 | cat >> $CONFIG_STATUS <<EOF | 
|---|
| 2794 |  | 
|---|
| 2795 | # Protect against being on the right side of a sed subst in config.status. | 
|---|
| 2796 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | 
|---|
| 2797 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | 
|---|
| 2798 | $ac_vpsub | 
|---|
| 2799 | $extrasub | 
|---|
| 2800 | s,\([^a-zA-Z0-9:]\)/bin/sh\(.exe\),\1${CONFIG_SHELL-/bin/sh}\2,g | 
|---|
| 2801 | s%@SHELL@%$SHELL%g | 
|---|
| 2802 | s%@CFLAGS@%$CFLAGS%g | 
|---|
| 2803 | s%@CPPFLAGS@%$CPPFLAGS%g | 
|---|
| 2804 | s%@CXXFLAGS@%$CXXFLAGS%g | 
|---|
| 2805 | s%@FFLAGS@%$FFLAGS%g | 
|---|
| 2806 | s%@DEFS@%$DEFS%g | 
|---|
| 2807 | s%@LDFLAGS@%$LDFLAGS%g | 
|---|
| 2808 | s%@LIBS@%$LIBS%g | 
|---|
| 2809 | s%@exec_prefix@%$exec_prefix%g | 
|---|
| 2810 | s%@prefix@%$prefix%g | 
|---|
| 2811 | s%@program_transform_name@%$program_transform_name%g | 
|---|
| 2812 | s%@bindir@%$bindir%g | 
|---|
| 2813 | s%@sbindir@%$sbindir%g | 
|---|
| 2814 | s%@libexecdir@%$libexecdir%g | 
|---|
| 2815 | s%@datadir@%$datadir%g | 
|---|
| 2816 | s%@sysconfdir@%$sysconfdir%g | 
|---|
| 2817 | s%@sharedstatedir@%$sharedstatedir%g | 
|---|
| 2818 | s%@localstatedir@%$localstatedir%g | 
|---|
| 2819 | s%@libdir@%$libdir%g | 
|---|
| 2820 | s%@includedir@%$includedir%g | 
|---|
| 2821 | s%@oldincludedir@%$oldincludedir%g | 
|---|
| 2822 | s%@infodir@%$infodir%g | 
|---|
| 2823 | s%@mandir@%$mandir%g | 
|---|
| 2824 | s%@PATH_IFS@%$PATH_IFS%g | 
|---|
| 2825 | s%@EXEEXT@%$EXEEXT%g | 
|---|
| 2826 | s%@toplevel_srcdir@%$toplevel_srcdir%g | 
|---|
| 2827 | s%@host@%$host%g | 
|---|
| 2828 | s%@host_alias@%$host_alias%g | 
|---|
| 2829 | s%@host_cpu@%$host_cpu%g | 
|---|
| 2830 | s%@host_vendor@%$host_vendor%g | 
|---|
| 2831 | s%@host_os@%$host_os%g | 
|---|
| 2832 | s%@target@%$target%g | 
|---|
| 2833 | s%@target_alias@%$target_alias%g | 
|---|
| 2834 | s%@target_cpu@%$target_cpu%g | 
|---|
| 2835 | s%@target_vendor@%$target_vendor%g | 
|---|
| 2836 | s%@target_os@%$target_os%g | 
|---|
| 2837 | s%@build@%$build%g | 
|---|
| 2838 | s%@build_alias@%$build_alias%g | 
|---|
| 2839 | s%@build_cpu@%$build_cpu%g | 
|---|
| 2840 | s%@build_vendor@%$build_vendor%g | 
|---|
| 2841 | s%@build_os@%$build_os%g | 
|---|
| 2842 | s%@glibcpp_builddir@%$glibcpp_builddir%g | 
|---|
| 2843 | s%@glibcpp_srcdir@%$glibcpp_srcdir%g | 
|---|
| 2844 | s%@LN_S@%$LN_S%g | 
|---|
| 2845 | s%@CC@%$CC%g | 
|---|
| 2846 | s%@AS@%$AS%g | 
|---|
| 2847 | s%@AR@%$AR%g | 
|---|
| 2848 | s%@RANLIB@%$RANLIB%g | 
|---|
| 2849 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | 
|---|
| 2850 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | 
|---|
| 2851 | s%@INSTALL_DATA@%$INSTALL_DATA%g | 
|---|
| 2852 | s%@gcc_version@%$gcc_version%g | 
|---|
| 2853 | s%@gcc_version_trigger@%$gcc_version_trigger%g | 
|---|
| 2854 | s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g | 
|---|
| 2855 | s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g | 
|---|
| 2856 | s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g | 
|---|
| 2857 | s%@OBJEXT@%$OBJEXT%g | 
|---|
| 2858 | s%@STRIP@%$STRIP%g | 
|---|
| 2859 | s%@LIBTOOL@%$LIBTOOL%g | 
|---|
| 2860 | s%@SET_MAKE@%$SET_MAKE%g | 
|---|
| 2861 | s%@CPP@%$CPP%g | 
|---|
| 2862 | s%@subdirs@%$subdirs%g | 
|---|
| 2863 |  | 
|---|
| 2864 | CEOF | 
|---|
| 2865 | EOF | 
|---|
| 2866 |  | 
|---|
| 2867 | cat >> $CONFIG_STATUS <<\EOF | 
|---|
| 2868 |  | 
|---|
| 2869 | # Split the substitutions into bite-sized pieces for seds with | 
|---|
| 2870 | # small command number limits, like on Digital OSF/1 and HP-UX. | 
|---|
| 2871 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | 
|---|
| 2872 | ac_file=1 # Number of current file. | 
|---|
| 2873 | ac_beg=1 # First line for current file. | 
|---|
| 2874 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | 
|---|
| 2875 | ac_more_lines=: | 
|---|
| 2876 | ac_sed_cmds="" | 
|---|
| 2877 | while $ac_more_lines; do | 
|---|
| 2878 | if test $ac_beg -gt 1; then | 
|---|
| 2879 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | 
|---|
| 2880 | else | 
|---|
| 2881 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | 
|---|
| 2882 | fi | 
|---|
| 2883 | if test ! -s conftest.s$ac_file; then | 
|---|
| 2884 | ac_more_lines=false | 
|---|
| 2885 | rm -f conftest.s$ac_file | 
|---|
| 2886 | else | 
|---|
| 2887 | if test -z "$ac_sed_cmds"; then | 
|---|
| 2888 | ac_sed_cmds="sed -f conftest.s$ac_file" | 
|---|
| 2889 | else | 
|---|
| 2890 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | 
|---|
| 2891 | fi | 
|---|
| 2892 | ac_file=`expr $ac_file + 1` | 
|---|
| 2893 | ac_beg=$ac_end | 
|---|
| 2894 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | 
|---|
| 2895 | fi | 
|---|
| 2896 | done | 
|---|
| 2897 | if test -z "$ac_sed_cmds"; then | 
|---|
| 2898 | ac_sed_cmds=cat | 
|---|
| 2899 | fi | 
|---|
| 2900 | EOF | 
|---|
| 2901 |  | 
|---|
| 2902 | cat >> $CONFIG_STATUS <<EOF | 
|---|
| 2903 |  | 
|---|
| 2904 | CONFIG_FILES=\${CONFIG_FILES-"Makefile g2c.h:g2c.hin"} | 
|---|
| 2905 | EOF | 
|---|
| 2906 | cat >> $CONFIG_STATUS <<\EOF | 
|---|
| 2907 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | 
|---|
| 2908 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 
|---|
| 2909 | case "$ac_file" in | 
|---|
| 2910 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | 
|---|
| 2911 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | 
|---|
| 2912 | *) ac_file_in="${ac_file}.in" ;; | 
|---|
| 2913 | esac | 
|---|
| 2914 |  | 
|---|
| 2915 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | 
|---|
| 2916 |  | 
|---|
| 2917 | # Remove last slash and all that follows it.  Not all systems have dirname. | 
|---|
| 2918 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | 
|---|
| 2919 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | 
|---|
| 2920 | # The file is in a subdirectory. | 
|---|
| 2921 | test ! -d "$ac_dir" && mkdir "$ac_dir" | 
|---|
| 2922 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | 
|---|
| 2923 | # A "../" for each directory in $ac_dir_suffix. | 
|---|
| 2924 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | 
|---|
| 2925 | else | 
|---|
| 2926 | ac_dir_suffix= ac_dots= | 
|---|
| 2927 | fi | 
|---|
| 2928 |  | 
|---|
| 2929 | case "$ac_given_srcdir" in | 
|---|
| 2930 | .)  srcdir=. | 
|---|
| 2931 | if test -z "$ac_dots"; then top_srcdir=. | 
|---|
| 2932 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | 
|---|
| 2933 | [/\\]* | [a-zA-Z]:*) | 
|---|
| 2934 | srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | 
|---|
| 2935 | *) # Relative path. | 
|---|
| 2936 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | 
|---|
| 2937 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | 
|---|
| 2938 | esac | 
|---|
| 2939 |  | 
|---|
| 2940 | case "$ac_given_INSTALL" in | 
|---|
| 2941 | [/$\\]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;; | 
|---|
| 2942 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | 
|---|
| 2943 | esac | 
|---|
| 2944 |  | 
|---|
| 2945 | echo creating "$ac_file" | 
|---|
| 2946 | rm -f "$ac_file" | 
|---|
| 2947 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | 
|---|
| 2948 | case "$ac_file" in | 
|---|
| 2949 | *Makefile*) ac_comsub="1i\\ | 
|---|
| 2950 | # $configure_input" ;; | 
|---|
| 2951 | *) ac_comsub= ;; | 
|---|
| 2952 | esac | 
|---|
| 2953 |  | 
|---|
| 2954 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%$PATHIFS% $ac_given_srcdir/%g"` | 
|---|
| 2955 | sed -e "$ac_comsub | 
|---|
| 2956 | s%@configure_input@%$configure_input%g | 
|---|
| 2957 | s%@srcdir@%$srcdir%g | 
|---|
| 2958 | s%@top_srcdir@%$top_srcdir%g | 
|---|
| 2959 | s%@INSTALL@%$INSTALL%g | 
|---|
| 2960 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | 
|---|
| 2961 | fi; done | 
|---|
| 2962 | rm -f conftest.s* | 
|---|
| 2963 |  | 
|---|
| 2964 | EOF | 
|---|
| 2965 | cat >> $CONFIG_STATUS <<EOF | 
|---|
| 2966 | srcdir=${srcdir} | 
|---|
| 2967 | host=${host} | 
|---|
| 2968 | target=${target} | 
|---|
| 2969 | with_target_subdir=${with_target_subdir} | 
|---|
| 2970 | with_multisubdir=${with_multisubdir} | 
|---|
| 2971 | ac_configure_args="--enable-multilib ${ac_configure_args}" | 
|---|
| 2972 | toplevel_srcdir=${toplevel_srcdir} | 
|---|
| 2973 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | 
|---|
| 2974 | ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}" | 
|---|
| 2975 |  | 
|---|
| 2976 | EOF | 
|---|
| 2977 | cat >> $CONFIG_STATUS <<\EOF | 
|---|
| 2978 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h | 
|---|
| 2979 | if test -n "$CONFIG_FILES"; then | 
|---|
| 2980 | LD="${ORIGINAL_LD_FOR_MULTILIBS}" | 
|---|
| 2981 | if test -n "${with_target_subdir}"; then | 
|---|
| 2982 | # FIXME: We shouldn't need to set ac_file | 
|---|
| 2983 | ac_file=Makefile | 
|---|
| 2984 | . ${toplevel_srcdir}/config-ml.in | 
|---|
| 2985 | touch g2c.h   # to keep it more recent than Makefile | 
|---|
| 2986 | fi | 
|---|
| 2987 | fi | 
|---|
| 2988 | exit 0 | 
|---|
| 2989 | EOF | 
|---|
| 2990 | chmod +x $CONFIG_STATUS | 
|---|
| 2991 | rm -fr confdefs* $ac_clean_files | 
|---|
| 2992 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | 
|---|
| 2993 |  | 
|---|
| 2994 | if test "$no_recursion" != yes; then | 
|---|
| 2995 |  | 
|---|
| 2996 | # Remove --cache-file and --srcdir arguments so they do not pile up. | 
|---|
| 2997 | ac_sub_configure_args= | 
|---|
| 2998 | ac_prev= | 
|---|
| 2999 | for ac_arg in $ac_configure_args; do | 
|---|
| 3000 | if test -n "$ac_prev"; then | 
|---|
| 3001 | ac_prev= | 
|---|
| 3002 | continue | 
|---|
| 3003 | fi | 
|---|
| 3004 | case "$ac_arg" in | 
|---|
| 3005 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
|---|
| 3006 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
|---|
| 3007 | ac_prev=cache_file ;; | 
|---|
| 3008 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
|---|
| 3009 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
|---|
| 3010 | ;; | 
|---|
| 3011 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
|---|
| 3012 | ac_prev=srcdir ;; | 
|---|
| 3013 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
|---|
| 3014 | ;; | 
|---|
| 3015 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | 
|---|
| 3016 | esac | 
|---|
| 3017 | done | 
|---|
| 3018 |  | 
|---|
| 3019 | for ac_config_dir in libU77 libI77 libF77; do | 
|---|
| 3020 |  | 
|---|
| 3021 | # Do not complain, so a configure script can configure whichever | 
|---|
| 3022 | # parts of a large source tree are present. | 
|---|
| 3023 | if test ! -d $srcdir/$ac_config_dir; then | 
|---|
| 3024 | continue | 
|---|
| 3025 | fi | 
|---|
| 3026 |  | 
|---|
| 3027 | echo configuring in $ac_config_dir | 
|---|
| 3028 |  | 
|---|
| 3029 | case "$srcdir" in | 
|---|
| 3030 | .) ;; | 
|---|
| 3031 | *) | 
|---|
| 3032 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | 
|---|
| 3033 | else | 
|---|
| 3034 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | 
|---|
| 3035 | fi | 
|---|
| 3036 | ;; | 
|---|
| 3037 | esac | 
|---|
| 3038 |  | 
|---|
| 3039 | ac_popdir=`pwd` | 
|---|
| 3040 | cd $ac_config_dir | 
|---|
| 3041 |  | 
|---|
| 3042 | # A "../" for each directory in /$ac_config_dir. | 
|---|
| 3043 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | 
|---|
| 3044 |  | 
|---|
| 3045 | case "$srcdir" in | 
|---|
| 3046 | .) # No --srcdir option.  We are building in place. | 
|---|
| 3047 | ac_sub_srcdir=$srcdir ;; | 
|---|
| 3048 | [/\\]* | [a-zA-Z]:*) # Absolute path. | 
|---|
| 3049 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | 
|---|
| 3050 | *) # Relative path. | 
|---|
| 3051 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | 
|---|
| 3052 | esac | 
|---|
| 3053 |  | 
|---|
| 3054 | # Check for guested configure; otherwise get Cygnus style configure. | 
|---|
| 3055 | if test -f $ac_sub_srcdir/configure; then | 
|---|
| 3056 | ac_sub_configure=$ac_sub_srcdir/configure | 
|---|
| 3057 | elif test -f $ac_sub_srcdir/configure.in; then | 
|---|
| 3058 | ac_current_dir=`pwd` | 
|---|
| 3059 | cd $ac_sub_srcdir | 
|---|
| 3060 | autoconf | 
|---|
| 3061 | cd $ac_current_dir | 
|---|
| 3062 | ac_sub_configure=$ac_sub_srcdir/configure | 
|---|
| 3063 | else | 
|---|
| 3064 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 | 
|---|
| 3065 | ac_sub_configure= | 
|---|
| 3066 | fi | 
|---|
| 3067 |  | 
|---|
| 3068 | # The recursion is here. | 
|---|
| 3069 | if test -n "$ac_sub_configure"; then | 
|---|
| 3070 |  | 
|---|
| 3071 | # Make the cache file name correct relative to the subdirectory. | 
|---|
| 3072 | case "$cache_file" in | 
|---|
| 3073 | [/\\]* | [a-zA-Z]:*) ac_sub_cache_file=$cache_file ;; | 
|---|
| 3074 | *) # Relative path. | 
|---|
| 3075 | ac_sub_cache_file="$ac_dots$cache_file" ;; | 
|---|
| 3076 | esac | 
|---|
| 3077 | case "$ac_given_INSTALL" in | 
|---|
| 3078 | [/$\\]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;; | 
|---|
| 3079 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | 
|---|
| 3080 | esac | 
|---|
| 3081 |  | 
|---|
| 3082 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" | 
|---|
| 3083 | # The eval makes quoting arguments work. | 
|---|
| 3084 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir | 
|---|
| 3085 | then : | 
|---|
| 3086 | else | 
|---|
| 3087 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | 
|---|
| 3088 | fi | 
|---|
| 3089 | fi | 
|---|
| 3090 |  | 
|---|
| 3091 | cd $ac_popdir | 
|---|
| 3092 | done | 
|---|
| 3093 | fi | 
|---|
| 3094 |  | 
|---|
| 3095 |  | 
|---|
| 3096 |  | 
|---|