[a24c280] | 1 | #! /bin/sh |
---|
| 2 | |
---|
| 3 | # Guess values for system-dependent variables and create Makefiles. |
---|
| 4 | # Generated automatically using autoconf version 2.13 |
---|
| 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
---|
| 6 | # |
---|
| 7 | # This configure script is free software; the Free Software Foundation |
---|
| 8 | # gives unlimited permission to copy, distribute and modify it. |
---|
| 9 | |
---|
| 10 | # Defaults: |
---|
| 11 | ac_help= |
---|
| 12 | ac_default_prefix=/usr/local |
---|
| 13 | # Any additions from configure.in: |
---|
| 14 | ac_help="$ac_help |
---|
| 15 | --with-target-subdir=DIR" |
---|
| 16 | ac_help="$ac_help |
---|
| 17 | --enable-maintainer-mode enable make rules and dependencies not useful |
---|
| 18 | (and sometimes confusing) to the casual installer" |
---|
| 19 | ac_help="$ac_help |
---|
| 20 | --enable-multiprocessing enable multiprocessing interface" |
---|
| 21 | ac_help="$ac_help |
---|
| 22 | --enable-posix enable posix interface" |
---|
| 23 | ac_help="$ac_help |
---|
| 24 | --enable-rtems-inlines enable RTEMS inline functions |
---|
| 25 | (default:enabled, disable to use macros)" |
---|
| 26 | |
---|
| 27 | # Initialize some variables set by options. |
---|
| 28 | # The variables have the same names as the options, with |
---|
| 29 | # dashes changed to underlines. |
---|
| 30 | build=NONE |
---|
| 31 | cache_file=./config.cache |
---|
| 32 | exec_prefix=NONE |
---|
| 33 | host=NONE |
---|
| 34 | no_create= |
---|
| 35 | nonopt=NONE |
---|
| 36 | no_recursion= |
---|
| 37 | prefix=NONE |
---|
| 38 | program_prefix=NONE |
---|
| 39 | program_suffix=NONE |
---|
| 40 | program_transform_name=s,x,x, |
---|
| 41 | silent= |
---|
| 42 | site= |
---|
| 43 | srcdir= |
---|
| 44 | target=NONE |
---|
| 45 | verbose= |
---|
| 46 | x_includes=NONE |
---|
| 47 | x_libraries=NONE |
---|
| 48 | bindir='${exec_prefix}/bin' |
---|
| 49 | sbindir='${exec_prefix}/sbin' |
---|
| 50 | libexecdir='${exec_prefix}/libexec' |
---|
| 51 | datadir='${prefix}/share' |
---|
| 52 | sysconfdir='${prefix}/etc' |
---|
| 53 | sharedstatedir='${prefix}/com' |
---|
| 54 | localstatedir='${prefix}/var' |
---|
| 55 | libdir='${exec_prefix}/lib' |
---|
| 56 | includedir='${prefix}/include' |
---|
| 57 | oldincludedir='/usr/include' |
---|
| 58 | infodir='${prefix}/info' |
---|
| 59 | mandir='${prefix}/man' |
---|
| 60 | |
---|
| 61 | # Initialize some other variables. |
---|
| 62 | subdirs= |
---|
| 63 | MFLAGS= MAKEFLAGS= |
---|
| 64 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
| 65 | # Maximum number of lines to put in a shell here document. |
---|
| 66 | ac_max_here_lines=12 |
---|
| 67 | |
---|
| 68 | ac_prev= |
---|
| 69 | for ac_option |
---|
| 70 | do |
---|
| 71 | |
---|
| 72 | # If the previous option needs an argument, assign it. |
---|
| 73 | if test -n "$ac_prev"; then |
---|
| 74 | eval "$ac_prev=\$ac_option" |
---|
| 75 | ac_prev= |
---|
| 76 | continue |
---|
| 77 | fi |
---|
| 78 | |
---|
| 79 | case "$ac_option" in |
---|
| 80 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
| 81 | *) ac_optarg= ;; |
---|
| 82 | esac |
---|
| 83 | |
---|
| 84 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
| 85 | |
---|
| 86 | case "$ac_option" in |
---|
| 87 | |
---|
| 88 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
| 89 | ac_prev=bindir ;; |
---|
| 90 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
| 91 | bindir="$ac_optarg" ;; |
---|
| 92 | |
---|
| 93 | -build | --build | --buil | --bui | --bu) |
---|
| 94 | ac_prev=build ;; |
---|
| 95 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
| 96 | build="$ac_optarg" ;; |
---|
| 97 | |
---|
| 98 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 99 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 100 | ac_prev=cache_file ;; |
---|
| 101 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 102 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 103 | cache_file="$ac_optarg" ;; |
---|
| 104 | |
---|
| 105 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
| 106 | ac_prev=datadir ;; |
---|
| 107 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
| 108 | | --da=*) |
---|
| 109 | datadir="$ac_optarg" ;; |
---|
| 110 | |
---|
| 111 | -disable-* | --disable-*) |
---|
| 112 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
---|
| 113 | # Reject names that are not valid shell variable names. |
---|
| 114 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
| 115 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
| 116 | fi |
---|
| 117 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
| 118 | eval "enable_${ac_feature}=no" ;; |
---|
| 119 | |
---|
| 120 | -enable-* | --enable-*) |
---|
| 121 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
---|
| 122 | # Reject names that are not valid shell variable names. |
---|
| 123 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
| 124 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
| 125 | fi |
---|
| 126 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
| 127 | case "$ac_option" in |
---|
| 128 | *=*) ;; |
---|
| 129 | *) ac_optarg=yes ;; |
---|
| 130 | esac |
---|
| 131 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
---|
| 132 | |
---|
| 133 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
| 134 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
| 135 | | --exec | --exe | --ex) |
---|
| 136 | ac_prev=exec_prefix ;; |
---|
| 137 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
| 138 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
| 139 | | --exec=* | --exe=* | --ex=*) |
---|
| 140 | exec_prefix="$ac_optarg" ;; |
---|
| 141 | |
---|
| 142 | -gas | --gas | --ga | --g) |
---|
| 143 | # Obsolete; use --with-gas. |
---|
| 144 | with_gas=yes ;; |
---|
| 145 | |
---|
| 146 | -help | --help | --hel | --he) |
---|
| 147 | # Omit some internal or obsolete options to make the list less imposing. |
---|
| 148 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
| 149 | cat << EOF |
---|
| 150 | Usage: configure [options] [host] |
---|
| 151 | Options: [defaults in brackets after descriptions] |
---|
| 152 | Configuration: |
---|
| 153 | --cache-file=FILE cache test results in FILE |
---|
| 154 | --help print this message |
---|
| 155 | --no-create do not create output files |
---|
| 156 | --quiet, --silent do not print \`checking...' messages |
---|
| 157 | --version print the version of autoconf that created configure |
---|
| 158 | Directory and file names: |
---|
| 159 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
| 160 | [$ac_default_prefix] |
---|
| 161 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
| 162 | [same as prefix] |
---|
| 163 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
---|
| 164 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
---|
| 165 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
---|
| 166 | --datadir=DIR read-only architecture-independent data in DIR |
---|
| 167 | [PREFIX/share] |
---|
| 168 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
---|
| 169 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
---|
| 170 | [PREFIX/com] |
---|
| 171 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
---|
| 172 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
---|
| 173 | --includedir=DIR C header files in DIR [PREFIX/include] |
---|
| 174 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
---|
| 175 | --infodir=DIR info documentation in DIR [PREFIX/info] |
---|
| 176 | --mandir=DIR man documentation in DIR [PREFIX/man] |
---|
| 177 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
---|
| 178 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
| 179 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
| 180 | --program-transform-name=PROGRAM |
---|
| 181 | run sed PROGRAM on installed program names |
---|
| 182 | EOF |
---|
| 183 | cat << EOF |
---|
| 184 | Host type: |
---|
| 185 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
---|
| 186 | --host=HOST configure for HOST [guessed] |
---|
| 187 | --target=TARGET configure for TARGET [TARGET=HOST] |
---|
| 188 | Features and packages: |
---|
| 189 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
| 190 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
| 191 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
| 192 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
| 193 | --x-includes=DIR X include files are in DIR |
---|
| 194 | --x-libraries=DIR X library files are in DIR |
---|
| 195 | EOF |
---|
| 196 | if test -n "$ac_help"; then |
---|
| 197 | echo "--enable and --with options recognized:$ac_help" |
---|
| 198 | fi |
---|
| 199 | exit 0 ;; |
---|
| 200 | |
---|
| 201 | -host | --host | --hos | --ho) |
---|
| 202 | ac_prev=host ;; |
---|
| 203 | -host=* | --host=* | --hos=* | --ho=*) |
---|
| 204 | host="$ac_optarg" ;; |
---|
| 205 | |
---|
| 206 | -includedir | --includedir | --includedi | --included | --include \ |
---|
| 207 | | --includ | --inclu | --incl | --inc) |
---|
| 208 | ac_prev=includedir ;; |
---|
| 209 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
| 210 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
| 211 | includedir="$ac_optarg" ;; |
---|
| 212 | |
---|
| 213 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
| 214 | ac_prev=infodir ;; |
---|
| 215 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
| 216 | infodir="$ac_optarg" ;; |
---|
| 217 | |
---|
| 218 | -libdir | --libdir | --libdi | --libd) |
---|
| 219 | ac_prev=libdir ;; |
---|
| 220 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
| 221 | libdir="$ac_optarg" ;; |
---|
| 222 | |
---|
| 223 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
| 224 | | --libexe | --libex | --libe) |
---|
| 225 | ac_prev=libexecdir ;; |
---|
| 226 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
| 227 | | --libexe=* | --libex=* | --libe=*) |
---|
| 228 | libexecdir="$ac_optarg" ;; |
---|
| 229 | |
---|
| 230 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
| 231 | | --localstate | --localstat | --localsta | --localst \ |
---|
| 232 | | --locals | --local | --loca | --loc | --lo) |
---|
| 233 | ac_prev=localstatedir ;; |
---|
| 234 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
| 235 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
| 236 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
| 237 | localstatedir="$ac_optarg" ;; |
---|
| 238 | |
---|
| 239 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
| 240 | ac_prev=mandir ;; |
---|
| 241 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
| 242 | mandir="$ac_optarg" ;; |
---|
| 243 | |
---|
| 244 | -nfp | --nfp | --nf) |
---|
| 245 | # Obsolete; use --without-fp. |
---|
| 246 | with_fp=no ;; |
---|
| 247 | |
---|
| 248 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 249 | | --no-cr | --no-c) |
---|
| 250 | no_create=yes ;; |
---|
| 251 | |
---|
| 252 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 253 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
| 254 | no_recursion=yes ;; |
---|
| 255 | |
---|
| 256 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
| 257 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
| 258 | | --oldin | --oldi | --old | --ol | --o) |
---|
| 259 | ac_prev=oldincludedir ;; |
---|
| 260 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
| 261 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
| 262 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
| 263 | oldincludedir="$ac_optarg" ;; |
---|
| 264 | |
---|
| 265 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
| 266 | ac_prev=prefix ;; |
---|
| 267 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
| 268 | prefix="$ac_optarg" ;; |
---|
| 269 | |
---|
| 270 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
| 271 | | --program-pre | --program-pr | --program-p) |
---|
| 272 | ac_prev=program_prefix ;; |
---|
| 273 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
| 274 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
| 275 | program_prefix="$ac_optarg" ;; |
---|
| 276 | |
---|
| 277 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
| 278 | | --program-suf | --program-su | --program-s) |
---|
| 279 | ac_prev=program_suffix ;; |
---|
| 280 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
| 281 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
| 282 | program_suffix="$ac_optarg" ;; |
---|
| 283 | |
---|
| 284 | -program-transform-name | --program-transform-name \ |
---|
| 285 | | --program-transform-nam | --program-transform-na \ |
---|
| 286 | | --program-transform-n | --program-transform- \ |
---|
| 287 | | --program-transform | --program-transfor \ |
---|
| 288 | | --program-transfo | --program-transf \ |
---|
| 289 | | --program-trans | --program-tran \ |
---|
| 290 | | --progr-tra | --program-tr | --program-t) |
---|
| 291 | ac_prev=program_transform_name ;; |
---|
| 292 | -program-transform-name=* | --program-transform-name=* \ |
---|
| 293 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
| 294 | | --program-transform-n=* | --program-transform-=* \ |
---|
| 295 | | --program-transform=* | --program-transfor=* \ |
---|
| 296 | | --program-transfo=* | --program-transf=* \ |
---|
| 297 | | --program-trans=* | --program-tran=* \ |
---|
| 298 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
| 299 | program_transform_name="$ac_optarg" ;; |
---|
| 300 | |
---|
| 301 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 302 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 303 | silent=yes ;; |
---|
| 304 | |
---|
| 305 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
| 306 | ac_prev=sbindir ;; |
---|
| 307 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
| 308 | | --sbi=* | --sb=*) |
---|
| 309 | sbindir="$ac_optarg" ;; |
---|
| 310 | |
---|
| 311 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
| 312 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
| 313 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
| 314 | | --sha | --sh) |
---|
| 315 | ac_prev=sharedstatedir ;; |
---|
| 316 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
| 317 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
| 318 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
| 319 | | --sha=* | --sh=*) |
---|
| 320 | sharedstatedir="$ac_optarg" ;; |
---|
| 321 | |
---|
| 322 | -site | --site | --sit) |
---|
| 323 | ac_prev=site ;; |
---|
| 324 | -site=* | --site=* | --sit=*) |
---|
| 325 | site="$ac_optarg" ;; |
---|
| 326 | |
---|
| 327 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 328 | ac_prev=srcdir ;; |
---|
| 329 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 330 | srcdir="$ac_optarg" ;; |
---|
| 331 | |
---|
| 332 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
| 333 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
| 334 | ac_prev=sysconfdir ;; |
---|
| 335 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
| 336 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
| 337 | sysconfdir="$ac_optarg" ;; |
---|
| 338 | |
---|
| 339 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
| 340 | ac_prev=target ;; |
---|
| 341 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
| 342 | target="$ac_optarg" ;; |
---|
| 343 | |
---|
| 344 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
| 345 | verbose=yes ;; |
---|
| 346 | |
---|
| 347 | -version | --version | --versio | --versi | --vers) |
---|
| 348 | echo "configure generated by autoconf version 2.13" |
---|
| 349 | exit 0 ;; |
---|
| 350 | |
---|
| 351 | -with-* | --with-*) |
---|
| 352 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
---|
| 353 | # Reject names that are not valid shell variable names. |
---|
| 354 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
| 355 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
| 356 | fi |
---|
| 357 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
| 358 | case "$ac_option" in |
---|
| 359 | *=*) ;; |
---|
| 360 | *) ac_optarg=yes ;; |
---|
| 361 | esac |
---|
| 362 | eval "with_${ac_package}='$ac_optarg'" ;; |
---|
| 363 | |
---|
| 364 | -without-* | --without-*) |
---|
| 365 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
---|
| 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 | eval "with_${ac_package}=no" ;; |
---|
| 372 | |
---|
| 373 | --x) |
---|
| 374 | # Obsolete; use --with-x. |
---|
| 375 | with_x=yes ;; |
---|
| 376 | |
---|
| 377 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
| 378 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
| 379 | ac_prev=x_includes ;; |
---|
| 380 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
| 381 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
| 382 | x_includes="$ac_optarg" ;; |
---|
| 383 | |
---|
| 384 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
| 385 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
| 386 | ac_prev=x_libraries ;; |
---|
| 387 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
| 388 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
| 389 | x_libraries="$ac_optarg" ;; |
---|
| 390 | |
---|
| 391 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
---|
| 392 | ;; |
---|
| 393 | |
---|
| 394 | *) |
---|
| 395 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
---|
| 396 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
---|
| 397 | fi |
---|
| 398 | if test "x$nonopt" != xNONE; then |
---|
| 399 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
---|
| 400 | fi |
---|
| 401 | nonopt="$ac_option" |
---|
| 402 | ;; |
---|
| 403 | |
---|
| 404 | esac |
---|
| 405 | done |
---|
| 406 | |
---|
| 407 | if test -n "$ac_prev"; then |
---|
| 408 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
---|
| 409 | fi |
---|
| 410 | |
---|
| 411 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
| 412 | |
---|
| 413 | # File descriptor usage: |
---|
| 414 | # 0 standard input |
---|
| 415 | # 1 file creation |
---|
| 416 | # 2 errors and warnings |
---|
| 417 | # 3 some systems may open it to /dev/tty |
---|
| 418 | # 4 used on the Kubota Titan |
---|
| 419 | # 6 checking for... messages and results |
---|
| 420 | # 5 compiler messages saved in config.log |
---|
| 421 | if test "$silent" = yes; then |
---|
| 422 | exec 6>/dev/null |
---|
| 423 | else |
---|
| 424 | exec 6>&1 |
---|
| 425 | fi |
---|
| 426 | exec 5>./config.log |
---|
| 427 | |
---|
| 428 | echo "\ |
---|
| 429 | This file contains any messages produced by compilers while |
---|
| 430 | running configure, to aid debugging if configure makes a mistake. |
---|
| 431 | " 1>&5 |
---|
| 432 | |
---|
| 433 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 434 | # Also quote any args containing shell metacharacters. |
---|
| 435 | ac_configure_args= |
---|
| 436 | for ac_arg |
---|
| 437 | do |
---|
| 438 | case "$ac_arg" in |
---|
| 439 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 440 | | --no-cr | --no-c) ;; |
---|
| 441 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 442 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
---|
| 443 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
---|
| 444 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
| 445 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
---|
| 446 | esac |
---|
| 447 | done |
---|
| 448 | |
---|
| 449 | # NLS nuisances. |
---|
| 450 | # Only set these to C if already set. These must not be set unconditionally |
---|
| 451 | # because not all systems understand e.g. LANG=C (notably SCO). |
---|
| 452 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
---|
| 453 | # Non-C LC_CTYPE values break the ctype check. |
---|
| 454 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
---|
| 455 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
---|
| 456 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
---|
| 457 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
---|
| 458 | |
---|
| 459 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 460 | rm -rf conftest* confdefs.h |
---|
| 461 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
| 462 | echo > confdefs.h |
---|
| 463 | |
---|
| 464 | # A filename unique to this package, relative to the directory that |
---|
| 465 | # configure is in, which we can look for to find out if srcdir is correct. |
---|
| 466 | ac_unique_file=optman |
---|
| 467 | |
---|
| 468 | # Find the source files, if location was not specified. |
---|
| 469 | if test -z "$srcdir"; then |
---|
| 470 | ac_srcdir_defaulted=yes |
---|
| 471 | # Try the directory containing this script, then its parent. |
---|
| 472 | ac_prog=$0 |
---|
| 473 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
---|
| 474 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
---|
| 475 | srcdir=$ac_confdir |
---|
| 476 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 477 | srcdir=.. |
---|
| 478 | fi |
---|
| 479 | else |
---|
| 480 | ac_srcdir_defaulted=no |
---|
| 481 | fi |
---|
| 482 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 483 | if test "$ac_srcdir_defaulted" = yes; then |
---|
| 484 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
---|
| 485 | else |
---|
| 486 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
---|
| 487 | fi |
---|
| 488 | fi |
---|
| 489 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
---|
| 490 | |
---|
| 491 | # Prefer explicitly selected file to automatically selected ones. |
---|
| 492 | if test -z "$CONFIG_SITE"; then |
---|
| 493 | if test "x$prefix" != xNONE; then |
---|
| 494 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
| 495 | else |
---|
| 496 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
| 497 | fi |
---|
| 498 | fi |
---|
| 499 | for ac_site_file in $CONFIG_SITE; do |
---|
| 500 | if test -r "$ac_site_file"; then |
---|
| 501 | echo "loading site script $ac_site_file" |
---|
| 502 | . "$ac_site_file" |
---|
| 503 | fi |
---|
| 504 | done |
---|
| 505 | |
---|
| 506 | if test -r "$cache_file"; then |
---|
| 507 | echo "loading cache $cache_file" |
---|
| 508 | . $cache_file |
---|
| 509 | else |
---|
| 510 | echo "creating cache $cache_file" |
---|
| 511 | > $cache_file |
---|
| 512 | fi |
---|
| 513 | |
---|
| 514 | ac_ext=c |
---|
| 515 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 516 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 517 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 518 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 519 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 520 | |
---|
| 521 | ac_exeext= |
---|
| 522 | ac_objext=o |
---|
| 523 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
| 524 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
---|
| 525 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
| 526 | ac_n= ac_c=' |
---|
| 527 | ' ac_t=' ' |
---|
| 528 | else |
---|
| 529 | ac_n=-n ac_c= ac_t= |
---|
| 530 | fi |
---|
| 531 | else |
---|
| 532 | ac_n= ac_c='\c' ac_t= |
---|
| 533 | fi |
---|
| 534 | |
---|
| 535 | |
---|
[4075af6f] | 536 | |
---|
[a24c280] | 537 | # Check whether --with-target-subdir or --without-target-subdir was given. |
---|
| 538 | if test "${with_target_subdir+set}" = set; then |
---|
| 539 | withval="$with_target_subdir" |
---|
| 540 | TARGET_SUBDIR="$withval" |
---|
| 541 | else |
---|
| 542 | TARGET_SUBDIR="." |
---|
| 543 | fi |
---|
| 544 | |
---|
| 545 | |
---|
| 546 | RTEMS_TOPdir="../../../.."; |
---|
| 547 | |
---|
| 548 | |
---|
| 549 | echo $ac_n "checking for RTEMS Version""... $ac_c" 1>&6 |
---|
[4075af6f] | 550 | echo "configure:551: checking for RTEMS Version" >&5 |
---|
[a24c280] | 551 | if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then |
---|
| 552 | RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \ |
---|
| 553 | sed -e 's%RTEMS[ ]*Version[ ]*\(.*\)[ ]*%\1%g'` |
---|
| 554 | else |
---|
| 555 | { echo "configure: error: Unable to find ${RTEMS_TOPdir}/VERSION" 1>&2; exit 1; } |
---|
| 556 | fi |
---|
| 557 | if test -z "$RTEMS_VERSION"; then |
---|
| 558 | { echo "configure: error: Unable to determine version" 1>&2; exit 1; } |
---|
| 559 | fi |
---|
| 560 | echo "$ac_t""$RTEMS_VERSION" 1>&6 |
---|
| 561 | |
---|
| 562 | ac_aux_dir= |
---|
| 563 | for ac_dir in ../../../.. $srcdir/../../../..; do |
---|
| 564 | if test -f $ac_dir/install-sh; then |
---|
| 565 | ac_aux_dir=$ac_dir |
---|
| 566 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
| 567 | break |
---|
| 568 | elif test -f $ac_dir/install.sh; then |
---|
| 569 | ac_aux_dir=$ac_dir |
---|
| 570 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
| 571 | break |
---|
| 572 | fi |
---|
| 573 | done |
---|
| 574 | if test -z "$ac_aux_dir"; then |
---|
| 575 | { echo "configure: error: can not find install-sh or install.sh in ../../../.. $srcdir/../../../.." 1>&2; exit 1; } |
---|
| 576 | fi |
---|
| 577 | ac_config_guess=$ac_aux_dir/config.guess |
---|
| 578 | ac_config_sub=$ac_aux_dir/config.sub |
---|
| 579 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
---|
| 580 | |
---|
| 581 | |
---|
| 582 | |
---|
| 583 | |
---|
| 584 | # Do some error checking and defaulting for the host and target type. |
---|
| 585 | # The inputs are: |
---|
| 586 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT |
---|
| 587 | # |
---|
| 588 | # The rules are: |
---|
| 589 | # 1. You are not allowed to specify --host, --target, and nonopt at the |
---|
| 590 | # same time. |
---|
| 591 | # 2. Host defaults to nonopt. |
---|
| 592 | # 3. If nonopt is not specified, then host defaults to the current host, |
---|
| 593 | # as determined by config.guess. |
---|
| 594 | # 4. Target and build default to nonopt. |
---|
| 595 | # 5. If nonopt is not specified, then target and build default to host. |
---|
| 596 | |
---|
| 597 | # The aliases save the names the user supplied, while $host etc. |
---|
| 598 | # will get canonicalized. |
---|
| 599 | case $host---$target---$nonopt in |
---|
| 600 | NONE---*---* | *---NONE---* | *---*---NONE) ;; |
---|
| 601 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; |
---|
| 602 | esac |
---|
| 603 | |
---|
| 604 | |
---|
| 605 | # Make sure we can run config.sub. |
---|
| 606 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
---|
| 607 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
---|
| 608 | fi |
---|
| 609 | |
---|
| 610 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
---|
[4075af6f] | 611 | echo "configure:612: checking host system type" >&5 |
---|
[a24c280] | 612 | |
---|
| 613 | host_alias=$host |
---|
| 614 | case "$host_alias" in |
---|
| 615 | NONE) |
---|
| 616 | case $nonopt in |
---|
| 617 | NONE) |
---|
| 618 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
---|
| 619 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
---|
| 620 | fi ;; |
---|
| 621 | *) host_alias=$nonopt ;; |
---|
| 622 | esac ;; |
---|
| 623 | esac |
---|
| 624 | |
---|
| 625 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
---|
| 626 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 627 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 628 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 629 | echo "$ac_t""$host" 1>&6 |
---|
| 630 | |
---|
| 631 | echo $ac_n "checking target system type""... $ac_c" 1>&6 |
---|
[4075af6f] | 632 | echo "configure:633: checking target system type" >&5 |
---|
[a24c280] | 633 | |
---|
| 634 | target_alias=$target |
---|
| 635 | case "$target_alias" in |
---|
| 636 | NONE) |
---|
| 637 | case $nonopt in |
---|
| 638 | NONE) target_alias=$host_alias ;; |
---|
| 639 | *) target_alias=$nonopt ;; |
---|
| 640 | esac ;; |
---|
| 641 | esac |
---|
| 642 | |
---|
| 643 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
---|
| 644 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 645 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 646 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 647 | echo "$ac_t""$target" 1>&6 |
---|
| 648 | |
---|
| 649 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
---|
[4075af6f] | 650 | echo "configure:651: checking build system type" >&5 |
---|
[a24c280] | 651 | |
---|
| 652 | build_alias=$build |
---|
| 653 | case "$build_alias" in |
---|
| 654 | NONE) |
---|
| 655 | case $nonopt in |
---|
| 656 | NONE) build_alias=$host_alias ;; |
---|
| 657 | *) build_alias=$nonopt ;; |
---|
| 658 | esac ;; |
---|
| 659 | esac |
---|
| 660 | |
---|
| 661 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
---|
| 662 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 663 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 664 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 665 | echo "$ac_t""$build" 1>&6 |
---|
| 666 | |
---|
| 667 | test "$host_alias" != "$target_alias" && |
---|
| 668 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
| 669 | NONENONEs,x,x, && |
---|
| 670 | program_prefix=${target_alias}- |
---|
| 671 | |
---|
| 672 | echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6 |
---|
[4075af6f] | 673 | echo "configure:674: checking rtems target cpu" >&5 |
---|
[a24c280] | 674 | case "${target}" in |
---|
| 675 | # hpux unix port should go here |
---|
| 676 | i[3456]86-go32-rtems*) |
---|
| 677 | RTEMS_CPU=i386 |
---|
| 678 | ;; |
---|
| 679 | i[3456]86-pc-linux*) # unix "simulator" port |
---|
| 680 | RTEMS_CPU=unix |
---|
| 681 | ;; |
---|
| 682 | i[3456]86-*freebsd2*) # unix "simulator" port |
---|
| 683 | RTEMS_CPU=unix |
---|
| 684 | ;; |
---|
| 685 | no_cpu-*rtems*) |
---|
| 686 | RTEMS_CPU=no_cpu |
---|
| 687 | ;; |
---|
| 688 | sparc-sun-solaris*) # unix "simulator" port |
---|
| 689 | RTEMS_CPU=unix |
---|
| 690 | ;; |
---|
| 691 | *) |
---|
| 692 | RTEMS_CPU=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'` |
---|
| 693 | ;; |
---|
| 694 | esac |
---|
| 695 | |
---|
| 696 | echo "$ac_t""$RTEMS_CPU" 1>&6 |
---|
| 697 | |
---|
| 698 | |
---|
| 699 | # Find a good install program. We prefer a C program (faster), |
---|
| 700 | # so one script is as good as another. But avoid the broken or |
---|
| 701 | # incompatible versions: |
---|
| 702 | # SysV /etc/install, /usr/sbin/install |
---|
| 703 | # SunOS /usr/etc/install |
---|
| 704 | # IRIX /sbin/install |
---|
| 705 | # AIX /bin/install |
---|
| 706 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
| 707 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
| 708 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
| 709 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
| 710 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
---|
[4075af6f] | 711 | echo "configure:712: checking for a BSD compatible install" >&5 |
---|
[a24c280] | 712 | if test -z "$INSTALL"; then |
---|
| 713 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
---|
| 714 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 715 | else |
---|
| 716 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
---|
| 717 | for ac_dir in $PATH; do |
---|
| 718 | # Account for people who put trailing slashes in PATH elements. |
---|
| 719 | case "$ac_dir/" in |
---|
| 720 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
---|
| 721 | *) |
---|
| 722 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
| 723 | # Don't use installbsd from OSF since it installs stuff as root |
---|
| 724 | # by default. |
---|
| 725 | for ac_prog in ginstall scoinst install; do |
---|
| 726 | if test -f $ac_dir/$ac_prog; then |
---|
| 727 | if test $ac_prog = install && |
---|
| 728 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
---|
| 729 | # AIX install. It has an incompatible calling convention. |
---|
| 730 | : |
---|
| 731 | else |
---|
| 732 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
---|
| 733 | break 2 |
---|
| 734 | fi |
---|
| 735 | fi |
---|
| 736 | done |
---|
| 737 | ;; |
---|
| 738 | esac |
---|
| 739 | done |
---|
| 740 | IFS="$ac_save_IFS" |
---|
| 741 | |
---|
| 742 | fi |
---|
| 743 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 744 | INSTALL="$ac_cv_path_install" |
---|
| 745 | else |
---|
| 746 | # As a last resort, use the slow shell script. We don't cache a |
---|
| 747 | # path for INSTALL within a source directory, because that will |
---|
| 748 | # break other packages using the cache if that directory is |
---|
| 749 | # removed, or if the path is relative. |
---|
| 750 | INSTALL="$ac_install_sh" |
---|
| 751 | fi |
---|
| 752 | fi |
---|
| 753 | echo "$ac_t""$INSTALL" 1>&6 |
---|
| 754 | |
---|
| 755 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
| 756 | # It thinks the first close brace ends the variable substitution. |
---|
| 757 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
| 758 | |
---|
| 759 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
---|
| 760 | |
---|
| 761 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
| 762 | |
---|
| 763 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
---|
[4075af6f] | 764 | echo "configure:765: checking whether build environment is sane" >&5 |
---|
[a24c280] | 765 | # Just in case |
---|
| 766 | sleep 1 |
---|
| 767 | echo timestamp > conftestfile |
---|
| 768 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
| 769 | # arguments. Must try -L first in case configure is actually a |
---|
| 770 | # symlink; some systems play weird games with the mod time of symlinks |
---|
| 771 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
| 772 | # directory). |
---|
| 773 | if ( |
---|
| 774 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
---|
| 775 | if test "$*" = "X"; then |
---|
| 776 | # -L didn't work. |
---|
| 777 | set X `ls -t $srcdir/configure conftestfile` |
---|
| 778 | fi |
---|
| 779 | if test "$*" != "X $srcdir/configure conftestfile" \ |
---|
| 780 | && test "$*" != "X conftestfile $srcdir/configure"; then |
---|
| 781 | |
---|
| 782 | # If neither matched, then we have a broken ls. This can happen |
---|
| 783 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
| 784 | # broken ls alias from the environment. This has actually |
---|
| 785 | # happened. Such a system could not be considered "sane". |
---|
| 786 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken |
---|
| 787 | alias in your environment" 1>&2; exit 1; } |
---|
| 788 | fi |
---|
| 789 | |
---|
| 790 | test "$2" = conftestfile |
---|
| 791 | ) |
---|
| 792 | then |
---|
| 793 | # Ok. |
---|
| 794 | : |
---|
| 795 | else |
---|
| 796 | { echo "configure: error: newly created file is older than distributed files! |
---|
| 797 | Check your system clock" 1>&2; exit 1; } |
---|
| 798 | fi |
---|
| 799 | rm -f conftest* |
---|
| 800 | echo "$ac_t""yes" 1>&6 |
---|
| 801 | if test "$program_transform_name" = s,x,x,; then |
---|
| 802 | program_transform_name= |
---|
| 803 | else |
---|
| 804 | # Double any \ or $. echo might interpret backslashes. |
---|
| 805 | cat <<\EOF_SED > conftestsed |
---|
| 806 | s,\\,\\\\,g; s,\$,$$,g |
---|
| 807 | EOF_SED |
---|
| 808 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" |
---|
| 809 | rm -f conftestsed |
---|
| 810 | fi |
---|
| 811 | test "$program_prefix" != NONE && |
---|
| 812 | program_transform_name="s,^,${program_prefix},; $program_transform_name" |
---|
| 813 | # Use a double $ so make ignores it. |
---|
| 814 | test "$program_suffix" != NONE && |
---|
| 815 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" |
---|
| 816 | |
---|
| 817 | # sed with no file args requires a program. |
---|
| 818 | test "$program_transform_name" = "" && program_transform_name="s,x,x," |
---|
| 819 | |
---|
| 820 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
---|
[4075af6f] | 821 | echo "configure:822: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
---|
[a24c280] | 822 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
---|
| 823 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
---|
| 824 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 825 | else |
---|
| 826 | cat > conftestmake <<\EOF |
---|
| 827 | all: |
---|
| 828 | @echo 'ac_maketemp="${MAKE}"' |
---|
| 829 | EOF |
---|
| 830 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
| 831 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
---|
| 832 | if test -n "$ac_maketemp"; then |
---|
| 833 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
| 834 | else |
---|
| 835 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
| 836 | fi |
---|
| 837 | rm -f conftestmake |
---|
| 838 | fi |
---|
| 839 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
| 840 | echo "$ac_t""yes" 1>&6 |
---|
| 841 | SET_MAKE= |
---|
| 842 | else |
---|
| 843 | echo "$ac_t""no" 1>&6 |
---|
| 844 | SET_MAKE="MAKE=${MAKE-make}" |
---|
| 845 | fi |
---|
| 846 | |
---|
| 847 | |
---|
[473b4e5] | 848 | |
---|
[a24c280] | 849 | PACKAGE=rtems-c-src-exec-posix |
---|
| 850 | |
---|
| 851 | VERSION=$RTEMS_VERSION |
---|
| 852 | |
---|
| 853 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
---|
| 854 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } |
---|
| 855 | fi |
---|
| 856 | |
---|
| 857 | |
---|
| 858 | |
---|
| 859 | missing_dir=`cd $ac_aux_dir && pwd` |
---|
| 860 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 |
---|
[4075af6f] | 861 | echo "configure:862: checking for working aclocal" >&5 |
---|
[a24c280] | 862 | # Run test in a subshell; some versions of sh will print an error if |
---|
| 863 | # an executable is not found, even if stderr is redirected. |
---|
| 864 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
| 865 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then |
---|
| 866 | ACLOCAL=aclocal |
---|
| 867 | echo "$ac_t""found" 1>&6 |
---|
| 868 | else |
---|
| 869 | ACLOCAL="$missing_dir/missing aclocal" |
---|
| 870 | echo "$ac_t""missing" 1>&6 |
---|
| 871 | fi |
---|
| 872 | |
---|
| 873 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 |
---|
[4075af6f] | 874 | echo "configure:875: checking for working autoconf" >&5 |
---|
[a24c280] | 875 | # Run test in a subshell; some versions of sh will print an error if |
---|
| 876 | # an executable is not found, even if stderr is redirected. |
---|
| 877 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
| 878 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
---|
| 879 | AUTOCONF=autoconf |
---|
| 880 | echo "$ac_t""found" 1>&6 |
---|
| 881 | else |
---|
| 882 | AUTOCONF="$missing_dir/missing autoconf" |
---|
| 883 | echo "$ac_t""missing" 1>&6 |
---|
| 884 | fi |
---|
| 885 | |
---|
| 886 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 |
---|
[4075af6f] | 887 | echo "configure:888: checking for working automake" >&5 |
---|
[a24c280] | 888 | # Run test in a subshell; some versions of sh will print an error if |
---|
| 889 | # an executable is not found, even if stderr is redirected. |
---|
| 890 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
| 891 | if (automake --version) < /dev/null > /dev/null 2>&1; then |
---|
| 892 | AUTOMAKE=automake |
---|
| 893 | echo "$ac_t""found" 1>&6 |
---|
| 894 | else |
---|
| 895 | AUTOMAKE="$missing_dir/missing automake" |
---|
| 896 | echo "$ac_t""missing" 1>&6 |
---|
| 897 | fi |
---|
| 898 | |
---|
| 899 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 |
---|
[4075af6f] | 900 | echo "configure:901: checking for working autoheader" >&5 |
---|
[a24c280] | 901 | # Run test in a subshell; some versions of sh will print an error if |
---|
| 902 | # an executable is not found, even if stderr is redirected. |
---|
| 903 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
| 904 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
---|
| 905 | AUTOHEADER=autoheader |
---|
| 906 | echo "$ac_t""found" 1>&6 |
---|
| 907 | else |
---|
| 908 | AUTOHEADER="$missing_dir/missing autoheader" |
---|
| 909 | echo "$ac_t""missing" 1>&6 |
---|
| 910 | fi |
---|
| 911 | |
---|
| 912 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 |
---|
[4075af6f] | 913 | echo "configure:914: checking for working makeinfo" >&5 |
---|
[a24c280] | 914 | # Run test in a subshell; some versions of sh will print an error if |
---|
| 915 | # an executable is not found, even if stderr is redirected. |
---|
| 916 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
| 917 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
---|
| 918 | MAKEINFO=makeinfo |
---|
| 919 | echo "$ac_t""found" 1>&6 |
---|
| 920 | else |
---|
| 921 | MAKEINFO="$missing_dir/missing makeinfo" |
---|
| 922 | echo "$ac_t""missing" 1>&6 |
---|
| 923 | fi |
---|
| 924 | |
---|
| 925 | |
---|
| 926 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 |
---|
[4075af6f] | 927 | echo "configure:928: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
---|
[a24c280] | 928 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
---|
| 929 | if test "${enable_maintainer_mode+set}" = set; then |
---|
| 930 | enableval="$enable_maintainer_mode" |
---|
| 931 | USE_MAINTAINER_MODE=$enableval |
---|
| 932 | else |
---|
| 933 | USE_MAINTAINER_MODE=no |
---|
| 934 | fi |
---|
| 935 | |
---|
| 936 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 |
---|
| 937 | |
---|
| 938 | |
---|
| 939 | if test $USE_MAINTAINER_MODE = yes; then |
---|
| 940 | MAINTAINER_MODE_TRUE= |
---|
| 941 | MAINTAINER_MODE_FALSE='#' |
---|
| 942 | else |
---|
| 943 | MAINTAINER_MODE_TRUE='#' |
---|
| 944 | MAINTAINER_MODE_FALSE= |
---|
| 945 | fi |
---|
| 946 | MAINT=$MAINTAINER_MODE_TRUE |
---|
| 947 | |
---|
| 948 | |
---|
| 949 | |
---|
| 950 | |
---|
| 951 | # Check whether --enable-multiprocessing or --disable-multiprocessing was given. |
---|
| 952 | if test "${enable_multiprocessing+set}" = set; then |
---|
| 953 | enableval="$enable_multiprocessing" |
---|
| 954 | case "${enableval}" in |
---|
| 955 | yes) RTEMS_HAS_MULTIPROCESSING=yes ;; |
---|
| 956 | no) RTEMS_HAS_MULTIPROCESSING=no ;; |
---|
| 957 | *) { echo "configure: error: bad value ${enableval} for enable-multiprocessing option" 1>&2; exit 1; } ;; |
---|
| 958 | esac |
---|
| 959 | else |
---|
| 960 | RTEMS_HAS_MULTIPROCESSING=no |
---|
| 961 | fi |
---|
| 962 | |
---|
| 963 | |
---|
| 964 | |
---|
[4075af6f] | 965 | |
---|
[a24c280] | 966 | # Check whether --enable-posix or --disable-posix was given. |
---|
| 967 | if test "${enable_posix+set}" = set; then |
---|
| 968 | enableval="$enable_posix" |
---|
| 969 | case "${enableval}" in |
---|
| 970 | yes) RTEMS_HAS_POSIX_API=yes ;; |
---|
| 971 | no) RTEMS_HAS_POSIX_API=no ;; |
---|
| 972 | *) { echo "configure: error: bad value ${enableval} for enable-posix option" 1>&2; exit 1; } ;; |
---|
| 973 | esac |
---|
| 974 | else |
---|
| 975 | RTEMS_HAS_POSIX_API=yes |
---|
| 976 | fi |
---|
| 977 | |
---|
| 978 | |
---|
| 979 | |
---|
| 980 | case "${target}" in |
---|
| 981 | # hpux unix port should go here |
---|
| 982 | i[3456]86-go32-rtems*) |
---|
| 983 | RTEMS_HAS_POSIX_API=no |
---|
| 984 | ;; |
---|
| 985 | i[3456]86-pc-linux*) # unix "simulator" port |
---|
| 986 | RTEMS_HAS_POSIX_API=no |
---|
| 987 | ;; |
---|
| 988 | i[3456]86-*freebsd2*) # unix "simulator" port |
---|
| 989 | RTEMS_HAS_POSIX_API=no |
---|
| 990 | ;; |
---|
| 991 | no_cpu-*rtems*) |
---|
| 992 | RTEMS_HAS_POSIX_API=no |
---|
| 993 | ;; |
---|
| 994 | sparc-sun-solaris*) # unix "simulator" port |
---|
| 995 | RTEMS_HAS_POSIX_API=no |
---|
| 996 | ;; |
---|
| 997 | *) |
---|
| 998 | ;; |
---|
| 999 | esac |
---|
| 1000 | |
---|
| 1001 | |
---|
| 1002 | # Check whether --enable-rtems-inlines or --disable-rtems-inlines was given. |
---|
| 1003 | if test "${enable_rtems_inlines+set}" = set; then |
---|
| 1004 | enableval="$enable_rtems_inlines" |
---|
| 1005 | case "${enableval}" in |
---|
| 1006 | yes) RTEMS_USE_MACROS=no ;; |
---|
| 1007 | no) RTEMS_USE_MACROS=yes ;; |
---|
| 1008 | *) { echo "configure: error: bad value ${enableval} for disable-rtems-inlines option" 1>&2; exit 1; } ;; |
---|
| 1009 | esac |
---|
| 1010 | else |
---|
| 1011 | RTEMS_USE_MACROS=no |
---|
| 1012 | fi |
---|
| 1013 | |
---|
| 1014 | |
---|
| 1015 | |
---|
[4075af6f] | 1016 | |
---|
[a24c280] | 1017 | echo $ac_n "checking for RTEMS_BSP""... $ac_c" 1>&6 |
---|
[4075af6f] | 1018 | echo "configure:1019: checking for RTEMS_BSP" >&5 |
---|
[a24c280] | 1019 | if eval "test \"`echo '$''{'rtems_cv_RTEMS_BSP'+set}'`\" = set"; then |
---|
| 1020 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1021 | else |
---|
| 1022 | test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP"; |
---|
| 1023 | |
---|
| 1024 | fi |
---|
| 1025 | if test -z "$rtems_cv_RTEMS_BSP"; then |
---|
| 1026 | { echo "configure: error: Missing RTEMS_BSP" 1>&2; exit 1; } |
---|
| 1027 | fi |
---|
| 1028 | RTEMS_BSP="$rtems_cv_RTEMS_BSP" |
---|
| 1029 | echo "$ac_t""${RTEMS_BSP}" 1>&6 |
---|
| 1030 | |
---|
| 1031 | |
---|
| 1032 | |
---|
| 1033 | |
---|
| 1034 | |
---|
[4075af6f] | 1035 | |
---|
[a24c280] | 1036 | # Is this a supported CPU? |
---|
| 1037 | echo $ac_n "checking if cpu $RTEMS_CPU is supported""... $ac_c" 1>&6 |
---|
[4075af6f] | 1038 | echo "configure:1039: checking if cpu $RTEMS_CPU is supported" >&5 |
---|
[a24c280] | 1039 | if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$RTEMS_CPU"; then |
---|
| 1040 | echo "$ac_t""yes" 1>&6 |
---|
| 1041 | else |
---|
| 1042 | { echo "configure: error: no" 1>&2; exit 1; } |
---|
| 1043 | fi |
---|
| 1044 | |
---|
| 1045 | |
---|
| 1046 | RTEMS_HOST=$host_os |
---|
| 1047 | case "${target}" in |
---|
| 1048 | # hpux unix port should go here |
---|
| 1049 | i[3456]86-pc-linux*) # unix "simulator" port |
---|
| 1050 | RTEMS_HOST=Linux |
---|
| 1051 | ;; |
---|
| 1052 | i[3456]86-*freebsd2*) # unix "simulator" port |
---|
| 1053 | RTEMS_HOST=FreeBSD |
---|
| 1054 | ;; |
---|
| 1055 | sparc-sun-solaris*) # unix "simulator" port |
---|
| 1056 | RTEMS_HOST=Solaris |
---|
| 1057 | ;; |
---|
| 1058 | *) |
---|
| 1059 | ;; |
---|
| 1060 | esac |
---|
| 1061 | |
---|
| 1062 | |
---|
| 1063 | |
---|
| 1064 | |
---|
| 1065 | if test "$TARGET_SUBDIR" = "." ; then |
---|
| 1066 | PROJECT_ROOT=$RTEMS_TOPdir/'$(top_builddir)'; |
---|
| 1067 | else |
---|
| 1068 | PROJECT_ROOT=../$RTEMS_TOPdir/'$(top_builddir)' |
---|
| 1069 | fi |
---|
| 1070 | |
---|
| 1071 | |
---|
| 1072 | RTEMS_ROOT=$RTEMS_TOPdir/'$(top_builddir)'/c/$RTEMS_BSP |
---|
| 1073 | |
---|
| 1074 | |
---|
| 1075 | INSTALL_CHANGE="\$(KSH) \$(PROJECT_ROOT)/tools/build/install-if-change" |
---|
| 1076 | |
---|
| 1077 | |
---|
| 1078 | PACKHEX="\$(PROJECT_ROOT)/tools/build/packhex" |
---|
| 1079 | |
---|
| 1080 | |
---|
| 1081 | |
---|
| 1082 | ## FIXME: needed for INSTALL_CHANGE in autoconf subdirectories |
---|
| 1083 | |
---|
| 1084 | for ac_prog in bash ksh sh |
---|
| 1085 | do |
---|
| 1086 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1087 | set dummy $ac_prog; ac_word=$2 |
---|
| 1088 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[4075af6f] | 1089 | echo "configure:1090: checking for $ac_word" >&5 |
---|
[a24c280] | 1090 | if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then |
---|
| 1091 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1092 | else |
---|
| 1093 | case "$KSH" in |
---|
| 1094 | /*) |
---|
| 1095 | ac_cv_path_KSH="$KSH" # Let the user override the test with a path. |
---|
| 1096 | ;; |
---|
| 1097 | ?:/*) |
---|
| 1098 | ac_cv_path_KSH="$KSH" # Let the user override the test with a dos path. |
---|
| 1099 | ;; |
---|
| 1100 | *) |
---|
| 1101 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1102 | ac_dummy="$PATH" |
---|
| 1103 | for ac_dir in $ac_dummy; do |
---|
| 1104 | test -z "$ac_dir" && ac_dir=. |
---|
| 1105 | if test -f $ac_dir/$ac_word; then |
---|
| 1106 | ac_cv_path_KSH="$ac_dir/$ac_word" |
---|
| 1107 | break |
---|
| 1108 | fi |
---|
| 1109 | done |
---|
| 1110 | IFS="$ac_save_ifs" |
---|
| 1111 | ;; |
---|
| 1112 | esac |
---|
| 1113 | fi |
---|
| 1114 | KSH="$ac_cv_path_KSH" |
---|
| 1115 | if test -n "$KSH"; then |
---|
| 1116 | echo "$ac_t""$KSH" 1>&6 |
---|
| 1117 | else |
---|
| 1118 | echo "$ac_t""no" 1>&6 |
---|
| 1119 | fi |
---|
| 1120 | |
---|
| 1121 | test -n "$KSH" && break |
---|
| 1122 | done |
---|
| 1123 | |
---|
| 1124 | if test -z "$KSH"; then |
---|
| 1125 | { echo "configure: error: *** |
---|
| 1126 | Cannot determine a usable shell bash/ksh/sh |
---|
| 1127 | Please contact your system administrator " 1>&2; exit 1; }; |
---|
| 1128 | fi |
---|
| 1129 | |
---|
| 1130 | |
---|
| 1131 | |
---|
| 1132 | if [ "${program_prefix}" = "NONE" ] ; then |
---|
| 1133 | if [ "${target}" = "${host}" ] ; then |
---|
| 1134 | program_prefix= |
---|
| 1135 | else |
---|
| 1136 | program_prefix=${target}- |
---|
| 1137 | fi |
---|
| 1138 | fi |
---|
| 1139 | |
---|
| 1140 | |
---|
| 1141 | |
---|
| 1142 | |
---|
| 1143 | for ac_prog in "$program_prefix"gcc "$program_prefix"cc |
---|
| 1144 | do |
---|
| 1145 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1146 | set dummy $ac_prog; ac_word=$2 |
---|
| 1147 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[4075af6f] | 1148 | echo "configure:1149: checking for $ac_word" >&5 |
---|
[a24c280] | 1149 | if eval "test \"`echo '$''{'ac_cv_path_CC_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1150 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1151 | else |
---|
| 1152 | case "$CC_FOR_TARGET" in |
---|
| 1153 | /*) |
---|
| 1154 | ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a path. |
---|
| 1155 | ;; |
---|
| 1156 | ?:/*) |
---|
| 1157 | ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 1158 | ;; |
---|
| 1159 | *) |
---|
| 1160 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1161 | ac_dummy="$PATH" |
---|
| 1162 | for ac_dir in $ac_dummy; do |
---|
| 1163 | test -z "$ac_dir" && ac_dir=. |
---|
| 1164 | if test -f $ac_dir/$ac_word; then |
---|
| 1165 | ac_cv_path_CC_FOR_TARGET="$ac_dir/$ac_word" |
---|
| 1166 | break |
---|
| 1167 | fi |
---|
| 1168 | done |
---|
| 1169 | IFS="$ac_save_ifs" |
---|
| 1170 | ;; |
---|
| 1171 | esac |
---|
| 1172 | fi |
---|
| 1173 | CC_FOR_TARGET="$ac_cv_path_CC_FOR_TARGET" |
---|
| 1174 | if test -n "$CC_FOR_TARGET"; then |
---|
| 1175 | echo "$ac_t""$CC_FOR_TARGET" 1>&6 |
---|
| 1176 | else |
---|
| 1177 | echo "$ac_t""no" 1>&6 |
---|
| 1178 | fi |
---|
| 1179 | |
---|
| 1180 | test -n "$CC_FOR_TARGET" && break |
---|
| 1181 | done |
---|
| 1182 | |
---|
| 1183 | test -z "$CC_FOR_TARGET" \ |
---|
| 1184 | && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
| 1185 | |
---|
| 1186 | rtems_save_CC=$CC |
---|
| 1187 | rtems_save_CFLAGS=$CFLAGS |
---|
| 1188 | |
---|
| 1189 | CC=$CC_FOR_TARGET |
---|
| 1190 | |
---|
| 1191 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
[4075af6f] | 1192 | echo "configure:1193: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
[a24c280] | 1193 | |
---|
| 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 | cat > conftest.$ac_ext << EOF |
---|
| 1202 | |
---|
[4075af6f] | 1203 | #line 1204 "configure" |
---|
[a24c280] | 1204 | #include "confdefs.h" |
---|
| 1205 | |
---|
| 1206 | main(){return(0);} |
---|
| 1207 | EOF |
---|
[4075af6f] | 1208 | if { (eval echo configure:1209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
[a24c280] | 1209 | ac_cv_prog_cc_works=yes |
---|
| 1210 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
| 1211 | if (./conftest; exit) 2>/dev/null; then |
---|
| 1212 | ac_cv_prog_cc_cross=no |
---|
| 1213 | else |
---|
| 1214 | ac_cv_prog_cc_cross=yes |
---|
| 1215 | fi |
---|
| 1216 | else |
---|
| 1217 | echo "configure: failed program was:" >&5 |
---|
| 1218 | cat conftest.$ac_ext >&5 |
---|
| 1219 | ac_cv_prog_cc_works=no |
---|
| 1220 | fi |
---|
| 1221 | rm -fr conftest* |
---|
| 1222 | ac_ext=c |
---|
| 1223 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 1224 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1225 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 1226 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 1227 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 1228 | |
---|
| 1229 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
| 1230 | if test $ac_cv_prog_cc_works = no; then |
---|
| 1231 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
| 1232 | fi |
---|
| 1233 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
[4075af6f] | 1234 | echo "configure:1235: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
[a24c280] | 1235 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
| 1236 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 1237 | |
---|
| 1238 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
[4075af6f] | 1239 | echo "configure:1240: checking whether we are using GNU C" >&5 |
---|
[a24c280] | 1240 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
| 1241 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1242 | else |
---|
| 1243 | cat > conftest.c <<EOF |
---|
| 1244 | #ifdef __GNUC__ |
---|
| 1245 | yes; |
---|
| 1246 | #endif |
---|
| 1247 | EOF |
---|
[4075af6f] | 1248 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
[a24c280] | 1249 | ac_cv_prog_gcc=yes |
---|
| 1250 | else |
---|
| 1251 | ac_cv_prog_gcc=no |
---|
| 1252 | fi |
---|
| 1253 | fi |
---|
| 1254 | |
---|
| 1255 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
| 1256 | |
---|
| 1257 | if test $ac_cv_prog_gcc = yes; then |
---|
| 1258 | GCC=yes |
---|
| 1259 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
| 1260 | ac_save_CFLAGS="$CFLAGS" |
---|
| 1261 | CFLAGS= |
---|
| 1262 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
[4075af6f] | 1263 | echo "configure:1264: checking whether ${CC-cc} accepts -g" >&5 |
---|
[a24c280] | 1264 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
| 1265 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1266 | else |
---|
| 1267 | echo 'void f(){}' > conftest.c |
---|
| 1268 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
| 1269 | ac_cv_prog_cc_g=yes |
---|
| 1270 | else |
---|
| 1271 | ac_cv_prog_cc_g=no |
---|
| 1272 | fi |
---|
| 1273 | rm -f conftest* |
---|
| 1274 | |
---|
| 1275 | fi |
---|
| 1276 | |
---|
| 1277 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
| 1278 | if test "$ac_test_CFLAGS" = set; then |
---|
| 1279 | CFLAGS="$ac_save_CFLAGS" |
---|
| 1280 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 1281 | CFLAGS="-g -O2" |
---|
| 1282 | else |
---|
| 1283 | CFLAGS="-O2" |
---|
| 1284 | fi |
---|
| 1285 | else |
---|
| 1286 | GCC= |
---|
| 1287 | test "${CFLAGS+set}" = set || CFLAGS="-g" |
---|
| 1288 | fi |
---|
| 1289 | |
---|
| 1290 | rtems_cv_prog_gcc=$ac_cv_prog_gcc |
---|
| 1291 | rtems_cv_prog_cc_g=$ac_cv_prog_cc_g |
---|
| 1292 | rtems_cv_prog_cc_works=$ac_cv_prog_cc_works |
---|
| 1293 | rtems_cv_prog_cc_cross=$ac_cv_prog_cc_cross |
---|
| 1294 | |
---|
| 1295 | CC=$rtems_save_CC |
---|
| 1296 | CFLAGS=$rtems_save_CFLAGS |
---|
| 1297 | |
---|
| 1298 | unset ac_cv_prog_gcc |
---|
| 1299 | unset ac_cv_prog_cc_g |
---|
| 1300 | unset ac_cv_prog_cc_works |
---|
| 1301 | unset ac_cv_prog_cc_cross |
---|
| 1302 | |
---|
| 1303 | |
---|
| 1304 | echo $ac_n "checking whether $CC_FOR_TARGET accepts -specs""... $ac_c" 1>&6 |
---|
[4075af6f] | 1305 | echo "configure:1306: checking whether $CC_FOR_TARGET accepts -specs" >&5 |
---|
[a24c280] | 1306 | if eval "test \"`echo '$''{'rtems_cv_gcc_specs'+set}'`\" = set"; then |
---|
| 1307 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1308 | else |
---|
| 1309 | |
---|
| 1310 | rtems_cv_gcc_specs=no |
---|
| 1311 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 1312 | touch confspec |
---|
| 1313 | echo 'void f(){}' >conftest.c |
---|
| 1314 | if test -z "`${CC_FOR_TARGET} -specs confspec -c conftest.c 2>&1`";then |
---|
| 1315 | rtems_cv_gcc_specs=yes |
---|
| 1316 | fi |
---|
| 1317 | fi |
---|
| 1318 | rm -f confspec conftest* |
---|
| 1319 | |
---|
| 1320 | fi |
---|
| 1321 | |
---|
| 1322 | echo "$ac_t""$rtems_cv_gcc_specs" 1>&6 |
---|
| 1323 | |
---|
| 1324 | |
---|
| 1325 | echo $ac_n "checking whether $CC_FOR_TARGET accepts --pipe""... $ac_c" 1>&6 |
---|
[4075af6f] | 1326 | echo "configure:1327: checking whether $CC_FOR_TARGET accepts --pipe" >&5 |
---|
[a24c280] | 1327 | if eval "test \"`echo '$''{'rtems_cv_gcc_pipe'+set}'`\" = set"; then |
---|
| 1328 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1329 | else |
---|
| 1330 | |
---|
| 1331 | rtems_cv_gcc_pipe=no |
---|
| 1332 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 1333 | case "$host_os" in |
---|
| 1334 | cygwin*) |
---|
| 1335 | ;; |
---|
| 1336 | *) |
---|
| 1337 | echo 'void f(){}' >conftest.c |
---|
| 1338 | if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then |
---|
| 1339 | rtems_cv_gcc_pipe=yes |
---|
| 1340 | fi |
---|
| 1341 | rm -f conftest* |
---|
| 1342 | ;; |
---|
| 1343 | esac |
---|
| 1344 | fi |
---|
| 1345 | |
---|
| 1346 | fi |
---|
| 1347 | |
---|
| 1348 | echo "$ac_t""$rtems_cv_gcc_pipe" 1>&6 |
---|
| 1349 | |
---|
| 1350 | if test "$RTEMS_USE_GCC272" != "yes" ; then |
---|
| 1351 | if test "$rtems_cv_gcc_specs" = "no"; then |
---|
| 1352 | echo "configure: warning: *** disabling --enable-gcc28" 1>&2 |
---|
| 1353 | RTEMS_USE_GCC272=yes |
---|
| 1354 | fi |
---|
| 1355 | fi |
---|
| 1356 | test "$rtems_cv_gcc_pipe" = "yes" && CC_FOR_TARGET="$CC_FOR_TARGET --pipe" |
---|
| 1357 | |
---|
| 1358 | case $host_os in |
---|
| 1359 | *cygwin*) GCCSED="| sed 's%\\\\%/%g'" ;; |
---|
| 1360 | *) ;; |
---|
| 1361 | esac |
---|
| 1362 | |
---|
| 1363 | |
---|
| 1364 | |
---|
| 1365 | |
---|
| 1366 | echo $ac_n "checking target's ar""... $ac_c" 1>&6 |
---|
[4075af6f] | 1367 | echo "configure:1368: checking target's ar" >&5 |
---|
[a24c280] | 1368 | if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1369 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1370 | else |
---|
| 1371 | : |
---|
| 1372 | fi |
---|
| 1373 | |
---|
| 1374 | echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6 |
---|
| 1375 | |
---|
| 1376 | if test -n "$ac_cv_path_AR_FOR_TARGET"; then |
---|
| 1377 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
---|
| 1378 | else |
---|
| 1379 | if test -z "$AR_FOR_TARGET" ; then |
---|
| 1380 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 1381 | # We are using gcc, ask it about its tool |
---|
| 1382 | # NOTE: Necessary if gcc was configured to use the target's |
---|
| 1383 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
| 1384 | case $host_os in |
---|
| 1385 | *cygwin*) |
---|
| 1386 | AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar | sed -e 's%\\\\%/%g' ` |
---|
| 1387 | ;; |
---|
| 1388 | *) |
---|
| 1389 | AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar` |
---|
| 1390 | ;; |
---|
| 1391 | esac |
---|
| 1392 | |
---|
| 1393 | fi |
---|
| 1394 | else |
---|
| 1395 | # The user set an environment variable. |
---|
| 1396 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
| 1397 | # will override the environment variable, which isn't what the user |
---|
| 1398 | # intends |
---|
| 1399 | echo $ac_n "checking whether environment variable AR_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
[4075af6f] | 1400 | echo "configure:1401: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5 |
---|
[a24c280] | 1401 | case "$AR_FOR_TARGET" in |
---|
| 1402 | /*) # valid |
---|
| 1403 | echo "$ac_t"""yes"" 1>&6 |
---|
| 1404 | ;; |
---|
| 1405 | *) # invalid for AC_PATH_PROG |
---|
| 1406 | echo "$ac_t"""no"" 1>&6 |
---|
| 1407 | { echo "configure: error: *** |
---|
| 1408 | Environment variable AR_FOR_TARGET should either |
---|
| 1409 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
| 1410 | ;; |
---|
| 1411 | esac |
---|
| 1412 | fi |
---|
| 1413 | |
---|
| 1414 | # Extract the first word of ""$program_prefix"ar", so it can be a program name with args. |
---|
| 1415 | set dummy "$program_prefix"ar; ac_word=$2 |
---|
| 1416 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[4075af6f] | 1417 | echo "configure:1418: checking for $ac_word" >&5 |
---|
[a24c280] | 1418 | if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1419 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1420 | else |
---|
| 1421 | case "$AR_FOR_TARGET" in |
---|
| 1422 | /*) |
---|
| 1423 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
---|
| 1424 | ;; |
---|
| 1425 | ?:/*) |
---|
| 1426 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 1427 | ;; |
---|
| 1428 | *) |
---|
| 1429 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1430 | ac_dummy="$PATH" |
---|
| 1431 | for ac_dir in $ac_dummy; do |
---|
| 1432 | test -z "$ac_dir" && ac_dir=. |
---|
| 1433 | if test -f $ac_dir/$ac_word; then |
---|
| 1434 | ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word" |
---|
| 1435 | break |
---|
| 1436 | fi |
---|
| 1437 | done |
---|
| 1438 | IFS="$ac_save_ifs" |
---|
| 1439 | test -z "$ac_cv_path_AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET="no" |
---|
| 1440 | ;; |
---|
| 1441 | esac |
---|
| 1442 | fi |
---|
| 1443 | AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET" |
---|
| 1444 | if test -n "$AR_FOR_TARGET"; then |
---|
| 1445 | echo "$ac_t""$AR_FOR_TARGET" 1>&6 |
---|
| 1446 | else |
---|
| 1447 | echo "$ac_t""no" 1>&6 |
---|
| 1448 | fi |
---|
| 1449 | |
---|
| 1450 | fi |
---|
| 1451 | |
---|
| 1452 | |
---|
| 1453 | echo $ac_n "checking target's as""... $ac_c" 1>&6 |
---|
[4075af6f] | 1454 | echo "configure:1455: checking target's as" >&5 |
---|
[a24c280] | 1455 | if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1456 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1457 | else |
---|
| 1458 | : |
---|
| 1459 | fi |
---|
| 1460 | |
---|
| 1461 | echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6 |
---|
| 1462 | |
---|
| 1463 | if test -n "$ac_cv_path_AS_FOR_TARGET"; then |
---|
| 1464 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
---|
| 1465 | else |
---|
| 1466 | if test -z "$AS_FOR_TARGET" ; then |
---|
| 1467 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 1468 | # We are using gcc, ask it about its tool |
---|
| 1469 | # NOTE: Necessary if gcc was configured to use the target's |
---|
| 1470 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
| 1471 | case $host_os in |
---|
| 1472 | *cygwin*) |
---|
| 1473 | AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as | sed -e 's%\\\\%/%g' ` |
---|
| 1474 | ;; |
---|
| 1475 | *) |
---|
| 1476 | AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as` |
---|
| 1477 | ;; |
---|
| 1478 | esac |
---|
| 1479 | |
---|
| 1480 | fi |
---|
| 1481 | else |
---|
| 1482 | # The user set an environment variable. |
---|
| 1483 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
| 1484 | # will override the environment variable, which isn't what the user |
---|
| 1485 | # intends |
---|
| 1486 | echo $ac_n "checking whether environment variable AS_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
[4075af6f] | 1487 | echo "configure:1488: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5 |
---|
[a24c280] | 1488 | case "$AS_FOR_TARGET" in |
---|
| 1489 | /*) # valid |
---|
| 1490 | echo "$ac_t"""yes"" 1>&6 |
---|
| 1491 | ;; |
---|
| 1492 | *) # invalid for AC_PATH_PROG |
---|
| 1493 | echo "$ac_t"""no"" 1>&6 |
---|
| 1494 | { echo "configure: error: *** |
---|
| 1495 | Environment variable AS_FOR_TARGET should either |
---|
| 1496 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
| 1497 | ;; |
---|
| 1498 | esac |
---|
| 1499 | fi |
---|
| 1500 | |
---|
| 1501 | # Extract the first word of ""$program_prefix"as", so it can be a program name with args. |
---|
| 1502 | set dummy "$program_prefix"as; ac_word=$2 |
---|
| 1503 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[4075af6f] | 1504 | echo "configure:1505: checking for $ac_word" >&5 |
---|
[a24c280] | 1505 | if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1506 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1507 | else |
---|
| 1508 | case "$AS_FOR_TARGET" in |
---|
| 1509 | /*) |
---|
| 1510 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
---|
| 1511 | ;; |
---|
| 1512 | ?:/*) |
---|
| 1513 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 1514 | ;; |
---|
| 1515 | *) |
---|
| 1516 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1517 | ac_dummy="$PATH" |
---|
| 1518 | for ac_dir in $ac_dummy; do |
---|
| 1519 | test -z "$ac_dir" && ac_dir=. |
---|
| 1520 | if test -f $ac_dir/$ac_word; then |
---|
| 1521 | ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word" |
---|
| 1522 | break |
---|
| 1523 | fi |
---|
| 1524 | done |
---|
| 1525 | IFS="$ac_save_ifs" |
---|
| 1526 | test -z "$ac_cv_path_AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET="no" |
---|
| 1527 | ;; |
---|
| 1528 | esac |
---|
| 1529 | fi |
---|
| 1530 | AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET" |
---|
| 1531 | if test -n "$AS_FOR_TARGET"; then |
---|
| 1532 | echo "$ac_t""$AS_FOR_TARGET" 1>&6 |
---|
| 1533 | else |
---|
| 1534 | echo "$ac_t""no" 1>&6 |
---|
| 1535 | fi |
---|
| 1536 | |
---|
| 1537 | fi |
---|
| 1538 | |
---|
| 1539 | |
---|
| 1540 | echo $ac_n "checking target's ld""... $ac_c" 1>&6 |
---|
[4075af6f] | 1541 | echo "configure:1542: checking target's ld" >&5 |
---|
[a24c280] | 1542 | if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1543 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1544 | else |
---|
| 1545 | : |
---|
| 1546 | fi |
---|
| 1547 | |
---|
| 1548 | echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6 |
---|
| 1549 | |
---|
| 1550 | if test -n "$ac_cv_path_LD_FOR_TARGET"; then |
---|
| 1551 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
---|
| 1552 | else |
---|
| 1553 | if test -z "$LD_FOR_TARGET" ; then |
---|
| 1554 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 1555 | # We are using gcc, ask it about its tool |
---|
| 1556 | # NOTE: Necessary if gcc was configured to use the target's |
---|
| 1557 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
| 1558 | case $host_os in |
---|
| 1559 | *cygwin*) |
---|
| 1560 | LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld | sed -e 's%\\\\%/%g' ` |
---|
| 1561 | ;; |
---|
| 1562 | *) |
---|
| 1563 | LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld` |
---|
| 1564 | ;; |
---|
| 1565 | esac |
---|
| 1566 | |
---|
| 1567 | fi |
---|
| 1568 | else |
---|
| 1569 | # The user set an environment variable. |
---|
| 1570 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
| 1571 | # will override the environment variable, which isn't what the user |
---|
| 1572 | # intends |
---|
| 1573 | echo $ac_n "checking whether environment variable LD_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
[4075af6f] | 1574 | echo "configure:1575: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5 |
---|
[a24c280] | 1575 | case "$LD_FOR_TARGET" in |
---|
| 1576 | /*) # valid |
---|
| 1577 | echo "$ac_t"""yes"" 1>&6 |
---|
| 1578 | ;; |
---|
| 1579 | *) # invalid for AC_PATH_PROG |
---|
| 1580 | echo "$ac_t"""no"" 1>&6 |
---|
| 1581 | { echo "configure: error: *** |
---|
| 1582 | Environment variable LD_FOR_TARGET should either |
---|
| 1583 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
| 1584 | ;; |
---|
| 1585 | esac |
---|
| 1586 | fi |
---|
| 1587 | |
---|
| 1588 | # Extract the first word of ""$program_prefix"ld", so it can be a program name with args. |
---|
| 1589 | set dummy "$program_prefix"ld; ac_word=$2 |
---|
| 1590 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[4075af6f] | 1591 | echo "configure:1592: checking for $ac_word" >&5 |
---|
[a24c280] | 1592 | if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1593 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1594 | else |
---|
| 1595 | case "$LD_FOR_TARGET" in |
---|
| 1596 | /*) |
---|
| 1597 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
---|
| 1598 | ;; |
---|
| 1599 | ?:/*) |
---|
| 1600 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 1601 | ;; |
---|
| 1602 | *) |
---|
| 1603 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1604 | ac_dummy="$PATH" |
---|
| 1605 | for ac_dir in $ac_dummy; do |
---|
| 1606 | test -z "$ac_dir" && ac_dir=. |
---|
| 1607 | if test -f $ac_dir/$ac_word; then |
---|
| 1608 | ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word" |
---|
| 1609 | break |
---|
| 1610 | fi |
---|
| 1611 | done |
---|
| 1612 | IFS="$ac_save_ifs" |
---|
| 1613 | test -z "$ac_cv_path_LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET="no" |
---|
| 1614 | ;; |
---|
| 1615 | esac |
---|
| 1616 | fi |
---|
| 1617 | LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET" |
---|
| 1618 | if test -n "$LD_FOR_TARGET"; then |
---|
| 1619 | echo "$ac_t""$LD_FOR_TARGET" 1>&6 |
---|
| 1620 | else |
---|
| 1621 | echo "$ac_t""no" 1>&6 |
---|
| 1622 | fi |
---|
| 1623 | |
---|
| 1624 | fi |
---|
| 1625 | |
---|
| 1626 | |
---|
| 1627 | echo $ac_n "checking target's nm""... $ac_c" 1>&6 |
---|
[4075af6f] | 1628 | echo "configure:1629: checking target's nm" >&5 |
---|
[a24c280] | 1629 | if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1630 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1631 | else |
---|
| 1632 | : |
---|
| 1633 | fi |
---|
| 1634 | |
---|
| 1635 | echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6 |
---|
| 1636 | |
---|
| 1637 | if test -n "$ac_cv_path_NM_FOR_TARGET"; then |
---|
| 1638 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
---|
| 1639 | else |
---|
| 1640 | if test -z "$NM_FOR_TARGET" ; then |
---|
| 1641 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 1642 | # We are using gcc, ask it about its tool |
---|
| 1643 | # NOTE: Necessary if gcc was configured to use the target's |
---|
| 1644 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
| 1645 | case $host_os in |
---|
| 1646 | *cygwin*) |
---|
| 1647 | NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm | sed -e 's%\\\\%/%g' ` |
---|
| 1648 | ;; |
---|
| 1649 | *) |
---|
| 1650 | NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm` |
---|
| 1651 | ;; |
---|
| 1652 | esac |
---|
| 1653 | |
---|
| 1654 | fi |
---|
| 1655 | else |
---|
| 1656 | # The user set an environment variable. |
---|
| 1657 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
| 1658 | # will override the environment variable, which isn't what the user |
---|
| 1659 | # intends |
---|
| 1660 | echo $ac_n "checking whether environment variable NM_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
[4075af6f] | 1661 | echo "configure:1662: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5 |
---|
[a24c280] | 1662 | case "$NM_FOR_TARGET" in |
---|
| 1663 | /*) # valid |
---|
| 1664 | echo "$ac_t"""yes"" 1>&6 |
---|
| 1665 | ;; |
---|
| 1666 | *) # invalid for AC_PATH_PROG |
---|
| 1667 | echo "$ac_t"""no"" 1>&6 |
---|
| 1668 | { echo "configure: error: *** |
---|
| 1669 | Environment variable NM_FOR_TARGET should either |
---|
| 1670 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
| 1671 | ;; |
---|
| 1672 | esac |
---|
| 1673 | fi |
---|
| 1674 | |
---|
| 1675 | # Extract the first word of ""$program_prefix"nm", so it can be a program name with args. |
---|
| 1676 | set dummy "$program_prefix"nm; ac_word=$2 |
---|
| 1677 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[4075af6f] | 1678 | echo "configure:1679: checking for $ac_word" >&5 |
---|
[a24c280] | 1679 | if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1680 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1681 | else |
---|
| 1682 | case "$NM_FOR_TARGET" in |
---|
| 1683 | /*) |
---|
| 1684 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
---|
| 1685 | ;; |
---|
| 1686 | ?:/*) |
---|
| 1687 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 1688 | ;; |
---|
| 1689 | *) |
---|
| 1690 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1691 | ac_dummy="$PATH" |
---|
| 1692 | for ac_dir in $ac_dummy; do |
---|
| 1693 | test -z "$ac_dir" && ac_dir=. |
---|
| 1694 | if test -f $ac_dir/$ac_word; then |
---|
| 1695 | ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word" |
---|
| 1696 | break |
---|
| 1697 | fi |
---|
| 1698 | done |
---|
| 1699 | IFS="$ac_save_ifs" |
---|
| 1700 | test -z "$ac_cv_path_NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET="no" |
---|
| 1701 | ;; |
---|
| 1702 | esac |
---|
| 1703 | fi |
---|
| 1704 | NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET" |
---|
| 1705 | if test -n "$NM_FOR_TARGET"; then |
---|
| 1706 | echo "$ac_t""$NM_FOR_TARGET" 1>&6 |
---|
| 1707 | else |
---|
| 1708 | echo "$ac_t""no" 1>&6 |
---|
| 1709 | fi |
---|
| 1710 | |
---|
| 1711 | fi |
---|
| 1712 | |
---|
| 1713 | |
---|
| 1714 | |
---|
| 1715 | echo $ac_n "checking target's ranlib""... $ac_c" 1>&6 |
---|
[4075af6f] | 1716 | echo "configure:1717: checking target's ranlib" >&5 |
---|
[a24c280] | 1717 | if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1718 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1719 | else |
---|
| 1720 | : |
---|
| 1721 | fi |
---|
| 1722 | |
---|
| 1723 | echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6 |
---|
| 1724 | |
---|
| 1725 | if test -n "$ac_cv_path_RANLIB_FOR_TARGET"; then |
---|
| 1726 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
---|
| 1727 | else |
---|
| 1728 | if test -z "$RANLIB_FOR_TARGET" ; then |
---|
| 1729 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 1730 | # We are using gcc, ask it about its tool |
---|
| 1731 | # NOTE: Necessary if gcc was configured to use the target's |
---|
| 1732 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
| 1733 | case $host_os in |
---|
| 1734 | *cygwin*) |
---|
| 1735 | RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib | sed -e 's%\\\\%/%g' ` |
---|
| 1736 | ;; |
---|
| 1737 | *) |
---|
| 1738 | RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib` |
---|
| 1739 | ;; |
---|
| 1740 | esac |
---|
| 1741 | |
---|
| 1742 | fi |
---|
| 1743 | else |
---|
| 1744 | # The user set an environment variable. |
---|
| 1745 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
| 1746 | # will override the environment variable, which isn't what the user |
---|
| 1747 | # intends |
---|
| 1748 | echo $ac_n "checking whether environment variable RANLIB_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
[4075af6f] | 1749 | echo "configure:1750: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5 |
---|
[a24c280] | 1750 | case "$RANLIB_FOR_TARGET" in |
---|
| 1751 | /*) # valid |
---|
| 1752 | echo "$ac_t"""yes"" 1>&6 |
---|
| 1753 | ;; |
---|
| 1754 | *) # invalid for AC_PATH_PROG |
---|
| 1755 | echo "$ac_t"""no"" 1>&6 |
---|
| 1756 | { echo "configure: error: *** |
---|
| 1757 | Environment variable RANLIB_FOR_TARGET should either |
---|
| 1758 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
| 1759 | ;; |
---|
| 1760 | esac |
---|
| 1761 | fi |
---|
| 1762 | |
---|
| 1763 | # Extract the first word of ""$program_prefix"ranlib", so it can be a program name with args. |
---|
| 1764 | set dummy "$program_prefix"ranlib; ac_word=$2 |
---|
| 1765 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[4075af6f] | 1766 | echo "configure:1767: checking for $ac_word" >&5 |
---|
[a24c280] | 1767 | if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1768 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1769 | else |
---|
| 1770 | case "$RANLIB_FOR_TARGET" in |
---|
| 1771 | /*) |
---|
| 1772 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
---|
| 1773 | ;; |
---|
| 1774 | ?:/*) |
---|
| 1775 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 1776 | ;; |
---|
| 1777 | *) |
---|
| 1778 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1779 | ac_dummy="$PATH" |
---|
| 1780 | for ac_dir in $ac_dummy; do |
---|
| 1781 | test -z "$ac_dir" && ac_dir=. |
---|
| 1782 | if test -f $ac_dir/$ac_word; then |
---|
| 1783 | ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word" |
---|
| 1784 | break |
---|
| 1785 | fi |
---|
| 1786 | done |
---|
| 1787 | IFS="$ac_save_ifs" |
---|
| 1788 | test -z "$ac_cv_path_RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET="no" |
---|
| 1789 | ;; |
---|
| 1790 | esac |
---|
| 1791 | fi |
---|
| 1792 | RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET" |
---|
| 1793 | if test -n "$RANLIB_FOR_TARGET"; then |
---|
| 1794 | echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6 |
---|
| 1795 | else |
---|
| 1796 | echo "$ac_t""no" 1>&6 |
---|
| 1797 | fi |
---|
| 1798 | |
---|
| 1799 | fi |
---|
| 1800 | |
---|
| 1801 | if test "$RANLIB_FOR_TARGET" = "no"; then |
---|
| 1802 | # ranlib wasn't found; check if ar -s is available |
---|
| 1803 | |
---|
| 1804 | echo $ac_n "checking whether $AR_FOR_TARGET -s works""... $ac_c" 1>&6 |
---|
[4075af6f] | 1805 | echo "configure:1806: checking whether $AR_FOR_TARGET -s works" >&5 |
---|
[a24c280] | 1806 | if eval "test \"`echo '$''{'rtems_cv_AR_FOR_TARGET_S'+set}'`\" = set"; then |
---|
| 1807 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1808 | else |
---|
| 1809 | |
---|
| 1810 | cat > conftest.$ac_ext <<EOF |
---|
| 1811 | int foo( int b ) |
---|
| 1812 | { return b; } |
---|
| 1813 | EOF |
---|
[4075af6f] | 1814 | if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:1815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \ |
---|
| 1815 | && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:1816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \ |
---|
[a24c280] | 1816 | && test -s conftest.a ; \ |
---|
| 1817 | then |
---|
| 1818 | rtems_cv_AR_FOR_TARGET_S="yes" |
---|
| 1819 | else |
---|
| 1820 | rtems_cv_AR_FOR_TARGET_S="no" |
---|
| 1821 | fi |
---|
| 1822 | rm -f conftest* |
---|
| 1823 | |
---|
| 1824 | fi |
---|
| 1825 | |
---|
| 1826 | echo "$ac_t""$rtems_cv_AR_FOR_TARGET_S" 1>&6 |
---|
| 1827 | |
---|
| 1828 | if test $rtems_cv_AR_FOR_TARGET_S = "yes" ; then |
---|
| 1829 | ac_cv_path_RANLIB_FOR_TARGET="$AR_FOR_TARGET -s" |
---|
| 1830 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
---|
| 1831 | else |
---|
| 1832 | { echo "configure: error: *** |
---|
| 1833 | Can't figure out how to build a library index |
---|
| 1834 | Neither ranlib nor ar -s seem to be available " 1>&2; exit 1; } |
---|
| 1835 | fi |
---|
| 1836 | fi |
---|
| 1837 | |
---|
| 1838 | |
---|
| 1839 | echo $ac_n "checking target's objcopy""... $ac_c" 1>&6 |
---|
[4075af6f] | 1840 | echo "configure:1841: checking target's objcopy" >&5 |
---|
[a24c280] | 1841 | if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1842 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1843 | else |
---|
| 1844 | : |
---|
| 1845 | fi |
---|
| 1846 | |
---|
| 1847 | echo "$ac_t""$ac_cv_path_OBJCOPY_FOR_TARGET" 1>&6 |
---|
| 1848 | |
---|
| 1849 | if test -n "$ac_cv_path_OBJCOPY_FOR_TARGET"; then |
---|
| 1850 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET |
---|
| 1851 | else |
---|
| 1852 | if test -z "$OBJCOPY_FOR_TARGET" ; then |
---|
| 1853 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 1854 | # We are using gcc, ask it about its tool |
---|
| 1855 | # NOTE: Necessary if gcc was configured to use the target's |
---|
| 1856 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
| 1857 | case $host_os in |
---|
| 1858 | *cygwin*) |
---|
| 1859 | OBJCOPY_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=objcopy | sed -e 's%\\\\%/%g' ` |
---|
| 1860 | ;; |
---|
| 1861 | *) |
---|
| 1862 | OBJCOPY_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=objcopy` |
---|
| 1863 | ;; |
---|
| 1864 | esac |
---|
| 1865 | |
---|
| 1866 | fi |
---|
| 1867 | else |
---|
| 1868 | # The user set an environment variable. |
---|
| 1869 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
| 1870 | # will override the environment variable, which isn't what the user |
---|
| 1871 | # intends |
---|
| 1872 | echo $ac_n "checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
[4075af6f] | 1873 | echo "configure:1874: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5 |
---|
[a24c280] | 1874 | case "$OBJCOPY_FOR_TARGET" in |
---|
| 1875 | /*) # valid |
---|
| 1876 | echo "$ac_t"""yes"" 1>&6 |
---|
| 1877 | ;; |
---|
| 1878 | *) # invalid for AC_PATH_PROG |
---|
| 1879 | echo "$ac_t"""no"" 1>&6 |
---|
| 1880 | { echo "configure: error: *** |
---|
| 1881 | Environment variable OBJCOPY_FOR_TARGET should either |
---|
| 1882 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
| 1883 | ;; |
---|
| 1884 | esac |
---|
| 1885 | fi |
---|
| 1886 | |
---|
| 1887 | # Extract the first word of ""$program_prefix"objcopy", so it can be a program name with args. |
---|
| 1888 | set dummy "$program_prefix"objcopy; ac_word=$2 |
---|
| 1889 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[4075af6f] | 1890 | echo "configure:1891: checking for $ac_word" >&5 |
---|
[a24c280] | 1891 | if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1892 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1893 | else |
---|
| 1894 | case "$OBJCOPY_FOR_TARGET" in |
---|
| 1895 | /*) |
---|
| 1896 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. |
---|
| 1897 | ;; |
---|
| 1898 | ?:/*) |
---|
| 1899 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 1900 | ;; |
---|
| 1901 | *) |
---|
| 1902 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1903 | ac_dummy="$PATH" |
---|
| 1904 | for ac_dir in $ac_dummy; do |
---|
| 1905 | test -z "$ac_dir" && ac_dir=. |
---|
| 1906 | if test -f $ac_dir/$ac_word; then |
---|
| 1907 | ac_cv_path_OBJCOPY_FOR_TARGET="$ac_dir/$ac_word" |
---|
| 1908 | break |
---|
| 1909 | fi |
---|
| 1910 | done |
---|
| 1911 | IFS="$ac_save_ifs" |
---|
| 1912 | test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET="no" |
---|
| 1913 | ;; |
---|
| 1914 | esac |
---|
| 1915 | fi |
---|
| 1916 | OBJCOPY_FOR_TARGET="$ac_cv_path_OBJCOPY_FOR_TARGET" |
---|
| 1917 | if test -n "$OBJCOPY_FOR_TARGET"; then |
---|
| 1918 | echo "$ac_t""$OBJCOPY_FOR_TARGET" 1>&6 |
---|
| 1919 | else |
---|
| 1920 | echo "$ac_t""no" 1>&6 |
---|
| 1921 | fi |
---|
| 1922 | |
---|
| 1923 | fi |
---|
| 1924 | |
---|
| 1925 | |
---|
| 1926 | echo $ac_n "checking target's size""... $ac_c" 1>&6 |
---|
[4075af6f] | 1927 | echo "configure:1928: checking target's size" >&5 |
---|
[a24c280] | 1928 | if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1929 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1930 | else |
---|
| 1931 | : |
---|
| 1932 | fi |
---|
| 1933 | |
---|
| 1934 | echo "$ac_t""$ac_cv_path_SIZE_FOR_TARGET" 1>&6 |
---|
| 1935 | |
---|
| 1936 | if test -n "$ac_cv_path_SIZE_FOR_TARGET"; then |
---|
| 1937 | SIZE_FOR_TARGET=$ac_cv_path_SIZE_FOR_TARGET |
---|
| 1938 | else |
---|
| 1939 | if test -z "$SIZE_FOR_TARGET" ; then |
---|
| 1940 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 1941 | # We are using gcc, ask it about its tool |
---|
| 1942 | # NOTE: Necessary if gcc was configured to use the target's |
---|
| 1943 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
| 1944 | case $host_os in |
---|
| 1945 | *cygwin*) |
---|
| 1946 | SIZE_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=size | sed -e 's%\\\\%/%g' ` |
---|
| 1947 | ;; |
---|
| 1948 | *) |
---|
| 1949 | SIZE_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=size` |
---|
| 1950 | ;; |
---|
| 1951 | esac |
---|
| 1952 | |
---|
| 1953 | fi |
---|
| 1954 | else |
---|
| 1955 | # The user set an environment variable. |
---|
| 1956 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
| 1957 | # will override the environment variable, which isn't what the user |
---|
| 1958 | # intends |
---|
| 1959 | echo $ac_n "checking whether environment variable SIZE_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
[4075af6f] | 1960 | echo "configure:1961: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5 |
---|
[a24c280] | 1961 | case "$SIZE_FOR_TARGET" in |
---|
| 1962 | /*) # valid |
---|
| 1963 | echo "$ac_t"""yes"" 1>&6 |
---|
| 1964 | ;; |
---|
| 1965 | *) # invalid for AC_PATH_PROG |
---|
| 1966 | echo "$ac_t"""no"" 1>&6 |
---|
| 1967 | { echo "configure: error: *** |
---|
| 1968 | Environment variable SIZE_FOR_TARGET should either |
---|
| 1969 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
| 1970 | ;; |
---|
| 1971 | esac |
---|
| 1972 | fi |
---|
| 1973 | |
---|
| 1974 | # Extract the first word of ""$program_prefix"size", so it can be a program name with args. |
---|
| 1975 | set dummy "$program_prefix"size; ac_word=$2 |
---|
| 1976 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[4075af6f] | 1977 | echo "configure:1978: checking for $ac_word" >&5 |
---|
[a24c280] | 1978 | if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1979 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1980 | else |
---|
| 1981 | case "$SIZE_FOR_TARGET" in |
---|
| 1982 | /*) |
---|
| 1983 | ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a path. |
---|
| 1984 | ;; |
---|
| 1985 | ?:/*) |
---|
| 1986 | ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 1987 | ;; |
---|
| 1988 | *) |
---|
| 1989 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1990 | ac_dummy="$PATH" |
---|
| 1991 | for ac_dir in $ac_dummy; do |
---|
| 1992 | test -z "$ac_dir" && ac_dir=. |
---|
| 1993 | if test -f $ac_dir/$ac_word; then |
---|
| 1994 | ac_cv_path_SIZE_FOR_TARGET="$ac_dir/$ac_word" |
---|
| 1995 | break |
---|
| 1996 | fi |
---|
| 1997 | done |
---|
| 1998 | IFS="$ac_save_ifs" |
---|
| 1999 | test -z "$ac_cv_path_SIZE_FOR_TARGET" && ac_cv_path_SIZE_FOR_TARGET="no" |
---|
| 2000 | ;; |
---|
| 2001 | esac |
---|
| 2002 | fi |
---|
| 2003 | SIZE_FOR_TARGET="$ac_cv_path_SIZE_FOR_TARGET" |
---|
| 2004 | if test -n "$SIZE_FOR_TARGET"; then |
---|
| 2005 | echo "$ac_t""$SIZE_FOR_TARGET" 1>&6 |
---|
| 2006 | else |
---|
| 2007 | echo "$ac_t""no" 1>&6 |
---|
| 2008 | fi |
---|
| 2009 | |
---|
| 2010 | fi |
---|
| 2011 | |
---|
| 2012 | |
---|
| 2013 | echo $ac_n "checking target's strip""... $ac_c" 1>&6 |
---|
[4075af6f] | 2014 | echo "configure:2015: checking target's strip" >&5 |
---|
[a24c280] | 2015 | if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then |
---|
| 2016 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2017 | else |
---|
| 2018 | : |
---|
| 2019 | fi |
---|
| 2020 | |
---|
| 2021 | echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6 |
---|
| 2022 | |
---|
| 2023 | if test -n "$ac_cv_path_STRIP_FOR_TARGET"; then |
---|
| 2024 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
---|
| 2025 | else |
---|
| 2026 | if test -z "$STRIP_FOR_TARGET" ; then |
---|
| 2027 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 2028 | # We are using gcc, ask it about its tool |
---|
| 2029 | # NOTE: Necessary if gcc was configured to use the target's |
---|
| 2030 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
| 2031 | case $host_os in |
---|
| 2032 | *cygwin*) |
---|
| 2033 | STRIP_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=strip | sed -e 's%\\\\%/%g' ` |
---|
| 2034 | ;; |
---|
| 2035 | *) |
---|
| 2036 | STRIP_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=strip` |
---|
| 2037 | ;; |
---|
| 2038 | esac |
---|
| 2039 | |
---|
| 2040 | fi |
---|
| 2041 | else |
---|
| 2042 | # The user set an environment variable. |
---|
| 2043 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
| 2044 | # will override the environment variable, which isn't what the user |
---|
| 2045 | # intends |
---|
| 2046 | echo $ac_n "checking whether environment variable STRIP_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
[4075af6f] | 2047 | echo "configure:2048: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5 |
---|
[a24c280] | 2048 | case "$STRIP_FOR_TARGET" in |
---|
| 2049 | /*) # valid |
---|
| 2050 | echo "$ac_t"""yes"" 1>&6 |
---|
| 2051 | ;; |
---|
| 2052 | *) # invalid for AC_PATH_PROG |
---|
| 2053 | echo "$ac_t"""no"" 1>&6 |
---|
| 2054 | { echo "configure: error: *** |
---|
| 2055 | Environment variable STRIP_FOR_TARGET should either |
---|
| 2056 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
| 2057 | ;; |
---|
| 2058 | esac |
---|
| 2059 | fi |
---|
| 2060 | |
---|
| 2061 | # Extract the first word of ""$program_prefix"strip", so it can be a program name with args. |
---|
| 2062 | set dummy "$program_prefix"strip; ac_word=$2 |
---|
| 2063 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[4075af6f] | 2064 | echo "configure:2065: checking for $ac_word" >&5 |
---|
[a24c280] | 2065 | if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then |
---|
| 2066 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2067 | else |
---|
| 2068 | case "$STRIP_FOR_TARGET" in |
---|
| 2069 | /*) |
---|
| 2070 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
---|
| 2071 | ;; |
---|
| 2072 | ?:/*) |
---|
| 2073 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 2074 | ;; |
---|
| 2075 | *) |
---|
| 2076 | IFS="${IFS= }"; ac_save_ifs="$IFS"; 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; then |
---|
| 2081 | ac_cv_path_STRIP_FOR_TARGET="$ac_dir/$ac_word" |
---|
| 2082 | break |
---|
| 2083 | fi |
---|
| 2084 | done |
---|
| 2085 | IFS="$ac_save_ifs" |
---|
| 2086 | test -z "$ac_cv_path_STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET="no" |
---|
| 2087 | ;; |
---|
| 2088 | esac |
---|
| 2089 | fi |
---|
| 2090 | STRIP_FOR_TARGET="$ac_cv_path_STRIP_FOR_TARGET" |
---|
| 2091 | if test -n "$STRIP_FOR_TARGET"; then |
---|
| 2092 | echo "$ac_t""$STRIP_FOR_TARGET" 1>&6 |
---|
| 2093 | else |
---|
| 2094 | echo "$ac_t""no" 1>&6 |
---|
| 2095 | fi |
---|
| 2096 | |
---|
| 2097 | fi |
---|
| 2098 | |
---|
| 2099 | |
---|
| 2100 | |
---|
| 2101 | # Check if there is custom/*.cfg for this BSP |
---|
[4075af6f] | 2102 | |
---|
| 2103 | |
---|
[a24c280] | 2104 | echo $ac_n "checking for make/custom/$RTEMS_BSP.cfg""... $ac_c" 1>&6 |
---|
[4075af6f] | 2105 | echo "configure:2106: checking for make/custom/$RTEMS_BSP.cfg" >&5 |
---|
[a24c280] | 2106 | if test -r "$srcdir/$RTEMS_TOPdir/make/custom/$RTEMS_BSP.cfg"; then |
---|
| 2107 | echo "$ac_t""yes" 1>&6 |
---|
| 2108 | else |
---|
| 2109 | { echo "configure: error: no" 1>&2; exit 1; } |
---|
| 2110 | fi |
---|
| 2111 | |
---|
[4075af6f] | 2112 | |
---|
[a24c280] | 2113 | echo $ac_n "checking whether BSP supports multiprocessing""... $ac_c" 1>&6 |
---|
[4075af6f] | 2114 | echo "configure:2115: checking whether BSP supports multiprocessing" >&5 |
---|
[a24c280] | 2115 | if eval "test \"`echo '$''{'rtems_cv_HAS_MP'+set}'`\" = set"; then |
---|
| 2116 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2117 | else |
---|
| 2118 | if test -d "$srcdir/${RTEMS_TOPdir}/c/src/lib/libbsp/${RTEMS_CPU}/${RTEMS_BSP}/shmsupp"; then |
---|
| 2119 | if test "$RTEMS_HAS_MULTIPROCESSING" = "yes"; then |
---|
| 2120 | rtems_cv_HAS_MP="yes" ; |
---|
| 2121 | else |
---|
| 2122 | rtems_cv_HAS_MP="disabled"; |
---|
| 2123 | fi |
---|
| 2124 | else |
---|
| 2125 | rtems_cv_HAS_MP="no"; |
---|
| 2126 | fi |
---|
| 2127 | fi |
---|
| 2128 | |
---|
| 2129 | echo "$ac_t""$rtems_cv_HAS_MP" 1>&6 |
---|
| 2130 | if test "$rtems_cv_HAS_MP" = "yes"; then |
---|
| 2131 | HAS_MP="yes" |
---|
| 2132 | else |
---|
| 2133 | HAS_MP="no" |
---|
| 2134 | fi |
---|
| 2135 | |
---|
| 2136 | |
---|
[4075af6f] | 2137 | |
---|
[a24c280] | 2138 | echo $ac_n "checking whether BSP supports libposix""... $ac_c" 1>&6 |
---|
[4075af6f] | 2139 | echo "configure:2140: checking whether BSP supports libposix" >&5 |
---|
[a24c280] | 2140 | if eval "test \"`echo '$''{'rtems_cv_HAS_POSIX_API'+set}'`\" = set"; then |
---|
| 2141 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2142 | else |
---|
| 2143 | case "$RTEMS_CPU" in |
---|
| 2144 | unix*) |
---|
| 2145 | rtems_cv_HAS_POSIX_API="no" |
---|
| 2146 | ;; |
---|
| 2147 | *) |
---|
| 2148 | if test "${RTEMS_HAS_POSIX_API}" = "yes"; then |
---|
| 2149 | rtems_cv_HAS_POSIX_API="yes"; |
---|
| 2150 | else |
---|
| 2151 | rtems_cv_HAS_POSIX_API="disabled"; |
---|
| 2152 | fi |
---|
| 2153 | ;; |
---|
| 2154 | esac |
---|
| 2155 | fi |
---|
| 2156 | |
---|
| 2157 | echo "$ac_t""$rtems_cv_HAS_POSIX_API" 1>&6 |
---|
| 2158 | if test "$rtems_cv_HAS_POSIX_API" = "yes"; then |
---|
| 2159 | HAS_POSIX_API="yes"; |
---|
| 2160 | else |
---|
| 2161 | HAS_POSIX_API="no"; |
---|
| 2162 | fi |
---|
| 2163 | |
---|
| 2164 | |
---|
| 2165 | # If RTEMS macros are enabled, then use them. Otherwise, use inlines. |
---|
| 2166 | if test "$RTEMS_USE_MACROS" = "yes"; then |
---|
| 2167 | INLINEdir="macros" |
---|
| 2168 | if test "$HAS_POSIX_API" = "yes"; then |
---|
| 2169 | # The problem is that there is currently no code in posix/macros :) |
---|
| 2170 | { echo "configure: error: Macros are not implemented for the POSIX API" 1>&2; exit 1; } |
---|
| 2171 | fi |
---|
| 2172 | else |
---|
| 2173 | INLINEdir="inline" |
---|
| 2174 | fi |
---|
| 2175 | |
---|
| 2176 | |
---|
| 2177 | if test "$INLINEdir" = "inline" ; then |
---|
| 2178 | INLINE_TRUE= |
---|
| 2179 | INLINE_FALSE='#' |
---|
| 2180 | else |
---|
| 2181 | INLINE_TRUE='#' |
---|
| 2182 | INLINE_FALSE= |
---|
| 2183 | fi |
---|
| 2184 | |
---|
| 2185 | |
---|
| 2186 | if test "$INLINEdir" = "macros" ; then |
---|
| 2187 | MACROS_TRUE= |
---|
| 2188 | MACROS_FALSE='#' |
---|
| 2189 | else |
---|
| 2190 | MACROS_TRUE='#' |
---|
| 2191 | MACROS_FALSE= |
---|
| 2192 | fi |
---|
| 2193 | |
---|
| 2194 | ## Needed when using automake for libs/rels |
---|
| 2195 | echo $ac_n "checking for newlib""... $ac_c" 1>&6 |
---|
[4075af6f] | 2196 | echo "configure:2197: checking for newlib" >&5 |
---|
[a24c280] | 2197 | if eval "test \"`echo '$''{'rtems_cv_use_newlib'+set}'`\" = set"; then |
---|
| 2198 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2199 | else |
---|
| 2200 | |
---|
| 2201 | rtems_save_CC=$CC |
---|
| 2202 | CC=$CC_FOR_TARGET |
---|
| 2203 | |
---|
| 2204 | cat > conftest.$ac_ext <<EOF |
---|
[4075af6f] | 2205 | #line 2206 "configure" |
---|
[a24c280] | 2206 | #include "confdefs.h" |
---|
| 2207 | extern int not_required_by_rtems() ; |
---|
| 2208 | int main() { |
---|
| 2209 | not_required_by_rtems() |
---|
| 2210 | ; return 0; } |
---|
| 2211 | EOF |
---|
[4075af6f] | 2212 | if { (eval echo configure:2213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
[a24c280] | 2213 | rm -rf conftest* |
---|
| 2214 | rtems_cv_use_newlib="yes" |
---|
| 2215 | else |
---|
| 2216 | echo "configure: failed program was:" >&5 |
---|
| 2217 | cat conftest.$ac_ext >&5 |
---|
| 2218 | fi |
---|
| 2219 | rm -f conftest* |
---|
| 2220 | |
---|
| 2221 | if test -z "$rtems_cv_use_newlib"; then |
---|
| 2222 | cat > conftest.$ac_ext <<EOF |
---|
[4075af6f] | 2223 | #line 2224 "configure" |
---|
[a24c280] | 2224 | #include "confdefs.h" |
---|
| 2225 | extern int rtems_provides_crt0 ; |
---|
| 2226 | int main() { |
---|
| 2227 | rtems_provides_crt0 = 0 |
---|
| 2228 | ; return 0; } |
---|
| 2229 | EOF |
---|
[4075af6f] | 2230 | if { (eval echo configure:2231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
[a24c280] | 2231 | rm -rf conftest* |
---|
| 2232 | rtems_cv_use_newlib="yes" |
---|
| 2233 | else |
---|
| 2234 | echo "configure: failed program was:" >&5 |
---|
| 2235 | cat conftest.$ac_ext >&5 |
---|
| 2236 | rm -rf conftest* |
---|
| 2237 | rtems_cv_use_newlib="no" |
---|
| 2238 | fi |
---|
| 2239 | rm -f conftest* |
---|
| 2240 | fi |
---|
| 2241 | CC=$rtems_save_CC |
---|
| 2242 | fi |
---|
| 2243 | |
---|
| 2244 | echo "$ac_t""$rtems_cv_use_newlib" 1>&6 |
---|
| 2245 | RTEMS_USE_NEWLIB="$rtems_cv_use_newlib" |
---|
| 2246 | |
---|
| 2247 | |
---|
| 2248 | |
---|
| 2249 | ## Refuse to build if bsp does not support libposix |
---|
| 2250 | if test "$HAS_POSIX_API" != "yes"; then |
---|
| 2251 | { echo "configure: error: BSP $RTEMS_BSP does not support libposix" 1>&2; exit 1; } |
---|
| 2252 | fi |
---|
| 2253 | |
---|
| 2254 | # If RTEMS macros are enabled, then use them. Otherwise, refuse to build |
---|
| 2255 | if test "$RTEMS_USE_MACROS" = "yes"; then |
---|
| 2256 | # The problem is that there is currently no code in posix/macros :) |
---|
| 2257 | { echo "configure: error: Macros are not implemented for the POSIX API" 1>&2; exit 1; } |
---|
| 2258 | fi |
---|
| 2259 | |
---|
| 2260 | PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include" |
---|
| 2261 | |
---|
| 2262 | |
---|
| 2263 | ## |
---|
| 2264 | ## FIXME: We configure and build the macros subdirectory, too. |
---|
| 2265 | ## Should probably use AM_CONDITIONALs to disable them in future |
---|
| 2266 | # Try to explicitly list a Makefile here |
---|
| 2267 | trap '' 1 2 15 |
---|
| 2268 | cat > confcache <<\EOF |
---|
| 2269 | # This file is a shell script that caches the results of configure |
---|
| 2270 | # tests run on this system so they can be shared between configure |
---|
| 2271 | # scripts and configure runs. It is not useful on other systems. |
---|
| 2272 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
| 2273 | # |
---|
| 2274 | # By default, configure uses ./config.cache as the cache file, |
---|
| 2275 | # creating it if it does not exist already. You can give configure |
---|
| 2276 | # the --cache-file=FILE option to use a different cache file; that is |
---|
| 2277 | # what configure does when it calls configure scripts in |
---|
| 2278 | # subdirectories, so they share the cache. |
---|
| 2279 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
| 2280 | # config.status only pays attention to the cache file if you give it the |
---|
| 2281 | # --recheck option to rerun configure. |
---|
| 2282 | # |
---|
| 2283 | EOF |
---|
| 2284 | # The following way of writing the cache mishandles newlines in values, |
---|
| 2285 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 2286 | # So, don't put newlines in cache variables' values. |
---|
| 2287 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 2288 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 2289 | (set) 2>&1 | |
---|
| 2290 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
| 2291 | *ac_space=\ *) |
---|
| 2292 | # `set' does not quote correctly, so add quotes (double-quote substitution |
---|
| 2293 | # turns \\\\ into \\, and sed turns \\ into \). |
---|
| 2294 | sed -n \ |
---|
| 2295 | -e "s/'/'\\\\''/g" \ |
---|
| 2296 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
---|
| 2297 | ;; |
---|
| 2298 | *) |
---|
| 2299 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 2300 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
---|
| 2301 | ;; |
---|
| 2302 | esac >> confcache |
---|
| 2303 | if cmp -s $cache_file confcache; then |
---|
| 2304 | : |
---|
| 2305 | else |
---|
| 2306 | if test -w $cache_file; then |
---|
| 2307 | echo "updating cache $cache_file" |
---|
| 2308 | cat confcache > $cache_file |
---|
| 2309 | else |
---|
| 2310 | echo "not updating unwritable cache $cache_file" |
---|
| 2311 | fi |
---|
| 2312 | fi |
---|
| 2313 | rm -f confcache |
---|
| 2314 | |
---|
| 2315 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
| 2316 | |
---|
| 2317 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 2318 | # Let make expand exec_prefix. |
---|
| 2319 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 2320 | |
---|
| 2321 | # Any assignment to VPATH causes Sun make to only execute |
---|
| 2322 | # the first set of double-colon rules, so remove it if not needed. |
---|
| 2323 | # If there is a colon in the path, we need to keep it. |
---|
| 2324 | if test "x$srcdir" = x.; then |
---|
| 2325 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
---|
| 2326 | fi |
---|
| 2327 | |
---|
| 2328 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
---|
| 2329 | |
---|
| 2330 | # Transform confdefs.h into DEFS. |
---|
| 2331 | # Protect against shell expansion while executing Makefile rules. |
---|
| 2332 | # Protect against Makefile macro expansion. |
---|
| 2333 | cat > conftest.defs <<\EOF |
---|
| 2334 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g |
---|
| 2335 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g |
---|
| 2336 | s%\[%\\&%g |
---|
| 2337 | s%\]%\\&%g |
---|
| 2338 | s%\$%$$%g |
---|
| 2339 | EOF |
---|
| 2340 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` |
---|
| 2341 | rm -f conftest.defs |
---|
| 2342 | |
---|
| 2343 | |
---|
| 2344 | # Without the "./", some shells look in PATH for config.status. |
---|
| 2345 | : ${CONFIG_STATUS=./config.status} |
---|
| 2346 | |
---|
| 2347 | echo creating $CONFIG_STATUS |
---|
| 2348 | rm -f $CONFIG_STATUS |
---|
| 2349 | cat > $CONFIG_STATUS <<EOF |
---|
| 2350 | #! /bin/sh |
---|
| 2351 | # Generated automatically by configure. |
---|
| 2352 | # Run this file to recreate the current configuration. |
---|
| 2353 | # This directory was configured as follows, |
---|
| 2354 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
| 2355 | # |
---|
| 2356 | # $0 $ac_configure_args |
---|
| 2357 | # |
---|
| 2358 | # Compiler output produced by configure, useful for debugging |
---|
| 2359 | # configure, is in ./config.log if it exists. |
---|
| 2360 | |
---|
| 2361 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
---|
| 2362 | for ac_option |
---|
| 2363 | do |
---|
| 2364 | case "\$ac_option" in |
---|
| 2365 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 2366 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
---|
| 2367 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
---|
| 2368 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
---|
| 2369 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
---|
| 2370 | exit 0 ;; |
---|
| 2371 | -help | --help | --hel | --he | --h) |
---|
| 2372 | echo "\$ac_cs_usage"; exit 0 ;; |
---|
| 2373 | *) echo "\$ac_cs_usage"; exit 1 ;; |
---|
| 2374 | esac |
---|
| 2375 | done |
---|
| 2376 | |
---|
| 2377 | ac_given_srcdir=$srcdir |
---|
| 2378 | ac_given_INSTALL="$INSTALL" |
---|
| 2379 | |
---|
| 2380 | trap 'rm -fr `echo "Makefile |
---|
| 2381 | src/Makefile |
---|
| 2382 | include/Makefile |
---|
| 2383 | include/sys/Makefile |
---|
| 2384 | include/rtems/Makefile |
---|
| 2385 | include/rtems/posix/Makefile |
---|
| 2386 | optman/Makefile |
---|
| 2387 | inline/Makefile |
---|
| 2388 | inline/rtems/Makefile |
---|
| 2389 | inline/rtems/posix/Makefile |
---|
| 2390 | macros/Makefile |
---|
| 2391 | macros/rtems/Makefile |
---|
| 2392 | macros/rtems/posix/Makefile |
---|
| 2393 | " | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
---|
| 2394 | EOF |
---|
| 2395 | cat >> $CONFIG_STATUS <<EOF |
---|
| 2396 | |
---|
| 2397 | # Protect against being on the right side of a sed subst in config.status. |
---|
| 2398 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
---|
| 2399 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
---|
| 2400 | $ac_vpsub |
---|
| 2401 | $extrasub |
---|
| 2402 | s%@SHELL@%$SHELL%g |
---|
| 2403 | s%@CFLAGS@%$CFLAGS%g |
---|
| 2404 | s%@CPPFLAGS@%$CPPFLAGS%g |
---|
| 2405 | s%@CXXFLAGS@%$CXXFLAGS%g |
---|
| 2406 | s%@FFLAGS@%$FFLAGS%g |
---|
| 2407 | s%@DEFS@%$DEFS%g |
---|
| 2408 | s%@LDFLAGS@%$LDFLAGS%g |
---|
| 2409 | s%@LIBS@%$LIBS%g |
---|
| 2410 | s%@exec_prefix@%$exec_prefix%g |
---|
| 2411 | s%@prefix@%$prefix%g |
---|
| 2412 | s%@program_transform_name@%$program_transform_name%g |
---|
| 2413 | s%@bindir@%$bindir%g |
---|
| 2414 | s%@sbindir@%$sbindir%g |
---|
| 2415 | s%@libexecdir@%$libexecdir%g |
---|
| 2416 | s%@datadir@%$datadir%g |
---|
| 2417 | s%@sysconfdir@%$sysconfdir%g |
---|
| 2418 | s%@sharedstatedir@%$sharedstatedir%g |
---|
| 2419 | s%@localstatedir@%$localstatedir%g |
---|
| 2420 | s%@libdir@%$libdir%g |
---|
| 2421 | s%@includedir@%$includedir%g |
---|
| 2422 | s%@oldincludedir@%$oldincludedir%g |
---|
| 2423 | s%@infodir@%$infodir%g |
---|
| 2424 | s%@mandir@%$mandir%g |
---|
| 2425 | s%@RTEMS_TOPdir@%$RTEMS_TOPdir%g |
---|
| 2426 | s%@host@%$host%g |
---|
| 2427 | s%@host_alias@%$host_alias%g |
---|
| 2428 | s%@host_cpu@%$host_cpu%g |
---|
| 2429 | s%@host_vendor@%$host_vendor%g |
---|
| 2430 | s%@host_os@%$host_os%g |
---|
| 2431 | s%@target@%$target%g |
---|
| 2432 | s%@target_alias@%$target_alias%g |
---|
| 2433 | s%@target_cpu@%$target_cpu%g |
---|
| 2434 | s%@target_vendor@%$target_vendor%g |
---|
| 2435 | s%@target_os@%$target_os%g |
---|
| 2436 | s%@build@%$build%g |
---|
| 2437 | s%@build_alias@%$build_alias%g |
---|
| 2438 | s%@build_cpu@%$build_cpu%g |
---|
| 2439 | s%@build_vendor@%$build_vendor%g |
---|
| 2440 | s%@build_os@%$build_os%g |
---|
| 2441 | s%@RTEMS_CPU@%$RTEMS_CPU%g |
---|
| 2442 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
---|
| 2443 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
---|
| 2444 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
---|
| 2445 | s%@PACKAGE@%$PACKAGE%g |
---|
| 2446 | s%@VERSION@%$VERSION%g |
---|
| 2447 | s%@ACLOCAL@%$ACLOCAL%g |
---|
| 2448 | s%@AUTOCONF@%$AUTOCONF%g |
---|
| 2449 | s%@AUTOMAKE@%$AUTOMAKE%g |
---|
| 2450 | s%@AUTOHEADER@%$AUTOHEADER%g |
---|
| 2451 | s%@MAKEINFO@%$MAKEINFO%g |
---|
| 2452 | s%@SET_MAKE@%$SET_MAKE%g |
---|
| 2453 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g |
---|
| 2454 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g |
---|
| 2455 | s%@MAINT@%$MAINT%g |
---|
| 2456 | s%@RTEMS_HAS_MULTIPROCESSING@%$RTEMS_HAS_MULTIPROCESSING%g |
---|
| 2457 | s%@RTEMS_HAS_POSIX_API@%$RTEMS_HAS_POSIX_API%g |
---|
| 2458 | s%@RTEMS_USE_MACROS@%$RTEMS_USE_MACROS%g |
---|
| 2459 | s%@RTEMS_BSP@%$RTEMS_BSP%g |
---|
| 2460 | s%@RTEMS_HOST@%$RTEMS_HOST%g |
---|
| 2461 | s%@PROJECT_ROOT@%$PROJECT_ROOT%g |
---|
| 2462 | s%@RTEMS_ROOT@%$RTEMS_ROOT%g |
---|
| 2463 | s%@INSTALL_CHANGE@%$INSTALL_CHANGE%g |
---|
| 2464 | s%@PACKHEX@%$PACKHEX%g |
---|
| 2465 | s%@KSH@%$KSH%g |
---|
| 2466 | s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g |
---|
| 2467 | s%@GCCSED@%$GCCSED%g |
---|
| 2468 | s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g |
---|
| 2469 | s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g |
---|
| 2470 | s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g |
---|
| 2471 | s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g |
---|
| 2472 | s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g |
---|
| 2473 | s%@OBJCOPY_FOR_TARGET@%$OBJCOPY_FOR_TARGET%g |
---|
| 2474 | s%@SIZE_FOR_TARGET@%$SIZE_FOR_TARGET%g |
---|
| 2475 | s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g |
---|
| 2476 | s%@HAS_MP@%$HAS_MP%g |
---|
| 2477 | s%@HAS_POSIX_API@%$HAS_POSIX_API%g |
---|
| 2478 | s%@INLINE_TRUE@%$INLINE_TRUE%g |
---|
| 2479 | s%@INLINE_FALSE@%$INLINE_FALSE%g |
---|
| 2480 | s%@MACROS_TRUE@%$MACROS_TRUE%g |
---|
| 2481 | s%@MACROS_FALSE@%$MACROS_FALSE%g |
---|
| 2482 | s%@RTEMS_USE_NEWLIB@%$RTEMS_USE_NEWLIB%g |
---|
| 2483 | s%@PROJECT_INCLUDE@%$PROJECT_INCLUDE%g |
---|
| 2484 | |
---|
| 2485 | CEOF |
---|
| 2486 | EOF |
---|
| 2487 | |
---|
| 2488 | cat >> $CONFIG_STATUS <<\EOF |
---|
| 2489 | |
---|
| 2490 | # Split the substitutions into bite-sized pieces for seds with |
---|
| 2491 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
| 2492 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
---|
| 2493 | ac_file=1 # Number of current file. |
---|
| 2494 | ac_beg=1 # First line for current file. |
---|
| 2495 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
---|
| 2496 | ac_more_lines=: |
---|
| 2497 | ac_sed_cmds="" |
---|
| 2498 | while $ac_more_lines; do |
---|
| 2499 | if test $ac_beg -gt 1; then |
---|
| 2500 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
| 2501 | else |
---|
| 2502 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
| 2503 | fi |
---|
| 2504 | if test ! -s conftest.s$ac_file; then |
---|
| 2505 | ac_more_lines=false |
---|
| 2506 | rm -f conftest.s$ac_file |
---|
| 2507 | else |
---|
| 2508 | if test -z "$ac_sed_cmds"; then |
---|
| 2509 | ac_sed_cmds="sed -f conftest.s$ac_file" |
---|
| 2510 | else |
---|
| 2511 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
---|
| 2512 | fi |
---|
| 2513 | ac_file=`expr $ac_file + 1` |
---|
| 2514 | ac_beg=$ac_end |
---|
| 2515 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
---|
| 2516 | fi |
---|
| 2517 | done |
---|
| 2518 | if test -z "$ac_sed_cmds"; then |
---|
| 2519 | ac_sed_cmds=cat |
---|
| 2520 | fi |
---|
| 2521 | EOF |
---|
| 2522 | |
---|
| 2523 | cat >> $CONFIG_STATUS <<EOF |
---|
| 2524 | |
---|
| 2525 | CONFIG_FILES=\${CONFIG_FILES-"Makefile |
---|
| 2526 | src/Makefile |
---|
| 2527 | include/Makefile |
---|
| 2528 | include/sys/Makefile |
---|
| 2529 | include/rtems/Makefile |
---|
| 2530 | include/rtems/posix/Makefile |
---|
| 2531 | optman/Makefile |
---|
| 2532 | inline/Makefile |
---|
| 2533 | inline/rtems/Makefile |
---|
| 2534 | inline/rtems/posix/Makefile |
---|
| 2535 | macros/Makefile |
---|
| 2536 | macros/rtems/Makefile |
---|
| 2537 | macros/rtems/posix/Makefile |
---|
| 2538 | "} |
---|
| 2539 | EOF |
---|
| 2540 | cat >> $CONFIG_STATUS <<\EOF |
---|
| 2541 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
---|
| 2542 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 2543 | case "$ac_file" in |
---|
| 2544 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
| 2545 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
| 2546 | *) ac_file_in="${ac_file}.in" ;; |
---|
| 2547 | esac |
---|
| 2548 | |
---|
| 2549 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
---|
| 2550 | |
---|
| 2551 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
| 2552 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
| 2553 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
| 2554 | # The file is in a subdirectory. |
---|
| 2555 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
| 2556 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
---|
| 2557 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 2558 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
| 2559 | else |
---|
| 2560 | ac_dir_suffix= ac_dots= |
---|
| 2561 | fi |
---|
| 2562 | |
---|
| 2563 | case "$ac_given_srcdir" in |
---|
| 2564 | .) srcdir=. |
---|
| 2565 | if test -z "$ac_dots"; then top_srcdir=. |
---|
| 2566 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
---|
| 2567 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
---|
| 2568 | *) # Relative path. |
---|
| 2569 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
---|
| 2570 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
---|
| 2571 | esac |
---|
| 2572 | |
---|
| 2573 | case "$ac_given_INSTALL" in |
---|
| 2574 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
| 2575 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
| 2576 | esac |
---|
| 2577 | |
---|
| 2578 | echo creating "$ac_file" |
---|
| 2579 | rm -f "$ac_file" |
---|
| 2580 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
---|
| 2581 | case "$ac_file" in |
---|
| 2582 | *Makefile*) ac_comsub="1i\\ |
---|
| 2583 | # $configure_input" ;; |
---|
| 2584 | *) ac_comsub= ;; |
---|
| 2585 | esac |
---|
| 2586 | |
---|
| 2587 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
| 2588 | sed -e "$ac_comsub |
---|
| 2589 | s%@configure_input@%$configure_input%g |
---|
| 2590 | s%@srcdir@%$srcdir%g |
---|
| 2591 | s%@top_srcdir@%$top_srcdir%g |
---|
| 2592 | s%@INSTALL@%$INSTALL%g |
---|
| 2593 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
---|
| 2594 | fi; done |
---|
| 2595 | rm -f conftest.s* |
---|
| 2596 | |
---|
| 2597 | EOF |
---|
| 2598 | cat >> $CONFIG_STATUS <<EOF |
---|
| 2599 | |
---|
| 2600 | EOF |
---|
| 2601 | cat >> $CONFIG_STATUS <<\EOF |
---|
| 2602 | |
---|
| 2603 | exit 0 |
---|
| 2604 | EOF |
---|
| 2605 | chmod +x $CONFIG_STATUS |
---|
| 2606 | rm -fr confdefs* $ac_clean_files |
---|
| 2607 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
---|
| 2608 | |
---|