Mercurial > flash_v2
comparison host/configure @ 76:435cced73e2f ecos-v1_3_1-release
eCos v1.3.1 merged from eCos master repository on 2000-03-27-23:22:51-BST
| author | jlarmour |
|---|---|
| date | Tue, 28 Mar 2000 14:10:45 +0000 |
| parents | |
| children | 6ed91473a1cd |
comparison
equal
deleted
inserted
replaced
| 75:41bf073c0c32 | 76:435cced73e2f |
|---|---|
| 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-maintainer-mode enable make rules and dependencies not useful | |
| 16 (and sometimes confusing) to the casual installer" | |
| 17 ac_help="$ac_help | |
| 18 --enable-debug do a debug rather than a release build" | |
| 19 ac_help="$ac_help | |
| 20 --enable-ansi Do an ANSI rather than a unicode build" | |
| 21 ac_help="$ac_help | |
| 22 --disable-asserts disable all assertions" | |
| 23 ac_help="$ac_help | |
| 24 --disable-preconditions disable a subset of the assertions" | |
| 25 ac_help="$ac_help | |
| 26 --disable-postconditions disable a subset of the assertions" | |
| 27 ac_help="$ac_help | |
| 28 --disable-invariants disable a subset of the assertions" | |
| 29 ac_help="$ac_help | |
| 30 --disable-loopinvariants disable a subset of the assertions" | |
| 31 ac_help="$ac_help | |
| 32 --disable-tracing disable tracing" | |
| 33 ac_help="$ac_help | |
| 34 --disable-fntracing disable function entry/exit tracing" | |
| 35 ac_help="$ac_help | |
| 36 --with-tcl-version=<vsn> version of Tcl to be used" | |
| 37 ac_help="$ac_help | |
| 38 --with-tcl=<path> location of Tcl header and libraries" | |
| 39 | |
| 40 # Initialize some variables set by options. | |
| 41 # The variables have the same names as the options, with | |
| 42 # dashes changed to underlines. | |
| 43 build=NONE | |
| 44 cache_file=./config.cache | |
| 45 exec_prefix=NONE | |
| 46 host=NONE | |
| 47 no_create= | |
| 48 nonopt=NONE | |
| 49 no_recursion= | |
| 50 prefix=NONE | |
| 51 program_prefix=NONE | |
| 52 program_suffix=NONE | |
| 53 program_transform_name=s,x,x, | |
| 54 silent= | |
| 55 site= | |
| 56 srcdir= | |
| 57 target=NONE | |
| 58 verbose= | |
| 59 x_includes=NONE | |
| 60 x_libraries=NONE | |
| 61 bindir='${exec_prefix}/bin' | |
| 62 sbindir='${exec_prefix}/sbin' | |
| 63 libexecdir='${exec_prefix}/libexec' | |
| 64 datadir='${prefix}/share' | |
| 65 sysconfdir='${prefix}/etc' | |
| 66 sharedstatedir='${prefix}/com' | |
| 67 localstatedir='${prefix}/var' | |
| 68 libdir='${exec_prefix}/lib' | |
| 69 includedir='${prefix}/include' | |
| 70 oldincludedir='/usr/include' | |
| 71 infodir='${prefix}/info' | |
| 72 mandir='${prefix}/man' | |
| 73 | |
| 74 # Initialize some other variables. | |
| 75 subdirs= | |
| 76 MFLAGS= MAKEFLAGS= | |
| 77 SHELL=${CONFIG_SHELL-/bin/sh} | |
| 78 # Maximum number of lines to put in a shell here document. | |
| 79 ac_max_here_lines=12 | |
| 80 | |
| 81 ac_prev= | |
| 82 for ac_option | |
| 83 do | |
| 84 | |
| 85 # If the previous option needs an argument, assign it. | |
| 86 if test -n "$ac_prev"; then | |
| 87 eval "$ac_prev=\$ac_option" | |
| 88 ac_prev= | |
| 89 continue | |
| 90 fi | |
| 91 | |
| 92 case "$ac_option" in | |
| 93 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
| 94 *) ac_optarg= ;; | |
| 95 esac | |
| 96 | |
| 97 # Accept the important Cygnus configure options, so we can diagnose typos. | |
| 98 | |
| 99 case "$ac_option" in | |
| 100 | |
| 101 -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
| 102 ac_prev=bindir ;; | |
| 103 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
| 104 bindir="$ac_optarg" ;; | |
| 105 | |
| 106 -build | --build | --buil | --bui | --bu) | |
| 107 ac_prev=build ;; | |
| 108 -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
| 109 build="$ac_optarg" ;; | |
| 110 | |
| 111 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
| 112 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
| 113 ac_prev=cache_file ;; | |
| 114 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
| 115 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
| 116 cache_file="$ac_optarg" ;; | |
| 117 | |
| 118 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
| 119 ac_prev=datadir ;; | |
| 120 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
| 121 | --da=*) | |
| 122 datadir="$ac_optarg" ;; | |
| 123 | |
| 124 -disable-* | --disable-*) | |
| 125 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
| 126 # Reject names that are not valid shell variable names. | |
| 127 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
| 128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
| 129 fi | |
| 130 ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
| 131 eval "enable_${ac_feature}=no" ;; | |
| 132 | |
| 133 -enable-* | --enable-*) | |
| 134 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
| 135 # Reject names that are not valid shell variable names. | |
| 136 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
| 137 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
| 138 fi | |
| 139 ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
| 140 case "$ac_option" in | |
| 141 *=*) ;; | |
| 142 *) ac_optarg=yes ;; | |
| 143 esac | |
| 144 eval "enable_${ac_feature}='$ac_optarg'" ;; | |
| 145 | |
| 146 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
| 147 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
| 148 | --exec | --exe | --ex) | |
| 149 ac_prev=exec_prefix ;; | |
| 150 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
| 151 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
| 152 | --exec=* | --exe=* | --ex=*) | |
| 153 exec_prefix="$ac_optarg" ;; | |
| 154 | |
| 155 -gas | --gas | --ga | --g) | |
| 156 # Obsolete; use --with-gas. | |
| 157 with_gas=yes ;; | |
| 158 | |
| 159 -help | --help | --hel | --he) | |
| 160 # Omit some internal or obsolete options to make the list less imposing. | |
| 161 # This message is too long to be a string in the A/UX 3.1 sh. | |
| 162 cat << EOF | |
| 163 Usage: configure [options] [host] | |
| 164 Options: [defaults in brackets after descriptions] | |
| 165 Configuration: | |
| 166 --cache-file=FILE cache test results in FILE | |
| 167 --help print this message | |
| 168 --no-create do not create output files | |
| 169 --quiet, --silent do not print \`checking...' messages | |
| 170 --version print the version of autoconf that created configure | |
| 171 Directory and file names: | |
| 172 --prefix=PREFIX install architecture-independent files in PREFIX | |
| 173 [$ac_default_prefix] | |
| 174 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
| 175 [same as prefix] | |
| 176 --bindir=DIR user executables in DIR [EPREFIX/bin] | |
| 177 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
| 178 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
| 179 --datadir=DIR read-only architecture-independent data in DIR | |
| 180 [PREFIX/share] | |
| 181 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
| 182 --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
| 183 [PREFIX/com] | |
| 184 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
| 185 --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
| 186 --includedir=DIR C header files in DIR [PREFIX/include] | |
| 187 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
| 188 --infodir=DIR info documentation in DIR [PREFIX/info] | |
| 189 --mandir=DIR man documentation in DIR [PREFIX/man] | |
| 190 --srcdir=DIR find the sources in DIR [configure dir or ..] | |
| 191 --program-prefix=PREFIX prepend PREFIX to installed program names | |
| 192 --program-suffix=SUFFIX append SUFFIX to installed program names | |
| 193 --program-transform-name=PROGRAM | |
| 194 run sed PROGRAM on installed program names | |
| 195 EOF | |
| 196 cat << EOF | |
| 197 Host type: | |
| 198 --build=BUILD configure for building on BUILD [BUILD=HOST] | |
| 199 --host=HOST configure for HOST [guessed] | |
| 200 --target=TARGET configure for TARGET [TARGET=HOST] | |
| 201 Features and packages: | |
| 202 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
| 203 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
| 204 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
| 205 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
| 206 --x-includes=DIR X include files are in DIR | |
| 207 --x-libraries=DIR X library files are in DIR | |
| 208 EOF | |
| 209 if test -n "$ac_help"; then | |
| 210 echo "--enable and --with options recognized:$ac_help" | |
| 211 fi | |
| 212 exit 0 ;; | |
| 213 | |
| 214 -host | --host | --hos | --ho) | |
| 215 ac_prev=host ;; | |
| 216 -host=* | --host=* | --hos=* | --ho=*) | |
| 217 host="$ac_optarg" ;; | |
| 218 | |
| 219 -includedir | --includedir | --includedi | --included | --include \ | |
| 220 | --includ | --inclu | --incl | --inc) | |
| 221 ac_prev=includedir ;; | |
| 222 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
| 223 | --includ=* | --inclu=* | --incl=* | --inc=*) | |
| 224 includedir="$ac_optarg" ;; | |
| 225 | |
| 226 -infodir | --infodir | --infodi | --infod | --info | --inf) | |
| 227 ac_prev=infodir ;; | |
| 228 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
| 229 infodir="$ac_optarg" ;; | |
| 230 | |
| 231 -libdir | --libdir | --libdi | --libd) | |
| 232 ac_prev=libdir ;; | |
| 233 -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
| 234 libdir="$ac_optarg" ;; | |
| 235 | |
| 236 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
| 237 | --libexe | --libex | --libe) | |
| 238 ac_prev=libexecdir ;; | |
| 239 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
| 240 | --libexe=* | --libex=* | --libe=*) | |
| 241 libexecdir="$ac_optarg" ;; | |
| 242 | |
| 243 -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
| 244 | --localstate | --localstat | --localsta | --localst \ | |
| 245 | --locals | --local | --loca | --loc | --lo) | |
| 246 ac_prev=localstatedir ;; | |
| 247 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
| 248 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
| 249 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
| 250 localstatedir="$ac_optarg" ;; | |
| 251 | |
| 252 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
| 253 ac_prev=mandir ;; | |
| 254 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
| 255 mandir="$ac_optarg" ;; | |
| 256 | |
| 257 -nfp | --nfp | --nf) | |
| 258 # Obsolete; use --without-fp. | |
| 259 with_fp=no ;; | |
| 260 | |
| 261 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
| 262 | --no-cr | --no-c) | |
| 263 no_create=yes ;; | |
| 264 | |
| 265 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
| 266 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
| 267 no_recursion=yes ;; | |
| 268 | |
| 269 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
| 270 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
| 271 | --oldin | --oldi | --old | --ol | --o) | |
| 272 ac_prev=oldincludedir ;; | |
| 273 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
| 274 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
| 275 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
| 276 oldincludedir="$ac_optarg" ;; | |
| 277 | |
| 278 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
| 279 ac_prev=prefix ;; | |
| 280 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
| 281 prefix="$ac_optarg" ;; | |
| 282 | |
| 283 -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
| 284 | --program-pre | --program-pr | --program-p) | |
| 285 ac_prev=program_prefix ;; | |
| 286 -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
| 287 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
| 288 program_prefix="$ac_optarg" ;; | |
| 289 | |
| 290 -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
| 291 | --program-suf | --program-su | --program-s) | |
| 292 ac_prev=program_suffix ;; | |
| 293 -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
| 294 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
| 295 program_suffix="$ac_optarg" ;; | |
| 296 | |
| 297 -program-transform-name | --program-transform-name \ | |
| 298 | --program-transform-nam | --program-transform-na \ | |
| 299 | --program-transform-n | --program-transform- \ | |
| 300 | --program-transform | --program-transfor \ | |
| 301 | --program-transfo | --program-transf \ | |
| 302 | --program-trans | --program-tran \ | |
| 303 | --progr-tra | --program-tr | --program-t) | |
| 304 ac_prev=program_transform_name ;; | |
| 305 -program-transform-name=* | --program-transform-name=* \ | |
| 306 | --program-transform-nam=* | --program-transform-na=* \ | |
| 307 | --program-transform-n=* | --program-transform-=* \ | |
| 308 | --program-transform=* | --program-transfor=* \ | |
| 309 | --program-transfo=* | --program-transf=* \ | |
| 310 | --program-trans=* | --program-tran=* \ | |
| 311 | --progr-tra=* | --program-tr=* | --program-t=*) | |
| 312 program_transform_name="$ac_optarg" ;; | |
| 313 | |
| 314 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
| 315 | -silent | --silent | --silen | --sile | --sil) | |
| 316 silent=yes ;; | |
| 317 | |
| 318 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
| 319 ac_prev=sbindir ;; | |
| 320 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
| 321 | --sbi=* | --sb=*) | |
| 322 sbindir="$ac_optarg" ;; | |
| 323 | |
| 324 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
| 325 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
| 326 | --sharedst | --shareds | --shared | --share | --shar \ | |
| 327 | --sha | --sh) | |
| 328 ac_prev=sharedstatedir ;; | |
| 329 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
| 330 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
| 331 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
| 332 | --sha=* | --sh=*) | |
| 333 sharedstatedir="$ac_optarg" ;; | |
| 334 | |
| 335 -site | --site | --sit) | |
| 336 ac_prev=site ;; | |
| 337 -site=* | --site=* | --sit=*) | |
| 338 site="$ac_optarg" ;; | |
| 339 | |
| 340 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
| 341 ac_prev=srcdir ;; | |
| 342 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
| 343 srcdir="$ac_optarg" ;; | |
| 344 | |
| 345 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
| 346 | --syscon | --sysco | --sysc | --sys | --sy) | |
| 347 ac_prev=sysconfdir ;; | |
| 348 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
| 349 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
| 350 sysconfdir="$ac_optarg" ;; | |
| 351 | |
| 352 -target | --target | --targe | --targ | --tar | --ta | --t) | |
| 353 ac_prev=target ;; | |
| 354 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
| 355 target="$ac_optarg" ;; | |
| 356 | |
| 357 -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
| 358 verbose=yes ;; | |
| 359 | |
| 360 -version | --version | --versio | --versi | --vers) | |
| 361 echo "configure generated by autoconf version 2.13" | |
| 362 exit 0 ;; | |
| 363 | |
| 364 -with-* | --with-*) | |
| 365 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
| 366 # Reject names that are not valid shell variable names. | |
| 367 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
| 368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
| 369 fi | |
| 370 ac_package=`echo $ac_package| sed 's/-/_/g'` | |
| 371 case "$ac_option" in | |
| 372 *=*) ;; | |
| 373 *) ac_optarg=yes ;; | |
| 374 esac | |
| 375 eval "with_${ac_package}='$ac_optarg'" ;; | |
| 376 | |
| 377 -without-* | --without-*) | |
| 378 ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
| 379 # Reject names that are not valid shell variable names. | |
| 380 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
| 381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
| 382 fi | |
| 383 ac_package=`echo $ac_package| sed 's/-/_/g'` | |
| 384 eval "with_${ac_package}=no" ;; | |
| 385 | |
| 386 --x) | |
| 387 # Obsolete; use --with-x. | |
| 388 with_x=yes ;; | |
| 389 | |
| 390 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
| 391 | --x-incl | --x-inc | --x-in | --x-i) | |
| 392 ac_prev=x_includes ;; | |
| 393 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
| 394 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
| 395 x_includes="$ac_optarg" ;; | |
| 396 | |
| 397 -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
| 398 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
| 399 ac_prev=x_libraries ;; | |
| 400 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
| 401 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
| 402 x_libraries="$ac_optarg" ;; | |
| 403 | |
| 404 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
| 405 ;; | |
| 406 | |
| 407 *) | |
| 408 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
| 409 echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
| 410 fi | |
| 411 if test "x$nonopt" != xNONE; then | |
| 412 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
| 413 fi | |
| 414 nonopt="$ac_option" | |
| 415 ;; | |
| 416 | |
| 417 esac | |
| 418 done | |
| 419 | |
| 420 if test -n "$ac_prev"; then | |
| 421 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
| 422 fi | |
| 423 | |
| 424 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
| 425 | |
| 426 # File descriptor usage: | |
| 427 # 0 standard input | |
| 428 # 1 file creation | |
| 429 # 2 errors and warnings | |
| 430 # 3 some systems may open it to /dev/tty | |
| 431 # 4 used on the Kubota Titan | |
| 432 # 6 checking for... messages and results | |
| 433 # 5 compiler messages saved in config.log | |
| 434 if test "$silent" = yes; then | |
| 435 exec 6>/dev/null | |
| 436 else | |
| 437 exec 6>&1 | |
| 438 fi | |
| 439 exec 5>./config.log | |
| 440 | |
| 441 echo "\ | |
| 442 This file contains any messages produced by compilers while | |
| 443 running configure, to aid debugging if configure makes a mistake. | |
| 444 " 1>&5 | |
| 445 | |
| 446 # Strip out --no-create and --no-recursion so they do not pile up. | |
| 447 # Also quote any args containing shell metacharacters. | |
| 448 ac_configure_args= | |
| 449 for ac_arg | |
| 450 do | |
| 451 case "$ac_arg" in | |
| 452 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
| 453 | --no-cr | --no-c) ;; | |
| 454 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
| 455 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
| 456 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
| 457 ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
| 458 *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
| 459 esac | |
| 460 done | |
| 461 | |
| 462 # NLS nuisances. | |
| 463 # Only set these to C if already set. These must not be set unconditionally | |
| 464 # because not all systems understand e.g. LANG=C (notably SCO). | |
| 465 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
| 466 # Non-C LC_CTYPE values break the ctype check. | |
| 467 if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
| 468 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
| 469 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
| 470 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
| 471 | |
| 472 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
| 473 rm -rf conftest* confdefs.h | |
| 474 # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
| 475 echo > confdefs.h | |
| 476 | |
| 477 # A filename unique to this package, relative to the directory that | |
| 478 # configure is in, which we can look for to find out if srcdir is correct. | |
| 479 ac_unique_file=config.guess | |
| 480 | |
| 481 # Find the source files, if location was not specified. | |
| 482 if test -z "$srcdir"; then | |
| 483 ac_srcdir_defaulted=yes | |
| 484 # Try the directory containing this script, then its parent. | |
| 485 ac_prog=$0 | |
| 486 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
| 487 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
| 488 srcdir=$ac_confdir | |
| 489 if test ! -r $srcdir/$ac_unique_file; then | |
| 490 srcdir=.. | |
| 491 fi | |
| 492 else | |
| 493 ac_srcdir_defaulted=no | |
| 494 fi | |
| 495 if test ! -r $srcdir/$ac_unique_file; then | |
| 496 if test "$ac_srcdir_defaulted" = yes; then | |
| 497 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
| 498 else | |
| 499 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
| 500 fi | |
| 501 fi | |
| 502 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
| 503 | |
| 504 # Prefer explicitly selected file to automatically selected ones. | |
| 505 if test -z "$CONFIG_SITE"; then | |
| 506 if test "x$prefix" != xNONE; then | |
| 507 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
| 508 else | |
| 509 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
| 510 fi | |
| 511 fi | |
| 512 for ac_site_file in $CONFIG_SITE; do | |
| 513 if test -r "$ac_site_file"; then | |
| 514 echo "loading site script $ac_site_file" | |
| 515 . "$ac_site_file" | |
| 516 fi | |
| 517 done | |
| 518 | |
| 519 if test -r "$cache_file"; then | |
| 520 echo "loading cache $cache_file" | |
| 521 . $cache_file | |
| 522 else | |
| 523 echo "creating cache $cache_file" | |
| 524 > $cache_file | |
| 525 fi | |
| 526 | |
| 527 ac_ext=c | |
| 528 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
| 529 ac_cpp='$CPP $CPPFLAGS' | |
| 530 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
| 531 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
| 532 cross_compiling=$ac_cv_prog_cc_cross | |
| 533 | |
| 534 ac_exeext= | |
| 535 ac_objext=o | |
| 536 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
| 537 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
| 538 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
| 539 ac_n= ac_c=' | |
| 540 ' ac_t=' ' | |
| 541 else | |
| 542 ac_n=-n ac_c= ac_t= | |
| 543 fi | |
| 544 else | |
| 545 ac_n= ac_c='\c' ac_t= | |
| 546 fi | |
| 547 | |
| 548 | |
| 549 ac_aux_dir= | |
| 550 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
| 551 if test -f $ac_dir/install-sh; then | |
| 552 ac_aux_dir=$ac_dir | |
| 553 ac_install_sh="$ac_aux_dir/install-sh -c" | |
| 554 break | |
| 555 elif test -f $ac_dir/install.sh; then | |
| 556 ac_aux_dir=$ac_dir | |
| 557 ac_install_sh="$ac_aux_dir/install.sh -c" | |
| 558 break | |
| 559 fi | |
| 560 done | |
| 561 if test -z "$ac_aux_dir"; then | |
| 562 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
| 563 fi | |
| 564 ac_config_guess=$ac_aux_dir/config.guess | |
| 565 ac_config_sub=$ac_aux_dir/config.sub | |
| 566 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
| 567 | |
| 568 | |
| 569 # Make sure we can run config.sub. | |
| 570 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
| 571 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
| 572 fi | |
| 573 | |
| 574 echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
| 575 echo "configure:576: checking host system type" >&5 | |
| 576 | |
| 577 host_alias=$host | |
| 578 case "$host_alias" in | |
| 579 NONE) | |
| 580 case $nonopt in | |
| 581 NONE) | |
| 582 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
| 583 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
| 584 fi ;; | |
| 585 *) host_alias=$nonopt ;; | |
| 586 esac ;; | |
| 587 esac | |
| 588 | |
| 589 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
| 590 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
| 591 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
| 592 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
| 593 echo "$ac_t""$host" 1>&6 | |
| 594 | |
| 595 # Find a good install program. We prefer a C program (faster), | |
| 596 # so one script is as good as another. But avoid the broken or | |
| 597 # incompatible versions: | |
| 598 # SysV /etc/install, /usr/sbin/install | |
| 599 # SunOS /usr/etc/install | |
| 600 # IRIX /sbin/install | |
| 601 # AIX /bin/install | |
| 602 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
| 603 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
| 604 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
| 605 # ./install, which can be erroneously created by make from ./install.sh. | |
| 606 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
| 607 echo "configure:608: checking for a BSD compatible install" >&5 | |
| 608 if test -z "$INSTALL"; then | |
| 609 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
| 610 echo $ac_n "(cached) $ac_c" 1>&6 | |
| 611 else | |
| 612 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
| 613 for ac_dir in $PATH; do | |
| 614 # Account for people who put trailing slashes in PATH elements. | |
| 615 case "$ac_dir/" in | |
| 616 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
| 617 *) | |
| 618 # OSF1 and SCO ODT 3.0 have their own names for install. | |
| 619 # Don't use installbsd from OSF since it installs stuff as root | |
| 620 # by default. | |
| 621 for ac_prog in ginstall scoinst install; do | |
| 622 if test -f $ac_dir/$ac_prog; then | |
| 623 if test $ac_prog = install && | |
| 624 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
| 625 # AIX install. It has an incompatible calling convention. | |
| 626 : | |
| 627 else | |
| 628 ac_cv_path_install="$ac_dir/$ac_prog -c" | |
| 629 break 2 | |
| 630 fi | |
| 631 fi | |
| 632 done | |
| 633 ;; | |
| 634 esac | |
| 635 done | |
| 636 IFS="$ac_save_IFS" | |
| 637 | |
| 638 fi | |
| 639 if test "${ac_cv_path_install+set}" = set; then | |
| 640 INSTALL="$ac_cv_path_install" | |
| 641 else | |
| 642 # As a last resort, use the slow shell script. We don't cache a | |
| 643 # path for INSTALL within a source directory, because that will | |
| 644 # break other packages using the cache if that directory is | |
| 645 # removed, or if the path is relative. | |
| 646 INSTALL="$ac_install_sh" | |
| 647 fi | |
| 648 fi | |
| 649 echo "$ac_t""$INSTALL" 1>&6 | |
| 650 | |
| 651 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
| 652 # It thinks the first close brace ends the variable substitution. | |
| 653 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
| 654 | |
| 655 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
| 656 | |
| 657 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
| 658 | |
| 659 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 | |
| 660 echo "configure:661: checking whether build environment is sane" >&5 | |
| 661 # Just in case | |
| 662 sleep 1 | |
| 663 echo timestamp > conftestfile | |
| 664 # Do `set' in a subshell so we don't clobber the current shell's | |
| 665 # arguments. Must try -L first in case configure is actually a | |
| 666 # symlink; some systems play weird games with the mod time of symlinks | |
| 667 # (eg FreeBSD returns the mod time of the symlink's containing | |
| 668 # directory). | |
| 669 if ( | |
| 670 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` | |
| 671 if test "$*" = "X"; then | |
| 672 # -L didn't work. | |
| 673 set X `ls -t $srcdir/configure conftestfile` | |
| 674 fi | |
| 675 if test "$*" != "X $srcdir/configure conftestfile" \ | |
| 676 && test "$*" != "X conftestfile $srcdir/configure"; then | |
| 677 | |
| 678 # If neither matched, then we have a broken ls. This can happen | |
| 679 # if, for instance, CONFIG_SHELL is bash and it inherits a | |
| 680 # broken ls alias from the environment. This has actually | |
| 681 # happened. Such a system could not be considered "sane". | |
| 682 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken | |
| 683 alias in your environment" 1>&2; exit 1; } | |
| 684 fi | |
| 685 | |
| 686 test "$2" = conftestfile | |
| 687 ) | |
| 688 then | |
| 689 # Ok. | |
| 690 : | |
| 691 else | |
| 692 { echo "configure: error: newly created file is older than distributed files! | |
| 693 Check your system clock" 1>&2; exit 1; } | |
| 694 fi | |
| 695 rm -f conftest* | |
| 696 echo "$ac_t""yes" 1>&6 | |
| 697 if test "$program_transform_name" = s,x,x,; then | |
| 698 program_transform_name= | |
| 699 else | |
| 700 # Double any \ or $. echo might interpret backslashes. | |
| 701 cat <<\EOF_SED > conftestsed | |
| 702 s,\\,\\\\,g; s,\$,$$,g | |
| 703 EOF_SED | |
| 704 program_transform_name="`echo $program_transform_name|sed -f conftestsed`" | |
| 705 rm -f conftestsed | |
| 706 fi | |
| 707 test "$program_prefix" != NONE && | |
| 708 program_transform_name="s,^,${program_prefix},; $program_transform_name" | |
| 709 # Use a double $ so make ignores it. | |
| 710 test "$program_suffix" != NONE && | |
| 711 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" | |
| 712 | |
| 713 # sed with no file args requires a program. | |
| 714 test "$program_transform_name" = "" && program_transform_name="s,x,x," | |
| 715 | |
| 716 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
| 717 echo "configure:718: checking whether ${MAKE-make} sets \${MAKE}" >&5 | |
| 718 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | |
| 719 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
| 720 echo $ac_n "(cached) $ac_c" 1>&6 | |
| 721 else | |
| 722 cat > conftestmake <<\EOF | |
| 723 all: | |
| 724 @echo 'ac_maketemp="${MAKE}"' | |
| 725 EOF | |
| 726 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
| 727 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
| 728 if test -n "$ac_maketemp"; then | |
| 729 eval ac_cv_prog_make_${ac_make}_set=yes | |
| 730 else | |
| 731 eval ac_cv_prog_make_${ac_make}_set=no | |
| 732 fi | |
| 733 rm -f conftestmake | |
| 734 fi | |
| 735 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
| 736 echo "$ac_t""yes" 1>&6 | |
| 737 SET_MAKE= | |
| 738 else | |
| 739 echo "$ac_t""no" 1>&6 | |
| 740 SET_MAKE="MAKE=${MAKE-make}" | |
| 741 fi | |
| 742 | |
| 743 | |
| 744 PACKAGE=eCos | |
| 745 | |
| 746 VERSION=2.0 | |
| 747 | |
| 748 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then | |
| 749 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } | |
| 750 fi | |
| 751 | |
| 752 | |
| 753 | |
| 754 missing_dir=`cd $ac_aux_dir && pwd` | |
| 755 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 | |
| 756 echo "configure:757: checking for working aclocal" >&5 | |
| 757 # Run test in a subshell; some versions of sh will print an error if | |
| 758 # an executable is not found, even if stderr is redirected. | |
| 759 # Redirect stdin to placate older versions of autoconf. Sigh. | |
| 760 if (aclocal --version) < /dev/null > /dev/null 2>&1; then | |
| 761 ACLOCAL=aclocal | |
| 762 echo "$ac_t""found" 1>&6 | |
| 763 else | |
| 764 ACLOCAL="$missing_dir/missing aclocal" | |
| 765 echo "$ac_t""missing" 1>&6 | |
| 766 fi | |
| 767 | |
| 768 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 | |
| 769 echo "configure:770: checking for working autoconf" >&5 | |
| 770 # Run test in a subshell; some versions of sh will print an error if | |
| 771 # an executable is not found, even if stderr is redirected. | |
| 772 # Redirect stdin to placate older versions of autoconf. Sigh. | |
| 773 if (autoconf --version) < /dev/null > /dev/null 2>&1; then | |
| 774 AUTOCONF=autoconf | |
| 775 echo "$ac_t""found" 1>&6 | |
| 776 else | |
| 777 AUTOCONF="$missing_dir/missing autoconf" | |
| 778 echo "$ac_t""missing" 1>&6 | |
| 779 fi | |
| 780 | |
| 781 echo $ac_n "checking for working automake""... $ac_c" 1>&6 | |
| 782 echo "configure:783: checking for working automake" >&5 | |
| 783 # Run test in a subshell; some versions of sh will print an error if | |
| 784 # an executable is not found, even if stderr is redirected. | |
| 785 # Redirect stdin to placate older versions of autoconf. Sigh. | |
| 786 if (automake --version) < /dev/null > /dev/null 2>&1; then | |
| 787 AUTOMAKE=automake | |
| 788 echo "$ac_t""found" 1>&6 | |
| 789 else | |
| 790 AUTOMAKE="$missing_dir/missing automake" | |
| 791 echo "$ac_t""missing" 1>&6 | |
| 792 fi | |
| 793 | |
| 794 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 | |
| 795 echo "configure:796: checking for working autoheader" >&5 | |
| 796 # Run test in a subshell; some versions of sh will print an error if | |
| 797 # an executable is not found, even if stderr is redirected. | |
| 798 # Redirect stdin to placate older versions of autoconf. Sigh. | |
| 799 if (autoheader --version) < /dev/null > /dev/null 2>&1; then | |
| 800 AUTOHEADER=autoheader | |
| 801 echo "$ac_t""found" 1>&6 | |
| 802 else | |
| 803 AUTOHEADER="$missing_dir/missing autoheader" | |
| 804 echo "$ac_t""missing" 1>&6 | |
| 805 fi | |
| 806 | |
| 807 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 | |
| 808 echo "configure:809: checking for working makeinfo" >&5 | |
| 809 # Run test in a subshell; some versions of sh will print an error if | |
| 810 # an executable is not found, even if stderr is redirected. | |
| 811 # Redirect stdin to placate older versions of autoconf. Sigh. | |
| 812 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then | |
| 813 MAKEINFO=makeinfo | |
| 814 echo "$ac_t""found" 1>&6 | |
| 815 else | |
| 816 MAKEINFO="$missing_dir/missing makeinfo" | |
| 817 echo "$ac_t""missing" 1>&6 | |
| 818 fi | |
| 819 | |
| 820 | |
| 821 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 | |
| 822 echo "configure:823: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
| 823 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
| 824 if test "${enable_maintainer_mode+set}" = set; then | |
| 825 enableval="$enable_maintainer_mode" | |
| 826 USE_MAINTAINER_MODE=$enableval | |
| 827 else | |
| 828 USE_MAINTAINER_MODE=no | |
| 829 fi | |
| 830 | |
| 831 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 | |
| 832 | |
| 833 | |
| 834 if test $USE_MAINTAINER_MODE = yes; then | |
| 835 MAINTAINER_MODE_TRUE= | |
| 836 MAINTAINER_MODE_FALSE='#' | |
| 837 else | |
| 838 MAINTAINER_MODE_TRUE='#' | |
| 839 MAINTAINER_MODE_FALSE= | |
| 840 fi | |
| 841 MAINT=$MAINTAINER_MODE_TRUE | |
| 842 | |
| 843 | |
| 844 | |
| 845 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
| 846 echo "configure:847: checking whether ${MAKE-make} sets \${MAKE}" >&5 | |
| 847 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | |
| 848 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
| 849 echo $ac_n "(cached) $ac_c" 1>&6 | |
| 850 else | |
| 851 cat > conftestmake <<\EOF | |
| 852 all: | |
| 853 @echo 'ac_maketemp="${MAKE}"' | |
| 854 EOF | |
| 855 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
| 856 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
| 857 if test -n "$ac_maketemp"; then | |
| 858 eval ac_cv_prog_make_${ac_make}_set=yes | |
| 859 else | |
| 860 eval ac_cv_prog_make_${ac_make}_set=no | |
| 861 fi | |
| 862 rm -f conftestmake | |
| 863 fi | |
| 864 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
| 865 echo "$ac_t""yes" 1>&6 | |
| 866 SET_MAKE= | |
| 867 else | |
| 868 echo "$ac_t""no" 1>&6 | |
| 869 SET_MAKE="MAKE=${MAKE-make}" | |
| 870 fi | |
| 871 | |
| 872 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 | |
| 873 echo "configure:874: checking for Cygwin environment" >&5 | |
| 874 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then | |
| 875 echo $ac_n "(cached) $ac_c" 1>&6 | |
| 876 else | |
| 877 cat > conftest.$ac_ext <<EOF | |
| 878 #line 879 "configure" | |
| 879 #include "confdefs.h" | |
| 880 | |
| 881 int main() { | |
| 882 | |
| 883 #ifndef __CYGWIN__ | |
| 884 #define __CYGWIN__ __CYGWIN32__ | |
| 885 #endif | |
| 886 return __CYGWIN__; | |
| 887 ; return 0; } | |
| 888 EOF | |
| 889 if { (eval echo configure:890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
| 890 rm -rf conftest* | |
| 891 ac_cv_cygwin=yes | |
| 892 else | |
| 893 echo "configure: failed program was:" >&5 | |
| 894 cat conftest.$ac_ext >&5 | |
| 895 rm -rf conftest* | |
| 896 ac_cv_cygwin=no | |
| 897 fi | |
| 898 rm -f conftest* | |
| 899 rm -f conftest* | |
| 900 fi | |
| 901 | |
| 902 echo "$ac_t""$ac_cv_cygwin" 1>&6 | |
| 903 CYGWIN= | |
| 904 test "$ac_cv_cygwin" = yes && CYGWIN=yes | |
| 905 # Extract the first word of "gcc", so it can be a program name with args. | |
| 906 set dummy gcc; ac_word=$2 | |
| 907 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
| 908 echo "configure:909: checking for $ac_word" >&5 | |
| 909 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
| 910 echo $ac_n "(cached) $ac_c" 1>&6 | |
| 911 else | |
| 912 if test -n "$CC"; then | |
| 913 ac_cv_prog_CC="$CC" # Let the user override the test. | |
| 914 else | |
| 915 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
| 916 ac_dummy="$PATH" | |
| 917 for ac_dir in $ac_dummy; do | |
| 918 test -z "$ac_dir" && ac_dir=. | |
| 919 if test -f $ac_dir/$ac_word; then | |
| 920 ac_cv_prog_CC="gcc" | |
| 921 break | |
| 922 fi | |
| 923 done | |
| 924 IFS="$ac_save_ifs" | |
| 925 fi | |
| 926 fi | |
| 927 CC="$ac_cv_prog_CC" | |
| 928 if test -n "$CC"; then | |
| 929 echo "$ac_t""$CC" 1>&6 | |
| 930 else | |
| 931 echo "$ac_t""no" 1>&6 | |
| 932 fi | |
| 933 | |
| 934 if test -z "$CC"; then | |
| 935 # Extract the first word of "cc", so it can be a program name with args. | |
| 936 set dummy cc; ac_word=$2 | |
| 937 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
| 938 echo "configure:939: checking for $ac_word" >&5 | |
| 939 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
| 940 echo $ac_n "(cached) $ac_c" 1>&6 | |
| 941 else | |
| 942 if test -n "$CC"; then | |
| 943 ac_cv_prog_CC="$CC" # Let the user override the test. | |
| 944 else | |
| 945 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
| 946 ac_prog_rejected=no | |
| 947 ac_dummy="$PATH" | |
| 948 for ac_dir in $ac_dummy; do | |
| 949 test -z "$ac_dir" && ac_dir=. | |
| 950 if test -f $ac_dir/$ac_word; then | |
| 951 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
| 952 ac_prog_rejected=yes | |
| 953 continue | |
| 954 fi | |
| 955 ac_cv_prog_CC="cc" | |
| 956 break | |
| 957 fi | |
| 958 done | |
| 959 IFS="$ac_save_ifs" | |
| 960 if test $ac_prog_rejected = yes; then | |
| 961 # We found a bogon in the path, so make sure we never use it. | |
| 962 set dummy $ac_cv_prog_CC | |
| 963 shift | |
| 964 if test $# -gt 0; then | |
| 965 # We chose a different compiler from the bogus one. | |
| 966 # However, it has the same basename, so the bogon will be chosen | |
| 967 # first if we set CC to just the basename; use the full file name. | |
| 968 shift | |
| 969 set dummy "$ac_dir/$ac_word" "$@" | |
| 970 shift | |
| 971 ac_cv_prog_CC="$@" | |
| 972 fi | |
| 973 fi | |
| 974 fi | |
| 975 fi | |
| 976 CC="$ac_cv_prog_CC" | |
| 977 if test -n "$CC"; then | |
| 978 echo "$ac_t""$CC" 1>&6 | |
| 979 else | |
| 980 echo "$ac_t""no" 1>&6 | |
| 981 fi | |
| 982 | |
| 983 if test -z "$CC"; then | |
| 984 case "`uname -s`" in | |
| 985 *win32* | *WIN32*) | |
| 986 # Extract the first word of "cl", so it can be a program name with args. | |
| 987 set dummy cl; ac_word=$2 | |
| 988 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
| 989 echo "configure:990: checking for $ac_word" >&5 | |
| 990 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
| 991 echo $ac_n "(cached) $ac_c" 1>&6 | |
| 992 else | |
| 993 if test -n "$CC"; then | |
| 994 ac_cv_prog_CC="$CC" # Let the user override the test. | |
| 995 else | |
| 996 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
| 997 ac_dummy="$PATH" | |
| 998 for ac_dir in $ac_dummy; do | |
| 999 test -z "$ac_dir" && ac_dir=. | |
| 1000 if test -f $ac_dir/$ac_word; then | |
| 1001 ac_cv_prog_CC="cl" | |
| 1002 break | |
| 1003 fi | |
| 1004 done | |
| 1005 IFS="$ac_save_ifs" | |
| 1006 fi | |
| 1007 fi | |
| 1008 CC="$ac_cv_prog_CC" | |
| 1009 if test -n "$CC"; then | |
| 1010 echo "$ac_t""$CC" 1>&6 | |
| 1011 else | |
| 1012 echo "$ac_t""no" 1>&6 | |
| 1013 fi | |
| 1014 ;; | |
| 1015 esac | |
| 1016 fi | |
| 1017 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
| 1018 fi | |
| 1019 | |
| 1020 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
| 1021 echo "configure:1022: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | |
| 1022 | |
| 1023 ac_ext=c | |
| 1024 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
| 1025 ac_cpp='$CPP $CPPFLAGS' | |
| 1026 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
| 1027 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
| 1028 cross_compiling=$ac_cv_prog_cc_cross | |
| 1029 | |
| 1030 cat > conftest.$ac_ext << EOF | |
| 1031 | |
| 1032 #line 1033 "configure" | |
| 1033 #include "confdefs.h" | |
| 1034 | |
| 1035 main(){return(0);} | |
| 1036 EOF | |
| 1037 if { (eval echo configure:1038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
| 1038 ac_cv_prog_cc_works=yes | |
| 1039 # If we can't run a trivial program, we are probably using a cross compiler. | |
| 1040 if (./conftest; exit) 2>/dev/null; then | |
| 1041 ac_cv_prog_cc_cross=no | |
| 1042 else | |
| 1043 ac_cv_prog_cc_cross=yes | |
| 1044 fi | |
| 1045 else | |
| 1046 echo "configure: failed program was:" >&5 | |
| 1047 cat conftest.$ac_ext >&5 | |
| 1048 ac_cv_prog_cc_works=no | |
| 1049 fi | |
| 1050 rm -fr conftest* | |
| 1051 ac_ext=c | |
| 1052 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
| 1053 ac_cpp='$CPP $CPPFLAGS' | |
| 1054 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
| 1055 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
| 1056 cross_compiling=$ac_cv_prog_cc_cross | |
| 1057 | |
| 1058 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
| 1059 if test $ac_cv_prog_cc_works = no; then | |
| 1060 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
| 1061 fi | |
| 1062 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
| 1063 echo "configure:1064: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
| 1064 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | |
| 1065 cross_compiling=$ac_cv_prog_cc_cross | |
| 1066 | |
| 1067 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
| 1068 echo "configure:1069: checking whether we are using GNU C" >&5 | |
| 1069 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | |
| 1070 echo $ac_n "(cached) $ac_c" 1>&6 | |
| 1071 else | |
| 1072 cat > conftest.c <<EOF | |
| 1073 #ifdef __GNUC__ | |
| 1074 yes; | |
| 1075 #endif | |
| 1076 EOF | |
| 1077 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
| 1078 ac_cv_prog_gcc=yes | |
| 1079 else | |
| 1080 ac_cv_prog_gcc=no | |
| 1081 fi | |
| 1082 fi | |
| 1083 | |
| 1084 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
| 1085 | |
| 1086 if test $ac_cv_prog_gcc = yes; then | |
| 1087 GCC=yes | |
| 1088 else | |
| 1089 GCC= | |
| 1090 fi | |
| 1091 | |
| 1092 ac_test_CFLAGS="${CFLAGS+set}" | |
| 1093 ac_save_CFLAGS="$CFLAGS" | |
| 1094 CFLAGS= | |
| 1095 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
| 1096 echo "configure:1097: checking whether ${CC-cc} accepts -g" >&5 | |
| 1097 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | |
| 1098 echo $ac_n "(cached) $ac_c" 1>&6 | |
| 1099 else | |
| 1100 echo 'void f(){}' > conftest.c | |
| 1101 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
| 1102 ac_cv_prog_cc_g=yes | |
| 1103 else | |
| 1104 ac_cv_prog_cc_g=no | |
| 1105 fi | |
| 1106 rm -f conftest* | |
| 1107 | |
| 1108 fi | |
| 1109 | |
| 1110 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
| 1111 if test "$ac_test_CFLAGS" = set; then | |
| 1112 CFLAGS="$ac_save_CFLAGS" | |
| 1113 elif test $ac_cv_prog_cc_g = yes; then | |
| 1114 if test "$GCC" = yes; then | |
| 1115 CFLAGS="-g -O2" | |
| 1116 else | |
| 1117 CFLAGS="-g" | |
| 1118 fi | |
| 1119 else | |
| 1120 if test "$GCC" = yes; then | |
| 1121 CFLAGS="-O2" | |
| 1122 else | |
| 1123 CFLAGS= | |
| 1124 fi | |
| 1125 fi | |
| 1126 | |
| 1127 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
| 1128 do | |
| 1129 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
| 1130 set dummy $ac_prog; ac_word=$2 | |
| 1131 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
| 1132 echo "configure:1133: checking for $ac_word" >&5 | |
| 1133 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then | |
| 1134 echo $ac_n "(cached) $ac_c" 1>&6 | |
| 1135 else | |
| 1136 if test -n "$CXX"; then | |
| 1137 ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
| 1138 else | |
| 1139 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
| 1140 ac_dummy="$PATH" | |
| 1141 for ac_dir in $ac_dummy; do | |
| 1142 test -z "$ac_dir" && ac_dir=. | |
| 1143 if test -f $ac_dir/$ac_word; then | |
| 1144 ac_cv_prog_CXX="$ac_prog" | |
| 1145 break | |
| 1146 fi | |
| 1147 done | |
| 1148 IFS="$ac_save_ifs" | |
| 1149 fi | |
| 1150 fi | |
| 1151 CXX="$ac_cv_prog_CXX" | |
| 1152 if test -n "$CXX"; then | |
| 1153 echo "$ac_t""$CXX" 1>&6 | |
| 1154 else | |
| 1155 echo "$ac_t""no" 1>&6 | |
| 1156 fi | |
| 1157 | |
| 1158 test -n "$CXX" && break | |
| 1159 done | |
| 1160 test -n "$CXX" || CXX="gcc" | |
| 1161 | |
| 1162 | |
| 1163 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
| 1164 echo "configure:1165: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 | |
| 1165 | |
| 1166 ac_ext=C | |
| 1167 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
| 1168 ac_cpp='$CXXCPP $CPPFLAGS' | |
| 1169 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
| 1170 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
| 1171 cross_compiling=$ac_cv_prog_cxx_cross | |
| 1172 | |
| 1173 cat > conftest.$ac_ext << EOF | |
| 1174 | |
| 1175 #line 1176 "configure" | |
| 1176 #include "confdefs.h" | |
| 1177 | |
| 1178 int main(){return(0);} | |
| 1179 EOF | |
| 1180 if { (eval echo configure:1181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
| 1181 ac_cv_prog_cxx_works=yes | |
| 1182 # If we can't run a trivial program, we are probably using a cross compiler. | |
| 1183 if (./conftest; exit) 2>/dev/null; then | |
| 1184 ac_cv_prog_cxx_cross=no | |
| 1185 else | |
| 1186 ac_cv_prog_cxx_cross=yes | |
| 1187 fi | |
| 1188 else | |
| 1189 echo "configure: failed program was:" >&5 | |
| 1190 cat conftest.$ac_ext >&5 | |
| 1191 ac_cv_prog_cxx_works=no | |
| 1192 fi | |
| 1193 rm -fr conftest* | |
| 1194 ac_ext=c | |
| 1195 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
| 1196 ac_cpp='$CPP $CPPFLAGS' | |
| 1197 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
| 1198 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
| 1199 cross_compiling=$ac_cv_prog_cc_cross | |
| 1200 | |
| 1201 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
| 1202 if test $ac_cv_prog_cxx_works = no; then | |
| 1203 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
| 1204 fi | |
| 1205 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
| 1206 echo "configure:1207: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
| 1207 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 | |
| 1208 cross_compiling=$ac_cv_prog_cxx_cross | |
| 1209 | |
| 1210 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
| 1211 echo "configure:1212: checking whether we are using GNU C++" >&5 | |
| 1212 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then | |
| 1213 echo $ac_n "(cached) $ac_c" 1>&6 | |
| 1214 else | |
| 1215 cat > conftest.C <<EOF | |
| 1216 #ifdef __GNUC__ | |
| 1217 yes; | |
| 1218 #endif | |
| 1219 EOF | |
| 1220 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
| 1221 ac_cv_prog_gxx=yes | |
| 1222 else | |
| 1223 ac_cv_prog_gxx=no | |
| 1224 fi | |
| 1225 fi | |
| 1226 | |
| 1227 echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | |
| 1228 | |
| 1229 if test $ac_cv_prog_gxx = yes; then | |
| 1230 GXX=yes | |
| 1231 else | |
| 1232 GXX= | |
| 1233 fi | |
| 1234 | |
| 1235 ac_test_CXXFLAGS="${CXXFLAGS+set}" | |
| 1236 ac_save_CXXFLAGS="$CXXFLAGS" | |
| 1237 CXXFLAGS= | |
| 1238 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
| 1239 echo "configure:1240: checking whether ${CXX-g++} accepts -g" >&5 | |
| 1240 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then | |
| 1241 echo $ac_n "(cached) $ac_c" 1>&6 | |
| 1242 else | |
| 1243 echo 'void f(){}' > conftest.cc | |
| 1244 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
| 1245 ac_cv_prog_cxx_g=yes | |
| 1246 else | |
| 1247 ac_cv_prog_cxx_g=no | |
| 1248 fi | |
| 1249 rm -f conftest* | |
| 1250 | |
| 1251 fi | |
| 1252 | |
| 1253 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
| 1254 if test "$ac_test_CXXFLAGS" = set; then | |
| 1255 CXXFLAGS="$ac_save_CXXFLAGS" | |
| 1256 elif test $ac_cv_prog_cxx_g = yes; then | |
| 1257 if test "$GXX" = yes; then | |
| 1258 CXXFLAGS="-g -O2" | |
| 1259 else | |
| 1260 CXXFLAGS="-g" | |
| 1261 fi | |
| 1262 else | |
| 1263 if test "$GXX" = yes; then | |
| 1264 CXXFLAGS="-O2" | |
| 1265 else | |
| 1266 CXXFLAGS= | |
| 1267 fi | |
| 1268 fi | |
| 1269 | |
| 1270 echo $ac_n "checking for object suffix""... $ac_c" 1>&6 | |
| 1271 echo "configure:1272: checking for object suffix" >&5 | |
| 1272 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then | |
| 1273 echo $ac_n "(cached) $ac_c" 1>&6 | |
| 1274 else | |
| 1275 rm -f conftest* | |
| 1276 echo 'int i = 1;' > conftest.$ac_ext | |
| 1277 if { (eval echo configure:1278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
| 1278 for ac_file in conftest.*; do | |
| 1279 case $ac_file in | |
| 1280 *.c) ;; | |
| 1281 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; | |
| 1282 esac | |
| 1283 done | |
| 1284 else | |
| 1285 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } | |
| 1286 fi | |
| 1287 rm -f conftest* | |
| 1288 fi | |
| 1289 | |
| 1290 echo "$ac_t""$ac_cv_objext" 1>&6 | |
| 1291 OBJEXT=$ac_cv_objext | |
| 1292 ac_objext=$ac_cv_objext | |
| 1293 | |
| 1294 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 | |
| 1295 echo "configure:1296: checking for mingw32 environment" >&5 | |
| 1296 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then | |
| 1297 echo $ac_n "(cached) $ac_c" 1>&6 | |
| 1298 else | |
| 1299 cat > conftest.$ac_ext <<EOF | |
| 1300 #line 1301 "configure" | |
| 1301 #include "confdefs.h" | |
| 1302 | |
| 1303 int main() { | |
| 1304 return __MINGW32__; | |
| 1305 ; return 0; } | |
| 1306 EOF | |
| 1307 if { (eval echo configure:1308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
| 1308 rm -rf conftest* | |
| 1309 ac_cv_mingw32=yes | |
| 1310 else | |
| 1311 echo "configure: failed program was:" >&5 | |
| 1312 cat conftest.$ac_ext >&5 | |
| 1313 rm -rf conftest* | |
| 1314 ac_cv_mingw32=no | |
| 1315 fi | |
| 1316 rm -f conftest* | |
| 1317 rm -f conftest* | |
| 1318 fi | |
| 1319 | |
| 1320 echo "$ac_t""$ac_cv_mingw32" 1>&6 | |
| 1321 MINGW32= | |
| 1322 test "$ac_cv_mingw32" = yes && MINGW32=yes | |
| 1323 | |
| 1324 | |
| 1325 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | |
| 1326 echo "configure:1327: checking for executable suffix" >&5 | |
| 1327 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then | |
| 1328 echo $ac_n "(cached) $ac_c" 1>&6 | |
| 1329 else | |
| 1330 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then | |
| 1331 ac_cv_exeext=.exe | |
| 1332 else | |
| 1333 rm -f conftest* | |
| 1334 echo 'int main () { return 0; }' > conftest.$ac_ext | |
| 1335 ac_cv_exeext= | |
| 1336 if { (eval echo configure:1337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then | |
| 1337 for file in conftest.*; do | |
| 1338 case $file in | |
| 1339 *.c | *.o | *.obj | *.ilk | *.pdb) ;; | |
| 1340 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; | |
| 1341 esac | |
| 1342 done | |
| 1343 else | |
| 1344 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | |
| 1345 fi | |
| 1346 rm -f conftest* | |
| 1347 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | |
| 1348 fi | |
| 1349 fi | |
| 1350 | |
| 1351 EXEEXT="" | |
| 1352 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | |
| 1353 echo "$ac_t""${ac_cv_exeext}" 1>&6 | |
| 1354 ac_exeext=$EXEEXT | |
| 1355 | |
| 1356 | |
| 1357 | |
| 1358 | |
| 1359 | |
| 1360 echo $ac_n "checking "for Visual C++"""... $ac_c" 1>&6 | |
| 1361 echo "configure:1362: checking "for Visual C++"" >&5 | |
| 1362 MSVC="no"; | |
| 1363 if test "${CC}" = "cl" ; then | |
| 1364 MSVC="yes" | |
| 1365 fi | |
| 1366 if test "${CXX}" = "cl" ; then | |
| 1367 MSVC="yes" | |
| 1368 fi | |
| 1369 | |
| 1370 | |
| 1371 if test "${MSVC}" = "yes"; then | |
| 1372 MSVC_TRUE= | |
| 1373 MSVC_FALSE='#' | |
| 1374 else | |
| 1375 MSVC_TRUE='#' | |
| 1376 MSVC_FALSE= | |
| 1377 fi | |
| 1378 echo "$ac_t""${MSVC}" 1>&6 | |
| 1379 | |
| 1380 | |
| 1381 if test "${cross_compiling}" = "yes"; then | |
| 1382 { echo "configure: error: cross-compilation of this package is not supported" 1>&2; exit 1; } | |
| 1383 fi | |
| 1384 | |
| 1385 | |
| 1386 | |
| 1387 | |
| 1388 | |
| 1389 | |
| 1390 echo $ac_n "checking "the default compiler flags"""... $ac_c" 1>&6 | |
| 1391 echo "configure:1392: checking "the default compiler flags"" >&5 | |
| 1392 | |
| 1393 cygflags_enable_debug="no" | |
| 1394 # Check whether --enable-debug or --disable-debug was given. | |
| 1395 if test "${enable_debug+set}" = set; then | |
| 1396 enableval="$enable_debug" | |
| 1397 case "${enableval}" in | |
| 1398 yes) cygflags_enable_debug="yes" ;; | |
| 1399 *) cygflags_enable_debug="no" ;; | |
| 1400 esac | |
| 1401 fi | |
| 1402 | |
| 1403 | |
| 1404 cygflags_enable_ansi="no" | |
| 1405 if test "${MSVC}" = "yes" ; then | |
| 1406 # Check whether --enable-ansi or --disable-ansi was given. | |
| 1407 if test "${enable_ansi+set}" = set; then | |
| 1408 enableval="$enable_ansi" | |
| 1409 case "${enableval}" in | |
| 1410 yes) cygflags_enable_ansi="yes" ;; | |
| 1411 *) cygflags_enable_ansi="no" ;; | |
| 1412 esac | |
| 1413 fi | |
| 1414 | |
| 1415 fi | |
| 1416 | |
| 1417 if test "${GCC}" = "yes" ; then | |
| 1418 CC="$CC -Wall -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs" | |
| 1419 CXX="$CXX -Wall -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Woverloaded-virtual" | |
| 1420 elif test "${MSVC}" = "yes" ; then | |
| 1421 CC="$CC -nologo -W3" | |
| 1422 CXX="$CXX -nologo -W3 -GR -GX" | |
| 1423 if test "${cygflags_enable_debug}" = "yes" ; then | |
| 1424 CC="$CC -MDd -Zi" | |
| 1425 CXX="$CXX -MDd -Zi" | |
| 1426 else | |
| 1427 CC="$CC -MD -O2" | |
| 1428 CXX="$CXX -MD -O2" | |
| 1429 fi | |
| 1430 else | |
| 1431 { echo "configure: error: "default flags for ${CC} are not known"" 1>&2; exit 1; } | |
| 1432 fi | |
| 1433 echo "$ac_t""done" 1>&6 | |
| 1434 | |
| 1435 | |
| 1436 | |
| 1437 | |
| 1438 | |
| 1439 if test "${cygflags_enable_debug}" = "yes" ; then | |
| 1440 cyginfra_asserts=yes | |
| 1441 cyginfra_preconditions=yes | |
| 1442 cyginfra_postconditions=yes | |
| 1443 cyginfra_invariants=yes | |
| 1444 cyginfra_loopinvariants=yes | |
| 1445 cyginfra_tracing=yes | |
| 1446 cyginfra_fntracing=yes | |
| 1447 else | |
| 1448 cyginfra_asserts=no | |
| 1449 cyginfra_preconditions=no | |
| 1450 cyginfra_postconditions=no | |
| 1451 cyginfra_invariants=no | |
| 1452 cyginfra_loopinvariants=no | |
| 1453 cyginfra_tracing=no | |
| 1454 cyginfra_fntracing=no | |
| 1455 fi | |
| 1456 | |
| 1457 # Check whether --enable-asserts or --disable-asserts was given. | |
| 1458 if test "${enable_asserts+set}" = set; then | |
| 1459 enableval="$enable_asserts" | |
| 1460 case "${enableval}" in | |
| 1461 yes) cyginfra_asserts=yes ;; | |
| 1462 no) cyginfra_asserts=no ;; | |
| 1463 *) { echo "configure: error: bad value ${enableval} for disable-asserts option" 1>&2; exit 1; } ;; | |
| 1464 esac | |
| 1465 fi | |
| 1466 | |
| 1467 if test "${cyginfra_asserts}" = "yes"; then | |
| 1468 cat >> confdefs.h <<\EOF | |
| 1469 #define CYGDBG_USE_ASSERTS 1 | |
| 1470 EOF | |
| 1471 | |
| 1472 fi | |
| 1473 | |
| 1474 # Check whether --enable-preconditions or --disable-preconditions was given. | |
| 1475 if test "${enable_preconditions+set}" = set; then | |
| 1476 enableval="$enable_preconditions" | |
| 1477 case "${enableval}" in | |
| 1478 yes) cyginfra_preconditions=yes ;; | |
| 1479 no) cyginfra_preconditions=no ;; | |
| 1480 *) { echo "configure: error: bad value ${enableval} for disable-preconditions option" 1>&2; exit 1; } ;; | |
| 1481 esac | |
| 1482 fi | |
| 1483 | |
| 1484 if test "${cyginfra_preconditions}" = "yes"; then | |
| 1485 cat >> confdefs.h <<\EOF | |
| 1486 #define CYGDBG_INFRA_DEBUG_PRECONDITIONS 1 | |
| 1487 EOF | |
| 1488 | |
| 1489 fi | |
| 1490 | |
| 1491 # Check whether --enable-postconditions or --disable-postconditions was given. | |
| 1492 if test "${enable_postconditions+set}" = set; then | |
| 1493 enableval="$enable_postconditions" | |
| 1494 case "${enableval}" in | |
| 1495 yes) cyginfra_postconditions=yes ;; | |
| 1496 no) cyginfra_postconditions=no ;; | |
| 1497 *) { echo "configure: error: bad value ${enableval} for disable-postconditions option" 1>&2; exit 1; } ;; | |
| 1498 esac | |
| 1499 fi | |
| 1500 | |
| 1501 if test "${cyginfra_postconditions}" = "yes"; then | |
| 1502 cat >> confdefs.h <<\EOF | |
| 1503 #define CYGDBG_INFRA_DEBUG_POSTCONDITIONS 1 | |
| 1504 EOF | |
| 1505 | |
| 1506 fi | |
| 1507 | |
| 1508 # Check whether --enable-invariants or --disable-invariants was given. | |
| 1509 if test "${enable_invariants+set}" = set; then | |
| 1510 enableval="$enable_invariants" | |
| 1511 case "${enableval}" in | |
| 1512 yes) cyginfra_invariants=yes ;; | |
| 1513 no) cyginfra_invariants=no ;; | |
| 1514 *) { echo "configure: error: bad value ${enableval} for disable-invariants option" 1>&2; exit 1; } ;; | |
| 1515 esac | |
| 1516 fi | |
| 1517 | |
| 1518 if test "${cyginfra_invariants}" = "yes"; then | |
| 1519 cat >> confdefs.h <<\EOF | |
| 1520 #define CYGDBG_INFRA_DEBUG_INVARIANTS 1 | |
| 1521 EOF | |
| 1522 | |
| 1523 fi | |
| 1524 | |
| 1525 # Check whether --enable-loopinvariants or --disable-loopinvariants was given. | |
| 1526 if test "${enable_loopinvariants+set}" = set; then | |
| 1527 enableval="$enable_loopinvariants" | |
| 1528 case "${enableval}" in | |
| 1529 yes) cyginfra_loopinvariants=yes ;; | |
| 1530 no) cyginfra_loopinvariants=no ;; | |
| 1531 *) { echo "configure: error: bad value ${enableval} for disable-loopinvariants option" 1>&2; exit 1; } ;; | |
| 1532 esac | |
| 1533 fi | |
| 1534 | |
| 1535 if test "${cyginfra_loopinvariants}" = "yes"; then | |
| 1536 cat >> confdefs.h <<\EOF | |
| 1537 #define CYGDBG_INFRA_DEBUG_LOOP_INVARIANTS 1 | |
| 1538 EOF | |
| 1539 | |
| 1540 fi | |
| 1541 | |
| 1542 # Check whether --enable-tracing or --disable-tracing was given. | |
| 1543 if test "${enable_tracing+set}" = set; then | |
| 1544 enableval="$enable_tracing" | |
| 1545 case "${enableval}" in | |
| 1546 yes) cyginfra_tracing=yes ;; | |
| 1547 no) cyginfra_tracing=no ;; | |
| 1548 *) { echo "configure: error: bad value ${enableval} for disable-tracing option" 1>&2; exit 1; } ;; | |
| 1549 esac | |
| 1550 fi | |
| 1551 | |
| 1552 if test "${cyginfra_tracing}" = "yes"; then | |
| 1553 cat >> confdefs.h <<\EOF | |
| 1554 #define CYGDBG_USE_TRACING 1 | |
| 1555 EOF | |
| 1556 | |
| 1557 fi | |
| 1558 | |
| 1559 # Check whether --enable-fntracing or --disable-fntracing was given. | |
| 1560 if test "${enable_fntracing+set}" = set; then | |
| 1561 enableval="$enable_fntracing" | |
| 1562 case "${enableval}" in | |
| 1563 yes) cyginfra_fntracing=yes ;; | |
| 1564 no) cyginfra_fntracing=no ;; | |
| 1565 *) { echo "configure: error: bad value ${enableval} for disable-fntracing option" 1>&2; exit 1; } ;; | |
| 1566 esac | |
| 1567 fi | |
| 1568 | |
| 1569 if test "${cyginfra_fntracing}" = "yes"; then | |
| 1570 cat >> confdefs.h <<\EOF | |
| 1571 #define CYGDBG_INFRA_DEBUG_FUNCTION_REPORTS 1 | |
| 1572 EOF | |
| 1573 | |
| 1574 fi | |
| 1575 | |
| 1576 | |
| 1577 | |
| 1578 | |
| 1579 | |
| 1580 | |
| 1581 | |
| 1582 | |
| 1583 | |
| 1584 echo $ac_n "checking for Tcl version""... $ac_c" 1>&6 | |
| 1585 echo "configure:1586: checking for Tcl version" >&5 | |
| 1586 # Check whether --with-tcl-version or --without-tcl-version was given. | |
| 1587 if test "${with_tcl_version+set}" = set; then | |
| 1588 withval="$with_tcl_version" | |
| 1589 | |
| 1590 cyg_ac_tcl_version=${with_tcl_version} | |
| 1591 | |
| 1592 else | |
| 1593 | |
| 1594 if test "${MSVC}" = "yes" ; then | |
| 1595 cyg_ac_tcl_version=80 | |
| 1596 else | |
| 1597 if test "${ac_cv_cygwin}" = "yes" ; then | |
| 1598 cyg_ac_tcl_version=80 | |
| 1599 else | |
| 1600 cyg_ac_tcl_version="" | |
| 1601 fi | |
| 1602 fi | |
| 1603 | |
| 1604 fi | |
| 1605 | |
| 1606 echo "$ac_t""${cyg_ac_tcl_version}" 1>&6 | |
| 1607 | |
| 1608 | |
| 1609 echo $ac_n "checking for Tcl installation""... $ac_c" 1>&6 | |
| 1610 echo "configure:1611: checking for Tcl installation" >&5 | |
| 1611 # Check whether --with-tcl or --without-tcl was given. | |
| 1612 if test "${with_tcl+set}" = set; then | |
| 1613 withval="$with_tcl" | |
| 1614 | |
| 1615 cyg_ac_tcl_incdir=${with_tcl}/include | |
| 1616 cyg_ac_tcl_libdir=${with_tcl}/lib | |
| 1617 | |
| 1618 else | |
| 1619 | |
| 1620 cyg_ac_tcl_incdir=${prefix}/include | |
| 1621 cyg_ac_tcl_libdir=${prefix}/lib | |
| 1622 | |
| 1623 fi | |
| 1624 | |
| 1625 echo "$ac_t""${cyg_ac_tcl_libdir}" 1>&6 | |
| 1626 | |
| 1627 if test \! -r ${cyg_ac_tcl_incdir}/tcl.h ; then | |
| 1628 { echo "configure: error: unable to locate Tcl header file tcl.h" 1>&2; exit 1; } | |
| 1629 fi | |
| 1630 | |
| 1631 if test "${MSVC}" = "yes" ; then | |
| 1632 cyg_ac_tcl_libs="tcl${cyg_ac_tcl_version}.lib" | |
| 1633 | |
| 1634 | |
| 1635 | |
| 1636 | |
| 1637 if test "${MSVC}" = "yes" ; then | |
| 1638 cyg_ac_tcl_incdir=`cygpath -w ${cyg_ac_tcl_incdir} | tr \\\\\\\\ /` | |
| 1639 fi | |
| 1640 | |
| 1641 | |
| 1642 | |
| 1643 | |
| 1644 | |
| 1645 if test "${MSVC}" = "yes" ; then | |
| 1646 cyg_ac_tcl_libdir=`cygpath -w ${cyg_ac_tcl_libdir} | tr \\\\\\\\ /` | |
| 1647 fi | |
| 1648 | |
| 1649 else | |
| 1650 if test \! -r ${cyg_ac_tcl_libdir}/tclConfig.sh ; then | |
| 1651 { echo "configure: error: unable to locate Tcl config file tclConfig.sh" 1>&2; exit 1; } | |
| 1652 else | |
| 1653 . ${cyg_ac_tcl_libdir}/tclConfig.sh | |
| 1654 cyg_ac_tcl_libs="-ltcl${cyg_ac_tcl_version} ${TCL_LIBS}" | |
| 1655 fi | |
| 1656 fi | |
| 1657 | |
| 1658 | |
| 1659 | |
| 1660 | |
| 1661 | |
| 1662 | |
| 1663 | |
| 1664 ECOS_DIRS="infra libcdl" | |
| 1665 | |
| 1666 | |
| 1667 | |
| 1668 | |
| 1669 if test -f ${srcdir}/tools/ecostest/common/configure; then | |
| 1670 ECOS_DIRS="${ECOS_DIRS} tools/ecostest/common" | |
| 1671 | |
| 1672 fi | |
| 1673 | |
| 1674 if test -d ${srcdir}/tools/configtool/standalone/common; then | |
| 1675 ECOS_DIRS="${ECOS_DIRS} tools/configtool/standalone/common" | |
| 1676 | |
| 1677 fi | |
| 1678 | |
| 1679 | |
| 1680 subdirs="${ECOS_DIRS}" | |
| 1681 | |
| 1682 trap '' 1 2 15 | |
| 1683 cat > confcache <<\EOF | |
| 1684 # This file is a shell script that caches the results of configure | |
| 1685 # tests run on this system so they can be shared between configure | |
| 1686 # scripts and configure runs. It is not useful on other systems. | |
| 1687 # If it contains results you don't want to keep, you may remove or edit it. | |
| 1688 # | |
| 1689 # By default, configure uses ./config.cache as the cache file, | |
| 1690 # creating it if it does not exist already. You can give configure | |
| 1691 # the --cache-file=FILE option to use a different cache file; that is | |
| 1692 # what configure does when it calls configure scripts in | |
| 1693 # subdirectories, so they share the cache. | |
| 1694 # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
| 1695 # config.status only pays attention to the cache file if you give it the | |
| 1696 # --recheck option to rerun configure. | |
| 1697 # | |
| 1698 EOF | |
| 1699 # The following way of writing the cache mishandles newlines in values, | |
| 1700 # but we know of no workaround that is simple, portable, and efficient. | |
| 1701 # So, don't put newlines in cache variables' values. | |
| 1702 # Ultrix sh set writes to stderr and can't be redirected directly, | |
| 1703 # and sets the high bit in the cache file unless we assign to the vars. | |
| 1704 (set) 2>&1 | | |
| 1705 case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
| 1706 *ac_space=\ *) | |
| 1707 # `set' does not quote correctly, so add quotes (double-quote substitution | |
| 1708 # turns \\\\ into \\, and sed turns \\ into \). | |
| 1709 sed -n \ | |
| 1710 -e "s/'/'\\\\''/g" \ | |
| 1711 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
| 1712 ;; | |
| 1713 *) | |
| 1714 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
| 1715 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
| 1716 ;; | |
| 1717 esac >> confcache | |
| 1718 if cmp -s $cache_file confcache; then | |
| 1719 : | |
| 1720 else | |
| 1721 if test -w $cache_file; then | |
| 1722 echo "updating cache $cache_file" | |
| 1723 cat confcache > $cache_file | |
| 1724 else | |
| 1725 echo "not updating unwritable cache $cache_file" | |
| 1726 fi | |
| 1727 fi | |
| 1728 rm -f confcache | |
| 1729 | |
| 1730 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
| 1731 | |
| 1732 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
| 1733 # Let make expand exec_prefix. | |
| 1734 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
| 1735 | |
| 1736 # Any assignment to VPATH causes Sun make to only execute | |
| 1737 # the first set of double-colon rules, so remove it if not needed. | |
| 1738 # If there is a colon in the path, we need to keep it. | |
| 1739 if test "x$srcdir" = x.; then | |
| 1740 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
| 1741 fi | |
| 1742 | |
| 1743 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
| 1744 | |
| 1745 # Transform confdefs.h into DEFS. | |
| 1746 # Protect against shell expansion while executing Makefile rules. | |
| 1747 # Protect against Makefile macro expansion. | |
| 1748 cat > conftest.defs <<\EOF | |
| 1749 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g | |
| 1750 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g | |
| 1751 s%\[%\\&%g | |
| 1752 s%\]%\\&%g | |
| 1753 s%\$%$$%g | |
| 1754 EOF | |
| 1755 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` | |
| 1756 rm -f conftest.defs | |
| 1757 | |
| 1758 | |
| 1759 # Without the "./", some shells look in PATH for config.status. | |
| 1760 : ${CONFIG_STATUS=./config.status} | |
| 1761 | |
| 1762 echo creating $CONFIG_STATUS | |
| 1763 rm -f $CONFIG_STATUS | |
| 1764 cat > $CONFIG_STATUS <<EOF | |
| 1765 #! /bin/sh | |
| 1766 # Generated automatically by configure. | |
| 1767 # Run this file to recreate the current configuration. | |
| 1768 # This directory was configured as follows, | |
| 1769 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
| 1770 # | |
| 1771 # $0 $ac_configure_args | |
| 1772 # | |
| 1773 # Compiler output produced by configure, useful for debugging | |
| 1774 # configure, is in ./config.log if it exists. | |
| 1775 | |
| 1776 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
| 1777 for ac_option | |
| 1778 do | |
| 1779 case "\$ac_option" in | |
| 1780 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
| 1781 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
| 1782 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
| 1783 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
| 1784 echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
| 1785 exit 0 ;; | |
| 1786 -help | --help | --hel | --he | --h) | |
| 1787 echo "\$ac_cs_usage"; exit 0 ;; | |
| 1788 *) echo "\$ac_cs_usage"; exit 1 ;; | |
| 1789 esac | |
| 1790 done | |
| 1791 | |
| 1792 ac_given_srcdir=$srcdir | |
| 1793 ac_given_INSTALL="$INSTALL" | |
| 1794 | |
| 1795 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
| 1796 EOF | |
| 1797 cat >> $CONFIG_STATUS <<EOF | |
| 1798 | |
| 1799 # Protect against being on the right side of a sed subst in config.status. | |
| 1800 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
| 1801 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
| 1802 $ac_vpsub | |
| 1803 $extrasub | |
| 1804 s%@SHELL@%$SHELL%g | |
| 1805 s%@CFLAGS@%$CFLAGS%g | |
| 1806 s%@CPPFLAGS@%$CPPFLAGS%g | |
| 1807 s%@CXXFLAGS@%$CXXFLAGS%g | |
| 1808 s%@FFLAGS@%$FFLAGS%g | |
| 1809 s%@DEFS@%$DEFS%g | |
| 1810 s%@LDFLAGS@%$LDFLAGS%g | |
| 1811 s%@LIBS@%$LIBS%g | |
| 1812 s%@exec_prefix@%$exec_prefix%g | |
| 1813 s%@prefix@%$prefix%g | |
| 1814 s%@program_transform_name@%$program_transform_name%g | |
| 1815 s%@bindir@%$bindir%g | |
| 1816 s%@sbindir@%$sbindir%g | |
| 1817 s%@libexecdir@%$libexecdir%g | |
| 1818 s%@datadir@%$datadir%g | |
| 1819 s%@sysconfdir@%$sysconfdir%g | |
| 1820 s%@sharedstatedir@%$sharedstatedir%g | |
| 1821 s%@localstatedir@%$localstatedir%g | |
| 1822 s%@libdir@%$libdir%g | |
| 1823 s%@includedir@%$includedir%g | |
| 1824 s%@oldincludedir@%$oldincludedir%g | |
| 1825 s%@infodir@%$infodir%g | |
| 1826 s%@mandir@%$mandir%g | |
| 1827 s%@host@%$host%g | |
| 1828 s%@host_alias@%$host_alias%g | |
| 1829 s%@host_cpu@%$host_cpu%g | |
| 1830 s%@host_vendor@%$host_vendor%g | |
| 1831 s%@host_os@%$host_os%g | |
| 1832 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
| 1833 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
| 1834 s%@INSTALL_DATA@%$INSTALL_DATA%g | |
| 1835 s%@PACKAGE@%$PACKAGE%g | |
| 1836 s%@VERSION@%$VERSION%g | |
| 1837 s%@ACLOCAL@%$ACLOCAL%g | |
| 1838 s%@AUTOCONF@%$AUTOCONF%g | |
| 1839 s%@AUTOMAKE@%$AUTOMAKE%g | |
| 1840 s%@AUTOHEADER@%$AUTOHEADER%g | |
| 1841 s%@MAKEINFO@%$MAKEINFO%g | |
| 1842 s%@SET_MAKE@%$SET_MAKE%g | |
| 1843 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g | |
| 1844 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g | |
| 1845 s%@MAINT@%$MAINT%g | |
| 1846 s%@CC@%$CC%g | |
| 1847 s%@CXX@%$CXX%g | |
| 1848 s%@OBJEXT@%$OBJEXT%g | |
| 1849 s%@EXEEXT@%$EXEEXT%g | |
| 1850 s%@MSVC_TRUE@%$MSVC_TRUE%g | |
| 1851 s%@MSVC_FALSE@%$MSVC_FALSE%g | |
| 1852 s%@cyg_ac_tcl_version@%$cyg_ac_tcl_version%g | |
| 1853 s%@cyg_ac_tcl_incdir@%$cyg_ac_tcl_incdir%g | |
| 1854 s%@cyg_ac_tcl_libdir@%$cyg_ac_tcl_libdir%g | |
| 1855 s%@cyg_ac_tcl_libs@%$cyg_ac_tcl_libs%g | |
| 1856 s%@cyg_ac_tk_libs@%$cyg_ac_tk_libs%g | |
| 1857 s%@ECOS_DIRS@%$ECOS_DIRS%g | |
| 1858 s%@subdirs@%$subdirs%g | |
| 1859 | |
| 1860 CEOF | |
| 1861 EOF | |
| 1862 | |
| 1863 cat >> $CONFIG_STATUS <<\EOF | |
| 1864 | |
| 1865 # Split the substitutions into bite-sized pieces for seds with | |
| 1866 # small command number limits, like on Digital OSF/1 and HP-UX. | |
| 1867 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
| 1868 ac_file=1 # Number of current file. | |
| 1869 ac_beg=1 # First line for current file. | |
| 1870 ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
| 1871 ac_more_lines=: | |
| 1872 ac_sed_cmds="" | |
| 1873 while $ac_more_lines; do | |
| 1874 if test $ac_beg -gt 1; then | |
| 1875 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
| 1876 else | |
| 1877 sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
| 1878 fi | |
| 1879 if test ! -s conftest.s$ac_file; then | |
| 1880 ac_more_lines=false | |
| 1881 rm -f conftest.s$ac_file | |
| 1882 else | |
| 1883 if test -z "$ac_sed_cmds"; then | |
| 1884 ac_sed_cmds="sed -f conftest.s$ac_file" | |
| 1885 else | |
| 1886 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
| 1887 fi | |
| 1888 ac_file=`expr $ac_file + 1` | |
| 1889 ac_beg=$ac_end | |
| 1890 ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
| 1891 fi | |
| 1892 done | |
| 1893 if test -z "$ac_sed_cmds"; then | |
| 1894 ac_sed_cmds=cat | |
| 1895 fi | |
| 1896 EOF | |
| 1897 | |
| 1898 cat >> $CONFIG_STATUS <<EOF | |
| 1899 | |
| 1900 CONFIG_FILES=\${CONFIG_FILES-"Makefile"} | |
| 1901 EOF | |
| 1902 cat >> $CONFIG_STATUS <<\EOF | |
| 1903 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
| 1904 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
| 1905 case "$ac_file" in | |
| 1906 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
| 1907 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
| 1908 *) ac_file_in="${ac_file}.in" ;; | |
| 1909 esac | |
| 1910 | |
| 1911 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
| 1912 | |
| 1913 # Remove last slash and all that follows it. Not all systems have dirname. | |
| 1914 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
| 1915 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
| 1916 # The file is in a subdirectory. | |
| 1917 test ! -d "$ac_dir" && mkdir "$ac_dir" | |
| 1918 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
| 1919 # A "../" for each directory in $ac_dir_suffix. | |
| 1920 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
| 1921 else | |
| 1922 ac_dir_suffix= ac_dots= | |
| 1923 fi | |
| 1924 | |
| 1925 case "$ac_given_srcdir" in | |
| 1926 .) srcdir=. | |
| 1927 if test -z "$ac_dots"; then top_srcdir=. | |
| 1928 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
| 1929 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
| 1930 *) # Relative path. | |
| 1931 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
| 1932 top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
| 1933 esac | |
| 1934 | |
| 1935 case "$ac_given_INSTALL" in | |
| 1936 [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
| 1937 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
| 1938 esac | |
| 1939 | |
| 1940 echo creating "$ac_file" | |
| 1941 rm -f "$ac_file" | |
| 1942 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
| 1943 case "$ac_file" in | |
| 1944 *Makefile*) ac_comsub="1i\\ | |
| 1945 # $configure_input" ;; | |
| 1946 *) ac_comsub= ;; | |
| 1947 esac | |
| 1948 | |
| 1949 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
| 1950 sed -e "$ac_comsub | |
| 1951 s%@configure_input@%$configure_input%g | |
| 1952 s%@srcdir@%$srcdir%g | |
| 1953 s%@top_srcdir@%$top_srcdir%g | |
| 1954 s%@INSTALL@%$INSTALL%g | |
| 1955 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
| 1956 fi; done | |
| 1957 rm -f conftest.s* | |
| 1958 | |
| 1959 EOF | |
| 1960 cat >> $CONFIG_STATUS <<EOF | |
| 1961 | |
| 1962 | |
| 1963 | |
| 1964 EOF | |
| 1965 cat >> $CONFIG_STATUS <<\EOF | |
| 1966 | |
| 1967 test -d tools || mkdir tools | |
| 1968 test -d tools/ecostest || mkdir tools/ecostest | |
| 1969 test -d tools/ecostest/common || mkdir tools/ecostest/common | |
| 1970 | |
| 1971 | |
| 1972 test -d tools || mkdir tools | |
| 1973 test -d tools/configtool || mkdir tools/configtool | |
| 1974 test -d tools/configtool/standalone || mkdir tools/configtool/standalone | |
| 1975 test -d tools/configtool/standalone/common || mkdir tools/configtool/standalone/common | |
| 1976 | |
| 1977 | |
| 1978 exit 0 | |
| 1979 EOF | |
| 1980 chmod +x $CONFIG_STATUS | |
| 1981 rm -fr confdefs* $ac_clean_files | |
| 1982 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
| 1983 | |
| 1984 if test "$no_recursion" != yes; then | |
| 1985 | |
| 1986 # Remove --cache-file and --srcdir arguments so they do not pile up. | |
| 1987 ac_sub_configure_args= | |
| 1988 ac_prev= | |
| 1989 for ac_arg in $ac_configure_args; do | |
| 1990 if test -n "$ac_prev"; then | |
| 1991 ac_prev= | |
| 1992 continue | |
| 1993 fi | |
| 1994 case "$ac_arg" in | |
| 1995 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
| 1996 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
| 1997 ac_prev=cache_file ;; | |
| 1998 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
| 1999 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
| 2000 ;; | |
| 2001 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
| 2002 ac_prev=srcdir ;; | |
| 2003 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
| 2004 ;; | |
| 2005 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
| 2006 esac | |
| 2007 done | |
| 2008 | |
| 2009 for ac_config_dir in ${ECOS_DIRS}; do | |
| 2010 | |
| 2011 # Do not complain, so a configure script can configure whichever | |
| 2012 # parts of a large source tree are present. | |
| 2013 if test ! -d $srcdir/$ac_config_dir; then | |
| 2014 continue | |
| 2015 fi | |
| 2016 | |
| 2017 echo configuring in $ac_config_dir | |
| 2018 | |
| 2019 case "$srcdir" in | |
| 2020 .) ;; | |
| 2021 *) | |
| 2022 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
| 2023 else | |
| 2024 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
| 2025 fi | |
| 2026 ;; | |
| 2027 esac | |
| 2028 | |
| 2029 ac_popdir=`pwd` | |
| 2030 cd $ac_config_dir | |
| 2031 | |
| 2032 # A "../" for each directory in /$ac_config_dir. | |
| 2033 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
| 2034 | |
| 2035 case "$srcdir" in | |
| 2036 .) # No --srcdir option. We are building in place. | |
| 2037 ac_sub_srcdir=$srcdir ;; | |
| 2038 /*) # Absolute path. | |
| 2039 ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
| 2040 *) # Relative path. | |
| 2041 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
| 2042 esac | |
| 2043 | |
| 2044 # Check for guested configure; otherwise get Cygnus style configure. | |
| 2045 if test -f $ac_sub_srcdir/configure; then | |
| 2046 ac_sub_configure=$ac_sub_srcdir/configure | |
| 2047 elif test -f $ac_sub_srcdir/configure.in; then | |
| 2048 ac_sub_configure=$ac_configure | |
| 2049 else | |
| 2050 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 | |
| 2051 ac_sub_configure= | |
| 2052 fi | |
| 2053 | |
| 2054 # The recursion is here. | |
| 2055 if test -n "$ac_sub_configure"; then | |
| 2056 | |
| 2057 # Make the cache file name correct relative to the subdirectory. | |
| 2058 case "$cache_file" in | |
| 2059 /*) ac_sub_cache_file=$cache_file ;; | |
| 2060 *) # Relative path. | |
| 2061 ac_sub_cache_file="$ac_dots$cache_file" ;; | |
| 2062 esac | |
| 2063 case "$ac_given_INSTALL" in | |
| 2064 [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
| 2065 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
| 2066 esac | |
| 2067 | |
| 2068 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" | |
| 2069 # The eval makes quoting arguments work. | |
| 2070 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir | |
| 2071 then : | |
| 2072 else | |
| 2073 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
| 2074 fi | |
| 2075 fi | |
| 2076 | |
| 2077 cd $ac_popdir | |
| 2078 done | |
| 2079 fi | |
| 2080 |
