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