[254b4450] | 1 | #! /bin/sh |
---|
| 2 | |
---|
| 3 | # Guess values for system-dependent variables and create Makefiles. |
---|
[9ec96478] | 4 | # Generated automatically using autoconf version 2.13 |
---|
[254b4450] | 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-cross-host=HOST host (cygnus)" |
---|
| 16 | ac_help="$ac_help |
---|
[04c308c] | 17 | --enable-gmake-print-directory enable GNU Make's print directory" |
---|
[91333c2] | 18 | ac_help="$ac_help |
---|
[04c308c] | 19 | --enable-multiprocessing enable multiprocessing interface" |
---|
[97e2729d] | 20 | ac_help="$ac_help |
---|
[04c308c] | 21 | --enable-posix enable posix interface" |
---|
[254b4450] | 22 | ac_help="$ac_help |
---|
[04c308c] | 23 | --enable-networking enable TCP/IP stack" |
---|
[0280cb6] | 24 | ac_help="$ac_help |
---|
[04c308c] | 25 | --enable-rdbg enable remote debugger" |
---|
[4721cf1] | 26 | ac_help="$ac_help |
---|
[04c308c] | 27 | --enable-rtems-inlines enable RTEMS inline functions |
---|
| 28 | (default:enabled, disable to use macros)" |
---|
[254b4450] | 29 | ac_help="$ac_help |
---|
[04c308c] | 30 | --enable-cxx enable C++ support, |
---|
| 31 | and build the rtems++ library" |
---|
[91333c2] | 32 | ac_help="$ac_help |
---|
[04c308c] | 33 | --enable-gcc28 enable use of gcc 2.8.x features" |
---|
[e412bae] | 34 | ac_help="$ac_help |
---|
[04c308c] | 35 | --enable-libcdir=directory set the directory for the C library" |
---|
[bd5e4f3b] | 36 | ac_help="$ac_help |
---|
[04c308c] | 37 | --enable-bare-cpu-cflags specify a particular cpu cflag |
---|
| 38 | (bare bsp specific)" |
---|
[bd5e4f3b] | 39 | ac_help="$ac_help |
---|
[04c308c] | 40 | --enable-bare-cpu-model specify a particular cpu model |
---|
| 41 | (bare bsp specific)" |
---|
[e412bae] | 42 | ac_help="$ac_help |
---|
[254b4450] | 43 | \ |
---|
[b9ca4ba] | 44 | --enable-rtemsbsp=bsp1 bsp2 .. BSPs to include in build" |
---|
[254b4450] | 45 | ac_help="$ac_help |
---|
[04c308c] | 46 | --enable-tests enable tests (default:disabled)" |
---|
[d4cf164] | 47 | ac_help="$ac_help |
---|
[254b4450] | 48 | \ |
---|
[04c308c] | 49 | --enable-hwapi enable hardware API library" |
---|
[254b4450] | 50 | |
---|
| 51 | # Initialize some variables set by options. |
---|
| 52 | # The variables have the same names as the options, with |
---|
| 53 | # dashes changed to underlines. |
---|
| 54 | build=NONE |
---|
| 55 | cache_file=./config.cache |
---|
| 56 | exec_prefix=NONE |
---|
| 57 | host=NONE |
---|
| 58 | no_create= |
---|
| 59 | nonopt=NONE |
---|
| 60 | no_recursion= |
---|
| 61 | prefix=NONE |
---|
| 62 | program_prefix=NONE |
---|
| 63 | program_suffix=NONE |
---|
| 64 | program_transform_name=s,x,x, |
---|
| 65 | silent= |
---|
| 66 | site= |
---|
| 67 | srcdir= |
---|
| 68 | target=NONE |
---|
| 69 | verbose= |
---|
| 70 | x_includes=NONE |
---|
| 71 | x_libraries=NONE |
---|
| 72 | bindir='${exec_prefix}/bin' |
---|
| 73 | sbindir='${exec_prefix}/sbin' |
---|
| 74 | libexecdir='${exec_prefix}/libexec' |
---|
| 75 | datadir='${prefix}/share' |
---|
| 76 | sysconfdir='${prefix}/etc' |
---|
| 77 | sharedstatedir='${prefix}/com' |
---|
| 78 | localstatedir='${prefix}/var' |
---|
| 79 | libdir='${exec_prefix}/lib' |
---|
| 80 | includedir='${prefix}/include' |
---|
| 81 | oldincludedir='/usr/include' |
---|
| 82 | infodir='${prefix}/info' |
---|
| 83 | mandir='${prefix}/man' |
---|
| 84 | |
---|
| 85 | # Initialize some other variables. |
---|
| 86 | subdirs= |
---|
| 87 | MFLAGS= MAKEFLAGS= |
---|
[9ec96478] | 88 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
[254b4450] | 89 | # Maximum number of lines to put in a shell here document. |
---|
| 90 | ac_max_here_lines=12 |
---|
| 91 | |
---|
| 92 | ac_prev= |
---|
| 93 | for ac_option |
---|
| 94 | do |
---|
| 95 | |
---|
| 96 | # If the previous option needs an argument, assign it. |
---|
| 97 | if test -n "$ac_prev"; then |
---|
| 98 | eval "$ac_prev=\$ac_option" |
---|
| 99 | ac_prev= |
---|
| 100 | continue |
---|
| 101 | fi |
---|
| 102 | |
---|
| 103 | case "$ac_option" in |
---|
| 104 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
| 105 | *) ac_optarg= ;; |
---|
| 106 | esac |
---|
| 107 | |
---|
| 108 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
| 109 | |
---|
| 110 | case "$ac_option" in |
---|
| 111 | |
---|
| 112 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
| 113 | ac_prev=bindir ;; |
---|
| 114 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
| 115 | bindir="$ac_optarg" ;; |
---|
| 116 | |
---|
| 117 | -build | --build | --buil | --bui | --bu) |
---|
| 118 | ac_prev=build ;; |
---|
| 119 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
| 120 | build="$ac_optarg" ;; |
---|
| 121 | |
---|
| 122 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 123 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 124 | ac_prev=cache_file ;; |
---|
| 125 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 126 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 127 | cache_file="$ac_optarg" ;; |
---|
| 128 | |
---|
| 129 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
| 130 | ac_prev=datadir ;; |
---|
| 131 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
| 132 | | --da=*) |
---|
| 133 | datadir="$ac_optarg" ;; |
---|
| 134 | |
---|
| 135 | -disable-* | --disable-*) |
---|
| 136 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
---|
| 137 | # Reject names that are not valid shell variable names. |
---|
| 138 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
| 139 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
| 140 | fi |
---|
| 141 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
| 142 | eval "enable_${ac_feature}=no" ;; |
---|
| 143 | |
---|
| 144 | -enable-* | --enable-*) |
---|
| 145 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
---|
| 146 | # Reject names that are not valid shell variable names. |
---|
| 147 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
| 148 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
| 149 | fi |
---|
| 150 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
| 151 | case "$ac_option" in |
---|
| 152 | *=*) ;; |
---|
| 153 | *) ac_optarg=yes ;; |
---|
| 154 | esac |
---|
| 155 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
---|
| 156 | |
---|
| 157 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
| 158 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
| 159 | | --exec | --exe | --ex) |
---|
| 160 | ac_prev=exec_prefix ;; |
---|
| 161 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
| 162 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
| 163 | | --exec=* | --exe=* | --ex=*) |
---|
| 164 | exec_prefix="$ac_optarg" ;; |
---|
| 165 | |
---|
| 166 | -gas | --gas | --ga | --g) |
---|
| 167 | # Obsolete; use --with-gas. |
---|
| 168 | with_gas=yes ;; |
---|
| 169 | |
---|
| 170 | -help | --help | --hel | --he) |
---|
| 171 | # Omit some internal or obsolete options to make the list less imposing. |
---|
| 172 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
| 173 | cat << EOF |
---|
| 174 | Usage: configure [options] [host] |
---|
| 175 | Options: [defaults in brackets after descriptions] |
---|
| 176 | Configuration: |
---|
| 177 | --cache-file=FILE cache test results in FILE |
---|
| 178 | --help print this message |
---|
| 179 | --no-create do not create output files |
---|
| 180 | --quiet, --silent do not print \`checking...' messages |
---|
| 181 | --version print the version of autoconf that created configure |
---|
| 182 | Directory and file names: |
---|
| 183 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
| 184 | [$ac_default_prefix] |
---|
| 185 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
| 186 | [same as prefix] |
---|
| 187 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
---|
| 188 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
---|
| 189 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
---|
| 190 | --datadir=DIR read-only architecture-independent data in DIR |
---|
| 191 | [PREFIX/share] |
---|
| 192 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
---|
| 193 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
---|
| 194 | [PREFIX/com] |
---|
| 195 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
---|
| 196 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
---|
| 197 | --includedir=DIR C header files in DIR [PREFIX/include] |
---|
| 198 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
---|
| 199 | --infodir=DIR info documentation in DIR [PREFIX/info] |
---|
| 200 | --mandir=DIR man documentation in DIR [PREFIX/man] |
---|
| 201 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
---|
| 202 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
| 203 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
| 204 | --program-transform-name=PROGRAM |
---|
| 205 | run sed PROGRAM on installed program names |
---|
| 206 | EOF |
---|
| 207 | cat << EOF |
---|
| 208 | Host type: |
---|
| 209 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
---|
| 210 | --host=HOST configure for HOST [guessed] |
---|
| 211 | --target=TARGET configure for TARGET [TARGET=HOST] |
---|
| 212 | Features and packages: |
---|
| 213 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
| 214 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
| 215 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
| 216 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
| 217 | --x-includes=DIR X include files are in DIR |
---|
| 218 | --x-libraries=DIR X library files are in DIR |
---|
| 219 | EOF |
---|
| 220 | if test -n "$ac_help"; then |
---|
| 221 | echo "--enable and --with options recognized:$ac_help" |
---|
| 222 | fi |
---|
| 223 | exit 0 ;; |
---|
| 224 | |
---|
| 225 | -host | --host | --hos | --ho) |
---|
| 226 | ac_prev=host ;; |
---|
| 227 | -host=* | --host=* | --hos=* | --ho=*) |
---|
| 228 | host="$ac_optarg" ;; |
---|
| 229 | |
---|
| 230 | -includedir | --includedir | --includedi | --included | --include \ |
---|
| 231 | | --includ | --inclu | --incl | --inc) |
---|
| 232 | ac_prev=includedir ;; |
---|
| 233 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
| 234 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
| 235 | includedir="$ac_optarg" ;; |
---|
| 236 | |
---|
| 237 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
| 238 | ac_prev=infodir ;; |
---|
| 239 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
| 240 | infodir="$ac_optarg" ;; |
---|
| 241 | |
---|
| 242 | -libdir | --libdir | --libdi | --libd) |
---|
| 243 | ac_prev=libdir ;; |
---|
| 244 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
| 245 | libdir="$ac_optarg" ;; |
---|
| 246 | |
---|
| 247 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
| 248 | | --libexe | --libex | --libe) |
---|
| 249 | ac_prev=libexecdir ;; |
---|
| 250 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
| 251 | | --libexe=* | --libex=* | --libe=*) |
---|
| 252 | libexecdir="$ac_optarg" ;; |
---|
| 253 | |
---|
| 254 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
| 255 | | --localstate | --localstat | --localsta | --localst \ |
---|
| 256 | | --locals | --local | --loca | --loc | --lo) |
---|
| 257 | ac_prev=localstatedir ;; |
---|
| 258 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
| 259 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
| 260 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
| 261 | localstatedir="$ac_optarg" ;; |
---|
| 262 | |
---|
| 263 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
| 264 | ac_prev=mandir ;; |
---|
| 265 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
| 266 | mandir="$ac_optarg" ;; |
---|
| 267 | |
---|
| 268 | -nfp | --nfp | --nf) |
---|
| 269 | # Obsolete; use --without-fp. |
---|
| 270 | with_fp=no ;; |
---|
| 271 | |
---|
| 272 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 273 | | --no-cr | --no-c) |
---|
| 274 | no_create=yes ;; |
---|
| 275 | |
---|
| 276 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 277 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
| 278 | no_recursion=yes ;; |
---|
| 279 | |
---|
| 280 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
| 281 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
| 282 | | --oldin | --oldi | --old | --ol | --o) |
---|
| 283 | ac_prev=oldincludedir ;; |
---|
| 284 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
| 285 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
| 286 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
| 287 | oldincludedir="$ac_optarg" ;; |
---|
| 288 | |
---|
| 289 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
| 290 | ac_prev=prefix ;; |
---|
| 291 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
| 292 | prefix="$ac_optarg" ;; |
---|
| 293 | |
---|
| 294 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
| 295 | | --program-pre | --program-pr | --program-p) |
---|
| 296 | ac_prev=program_prefix ;; |
---|
| 297 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
| 298 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
| 299 | program_prefix="$ac_optarg" ;; |
---|
| 300 | |
---|
| 301 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
| 302 | | --program-suf | --program-su | --program-s) |
---|
| 303 | ac_prev=program_suffix ;; |
---|
| 304 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
| 305 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
| 306 | program_suffix="$ac_optarg" ;; |
---|
| 307 | |
---|
| 308 | -program-transform-name | --program-transform-name \ |
---|
| 309 | | --program-transform-nam | --program-transform-na \ |
---|
| 310 | | --program-transform-n | --program-transform- \ |
---|
| 311 | | --program-transform | --program-transfor \ |
---|
| 312 | | --program-transfo | --program-transf \ |
---|
| 313 | | --program-trans | --program-tran \ |
---|
| 314 | | --progr-tra | --program-tr | --program-t) |
---|
| 315 | ac_prev=program_transform_name ;; |
---|
| 316 | -program-transform-name=* | --program-transform-name=* \ |
---|
| 317 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
| 318 | | --program-transform-n=* | --program-transform-=* \ |
---|
| 319 | | --program-transform=* | --program-transfor=* \ |
---|
| 320 | | --program-transfo=* | --program-transf=* \ |
---|
| 321 | | --program-trans=* | --program-tran=* \ |
---|
| 322 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
| 323 | program_transform_name="$ac_optarg" ;; |
---|
| 324 | |
---|
| 325 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 326 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 327 | silent=yes ;; |
---|
| 328 | |
---|
| 329 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
| 330 | ac_prev=sbindir ;; |
---|
| 331 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
| 332 | | --sbi=* | --sb=*) |
---|
| 333 | sbindir="$ac_optarg" ;; |
---|
| 334 | |
---|
| 335 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
| 336 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
| 337 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
| 338 | | --sha | --sh) |
---|
| 339 | ac_prev=sharedstatedir ;; |
---|
| 340 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
| 341 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
| 342 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
| 343 | | --sha=* | --sh=*) |
---|
| 344 | sharedstatedir="$ac_optarg" ;; |
---|
| 345 | |
---|
| 346 | -site | --site | --sit) |
---|
| 347 | ac_prev=site ;; |
---|
| 348 | -site=* | --site=* | --sit=*) |
---|
| 349 | site="$ac_optarg" ;; |
---|
| 350 | |
---|
| 351 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 352 | ac_prev=srcdir ;; |
---|
| 353 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 354 | srcdir="$ac_optarg" ;; |
---|
| 355 | |
---|
| 356 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
| 357 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
| 358 | ac_prev=sysconfdir ;; |
---|
| 359 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
| 360 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
| 361 | sysconfdir="$ac_optarg" ;; |
---|
| 362 | |
---|
| 363 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
| 364 | ac_prev=target ;; |
---|
| 365 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
| 366 | target="$ac_optarg" ;; |
---|
| 367 | |
---|
| 368 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
| 369 | verbose=yes ;; |
---|
| 370 | |
---|
| 371 | -version | --version | --versio | --versi | --vers) |
---|
[9ec96478] | 372 | echo "configure generated by autoconf version 2.13" |
---|
[254b4450] | 373 | exit 0 ;; |
---|
| 374 | |
---|
| 375 | -with-* | --with-*) |
---|
| 376 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
---|
| 377 | # Reject names that are not valid shell variable names. |
---|
| 378 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
| 379 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
| 380 | fi |
---|
| 381 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
| 382 | case "$ac_option" in |
---|
| 383 | *=*) ;; |
---|
| 384 | *) ac_optarg=yes ;; |
---|
| 385 | esac |
---|
| 386 | eval "with_${ac_package}='$ac_optarg'" ;; |
---|
| 387 | |
---|
| 388 | -without-* | --without-*) |
---|
| 389 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
---|
| 390 | # Reject names that are not valid shell variable names. |
---|
| 391 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
| 392 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
| 393 | fi |
---|
| 394 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
| 395 | eval "with_${ac_package}=no" ;; |
---|
| 396 | |
---|
| 397 | --x) |
---|
| 398 | # Obsolete; use --with-x. |
---|
| 399 | with_x=yes ;; |
---|
| 400 | |
---|
| 401 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
| 402 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
| 403 | ac_prev=x_includes ;; |
---|
| 404 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
| 405 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
| 406 | x_includes="$ac_optarg" ;; |
---|
| 407 | |
---|
| 408 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
| 409 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
| 410 | ac_prev=x_libraries ;; |
---|
| 411 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
| 412 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
| 413 | x_libraries="$ac_optarg" ;; |
---|
| 414 | |
---|
| 415 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
---|
| 416 | ;; |
---|
| 417 | |
---|
| 418 | *) |
---|
| 419 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
---|
| 420 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
---|
| 421 | fi |
---|
| 422 | if test "x$nonopt" != xNONE; then |
---|
| 423 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
---|
| 424 | fi |
---|
| 425 | nonopt="$ac_option" |
---|
| 426 | ;; |
---|
| 427 | |
---|
| 428 | esac |
---|
| 429 | done |
---|
| 430 | |
---|
| 431 | if test -n "$ac_prev"; then |
---|
| 432 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
---|
| 433 | fi |
---|
| 434 | |
---|
| 435 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
| 436 | |
---|
| 437 | # File descriptor usage: |
---|
| 438 | # 0 standard input |
---|
| 439 | # 1 file creation |
---|
| 440 | # 2 errors and warnings |
---|
| 441 | # 3 some systems may open it to /dev/tty |
---|
| 442 | # 4 used on the Kubota Titan |
---|
| 443 | # 6 checking for... messages and results |
---|
| 444 | # 5 compiler messages saved in config.log |
---|
| 445 | if test "$silent" = yes; then |
---|
| 446 | exec 6>/dev/null |
---|
| 447 | else |
---|
| 448 | exec 6>&1 |
---|
| 449 | fi |
---|
| 450 | exec 5>./config.log |
---|
| 451 | |
---|
| 452 | echo "\ |
---|
| 453 | This file contains any messages produced by compilers while |
---|
| 454 | running configure, to aid debugging if configure makes a mistake. |
---|
| 455 | " 1>&5 |
---|
| 456 | |
---|
| 457 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 458 | # Also quote any args containing shell metacharacters. |
---|
| 459 | ac_configure_args= |
---|
| 460 | for ac_arg |
---|
| 461 | do |
---|
| 462 | case "$ac_arg" in |
---|
| 463 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 464 | | --no-cr | --no-c) ;; |
---|
| 465 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 466 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
---|
| 467 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
---|
| 468 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
| 469 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
---|
| 470 | esac |
---|
| 471 | done |
---|
| 472 | |
---|
| 473 | # NLS nuisances. |
---|
| 474 | # Only set these to C if already set. These must not be set unconditionally |
---|
| 475 | # because not all systems understand e.g. LANG=C (notably SCO). |
---|
| 476 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
---|
| 477 | # Non-C LC_CTYPE values break the ctype check. |
---|
| 478 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
---|
| 479 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
---|
| 480 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
---|
| 481 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
---|
| 482 | |
---|
| 483 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 484 | rm -rf conftest* confdefs.h |
---|
| 485 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
| 486 | echo > confdefs.h |
---|
| 487 | |
---|
| 488 | # A filename unique to this package, relative to the directory that |
---|
| 489 | # configure is in, which we can look for to find out if srcdir is correct. |
---|
| 490 | ac_unique_file=README |
---|
| 491 | |
---|
| 492 | # Find the source files, if location was not specified. |
---|
| 493 | if test -z "$srcdir"; then |
---|
| 494 | ac_srcdir_defaulted=yes |
---|
| 495 | # Try the directory containing this script, then its parent. |
---|
| 496 | ac_prog=$0 |
---|
| 497 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
---|
| 498 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
---|
| 499 | srcdir=$ac_confdir |
---|
| 500 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 501 | srcdir=.. |
---|
| 502 | fi |
---|
| 503 | else |
---|
| 504 | ac_srcdir_defaulted=no |
---|
| 505 | fi |
---|
| 506 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 507 | if test "$ac_srcdir_defaulted" = yes; then |
---|
| 508 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
---|
| 509 | else |
---|
| 510 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
---|
| 511 | fi |
---|
| 512 | fi |
---|
| 513 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
---|
| 514 | |
---|
| 515 | # Prefer explicitly selected file to automatically selected ones. |
---|
| 516 | if test -z "$CONFIG_SITE"; then |
---|
| 517 | if test "x$prefix" != xNONE; then |
---|
| 518 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
| 519 | else |
---|
| 520 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
| 521 | fi |
---|
| 522 | fi |
---|
| 523 | for ac_site_file in $CONFIG_SITE; do |
---|
| 524 | if test -r "$ac_site_file"; then |
---|
| 525 | echo "loading site script $ac_site_file" |
---|
| 526 | . "$ac_site_file" |
---|
| 527 | fi |
---|
| 528 | done |
---|
| 529 | |
---|
| 530 | if test -r "$cache_file"; then |
---|
| 531 | echo "loading cache $cache_file" |
---|
| 532 | . $cache_file |
---|
| 533 | else |
---|
| 534 | echo "creating cache $cache_file" |
---|
| 535 | > $cache_file |
---|
| 536 | fi |
---|
| 537 | |
---|
| 538 | ac_ext=c |
---|
| 539 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 540 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 541 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
[9ec96478] | 542 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
[254b4450] | 543 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 544 | |
---|
[9ec96478] | 545 | ac_exeext= |
---|
| 546 | ac_objext=o |
---|
[254b4450] | 547 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
| 548 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
---|
| 549 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
| 550 | ac_n= ac_c=' |
---|
| 551 | ' ac_t=' ' |
---|
| 552 | else |
---|
| 553 | ac_n=-n ac_c= ac_t= |
---|
| 554 | fi |
---|
| 555 | else |
---|
| 556 | ac_n= ac_c='\c' ac_t= |
---|
| 557 | fi |
---|
| 558 | |
---|
| 559 | |
---|
[04c308c] | 560 | RTEMS_TOPdir="."; |
---|
| 561 | |
---|
| 562 | |
---|
| 563 | PROJECT_ROOT=`pwd`/$RTEMS_TOPdir; |
---|
| 564 | |
---|
| 565 | |
---|
[9b8baa1] | 566 | echo $ac_n "checking for RTEMS Version""... $ac_c" 1>&6 |
---|
[7e03d10] | 567 | echo "configure:568: checking for RTEMS Version" >&5 |
---|
[9b8baa1] | 568 | if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then |
---|
| 569 | RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \ |
---|
| 570 | sed -e 's%RTEMS[ ]*Version[ ]*\(.*\)[ ]*%\1%g'` |
---|
| 571 | else |
---|
| 572 | { echo "configure: error: Unable to find ${RTEMS_TOPdir}/VERSION" 1>&2; exit 1; } |
---|
| 573 | fi |
---|
| 574 | if test -z "$RTEMS_VERSION"; then |
---|
| 575 | { echo "configure: error: Unable to determine version" 1>&2; exit 1; } |
---|
| 576 | fi |
---|
| 577 | echo "$ac_t""$RTEMS_VERSION" 1>&6 |
---|
[04c308c] | 578 | |
---|
| 579 | |
---|
[254b4450] | 580 | |
---|
| 581 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
---|
[7e03d10] | 582 | echo "configure:583: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
---|
[254b4450] | 583 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
---|
| 584 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
---|
| 585 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 586 | else |
---|
| 587 | cat > conftestmake <<\EOF |
---|
| 588 | all: |
---|
| 589 | @echo 'ac_maketemp="${MAKE}"' |
---|
| 590 | EOF |
---|
| 591 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
| 592 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
---|
| 593 | if test -n "$ac_maketemp"; then |
---|
| 594 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
| 595 | else |
---|
| 596 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
| 597 | fi |
---|
| 598 | rm -f conftestmake |
---|
| 599 | fi |
---|
| 600 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
| 601 | echo "$ac_t""yes" 1>&6 |
---|
| 602 | SET_MAKE= |
---|
| 603 | else |
---|
| 604 | echo "$ac_t""no" 1>&6 |
---|
| 605 | SET_MAKE="MAKE=${MAKE-make}" |
---|
| 606 | fi |
---|
| 607 | |
---|
| 608 | ac_aux_dir= |
---|
| 609 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
| 610 | if test -f $ac_dir/install-sh; then |
---|
| 611 | ac_aux_dir=$ac_dir |
---|
| 612 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
| 613 | break |
---|
| 614 | elif test -f $ac_dir/install.sh; then |
---|
| 615 | ac_aux_dir=$ac_dir |
---|
| 616 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
| 617 | break |
---|
| 618 | fi |
---|
| 619 | done |
---|
| 620 | if test -z "$ac_aux_dir"; then |
---|
| 621 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
---|
| 622 | fi |
---|
| 623 | ac_config_guess=$ac_aux_dir/config.guess |
---|
| 624 | ac_config_sub=$ac_aux_dir/config.sub |
---|
| 625 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
---|
| 626 | |
---|
| 627 | |
---|
| 628 | # Do some error checking and defaulting for the host and target type. |
---|
| 629 | # The inputs are: |
---|
| 630 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT |
---|
| 631 | # |
---|
| 632 | # The rules are: |
---|
| 633 | # 1. You are not allowed to specify --host, --target, and nonopt at the |
---|
| 634 | # same time. |
---|
| 635 | # 2. Host defaults to nonopt. |
---|
| 636 | # 3. If nonopt is not specified, then host defaults to the current host, |
---|
| 637 | # as determined by config.guess. |
---|
| 638 | # 4. Target and build default to nonopt. |
---|
| 639 | # 5. If nonopt is not specified, then target and build default to host. |
---|
| 640 | |
---|
| 641 | # The aliases save the names the user supplied, while $host etc. |
---|
| 642 | # will get canonicalized. |
---|
| 643 | case $host---$target---$nonopt in |
---|
| 644 | NONE---*---* | *---NONE---* | *---*---NONE) ;; |
---|
| 645 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; |
---|
| 646 | esac |
---|
| 647 | |
---|
| 648 | |
---|
| 649 | # Make sure we can run config.sub. |
---|
[9ec96478] | 650 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
---|
[254b4450] | 651 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
---|
| 652 | fi |
---|
| 653 | |
---|
| 654 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
---|
[7e03d10] | 655 | echo "configure:656: checking host system type" >&5 |
---|
[254b4450] | 656 | |
---|
| 657 | host_alias=$host |
---|
| 658 | case "$host_alias" in |
---|
| 659 | NONE) |
---|
| 660 | case $nonopt in |
---|
| 661 | NONE) |
---|
[9ec96478] | 662 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
---|
[254b4450] | 663 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
---|
| 664 | fi ;; |
---|
| 665 | *) host_alias=$nonopt ;; |
---|
| 666 | esac ;; |
---|
| 667 | esac |
---|
| 668 | |
---|
[9ec96478] | 669 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
---|
[254b4450] | 670 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 671 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 672 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 673 | echo "$ac_t""$host" 1>&6 |
---|
| 674 | |
---|
| 675 | echo $ac_n "checking target system type""... $ac_c" 1>&6 |
---|
[7e03d10] | 676 | echo "configure:677: checking target system type" >&5 |
---|
[254b4450] | 677 | |
---|
| 678 | target_alias=$target |
---|
| 679 | case "$target_alias" in |
---|
| 680 | NONE) |
---|
| 681 | case $nonopt in |
---|
| 682 | NONE) target_alias=$host_alias ;; |
---|
| 683 | *) target_alias=$nonopt ;; |
---|
| 684 | esac ;; |
---|
| 685 | esac |
---|
| 686 | |
---|
[9ec96478] | 687 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
---|
[254b4450] | 688 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 689 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 690 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 691 | echo "$ac_t""$target" 1>&6 |
---|
| 692 | |
---|
| 693 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
---|
[7e03d10] | 694 | echo "configure:695: checking build system type" >&5 |
---|
[254b4450] | 695 | |
---|
| 696 | build_alias=$build |
---|
| 697 | case "$build_alias" in |
---|
| 698 | NONE) |
---|
| 699 | case $nonopt in |
---|
| 700 | NONE) build_alias=$host_alias ;; |
---|
| 701 | *) build_alias=$nonopt ;; |
---|
| 702 | esac ;; |
---|
| 703 | esac |
---|
| 704 | |
---|
[9ec96478] | 705 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
---|
[254b4450] | 706 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 707 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 708 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 709 | echo "$ac_t""$build" 1>&6 |
---|
| 710 | |
---|
| 711 | test "$host_alias" != "$target_alias" && |
---|
| 712 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
| 713 | NONENONEs,x,x, && |
---|
| 714 | program_prefix=${target_alias}- |
---|
| 715 | |
---|
[04c308c] | 716 | |
---|
[254b4450] | 717 | # Check whether --with-cross-host or --without-cross-host was given. |
---|
| 718 | if test "${with_cross_host+set}" = set; then |
---|
| 719 | withval="$with_cross_host" |
---|
| 720 | \ |
---|
| 721 | host=$withval |
---|
| 722 | fi |
---|
| 723 | |
---|
| 724 | |
---|
[04c308c] | 725 | |
---|
[91333c2] | 726 | # Check whether --enable-gmake-print-directory or --disable-gmake-print-directory was given. |
---|
| 727 | if test "${enable_gmake_print_directory+set}" = set; then |
---|
| 728 | enableval="$enable_gmake_print_directory" |
---|
[04c308c] | 729 | case "${enableval}" in |
---|
[39ffc7d] | 730 | yes) RTEMS_USE_OWN_PDIR=no ;; |
---|
| 731 | no) RTEMS_USE_OWN_PDIR=yes ;; |
---|
[04c308c] | 732 | *) { echo "configure: error: bad value ${enableval} for gmake-print-directory option" 1>&2; exit 1; } |
---|
| 733 | ;; |
---|
[91333c2] | 734 | esac |
---|
| 735 | else |
---|
| 736 | RTEMS_USE_OWN_PDIR=yes |
---|
| 737 | fi |
---|
| 738 | |
---|
| 739 | |
---|
[04c308c] | 740 | |
---|
[97e2729d] | 741 | # Check whether --enable-multiprocessing or --disable-multiprocessing was given. |
---|
| 742 | if test "${enable_multiprocessing+set}" = set; then |
---|
| 743 | enableval="$enable_multiprocessing" |
---|
[04c308c] | 744 | case "${enableval}" in |
---|
[97e2729d] | 745 | yes) RTEMS_HAS_MULTIPROCESSING=yes ;; |
---|
| 746 | no) RTEMS_HAS_MULTIPROCESSING=no ;; |
---|
| 747 | *) { echo "configure: error: bad value ${enableval} for enable-multiprocessing option" 1>&2; exit 1; } ;; |
---|
| 748 | esac |
---|
| 749 | else |
---|
| 750 | RTEMS_HAS_MULTIPROCESSING=no |
---|
| 751 | fi |
---|
| 752 | |
---|
| 753 | |
---|
[04c308c] | 754 | |
---|
[254b4450] | 755 | # Check whether --enable-posix or --disable-posix was given. |
---|
| 756 | if test "${enable_posix+set}" = set; then |
---|
| 757 | enableval="$enable_posix" |
---|
[04c308c] | 758 | case "${enableval}" in |
---|
[69df7da] | 759 | yes) RTEMS_HAS_POSIX_API=yes ;; |
---|
| 760 | no) RTEMS_HAS_POSIX_API=no ;; |
---|
[ba1a2af9] | 761 | *) { echo "configure: error: bad value ${enableval} for enable-posix option" 1>&2; exit 1; } ;; |
---|
[69df7da] | 762 | esac |
---|
[254b4450] | 763 | else |
---|
| 764 | RTEMS_HAS_POSIX_API=yes |
---|
| 765 | fi |
---|
[04c308c] | 766 | |
---|
| 767 | |
---|
[7e03d10] | 768 | |
---|
[04c308c] | 769 | case "${target}" in |
---|
| 770 | # hpux unix port should go here |
---|
| 771 | i[3456]86-go32-rtems*) |
---|
| 772 | RTEMS_HAS_POSIX_API=no |
---|
| 773 | ;; |
---|
| 774 | i[3456]86-pc-linux*) # unix "simulator" port |
---|
| 775 | RTEMS_HAS_POSIX_API=no |
---|
| 776 | ;; |
---|
| 777 | i[3456]86-*freebsd2*) # unix "simulator" port |
---|
| 778 | RTEMS_HAS_POSIX_API=no |
---|
| 779 | ;; |
---|
| 780 | no_cpu-*rtems*) |
---|
| 781 | RTEMS_HAS_POSIX_API=no |
---|
| 782 | ;; |
---|
| 783 | sparc-sun-solaris*) # unix "simulator" port |
---|
| 784 | RTEMS_HAS_POSIX_API=no |
---|
| 785 | ;; |
---|
| 786 | *) |
---|
| 787 | ;; |
---|
| 788 | esac |
---|
| 789 | |
---|
[254b4450] | 790 | |
---|
| 791 | |
---|
[0280cb6] | 792 | # Check whether --enable-networking or --disable-networking was given. |
---|
| 793 | if test "${enable_networking+set}" = set; then |
---|
| 794 | enableval="$enable_networking" |
---|
[04c308c] | 795 | case "${enableval}" in |
---|
[0280cb6] | 796 | yes) RTEMS_HAS_NETWORKING=yes ;; |
---|
| 797 | no) RTEMS_HAS_NETWORKING=no ;; |
---|
| 798 | *) { echo "configure: error: bad value ${enableval} for enable-networking option" 1>&2; exit 1; } ;; |
---|
| 799 | esac |
---|
| 800 | else |
---|
| 801 | RTEMS_HAS_NETWORKING=yes |
---|
[1f0f3e35] | 802 | fi |
---|
| 803 | |
---|
| 804 | |
---|
[04c308c] | 805 | |
---|
[4721cf1] | 806 | # Check whether --enable-rdbg or --disable-rdbg was given. |
---|
| 807 | if test "${enable_rdbg+set}" = set; then |
---|
| 808 | enableval="$enable_rdbg" |
---|
[04c308c] | 809 | case "${enableval}" in |
---|
[4721cf1] | 810 | yes) RTEMS_HAS_RDBG=yes ;; |
---|
| 811 | no) RTEMS_HAS_RDBG=no ;; |
---|
| 812 | *) { echo "configure: error: bad value ${enableval} for enable-rdbg option" 1>&2; exit 1; } ;; |
---|
| 813 | esac |
---|
| 814 | else |
---|
[cca4400] | 815 | RTEMS_HAS_RDBG=no |
---|
[4721cf1] | 816 | fi |
---|
| 817 | |
---|
| 818 | |
---|
[254b4450] | 819 | # Check whether --enable-rtems-inlines or --disable-rtems-inlines was given. |
---|
| 820 | if test "${enable_rtems_inlines+set}" = set; then |
---|
| 821 | enableval="$enable_rtems_inlines" |
---|
[04c308c] | 822 | case "${enableval}" in |
---|
[ba1a2af9] | 823 | yes) RTEMS_USE_MACROS=no ;; |
---|
| 824 | no) RTEMS_USE_MACROS=yes ;; |
---|
[69df7da] | 825 | *) { echo "configure: error: bad value ${enableval} for disable-rtems-inlines option" 1>&2; exit 1; } ;; |
---|
| 826 | esac |
---|
[254b4450] | 827 | else |
---|
| 828 | RTEMS_USE_MACROS=no |
---|
| 829 | fi |
---|
| 830 | |
---|
| 831 | |
---|
[04c308c] | 832 | |
---|
[3771cc6e] | 833 | # Check whether --enable-cxx or --disable-cxx was given. |
---|
| 834 | if test "${enable_cxx+set}" = set; then |
---|
| 835 | enableval="$enable_cxx" |
---|
[04c308c] | 836 | case "${enableval}" in |
---|
[3f70e3c] | 837 | yes) RTEMS_HAS_CPLUSPLUS=yes ;; |
---|
[37717818] | 838 | no) RTEMS_HAS_CPLUSPLUS=no ;; |
---|
[3771cc6e] | 839 | *) { echo "configure: error: bad value ${enableval} for enable-cxx option" 1>&2; exit 1; } ;; |
---|
[3f70e3c] | 840 | esac |
---|
| 841 | else |
---|
| 842 | RTEMS_HAS_CPLUSPLUS=no |
---|
| 843 | fi |
---|
| 844 | |
---|
[91333c2] | 845 | |
---|
[04c308c] | 846 | |
---|
[971cd22] | 847 | # Check whether --enable-gcc28 or --disable-gcc28 was given. |
---|
| 848 | if test "${enable_gcc28+set}" = set; then |
---|
| 849 | enableval="$enable_gcc28" |
---|
[04c308c] | 850 | case "${enableval}" in |
---|
[69df7da] | 851 | yes) RTEMS_USE_GCC272=no ;; |
---|
| 852 | no) RTEMS_USE_GCC272=yes ;; |
---|
| 853 | *) { echo "configure: error: bad value ${enableval} for gcc-28 option" 1>&2; exit 1; } ;; |
---|
| 854 | esac |
---|
[e412bae] | 855 | else |
---|
[fcb114c1] | 856 | RTEMS_USE_GCC272=no |
---|
[e412bae] | 857 | fi |
---|
| 858 | |
---|
[971cd22] | 859 | |
---|
[04c308c] | 860 | |
---|
[e412bae] | 861 | # Check whether --enable-libcdir or --disable-libcdir was given. |
---|
| 862 | if test "${enable_libcdir+set}" = set; then |
---|
| 863 | enableval="$enable_libcdir" |
---|
[04c308c] | 864 | RTEMS_LIBC_DIR="${enableval}" ; \ |
---|
[e412bae] | 865 | test -d ${enableval} || { echo "configure: error: "$enableval is not a directory" " 1>&2; exit 1; } |
---|
| 866 | fi |
---|
| 867 | |
---|
| 868 | |
---|
[04c308c] | 869 | |
---|
[550ca7d5] | 870 | # Check whether --enable-bare-cpu-cflags or --disable-bare-cpu-cflags was given. |
---|
| 871 | if test "${enable_bare_cpu_cflags+set}" = set; then |
---|
| 872 | enableval="$enable_bare_cpu_cflags" |
---|
[bd5e4f3b] | 873 | case "${enableval}" in |
---|
[550ca7d5] | 874 | no) BARE_CPU_CFLAGS="" ;; |
---|
| 875 | *) BARE_CPU_CFLAGS="${enableval}" ;; |
---|
[bd5e4f3b] | 876 | esac |
---|
| 877 | else |
---|
[550ca7d5] | 878 | BARE_CPU_CFLAGS="" |
---|
[bd5e4f3b] | 879 | fi |
---|
| 880 | |
---|
| 881 | |
---|
[550ca7d5] | 882 | # Check whether --enable-bare-cpu-model or --disable-bare-cpu-model was given. |
---|
| 883 | if test "${enable_bare_cpu_model+set}" = set; then |
---|
| 884 | enableval="$enable_bare_cpu_model" |
---|
[bd5e4f3b] | 885 | case "${enableval}" in |
---|
[550ca7d5] | 886 | no) BARE_CPU_MODEL="" ;; |
---|
| 887 | *) BARE_CPU_MODEL="${enableval}" ;; |
---|
[bd5e4f3b] | 888 | esac |
---|
| 889 | else |
---|
[550ca7d5] | 890 | BARE_CPU_MODEL="" |
---|
[bd5e4f3b] | 891 | fi |
---|
| 892 | |
---|
| 893 | |
---|
[04c308c] | 894 | |
---|
[254b4450] | 895 | RTEMS_PREFIX=${target_cpu}-${target_vendor} |
---|
| 896 | |
---|
[a50148a] | 897 | |
---|
| 898 | # Extract the first word of "cat", so it can be a program name with args. |
---|
| 899 | set dummy cat; ac_word=$2 |
---|
| 900 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[7e03d10] | 901 | echo "configure:902: checking for $ac_word" >&5 |
---|
[a50148a] | 902 | if eval "test \"`echo '$''{'ac_cv_path_CAT'+set}'`\" = set"; then |
---|
| 903 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 904 | else |
---|
| 905 | case "$CAT" in |
---|
| 906 | /*) |
---|
| 907 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. |
---|
| 908 | ;; |
---|
[9ec96478] | 909 | ?:/*) |
---|
| 910 | ac_cv_path_CAT="$CAT" # Let the user override the test with a dos path. |
---|
| 911 | ;; |
---|
[a50148a] | 912 | *) |
---|
[9ec96478] | 913 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 914 | ac_dummy="$PATH" |
---|
| 915 | for ac_dir in $ac_dummy; do |
---|
[a50148a] | 916 | test -z "$ac_dir" && ac_dir=. |
---|
| 917 | if test -f $ac_dir/$ac_word; then |
---|
| 918 | ac_cv_path_CAT="$ac_dir/$ac_word" |
---|
| 919 | break |
---|
| 920 | fi |
---|
| 921 | done |
---|
| 922 | IFS="$ac_save_ifs" |
---|
| 923 | ;; |
---|
| 924 | esac |
---|
| 925 | fi |
---|
| 926 | CAT="$ac_cv_path_CAT" |
---|
| 927 | if test -n "$CAT"; then |
---|
| 928 | echo "$ac_t""$CAT" 1>&6 |
---|
| 929 | else |
---|
| 930 | echo "$ac_t""no" 1>&6 |
---|
| 931 | fi |
---|
| 932 | |
---|
| 933 | # Extract the first word of "rm", so it can be a program name with args. |
---|
| 934 | set dummy rm; ac_word=$2 |
---|
| 935 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[7e03d10] | 936 | echo "configure:937: checking for $ac_word" >&5 |
---|
[a50148a] | 937 | if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then |
---|
| 938 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 939 | else |
---|
| 940 | case "$RM" in |
---|
| 941 | /*) |
---|
| 942 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
---|
| 943 | ;; |
---|
[9ec96478] | 944 | ?:/*) |
---|
| 945 | ac_cv_path_RM="$RM" # Let the user override the test with a dos path. |
---|
| 946 | ;; |
---|
[a50148a] | 947 | *) |
---|
[9ec96478] | 948 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 949 | ac_dummy="$PATH" |
---|
| 950 | for ac_dir in $ac_dummy; do |
---|
[a50148a] | 951 | test -z "$ac_dir" && ac_dir=. |
---|
| 952 | if test -f $ac_dir/$ac_word; then |
---|
| 953 | ac_cv_path_RM="$ac_dir/$ac_word" |
---|
| 954 | break |
---|
| 955 | fi |
---|
| 956 | done |
---|
| 957 | IFS="$ac_save_ifs" |
---|
| 958 | ;; |
---|
| 959 | esac |
---|
| 960 | fi |
---|
| 961 | RM="$ac_cv_path_RM" |
---|
| 962 | if test -n "$RM"; then |
---|
| 963 | echo "$ac_t""$RM" 1>&6 |
---|
| 964 | else |
---|
| 965 | echo "$ac_t""no" 1>&6 |
---|
| 966 | fi |
---|
| 967 | |
---|
| 968 | # Extract the first word of "cp", so it can be a program name with args. |
---|
| 969 | set dummy cp; ac_word=$2 |
---|
| 970 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[7e03d10] | 971 | echo "configure:972: checking for $ac_word" >&5 |
---|
[a50148a] | 972 | if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then |
---|
| 973 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 974 | else |
---|
| 975 | case "$CP" in |
---|
| 976 | /*) |
---|
| 977 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
---|
| 978 | ;; |
---|
[9ec96478] | 979 | ?:/*) |
---|
| 980 | ac_cv_path_CP="$CP" # Let the user override the test with a dos path. |
---|
| 981 | ;; |
---|
[a50148a] | 982 | *) |
---|
[9ec96478] | 983 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 984 | ac_dummy="$PATH" |
---|
| 985 | for ac_dir in $ac_dummy; do |
---|
[a50148a] | 986 | test -z "$ac_dir" && ac_dir=. |
---|
| 987 | if test -f $ac_dir/$ac_word; then |
---|
| 988 | ac_cv_path_CP="$ac_dir/$ac_word" |
---|
| 989 | break |
---|
| 990 | fi |
---|
| 991 | done |
---|
| 992 | IFS="$ac_save_ifs" |
---|
| 993 | ;; |
---|
| 994 | esac |
---|
| 995 | fi |
---|
| 996 | CP="$ac_cv_path_CP" |
---|
| 997 | if test -n "$CP"; then |
---|
| 998 | echo "$ac_t""$CP" 1>&6 |
---|
| 999 | else |
---|
| 1000 | echo "$ac_t""no" 1>&6 |
---|
| 1001 | fi |
---|
| 1002 | |
---|
| 1003 | # Extract the first word of "mv", so it can be a program name with args. |
---|
| 1004 | set dummy mv; ac_word=$2 |
---|
| 1005 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[7e03d10] | 1006 | echo "configure:1007: checking for $ac_word" >&5 |
---|
[a50148a] | 1007 | if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then |
---|
| 1008 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1009 | else |
---|
| 1010 | case "$MV" in |
---|
| 1011 | /*) |
---|
| 1012 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
---|
| 1013 | ;; |
---|
[9ec96478] | 1014 | ?:/*) |
---|
| 1015 | ac_cv_path_MV="$MV" # Let the user override the test with a dos path. |
---|
| 1016 | ;; |
---|
[a50148a] | 1017 | *) |
---|
[9ec96478] | 1018 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1019 | ac_dummy="$PATH" |
---|
| 1020 | for ac_dir in $ac_dummy; do |
---|
[a50148a] | 1021 | test -z "$ac_dir" && ac_dir=. |
---|
| 1022 | if test -f $ac_dir/$ac_word; then |
---|
| 1023 | ac_cv_path_MV="$ac_dir/$ac_word" |
---|
| 1024 | break |
---|
| 1025 | fi |
---|
| 1026 | done |
---|
| 1027 | IFS="$ac_save_ifs" |
---|
| 1028 | ;; |
---|
| 1029 | esac |
---|
| 1030 | fi |
---|
| 1031 | MV="$ac_cv_path_MV" |
---|
| 1032 | if test -n "$MV"; then |
---|
| 1033 | echo "$ac_t""$MV" 1>&6 |
---|
| 1034 | else |
---|
| 1035 | echo "$ac_t""no" 1>&6 |
---|
| 1036 | fi |
---|
| 1037 | |
---|
| 1038 | # Extract the first word of "ln", so it can be a program name with args. |
---|
| 1039 | set dummy ln; ac_word=$2 |
---|
| 1040 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[7e03d10] | 1041 | echo "configure:1042: checking for $ac_word" >&5 |
---|
[a50148a] | 1042 | if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then |
---|
| 1043 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1044 | else |
---|
| 1045 | case "$LN" in |
---|
| 1046 | /*) |
---|
| 1047 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
---|
| 1048 | ;; |
---|
[9ec96478] | 1049 | ?:/*) |
---|
| 1050 | ac_cv_path_LN="$LN" # Let the user override the test with a dos path. |
---|
| 1051 | ;; |
---|
[a50148a] | 1052 | *) |
---|
[9ec96478] | 1053 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1054 | ac_dummy="$PATH" |
---|
| 1055 | for ac_dir in $ac_dummy; do |
---|
[a50148a] | 1056 | test -z "$ac_dir" && ac_dir=. |
---|
| 1057 | if test -f $ac_dir/$ac_word; then |
---|
| 1058 | ac_cv_path_LN="$ac_dir/$ac_word" |
---|
| 1059 | break |
---|
| 1060 | fi |
---|
| 1061 | done |
---|
| 1062 | IFS="$ac_save_ifs" |
---|
| 1063 | ;; |
---|
| 1064 | esac |
---|
| 1065 | fi |
---|
| 1066 | LN="$ac_cv_path_LN" |
---|
| 1067 | if test -n "$LN"; then |
---|
| 1068 | echo "$ac_t""$LN" 1>&6 |
---|
| 1069 | else |
---|
| 1070 | echo "$ac_t""no" 1>&6 |
---|
| 1071 | fi |
---|
| 1072 | |
---|
[37717818] | 1073 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
---|
[7e03d10] | 1074 | echo "configure:1075: checking whether ln -s works" >&5 |
---|
[37717818] | 1075 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
---|
| 1076 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1077 | else |
---|
| 1078 | rm -f conftestdata |
---|
| 1079 | if ln -s X conftestdata 2>/dev/null |
---|
| 1080 | then |
---|
| 1081 | rm -f conftestdata |
---|
| 1082 | ac_cv_prog_LN_S="ln -s" |
---|
| 1083 | else |
---|
| 1084 | ac_cv_prog_LN_S=ln |
---|
| 1085 | fi |
---|
| 1086 | fi |
---|
| 1087 | LN_S="$ac_cv_prog_LN_S" |
---|
| 1088 | if test "$ac_cv_prog_LN_S" = "ln -s"; then |
---|
| 1089 | echo "$ac_t""yes" 1>&6 |
---|
| 1090 | else |
---|
| 1091 | echo "$ac_t""no" 1>&6 |
---|
| 1092 | fi |
---|
| 1093 | |
---|
[a50148a] | 1094 | # Extract the first word of "chmod", so it can be a program name with args. |
---|
| 1095 | set dummy chmod; ac_word=$2 |
---|
| 1096 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[7e03d10] | 1097 | echo "configure:1098: checking for $ac_word" >&5 |
---|
[a50148a] | 1098 | if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then |
---|
| 1099 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1100 | else |
---|
| 1101 | case "$CHMOD" in |
---|
| 1102 | /*) |
---|
| 1103 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
---|
| 1104 | ;; |
---|
[9ec96478] | 1105 | ?:/*) |
---|
| 1106 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path. |
---|
| 1107 | ;; |
---|
[a50148a] | 1108 | *) |
---|
[9ec96478] | 1109 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1110 | ac_dummy="$PATH" |
---|
| 1111 | for ac_dir in $ac_dummy; do |
---|
[a50148a] | 1112 | test -z "$ac_dir" && ac_dir=. |
---|
| 1113 | if test -f $ac_dir/$ac_word; then |
---|
| 1114 | ac_cv_path_CHMOD="$ac_dir/$ac_word" |
---|
| 1115 | break |
---|
| 1116 | fi |
---|
| 1117 | done |
---|
| 1118 | IFS="$ac_save_ifs" |
---|
| 1119 | ;; |
---|
| 1120 | esac |
---|
| 1121 | fi |
---|
| 1122 | CHMOD="$ac_cv_path_CHMOD" |
---|
| 1123 | if test -n "$CHMOD"; then |
---|
| 1124 | echo "$ac_t""$CHMOD" 1>&6 |
---|
| 1125 | else |
---|
| 1126 | echo "$ac_t""no" 1>&6 |
---|
| 1127 | fi |
---|
| 1128 | |
---|
| 1129 | # Extract the first word of "sort", so it can be a program name with args. |
---|
| 1130 | set dummy sort; ac_word=$2 |
---|
| 1131 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[7e03d10] | 1132 | echo "configure:1133: checking for $ac_word" >&5 |
---|
[a50148a] | 1133 | if eval "test \"`echo '$''{'ac_cv_path_SORT'+set}'`\" = set"; then |
---|
| 1134 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1135 | else |
---|
| 1136 | case "$SORT" in |
---|
| 1137 | /*) |
---|
| 1138 | ac_cv_path_SORT="$SORT" # Let the user override the test with a path. |
---|
| 1139 | ;; |
---|
[9ec96478] | 1140 | ?:/*) |
---|
| 1141 | ac_cv_path_SORT="$SORT" # Let the user override the test with a dos path. |
---|
| 1142 | ;; |
---|
[a50148a] | 1143 | *) |
---|
[9ec96478] | 1144 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1145 | ac_dummy="$PATH" |
---|
| 1146 | for ac_dir in $ac_dummy; do |
---|
[a50148a] | 1147 | test -z "$ac_dir" && ac_dir=. |
---|
| 1148 | if test -f $ac_dir/$ac_word; then |
---|
| 1149 | ac_cv_path_SORT="$ac_dir/$ac_word" |
---|
| 1150 | break |
---|
| 1151 | fi |
---|
| 1152 | done |
---|
| 1153 | IFS="$ac_save_ifs" |
---|
| 1154 | ;; |
---|
| 1155 | esac |
---|
| 1156 | fi |
---|
| 1157 | SORT="$ac_cv_path_SORT" |
---|
| 1158 | if test -n "$SORT"; then |
---|
| 1159 | echo "$ac_t""$SORT" 1>&6 |
---|
| 1160 | else |
---|
| 1161 | echo "$ac_t""no" 1>&6 |
---|
| 1162 | fi |
---|
| 1163 | |
---|
[4fb08fd] | 1164 | # Find a good install program. We prefer a C program (faster), |
---|
| 1165 | # so one script is as good as another. But avoid the broken or |
---|
| 1166 | # incompatible versions: |
---|
| 1167 | # SysV /etc/install, /usr/sbin/install |
---|
| 1168 | # SunOS /usr/etc/install |
---|
| 1169 | # IRIX /sbin/install |
---|
| 1170 | # AIX /bin/install |
---|
[9ec96478] | 1171 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
[4fb08fd] | 1172 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
| 1173 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
| 1174 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
| 1175 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
---|
[7e03d10] | 1176 | echo "configure:1177: checking for a BSD compatible install" >&5 |
---|
[4fb08fd] | 1177 | if test -z "$INSTALL"; then |
---|
| 1178 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
---|
| 1179 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1180 | else |
---|
[9ec96478] | 1181 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
---|
[4fb08fd] | 1182 | for ac_dir in $PATH; do |
---|
| 1183 | # Account for people who put trailing slashes in PATH elements. |
---|
| 1184 | case "$ac_dir/" in |
---|
| 1185 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
---|
| 1186 | *) |
---|
| 1187 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
[9ec96478] | 1188 | # Don't use installbsd from OSF since it installs stuff as root |
---|
| 1189 | # by default. |
---|
| 1190 | for ac_prog in ginstall scoinst install; do |
---|
[4fb08fd] | 1191 | if test -f $ac_dir/$ac_prog; then |
---|
| 1192 | if test $ac_prog = install && |
---|
| 1193 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
---|
| 1194 | # AIX install. It has an incompatible calling convention. |
---|
| 1195 | : |
---|
| 1196 | else |
---|
| 1197 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
---|
| 1198 | break 2 |
---|
| 1199 | fi |
---|
| 1200 | fi |
---|
| 1201 | done |
---|
| 1202 | ;; |
---|
| 1203 | esac |
---|
| 1204 | done |
---|
| 1205 | IFS="$ac_save_IFS" |
---|
| 1206 | |
---|
| 1207 | fi |
---|
| 1208 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1209 | INSTALL="$ac_cv_path_install" |
---|
| 1210 | else |
---|
| 1211 | # As a last resort, use the slow shell script. We don't cache a |
---|
| 1212 | # path for INSTALL within a source directory, because that will |
---|
| 1213 | # break other packages using the cache if that directory is |
---|
| 1214 | # removed, or if the path is relative. |
---|
| 1215 | INSTALL="$ac_install_sh" |
---|
| 1216 | fi |
---|
| 1217 | fi |
---|
| 1218 | echo "$ac_t""$INSTALL" 1>&6 |
---|
| 1219 | |
---|
| 1220 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
| 1221 | # It thinks the first close brace ends the variable substitution. |
---|
| 1222 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
| 1223 | |
---|
[9ec96478] | 1224 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
---|
| 1225 | |
---|
[4fb08fd] | 1226 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
| 1227 | |
---|
[9ec96478] | 1228 | |
---|
[11cfb6f7] | 1229 | # Extract the first word of "perl", so it can be a program name with args. |
---|
| 1230 | set dummy perl; ac_word=$2 |
---|
| 1231 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[7e03d10] | 1232 | echo "configure:1233: checking for $ac_word" >&5 |
---|
[11cfb6f7] | 1233 | if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then |
---|
| 1234 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1235 | else |
---|
| 1236 | case "$PERL" in |
---|
| 1237 | /*) |
---|
| 1238 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
---|
| 1239 | ;; |
---|
[9ec96478] | 1240 | ?:/*) |
---|
| 1241 | ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path. |
---|
| 1242 | ;; |
---|
[11cfb6f7] | 1243 | *) |
---|
[9ec96478] | 1244 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1245 | ac_dummy="$PATH" |
---|
| 1246 | for ac_dir in $ac_dummy; do |
---|
[11cfb6f7] | 1247 | test -z "$ac_dir" && ac_dir=. |
---|
| 1248 | if test -f $ac_dir/$ac_word; then |
---|
| 1249 | ac_cv_path_PERL="$ac_dir/$ac_word" |
---|
| 1250 | break |
---|
| 1251 | fi |
---|
| 1252 | done |
---|
| 1253 | IFS="$ac_save_ifs" |
---|
| 1254 | ;; |
---|
| 1255 | esac |
---|
| 1256 | fi |
---|
| 1257 | PERL="$ac_cv_path_PERL" |
---|
| 1258 | if test -n "$PERL"; then |
---|
| 1259 | echo "$ac_t""$PERL" 1>&6 |
---|
| 1260 | else |
---|
| 1261 | echo "$ac_t""no" 1>&6 |
---|
| 1262 | fi |
---|
| 1263 | |
---|
| 1264 | if test -z "$PERL" ; then |
---|
| 1265 | echo "configure: warning: *** |
---|
| 1266 | perl was not found |
---|
| 1267 | Note: Some tools will not be built." 1>&2 |
---|
| 1268 | fi |
---|
[a50148a] | 1269 | |
---|
[9ec96478] | 1270 | |
---|
[a50148a] | 1271 | # Extract the first word of "mkdir", so it can be a program name with args. |
---|
| 1272 | set dummy mkdir; ac_word=$2 |
---|
| 1273 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[7e03d10] | 1274 | echo "configure:1275: checking for $ac_word" >&5 |
---|
[a50148a] | 1275 | if eval "test \"`echo '$''{'ac_cv_path_MKDIR'+set}'`\" = set"; then |
---|
| 1276 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1277 | else |
---|
| 1278 | case "$MKDIR" in |
---|
| 1279 | /*) |
---|
| 1280 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
---|
| 1281 | ;; |
---|
[9ec96478] | 1282 | ?:/*) |
---|
| 1283 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a dos path. |
---|
| 1284 | ;; |
---|
[a50148a] | 1285 | *) |
---|
[9ec96478] | 1286 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1287 | ac_dummy="$PATH" |
---|
| 1288 | for ac_dir in $ac_dummy; do |
---|
[a50148a] | 1289 | test -z "$ac_dir" && ac_dir=. |
---|
| 1290 | if test -f $ac_dir/$ac_word; then |
---|
| 1291 | ac_cv_path_MKDIR="$ac_dir/$ac_word" |
---|
| 1292 | break |
---|
| 1293 | fi |
---|
| 1294 | done |
---|
| 1295 | IFS="$ac_save_ifs" |
---|
| 1296 | ;; |
---|
| 1297 | esac |
---|
| 1298 | fi |
---|
| 1299 | MKDIR="$ac_cv_path_MKDIR" |
---|
| 1300 | if test -n "$MKDIR"; then |
---|
| 1301 | echo "$ac_t""$MKDIR" 1>&6 |
---|
| 1302 | else |
---|
| 1303 | echo "$ac_t""no" 1>&6 |
---|
| 1304 | fi |
---|
| 1305 | |
---|
| 1306 | |
---|
| 1307 | |
---|
| 1308 | |
---|
| 1309 | echo $ac_n "checking for working $MKDIR -m 0755""... $ac_c" 1>&6 |
---|
[7e03d10] | 1310 | echo "configure:1311: checking for working $MKDIR -m 0755" >&5 |
---|
[a50148a] | 1311 | if eval "test \"`echo '$''{'rtems_cv_prog_MKDIR_P'+set}'`\" = set"; then |
---|
| 1312 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1313 | else |
---|
| 1314 | rm -rf conftestdata |
---|
| 1315 | if $MKDIR -m 0775 conftestdata 2>/dev/null; then |
---|
| 1316 | rtems_cv_prog_MKDIR_M="yes" |
---|
| 1317 | else |
---|
| 1318 | rtems_cv_prog_MKDIR_M="no" |
---|
| 1319 | fi |
---|
| 1320 | fi |
---|
| 1321 | rm -rf conftestdata |
---|
| 1322 | echo "$ac_t""$rtems_cv_prog_MKDIR_M" 1>&6 |
---|
| 1323 | |
---|
| 1324 | |
---|
| 1325 | |
---|
| 1326 | echo $ac_n "checking for working $MKDIR -p""... $ac_c" 1>&6 |
---|
[7e03d10] | 1327 | echo "configure:1328: checking for working $MKDIR -p" >&5 |
---|
[a50148a] | 1328 | if eval "test \"`echo '$''{'rtems_cv_prog_mkdir_p'+set}'`\" = set"; then |
---|
| 1329 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1330 | else |
---|
| 1331 | rm -rf conftestdata |
---|
| 1332 | if $MKDIR -p conftestdata 2>/dev/null ;then |
---|
| 1333 | rtems_cv_prog_MKDIR_P="yes" |
---|
| 1334 | else |
---|
| 1335 | rtems_cv_prog_MKDIR_P="no" |
---|
| 1336 | fi |
---|
| 1337 | fi |
---|
| 1338 | rm -rf conftestdata |
---|
| 1339 | echo "$ac_t""$rtems_cv_prog_MKDIR_P" 1>&6 |
---|
| 1340 | |
---|
| 1341 | test "$rtems_cv_prog_MKDIR_P" = "yes" && MKDIR="$MKDIR -p" |
---|
[f205fe6d] | 1342 | #test "$rtems_cv_prog_MKDIR_M" = "yes" && MKDIR="$MKDIR -m 0755" |
---|
[a50148a] | 1343 | |
---|
[3771cc6e] | 1344 | # Extract the first word of "touch", so it can be a program name with args. |
---|
| 1345 | set dummy touch; ac_word=$2 |
---|
| 1346 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[7e03d10] | 1347 | echo "configure:1348: checking for $ac_word" >&5 |
---|
[3771cc6e] | 1348 | if eval "test \"`echo '$''{'ac_cv_path_TOUCH'+set}'`\" = set"; then |
---|
| 1349 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1350 | else |
---|
| 1351 | case "$TOUCH" in |
---|
| 1352 | /*) |
---|
| 1353 | ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. |
---|
| 1354 | ;; |
---|
[9ec96478] | 1355 | ?:/*) |
---|
| 1356 | ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a dos path. |
---|
| 1357 | ;; |
---|
[3771cc6e] | 1358 | *) |
---|
[9ec96478] | 1359 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1360 | ac_dummy="$PATH" |
---|
| 1361 | for ac_dir in $ac_dummy; do |
---|
[3771cc6e] | 1362 | test -z "$ac_dir" && ac_dir=. |
---|
| 1363 | if test -f $ac_dir/$ac_word; then |
---|
| 1364 | ac_cv_path_TOUCH="$ac_dir/$ac_word" |
---|
| 1365 | break |
---|
| 1366 | fi |
---|
| 1367 | done |
---|
| 1368 | IFS="$ac_save_ifs" |
---|
| 1369 | ;; |
---|
| 1370 | esac |
---|
| 1371 | fi |
---|
| 1372 | TOUCH="$ac_cv_path_TOUCH" |
---|
| 1373 | if test -n "$TOUCH"; then |
---|
| 1374 | echo "$ac_t""$TOUCH" 1>&6 |
---|
| 1375 | else |
---|
| 1376 | echo "$ac_t""no" 1>&6 |
---|
| 1377 | fi |
---|
| 1378 | |
---|
| 1379 | # Extract the first word of "cmp", so it can be a program name with args. |
---|
| 1380 | set dummy cmp; ac_word=$2 |
---|
| 1381 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[7e03d10] | 1382 | echo "configure:1383: checking for $ac_word" >&5 |
---|
[3771cc6e] | 1383 | if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then |
---|
| 1384 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1385 | else |
---|
| 1386 | case "$CMP" in |
---|
| 1387 | /*) |
---|
| 1388 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
---|
| 1389 | ;; |
---|
[9ec96478] | 1390 | ?:/*) |
---|
| 1391 | ac_cv_path_CMP="$CMP" # Let the user override the test with a dos path. |
---|
| 1392 | ;; |
---|
[3771cc6e] | 1393 | *) |
---|
[9ec96478] | 1394 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1395 | ac_dummy="$PATH" |
---|
| 1396 | for ac_dir in $ac_dummy; do |
---|
[3771cc6e] | 1397 | test -z "$ac_dir" && ac_dir=. |
---|
| 1398 | if test -f $ac_dir/$ac_word; then |
---|
| 1399 | ac_cv_path_CMP="$ac_dir/$ac_word" |
---|
| 1400 | break |
---|
| 1401 | fi |
---|
| 1402 | done |
---|
| 1403 | IFS="$ac_save_ifs" |
---|
| 1404 | ;; |
---|
| 1405 | esac |
---|
| 1406 | fi |
---|
| 1407 | CMP="$ac_cv_path_CMP" |
---|
| 1408 | if test -n "$CMP"; then |
---|
| 1409 | echo "$ac_t""$CMP" 1>&6 |
---|
| 1410 | else |
---|
| 1411 | echo "$ac_t""no" 1>&6 |
---|
| 1412 | fi |
---|
| 1413 | |
---|
| 1414 | |
---|
| 1415 | # Extract the first word of "sed", so it can be a program name with args. |
---|
| 1416 | set dummy sed; ac_word=$2 |
---|
| 1417 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[7e03d10] | 1418 | echo "configure:1419: checking for $ac_word" >&5 |
---|
[3771cc6e] | 1419 | if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then |
---|
| 1420 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1421 | else |
---|
| 1422 | case "$SED" in |
---|
| 1423 | /*) |
---|
| 1424 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
---|
| 1425 | ;; |
---|
[9ec96478] | 1426 | ?:/*) |
---|
| 1427 | ac_cv_path_SED="$SED" # Let the user override the test with a dos path. |
---|
| 1428 | ;; |
---|
[3771cc6e] | 1429 | *) |
---|
[9ec96478] | 1430 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1431 | ac_dummy="$PATH" |
---|
| 1432 | for ac_dir in $ac_dummy; do |
---|
[3771cc6e] | 1433 | test -z "$ac_dir" && ac_dir=. |
---|
| 1434 | if test -f $ac_dir/$ac_word; then |
---|
| 1435 | ac_cv_path_SED="$ac_dir/$ac_word" |
---|
| 1436 | break |
---|
| 1437 | fi |
---|
| 1438 | done |
---|
| 1439 | IFS="$ac_save_ifs" |
---|
| 1440 | ;; |
---|
| 1441 | esac |
---|
| 1442 | fi |
---|
| 1443 | SED="$ac_cv_path_SED" |
---|
| 1444 | if test -n "$SED"; then |
---|
| 1445 | echo "$ac_t""$SED" 1>&6 |
---|
| 1446 | else |
---|
| 1447 | echo "$ac_t""no" 1>&6 |
---|
| 1448 | fi |
---|
| 1449 | |
---|
| 1450 | for ac_prog in gm4 m4 |
---|
| 1451 | do |
---|
| 1452 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1453 | set dummy $ac_prog; ac_word=$2 |
---|
| 1454 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[7e03d10] | 1455 | echo "configure:1456: checking for $ac_word" >&5 |
---|
[3771cc6e] | 1456 | if eval "test \"`echo '$''{'ac_cv_path_M4'+set}'`\" = set"; then |
---|
| 1457 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1458 | else |
---|
| 1459 | case "$M4" in |
---|
| 1460 | /*) |
---|
| 1461 | ac_cv_path_M4="$M4" # Let the user override the test with a path. |
---|
| 1462 | ;; |
---|
[9ec96478] | 1463 | ?:/*) |
---|
| 1464 | ac_cv_path_M4="$M4" # Let the user override the test with a dos path. |
---|
| 1465 | ;; |
---|
[3771cc6e] | 1466 | *) |
---|
[9ec96478] | 1467 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1468 | ac_dummy="$PATH" |
---|
| 1469 | for ac_dir in $ac_dummy; do |
---|
[3771cc6e] | 1470 | test -z "$ac_dir" && ac_dir=. |
---|
| 1471 | if test -f $ac_dir/$ac_word; then |
---|
| 1472 | ac_cv_path_M4="$ac_dir/$ac_word" |
---|
| 1473 | break |
---|
| 1474 | fi |
---|
| 1475 | done |
---|
| 1476 | IFS="$ac_save_ifs" |
---|
| 1477 | ;; |
---|
| 1478 | esac |
---|
| 1479 | fi |
---|
| 1480 | M4="$ac_cv_path_M4" |
---|
| 1481 | if test -n "$M4"; then |
---|
| 1482 | echo "$ac_t""$M4" 1>&6 |
---|
| 1483 | else |
---|
| 1484 | echo "$ac_t""no" 1>&6 |
---|
| 1485 | fi |
---|
| 1486 | |
---|
| 1487 | test -n "$M4" && break |
---|
| 1488 | done |
---|
| 1489 | |
---|
| 1490 | |
---|
[9ec96478] | 1491 | |
---|
[3771cc6e] | 1492 | for ac_prog in bash ksh sh |
---|
| 1493 | do |
---|
| 1494 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1495 | set dummy $ac_prog; ac_word=$2 |
---|
| 1496 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[7e03d10] | 1497 | echo "configure:1498: checking for $ac_word" >&5 |
---|
[3771cc6e] | 1498 | if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then |
---|
| 1499 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1500 | else |
---|
| 1501 | case "$KSH" in |
---|
| 1502 | /*) |
---|
| 1503 | ac_cv_path_KSH="$KSH" # Let the user override the test with a path. |
---|
| 1504 | ;; |
---|
[9ec96478] | 1505 | ?:/*) |
---|
| 1506 | ac_cv_path_KSH="$KSH" # Let the user override the test with a dos path. |
---|
| 1507 | ;; |
---|
[3771cc6e] | 1508 | *) |
---|
[9ec96478] | 1509 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1510 | ac_dummy="$PATH" |
---|
| 1511 | for ac_dir in $ac_dummy; do |
---|
[3771cc6e] | 1512 | test -z "$ac_dir" && ac_dir=. |
---|
| 1513 | if test -f $ac_dir/$ac_word; then |
---|
| 1514 | ac_cv_path_KSH="$ac_dir/$ac_word" |
---|
| 1515 | break |
---|
| 1516 | fi |
---|
| 1517 | done |
---|
| 1518 | IFS="$ac_save_ifs" |
---|
| 1519 | ;; |
---|
| 1520 | esac |
---|
| 1521 | fi |
---|
| 1522 | KSH="$ac_cv_path_KSH" |
---|
| 1523 | if test -n "$KSH"; then |
---|
| 1524 | echo "$ac_t""$KSH" 1>&6 |
---|
| 1525 | else |
---|
| 1526 | echo "$ac_t""no" 1>&6 |
---|
| 1527 | fi |
---|
| 1528 | |
---|
| 1529 | test -n "$KSH" && break |
---|
| 1530 | done |
---|
| 1531 | |
---|
| 1532 | if test -z "$KSH"; then |
---|
| 1533 | { echo "configure: error: *** |
---|
| 1534 | Cannot determine a usable shell bash/ksh/sh |
---|
| 1535 | Please contact your system administrator " 1>&2; exit 1; }; |
---|
| 1536 | fi |
---|
| 1537 | |
---|
| 1538 | |
---|
| 1539 | |
---|
| 1540 | |
---|
[9ec96478] | 1541 | |
---|
[3771cc6e] | 1542 | RTEMS_HOST=$host_os |
---|
| 1543 | |
---|
[9ec96478] | 1544 | |
---|
| 1545 | |
---|
| 1546 | echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6 |
---|
[7e03d10] | 1547 | echo "configure:1548: checking rtems target cpu" >&5 |
---|
[3771cc6e] | 1548 | case "${target}" in |
---|
| 1549 | # hpux unix port should go here |
---|
| 1550 | i[3456]86-go32-rtems*) |
---|
| 1551 | target_cpu=i386 |
---|
[9ec96478] | 1552 | ;; |
---|
| 1553 | i[3456]86-pc-linux*) # unix "simulator" port |
---|
| 1554 | target_cpu=unix |
---|
| 1555 | ;; |
---|
| 1556 | i[3456]86-*freebsd2*) # unix "simulator" port |
---|
| 1557 | target_cpu=unix |
---|
| 1558 | ;; |
---|
| 1559 | no_cpu-*rtems*) |
---|
| 1560 | target_cpu=no_cpu |
---|
| 1561 | ;; |
---|
| 1562 | ppc*-*rtems*) |
---|
| 1563 | target_cpu=powerpc |
---|
| 1564 | ;; |
---|
| 1565 | sparc-sun-solaris*) # unix "simulator" port |
---|
| 1566 | target_cpu=unix |
---|
| 1567 | ;; |
---|
| 1568 | *) |
---|
| 1569 | target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'` |
---|
| 1570 | ;; |
---|
| 1571 | esac |
---|
| 1572 | echo "$ac_t""$target_cpu" 1>&6 |
---|
| 1573 | |
---|
| 1574 | |
---|
[04c308c] | 1575 | |
---|
| 1576 | # Is this a supported CPU? |
---|
| 1577 | echo $ac_n "checking if cpu $target_cpu is supported""... $ac_c" 1>&6 |
---|
[7e03d10] | 1578 | echo "configure:1579: checking if cpu $target_cpu is supported" >&5 |
---|
[04c308c] | 1579 | if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$target_cpu"; then |
---|
| 1580 | echo "$ac_t""yes" 1>&6 |
---|
| 1581 | else |
---|
| 1582 | { echo "configure: error: no" 1>&2; exit 1; } |
---|
| 1583 | fi |
---|
| 1584 | |
---|
| 1585 | |
---|
| 1586 | RTEMS_HOST=$host_os |
---|
[9ec96478] | 1587 | case "${target}" in |
---|
| 1588 | # hpux unix port should go here |
---|
[3771cc6e] | 1589 | i[3456]86-pc-linux*) # unix "simulator" port |
---|
| 1590 | RTEMS_HOST=Linux |
---|
| 1591 | ;; |
---|
[98100d2] | 1592 | i[3456]86-*freebsd2*) # unix "simulator" port |
---|
[9a6994b4] | 1593 | RTEMS_HOST=FreeBSD |
---|
[3771cc6e] | 1594 | ;; |
---|
| 1595 | sparc-sun-solaris*) # unix "simulator" port |
---|
| 1596 | RTEMS_HOST=Solaris |
---|
| 1597 | ;; |
---|
| 1598 | *) |
---|
| 1599 | ;; |
---|
| 1600 | esac |
---|
| 1601 | |
---|
[9ec96478] | 1602 | |
---|
[04c308c] | 1603 | |
---|
| 1604 | case "${target}" in |
---|
| 1605 | i[3456]86-go32-rtems*) |
---|
| 1606 | rtems_bsp="go32 go32_p5" |
---|
| 1607 | skip_startfiles="yes" |
---|
| 1608 | ;; |
---|
| 1609 | *) |
---|
| 1610 | ;; |
---|
| 1611 | esac |
---|
| 1612 | |
---|
[3771cc6e] | 1613 | # Override the set of BSPs to be built. |
---|
| 1614 | # Check whether --enable-rtemsbsp or --disable-rtemsbsp was given. |
---|
| 1615 | if test "${enable_rtemsbsp+set}" = set; then |
---|
| 1616 | enableval="$enable_rtemsbsp" |
---|
| 1617 | \ |
---|
| 1618 | rtems_bsp=$enableval \ |
---|
| 1619 | |
---|
| 1620 | fi |
---|
| 1621 | |
---|
| 1622 | |
---|
| 1623 | |
---|
| 1624 | if [ "${program_prefix}" = "NONE" ] ; then |
---|
| 1625 | if [ "${target}" = "${host}" ] ; then |
---|
| 1626 | program_prefix= |
---|
| 1627 | else |
---|
| 1628 | program_prefix=${target}- |
---|
| 1629 | fi |
---|
| 1630 | fi |
---|
| 1631 | |
---|
| 1632 | |
---|
| 1633 | |
---|
[fe2401b2] | 1634 | |
---|
| 1635 | for ac_prog in "$program_prefix"gcc "$program_prefix"cc |
---|
| 1636 | do |
---|
| 1637 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1638 | set dummy $ac_prog; ac_word=$2 |
---|
[3771cc6e] | 1639 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[7e03d10] | 1640 | echo "configure:1641: checking for $ac_word" >&5 |
---|
[fe2401b2] | 1641 | if eval "test \"`echo '$''{'ac_cv_path_CC_FOR_TARGET'+set}'`\" = set"; then |
---|
[3771cc6e] | 1642 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1643 | else |
---|
[fe2401b2] | 1644 | case "$CC_FOR_TARGET" in |
---|
| 1645 | /*) |
---|
| 1646 | ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a path. |
---|
| 1647 | ;; |
---|
[9ec96478] | 1648 | ?:/*) |
---|
| 1649 | ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 1650 | ;; |
---|
[fe2401b2] | 1651 | *) |
---|
[9ec96478] | 1652 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1653 | ac_dummy="$PATH" |
---|
| 1654 | for ac_dir in $ac_dummy; do |
---|
[3771cc6e] | 1655 | test -z "$ac_dir" && ac_dir=. |
---|
| 1656 | if test -f $ac_dir/$ac_word; then |
---|
[fe2401b2] | 1657 | ac_cv_path_CC_FOR_TARGET="$ac_dir/$ac_word" |
---|
[3771cc6e] | 1658 | break |
---|
| 1659 | fi |
---|
| 1660 | done |
---|
| 1661 | IFS="$ac_save_ifs" |
---|
[fe2401b2] | 1662 | ;; |
---|
| 1663 | esac |
---|
[3771cc6e] | 1664 | fi |
---|
[fe2401b2] | 1665 | CC_FOR_TARGET="$ac_cv_path_CC_FOR_TARGET" |
---|
| 1666 | if test -n "$CC_FOR_TARGET"; then |
---|
| 1667 | echo "$ac_t""$CC_FOR_TARGET" 1>&6 |
---|
[3771cc6e] | 1668 | else |
---|
| 1669 | echo "$ac_t""no" 1>&6 |
---|
| 1670 | fi |
---|
| 1671 | |
---|
[fe2401b2] | 1672 | test -n "$CC_FOR_TARGET" && break |
---|
| 1673 | done |
---|
| 1674 | |
---|
| 1675 | test -z "$CC_FOR_TARGET" \ |
---|
| 1676 | && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
[3771cc6e] | 1677 | |
---|
[fe2401b2] | 1678 | rtems_save_CC=$CC |
---|
| 1679 | rtems_save_CFLAGS=$CFLAGS |
---|
| 1680 | |
---|
| 1681 | CC=$CC_FOR_TARGET |
---|
| 1682 | |
---|
| 1683 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
[7e03d10] | 1684 | echo "configure:1685: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
[3771cc6e] | 1685 | |
---|
| 1686 | ac_ext=c |
---|
| 1687 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 1688 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1689 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
[9ec96478] | 1690 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
[3771cc6e] | 1691 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 1692 | |
---|
[9ec96478] | 1693 | cat > conftest.$ac_ext << EOF |
---|
| 1694 | |
---|
[7e03d10] | 1695 | #line 1696 "configure" |
---|
[3771cc6e] | 1696 | #include "confdefs.h" |
---|
[9ec96478] | 1697 | |
---|
[01518357] | 1698 | main(){return(0);} |
---|
[3771cc6e] | 1699 | EOF |
---|
[7e03d10] | 1700 | if { (eval echo configure:1701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
[fe2401b2] | 1701 | ac_cv_prog_cc_works=yes |
---|
[3771cc6e] | 1702 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
| 1703 | if (./conftest; exit) 2>/dev/null; then |
---|
[fe2401b2] | 1704 | ac_cv_prog_cc_cross=no |
---|
[3771cc6e] | 1705 | else |
---|
[fe2401b2] | 1706 | ac_cv_prog_cc_cross=yes |
---|
[3771cc6e] | 1707 | fi |
---|
| 1708 | else |
---|
| 1709 | echo "configure: failed program was:" >&5 |
---|
| 1710 | cat conftest.$ac_ext >&5 |
---|
[fe2401b2] | 1711 | ac_cv_prog_cc_works=no |
---|
[3771cc6e] | 1712 | fi |
---|
| 1713 | rm -fr conftest* |
---|
[9ec96478] | 1714 | ac_ext=c |
---|
| 1715 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 1716 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1717 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 1718 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 1719 | cross_compiling=$ac_cv_prog_cc_cross |
---|
[3771cc6e] | 1720 | |
---|
[fe2401b2] | 1721 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
| 1722 | if test $ac_cv_prog_cc_works = no; then |
---|
| 1723 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
[3771cc6e] | 1724 | fi |
---|
[fe2401b2] | 1725 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
[7e03d10] | 1726 | echo "configure:1727: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
[fe2401b2] | 1727 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
| 1728 | cross_compiling=$ac_cv_prog_cc_cross |
---|
[3771cc6e] | 1729 | |
---|
| 1730 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
[7e03d10] | 1731 | echo "configure:1732: checking whether we are using GNU C" >&5 |
---|
[3771cc6e] | 1732 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
| 1733 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1734 | else |
---|
| 1735 | cat > conftest.c <<EOF |
---|
| 1736 | #ifdef __GNUC__ |
---|
| 1737 | yes; |
---|
| 1738 | #endif |
---|
| 1739 | EOF |
---|
[7e03d10] | 1740 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
[3771cc6e] | 1741 | ac_cv_prog_gcc=yes |
---|
| 1742 | else |
---|
| 1743 | ac_cv_prog_gcc=no |
---|
| 1744 | fi |
---|
| 1745 | fi |
---|
| 1746 | |
---|
| 1747 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
| 1748 | |
---|
| 1749 | if test $ac_cv_prog_gcc = yes; then |
---|
| 1750 | GCC=yes |
---|
| 1751 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
| 1752 | ac_save_CFLAGS="$CFLAGS" |
---|
| 1753 | CFLAGS= |
---|
| 1754 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
[7e03d10] | 1755 | echo "configure:1756: checking whether ${CC-cc} accepts -g" >&5 |
---|
[3771cc6e] | 1756 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
| 1757 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1758 | else |
---|
| 1759 | echo 'void f(){}' > conftest.c |
---|
| 1760 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
| 1761 | ac_cv_prog_cc_g=yes |
---|
| 1762 | else |
---|
| 1763 | ac_cv_prog_cc_g=no |
---|
| 1764 | fi |
---|
| 1765 | rm -f conftest* |
---|
| 1766 | |
---|
| 1767 | fi |
---|
| 1768 | |
---|
| 1769 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
| 1770 | if test "$ac_test_CFLAGS" = set; then |
---|
| 1771 | CFLAGS="$ac_save_CFLAGS" |
---|
| 1772 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 1773 | CFLAGS="-g -O2" |
---|
| 1774 | else |
---|
| 1775 | CFLAGS="-O2" |
---|
| 1776 | fi |
---|
| 1777 | else |
---|
| 1778 | GCC= |
---|
| 1779 | test "${CFLAGS+set}" = set || CFLAGS="-g" |
---|
| 1780 | fi |
---|
| 1781 | |
---|
| 1782 | rtems_cv_prog_gcc=$ac_cv_prog_gcc |
---|
| 1783 | rtems_cv_prog_cc_g=$ac_cv_prog_cc_g |
---|
[fe2401b2] | 1784 | rtems_cv_prog_cc_works=$ac_cv_prog_cc_works |
---|
| 1785 | rtems_cv_prog_cc_cross=$ac_cv_prog_cc_cross |
---|
| 1786 | |
---|
| 1787 | CC=$rtems_save_CC |
---|
| 1788 | CFLAGS=$rtems_save_CFLAGS |
---|
[3771cc6e] | 1789 | |
---|
| 1790 | unset ac_cv_prog_gcc |
---|
| 1791 | unset ac_cv_prog_cc_g |
---|
[fe2401b2] | 1792 | unset ac_cv_prog_cc_works |
---|
| 1793 | unset ac_cv_prog_cc_cross |
---|
[3771cc6e] | 1794 | |
---|
| 1795 | |
---|
| 1796 | echo $ac_n "checking whether $CC_FOR_TARGET accepts -specs""... $ac_c" 1>&6 |
---|
[7e03d10] | 1797 | echo "configure:1798: checking whether $CC_FOR_TARGET accepts -specs" >&5 |
---|
[3771cc6e] | 1798 | if eval "test \"`echo '$''{'rtems_cv_gcc_specs'+set}'`\" = set"; then |
---|
| 1799 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1800 | else |
---|
[98100d2] | 1801 | |
---|
| 1802 | rtems_cv_gcc_specs=no |
---|
| 1803 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
[3771cc6e] | 1804 | touch confspec |
---|
[98100d2] | 1805 | echo 'void f(){}' >conftest.c |
---|
| 1806 | if test -z "`${CC_FOR_TARGET} -specs confspec -c conftest.c 2>&1`";then |
---|
| 1807 | rtems_cv_gcc_specs=yes |
---|
| 1808 | fi |
---|
[3771cc6e] | 1809 | fi |
---|
| 1810 | rm -f confspec conftest* |
---|
| 1811 | |
---|
| 1812 | fi |
---|
| 1813 | |
---|
| 1814 | echo "$ac_t""$rtems_cv_gcc_specs" 1>&6 |
---|
[a7a08713] | 1815 | |
---|
[3771cc6e] | 1816 | |
---|
| 1817 | echo $ac_n "checking whether $CC_FOR_TARGET accepts --pipe""... $ac_c" 1>&6 |
---|
[7e03d10] | 1818 | echo "configure:1819: checking whether $CC_FOR_TARGET accepts --pipe" >&5 |
---|
[3771cc6e] | 1819 | if eval "test \"`echo '$''{'rtems_cv_gcc_pipe'+set}'`\" = set"; then |
---|
| 1820 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1821 | else |
---|
| 1822 | |
---|
[98100d2] | 1823 | rtems_cv_gcc_pipe=no |
---|
| 1824 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
[a7a08713] | 1825 | case "$host_os" in |
---|
| 1826 | cygwin32*) |
---|
| 1827 | ;; |
---|
| 1828 | *) |
---|
| 1829 | echo 'void f(){}' >conftest.c |
---|
| 1830 | if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then |
---|
| 1831 | rtems_cv_gcc_pipe=yes |
---|
| 1832 | fi |
---|
| 1833 | rm -f conftest* |
---|
| 1834 | ;; |
---|
| 1835 | esac |
---|
[98100d2] | 1836 | fi |
---|
[3771cc6e] | 1837 | |
---|
| 1838 | fi |
---|
| 1839 | |
---|
| 1840 | echo "$ac_t""$rtems_cv_gcc_pipe" 1>&6 |
---|
| 1841 | |
---|
[a7a08713] | 1842 | |
---|
[0b76723] | 1843 | if test "$RTEMS_USE_GCC272" != "yes" ; then |
---|
| 1844 | if test "$rtems_cv_gcc_specs" = "no"; then |
---|
| 1845 | echo "configure: warning: *** disabling --enable-gcc28" 1>&2 |
---|
| 1846 | RTEMS_USE_GCC272=yes |
---|
| 1847 | fi |
---|
| 1848 | fi |
---|
[fe2401b2] | 1849 | test "$rtems_cv_gcc_pipe" = "yes" && CC_FOR_TARGET="$CC_FOR_TARGET --pipe" |
---|
[0b76723] | 1850 | |
---|
[3771cc6e] | 1851 | if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then |
---|
| 1852 | |
---|
[fe2401b2] | 1853 | |
---|
| 1854 | for ac_prog in "$program_prefix"g++ "$program_prefix"c++ |
---|
[3771cc6e] | 1855 | do |
---|
| 1856 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1857 | set dummy $ac_prog; ac_word=$2 |
---|
| 1858 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[7e03d10] | 1859 | echo "configure:1860: checking for $ac_word" >&5 |
---|
[fe2401b2] | 1860 | if eval "test \"`echo '$''{'ac_cv_path_CXX_FOR_TARGET'+set}'`\" = set"; then |
---|
[3771cc6e] | 1861 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1862 | else |
---|
[fe2401b2] | 1863 | case "$CXX_FOR_TARGET" in |
---|
| 1864 | /*) |
---|
| 1865 | ac_cv_path_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test with a path. |
---|
| 1866 | ;; |
---|
[9ec96478] | 1867 | ?:/*) |
---|
| 1868 | ac_cv_path_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 1869 | ;; |
---|
[fe2401b2] | 1870 | *) |
---|
[9ec96478] | 1871 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1872 | ac_dummy="$PATH" |
---|
| 1873 | for ac_dir in $ac_dummy; do |
---|
[3771cc6e] | 1874 | test -z "$ac_dir" && ac_dir=. |
---|
| 1875 | if test -f $ac_dir/$ac_word; then |
---|
[fe2401b2] | 1876 | ac_cv_path_CXX_FOR_TARGET="$ac_dir/$ac_word" |
---|
[3771cc6e] | 1877 | break |
---|
| 1878 | fi |
---|
| 1879 | done |
---|
| 1880 | IFS="$ac_save_ifs" |
---|
[fe2401b2] | 1881 | ;; |
---|
| 1882 | esac |
---|
[3771cc6e] | 1883 | fi |
---|
[fe2401b2] | 1884 | CXX_FOR_TARGET="$ac_cv_path_CXX_FOR_TARGET" |
---|
| 1885 | if test -n "$CXX_FOR_TARGET"; then |
---|
| 1886 | echo "$ac_t""$CXX_FOR_TARGET" 1>&6 |
---|
[3771cc6e] | 1887 | else |
---|
| 1888 | echo "$ac_t""no" 1>&6 |
---|
| 1889 | fi |
---|
| 1890 | |
---|
[fe2401b2] | 1891 | test -n "$CXX_FOR_TARGET" && break |
---|
[3771cc6e] | 1892 | done |
---|
| 1893 | |
---|
[fe2401b2] | 1894 | test -z "$CXX_FOR_TARGET" \ |
---|
| 1895 | && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; } |
---|
| 1896 | |
---|
| 1897 | rtems_save_CXX=$CXX |
---|
| 1898 | rtems_save_CXXFLAGS=$CXXFLAGS |
---|
[3771cc6e] | 1899 | |
---|
[fe2401b2] | 1900 | CXX=$CXX_FOR_TARGET |
---|
| 1901 | |
---|
| 1902 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
[7e03d10] | 1903 | echo "configure:1904: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
---|
[3771cc6e] | 1904 | |
---|
| 1905 | ac_ext=C |
---|
| 1906 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 1907 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 1908 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
[9ec96478] | 1909 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
[3771cc6e] | 1910 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
| 1911 | |
---|
[9ec96478] | 1912 | cat > conftest.$ac_ext << EOF |
---|
| 1913 | |
---|
[7e03d10] | 1914 | #line 1915 "configure" |
---|
[3771cc6e] | 1915 | #include "confdefs.h" |
---|
[9ec96478] | 1916 | |
---|
| 1917 | int main(){return(0);} |
---|
[3771cc6e] | 1918 | EOF |
---|
[7e03d10] | 1919 | if { (eval echo configure:1920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
[fe2401b2] | 1920 | ac_cv_prog_cxx_works=yes |
---|
[3771cc6e] | 1921 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
| 1922 | if (./conftest; exit) 2>/dev/null; then |
---|
[fe2401b2] | 1923 | ac_cv_prog_cxx_cross=no |
---|
[3771cc6e] | 1924 | else |
---|
[fe2401b2] | 1925 | ac_cv_prog_cxx_cross=yes |
---|
[3771cc6e] | 1926 | fi |
---|
| 1927 | else |
---|
| 1928 | echo "configure: failed program was:" >&5 |
---|
| 1929 | cat conftest.$ac_ext >&5 |
---|
[fe2401b2] | 1930 | ac_cv_prog_cxx_works=no |
---|
[3771cc6e] | 1931 | fi |
---|
| 1932 | rm -fr conftest* |
---|
| 1933 | ac_ext=c |
---|
| 1934 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 1935 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1936 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
[9ec96478] | 1937 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
[3771cc6e] | 1938 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 1939 | |
---|
[fe2401b2] | 1940 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
---|
| 1941 | if test $ac_cv_prog_cxx_works = no; then |
---|
| 1942 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } |
---|
[3771cc6e] | 1943 | fi |
---|
[fe2401b2] | 1944 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
[7e03d10] | 1945 | echo "configure:1946: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
[fe2401b2] | 1946 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
---|
| 1947 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
[3771cc6e] | 1948 | |
---|
| 1949 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
---|
[7e03d10] | 1950 | echo "configure:1951: checking whether we are using GNU C++" >&5 |
---|
[3771cc6e] | 1951 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
---|
| 1952 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1953 | else |
---|
| 1954 | cat > conftest.C <<EOF |
---|
| 1955 | #ifdef __GNUC__ |
---|
| 1956 | yes; |
---|
| 1957 | #endif |
---|
| 1958 | EOF |
---|
[7e03d10] | 1959 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
[3771cc6e] | 1960 | ac_cv_prog_gxx=yes |
---|
| 1961 | else |
---|
| 1962 | ac_cv_prog_gxx=no |
---|
| 1963 | fi |
---|
| 1964 | fi |
---|
| 1965 | |
---|
| 1966 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
---|
| 1967 | |
---|
| 1968 | if test $ac_cv_prog_gxx = yes; then |
---|
| 1969 | GXX=yes |
---|
| 1970 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
---|
| 1971 | ac_save_CXXFLAGS="$CXXFLAGS" |
---|
| 1972 | CXXFLAGS= |
---|
| 1973 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 |
---|
[7e03d10] | 1974 | echo "configure:1975: checking whether ${CXX-g++} accepts -g" >&5 |
---|
[3771cc6e] | 1975 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
---|
| 1976 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1977 | else |
---|
| 1978 | echo 'void f(){}' > conftest.cc |
---|
| 1979 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then |
---|
| 1980 | ac_cv_prog_cxx_g=yes |
---|
| 1981 | else |
---|
| 1982 | ac_cv_prog_cxx_g=no |
---|
| 1983 | fi |
---|
| 1984 | rm -f conftest* |
---|
| 1985 | |
---|
| 1986 | fi |
---|
| 1987 | |
---|
| 1988 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 |
---|
| 1989 | if test "$ac_test_CXXFLAGS" = set; then |
---|
| 1990 | CXXFLAGS="$ac_save_CXXFLAGS" |
---|
| 1991 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
| 1992 | CXXFLAGS="-g -O2" |
---|
| 1993 | else |
---|
| 1994 | CXXFLAGS="-O2" |
---|
| 1995 | fi |
---|
| 1996 | else |
---|
| 1997 | GXX= |
---|
| 1998 | test "${CXXFLAGS+set}" = set || CXXFLAGS="-g" |
---|
| 1999 | fi |
---|
| 2000 | |
---|
[fe2401b2] | 2001 | rtems_cv_prog_gxx=$ac_cv_prog_gxx |
---|
| 2002 | rtems_cv_prog_cxx_g=$ac_cv_prog_cxx_g |
---|
| 2003 | rtems_cv_prog_cxx_works=$ac_cv_prog_cxx_works |
---|
| 2004 | rtems_cv_prog_cxx_cross=$ac_cv_prog_cxx_cross |
---|
| 2005 | |
---|
| 2006 | CXX=$rtems_save_CXX |
---|
| 2007 | CXXFLAGS=$rtems_save_CXXFLAGS |
---|
| 2008 | |
---|
[3771cc6e] | 2009 | unset ac_cv_prog_gxx |
---|
[fe2401b2] | 2010 | unset ac_cv_prog_cc_g |
---|
| 2011 | unset ac_cv_prog_cxx_works |
---|
| 2012 | unset ac_cv_prog_cxx_cross |
---|
[3771cc6e] | 2013 | |
---|
[0b76723] | 2014 | if test "$rtems_cv_prog_cc_cross" != "$rtems_cv_prog_cxx_cross"; then |
---|
| 2015 | { echo "configure: error: *** |
---|
| 2016 | Inconsistency in compiler configuration: |
---|
| 2017 | Target C compiler and Target C++ compiler |
---|
[97e2729d] | 2018 | must both either be cross compilers or native compilers |
---|
[fe2401b2] | 2019 | Hint: If building a posix bsp: LD_LIBRARY_PATH? " 1>&2; exit 1; } |
---|
[0b76723] | 2020 | fi |
---|
[3771cc6e] | 2021 | else |
---|
| 2022 | CXX_FOR_TARGET="no" |
---|
| 2023 | fi |
---|
| 2024 | |
---|
[98100d2] | 2025 | |
---|
| 2026 | |
---|
| 2027 | echo $ac_n "checking target's ar""... $ac_c" 1>&6 |
---|
[7e03d10] | 2028 | echo "configure:2029: checking target's ar" >&5 |
---|
[98100d2] | 2029 | if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then |
---|
| 2030 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2031 | else |
---|
| 2032 | : |
---|
[3771cc6e] | 2033 | fi |
---|
| 2034 | |
---|
[98100d2] | 2035 | echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6 |
---|
| 2036 | |
---|
| 2037 | if test -n "$ac_cv_path_AR_FOR_TARGET"; then |
---|
| 2038 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
---|
| 2039 | else |
---|
| 2040 | if test -z "$AR_FOR_TARGET" ; then |
---|
| 2041 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 2042 | # We are using gcc, ask it about its tool |
---|
| 2043 | # NOTE: Necessary if gcc was configured to use the target's |
---|
| 2044 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
| 2045 | case $host_os in |
---|
| 2046 | *cygwin32*) |
---|
[32067a30] | 2047 | AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar | sed -e 's%\\\\%/%g' ` |
---|
[98100d2] | 2048 | ;; |
---|
| 2049 | *) |
---|
| 2050 | AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar` |
---|
| 2051 | ;; |
---|
| 2052 | esac |
---|
| 2053 | |
---|
| 2054 | fi |
---|
| 2055 | else |
---|
| 2056 | # The user set an environment variable. |
---|
| 2057 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
| 2058 | # will override the environment variable, which isn't what the user |
---|
| 2059 | # intends |
---|
| 2060 | echo $ac_n "checking whether environment variable AR_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
[7e03d10] | 2061 | echo "configure:2062: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5 |
---|
[98100d2] | 2062 | case "$AR_FOR_TARGET" in |
---|
| 2063 | /*) # valid |
---|
| 2064 | echo "$ac_t"""yes"" 1>&6 |
---|
| 2065 | ;; |
---|
| 2066 | *) # invalid for AC_PATH_PROG |
---|
| 2067 | echo "$ac_t"""no"" 1>&6 |
---|
| 2068 | { echo "configure: error: *** |
---|
[07a3253d] | 2069 | Environment variable AR_FOR_TARGET should either |
---|
[98100d2] | 2070 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
| 2071 | ;; |
---|
| 2072 | esac |
---|
| 2073 | fi |
---|
[3771cc6e] | 2074 | |
---|
[98100d2] | 2075 | # Extract the first word of ""$program_prefix"ar", so it can be a program name with args. |
---|
[3771cc6e] | 2076 | set dummy "$program_prefix"ar; ac_word=$2 |
---|
| 2077 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[7e03d10] | 2078 | echo "configure:2079: checking for $ac_word" >&5 |
---|
[3771cc6e] | 2079 | if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then |
---|
| 2080 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2081 | else |
---|
| 2082 | case "$AR_FOR_TARGET" in |
---|
| 2083 | /*) |
---|
| 2084 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
---|
| 2085 | ;; |
---|
[9ec96478] | 2086 | ?:/*) |
---|
| 2087 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 2088 | ;; |
---|
[3771cc6e] | 2089 | *) |
---|
[9ec96478] | 2090 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 2091 | ac_dummy="$PATH" |
---|
| 2092 | for ac_dir in $ac_dummy; do |
---|
[3771cc6e] | 2093 | test -z "$ac_dir" && ac_dir=. |
---|
| 2094 | if test -f $ac_dir/$ac_word; then |
---|
| 2095 | ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word" |
---|
| 2096 | break |
---|
| 2097 | fi |
---|
| 2098 | done |
---|
| 2099 | IFS="$ac_save_ifs" |
---|
| 2100 | test -z "$ac_cv_path_AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET="no" |
---|
| 2101 | ;; |
---|
| 2102 | esac |
---|
| 2103 | fi |
---|
| 2104 | AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET" |
---|
| 2105 | if test -n "$AR_FOR_TARGET"; then |
---|
| 2106 | echo "$ac_t""$AR_FOR_TARGET" 1>&6 |
---|
| 2107 | else |
---|
| 2108 | echo "$ac_t""no" 1>&6 |
---|
| 2109 | fi |
---|
| 2110 | |
---|
[98100d2] | 2111 | fi |
---|
| 2112 | |
---|
| 2113 | |
---|
| 2114 | echo $ac_n "checking target's as""... $ac_c" 1>&6 |
---|
[7e03d10] | 2115 | echo "configure:2116: checking target's as" >&5 |
---|
[98100d2] | 2116 | if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then |
---|
| 2117 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2118 | else |
---|
| 2119 | : |
---|
| 2120 | fi |
---|
| 2121 | |
---|
| 2122 | echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6 |
---|
| 2123 | |
---|
| 2124 | if test -n "$ac_cv_path_AS_FOR_TARGET"; then |
---|
| 2125 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
---|
| 2126 | else |
---|
| 2127 | if test -z "$AS_FOR_TARGET" ; then |
---|
| 2128 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 2129 | # We are using gcc, ask it about its tool |
---|
| 2130 | # NOTE: Necessary if gcc was configured to use the target's |
---|
| 2131 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
| 2132 | case $host_os in |
---|
| 2133 | *cygwin32*) |
---|
[32067a30] | 2134 | AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as | sed -e 's%\\\\%/%g' ` |
---|
[98100d2] | 2135 | ;; |
---|
| 2136 | *) |
---|
| 2137 | AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as` |
---|
| 2138 | ;; |
---|
| 2139 | esac |
---|
| 2140 | |
---|
| 2141 | fi |
---|
| 2142 | else |
---|
| 2143 | # The user set an environment variable. |
---|
| 2144 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
| 2145 | # will override the environment variable, which isn't what the user |
---|
| 2146 | # intends |
---|
| 2147 | echo $ac_n "checking whether environment variable AS_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
[7e03d10] | 2148 | echo "configure:2149: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5 |
---|
[98100d2] | 2149 | case "$AS_FOR_TARGET" in |
---|
| 2150 | /*) # valid |
---|
| 2151 | echo "$ac_t"""yes"" 1>&6 |
---|
| 2152 | ;; |
---|
| 2153 | *) # invalid for AC_PATH_PROG |
---|
| 2154 | echo "$ac_t"""no"" 1>&6 |
---|
| 2155 | { echo "configure: error: *** |
---|
[07a3253d] | 2156 | Environment variable AS_FOR_TARGET should either |
---|
[98100d2] | 2157 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
| 2158 | ;; |
---|
| 2159 | esac |
---|
| 2160 | fi |
---|
| 2161 | |
---|
| 2162 | # Extract the first word of ""$program_prefix"as", so it can be a program name with args. |
---|
[3771cc6e] | 2163 | set dummy "$program_prefix"as; ac_word=$2 |
---|
| 2164 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[7e03d10] | 2165 | echo "configure:2166: checking for $ac_word" >&5 |
---|
[3771cc6e] | 2166 | if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then |
---|
| 2167 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2168 | else |
---|
| 2169 | case "$AS_FOR_TARGET" in |
---|
| 2170 | /*) |
---|
| 2171 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
---|
| 2172 | ;; |
---|
[9ec96478] | 2173 | ?:/*) |
---|
| 2174 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 2175 | ;; |
---|
[3771cc6e] | 2176 | *) |
---|
[9ec96478] | 2177 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 2178 | ac_dummy="$PATH" |
---|
| 2179 | for ac_dir in $ac_dummy; do |
---|
[3771cc6e] | 2180 | test -z "$ac_dir" && ac_dir=. |
---|
| 2181 | if test -f $ac_dir/$ac_word; then |
---|
| 2182 | ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word" |
---|
| 2183 | break |
---|
| 2184 | fi |
---|
| 2185 | done |
---|
| 2186 | IFS="$ac_save_ifs" |
---|
| 2187 | test -z "$ac_cv_path_AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET="no" |
---|
| 2188 | ;; |
---|
| 2189 | esac |
---|
| 2190 | fi |
---|
| 2191 | AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET" |
---|
| 2192 | if test -n "$AS_FOR_TARGET"; then |
---|
| 2193 | echo "$ac_t""$AS_FOR_TARGET" 1>&6 |
---|
| 2194 | else |
---|
| 2195 | echo "$ac_t""no" 1>&6 |
---|
| 2196 | fi |
---|
| 2197 | |
---|
[98100d2] | 2198 | fi |
---|
| 2199 | |
---|
| 2200 | |
---|
| 2201 | echo $ac_n "checking target's ld""... $ac_c" 1>&6 |
---|
[7e03d10] | 2202 | echo "configure:2203: checking target's ld" >&5 |
---|
[98100d2] | 2203 | if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then |
---|
| 2204 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2205 | else |
---|
| 2206 | : |
---|
| 2207 | fi |
---|
| 2208 | |
---|
| 2209 | echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6 |
---|
| 2210 | |
---|
| 2211 | if test -n "$ac_cv_path_LD_FOR_TARGET"; then |
---|
| 2212 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
---|
| 2213 | else |
---|
| 2214 | if test -z "$LD_FOR_TARGET" ; then |
---|
| 2215 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 2216 | # We are using gcc, ask it about its tool |
---|
| 2217 | # NOTE: Necessary if gcc was configured to use the target's |
---|
| 2218 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
| 2219 | case $host_os in |
---|
| 2220 | *cygwin32*) |
---|
[32067a30] | 2221 | LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld | sed -e 's%\\\\%/%g' ` |
---|
[98100d2] | 2222 | ;; |
---|
| 2223 | *) |
---|
| 2224 | LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld` |
---|
| 2225 | ;; |
---|
| 2226 | esac |
---|
| 2227 | |
---|
| 2228 | fi |
---|
| 2229 | else |
---|
| 2230 | # The user set an environment variable. |
---|
| 2231 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
| 2232 | # will override the environment variable, which isn't what the user |
---|
| 2233 | # intends |
---|
| 2234 | echo $ac_n "checking whether environment variable LD_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
[7e03d10] | 2235 | echo "configure:2236: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5 |
---|
[98100d2] | 2236 | case "$LD_FOR_TARGET" in |
---|
| 2237 | /*) # valid |
---|
| 2238 | echo "$ac_t"""yes"" 1>&6 |
---|
| 2239 | ;; |
---|
| 2240 | *) # invalid for AC_PATH_PROG |
---|
| 2241 | echo "$ac_t"""no"" 1>&6 |
---|
| 2242 | { echo "configure: error: *** |
---|
[07a3253d] | 2243 | Environment variable LD_FOR_TARGET should either |
---|
[98100d2] | 2244 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
| 2245 | ;; |
---|
| 2246 | esac |
---|
| 2247 | fi |
---|
| 2248 | |
---|
| 2249 | # Extract the first word of ""$program_prefix"ld", so it can be a program name with args. |
---|
| 2250 | set dummy "$program_prefix"ld; ac_word=$2 |
---|
[a50148a] | 2251 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[7e03d10] | 2252 | echo "configure:2253: checking for $ac_word" >&5 |
---|
[98100d2] | 2253 | if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then |
---|
[a50148a] | 2254 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2255 | else |
---|
[98100d2] | 2256 | case "$LD_FOR_TARGET" in |
---|
[a50148a] | 2257 | /*) |
---|
[98100d2] | 2258 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
---|
[a50148a] | 2259 | ;; |
---|
[9ec96478] | 2260 | ?:/*) |
---|
| 2261 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 2262 | ;; |
---|
[a50148a] | 2263 | *) |
---|
[9ec96478] | 2264 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 2265 | ac_dummy="$PATH" |
---|
| 2266 | for ac_dir in $ac_dummy; do |
---|
[a50148a] | 2267 | test -z "$ac_dir" && ac_dir=. |
---|
| 2268 | if test -f $ac_dir/$ac_word; then |
---|
[98100d2] | 2269 | ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word" |
---|
[a50148a] | 2270 | break |
---|
| 2271 | fi |
---|
| 2272 | done |
---|
| 2273 | IFS="$ac_save_ifs" |
---|
[98100d2] | 2274 | test -z "$ac_cv_path_LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET="no" |
---|
[a50148a] | 2275 | ;; |
---|
| 2276 | esac |
---|
| 2277 | fi |
---|
[98100d2] | 2278 | LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET" |
---|
| 2279 | if test -n "$LD_FOR_TARGET"; then |
---|
| 2280 | echo "$ac_t""$LD_FOR_TARGET" 1>&6 |
---|
[a50148a] | 2281 | else |
---|
| 2282 | echo "$ac_t""no" 1>&6 |
---|
| 2283 | fi |
---|
| 2284 | |
---|
[98100d2] | 2285 | fi |
---|
| 2286 | |
---|
| 2287 | |
---|
| 2288 | echo $ac_n "checking target's nm""... $ac_c" 1>&6 |
---|
[7e03d10] | 2289 | echo "configure:2290: checking target's nm" >&5 |
---|
[98100d2] | 2290 | if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then |
---|
| 2291 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2292 | else |
---|
| 2293 | : |
---|
| 2294 | fi |
---|
| 2295 | |
---|
| 2296 | echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6 |
---|
| 2297 | |
---|
| 2298 | if test -n "$ac_cv_path_NM_FOR_TARGET"; then |
---|
| 2299 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
---|
| 2300 | else |
---|
| 2301 | if test -z "$NM_FOR_TARGET" ; then |
---|
| 2302 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 2303 | # We are using gcc, ask it about its tool |
---|
| 2304 | # NOTE: Necessary if gcc was configured to use the target's |
---|
| 2305 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
| 2306 | case $host_os in |
---|
| 2307 | *cygwin32*) |
---|
[32067a30] | 2308 | NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm | sed -e 's%\\\\%/%g' ` |
---|
[98100d2] | 2309 | ;; |
---|
| 2310 | *) |
---|
| 2311 | NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm` |
---|
| 2312 | ;; |
---|
| 2313 | esac |
---|
| 2314 | |
---|
| 2315 | fi |
---|
| 2316 | else |
---|
| 2317 | # The user set an environment variable. |
---|
| 2318 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
| 2319 | # will override the environment variable, which isn't what the user |
---|
| 2320 | # intends |
---|
| 2321 | echo $ac_n "checking whether environment variable NM_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
[7e03d10] | 2322 | echo "configure:2323: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5 |
---|
[98100d2] | 2323 | case "$NM_FOR_TARGET" in |
---|
| 2324 | /*) # valid |
---|
| 2325 | echo "$ac_t"""yes"" 1>&6 |
---|
| 2326 | ;; |
---|
| 2327 | *) # invalid for AC_PATH_PROG |
---|
| 2328 | echo "$ac_t"""no"" 1>&6 |
---|
| 2329 | { echo "configure: error: *** |
---|
[07a3253d] | 2330 | Environment variable NM_FOR_TARGET should either |
---|
[98100d2] | 2331 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
| 2332 | ;; |
---|
| 2333 | esac |
---|
| 2334 | fi |
---|
| 2335 | |
---|
| 2336 | # Extract the first word of ""$program_prefix"nm", so it can be a program name with args. |
---|
| 2337 | set dummy "$program_prefix"nm; ac_word=$2 |
---|
[a50148a] | 2338 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[7e03d10] | 2339 | echo "configure:2340: checking for $ac_word" >&5 |
---|
[98100d2] | 2340 | if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then |
---|
[a50148a] | 2341 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2342 | else |
---|
[98100d2] | 2343 | case "$NM_FOR_TARGET" in |
---|
[a50148a] | 2344 | /*) |
---|
[98100d2] | 2345 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
---|
[a50148a] | 2346 | ;; |
---|
[9ec96478] | 2347 | ?:/*) |
---|
| 2348 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 2349 | ;; |
---|
[a50148a] | 2350 | *) |
---|
[9ec96478] | 2351 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 2352 | ac_dummy="$PATH" |
---|
| 2353 | for ac_dir in $ac_dummy; do |
---|
[a50148a] | 2354 | test -z "$ac_dir" && ac_dir=. |
---|
| 2355 | if test -f $ac_dir/$ac_word; then |
---|
[98100d2] | 2356 | ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word" |
---|
[a50148a] | 2357 | break |
---|
| 2358 | fi |
---|
| 2359 | done |
---|
| 2360 | IFS="$ac_save_ifs" |
---|
[98100d2] | 2361 | test -z "$ac_cv_path_NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET="no" |
---|
[a50148a] | 2362 | ;; |
---|
| 2363 | esac |
---|
| 2364 | fi |
---|
[98100d2] | 2365 | NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET" |
---|
| 2366 | if test -n "$NM_FOR_TARGET"; then |
---|
| 2367 | echo "$ac_t""$NM_FOR_TARGET" 1>&6 |
---|
[a50148a] | 2368 | else |
---|
| 2369 | echo "$ac_t""no" 1>&6 |
---|
| 2370 | fi |
---|
| 2371 | |
---|
[98100d2] | 2372 | fi |
---|
| 2373 | |
---|
| 2374 | |
---|
| 2375 | |
---|
| 2376 | echo $ac_n "checking target's ranlib""... $ac_c" 1>&6 |
---|
[7e03d10] | 2377 | echo "configure:2378: checking target's ranlib" >&5 |
---|
[98100d2] | 2378 | if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then |
---|
| 2379 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2380 | else |
---|
| 2381 | : |
---|
| 2382 | fi |
---|
| 2383 | |
---|
| 2384 | echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6 |
---|
[a50148a] | 2385 | |
---|
[98100d2] | 2386 | if test -n "$ac_cv_path_RANLIB_FOR_TARGET"; then |
---|
| 2387 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
---|
| 2388 | else |
---|
| 2389 | if test -z "$RANLIB_FOR_TARGET" ; then |
---|
| 2390 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 2391 | # We are using gcc, ask it about its tool |
---|
| 2392 | # NOTE: Necessary if gcc was configured to use the target's |
---|
| 2393 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
| 2394 | case $host_os in |
---|
| 2395 | *cygwin32*) |
---|
[32067a30] | 2396 | RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib | sed -e 's%\\\\%/%g' ` |
---|
[98100d2] | 2397 | ;; |
---|
| 2398 | *) |
---|
| 2399 | RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib` |
---|
| 2400 | ;; |
---|
| 2401 | esac |
---|
| 2402 | |
---|
| 2403 | fi |
---|
| 2404 | else |
---|
| 2405 | # The user set an environment variable. |
---|
| 2406 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
| 2407 | # will override the environment variable, which isn't what the user |
---|
| 2408 | # intends |
---|
| 2409 | echo $ac_n "checking whether environment variable RANLIB_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
[7e03d10] | 2410 | echo "configure:2411: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5 |
---|
[98100d2] | 2411 | case "$RANLIB_FOR_TARGET" in |
---|
| 2412 | /*) # valid |
---|
| 2413 | echo "$ac_t"""yes"" 1>&6 |
---|
| 2414 | ;; |
---|
| 2415 | *) # invalid for AC_PATH_PROG |
---|
| 2416 | echo "$ac_t"""no"" 1>&6 |
---|
| 2417 | { echo "configure: error: *** |
---|
[07a3253d] | 2418 | Environment variable RANLIB_FOR_TARGET should either |
---|
[98100d2] | 2419 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
| 2420 | ;; |
---|
| 2421 | esac |
---|
| 2422 | fi |
---|
| 2423 | |
---|
| 2424 | # Extract the first word of ""$program_prefix"ranlib", so it can be a program name with args. |
---|
[3771cc6e] | 2425 | set dummy "$program_prefix"ranlib; ac_word=$2 |
---|
[a50148a] | 2426 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[7e03d10] | 2427 | echo "configure:2428: checking for $ac_word" >&5 |
---|
[3771cc6e] | 2428 | if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then |
---|
[a50148a] | 2429 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2430 | else |
---|
[3771cc6e] | 2431 | case "$RANLIB_FOR_TARGET" in |
---|
[a50148a] | 2432 | /*) |
---|
[3771cc6e] | 2433 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
---|
[a50148a] | 2434 | ;; |
---|
[9ec96478] | 2435 | ?:/*) |
---|
| 2436 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 2437 | ;; |
---|
[a50148a] | 2438 | *) |
---|
[9ec96478] | 2439 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 2440 | ac_dummy="$PATH" |
---|
| 2441 | for ac_dir in $ac_dummy; do |
---|
[a50148a] | 2442 | test -z "$ac_dir" && ac_dir=. |
---|
| 2443 | if test -f $ac_dir/$ac_word; then |
---|
[3771cc6e] | 2444 | ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word" |
---|
[a50148a] | 2445 | break |
---|
| 2446 | fi |
---|
| 2447 | done |
---|
| 2448 | IFS="$ac_save_ifs" |
---|
[3771cc6e] | 2449 | test -z "$ac_cv_path_RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET="no" |
---|
[a50148a] | 2450 | ;; |
---|
| 2451 | esac |
---|
| 2452 | fi |
---|
[3771cc6e] | 2453 | RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET" |
---|
| 2454 | if test -n "$RANLIB_FOR_TARGET"; then |
---|
| 2455 | echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6 |
---|
[a50148a] | 2456 | else |
---|
| 2457 | echo "$ac_t""no" 1>&6 |
---|
| 2458 | fi |
---|
| 2459 | |
---|
[98100d2] | 2460 | fi |
---|
| 2461 | |
---|
| 2462 | if test "$RANLIB_FOR_TARGET" = "no"; then |
---|
| 2463 | # ranlib wasn't found; check if ar -s is available |
---|
| 2464 | |
---|
| 2465 | echo $ac_n "checking whether $AR_FOR_TARGET -s works""... $ac_c" 1>&6 |
---|
[7e03d10] | 2466 | echo "configure:2467: checking whether $AR_FOR_TARGET -s works" >&5 |
---|
[98100d2] | 2467 | if eval "test \"`echo '$''{'rtems_cv_AR_FOR_TARGET_S'+set}'`\" = set"; then |
---|
| 2468 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2469 | else |
---|
| 2470 | |
---|
| 2471 | cat > conftest.$ac_ext <<EOF |
---|
| 2472 | int foo( int b ) |
---|
| 2473 | { return b; } |
---|
| 2474 | EOF |
---|
[7e03d10] | 2475 | if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:2476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \ |
---|
| 2476 | && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:2477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \ |
---|
[98100d2] | 2477 | && test -s conftest.a ; \ |
---|
| 2478 | then |
---|
| 2479 | rtems_cv_AR_FOR_TARGET_S="yes" |
---|
| 2480 | else |
---|
| 2481 | rtems_cv_AR_FOR_TARGET_S="no" |
---|
| 2482 | fi |
---|
| 2483 | rm -f conftest* |
---|
| 2484 | |
---|
| 2485 | fi |
---|
| 2486 | |
---|
| 2487 | echo "$ac_t""$rtems_cv_AR_FOR_TARGET_S" 1>&6 |
---|
| 2488 | |
---|
| 2489 | if test $rtems_cv_AR_FOR_TARGET_S = "yes" ; then |
---|
| 2490 | ac_cv_path_RANLIB_FOR_TARGET="$AR_FOR_TARGET -s" |
---|
| 2491 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
---|
| 2492 | else |
---|
| 2493 | { echo "configure: error: *** |
---|
| 2494 | Can't figure out how to build a library index |
---|
[07a3253d] | 2495 | Neither ranlib nor ar -s seem to be available " 1>&2; exit 1; } |
---|
[98100d2] | 2496 | fi |
---|
| 2497 | fi |
---|
| 2498 | |
---|
| 2499 | |
---|
| 2500 | echo $ac_n "checking target's objcopy""... $ac_c" 1>&6 |
---|
[7e03d10] | 2501 | echo "configure:2502: checking target's objcopy" >&5 |
---|
[98100d2] | 2502 | if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then |
---|
| 2503 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2504 | else |
---|
| 2505 | : |
---|
| 2506 | fi |
---|
| 2507 | |
---|
| 2508 | echo "$ac_t""$ac_cv_path_OBJCOPY_FOR_TARGET" 1>&6 |
---|
| 2509 | |
---|
| 2510 | if test -n "$ac_cv_path_OBJCOPY_FOR_TARGET"; then |
---|
| 2511 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET |
---|
| 2512 | else |
---|
| 2513 | if test -z "$OBJCOPY_FOR_TARGET" ; then |
---|
| 2514 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 2515 | # We are using gcc, ask it about its tool |
---|
| 2516 | # NOTE: Necessary if gcc was configured to use the target's |
---|
| 2517 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
| 2518 | case $host_os in |
---|
| 2519 | *cygwin32*) |
---|
[32067a30] | 2520 | OBJCOPY_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=objcopy | sed -e 's%\\\\%/%g' ` |
---|
[98100d2] | 2521 | ;; |
---|
| 2522 | *) |
---|
| 2523 | OBJCOPY_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=objcopy` |
---|
| 2524 | ;; |
---|
| 2525 | esac |
---|
| 2526 | |
---|
| 2527 | fi |
---|
| 2528 | else |
---|
| 2529 | # The user set an environment variable. |
---|
| 2530 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
| 2531 | # will override the environment variable, which isn't what the user |
---|
| 2532 | # intends |
---|
| 2533 | echo $ac_n "checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
[7e03d10] | 2534 | echo "configure:2535: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5 |
---|
[98100d2] | 2535 | case "$OBJCOPY_FOR_TARGET" in |
---|
| 2536 | /*) # valid |
---|
| 2537 | echo "$ac_t"""yes"" 1>&6 |
---|
| 2538 | ;; |
---|
| 2539 | *) # invalid for AC_PATH_PROG |
---|
| 2540 | echo "$ac_t"""no"" 1>&6 |
---|
| 2541 | { echo "configure: error: *** |
---|
[07a3253d] | 2542 | Environment variable OBJCOPY_FOR_TARGET should either |
---|
[98100d2] | 2543 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
| 2544 | ;; |
---|
| 2545 | esac |
---|
| 2546 | fi |
---|
[3771cc6e] | 2547 | |
---|
[98100d2] | 2548 | # Extract the first word of ""$program_prefix"objcopy", so it can be a program name with args. |
---|
[3771cc6e] | 2549 | set dummy "$program_prefix"objcopy; ac_word=$2 |
---|
[a50148a] | 2550 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[7e03d10] | 2551 | echo "configure:2552: checking for $ac_word" >&5 |
---|
[3771cc6e] | 2552 | if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then |
---|
[a50148a] | 2553 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2554 | else |
---|
[3771cc6e] | 2555 | case "$OBJCOPY_FOR_TARGET" in |
---|
[a50148a] | 2556 | /*) |
---|
[3771cc6e] | 2557 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. |
---|
[a50148a] | 2558 | ;; |
---|
[9ec96478] | 2559 | ?:/*) |
---|
| 2560 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 2561 | ;; |
---|
[a50148a] | 2562 | *) |
---|
[9ec96478] | 2563 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 2564 | ac_dummy="$PATH" |
---|
| 2565 | for ac_dir in $ac_dummy; do |
---|
[a50148a] | 2566 | test -z "$ac_dir" && ac_dir=. |
---|
| 2567 | if test -f $ac_dir/$ac_word; then |
---|
[3771cc6e] | 2568 | ac_cv_path_OBJCOPY_FOR_TARGET="$ac_dir/$ac_word" |
---|
[a50148a] | 2569 | break |
---|
| 2570 | fi |
---|
| 2571 | done |
---|
| 2572 | IFS="$ac_save_ifs" |
---|
[3771cc6e] | 2573 | test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET="no" |
---|
[a50148a] | 2574 | ;; |
---|
| 2575 | esac |
---|
| 2576 | fi |
---|
[3771cc6e] | 2577 | OBJCOPY_FOR_TARGET="$ac_cv_path_OBJCOPY_FOR_TARGET" |
---|
| 2578 | if test -n "$OBJCOPY_FOR_TARGET"; then |
---|
| 2579 | echo "$ac_t""$OBJCOPY_FOR_TARGET" 1>&6 |
---|
[a50148a] | 2580 | else |
---|
| 2581 | echo "$ac_t""no" 1>&6 |
---|
| 2582 | fi |
---|
| 2583 | |
---|
[98100d2] | 2584 | fi |
---|
| 2585 | |
---|
| 2586 | |
---|
| 2587 | echo $ac_n "checking target's size""... $ac_c" 1>&6 |
---|
[7e03d10] | 2588 | echo "configure:2589: checking target's size" >&5 |
---|
[98100d2] | 2589 | if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then |
---|
| 2590 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2591 | else |
---|
| 2592 | : |
---|
| 2593 | fi |
---|
| 2594 | |
---|
| 2595 | echo "$ac_t""$ac_cv_path_SIZE_FOR_TARGET" 1>&6 |
---|
| 2596 | |
---|
| 2597 | if test -n "$ac_cv_path_SIZE_FOR_TARGET"; then |
---|
| 2598 | SIZE_FOR_TARGET=$ac_cv_path_SIZE_FOR_TARGET |
---|
| 2599 | else |
---|
| 2600 | if test -z "$SIZE_FOR_TARGET" ; then |
---|
| 2601 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 2602 | # We are using gcc, ask it about its tool |
---|
| 2603 | # NOTE: Necessary if gcc was configured to use the target's |
---|
| 2604 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
| 2605 | case $host_os in |
---|
| 2606 | *cygwin32*) |
---|
[32067a30] | 2607 | SIZE_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=size | sed -e 's%\\\\%/%g' ` |
---|
[98100d2] | 2608 | ;; |
---|
| 2609 | *) |
---|
| 2610 | SIZE_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=size` |
---|
| 2611 | ;; |
---|
| 2612 | esac |
---|
| 2613 | |
---|
| 2614 | fi |
---|
| 2615 | else |
---|
| 2616 | # The user set an environment variable. |
---|
| 2617 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
| 2618 | # will override the environment variable, which isn't what the user |
---|
| 2619 | # intends |
---|
| 2620 | echo $ac_n "checking whether environment variable SIZE_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
[7e03d10] | 2621 | echo "configure:2622: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5 |
---|
[98100d2] | 2622 | case "$SIZE_FOR_TARGET" in |
---|
| 2623 | /*) # valid |
---|
| 2624 | echo "$ac_t"""yes"" 1>&6 |
---|
| 2625 | ;; |
---|
| 2626 | *) # invalid for AC_PATH_PROG |
---|
| 2627 | echo "$ac_t"""no"" 1>&6 |
---|
| 2628 | { echo "configure: error: *** |
---|
[07a3253d] | 2629 | Environment variable SIZE_FOR_TARGET should either |
---|
[98100d2] | 2630 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
| 2631 | ;; |
---|
| 2632 | esac |
---|
| 2633 | fi |
---|
| 2634 | |
---|
| 2635 | # Extract the first word of ""$program_prefix"size", so it can be a program name with args. |
---|
[3771cc6e] | 2636 | set dummy "$program_prefix"size; ac_word=$2 |
---|
[a50148a] | 2637 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[7e03d10] | 2638 | echo "configure:2639: checking for $ac_word" >&5 |
---|
[3771cc6e] | 2639 | if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then |
---|
[a50148a] | 2640 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2641 | else |
---|
[3771cc6e] | 2642 | case "$SIZE_FOR_TARGET" in |
---|
[a50148a] | 2643 | /*) |
---|
[3771cc6e] | 2644 | ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a path. |
---|
[a50148a] | 2645 | ;; |
---|
[9ec96478] | 2646 | ?:/*) |
---|
| 2647 | ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 2648 | ;; |
---|
[a50148a] | 2649 | *) |
---|
[9ec96478] | 2650 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 2651 | ac_dummy="$PATH" |
---|
| 2652 | for ac_dir in $ac_dummy; do |
---|
[a50148a] | 2653 | test -z "$ac_dir" && ac_dir=. |
---|
| 2654 | if test -f $ac_dir/$ac_word; then |
---|
[3771cc6e] | 2655 | ac_cv_path_SIZE_FOR_TARGET="$ac_dir/$ac_word" |
---|
[a50148a] | 2656 | break |
---|
| 2657 | fi |
---|
| 2658 | done |
---|
| 2659 | IFS="$ac_save_ifs" |
---|
[3771cc6e] | 2660 | test -z "$ac_cv_path_SIZE_FOR_TARGET" && ac_cv_path_SIZE_FOR_TARGET="no" |
---|
[a50148a] | 2661 | ;; |
---|
| 2662 | esac |
---|
| 2663 | fi |
---|
[3771cc6e] | 2664 | SIZE_FOR_TARGET="$ac_cv_path_SIZE_FOR_TARGET" |
---|
| 2665 | if test -n "$SIZE_FOR_TARGET"; then |
---|
| 2666 | echo "$ac_t""$SIZE_FOR_TARGET" 1>&6 |
---|
[a50148a] | 2667 | else |
---|
| 2668 | echo "$ac_t""no" 1>&6 |
---|
| 2669 | fi |
---|
| 2670 | |
---|
[98100d2] | 2671 | fi |
---|
| 2672 | |
---|
[692b9f7] | 2673 | |
---|
| 2674 | echo $ac_n "checking target's strip""... $ac_c" 1>&6 |
---|
[7e03d10] | 2675 | echo "configure:2676: checking target's strip" >&5 |
---|
[692b9f7] | 2676 | if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then |
---|
| 2677 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2678 | else |
---|
| 2679 | : |
---|
| 2680 | fi |
---|
| 2681 | |
---|
| 2682 | echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6 |
---|
| 2683 | |
---|
| 2684 | if test -n "$ac_cv_path_STRIP_FOR_TARGET"; then |
---|
| 2685 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
---|
| 2686 | else |
---|
| 2687 | if test -z "$STRIP_FOR_TARGET" ; then |
---|
| 2688 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 2689 | # We are using gcc, ask it about its tool |
---|
| 2690 | # NOTE: Necessary if gcc was configured to use the target's |
---|
| 2691 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
| 2692 | case $host_os in |
---|
| 2693 | *cygwin32*) |
---|
| 2694 | STRIP_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=strip | sed -e 's%\\\\%/%g' ` |
---|
| 2695 | ;; |
---|
| 2696 | *) |
---|
| 2697 | STRIP_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=strip` |
---|
| 2698 | ;; |
---|
| 2699 | esac |
---|
| 2700 | |
---|
| 2701 | fi |
---|
| 2702 | else |
---|
| 2703 | # The user set an environment variable. |
---|
| 2704 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
| 2705 | # will override the environment variable, which isn't what the user |
---|
| 2706 | # intends |
---|
| 2707 | echo $ac_n "checking whether environment variable STRIP_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
[7e03d10] | 2708 | echo "configure:2709: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5 |
---|
[692b9f7] | 2709 | case "$STRIP_FOR_TARGET" in |
---|
| 2710 | /*) # valid |
---|
| 2711 | echo "$ac_t"""yes"" 1>&6 |
---|
| 2712 | ;; |
---|
| 2713 | *) # invalid for AC_PATH_PROG |
---|
| 2714 | echo "$ac_t"""no"" 1>&6 |
---|
| 2715 | { echo "configure: error: *** |
---|
[07a3253d] | 2716 | Environment variable STRIP_FOR_TARGET should either |
---|
[692b9f7] | 2717 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
| 2718 | ;; |
---|
| 2719 | esac |
---|
| 2720 | fi |
---|
| 2721 | |
---|
| 2722 | # Extract the first word of ""$program_prefix"strip", so it can be a program name with args. |
---|
| 2723 | set dummy "$program_prefix"strip; ac_word=$2 |
---|
| 2724 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[7e03d10] | 2725 | echo "configure:2726: checking for $ac_word" >&5 |
---|
[692b9f7] | 2726 | if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then |
---|
| 2727 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2728 | else |
---|
| 2729 | case "$STRIP_FOR_TARGET" in |
---|
| 2730 | /*) |
---|
| 2731 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
---|
| 2732 | ;; |
---|
[9ec96478] | 2733 | ?:/*) |
---|
| 2734 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 2735 | ;; |
---|
[692b9f7] | 2736 | *) |
---|
[9ec96478] | 2737 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 2738 | ac_dummy="$PATH" |
---|
| 2739 | for ac_dir in $ac_dummy; do |
---|
[692b9f7] | 2740 | test -z "$ac_dir" && ac_dir=. |
---|
| 2741 | if test -f $ac_dir/$ac_word; then |
---|
| 2742 | ac_cv_path_STRIP_FOR_TARGET="$ac_dir/$ac_word" |
---|
| 2743 | break |
---|
| 2744 | fi |
---|
| 2745 | done |
---|
| 2746 | IFS="$ac_save_ifs" |
---|
| 2747 | test -z "$ac_cv_path_STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET="no" |
---|
| 2748 | ;; |
---|
| 2749 | esac |
---|
| 2750 | fi |
---|
| 2751 | STRIP_FOR_TARGET="$ac_cv_path_STRIP_FOR_TARGET" |
---|
| 2752 | if test -n "$STRIP_FOR_TARGET"; then |
---|
| 2753 | echo "$ac_t""$STRIP_FOR_TARGET" 1>&6 |
---|
| 2754 | else |
---|
| 2755 | echo "$ac_t""no" 1>&6 |
---|
| 2756 | fi |
---|
| 2757 | |
---|
| 2758 | fi |
---|
| 2759 | |
---|
[a50148a] | 2760 | |
---|
| 2761 | |
---|
[7e03d10] | 2762 | if test "${target_cpu}" = "i386"; then |
---|
[2c3840b] | 2763 | echo $ac_n "checking for 16 bit mode assembler support""... $ac_c" 1>&6 |
---|
[7e03d10] | 2764 | echo "configure:2765: checking for 16 bit mode assembler support" >&5 |
---|
[2c3840b] | 2765 | if eval "test \"`echo '$''{'rtems_cv_prog_gas_code16'+set}'`\" = set"; then |
---|
| 2766 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2767 | else |
---|
| 2768 | cat > conftest.s << EOF |
---|
| 2769 | .code16 |
---|
[09213ec3] | 2770 | data32 |
---|
| 2771 | addr32 |
---|
| 2772 | lgdt 0 |
---|
[2c3840b] | 2773 | EOF |
---|
[7e03d10] | 2774 | if { ac_try='$AS_FOR_TARGET -o conftest.o conftest.s'; { (eval echo configure:2775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
---|
[2c3840b] | 2775 | rtems_cv_prog_gas_code16=yes |
---|
| 2776 | else |
---|
| 2777 | rtems_cv_prog_gas_code16=no |
---|
| 2778 | fi |
---|
| 2779 | fi |
---|
| 2780 | |
---|
| 2781 | echo "$ac_t""$rtems_cv_prog_gas_code16" 1>&6 |
---|
| 2782 | RTEMS_GAS_CODE16="$rtems_cv_prog_gas_code16" |
---|
| 2783 | fi |
---|
[7e03d10] | 2784 | |
---|
[2c3840b] | 2785 | |
---|
| 2786 | |
---|
[3771cc6e] | 2787 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 2788 | set dummy gcc; ac_word=$2 |
---|
| 2789 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[7e03d10] | 2790 | echo "configure:2791: checking for $ac_word" >&5 |
---|
[3771cc6e] | 2791 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
| 2792 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2793 | else |
---|
| 2794 | if test -n "$CC"; then |
---|
| 2795 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2796 | else |
---|
[9ec96478] | 2797 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 2798 | ac_dummy="$PATH" |
---|
| 2799 | for ac_dir in $ac_dummy; do |
---|
[3771cc6e] | 2800 | test -z "$ac_dir" && ac_dir=. |
---|
| 2801 | if test -f $ac_dir/$ac_word; then |
---|
| 2802 | ac_cv_prog_CC="gcc" |
---|
| 2803 | break |
---|
| 2804 | fi |
---|
| 2805 | done |
---|
| 2806 | IFS="$ac_save_ifs" |
---|
| 2807 | fi |
---|
| 2808 | fi |
---|
| 2809 | CC="$ac_cv_prog_CC" |
---|
| 2810 | if test -n "$CC"; then |
---|
| 2811 | echo "$ac_t""$CC" 1>&6 |
---|
| 2812 | else |
---|
| 2813 | echo "$ac_t""no" 1>&6 |
---|
[a50148a] | 2814 | fi |
---|
| 2815 | |
---|
[3771cc6e] | 2816 | if test -z "$CC"; then |
---|
| 2817 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2818 | set dummy cc; ac_word=$2 |
---|
| 2819 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[7e03d10] | 2820 | echo "configure:2821: checking for $ac_word" >&5 |
---|
[3771cc6e] | 2821 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
| 2822 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2823 | else |
---|
| 2824 | if test -n "$CC"; then |
---|
| 2825 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2826 | else |
---|
[9ec96478] | 2827 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
[3771cc6e] | 2828 | ac_prog_rejected=no |
---|
[9ec96478] | 2829 | ac_dummy="$PATH" |
---|
| 2830 | for ac_dir in $ac_dummy; do |
---|
[3771cc6e] | 2831 | test -z "$ac_dir" && ac_dir=. |
---|
| 2832 | if test -f $ac_dir/$ac_word; then |
---|
| 2833 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
---|
| 2834 | ac_prog_rejected=yes |
---|
| 2835 | continue |
---|
| 2836 | fi |
---|
| 2837 | ac_cv_prog_CC="cc" |
---|
| 2838 | break |
---|
| 2839 | fi |
---|
| 2840 | done |
---|
| 2841 | IFS="$ac_save_ifs" |
---|
| 2842 | if test $ac_prog_rejected = yes; then |
---|
| 2843 | # We found a bogon in the path, so make sure we never use it. |
---|
| 2844 | set dummy $ac_cv_prog_CC |
---|
| 2845 | shift |
---|
| 2846 | if test $# -gt 0; then |
---|
| 2847 | # We chose a different compiler from the bogus one. |
---|
| 2848 | # However, it has the same basename, so the bogon will be chosen |
---|
| 2849 | # first if we set CC to just the basename; use the full file name. |
---|
| 2850 | shift |
---|
| 2851 | set dummy "$ac_dir/$ac_word" "$@" |
---|
| 2852 | shift |
---|
| 2853 | ac_cv_prog_CC="$@" |
---|
| 2854 | fi |
---|
| 2855 | fi |
---|
| 2856 | fi |
---|
| 2857 | fi |
---|
| 2858 | CC="$ac_cv_prog_CC" |
---|
| 2859 | if test -n "$CC"; then |
---|
| 2860 | echo "$ac_t""$CC" 1>&6 |
---|
| 2861 | else |
---|
| 2862 | echo "$ac_t""no" 1>&6 |
---|
| 2863 | fi |
---|
[a50148a] | 2864 | |
---|
[9ec96478] | 2865 | if test -z "$CC"; then |
---|
| 2866 | case "`uname -s`" in |
---|
| 2867 | *win32* | *WIN32*) |
---|
| 2868 | # Extract the first word of "cl", so it can be a program name with args. |
---|
| 2869 | set dummy cl; ac_word=$2 |
---|
| 2870 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[7e03d10] | 2871 | echo "configure:2872: checking for $ac_word" >&5 |
---|
[9ec96478] | 2872 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
| 2873 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2874 | else |
---|
| 2875 | if test -n "$CC"; then |
---|
| 2876 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2877 | else |
---|
| 2878 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 2879 | ac_dummy="$PATH" |
---|
| 2880 | for ac_dir in $ac_dummy; do |
---|
| 2881 | test -z "$ac_dir" && ac_dir=. |
---|
| 2882 | if test -f $ac_dir/$ac_word; then |
---|
| 2883 | ac_cv_prog_CC="cl" |
---|
| 2884 | break |
---|
| 2885 | fi |
---|
| 2886 | done |
---|
| 2887 | IFS="$ac_save_ifs" |
---|
| 2888 | fi |
---|
| 2889 | fi |
---|
| 2890 | CC="$ac_cv_prog_CC" |
---|
| 2891 | if test -n "$CC"; then |
---|
| 2892 | echo "$ac_t""$CC" 1>&6 |
---|
| 2893 | else |
---|
| 2894 | echo "$ac_t""no" 1>&6 |
---|
| 2895 | fi |
---|
| 2896 | ;; |
---|
| 2897 | esac |
---|
| 2898 | fi |
---|
[3771cc6e] | 2899 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
| 2900 | fi |
---|
[a50148a] | 2901 | |
---|
[3771cc6e] | 2902 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
[7e03d10] | 2903 | echo "configure:2904: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
[1670eede] | 2904 | |
---|
[3771cc6e] | 2905 | ac_ext=c |
---|
| 2906 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 2907 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2908 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
[9ec96478] | 2909 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
[3771cc6e] | 2910 | cross_compiling=$ac_cv_prog_cc_cross |
---|
[872cc62] | 2911 | |
---|
[9ec96478] | 2912 | cat > conftest.$ac_ext << EOF |
---|
| 2913 | |
---|
[7e03d10] | 2914 | #line 2915 "configure" |
---|
[3771cc6e] | 2915 | #include "confdefs.h" |
---|
[9ec96478] | 2916 | |
---|
[3771cc6e] | 2917 | main(){return(0);} |
---|
| 2918 | EOF |
---|
[7e03d10] | 2919 | if { (eval echo configure:2920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
[3771cc6e] | 2920 | ac_cv_prog_cc_works=yes |
---|
| 2921 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
| 2922 | if (./conftest; exit) 2>/dev/null; then |
---|
| 2923 | ac_cv_prog_cc_cross=no |
---|
| 2924 | else |
---|
| 2925 | ac_cv_prog_cc_cross=yes |
---|
| 2926 | fi |
---|
| 2927 | else |
---|
| 2928 | echo "configure: failed program was:" >&5 |
---|
| 2929 | cat conftest.$ac_ext >&5 |
---|
| 2930 | ac_cv_prog_cc_works=no |
---|
| 2931 | fi |
---|
| 2932 | rm -fr conftest* |
---|
[9ec96478] | 2933 | ac_ext=c |
---|
| 2934 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 2935 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2936 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 2937 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 2938 | cross_compiling=$ac_cv_prog_cc_cross |
---|
[744df795] | 2939 | |
---|
[3771cc6e] | 2940 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
| 2941 | if test $ac_cv_prog_cc_works = no; then |
---|
| 2942 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
| 2943 | fi |
---|
| 2944 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
[7e03d10] | 2945 | echo "configure:2946: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
[3771cc6e] | 2946 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
| 2947 | cross_compiling=$ac_cv_prog_cc_cross |
---|
[1670eede] | 2948 | |
---|
[3771cc6e] | 2949 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
[7e03d10] | 2950 | echo "configure:2951: checking whether we are using GNU C" >&5 |
---|
[3771cc6e] | 2951 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
| 2952 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2953 | else |
---|
| 2954 | cat > conftest.c <<EOF |
---|
| 2955 | #ifdef __GNUC__ |
---|
| 2956 | yes; |
---|
| 2957 | #endif |
---|
| 2958 | EOF |
---|
[7e03d10] | 2959 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
[3771cc6e] | 2960 | ac_cv_prog_gcc=yes |
---|
| 2961 | else |
---|
| 2962 | ac_cv_prog_gcc=no |
---|
| 2963 | fi |
---|
| 2964 | fi |
---|
[254b4450] | 2965 | |
---|
[3771cc6e] | 2966 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
[b9ca4ba] | 2967 | |
---|
[3771cc6e] | 2968 | if test $ac_cv_prog_gcc = yes; then |
---|
| 2969 | GCC=yes |
---|
[9ec96478] | 2970 | else |
---|
| 2971 | GCC= |
---|
| 2972 | fi |
---|
| 2973 | |
---|
| 2974 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
| 2975 | ac_save_CFLAGS="$CFLAGS" |
---|
| 2976 | CFLAGS= |
---|
| 2977 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
[7e03d10] | 2978 | echo "configure:2979: checking whether ${CC-cc} accepts -g" >&5 |
---|
[3771cc6e] | 2979 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
| 2980 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2981 | else |
---|
| 2982 | echo 'void f(){}' > conftest.c |
---|
| 2983 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
| 2984 | ac_cv_prog_cc_g=yes |
---|
| 2985 | else |
---|
| 2986 | ac_cv_prog_cc_g=no |
---|
[b9ca4ba] | 2987 | fi |
---|
[3771cc6e] | 2988 | rm -f conftest* |
---|
[b9ca4ba] | 2989 | |
---|
[3771cc6e] | 2990 | fi |
---|
[b9ca4ba] | 2991 | |
---|
[3771cc6e] | 2992 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
[9ec96478] | 2993 | if test "$ac_test_CFLAGS" = set; then |
---|
| 2994 | CFLAGS="$ac_save_CFLAGS" |
---|
| 2995 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 2996 | if test "$GCC" = yes; then |
---|
[3771cc6e] | 2997 | CFLAGS="-g -O2" |
---|
| 2998 | else |
---|
[9ec96478] | 2999 | CFLAGS="-g" |
---|
[3771cc6e] | 3000 | fi |
---|
| 3001 | else |
---|
[9ec96478] | 3002 | if test "$GCC" = yes; then |
---|
| 3003 | CFLAGS="-O2" |
---|
| 3004 | else |
---|
| 3005 | CFLAGS= |
---|
| 3006 | fi |
---|
[3771cc6e] | 3007 | fi |
---|
| 3008 | |
---|
[04c308c] | 3009 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 |
---|
[7e03d10] | 3010 | echo "configure:3011: checking for Cygwin environment" >&5 |
---|
[04c308c] | 3011 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
---|
| 3012 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 3013 | else |
---|
| 3014 | cat > conftest.$ac_ext <<EOF |
---|
[7e03d10] | 3015 | #line 3016 "configure" |
---|
[04c308c] | 3016 | #include "confdefs.h" |
---|
[3771cc6e] | 3017 | |
---|
[04c308c] | 3018 | int main() { |
---|
| 3019 | |
---|
| 3020 | #ifndef __CYGWIN__ |
---|
| 3021 | #define __CYGWIN__ __CYGWIN32__ |
---|
| 3022 | #endif |
---|
| 3023 | return __CYGWIN__; |
---|
| 3024 | ; return 0; } |
---|
| 3025 | EOF |
---|
[7e03d10] | 3026 | if { (eval echo configure:3027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
[04c308c] | 3027 | rm -rf conftest* |
---|
| 3028 | ac_cv_cygwin=yes |
---|
| 3029 | else |
---|
| 3030 | echo "configure: failed program was:" >&5 |
---|
| 3031 | cat conftest.$ac_ext >&5 |
---|
| 3032 | rm -rf conftest* |
---|
| 3033 | ac_cv_cygwin=no |
---|
| 3034 | fi |
---|
| 3035 | rm -f conftest* |
---|
| 3036 | rm -f conftest* |
---|
| 3037 | fi |
---|
| 3038 | |
---|
| 3039 | echo "$ac_t""$ac_cv_cygwin" 1>&6 |
---|
| 3040 | CYGWIN= |
---|
| 3041 | test "$ac_cv_cygwin" = yes && CYGWIN=yes |
---|
| 3042 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 |
---|
[7e03d10] | 3043 | echo "configure:3044: checking for mingw32 environment" >&5 |
---|
[04c308c] | 3044 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
---|
[98100d2] | 3045 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 3046 | else |
---|
| 3047 | cat > conftest.$ac_ext <<EOF |
---|
[7e03d10] | 3048 | #line 3049 "configure" |
---|
[98100d2] | 3049 | #include "confdefs.h" |
---|
| 3050 | |
---|
| 3051 | int main() { |
---|
[04c308c] | 3052 | return __MINGW32__; |
---|
[98100d2] | 3053 | ; return 0; } |
---|
| 3054 | EOF |
---|
[7e03d10] | 3055 | if { (eval echo configure:3056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
[98100d2] | 3056 | rm -rf conftest* |
---|
[04c308c] | 3057 | ac_cv_mingw32=yes |
---|
[98100d2] | 3058 | else |
---|
| 3059 | echo "configure: failed program was:" >&5 |
---|
| 3060 | cat conftest.$ac_ext >&5 |
---|
| 3061 | rm -rf conftest* |
---|
[04c308c] | 3062 | ac_cv_mingw32=no |
---|
[98100d2] | 3063 | fi |
---|
| 3064 | rm -f conftest* |
---|
| 3065 | rm -f conftest* |
---|
| 3066 | fi |
---|
| 3067 | |
---|
[04c308c] | 3068 | echo "$ac_t""$ac_cv_mingw32" 1>&6 |
---|
| 3069 | MINGW32= |
---|
| 3070 | test "$ac_cv_mingw32" = yes && MINGW32=yes |
---|
| 3071 | |
---|
[98100d2] | 3072 | |
---|
| 3073 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 |
---|
[7e03d10] | 3074 | echo "configure:3075: checking for executable suffix" >&5 |
---|
[04c308c] | 3075 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
---|
[98100d2] | 3076 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 3077 | else |
---|
[04c308c] | 3078 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
---|
| 3079 | ac_cv_exeext=.exe |
---|
[98100d2] | 3080 | else |
---|
[04c308c] | 3081 | rm -f conftest* |
---|
| 3082 | echo 'int main () { return 0; }' > conftest.$ac_ext |
---|
| 3083 | ac_cv_exeext= |
---|
[7e03d10] | 3084 | if { (eval echo configure:3085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
[04c308c] | 3085 | for file in conftest.*; do |
---|
| 3086 | case $file in |
---|
| 3087 | *.c | *.o | *.obj) ;; |
---|
| 3088 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
---|
| 3089 | esac |
---|
| 3090 | done |
---|
| 3091 | else |
---|
| 3092 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } |
---|
| 3093 | fi |
---|
| 3094 | rm -f conftest* |
---|
| 3095 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no |
---|
[98100d2] | 3096 | fi |
---|
| 3097 | fi |
---|
[04c308c] | 3098 | |
---|
[98100d2] | 3099 | EXEEXT="" |
---|
[04c308c] | 3100 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} |
---|
| 3101 | echo "$ac_t""${ac_cv_exeext}" 1>&6 |
---|
| 3102 | ac_exeext=$EXEEXT |
---|
[98100d2] | 3103 | |
---|
| 3104 | |
---|
| 3105 | case $host_os in |
---|
| 3106 | *cygwin32*) GCCSED="| sed 's%\\\\%/%g'" ;; |
---|
| 3107 | *) ;; |
---|
| 3108 | esac |
---|
| 3109 | |
---|
| 3110 | |
---|
[946b3cb] | 3111 | if test "$ac_cv_prog_gcc" = "yes"; then |
---|
| 3112 | CC_CFLAGS_DEFAULT=-Wall |
---|
| 3113 | CC_CFLAGS_PROFILE_V=${CC_CFLAGS_PROFILE_V-"-pg"} |
---|
| 3114 | CC_LDFLAGS_PROFILE_V=${CC_LDFLAGS_PROFILE_V-$CC_CFLAGS_PROFILE_V} |
---|
| 3115 | fi |
---|
| 3116 | |
---|
| 3117 | test "$ac_cv_prog_cc_g" = "yes" && CC_CFLAGS_DEBUG_V=${CC_CFLAGS_DEBUG_V-"-g"} |
---|
[cce81a7] | 3118 | |
---|
[613ab62] | 3119 | if test "$target_cpu" = "unix" ; then |
---|
| 3120 | |
---|
| 3121 | |
---|
| 3122 | echo $ac_n "checking whether $RTEMS_HOST supports System V semaphores""... $ac_c" 1>&6 |
---|
[7e03d10] | 3123 | echo "configure:3124: checking whether $RTEMS_HOST supports System V semaphores" >&5 |
---|
[613ab62] | 3124 | if eval "test \"`echo '$''{'rtems_cv_sysv_sem'+set}'`\" = set"; then |
---|
| 3125 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 3126 | else |
---|
| 3127 | |
---|
| 3128 | if test "$cross_compiling" = yes; then |
---|
| 3129 | : |
---|
| 3130 | else |
---|
| 3131 | cat > conftest.$ac_ext <<EOF |
---|
[7e03d10] | 3132 | #line 3133 "configure" |
---|
[613ab62] | 3133 | #include "confdefs.h" |
---|
| 3134 | |
---|
| 3135 | #include <sys/types.h> |
---|
| 3136 | #include <sys/ipc.h> |
---|
| 3137 | #include <sys/sem.h> |
---|
| 3138 | int main () { |
---|
[2d7d605] | 3139 | #if !defined(sun) |
---|
| 3140 | union semun arg ; |
---|
[06fa582] | 3141 | #else |
---|
| 3142 | union semun { |
---|
| 3143 | int val; |
---|
| 3144 | struct semid_ds *buf; |
---|
| 3145 | ushort *array; |
---|
| 3146 | } arg; |
---|
| 3147 | #endif |
---|
[613ab62] | 3148 | int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400); |
---|
| 3149 | if (id == -1) |
---|
| 3150 | exit(1); |
---|
| 3151 | arg.val = 0; /* avoid implicit type cast to union */ |
---|
| 3152 | if (semctl(id, 0, IPC_RMID, arg) == -1) |
---|
| 3153 | exit(1); |
---|
| 3154 | exit(0); |
---|
| 3155 | } |
---|
| 3156 | |
---|
| 3157 | EOF |
---|
[7e03d10] | 3158 | if { (eval echo configure:3159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
[613ab62] | 3159 | then |
---|
| 3160 | rtems_cv_sysv_sem="yes" |
---|
| 3161 | else |
---|
| 3162 | echo "configure: failed program was:" >&5 |
---|
| 3163 | cat conftest.$ac_ext >&5 |
---|
| 3164 | rm -fr conftest* |
---|
| 3165 | rtems_cv_sysv_sem="no" |
---|
| 3166 | fi |
---|
| 3167 | rm -fr conftest* |
---|
| 3168 | fi |
---|
| 3169 | |
---|
| 3170 | |
---|
| 3171 | fi |
---|
| 3172 | |
---|
| 3173 | echo "$ac_t""$rtems_cv_sysv_sem" 1>&6 |
---|
| 3174 | |
---|
| 3175 | if test "$rtems_cv_sysv_sem" != "yes" ; then |
---|
| 3176 | { echo "configure: error: System V semaphores don't work, required by simulator" 1>&2; exit 1; } |
---|
| 3177 | fi |
---|
| 3178 | |
---|
| 3179 | |
---|
| 3180 | echo $ac_n "checking whether $RTEMS_HOST supports System V shared memory""... $ac_c" 1>&6 |
---|
[7e03d10] | 3181 | echo "configure:3182: checking whether $RTEMS_HOST supports System V shared memory" >&5 |
---|
[613ab62] | 3182 | if eval "test \"`echo '$''{'rtems_cv_sysv_shm'+set}'`\" = set"; then |
---|
| 3183 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 3184 | else |
---|
| 3185 | |
---|
| 3186 | if test "$cross_compiling" = yes; then |
---|
| 3187 | : |
---|
| 3188 | else |
---|
| 3189 | cat > conftest.$ac_ext <<EOF |
---|
[7e03d10] | 3190 | #line 3191 "configure" |
---|
[613ab62] | 3191 | #include "confdefs.h" |
---|
| 3192 | |
---|
| 3193 | #include <sys/types.h> |
---|
| 3194 | #include <sys/ipc.h> |
---|
| 3195 | #include <sys/shm.h> |
---|
| 3196 | int main () { |
---|
| 3197 | int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400); |
---|
| 3198 | if (id == -1) |
---|
| 3199 | exit(1); |
---|
| 3200 | if (shmctl(id, IPC_RMID, 0) == -1) |
---|
| 3201 | exit(1); |
---|
| 3202 | exit(0); |
---|
| 3203 | } |
---|
| 3204 | |
---|
| 3205 | EOF |
---|
[7e03d10] | 3206 | if { (eval echo configure:3207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
[613ab62] | 3207 | then |
---|
| 3208 | rtems_cv_sysv_shm="yes" |
---|
| 3209 | else |
---|
| 3210 | echo "configure: failed program was:" >&5 |
---|
| 3211 | cat conftest.$ac_ext >&5 |
---|
| 3212 | rm -fr conftest* |
---|
| 3213 | rtems_cv_sysv_shm="no" |
---|
| 3214 | fi |
---|
| 3215 | rm -fr conftest* |
---|
| 3216 | fi |
---|
| 3217 | |
---|
| 3218 | |
---|
| 3219 | fi |
---|
| 3220 | |
---|
| 3221 | echo "$ac_t""$rtems_cv_sysv_shm" 1>&6 |
---|
| 3222 | |
---|
| 3223 | if test "$rtems_cv_sysv_shm" != "yes" ; then |
---|
| 3224 | { echo "configure: error: System V shared memory doesn't work, required by simulator" 1>&2; exit 1; } |
---|
| 3225 | fi |
---|
| 3226 | |
---|
| 3227 | |
---|
| 3228 | echo $ac_n "checking whether $RTEMS_HOST supports System V messages""... $ac_c" 1>&6 |
---|
[7e03d10] | 3229 | echo "configure:3230: checking whether $RTEMS_HOST supports System V messages" >&5 |
---|
[613ab62] | 3230 | if eval "test \"`echo '$''{'rtems_cv_sysv_msg'+set}'`\" = set"; then |
---|
| 3231 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 3232 | else |
---|
| 3233 | |
---|
| 3234 | if test "$cross_compiling" = yes; then |
---|
| 3235 | : |
---|
| 3236 | else |
---|
| 3237 | cat > conftest.$ac_ext <<EOF |
---|
[7e03d10] | 3238 | #line 3239 "configure" |
---|
[613ab62] | 3239 | #include "confdefs.h" |
---|
| 3240 | |
---|
| 3241 | #include <sys/types.h> |
---|
| 3242 | #include <sys/ipc.h> |
---|
| 3243 | #include <sys/msg.h> |
---|
| 3244 | int main () { |
---|
| 3245 | int id=msgget(IPC_PRIVATE,IPC_CREAT|0400); |
---|
| 3246 | if (id == -1) |
---|
| 3247 | exit(1); |
---|
| 3248 | if (msgctl(id, IPC_RMID, 0) == -1) |
---|
| 3249 | exit(1); |
---|
| 3250 | exit(0); |
---|
| 3251 | } |
---|
| 3252 | |
---|
| 3253 | EOF |
---|
[7e03d10] | 3254 | if { (eval echo configure:3255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
[613ab62] | 3255 | then |
---|
| 3256 | rtems_cv_sysv_msg="yes" |
---|
| 3257 | else |
---|
| 3258 | echo "configure: failed program was:" >&5 |
---|
| 3259 | cat conftest.$ac_ext >&5 |
---|
| 3260 | rm -fr conftest* |
---|
| 3261 | rtems_cv_sysv_msg="no" |
---|
| 3262 | fi |
---|
| 3263 | rm -fr conftest* |
---|
| 3264 | fi |
---|
| 3265 | |
---|
| 3266 | |
---|
| 3267 | fi |
---|
| 3268 | |
---|
| 3269 | echo "$ac_t""$rtems_cv_sysv_msg" 1>&6 |
---|
| 3270 | |
---|
| 3271 | if test "$rtems_cv_sysv_msg" != "yes" ; then |
---|
| 3272 | { echo "configure: error: System V messages don't work, required by simulator" 1>&2; exit 1; } |
---|
| 3273 | fi |
---|
| 3274 | fi |
---|
| 3275 | |
---|
[9b8baa1] | 3276 | # Collect config subdirs for exec/score/tools |
---|
| 3277 | t="c/src/exec/score/tools" |
---|
| 3278 | scoretools_cfgdirs="$t/generic" |
---|
| 3279 | if test -d $srcdir/$t/$target_cpu; then |
---|
| 3280 | scoretools_cfgdirs="$scoretools_cfgdirs $t/$target_cpu" |
---|
[744df795] | 3281 | fi |
---|
| 3282 | |
---|
[9b8baa1] | 3283 | # find all the Executive Makefiles |
---|
[744df795] | 3284 | |
---|
[37717818] | 3285 | echo $ac_n "checking for Makefile.in in c/src/exec/rtems""... $ac_c" 1>&6 |
---|
[7e03d10] | 3286 | echo "configure:3287: checking for Makefile.in in c/src/exec/rtems" >&5 |
---|
[37717818] | 3287 | if test -d $srcdir/c/src/exec/rtems; then |
---|
| 3288 | rtems_av_save_dir=`pwd`; |
---|
| 3289 | cd $srcdir; |
---|
[6f9c75c3] | 3290 | rtems_av_tmp=`find c/src/exec/rtems -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[37717818] | 3291 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 3292 | cd $rtems_av_save_dir; |
---|
| 3293 | echo "$ac_t""done" 1>&6 |
---|
| 3294 | else |
---|
| 3295 | echo "$ac_t""no" 1>&6 |
---|
| 3296 | fi |
---|
[1670eede] | 3297 | |
---|
| 3298 | |
---|
| 3299 | |
---|
[37717818] | 3300 | echo $ac_n "checking for Makefile.in in c/src/exec/sapi""... $ac_c" 1>&6 |
---|
[7e03d10] | 3301 | echo "configure:3302: checking for Makefile.in in c/src/exec/sapi" >&5 |
---|
[37717818] | 3302 | if test -d $srcdir/c/src/exec/sapi; then |
---|
| 3303 | rtems_av_save_dir=`pwd`; |
---|
| 3304 | cd $srcdir; |
---|
[6f9c75c3] | 3305 | rtems_av_tmp=`find c/src/exec/sapi -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[37717818] | 3306 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 3307 | cd $rtems_av_save_dir; |
---|
| 3308 | echo "$ac_t""done" 1>&6 |
---|
[1670eede] | 3309 | else |
---|
[37717818] | 3310 | echo "$ac_t""no" 1>&6 |
---|
| 3311 | fi |
---|
[1670eede] | 3312 | |
---|
| 3313 | |
---|
| 3314 | |
---|
[39136318] | 3315 | echo $ac_n "checking for Makefile.in in c/src/exec/score/cpu/$target_cpu""... $ac_c" 1>&6 |
---|
[7e03d10] | 3316 | echo "configure:3317: checking for Makefile.in in c/src/exec/score/cpu/$target_cpu" >&5 |
---|
[39136318] | 3317 | if test -d $srcdir/c/src/exec/score/cpu/$target_cpu; then |
---|
| 3318 | rtems_av_save_dir=`pwd`; |
---|
| 3319 | cd $srcdir; |
---|
| 3320 | rtems_av_tmp=`find c/src/exec/score/cpu/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
| 3321 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 3322 | cd $rtems_av_save_dir; |
---|
| 3323 | echo "$ac_t""done" 1>&6 |
---|
| 3324 | else |
---|
| 3325 | echo "$ac_t""no" 1>&6 |
---|
| 3326 | fi |
---|
| 3327 | |
---|
| 3328 | |
---|
| 3329 | |
---|
[ba1a2af9] | 3330 | if test "$RTEMS_HAS_POSIX_API" = "yes"; then |
---|
[b9ca4ba] | 3331 | |
---|
| 3332 | echo $ac_n "checking for Makefile.in in c/src/exec/posix""... $ac_c" 1>&6 |
---|
[7e03d10] | 3333 | echo "configure:3334: checking for Makefile.in in c/src/exec/posix" >&5 |
---|
[b9ca4ba] | 3334 | if test -d $srcdir/c/src/exec/posix; then |
---|
[37717818] | 3335 | rtems_av_save_dir=`pwd`; |
---|
| 3336 | cd $srcdir; |
---|
[6f9c75c3] | 3337 | rtems_av_tmp=`find c/src/exec/posix -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[37717818] | 3338 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 3339 | cd $rtems_av_save_dir; |
---|
| 3340 | echo "$ac_t""done" 1>&6 |
---|
[1670eede] | 3341 | else |
---|
| 3342 | echo "$ac_t""no" 1>&6 |
---|
| 3343 | fi |
---|
| 3344 | |
---|
| 3345 | |
---|
[ba1a2af9] | 3346 | makefiles="$makefiles c/src/exec/wrapup/posix/Makefile" |
---|
[b9ca4ba] | 3347 | fi |
---|
[1670eede] | 3348 | |
---|
[37717818] | 3349 | # find all the Makefiles for the BSPs |
---|
| 3350 | if test -d "$srcdir/c/src/lib/libbsp/$target_cpu"; then |
---|
| 3351 | makefiles="$makefiles c/src/lib/libbsp/$target_cpu/Makefile" |
---|
| 3352 | |
---|
| 3353 | if test -z "$rtems_bsp"; then |
---|
| 3354 | echo $ac_n "checking for bsps""... $ac_c" 1>&6 |
---|
[7e03d10] | 3355 | echo "configure:3356: checking for bsps" >&5 |
---|
[37717818] | 3356 | files=`ls $srcdir/c/src/lib/libbsp/$target_cpu` |
---|
| 3357 | for file in $files; do |
---|
| 3358 | case $file in |
---|
| 3359 | shared*);; |
---|
| 3360 | Makefile*);; |
---|
| 3361 | READ*);; |
---|
| 3362 | CVS*);; |
---|
[674c900] | 3363 | pxfl*);; |
---|
| 3364 | go32*);; # so the i386 port can pick up the other Makefiles |
---|
| 3365 | # Now account for BSPs with build variants |
---|
| 3366 | gen68360) rtems_bsp="$rtems_bsp gen68360 gen68360_040";; |
---|
| 3367 | p4000) rtems_bsp="$rtems_bsp p4600 p4650";; |
---|
| 3368 | mvme162) rtems_bsp="$rtems_bsp mvme162 mvme162lx";; |
---|
[37717818] | 3369 | *) rtems_bsp="$rtems_bsp $file";; |
---|
| 3370 | esac; |
---|
| 3371 | done |
---|
[674c900] | 3372 | |
---|
[bd5e4f3b] | 3373 | makefiles="$makefiles c/src/lib/libbsp/bare/Makefile" |
---|
| 3374 | |
---|
[300c8a76] | 3375 | echo "$ac_t""$rtems_bsp done" 1>&6 |
---|
[37717818] | 3376 | fi |
---|
[1670eede] | 3377 | |
---|
[37717818] | 3378 | # collect makefiles for each bsp |
---|
| 3379 | for i in $rtems_bsp; do |
---|
[b9ca4ba] | 3380 | # make sure there is a make/custom file for the bsp |
---|
[6d6f1b34] | 3381 | if test ! -r "$srcdir/make/custom/${i}.cfg"; then |
---|
[b9ca4ba] | 3382 | { echo "configure: error: no make/custom/${i}.cfg file for BSP $i" 1>&2; exit 1; } |
---|
| 3383 | fi |
---|
[674c900] | 3384 | |
---|
[b9ca4ba] | 3385 | # account for "aliased" bsps which share source code |
---|
| 3386 | case $i in |
---|
| 3387 | mvme162lx) bspdir=mvme162 ;; # mvme162 board variant |
---|
| 3388 | gen68360_040) bspdir=gen68360 ;; # 68360 in companion mode |
---|
| 3389 | go32_p5) bspdir=go32 ;; # go32 on Pentium class CPU |
---|
| 3390 | p4600) bspdir=p4000 ;; # p4000 board with IDT 4600 |
---|
| 3391 | p4650) bspdir=p4000 ;; # p4000 board with IDT 4650 |
---|
| 3392 | *) bspdir=$i;; |
---|
| 3393 | esac |
---|
| 3394 | |
---|
| 3395 | # Is there code where there should be for this BSP? |
---|
[bd5e4f3b] | 3396 | # The bare bsp is a special case as it is not under the target_cpu path |
---|
| 3397 | case $i in |
---|
[579fc6a3] | 3398 | bare) |
---|
| 3399 | bspcpudir= |
---|
| 3400 | if test "X${BARE_CPU_CFLAGS}" = "X" ; then |
---|
[959d752] | 3401 | { echo "configure: error: --enable-bare-cpu-cflags not specified for bare bsp" 1>&2; exit 1; } |
---|
[579fc6a3] | 3402 | fi |
---|
| 3403 | if test "X${BARE_CPU_MODEL}" = "X" ; then |
---|
| 3404 | { echo "configure: error: --enable-bare-cpu-model not specified for bare bsp" 1>&2; exit 1; } |
---|
| 3405 | fi |
---|
| 3406 | ;; |
---|
| 3407 | *) |
---|
| 3408 | bspcpudir=$target_cpu/ |
---|
| 3409 | ;; |
---|
[1388d19] | 3410 | esac |
---|
| 3411 | |
---|
[a5400c0] | 3412 | if test -d "$srcdir/c/src/lib/libbsp/$bspcpudir$bspdir"; then |
---|
[1388d19] | 3413 | RTEMS_BSP_LIST="$RTEMS_BSP_LIST $i" |
---|
| 3414 | # make sure the Makefiles in a bsp directory are only done once |
---|
| 3415 | echo $bspdirs | grep $bspdir >/dev/null 2>&1 |
---|
| 3416 | if test $? -ne 0 ; then |
---|
| 3417 | bspdirs="$bspdirs $bspdir" |
---|
| 3418 | |
---|
[a5400c0] | 3419 | echo $ac_n "checking for Makefile.in in c/src/lib/libbsp/$bspcpudir$bspdir""... $ac_c" 1>&6 |
---|
[7e03d10] | 3420 | echo "configure:3421: checking for Makefile.in in c/src/lib/libbsp/$bspcpudir$bspdir" >&5 |
---|
[a5400c0] | 3421 | if test -d $srcdir/c/src/lib/libbsp/$bspcpudir$bspdir; then |
---|
[37717818] | 3422 | rtems_av_save_dir=`pwd`; |
---|
| 3423 | cd $srcdir; |
---|
[a5400c0] | 3424 | rtems_av_tmp=`find c/src/lib/libbsp/$bspcpudir$bspdir -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[37717818] | 3425 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 3426 | cd $rtems_av_save_dir; |
---|
| 3427 | echo "$ac_t""done" 1>&6 |
---|
| 3428 | else |
---|
| 3429 | echo "$ac_t""no" 1>&6 |
---|
| 3430 | fi |
---|
[1670eede] | 3431 | |
---|
| 3432 | |
---|
[67a2288] | 3433 | |
---|
| 3434 | echo $ac_n "checking for Makefile.in in c/src/lib/libbsp/${bspcpudir}shared""... $ac_c" 1>&6 |
---|
[7e03d10] | 3435 | echo "configure:3436: checking for Makefile.in in c/src/lib/libbsp/${bspcpudir}shared" >&5 |
---|
[67a2288] | 3436 | if test -d $srcdir/c/src/lib/libbsp/${bspcpudir}shared; then |
---|
| 3437 | rtems_av_save_dir=`pwd`; |
---|
| 3438 | cd $srcdir; |
---|
| 3439 | rtems_av_tmp=`find c/src/lib/libbsp/${bspcpudir}shared -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
| 3440 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 3441 | cd $rtems_av_save_dir; |
---|
| 3442 | echo "$ac_t""done" 1>&6 |
---|
| 3443 | else |
---|
| 3444 | echo "$ac_t""no" 1>&6 |
---|
| 3445 | fi |
---|
| 3446 | |
---|
| 3447 | |
---|
[9b8baa1] | 3448 | |
---|
| 3449 | # HACK: sed out bsp-tools from makefiles |
---|
| 3450 | t="c/src/lib/libbsp/$bspcpudir$bspdir/tools" |
---|
| 3451 | if test -d "$srcdir/$t"; then |
---|
| 3452 | bsptools_cfgdirs="$bsptools_cfgdirs $t" |
---|
| 3453 | makefiles=`echo "$makefiles" | sed -e "s%$t/Makefile%%g"` |
---|
| 3454 | fi |
---|
[1388d19] | 3455 | fi |
---|
| 3456 | else |
---|
| 3457 | { echo "configure: error: unable to find libbsp directory ($bspdir) for $i" 1>&2; exit 1; } |
---|
| 3458 | fi |
---|
[1670eede] | 3459 | done |
---|
[37717818] | 3460 | fi |
---|
| 3461 | |
---|
| 3462 | # find all the CPU dependent library Makefiles |
---|
| 3463 | |
---|
| 3464 | echo $ac_n "checking for Makefile.in in c/src/lib/libcpu/$target_cpu""... $ac_c" 1>&6 |
---|
[7e03d10] | 3465 | echo "configure:3466: checking for Makefile.in in c/src/lib/libcpu/$target_cpu" >&5 |
---|
[37717818] | 3466 | if test -d $srcdir/c/src/lib/libcpu/$target_cpu; then |
---|
| 3467 | rtems_av_save_dir=`pwd`; |
---|
| 3468 | cd $srcdir; |
---|
[6f9c75c3] | 3469 | rtems_av_tmp=`find c/src/lib/libcpu/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[37717818] | 3470 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 3471 | cd $rtems_av_save_dir; |
---|
| 3472 | echo "$ac_t""done" 1>&6 |
---|
| 3473 | else |
---|
| 3474 | echo "$ac_t""no" 1>&6 |
---|
| 3475 | fi |
---|
[1670eede] | 3476 | |
---|
| 3477 | |
---|
| 3478 | |
---|
[37717818] | 3479 | if test "$skip_startfiles" != "yes"; then |
---|
| 3480 | |
---|
| 3481 | echo $ac_n "checking for Makefile.in in c/src/lib/start/$target_cpu""... $ac_c" 1>&6 |
---|
[7e03d10] | 3482 | echo "configure:3483: checking for Makefile.in in c/src/lib/start/$target_cpu" >&5 |
---|
[37717818] | 3483 | if test -d $srcdir/c/src/lib/start/$target_cpu; then |
---|
| 3484 | rtems_av_save_dir=`pwd`; |
---|
| 3485 | cd $srcdir; |
---|
[6f9c75c3] | 3486 | rtems_av_tmp=`find c/src/lib/start/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[37717818] | 3487 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 3488 | cd $rtems_av_save_dir; |
---|
| 3489 | echo "$ac_t""done" 1>&6 |
---|
| 3490 | else |
---|
| 3491 | echo "$ac_t""no" 1>&6 |
---|
| 3492 | fi |
---|
[1670eede] | 3493 | |
---|
| 3494 | |
---|
[37717818] | 3495 | fi |
---|
[1670eede] | 3496 | |
---|
| 3497 | |
---|
[566aea7d] | 3498 | # If RTEMS macros are enabled, then use them. Otherwise, use inlines. |
---|
| 3499 | if test "$RTEMS_USE_MACROS" = "yes"; then |
---|
| 3500 | inline_dir=macros |
---|
| 3501 | if test "$RTEMS_HAS_POSIX_API" = "yes"; then |
---|
| 3502 | # The problem is that there is currently no code in posix/macros :) |
---|
| 3503 | { echo "configure: error: Macros are not implemented for the POSIX API" 1>&2; exit 1; } |
---|
| 3504 | fi |
---|
| 3505 | else |
---|
| 3506 | inline_dir=inline |
---|
| 3507 | fi |
---|
| 3508 | |
---|
[0280cb6] | 3509 | # If the TCP/IP stack is enabled, then find all TCP/IP Makefiles |
---|
| 3510 | echo $ac_n "checking if networking is enabled? ""... $ac_c" 1>&6 |
---|
[710389fc] | 3511 | echo "configure:3512: checking if networking is enabled? " >&5 |
---|
[0280cb6] | 3512 | echo "$ac_t""$RTEMS_HAS_NETWORKING" 1>&6 |
---|
| 3513 | if test "$RTEMS_HAS_NETWORKING" = "yes"; then |
---|
| 3514 | |
---|
| 3515 | echo $ac_n "checking for Makefile.in in c/src/lib/libnetworking""... $ac_c" 1>&6 |
---|
[710389fc] | 3516 | echo "configure:3517: checking for Makefile.in in c/src/lib/libnetworking" >&5 |
---|
[0280cb6] | 3517 | if test -d $srcdir/c/src/lib/libnetworking; then |
---|
| 3518 | rtems_av_save_dir=`pwd`; |
---|
| 3519 | cd $srcdir; |
---|
| 3520 | rtems_av_tmp=`find c/src/lib/libnetworking -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
| 3521 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 3522 | cd $rtems_av_save_dir; |
---|
| 3523 | echo "$ac_t""done" 1>&6 |
---|
| 3524 | else |
---|
| 3525 | echo "$ac_t""no" 1>&6 |
---|
| 3526 | fi |
---|
| 3527 | |
---|
| 3528 | |
---|
[4721cf1] | 3529 | |
---|
| 3530 | echo $ac_n "checking for Makefile.in in c/src/lib/librpc""... $ac_c" 1>&6 |
---|
[710389fc] | 3531 | echo "configure:3532: checking for Makefile.in in c/src/lib/librpc" >&5 |
---|
[4721cf1] | 3532 | if test -d $srcdir/c/src/lib/librpc; then |
---|
| 3533 | rtems_av_save_dir=`pwd`; |
---|
| 3534 | cd $srcdir; |
---|
| 3535 | rtems_av_tmp=`find c/src/lib/librpc -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
| 3536 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 3537 | cd $rtems_av_save_dir; |
---|
| 3538 | echo "$ac_t""done" 1>&6 |
---|
| 3539 | else |
---|
| 3540 | echo "$ac_t""no" 1>&6 |
---|
| 3541 | fi |
---|
| 3542 | |
---|
| 3543 | |
---|
| 3544 | if test "$RTEMS_HAS_RDBG" = "yes"; then |
---|
[e5f4e5a] | 3545 | echo $ac_n "checking whether cpu supports rdbg? ""... $ac_c" 1>&6 |
---|
[710389fc] | 3546 | echo "configure:3547: checking whether cpu supports rdbg? " >&5 |
---|
[e5f4e5a] | 3547 | test ! -d "$srcdir/c/src/lib/librdbg/$target_cpu" && RTEMS_HAS_RDBG="no" ; |
---|
| 3548 | echo "$ac_t""$RTEMS_HAS_RDBG" 1>&6 |
---|
| 3549 | if test "$RTEMS_HAS_RDBG" = "yes"; then |
---|
| 3550 | # Extract the first word of "rpcgen", so it can be a program name with args. |
---|
| 3551 | set dummy rpcgen; ac_word=$2 |
---|
| 3552 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[710389fc] | 3553 | echo "configure:3554: checking for $ac_word" >&5 |
---|
[e5f4e5a] | 3554 | if eval "test \"`echo '$''{'ac_cv_path_RPCGEN'+set}'`\" = set"; then |
---|
| 3555 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 3556 | else |
---|
| 3557 | case "$RPCGEN" in |
---|
| 3558 | /*) |
---|
| 3559 | ac_cv_path_RPCGEN="$RPCGEN" # Let the user override the test with a path. |
---|
| 3560 | ;; |
---|
| 3561 | ?:/*) |
---|
| 3562 | ac_cv_path_RPCGEN="$RPCGEN" # Let the user override the test with a dos path. |
---|
| 3563 | ;; |
---|
| 3564 | *) |
---|
| 3565 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 3566 | ac_dummy="$PATH" |
---|
| 3567 | for ac_dir in $ac_dummy; do |
---|
| 3568 | test -z "$ac_dir" && ac_dir=. |
---|
| 3569 | if test -f $ac_dir/$ac_word; then |
---|
| 3570 | ac_cv_path_RPCGEN="$ac_dir/$ac_word" |
---|
| 3571 | break |
---|
| 3572 | fi |
---|
| 3573 | done |
---|
| 3574 | IFS="$ac_save_ifs" |
---|
| 3575 | ;; |
---|
| 3576 | esac |
---|
| 3577 | fi |
---|
| 3578 | RPCGEN="$ac_cv_path_RPCGEN" |
---|
| 3579 | if test -n "$RPCGEN"; then |
---|
| 3580 | echo "$ac_t""$RPCGEN" 1>&6 |
---|
| 3581 | else |
---|
| 3582 | echo "$ac_t""no" 1>&6 |
---|
| 3583 | fi |
---|
| 3584 | |
---|
| 3585 | test -z "$RPCGEN" && RTEMS_HAS_RDBG="no" |
---|
| 3586 | fi |
---|
| 3587 | if test "$RTEMS_HAS_RDBG" = "yes"; then |
---|
| 3588 | for ac_prog in mawk gawk nawk awk |
---|
| 3589 | do |
---|
| 3590 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 3591 | set dummy $ac_prog; ac_word=$2 |
---|
| 3592 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[710389fc] | 3593 | echo "configure:3594: checking for $ac_word" >&5 |
---|
[e5f4e5a] | 3594 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
---|
| 3595 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 3596 | else |
---|
| 3597 | if test -n "$AWK"; then |
---|
| 3598 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
| 3599 | else |
---|
| 3600 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 3601 | ac_dummy="$PATH" |
---|
| 3602 | for ac_dir in $ac_dummy; do |
---|
| 3603 | test -z "$ac_dir" && ac_dir=. |
---|
| 3604 | if test -f $ac_dir/$ac_word; then |
---|
| 3605 | ac_cv_prog_AWK="$ac_prog" |
---|
| 3606 | break |
---|
| 3607 | fi |
---|
| 3608 | done |
---|
| 3609 | IFS="$ac_save_ifs" |
---|
| 3610 | fi |
---|
| 3611 | fi |
---|
| 3612 | AWK="$ac_cv_prog_AWK" |
---|
| 3613 | if test -n "$AWK"; then |
---|
| 3614 | echo "$ac_t""$AWK" 1>&6 |
---|
| 3615 | else |
---|
| 3616 | echo "$ac_t""no" 1>&6 |
---|
| 3617 | fi |
---|
| 3618 | |
---|
| 3619 | test -n "$AWK" && break |
---|
| 3620 | done |
---|
| 3621 | |
---|
| 3622 | test -z "$AWK" && RTEMS_HAS_RDBG="no" |
---|
| 3623 | fi |
---|
| 3624 | if test "$RTEMS_HAS_RDBG" = "yes"; then |
---|
| 3625 | |
---|
[4721cf1] | 3626 | echo $ac_n "checking for Makefile.in in c/src/lib/librdbg""... $ac_c" 1>&6 |
---|
[710389fc] | 3627 | echo "configure:3628: checking for Makefile.in in c/src/lib/librdbg" >&5 |
---|
[4721cf1] | 3628 | if test -d $srcdir/c/src/lib/librdbg; then |
---|
| 3629 | rtems_av_save_dir=`pwd`; |
---|
| 3630 | cd $srcdir; |
---|
| 3631 | rtems_av_tmp=`find c/src/lib/librdbg -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
| 3632 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 3633 | cd $rtems_av_save_dir; |
---|
| 3634 | echo "$ac_t""done" 1>&6 |
---|
| 3635 | else |
---|
| 3636 | echo "$ac_t""no" 1>&6 |
---|
| 3637 | fi |
---|
| 3638 | |
---|
| 3639 | |
---|
[e5f4e5a] | 3640 | else |
---|
| 3641 | echo "configure: warning: *** warning disabling --enable-rdbg" 1>&2 |
---|
| 3642 | fi |
---|
[4721cf1] | 3643 | fi |
---|
[0280cb6] | 3644 | fi |
---|
| 3645 | |
---|
[80a16ec4] | 3646 | # If the C++ support is enabled, then include the Makefiles |
---|
| 3647 | if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then |
---|
| 3648 | makefiles="$makefiles c/src/lib/librtems++/Makefile" |
---|
| 3649 | fi |
---|
[37717818] | 3650 | |
---|
[04c308c] | 3651 | |
---|
[37717818] | 3652 | # If the tests are enabled, then find all the test suite Makefiles |
---|
[70dda0ea] | 3653 | echo $ac_n "checking if the test suites are enabled? ""... $ac_c" 1>&6 |
---|
[710389fc] | 3654 | echo "configure:3655: checking if the test suites are enabled? " >&5 |
---|
[04c308c] | 3655 | tests_enabled=yes |
---|
[254b4450] | 3656 | # Check whether --enable-tests or --disable-tests was given. |
---|
| 3657 | if test "${enable_tests+set}" = set; then |
---|
| 3658 | enableval="$enable_tests" |
---|
[b9ca4ba] | 3659 | case "${enableval}" in |
---|
[04c308c] | 3660 | yes) echo "$ac_t""yes" 1>&6 ;; |
---|
[b9ca4ba] | 3661 | no) echo "$ac_t""no" 1>&6 ; tests_enabled=no ;; |
---|
| 3662 | *) { echo "configure: error: bad value ${enableval} for tests option" 1>&2; exit 1; } ;; |
---|
| 3663 | esac |
---|
[37717818] | 3664 | else |
---|
[e1b77701] | 3665 | echo "$ac_t""no" 1>&6 |
---|
[b9ca4ba] | 3666 | fi |
---|
| 3667 | |
---|
| 3668 | |
---|
[41f61bc] | 3669 | |
---|
[04c308c] | 3670 | |
---|
[37717818] | 3671 | echo $ac_n "checking for Makefile.in in c/src/tests/tools/$target_cpu""... $ac_c" 1>&6 |
---|
[710389fc] | 3672 | echo "configure:3673: checking for Makefile.in in c/src/tests/tools/$target_cpu" >&5 |
---|
[37717818] | 3673 | if test -d $srcdir/c/src/tests/tools/$target_cpu; then |
---|
| 3674 | rtems_av_save_dir=`pwd`; |
---|
| 3675 | cd $srcdir; |
---|
[6f9c75c3] | 3676 | rtems_av_tmp=`find c/src/tests/tools/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[37717818] | 3677 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 3678 | cd $rtems_av_save_dir; |
---|
| 3679 | echo "$ac_t""done" 1>&6 |
---|
| 3680 | else |
---|
| 3681 | echo "$ac_t""no" 1>&6 |
---|
| 3682 | fi |
---|
| 3683 | |
---|
[b9ca4ba] | 3684 | |
---|
[41f61bc] | 3685 | |
---|
| 3686 | if test "$tests_enabled" = "yes"; then |
---|
[b9ca4ba] | 3687 | |
---|
[37717818] | 3688 | echo $ac_n "checking for Makefile.in in c/src/tests/libtests""... $ac_c" 1>&6 |
---|
[710389fc] | 3689 | echo "configure:3690: checking for Makefile.in in c/src/tests/libtests" >&5 |
---|
[37717818] | 3690 | if test -d $srcdir/c/src/tests/libtests; then |
---|
| 3691 | rtems_av_save_dir=`pwd`; |
---|
| 3692 | cd $srcdir; |
---|
[6f9c75c3] | 3693 | rtems_av_tmp=`find c/src/tests/libtests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[37717818] | 3694 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 3695 | cd $rtems_av_save_dir; |
---|
| 3696 | echo "$ac_t""done" 1>&6 |
---|
[254b4450] | 3697 | else |
---|
[37717818] | 3698 | echo "$ac_t""no" 1>&6 |
---|
| 3699 | fi |
---|
| 3700 | |
---|
[b9ca4ba] | 3701 | |
---|
| 3702 | |
---|
[37717818] | 3703 | echo $ac_n "checking for Makefile.in in c/src/tests/sptests""... $ac_c" 1>&6 |
---|
[710389fc] | 3704 | echo "configure:3705: checking for Makefile.in in c/src/tests/sptests" >&5 |
---|
[37717818] | 3705 | if test -d $srcdir/c/src/tests/sptests; then |
---|
| 3706 | rtems_av_save_dir=`pwd`; |
---|
| 3707 | cd $srcdir; |
---|
[6f9c75c3] | 3708 | rtems_av_tmp=`find c/src/tests/sptests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[37717818] | 3709 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 3710 | cd $rtems_av_save_dir; |
---|
| 3711 | echo "$ac_t""done" 1>&6 |
---|
| 3712 | else |
---|
| 3713 | echo "$ac_t""no" 1>&6 |
---|
| 3714 | fi |
---|
| 3715 | |
---|
[b9ca4ba] | 3716 | |
---|
| 3717 | |
---|
[37717818] | 3718 | echo $ac_n "checking for Makefile.in in c/src/tests/tmtests""... $ac_c" 1>&6 |
---|
[710389fc] | 3719 | echo "configure:3720: checking for Makefile.in in c/src/tests/tmtests" >&5 |
---|
[37717818] | 3720 | if test -d $srcdir/c/src/tests/tmtests; then |
---|
| 3721 | rtems_av_save_dir=`pwd`; |
---|
| 3722 | cd $srcdir; |
---|
[6f9c75c3] | 3723 | rtems_av_tmp=`find c/src/tests/tmtests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[37717818] | 3724 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 3725 | cd $rtems_av_save_dir; |
---|
| 3726 | echo "$ac_t""done" 1>&6 |
---|
| 3727 | else |
---|
| 3728 | echo "$ac_t""no" 1>&6 |
---|
| 3729 | fi |
---|
| 3730 | |
---|
[b9ca4ba] | 3731 | |
---|
[97e2729d] | 3732 | if test "$RTEMS_HAS_MULTIPROCESSING" = "yes"; then |
---|
| 3733 | |
---|
[37717818] | 3734 | echo $ac_n "checking for Makefile.in in c/src/tests/mptests""... $ac_c" 1>&6 |
---|
[710389fc] | 3735 | echo "configure:3736: checking for Makefile.in in c/src/tests/mptests" >&5 |
---|
[37717818] | 3736 | if test -d $srcdir/c/src/tests/mptests; then |
---|
| 3737 | rtems_av_save_dir=`pwd`; |
---|
| 3738 | cd $srcdir; |
---|
[6f9c75c3] | 3739 | rtems_av_tmp=`find c/src/tests/mptests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[37717818] | 3740 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 3741 | cd $rtems_av_save_dir; |
---|
| 3742 | echo "$ac_t""done" 1>&6 |
---|
| 3743 | else |
---|
| 3744 | echo "$ac_t""no" 1>&6 |
---|
[254b4450] | 3745 | fi |
---|
| 3746 | |
---|
[b9ca4ba] | 3747 | |
---|
[97e2729d] | 3748 | fi |
---|
[9829978] | 3749 | if test "$RTEMS_HAS_POSIX_API" = "yes"; then |
---|
[37717818] | 3750 | |
---|
| 3751 | echo $ac_n "checking for Makefile.in in c/src/tests/psxtests""... $ac_c" 1>&6 |
---|
[710389fc] | 3752 | echo "configure:3753: checking for Makefile.in in c/src/tests/psxtests" >&5 |
---|
[37717818] | 3753 | if test -d $srcdir/c/src/tests/psxtests; then |
---|
| 3754 | rtems_av_save_dir=`pwd`; |
---|
| 3755 | cd $srcdir; |
---|
[6f9c75c3] | 3756 | rtems_av_tmp=`find c/src/tests/psxtests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[37717818] | 3757 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 3758 | cd $rtems_av_save_dir; |
---|
| 3759 | echo "$ac_t""done" 1>&6 |
---|
| 3760 | else |
---|
| 3761 | echo "$ac_t""no" 1>&6 |
---|
| 3762 | fi |
---|
[254b4450] | 3763 | |
---|
[37717818] | 3764 | |
---|
[b9ca4ba] | 3765 | fi |
---|
[9b8baa1] | 3766 | subdirs="c/src/tests/tools/generic" |
---|
| 3767 | |
---|
[b9ca4ba] | 3768 | fi |
---|
[37717818] | 3769 | |
---|
| 3770 | # If the HWAPI is enabled, the find the HWAPI Makefiles |
---|
[d4cf164] | 3771 | # Check whether --enable-hwapi or --disable-hwapi was given. |
---|
| 3772 | if test "${enable_hwapi+set}" = set; then |
---|
| 3773 | enableval="$enable_hwapi" |
---|
[b9ca4ba] | 3774 | case "${enableval}" in |
---|
[04c308c] | 3775 | yes) RTEMS_HAS_HWAPI=yes ;; |
---|
| 3776 | no) RTEMS_HAS_HWAPI=no ;; |
---|
| 3777 | *) { echo "configure: error: bad value ${enableval} for hwapi option" 1>&2; exit 1; } ;; |
---|
| 3778 | esac |
---|
| 3779 | else |
---|
| 3780 | RTEMS_HAS_HWAPI=no |
---|
| 3781 | fi |
---|
| 3782 | |
---|
| 3783 | |
---|
| 3784 | if test "$RTEMS_HAS_HWAPI" = "yes"; then |
---|
| 3785 | echo $ac_n "checking whether libwapi is present""... $ac_c" 1>&6 |
---|
[710389fc] | 3786 | echo "configure:3787: checking whether libwapi is present" >&5 |
---|
[04c308c] | 3787 | if test -f ${srcdir}/c/src/lib/libhwapi/Makefile.in ; then |
---|
| 3788 | echo "$ac_t""yes" 1>&6 |
---|
| 3789 | makefiles="$makefiles c/src/lib/libhwapi/Makefile" |
---|
| 3790 | |
---|
[80a16ec4] | 3791 | echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/analog""... $ac_c" 1>&6 |
---|
[710389fc] | 3792 | echo "configure:3793: checking for Makefile.in in c/src/lib/libhwapi/analog" >&5 |
---|
[80a16ec4] | 3793 | if test -d $srcdir/c/src/lib/libhwapi/analog; then |
---|
| 3794 | rtems_av_save_dir=`pwd`; |
---|
| 3795 | cd $srcdir; |
---|
[6f9c75c3] | 3796 | rtems_av_tmp=`find c/src/lib/libhwapi/analog -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[80a16ec4] | 3797 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 3798 | cd $rtems_av_save_dir; |
---|
| 3799 | echo "$ac_t""done" 1>&6 |
---|
| 3800 | else |
---|
| 3801 | echo "$ac_t""no" 1>&6 |
---|
| 3802 | fi |
---|
| 3803 | |
---|
| 3804 | |
---|
[04c308c] | 3805 | |
---|
[80a16ec4] | 3806 | echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/discrete""... $ac_c" 1>&6 |
---|
[710389fc] | 3807 | echo "configure:3808: checking for Makefile.in in c/src/lib/libhwapi/discrete" >&5 |
---|
[80a16ec4] | 3808 | if test -d $srcdir/c/src/lib/libhwapi/discrete; then |
---|
| 3809 | rtems_av_save_dir=`pwd`; |
---|
| 3810 | cd $srcdir; |
---|
[6f9c75c3] | 3811 | rtems_av_tmp=`find c/src/lib/libhwapi/discrete -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[80a16ec4] | 3812 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 3813 | cd $rtems_av_save_dir; |
---|
| 3814 | echo "$ac_t""done" 1>&6 |
---|
| 3815 | else |
---|
| 3816 | echo "$ac_t""no" 1>&6 |
---|
| 3817 | fi |
---|
| 3818 | |
---|
| 3819 | |
---|
[04c308c] | 3820 | |
---|
[80a16ec4] | 3821 | echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/drivers""... $ac_c" 1>&6 |
---|
[710389fc] | 3822 | echo "configure:3823: checking for Makefile.in in c/src/lib/libhwapi/drivers" >&5 |
---|
[80a16ec4] | 3823 | if test -d $srcdir/c/src/lib/libhwapi/drivers; then |
---|
| 3824 | rtems_av_save_dir=`pwd`; |
---|
| 3825 | cd $srcdir; |
---|
[6f9c75c3] | 3826 | rtems_av_tmp=`find c/src/lib/libhwapi/drivers -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[80a16ec4] | 3827 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 3828 | cd $rtems_av_save_dir; |
---|
| 3829 | echo "$ac_t""done" 1>&6 |
---|
| 3830 | else |
---|
| 3831 | echo "$ac_t""no" 1>&6 |
---|
| 3832 | fi |
---|
| 3833 | |
---|
| 3834 | |
---|
[04c308c] | 3835 | |
---|
[6d6f1b34] | 3836 | echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory""... $ac_c" 1>&6 |
---|
[710389fc] | 3837 | echo "configure:3838: checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory" >&5 |
---|
[6d6f1b34] | 3838 | if test -d $srcdir/c/src/lib/libhwapi/non_volatile_memory; then |
---|
[37717818] | 3839 | rtems_av_save_dir=`pwd`; |
---|
| 3840 | cd $srcdir; |
---|
[6d6f1b34] | 3841 | rtems_av_tmp=`find c/src/lib/libhwapi/non_volatile_memory -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[37717818] | 3842 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 3843 | cd $rtems_av_save_dir; |
---|
| 3844 | echo "$ac_t""done" 1>&6 |
---|
[d4cf164] | 3845 | else |
---|
[37717818] | 3846 | echo "$ac_t""no" 1>&6 |
---|
| 3847 | fi |
---|
| 3848 | |
---|
[80a16ec4] | 3849 | |
---|
[04c308c] | 3850 | |
---|
[80a16ec4] | 3851 | echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/serial""... $ac_c" 1>&6 |
---|
[710389fc] | 3852 | echo "configure:3853: checking for Makefile.in in c/src/lib/libhwapi/serial" >&5 |
---|
[80a16ec4] | 3853 | if test -d $srcdir/c/src/lib/libhwapi/serial; then |
---|
| 3854 | rtems_av_save_dir=`pwd`; |
---|
| 3855 | cd $srcdir; |
---|
[6f9c75c3] | 3856 | rtems_av_tmp=`find c/src/lib/libhwapi/serial -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[80a16ec4] | 3857 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 3858 | cd $rtems_av_save_dir; |
---|
| 3859 | echo "$ac_t""done" 1>&6 |
---|
| 3860 | else |
---|
| 3861 | echo "$ac_t""no" 1>&6 |
---|
| 3862 | fi |
---|
| 3863 | |
---|
| 3864 | |
---|
[04c308c] | 3865 | |
---|
[80a16ec4] | 3866 | echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/support""... $ac_c" 1>&6 |
---|
[710389fc] | 3867 | echo "configure:3868: checking for Makefile.in in c/src/lib/libhwapi/support" >&5 |
---|
[80a16ec4] | 3868 | if test -d $srcdir/c/src/lib/libhwapi/support; then |
---|
| 3869 | rtems_av_save_dir=`pwd`; |
---|
| 3870 | cd $srcdir; |
---|
[6f9c75c3] | 3871 | rtems_av_tmp=`find c/src/lib/libhwapi/support -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[80a16ec4] | 3872 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 3873 | cd $rtems_av_save_dir; |
---|
| 3874 | echo "$ac_t""done" 1>&6 |
---|
| 3875 | else |
---|
| 3876 | echo "$ac_t""no" 1>&6 |
---|
| 3877 | fi |
---|
| 3878 | |
---|
| 3879 | |
---|
[04c308c] | 3880 | |
---|
[80a16ec4] | 3881 | echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/wrapup""... $ac_c" 1>&6 |
---|
[710389fc] | 3882 | echo "configure:3883: checking for Makefile.in in c/src/lib/libhwapi/wrapup" >&5 |
---|
[80a16ec4] | 3883 | if test -d $srcdir/c/src/lib/libhwapi/wrapup; then |
---|
| 3884 | rtems_av_save_dir=`pwd`; |
---|
| 3885 | cd $srcdir; |
---|
[6f9c75c3] | 3886 | rtems_av_tmp=`find c/src/lib/libhwapi/wrapup -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[80a16ec4] | 3887 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 3888 | cd $rtems_av_save_dir; |
---|
| 3889 | echo "$ac_t""done" 1>&6 |
---|
| 3890 | else |
---|
| 3891 | echo "$ac_t""no" 1>&6 |
---|
| 3892 | fi |
---|
| 3893 | |
---|
| 3894 | |
---|
[04c308c] | 3895 | else |
---|
| 3896 | { echo "configure: error: No source code found for the HWAPI" 1>&2; exit 1; } |
---|
| 3897 | fi |
---|
[254b4450] | 3898 | fi |
---|
| 3899 | |
---|
| 3900 | |
---|
| 3901 | |
---|
| 3902 | |
---|
| 3903 | |
---|
| 3904 | |
---|
| 3905 | |
---|
| 3906 | |
---|
| 3907 | |
---|
| 3908 | |
---|
[cce81a7] | 3909 | |
---|
[3108b76] | 3910 | |
---|
[2c3840b] | 3911 | |
---|
[cce81a7] | 3912 | |
---|
[37717818] | 3913 | # pick up all the Makefiles in required parts of the tree |
---|
| 3914 | |
---|
[6d6f1b34] | 3915 | echo $ac_n "checking for Makefile.in in make""... $ac_c" 1>&6 |
---|
[710389fc] | 3916 | echo "configure:3917: checking for Makefile.in in make" >&5 |
---|
[6d6f1b34] | 3917 | if test -d $srcdir/make; then |
---|
[37717818] | 3918 | rtems_av_save_dir=`pwd`; |
---|
| 3919 | cd $srcdir; |
---|
[6d6f1b34] | 3920 | rtems_av_tmp=`find make -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[37717818] | 3921 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 3922 | cd $rtems_av_save_dir; |
---|
| 3923 | echo "$ac_t""done" 1>&6 |
---|
| 3924 | else |
---|
| 3925 | echo "$ac_t""no" 1>&6 |
---|
| 3926 | fi |
---|
| 3927 | |
---|
| 3928 | |
---|
| 3929 | |
---|
[692b9f7] | 3930 | echo $ac_n "checking for Makefile.in in c/src/lib/libchip""... $ac_c" 1>&6 |
---|
[710389fc] | 3931 | echo "configure:3932: checking for Makefile.in in c/src/lib/libchip" >&5 |
---|
[692b9f7] | 3932 | if test -d $srcdir/c/src/lib/libchip; then |
---|
| 3933 | rtems_av_save_dir=`pwd`; |
---|
| 3934 | cd $srcdir; |
---|
| 3935 | rtems_av_tmp=`find c/src/lib/libchip -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
| 3936 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 3937 | cd $rtems_av_save_dir; |
---|
| 3938 | echo "$ac_t""done" 1>&6 |
---|
| 3939 | else |
---|
| 3940 | echo "$ac_t""no" 1>&6 |
---|
| 3941 | fi |
---|
| 3942 | |
---|
| 3943 | |
---|
| 3944 | |
---|
[37717818] | 3945 | echo $ac_n "checking for Makefile.in in c/src/lib/libmisc""... $ac_c" 1>&6 |
---|
[710389fc] | 3946 | echo "configure:3947: checking for Makefile.in in c/src/lib/libmisc" >&5 |
---|
[37717818] | 3947 | if test -d $srcdir/c/src/lib/libmisc; then |
---|
| 3948 | rtems_av_save_dir=`pwd`; |
---|
| 3949 | cd $srcdir; |
---|
[6f9c75c3] | 3950 | rtems_av_tmp=`find c/src/lib/libmisc -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[37717818] | 3951 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 3952 | cd $rtems_av_save_dir; |
---|
| 3953 | echo "$ac_t""done" 1>&6 |
---|
| 3954 | else |
---|
| 3955 | echo "$ac_t""no" 1>&6 |
---|
| 3956 | fi |
---|
| 3957 | |
---|
| 3958 | |
---|
[1670eede] | 3959 | |
---|
[37717818] | 3960 | echo $ac_n "checking for Makefile.in in c/src/tests/samples""... $ac_c" 1>&6 |
---|
[710389fc] | 3961 | echo "configure:3962: checking for Makefile.in in c/src/tests/samples" >&5 |
---|
[37717818] | 3962 | if test -d $srcdir/c/src/tests/samples; then |
---|
| 3963 | rtems_av_save_dir=`pwd`; |
---|
| 3964 | cd $srcdir; |
---|
[6f9c75c3] | 3965 | rtems_av_tmp=`find c/src/tests/samples -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[37717818] | 3966 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 3967 | cd $rtems_av_save_dir; |
---|
| 3968 | echo "$ac_t""done" 1>&6 |
---|
| 3969 | else |
---|
| 3970 | echo "$ac_t""no" 1>&6 |
---|
| 3971 | fi |
---|
| 3972 | |
---|
| 3973 | |
---|
| 3974 | |
---|
[9b8baa1] | 3975 | subdirs="c/src/tests/tools/generic c/build-tools" |
---|
| 3976 | |
---|
| 3977 | subdirs="c/src/tests/tools/generic c/build-tools $scoretools_cfgdirs" |
---|
| 3978 | |
---|
| 3979 | subdirs="c/src/tests/tools/generic c/build-tools $scoretools_cfgdirs $bsptools_cfgdirs" |
---|
| 3980 | |
---|
[bb9084db] | 3981 | |
---|
[f72dd2a] | 3982 | # FIXME: libhwapi needs a separate configure.in in future ;- |
---|
| 3983 | # AC_CONFIG_SUBDIRS(c/src/lib/libhwapi) |
---|
[bb9084db] | 3984 | |
---|
[37717818] | 3985 | # try not to explicitly list a Makefile here |
---|
[254b4450] | 3986 | trap '' 1 2 15 |
---|
| 3987 | cat > confcache <<\EOF |
---|
| 3988 | # This file is a shell script that caches the results of configure |
---|
| 3989 | # tests run on this system so they can be shared between configure |
---|
| 3990 | # scripts and configure runs. It is not useful on other systems. |
---|
| 3991 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
| 3992 | # |
---|
| 3993 | # By default, configure uses ./config.cache as the cache file, |
---|
| 3994 | # creating it if it does not exist already. You can give configure |
---|
| 3995 | # the --cache-file=FILE option to use a different cache file; that is |
---|
| 3996 | # what configure does when it calls configure scripts in |
---|
| 3997 | # subdirectories, so they share the cache. |
---|
| 3998 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
| 3999 | # config.status only pays attention to the cache file if you give it the |
---|
| 4000 | # --recheck option to rerun configure. |
---|
| 4001 | # |
---|
| 4002 | EOF |
---|
| 4003 | # The following way of writing the cache mishandles newlines in values, |
---|
| 4004 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 4005 | # So, don't put newlines in cache variables' values. |
---|
| 4006 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 4007 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 4008 | (set) 2>&1 | |
---|
[9ec96478] | 4009 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
[254b4450] | 4010 | *ac_space=\ *) |
---|
| 4011 | # `set' does not quote correctly, so add quotes (double-quote substitution |
---|
| 4012 | # turns \\\\ into \\, and sed turns \\ into \). |
---|
| 4013 | sed -n \ |
---|
| 4014 | -e "s/'/'\\\\''/g" \ |
---|
| 4015 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
---|
| 4016 | ;; |
---|
| 4017 | *) |
---|
| 4018 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 4019 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
---|
| 4020 | ;; |
---|
| 4021 | esac >> confcache |
---|
| 4022 | if cmp -s $cache_file confcache; then |
---|
| 4023 | : |
---|
| 4024 | else |
---|
| 4025 | if test -w $cache_file; then |
---|
| 4026 | echo "updating cache $cache_file" |
---|
| 4027 | cat confcache > $cache_file |
---|
| 4028 | else |
---|
| 4029 | echo "not updating unwritable cache $cache_file" |
---|
| 4030 | fi |
---|
| 4031 | fi |
---|
| 4032 | rm -f confcache |
---|
| 4033 | |
---|
| 4034 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
| 4035 | |
---|
| 4036 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 4037 | # Let make expand exec_prefix. |
---|
| 4038 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 4039 | |
---|
| 4040 | # Any assignment to VPATH causes Sun make to only execute |
---|
| 4041 | # the first set of double-colon rules, so remove it if not needed. |
---|
| 4042 | # If there is a colon in the path, we need to keep it. |
---|
| 4043 | if test "x$srcdir" = x.; then |
---|
| 4044 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
---|
| 4045 | fi |
---|
| 4046 | |
---|
| 4047 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
---|
| 4048 | |
---|
[04c308c] | 4049 | # Transform confdefs.h into DEFS. |
---|
| 4050 | # Protect against shell expansion while executing Makefile rules. |
---|
| 4051 | # Protect against Makefile macro expansion. |
---|
| 4052 | cat > conftest.defs <<\EOF |
---|
| 4053 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g |
---|
| 4054 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g |
---|
| 4055 | s%\[%\\&%g |
---|
| 4056 | s%\]%\\&%g |
---|
| 4057 | s%\$%$$%g |
---|
| 4058 | EOF |
---|
| 4059 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` |
---|
| 4060 | rm -f conftest.defs |
---|
| 4061 | |
---|
[254b4450] | 4062 | |
---|
| 4063 | # Without the "./", some shells look in PATH for config.status. |
---|
| 4064 | : ${CONFIG_STATUS=./config.status} |
---|
| 4065 | |
---|
| 4066 | echo creating $CONFIG_STATUS |
---|
| 4067 | rm -f $CONFIG_STATUS |
---|
| 4068 | cat > $CONFIG_STATUS <<EOF |
---|
| 4069 | #! /bin/sh |
---|
| 4070 | # Generated automatically by configure. |
---|
| 4071 | # Run this file to recreate the current configuration. |
---|
| 4072 | # This directory was configured as follows, |
---|
| 4073 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
| 4074 | # |
---|
| 4075 | # $0 $ac_configure_args |
---|
| 4076 | # |
---|
| 4077 | # Compiler output produced by configure, useful for debugging |
---|
| 4078 | # configure, is in ./config.log if it exists. |
---|
| 4079 | |
---|
| 4080 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
---|
| 4081 | for ac_option |
---|
| 4082 | do |
---|
| 4083 | case "\$ac_option" in |
---|
| 4084 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 4085 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
---|
| 4086 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
---|
| 4087 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
---|
[9ec96478] | 4088 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
---|
[254b4450] | 4089 | exit 0 ;; |
---|
| 4090 | -help | --help | --hel | --he | --h) |
---|
| 4091 | echo "\$ac_cs_usage"; exit 0 ;; |
---|
| 4092 | *) echo "\$ac_cs_usage"; exit 1 ;; |
---|
| 4093 | esac |
---|
| 4094 | done |
---|
| 4095 | |
---|
| 4096 | ac_given_srcdir=$srcdir |
---|
[4fb08fd] | 4097 | ac_given_INSTALL="$INSTALL" |
---|
[254b4450] | 4098 | |
---|
[a50148a] | 4099 | trap 'rm -fr `echo "Makefile |
---|
[3771cc6e] | 4100 | make/host.cfg |
---|
| 4101 | make/target.cfg |
---|
| 4102 | make/Templates/Makefile.inc |
---|
[cce81a7] | 4103 | make/compilers/gcc.cfg |
---|
[a50148a] | 4104 | c/Makefile |
---|
| 4105 | c/src/Makefile |
---|
| 4106 | c/src/exec/Makefile |
---|
| 4107 | c/src/exec/score/Makefile |
---|
| 4108 | c/src/exec/score/cpu/Makefile |
---|
[283d7285] | 4109 | c/src/exec/score/include/Makefile |
---|
| 4110 | c/src/exec/score/include/rtems/Makefile |
---|
| 4111 | c/src/exec/score/include/rtems/wrap/Makefile |
---|
| 4112 | c/src/exec/score/include/rtems/score/Makefile |
---|
[566aea7d] | 4113 | c/src/exec/score/${inline_dir}/Makefile |
---|
[283d7285] | 4114 | c/src/exec/score/${inline_dir}/rtems/Makefile |
---|
| 4115 | c/src/exec/score/${inline_dir}/rtems/score/Makefile |
---|
[a50148a] | 4116 | c/src/exec/score/src/Makefile |
---|
| 4117 | c/src/exec/score/tools/Makefile |
---|
[b9ca4ba] | 4118 | c/src/exec/wrapup/Makefile |
---|
| 4119 | c/src/exec/wrapup/rtems/Makefile |
---|
[a50148a] | 4120 | c/src/lib/Makefile |
---|
| 4121 | c/src/lib/include/Makefile |
---|
| 4122 | c/src/lib/libbsp/Makefile |
---|
| 4123 | c/src/lib/libbsp/shmdr/Makefile |
---|
| 4124 | c/src/lib/libc/Makefile |
---|
| 4125 | c/src/lib/libcpu/Makefile |
---|
| 4126 | c/src/lib/start/Makefile |
---|
| 4127 | c/src/lib/wrapup/Makefile |
---|
| 4128 | c/src/tests/Makefile |
---|
| 4129 | c/src/tests/support/Makefile |
---|
| 4130 | c/src/tests/support/include/Makefile |
---|
| 4131 | c/src/tests/support/stubdr/Makefile |
---|
| 4132 | c/src/tests/support/wrapup/Makefile |
---|
| 4133 | c/src/tests/tools/Makefile |
---|
| 4134 | $makefiles |
---|
[04c308c] | 4135 | c/update-tools/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
---|
[254b4450] | 4136 | EOF |
---|
| 4137 | cat >> $CONFIG_STATUS <<EOF |
---|
| 4138 | |
---|
| 4139 | # Protect against being on the right side of a sed subst in config.status. |
---|
| 4140 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
---|
| 4141 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
---|
| 4142 | $ac_vpsub |
---|
| 4143 | $extrasub |
---|
[9ec96478] | 4144 | s%@SHELL@%$SHELL%g |
---|
[254b4450] | 4145 | s%@CFLAGS@%$CFLAGS%g |
---|
| 4146 | s%@CPPFLAGS@%$CPPFLAGS%g |
---|
| 4147 | s%@CXXFLAGS@%$CXXFLAGS%g |
---|
[9ec96478] | 4148 | s%@FFLAGS@%$FFLAGS%g |
---|
[254b4450] | 4149 | s%@DEFS@%$DEFS%g |
---|
| 4150 | s%@LDFLAGS@%$LDFLAGS%g |
---|
| 4151 | s%@LIBS@%$LIBS%g |
---|
| 4152 | s%@exec_prefix@%$exec_prefix%g |
---|
| 4153 | s%@prefix@%$prefix%g |
---|
| 4154 | s%@program_transform_name@%$program_transform_name%g |
---|
| 4155 | s%@bindir@%$bindir%g |
---|
| 4156 | s%@sbindir@%$sbindir%g |
---|
| 4157 | s%@libexecdir@%$libexecdir%g |
---|
| 4158 | s%@datadir@%$datadir%g |
---|
| 4159 | s%@sysconfdir@%$sysconfdir%g |
---|
| 4160 | s%@sharedstatedir@%$sharedstatedir%g |
---|
| 4161 | s%@localstatedir@%$localstatedir%g |
---|
| 4162 | s%@libdir@%$libdir%g |
---|
| 4163 | s%@includedir@%$includedir%g |
---|
| 4164 | s%@oldincludedir@%$oldincludedir%g |
---|
| 4165 | s%@infodir@%$infodir%g |
---|
| 4166 | s%@mandir@%$mandir%g |
---|
[04c308c] | 4167 | s%@RTEMS_TOPdir@%$RTEMS_TOPdir%g |
---|
| 4168 | s%@PROJECT_ROOT@%$PROJECT_ROOT%g |
---|
[254b4450] | 4169 | s%@SET_MAKE@%$SET_MAKE%g |
---|
| 4170 | s%@host@%$host%g |
---|
| 4171 | s%@host_alias@%$host_alias%g |
---|
| 4172 | s%@host_cpu@%$host_cpu%g |
---|
| 4173 | s%@host_vendor@%$host_vendor%g |
---|
| 4174 | s%@host_os@%$host_os%g |
---|
| 4175 | s%@target@%$target%g |
---|
| 4176 | s%@target_alias@%$target_alias%g |
---|
| 4177 | s%@target_cpu@%$target_cpu%g |
---|
| 4178 | s%@target_vendor@%$target_vendor%g |
---|
| 4179 | s%@target_os@%$target_os%g |
---|
| 4180 | s%@build@%$build%g |
---|
| 4181 | s%@build_alias@%$build_alias%g |
---|
| 4182 | s%@build_cpu@%$build_cpu%g |
---|
| 4183 | s%@build_vendor@%$build_vendor%g |
---|
| 4184 | s%@build_os@%$build_os%g |
---|
[7e03d10] | 4185 | s%@RTEMS_USE_OWN_PDIR@%$RTEMS_USE_OWN_PDIR%g |
---|
| 4186 | s%@RTEMS_HAS_MULTIPROCESSING@%$RTEMS_HAS_MULTIPROCESSING%g |
---|
[04c308c] | 4187 | s%@RTEMS_HAS_POSIX_API@%$RTEMS_HAS_POSIX_API%g |
---|
[7e03d10] | 4188 | s%@RTEMS_HAS_NETWORKING@%$RTEMS_HAS_NETWORKING%g |
---|
| 4189 | s%@RTEMS_HAS_RDBG@%$RTEMS_HAS_RDBG%g |
---|
| 4190 | s%@RTEMS_USE_MACROS@%$RTEMS_USE_MACROS%g |
---|
| 4191 | s%@RTEMS_LIBC_DIR@%$RTEMS_LIBC_DIR%g |
---|
[a50148a] | 4192 | s%@CAT@%$CAT%g |
---|
| 4193 | s%@RM@%$RM%g |
---|
| 4194 | s%@CP@%$CP%g |
---|
| 4195 | s%@MV@%$MV%g |
---|
| 4196 | s%@LN@%$LN%g |
---|
[37717818] | 4197 | s%@LN_S@%$LN_S%g |
---|
[a50148a] | 4198 | s%@CHMOD@%$CHMOD%g |
---|
| 4199 | s%@SORT@%$SORT%g |
---|
[4fb08fd] | 4200 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
---|
[9ec96478] | 4201 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
---|
[4fb08fd] | 4202 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
---|
[11cfb6f7] | 4203 | s%@PERL@%$PERL%g |
---|
[a50148a] | 4204 | s%@MKDIR@%$MKDIR%g |
---|
| 4205 | s%@TOUCH@%$TOUCH%g |
---|
| 4206 | s%@CMP@%$CMP%g |
---|
| 4207 | s%@SED@%$SED%g |
---|
| 4208 | s%@M4@%$M4%g |
---|
| 4209 | s%@KSH@%$KSH%g |
---|
[04c308c] | 4210 | s%@RTEMS_HOST@%$RTEMS_HOST%g |
---|
[3771cc6e] | 4211 | s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g |
---|
[fe2401b2] | 4212 | s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g |
---|
[3771cc6e] | 4213 | s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g |
---|
| 4214 | s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g |
---|
| 4215 | s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g |
---|
[98100d2] | 4216 | s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g |
---|
[3771cc6e] | 4217 | s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g |
---|
| 4218 | s%@OBJCOPY_FOR_TARGET@%$OBJCOPY_FOR_TARGET%g |
---|
| 4219 | s%@SIZE_FOR_TARGET@%$SIZE_FOR_TARGET%g |
---|
[692b9f7] | 4220 | s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g |
---|
[7e03d10] | 4221 | s%@RTEMS_GAS_CODE16@%$RTEMS_GAS_CODE16%g |
---|
[fe2401b2] | 4222 | s%@CC@%$CC%g |
---|
[98100d2] | 4223 | s%@EXEEXT@%$EXEEXT%g |
---|
| 4224 | s%@GCCSED@%$GCCSED%g |
---|
[e5f4e5a] | 4225 | s%@RPCGEN@%$RPCGEN%g |
---|
| 4226 | s%@AWK@%$AWK%g |
---|
[9b8baa1] | 4227 | s%@subdirs@%$subdirs%g |
---|
[7e03d10] | 4228 | s%@RTEMS_HAS_HWAPI@%$RTEMS_HAS_HWAPI%g |
---|
[0b76723] | 4229 | s%@rtems_cv_prog_cc_cross@%$rtems_cv_prog_cc_cross%g |
---|
[87cec48] | 4230 | s%@RTEMS_BSP_LIST@%$RTEMS_BSP_LIST%g |
---|
[91333c2] | 4231 | s%@RTEMS_HAS_CPLUSPLUS@%$RTEMS_HAS_CPLUSPLUS%g |
---|
[e412bae] | 4232 | s%@RTEMS_USE_GCC272@%$RTEMS_USE_GCC272%g |
---|
[550ca7d5] | 4233 | s%@BARE_CPU_CFLAGS@%$BARE_CPU_CFLAGS%g |
---|
| 4234 | s%@BARE_CPU_MODEL@%$BARE_CPU_MODEL%g |
---|
[254b4450] | 4235 | s%@program_prefix@%$program_prefix%g |
---|
[cce81a7] | 4236 | s%@CC_CFLAGS_DEFAULT@%$CC_CFLAGS_DEFAULT%g |
---|
| 4237 | s%@CC_CFLAGS_DEBUG_V@%$CC_CFLAGS_DEBUG_V%g |
---|
[946b3cb] | 4238 | s%@CC_CFLAGS_PROFILE_V@%$CC_CFLAGS_PROFILE_V%g |
---|
| 4239 | s%@CC_LDFLAGS_PROFILE_V@%$CC_LDFLAGS_PROFILE_V%g |
---|
[254b4450] | 4240 | |
---|
| 4241 | CEOF |
---|
| 4242 | EOF |
---|
| 4243 | |
---|
| 4244 | cat >> $CONFIG_STATUS <<\EOF |
---|
| 4245 | |
---|
| 4246 | # Split the substitutions into bite-sized pieces for seds with |
---|
| 4247 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
| 4248 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
---|
| 4249 | ac_file=1 # Number of current file. |
---|
| 4250 | ac_beg=1 # First line for current file. |
---|
| 4251 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
---|
| 4252 | ac_more_lines=: |
---|
| 4253 | ac_sed_cmds="" |
---|
| 4254 | while $ac_more_lines; do |
---|
| 4255 | if test $ac_beg -gt 1; then |
---|
| 4256 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
| 4257 | else |
---|
| 4258 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
| 4259 | fi |
---|
| 4260 | if test ! -s conftest.s$ac_file; then |
---|
| 4261 | ac_more_lines=false |
---|
| 4262 | rm -f conftest.s$ac_file |
---|
| 4263 | else |
---|
| 4264 | if test -z "$ac_sed_cmds"; then |
---|
| 4265 | ac_sed_cmds="sed -f conftest.s$ac_file" |
---|
| 4266 | else |
---|
| 4267 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
---|
| 4268 | fi |
---|
| 4269 | ac_file=`expr $ac_file + 1` |
---|
| 4270 | ac_beg=$ac_end |
---|
| 4271 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
---|
| 4272 | fi |
---|
| 4273 | done |
---|
| 4274 | if test -z "$ac_sed_cmds"; then |
---|
| 4275 | ac_sed_cmds=cat |
---|
| 4276 | fi |
---|
| 4277 | EOF |
---|
| 4278 | |
---|
| 4279 | cat >> $CONFIG_STATUS <<EOF |
---|
| 4280 | |
---|
[a50148a] | 4281 | CONFIG_FILES=\${CONFIG_FILES-"Makefile |
---|
[3771cc6e] | 4282 | make/host.cfg |
---|
| 4283 | make/target.cfg |
---|
| 4284 | make/Templates/Makefile.inc |
---|
[cce81a7] | 4285 | make/compilers/gcc.cfg |
---|
[a50148a] | 4286 | c/Makefile |
---|
| 4287 | c/src/Makefile |
---|
| 4288 | c/src/exec/Makefile |
---|
| 4289 | c/src/exec/score/Makefile |
---|
| 4290 | c/src/exec/score/cpu/Makefile |
---|
[283d7285] | 4291 | c/src/exec/score/include/Makefile |
---|
| 4292 | c/src/exec/score/include/rtems/Makefile |
---|
| 4293 | c/src/exec/score/include/rtems/wrap/Makefile |
---|
| 4294 | c/src/exec/score/include/rtems/score/Makefile |
---|
[566aea7d] | 4295 | c/src/exec/score/${inline_dir}/Makefile |
---|
[283d7285] | 4296 | c/src/exec/score/${inline_dir}/rtems/Makefile |
---|
| 4297 | c/src/exec/score/${inline_dir}/rtems/score/Makefile |
---|
[a50148a] | 4298 | c/src/exec/score/src/Makefile |
---|
| 4299 | c/src/exec/score/tools/Makefile |
---|
[b9ca4ba] | 4300 | c/src/exec/wrapup/Makefile |
---|
| 4301 | c/src/exec/wrapup/rtems/Makefile |
---|
[a50148a] | 4302 | c/src/lib/Makefile |
---|
| 4303 | c/src/lib/include/Makefile |
---|
| 4304 | c/src/lib/libbsp/Makefile |
---|
| 4305 | c/src/lib/libbsp/shmdr/Makefile |
---|
| 4306 | c/src/lib/libc/Makefile |
---|
| 4307 | c/src/lib/libcpu/Makefile |
---|
| 4308 | c/src/lib/start/Makefile |
---|
| 4309 | c/src/lib/wrapup/Makefile |
---|
| 4310 | c/src/tests/Makefile |
---|
| 4311 | c/src/tests/support/Makefile |
---|
| 4312 | c/src/tests/support/include/Makefile |
---|
| 4313 | c/src/tests/support/stubdr/Makefile |
---|
| 4314 | c/src/tests/support/wrapup/Makefile |
---|
| 4315 | c/src/tests/tools/Makefile |
---|
| 4316 | $makefiles |
---|
[1670eede] | 4317 | c/update-tools/Makefile"} |
---|
[254b4450] | 4318 | EOF |
---|
| 4319 | cat >> $CONFIG_STATUS <<\EOF |
---|
| 4320 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
---|
| 4321 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 4322 | case "$ac_file" in |
---|
| 4323 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
| 4324 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
| 4325 | *) ac_file_in="${ac_file}.in" ;; |
---|
| 4326 | esac |
---|
| 4327 | |
---|
| 4328 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
---|
| 4329 | |
---|
| 4330 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
| 4331 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
| 4332 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
| 4333 | # The file is in a subdirectory. |
---|
| 4334 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
| 4335 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
---|
| 4336 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 4337 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
| 4338 | else |
---|
| 4339 | ac_dir_suffix= ac_dots= |
---|
| 4340 | fi |
---|
| 4341 | |
---|
| 4342 | case "$ac_given_srcdir" in |
---|
| 4343 | .) srcdir=. |
---|
| 4344 | if test -z "$ac_dots"; then top_srcdir=. |
---|
| 4345 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
---|
| 4346 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
---|
| 4347 | *) # Relative path. |
---|
| 4348 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
---|
| 4349 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
---|
| 4350 | esac |
---|
| 4351 | |
---|
[4fb08fd] | 4352 | case "$ac_given_INSTALL" in |
---|
| 4353 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
| 4354 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
| 4355 | esac |
---|
[254b4450] | 4356 | |
---|
| 4357 | echo creating "$ac_file" |
---|
| 4358 | rm -f "$ac_file" |
---|
| 4359 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
---|
| 4360 | case "$ac_file" in |
---|
| 4361 | *Makefile*) ac_comsub="1i\\ |
---|
| 4362 | # $configure_input" ;; |
---|
| 4363 | *) ac_comsub= ;; |
---|
| 4364 | esac |
---|
| 4365 | |
---|
| 4366 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
| 4367 | sed -e "$ac_comsub |
---|
| 4368 | s%@configure_input@%$configure_input%g |
---|
| 4369 | s%@srcdir@%$srcdir%g |
---|
| 4370 | s%@top_srcdir@%$top_srcdir%g |
---|
[4fb08fd] | 4371 | s%@INSTALL@%$INSTALL%g |
---|
[254b4450] | 4372 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
---|
| 4373 | fi; done |
---|
| 4374 | rm -f conftest.s* |
---|
| 4375 | |
---|
[bb9084db] | 4376 | EOF |
---|
| 4377 | cat >> $CONFIG_STATUS <<EOF |
---|
[04c308c] | 4378 | |
---|
[bb9084db] | 4379 | EOF |
---|
| 4380 | cat >> $CONFIG_STATUS <<\EOF |
---|
| 4381 | |
---|
[04c308c] | 4382 | exit 0 |
---|
| 4383 | EOF |
---|
| 4384 | chmod +x $CONFIG_STATUS |
---|
| 4385 | rm -fr confdefs* $ac_clean_files |
---|
| 4386 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
---|
[bb9084db] | 4387 | |
---|
[04c308c] | 4388 | if test "$no_recursion" != yes; then |
---|
[bb9084db] | 4389 | |
---|
[04c308c] | 4390 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
---|
| 4391 | ac_sub_configure_args= |
---|
| 4392 | ac_prev= |
---|
| 4393 | for ac_arg in $ac_configure_args; do |
---|
| 4394 | if test -n "$ac_prev"; then |
---|
| 4395 | ac_prev= |
---|
| 4396 | continue |
---|
| 4397 | fi |
---|
| 4398 | case "$ac_arg" in |
---|
| 4399 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 4400 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 4401 | ac_prev=cache_file ;; |
---|
| 4402 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 4403 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 4404 | ;; |
---|
| 4405 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 4406 | ac_prev=srcdir ;; |
---|
| 4407 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 4408 | ;; |
---|
| 4409 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
---|
| 4410 | esac |
---|
| 4411 | done |
---|
[bb9084db] | 4412 | |
---|
[9b8baa1] | 4413 | for ac_config_dir in c/src/tests/tools/generic c/build-tools $scoretools_cfgdirs $bsptools_cfgdirs; do |
---|
[bb9084db] | 4414 | |
---|
[04c308c] | 4415 | # Do not complain, so a configure script can configure whichever |
---|
| 4416 | # parts of a large source tree are present. |
---|
| 4417 | if test ! -d $srcdir/$ac_config_dir; then |
---|
| 4418 | continue |
---|
| 4419 | fi |
---|
[bb9084db] | 4420 | |
---|
[04c308c] | 4421 | echo configuring in $ac_config_dir |
---|
[bb9084db] | 4422 | |
---|
[04c308c] | 4423 | case "$srcdir" in |
---|
| 4424 | .) ;; |
---|
| 4425 | *) |
---|
| 4426 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
---|
| 4427 | else |
---|
| 4428 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } |
---|
| 4429 | fi |
---|
| 4430 | ;; |
---|
| 4431 | esac |
---|
| 4432 | |
---|
| 4433 | ac_popdir=`pwd` |
---|
| 4434 | cd $ac_config_dir |
---|
| 4435 | |
---|
| 4436 | # A "../" for each directory in /$ac_config_dir. |
---|
| 4437 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` |
---|
| 4438 | |
---|
| 4439 | case "$srcdir" in |
---|
| 4440 | .) # No --srcdir option. We are building in place. |
---|
| 4441 | ac_sub_srcdir=$srcdir ;; |
---|
| 4442 | /*) # Absolute path. |
---|
| 4443 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; |
---|
| 4444 | *) # Relative path. |
---|
| 4445 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
---|
| 4446 | esac |
---|
| 4447 | |
---|
| 4448 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
| 4449 | if test -f $ac_sub_srcdir/configure; then |
---|
| 4450 | ac_sub_configure=$ac_sub_srcdir/configure |
---|
| 4451 | elif test -f $ac_sub_srcdir/configure.in; then |
---|
| 4452 | ac_sub_configure=$ac_configure |
---|
| 4453 | else |
---|
| 4454 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
---|
| 4455 | ac_sub_configure= |
---|
[bb9084db] | 4456 | fi |
---|
| 4457 | |
---|
[04c308c] | 4458 | # The recursion is here. |
---|
| 4459 | if test -n "$ac_sub_configure"; then |
---|
[254b4450] | 4460 | |
---|
[04c308c] | 4461 | # Make the cache file name correct relative to the subdirectory. |
---|
| 4462 | case "$cache_file" in |
---|
| 4463 | /*) ac_sub_cache_file=$cache_file ;; |
---|
| 4464 | *) # Relative path. |
---|
| 4465 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
---|
| 4466 | esac |
---|
| 4467 | case "$ac_given_INSTALL" in |
---|
| 4468 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
| 4469 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
| 4470 | esac |
---|
| 4471 | |
---|
| 4472 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
---|
| 4473 | # The eval makes quoting arguments work. |
---|
| 4474 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
---|
| 4475 | then : |
---|
| 4476 | else |
---|
| 4477 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } |
---|
| 4478 | fi |
---|
| 4479 | fi |
---|
[254b4450] | 4480 | |
---|
[04c308c] | 4481 | cd $ac_popdir |
---|
| 4482 | done |
---|
| 4483 | fi |
---|
[254b4450] | 4484 | |
---|
| 4485 | |
---|
| 4486 | echo |
---|
| 4487 | echo target architecture: $target_cpu. |
---|
| 4488 | echo available BSPs: $rtems_bsp. |
---|
[87cec48] | 4489 | echo \'make all\' will build the following BSPs: $RTEMS_BSP_LIST. |
---|
| 4490 | echo other BSPs can be built with \'make RTEMS_BSP=\"bsp1 bsp2 ...\"\' |
---|
[254b4450] | 4491 | echo |
---|