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