[254b4450] | 1 | #! /bin/sh |
---|
| 2 | |
---|
| 3 | # Guess values for system-dependent variables and create Makefiles. |
---|
| 4 | # Generated automatically using autoconf version 2.12 |
---|
| 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
---|
| 6 | # |
---|
| 7 | # This configure script is free software; the Free Software Foundation |
---|
| 8 | # gives unlimited permission to copy, distribute and modify it. |
---|
| 9 | |
---|
| 10 | # Defaults: |
---|
| 11 | ac_help= |
---|
| 12 | ac_default_prefix=/usr/local |
---|
| 13 | # Any additions from configure.in: |
---|
| 14 | ac_help="$ac_help |
---|
| 15 | --with-cross-host=HOST host (cygnus)" |
---|
| 16 | ac_help="$ac_help |
---|
[91333c2] | 17 | \ |
---|
| 18 | --enable-gmake-print-directory enable GNU Make's print directory" |
---|
| 19 | ac_help="$ac_help |
---|
[254b4450] | 20 | \ |
---|
[ba1a2af9] | 21 | --enable-posix enable posix interface" |
---|
[254b4450] | 22 | ac_help="$ac_help |
---|
[1f0f3e35] | 23 | \ |
---|
[ba1a2af9] | 24 | --enable-ka9q enable KA9Q TCP/IP stack" |
---|
[1f0f3e35] | 25 | ac_help="$ac_help |
---|
[254b4450] | 26 | \ |
---|
[ba1a2af9] | 27 | --enable-rtems-inlines enable RTEMS inline functions (use macros)" |
---|
[254b4450] | 28 | ac_help="$ac_help |
---|
[91333c2] | 29 | \ |
---|
[3771cc6e] | 30 | --enable-cxx enable C++ support, and build the rtems++ library" |
---|
[91333c2] | 31 | ac_help="$ac_help |
---|
[e412bae] | 32 | \ |
---|
| 33 | --enable-gcc28 enable use of gcc 2.8.x features" |
---|
| 34 | ac_help="$ac_help |
---|
| 35 | \ |
---|
| 36 | --enable-libcdir=directory set the directory for the C library" |
---|
| 37 | ac_help="$ac_help |
---|
[254b4450] | 38 | \ |
---|
[b9ca4ba] | 39 | --enable-rtemsbsp=bsp1 bsp2 .. BSPs to include in build" |
---|
[254b4450] | 40 | ac_help="$ac_help |
---|
[d4cf164] | 41 | \ |
---|
[b9ca4ba] | 42 | --enable-tests enable tests" |
---|
[d4cf164] | 43 | ac_help="$ac_help |
---|
[254b4450] | 44 | \ |
---|
[b9ca4ba] | 45 | --enable-hwapi enable hardware API library" |
---|
[254b4450] | 46 | |
---|
| 47 | # Initialize some variables set by options. |
---|
| 48 | # The variables have the same names as the options, with |
---|
| 49 | # dashes changed to underlines. |
---|
| 50 | build=NONE |
---|
| 51 | cache_file=./config.cache |
---|
| 52 | exec_prefix=NONE |
---|
| 53 | host=NONE |
---|
| 54 | no_create= |
---|
| 55 | nonopt=NONE |
---|
| 56 | no_recursion= |
---|
| 57 | prefix=NONE |
---|
| 58 | program_prefix=NONE |
---|
| 59 | program_suffix=NONE |
---|
| 60 | program_transform_name=s,x,x, |
---|
| 61 | silent= |
---|
| 62 | site= |
---|
| 63 | srcdir= |
---|
| 64 | target=NONE |
---|
| 65 | verbose= |
---|
| 66 | x_includes=NONE |
---|
| 67 | x_libraries=NONE |
---|
| 68 | bindir='${exec_prefix}/bin' |
---|
| 69 | sbindir='${exec_prefix}/sbin' |
---|
| 70 | libexecdir='${exec_prefix}/libexec' |
---|
| 71 | datadir='${prefix}/share' |
---|
| 72 | sysconfdir='${prefix}/etc' |
---|
| 73 | sharedstatedir='${prefix}/com' |
---|
| 74 | localstatedir='${prefix}/var' |
---|
| 75 | libdir='${exec_prefix}/lib' |
---|
| 76 | includedir='${prefix}/include' |
---|
| 77 | oldincludedir='/usr/include' |
---|
| 78 | infodir='${prefix}/info' |
---|
| 79 | mandir='${prefix}/man' |
---|
| 80 | |
---|
| 81 | # Initialize some other variables. |
---|
| 82 | subdirs= |
---|
| 83 | MFLAGS= MAKEFLAGS= |
---|
| 84 | # Maximum number of lines to put in a shell here document. |
---|
| 85 | ac_max_here_lines=12 |
---|
| 86 | |
---|
| 87 | ac_prev= |
---|
| 88 | for ac_option |
---|
| 89 | do |
---|
| 90 | |
---|
| 91 | # If the previous option needs an argument, assign it. |
---|
| 92 | if test -n "$ac_prev"; then |
---|
| 93 | eval "$ac_prev=\$ac_option" |
---|
| 94 | ac_prev= |
---|
| 95 | continue |
---|
| 96 | fi |
---|
| 97 | |
---|
| 98 | case "$ac_option" in |
---|
| 99 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
| 100 | *) ac_optarg= ;; |
---|
| 101 | esac |
---|
| 102 | |
---|
| 103 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
| 104 | |
---|
| 105 | case "$ac_option" in |
---|
| 106 | |
---|
| 107 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
| 108 | ac_prev=bindir ;; |
---|
| 109 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
| 110 | bindir="$ac_optarg" ;; |
---|
| 111 | |
---|
| 112 | -build | --build | --buil | --bui | --bu) |
---|
| 113 | ac_prev=build ;; |
---|
| 114 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
| 115 | build="$ac_optarg" ;; |
---|
| 116 | |
---|
| 117 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 118 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 119 | ac_prev=cache_file ;; |
---|
| 120 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 121 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 122 | cache_file="$ac_optarg" ;; |
---|
| 123 | |
---|
| 124 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
| 125 | ac_prev=datadir ;; |
---|
| 126 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
| 127 | | --da=*) |
---|
| 128 | datadir="$ac_optarg" ;; |
---|
| 129 | |
---|
| 130 | -disable-* | --disable-*) |
---|
| 131 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
---|
| 132 | # Reject names that are not valid shell variable names. |
---|
| 133 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
| 134 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
| 135 | fi |
---|
| 136 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
| 137 | eval "enable_${ac_feature}=no" ;; |
---|
| 138 | |
---|
| 139 | -enable-* | --enable-*) |
---|
| 140 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
---|
| 141 | # Reject names that are not valid shell variable names. |
---|
| 142 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
| 143 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
| 144 | fi |
---|
| 145 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
| 146 | case "$ac_option" in |
---|
| 147 | *=*) ;; |
---|
| 148 | *) ac_optarg=yes ;; |
---|
| 149 | esac |
---|
| 150 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
---|
| 151 | |
---|
| 152 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
| 153 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
| 154 | | --exec | --exe | --ex) |
---|
| 155 | ac_prev=exec_prefix ;; |
---|
| 156 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
| 157 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
| 158 | | --exec=* | --exe=* | --ex=*) |
---|
| 159 | exec_prefix="$ac_optarg" ;; |
---|
| 160 | |
---|
| 161 | -gas | --gas | --ga | --g) |
---|
| 162 | # Obsolete; use --with-gas. |
---|
| 163 | with_gas=yes ;; |
---|
| 164 | |
---|
| 165 | -help | --help | --hel | --he) |
---|
| 166 | # Omit some internal or obsolete options to make the list less imposing. |
---|
| 167 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
| 168 | cat << EOF |
---|
| 169 | Usage: configure [options] [host] |
---|
| 170 | Options: [defaults in brackets after descriptions] |
---|
| 171 | Configuration: |
---|
| 172 | --cache-file=FILE cache test results in FILE |
---|
| 173 | --help print this message |
---|
| 174 | --no-create do not create output files |
---|
| 175 | --quiet, --silent do not print \`checking...' messages |
---|
| 176 | --version print the version of autoconf that created configure |
---|
| 177 | Directory and file names: |
---|
| 178 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
| 179 | [$ac_default_prefix] |
---|
| 180 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
| 181 | [same as prefix] |
---|
| 182 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
---|
| 183 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
---|
| 184 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
---|
| 185 | --datadir=DIR read-only architecture-independent data in DIR |
---|
| 186 | [PREFIX/share] |
---|
| 187 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
---|
| 188 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
---|
| 189 | [PREFIX/com] |
---|
| 190 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
---|
| 191 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
---|
| 192 | --includedir=DIR C header files in DIR [PREFIX/include] |
---|
| 193 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
---|
| 194 | --infodir=DIR info documentation in DIR [PREFIX/info] |
---|
| 195 | --mandir=DIR man documentation in DIR [PREFIX/man] |
---|
| 196 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
---|
| 197 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
| 198 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
| 199 | --program-transform-name=PROGRAM |
---|
| 200 | run sed PROGRAM on installed program names |
---|
| 201 | EOF |
---|
| 202 | cat << EOF |
---|
| 203 | Host type: |
---|
| 204 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
---|
| 205 | --host=HOST configure for HOST [guessed] |
---|
| 206 | --target=TARGET configure for TARGET [TARGET=HOST] |
---|
| 207 | Features and packages: |
---|
| 208 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
| 209 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
| 210 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
| 211 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
| 212 | --x-includes=DIR X include files are in DIR |
---|
| 213 | --x-libraries=DIR X library files are in DIR |
---|
| 214 | EOF |
---|
| 215 | if test -n "$ac_help"; then |
---|
| 216 | echo "--enable and --with options recognized:$ac_help" |
---|
| 217 | fi |
---|
| 218 | exit 0 ;; |
---|
| 219 | |
---|
| 220 | -host | --host | --hos | --ho) |
---|
| 221 | ac_prev=host ;; |
---|
| 222 | -host=* | --host=* | --hos=* | --ho=*) |
---|
| 223 | host="$ac_optarg" ;; |
---|
| 224 | |
---|
| 225 | -includedir | --includedir | --includedi | --included | --include \ |
---|
| 226 | | --includ | --inclu | --incl | --inc) |
---|
| 227 | ac_prev=includedir ;; |
---|
| 228 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
| 229 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
| 230 | includedir="$ac_optarg" ;; |
---|
| 231 | |
---|
| 232 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
| 233 | ac_prev=infodir ;; |
---|
| 234 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
| 235 | infodir="$ac_optarg" ;; |
---|
| 236 | |
---|
| 237 | -libdir | --libdir | --libdi | --libd) |
---|
| 238 | ac_prev=libdir ;; |
---|
| 239 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
| 240 | libdir="$ac_optarg" ;; |
---|
| 241 | |
---|
| 242 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
| 243 | | --libexe | --libex | --libe) |
---|
| 244 | ac_prev=libexecdir ;; |
---|
| 245 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
| 246 | | --libexe=* | --libex=* | --libe=*) |
---|
| 247 | libexecdir="$ac_optarg" ;; |
---|
| 248 | |
---|
| 249 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
| 250 | | --localstate | --localstat | --localsta | --localst \ |
---|
| 251 | | --locals | --local | --loca | --loc | --lo) |
---|
| 252 | ac_prev=localstatedir ;; |
---|
| 253 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
| 254 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
| 255 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
| 256 | localstatedir="$ac_optarg" ;; |
---|
| 257 | |
---|
| 258 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
| 259 | ac_prev=mandir ;; |
---|
| 260 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
| 261 | mandir="$ac_optarg" ;; |
---|
| 262 | |
---|
| 263 | -nfp | --nfp | --nf) |
---|
| 264 | # Obsolete; use --without-fp. |
---|
| 265 | with_fp=no ;; |
---|
| 266 | |
---|
| 267 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 268 | | --no-cr | --no-c) |
---|
| 269 | no_create=yes ;; |
---|
| 270 | |
---|
| 271 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 272 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
| 273 | no_recursion=yes ;; |
---|
| 274 | |
---|
| 275 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
| 276 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
| 277 | | --oldin | --oldi | --old | --ol | --o) |
---|
| 278 | ac_prev=oldincludedir ;; |
---|
| 279 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
| 280 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
| 281 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
| 282 | oldincludedir="$ac_optarg" ;; |
---|
| 283 | |
---|
| 284 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
| 285 | ac_prev=prefix ;; |
---|
| 286 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
| 287 | prefix="$ac_optarg" ;; |
---|
| 288 | |
---|
| 289 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
| 290 | | --program-pre | --program-pr | --program-p) |
---|
| 291 | ac_prev=program_prefix ;; |
---|
| 292 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
| 293 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
| 294 | program_prefix="$ac_optarg" ;; |
---|
| 295 | |
---|
| 296 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
| 297 | | --program-suf | --program-su | --program-s) |
---|
| 298 | ac_prev=program_suffix ;; |
---|
| 299 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
| 300 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
| 301 | program_suffix="$ac_optarg" ;; |
---|
| 302 | |
---|
| 303 | -program-transform-name | --program-transform-name \ |
---|
| 304 | | --program-transform-nam | --program-transform-na \ |
---|
| 305 | | --program-transform-n | --program-transform- \ |
---|
| 306 | | --program-transform | --program-transfor \ |
---|
| 307 | | --program-transfo | --program-transf \ |
---|
| 308 | | --program-trans | --program-tran \ |
---|
| 309 | | --progr-tra | --program-tr | --program-t) |
---|
| 310 | ac_prev=program_transform_name ;; |
---|
| 311 | -program-transform-name=* | --program-transform-name=* \ |
---|
| 312 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
| 313 | | --program-transform-n=* | --program-transform-=* \ |
---|
| 314 | | --program-transform=* | --program-transfor=* \ |
---|
| 315 | | --program-transfo=* | --program-transf=* \ |
---|
| 316 | | --program-trans=* | --program-tran=* \ |
---|
| 317 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
| 318 | program_transform_name="$ac_optarg" ;; |
---|
| 319 | |
---|
| 320 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 321 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 322 | silent=yes ;; |
---|
| 323 | |
---|
| 324 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
| 325 | ac_prev=sbindir ;; |
---|
| 326 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
| 327 | | --sbi=* | --sb=*) |
---|
| 328 | sbindir="$ac_optarg" ;; |
---|
| 329 | |
---|
| 330 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
| 331 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
| 332 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
| 333 | | --sha | --sh) |
---|
| 334 | ac_prev=sharedstatedir ;; |
---|
| 335 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
| 336 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
| 337 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
| 338 | | --sha=* | --sh=*) |
---|
| 339 | sharedstatedir="$ac_optarg" ;; |
---|
| 340 | |
---|
| 341 | -site | --site | --sit) |
---|
| 342 | ac_prev=site ;; |
---|
| 343 | -site=* | --site=* | --sit=*) |
---|
| 344 | site="$ac_optarg" ;; |
---|
| 345 | |
---|
| 346 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 347 | ac_prev=srcdir ;; |
---|
| 348 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 349 | srcdir="$ac_optarg" ;; |
---|
| 350 | |
---|
| 351 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
| 352 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
| 353 | ac_prev=sysconfdir ;; |
---|
| 354 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
| 355 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
| 356 | sysconfdir="$ac_optarg" ;; |
---|
| 357 | |
---|
| 358 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
| 359 | ac_prev=target ;; |
---|
| 360 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
| 361 | target="$ac_optarg" ;; |
---|
| 362 | |
---|
| 363 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
| 364 | verbose=yes ;; |
---|
| 365 | |
---|
| 366 | -version | --version | --versio | --versi | --vers) |
---|
| 367 | echo "configure generated by autoconf version 2.12" |
---|
| 368 | exit 0 ;; |
---|
| 369 | |
---|
| 370 | -with-* | --with-*) |
---|
| 371 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
---|
| 372 | # Reject names that are not valid shell variable names. |
---|
| 373 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
| 374 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
| 375 | fi |
---|
| 376 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
| 377 | case "$ac_option" in |
---|
| 378 | *=*) ;; |
---|
| 379 | *) ac_optarg=yes ;; |
---|
| 380 | esac |
---|
| 381 | eval "with_${ac_package}='$ac_optarg'" ;; |
---|
| 382 | |
---|
| 383 | -without-* | --without-*) |
---|
| 384 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
---|
| 385 | # Reject names that are not valid shell variable names. |
---|
| 386 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
| 387 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
| 388 | fi |
---|
| 389 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
| 390 | eval "with_${ac_package}=no" ;; |
---|
| 391 | |
---|
| 392 | --x) |
---|
| 393 | # Obsolete; use --with-x. |
---|
| 394 | with_x=yes ;; |
---|
| 395 | |
---|
| 396 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
| 397 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
| 398 | ac_prev=x_includes ;; |
---|
| 399 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
| 400 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
| 401 | x_includes="$ac_optarg" ;; |
---|
| 402 | |
---|
| 403 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
| 404 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
| 405 | ac_prev=x_libraries ;; |
---|
| 406 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
| 407 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
| 408 | x_libraries="$ac_optarg" ;; |
---|
| 409 | |
---|
| 410 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
---|
| 411 | ;; |
---|
| 412 | |
---|
| 413 | *) |
---|
| 414 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
---|
| 415 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
---|
| 416 | fi |
---|
| 417 | if test "x$nonopt" != xNONE; then |
---|
| 418 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
---|
| 419 | fi |
---|
| 420 | nonopt="$ac_option" |
---|
| 421 | ;; |
---|
| 422 | |
---|
| 423 | esac |
---|
| 424 | done |
---|
| 425 | |
---|
| 426 | if test -n "$ac_prev"; then |
---|
| 427 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
---|
| 428 | fi |
---|
| 429 | |
---|
| 430 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
| 431 | |
---|
| 432 | # File descriptor usage: |
---|
| 433 | # 0 standard input |
---|
| 434 | # 1 file creation |
---|
| 435 | # 2 errors and warnings |
---|
| 436 | # 3 some systems may open it to /dev/tty |
---|
| 437 | # 4 used on the Kubota Titan |
---|
| 438 | # 6 checking for... messages and results |
---|
| 439 | # 5 compiler messages saved in config.log |
---|
| 440 | if test "$silent" = yes; then |
---|
| 441 | exec 6>/dev/null |
---|
| 442 | else |
---|
| 443 | exec 6>&1 |
---|
| 444 | fi |
---|
| 445 | exec 5>./config.log |
---|
| 446 | |
---|
| 447 | echo "\ |
---|
| 448 | This file contains any messages produced by compilers while |
---|
| 449 | running configure, to aid debugging if configure makes a mistake. |
---|
| 450 | " 1>&5 |
---|
| 451 | |
---|
| 452 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 453 | # Also quote any args containing shell metacharacters. |
---|
| 454 | ac_configure_args= |
---|
| 455 | for ac_arg |
---|
| 456 | do |
---|
| 457 | case "$ac_arg" in |
---|
| 458 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 459 | | --no-cr | --no-c) ;; |
---|
| 460 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 461 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
---|
| 462 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
---|
| 463 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
| 464 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
---|
| 465 | esac |
---|
| 466 | done |
---|
| 467 | |
---|
| 468 | # NLS nuisances. |
---|
| 469 | # Only set these to C if already set. These must not be set unconditionally |
---|
| 470 | # because not all systems understand e.g. LANG=C (notably SCO). |
---|
| 471 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
---|
| 472 | # Non-C LC_CTYPE values break the ctype check. |
---|
| 473 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
---|
| 474 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
---|
| 475 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
---|
| 476 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
---|
| 477 | |
---|
| 478 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 479 | rm -rf conftest* confdefs.h |
---|
| 480 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
| 481 | echo > confdefs.h |
---|
| 482 | |
---|
| 483 | # A filename unique to this package, relative to the directory that |
---|
| 484 | # configure is in, which we can look for to find out if srcdir is correct. |
---|
| 485 | ac_unique_file=README |
---|
| 486 | |
---|
| 487 | # Find the source files, if location was not specified. |
---|
| 488 | if test -z "$srcdir"; then |
---|
| 489 | ac_srcdir_defaulted=yes |
---|
| 490 | # Try the directory containing this script, then its parent. |
---|
| 491 | ac_prog=$0 |
---|
| 492 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
---|
| 493 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
---|
| 494 | srcdir=$ac_confdir |
---|
| 495 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 496 | srcdir=.. |
---|
| 497 | fi |
---|
| 498 | else |
---|
| 499 | ac_srcdir_defaulted=no |
---|
| 500 | fi |
---|
| 501 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 502 | if test "$ac_srcdir_defaulted" = yes; then |
---|
| 503 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
---|
| 504 | else |
---|
| 505 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
---|
| 506 | fi |
---|
| 507 | fi |
---|
| 508 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
---|
| 509 | |
---|
| 510 | # Prefer explicitly selected file to automatically selected ones. |
---|
| 511 | if test -z "$CONFIG_SITE"; then |
---|
| 512 | if test "x$prefix" != xNONE; then |
---|
| 513 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
| 514 | else |
---|
| 515 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
| 516 | fi |
---|
| 517 | fi |
---|
| 518 | for ac_site_file in $CONFIG_SITE; do |
---|
| 519 | if test -r "$ac_site_file"; then |
---|
| 520 | echo "loading site script $ac_site_file" |
---|
| 521 | . "$ac_site_file" |
---|
| 522 | fi |
---|
| 523 | done |
---|
| 524 | |
---|
| 525 | if test -r "$cache_file"; then |
---|
| 526 | echo "loading cache $cache_file" |
---|
| 527 | . $cache_file |
---|
| 528 | else |
---|
| 529 | echo "creating cache $cache_file" |
---|
| 530 | > $cache_file |
---|
| 531 | fi |
---|
| 532 | |
---|
| 533 | ac_ext=c |
---|
| 534 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 535 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 536 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 537 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 538 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 539 | |
---|
| 540 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
| 541 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
---|
| 542 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
| 543 | ac_n= ac_c=' |
---|
| 544 | ' ac_t=' ' |
---|
| 545 | else |
---|
| 546 | ac_n=-n ac_c= ac_t= |
---|
| 547 | fi |
---|
| 548 | else |
---|
| 549 | ac_n= ac_c='\c' ac_t= |
---|
| 550 | fi |
---|
| 551 | |
---|
| 552 | |
---|
| 553 | |
---|
| 554 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
---|
[37717818] | 555 | echo "configure:556: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
---|
[254b4450] | 556 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
---|
| 557 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
---|
| 558 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 559 | else |
---|
| 560 | cat > conftestmake <<\EOF |
---|
| 561 | all: |
---|
| 562 | @echo 'ac_maketemp="${MAKE}"' |
---|
| 563 | EOF |
---|
| 564 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
| 565 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
---|
| 566 | if test -n "$ac_maketemp"; then |
---|
| 567 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
| 568 | else |
---|
| 569 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
| 570 | fi |
---|
| 571 | rm -f conftestmake |
---|
| 572 | fi |
---|
| 573 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
| 574 | echo "$ac_t""yes" 1>&6 |
---|
| 575 | SET_MAKE= |
---|
| 576 | else |
---|
| 577 | echo "$ac_t""no" 1>&6 |
---|
| 578 | SET_MAKE="MAKE=${MAKE-make}" |
---|
| 579 | fi |
---|
| 580 | |
---|
| 581 | ac_aux_dir= |
---|
| 582 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
| 583 | if test -f $ac_dir/install-sh; then |
---|
| 584 | ac_aux_dir=$ac_dir |
---|
| 585 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
| 586 | break |
---|
| 587 | elif test -f $ac_dir/install.sh; then |
---|
| 588 | ac_aux_dir=$ac_dir |
---|
| 589 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
| 590 | break |
---|
| 591 | fi |
---|
| 592 | done |
---|
| 593 | if test -z "$ac_aux_dir"; then |
---|
| 594 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
---|
| 595 | fi |
---|
| 596 | ac_config_guess=$ac_aux_dir/config.guess |
---|
| 597 | ac_config_sub=$ac_aux_dir/config.sub |
---|
| 598 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
---|
| 599 | |
---|
| 600 | |
---|
| 601 | # Do some error checking and defaulting for the host and target type. |
---|
| 602 | # The inputs are: |
---|
| 603 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT |
---|
| 604 | # |
---|
| 605 | # The rules are: |
---|
| 606 | # 1. You are not allowed to specify --host, --target, and nonopt at the |
---|
| 607 | # same time. |
---|
| 608 | # 2. Host defaults to nonopt. |
---|
| 609 | # 3. If nonopt is not specified, then host defaults to the current host, |
---|
| 610 | # as determined by config.guess. |
---|
| 611 | # 4. Target and build default to nonopt. |
---|
| 612 | # 5. If nonopt is not specified, then target and build default to host. |
---|
| 613 | |
---|
| 614 | # The aliases save the names the user supplied, while $host etc. |
---|
| 615 | # will get canonicalized. |
---|
| 616 | case $host---$target---$nonopt in |
---|
| 617 | NONE---*---* | *---NONE---* | *---*---NONE) ;; |
---|
| 618 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; |
---|
| 619 | esac |
---|
| 620 | |
---|
| 621 | |
---|
| 622 | # Make sure we can run config.sub. |
---|
| 623 | if $ac_config_sub sun4 >/dev/null 2>&1; then : |
---|
| 624 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
---|
| 625 | fi |
---|
| 626 | |
---|
| 627 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
---|
[37717818] | 628 | echo "configure:629: checking host system type" >&5 |
---|
[254b4450] | 629 | |
---|
| 630 | host_alias=$host |
---|
| 631 | case "$host_alias" in |
---|
| 632 | NONE) |
---|
| 633 | case $nonopt in |
---|
| 634 | NONE) |
---|
| 635 | if host_alias=`$ac_config_guess`; then : |
---|
| 636 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
---|
| 637 | fi ;; |
---|
| 638 | *) host_alias=$nonopt ;; |
---|
| 639 | esac ;; |
---|
| 640 | esac |
---|
| 641 | |
---|
| 642 | host=`$ac_config_sub $host_alias` |
---|
| 643 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 644 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 645 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 646 | echo "$ac_t""$host" 1>&6 |
---|
| 647 | |
---|
| 648 | echo $ac_n "checking target system type""... $ac_c" 1>&6 |
---|
[37717818] | 649 | echo "configure:650: checking target system type" >&5 |
---|
[254b4450] | 650 | |
---|
| 651 | target_alias=$target |
---|
| 652 | case "$target_alias" in |
---|
| 653 | NONE) |
---|
| 654 | case $nonopt in |
---|
| 655 | NONE) target_alias=$host_alias ;; |
---|
| 656 | *) target_alias=$nonopt ;; |
---|
| 657 | esac ;; |
---|
| 658 | esac |
---|
| 659 | |
---|
| 660 | target=`$ac_config_sub $target_alias` |
---|
| 661 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 662 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 663 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 664 | echo "$ac_t""$target" 1>&6 |
---|
| 665 | |
---|
| 666 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
---|
[37717818] | 667 | echo "configure:668: checking build system type" >&5 |
---|
[254b4450] | 668 | |
---|
| 669 | build_alias=$build |
---|
| 670 | case "$build_alias" in |
---|
| 671 | NONE) |
---|
| 672 | case $nonopt in |
---|
| 673 | NONE) build_alias=$host_alias ;; |
---|
| 674 | *) build_alias=$nonopt ;; |
---|
| 675 | esac ;; |
---|
| 676 | esac |
---|
| 677 | |
---|
| 678 | build=`$ac_config_sub $build_alias` |
---|
| 679 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 680 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 681 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 682 | echo "$ac_t""$build" 1>&6 |
---|
| 683 | |
---|
| 684 | test "$host_alias" != "$target_alias" && |
---|
| 685 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
| 686 | NONENONEs,x,x, && |
---|
| 687 | program_prefix=${target_alias}- |
---|
| 688 | |
---|
| 689 | # Check whether --with-cross-host or --without-cross-host was given. |
---|
| 690 | if test "${with_cross_host+set}" = set; then |
---|
| 691 | withval="$with_cross_host" |
---|
| 692 | \ |
---|
| 693 | host=$withval |
---|
| 694 | fi |
---|
| 695 | |
---|
| 696 | |
---|
[91333c2] | 697 | # Check whether --enable-gmake-print-directory or --disable-gmake-print-directory was given. |
---|
| 698 | if test "${enable_gmake_print_directory+set}" = set; then |
---|
| 699 | enableval="$enable_gmake_print_directory" |
---|
| 700 | \ |
---|
| 701 | case "${enableval}" in |
---|
[39ffc7d] | 702 | yes) RTEMS_USE_OWN_PDIR=no ;; |
---|
| 703 | no) RTEMS_USE_OWN_PDIR=yes ;; |
---|
[91333c2] | 704 | *) { echo "configure: error: bad value ${enableval} for gmake-print-directory option" 1>&2; exit 1; } ;; |
---|
| 705 | esac |
---|
| 706 | else |
---|
| 707 | RTEMS_USE_OWN_PDIR=yes |
---|
| 708 | fi |
---|
| 709 | |
---|
| 710 | |
---|
[254b4450] | 711 | # Check whether --enable-posix or --disable-posix was given. |
---|
| 712 | if test "${enable_posix+set}" = set; then |
---|
| 713 | enableval="$enable_posix" |
---|
| 714 | \ |
---|
[69df7da] | 715 | case "${enableval}" in |
---|
| 716 | yes) RTEMS_HAS_POSIX_API=yes ;; |
---|
| 717 | no) RTEMS_HAS_POSIX_API=no ;; |
---|
[ba1a2af9] | 718 | *) { echo "configure: error: bad value ${enableval} for enable-posix option" 1>&2; exit 1; } ;; |
---|
[69df7da] | 719 | esac |
---|
[254b4450] | 720 | else |
---|
| 721 | RTEMS_HAS_POSIX_API=yes |
---|
| 722 | fi |
---|
| 723 | |
---|
| 724 | |
---|
[1f0f3e35] | 725 | # Check whether --enable-ka9q or --disable-ka9q was given. |
---|
| 726 | if test "${enable_ka9q+set}" = set; then |
---|
| 727 | enableval="$enable_ka9q" |
---|
| 728 | \ |
---|
| 729 | case "${enableval}" in |
---|
| 730 | yes) RTEMS_HAS_KA9Q=yes ;; |
---|
| 731 | no) RTEMS_HAS_KA9Q=no ;; |
---|
[ba1a2af9] | 732 | *) { echo "configure: error: bad value ${enableval} for enable-ka9q option" 1>&2; exit 1; } ;; |
---|
[1f0f3e35] | 733 | esac |
---|
| 734 | else |
---|
| 735 | RTEMS_HAS_KA9Q=yes |
---|
| 736 | fi |
---|
| 737 | |
---|
| 738 | |
---|
[254b4450] | 739 | # Check whether --enable-rtems-inlines or --disable-rtems-inlines was given. |
---|
| 740 | if test "${enable_rtems_inlines+set}" = set; then |
---|
| 741 | enableval="$enable_rtems_inlines" |
---|
| 742 | \ |
---|
[69df7da] | 743 | case "${enableval}" in |
---|
[ba1a2af9] | 744 | yes) RTEMS_USE_MACROS=no ;; |
---|
| 745 | no) RTEMS_USE_MACROS=yes ;; |
---|
[69df7da] | 746 | *) { echo "configure: error: bad value ${enableval} for disable-rtems-inlines option" 1>&2; exit 1; } ;; |
---|
| 747 | esac |
---|
[254b4450] | 748 | else |
---|
| 749 | RTEMS_USE_MACROS=no |
---|
| 750 | fi |
---|
| 751 | |
---|
| 752 | |
---|
[3771cc6e] | 753 | # Check whether --enable-cxx or --disable-cxx was given. |
---|
| 754 | if test "${enable_cxx+set}" = set; then |
---|
| 755 | enableval="$enable_cxx" |
---|
[91333c2] | 756 | \ |
---|
[3f70e3c] | 757 | case "${enableval}" in |
---|
| 758 | yes) RTEMS_HAS_CPLUSPLUS=yes ;; |
---|
[37717818] | 759 | no) RTEMS_HAS_CPLUSPLUS=no ;; |
---|
[3771cc6e] | 760 | *) { echo "configure: error: bad value ${enableval} for enable-cxx option" 1>&2; exit 1; } ;; |
---|
[3f70e3c] | 761 | esac |
---|
| 762 | else |
---|
| 763 | RTEMS_HAS_CPLUSPLUS=no |
---|
| 764 | fi |
---|
| 765 | |
---|
[91333c2] | 766 | |
---|
[971cd22] | 767 | # Check whether --enable-gcc28 or --disable-gcc28 was given. |
---|
| 768 | if test "${enable_gcc28+set}" = set; then |
---|
| 769 | enableval="$enable_gcc28" |
---|
[e412bae] | 770 | \ |
---|
[69df7da] | 771 | case "${enableval}" in |
---|
| 772 | yes) RTEMS_USE_GCC272=no ;; |
---|
| 773 | no) RTEMS_USE_GCC272=yes ;; |
---|
| 774 | *) { echo "configure: error: bad value ${enableval} for gcc-28 option" 1>&2; exit 1; } ;; |
---|
| 775 | esac |
---|
[e412bae] | 776 | else |
---|
[fcb114c1] | 777 | RTEMS_USE_GCC272=no |
---|
[e412bae] | 778 | fi |
---|
| 779 | |
---|
[971cd22] | 780 | |
---|
[e412bae] | 781 | # Check whether --enable-libcdir or --disable-libcdir was given. |
---|
| 782 | if test "${enable_libcdir+set}" = set; then |
---|
| 783 | enableval="$enable_libcdir" |
---|
| 784 | \ |
---|
| 785 | RTEMS_LIBC_DIR="${enableval}" ; \ |
---|
| 786 | test -d ${enableval} || { echo "configure: error: "$enableval is not a directory" " 1>&2; exit 1; } |
---|
| 787 | fi |
---|
| 788 | |
---|
| 789 | |
---|
[254b4450] | 790 | RTEMS_PREFIX=${target_cpu}-${target_vendor} |
---|
| 791 | |
---|
[a50148a] | 792 | |
---|
| 793 | # Extract the first word of "cat", so it can be a program name with args. |
---|
| 794 | set dummy cat; ac_word=$2 |
---|
| 795 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[37717818] | 796 | echo "configure:797: checking for $ac_word" >&5 |
---|
[a50148a] | 797 | if eval "test \"`echo '$''{'ac_cv_path_CAT'+set}'`\" = set"; then |
---|
| 798 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 799 | else |
---|
| 800 | case "$CAT" in |
---|
| 801 | /*) |
---|
| 802 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. |
---|
| 803 | ;; |
---|
| 804 | *) |
---|
| 805 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 806 | for ac_dir in $PATH; do |
---|
| 807 | test -z "$ac_dir" && ac_dir=. |
---|
| 808 | if test -f $ac_dir/$ac_word; then |
---|
| 809 | ac_cv_path_CAT="$ac_dir/$ac_word" |
---|
| 810 | break |
---|
| 811 | fi |
---|
| 812 | done |
---|
| 813 | IFS="$ac_save_ifs" |
---|
| 814 | ;; |
---|
| 815 | esac |
---|
| 816 | fi |
---|
| 817 | CAT="$ac_cv_path_CAT" |
---|
| 818 | if test -n "$CAT"; then |
---|
| 819 | echo "$ac_t""$CAT" 1>&6 |
---|
| 820 | else |
---|
| 821 | echo "$ac_t""no" 1>&6 |
---|
| 822 | fi |
---|
| 823 | |
---|
| 824 | # Extract the first word of "rm", so it can be a program name with args. |
---|
| 825 | set dummy rm; ac_word=$2 |
---|
| 826 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[37717818] | 827 | echo "configure:828: checking for $ac_word" >&5 |
---|
[a50148a] | 828 | if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then |
---|
| 829 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 830 | else |
---|
| 831 | case "$RM" in |
---|
| 832 | /*) |
---|
| 833 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
---|
| 834 | ;; |
---|
| 835 | *) |
---|
| 836 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 837 | for ac_dir in $PATH; do |
---|
| 838 | test -z "$ac_dir" && ac_dir=. |
---|
| 839 | if test -f $ac_dir/$ac_word; then |
---|
| 840 | ac_cv_path_RM="$ac_dir/$ac_word" |
---|
| 841 | break |
---|
| 842 | fi |
---|
| 843 | done |
---|
| 844 | IFS="$ac_save_ifs" |
---|
| 845 | ;; |
---|
| 846 | esac |
---|
| 847 | fi |
---|
| 848 | RM="$ac_cv_path_RM" |
---|
| 849 | if test -n "$RM"; then |
---|
| 850 | echo "$ac_t""$RM" 1>&6 |
---|
| 851 | else |
---|
| 852 | echo "$ac_t""no" 1>&6 |
---|
| 853 | fi |
---|
| 854 | |
---|
| 855 | # Extract the first word of "cp", so it can be a program name with args. |
---|
| 856 | set dummy cp; ac_word=$2 |
---|
| 857 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[37717818] | 858 | echo "configure:859: checking for $ac_word" >&5 |
---|
[a50148a] | 859 | if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then |
---|
| 860 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 861 | else |
---|
| 862 | case "$CP" in |
---|
| 863 | /*) |
---|
| 864 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
---|
| 865 | ;; |
---|
| 866 | *) |
---|
| 867 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 868 | for ac_dir in $PATH; do |
---|
| 869 | test -z "$ac_dir" && ac_dir=. |
---|
| 870 | if test -f $ac_dir/$ac_word; then |
---|
| 871 | ac_cv_path_CP="$ac_dir/$ac_word" |
---|
| 872 | break |
---|
| 873 | fi |
---|
| 874 | done |
---|
| 875 | IFS="$ac_save_ifs" |
---|
| 876 | ;; |
---|
| 877 | esac |
---|
| 878 | fi |
---|
| 879 | CP="$ac_cv_path_CP" |
---|
| 880 | if test -n "$CP"; then |
---|
| 881 | echo "$ac_t""$CP" 1>&6 |
---|
| 882 | else |
---|
| 883 | echo "$ac_t""no" 1>&6 |
---|
| 884 | fi |
---|
| 885 | |
---|
| 886 | # Extract the first word of "mv", so it can be a program name with args. |
---|
| 887 | set dummy mv; ac_word=$2 |
---|
| 888 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[37717818] | 889 | echo "configure:890: checking for $ac_word" >&5 |
---|
[a50148a] | 890 | if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then |
---|
| 891 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 892 | else |
---|
| 893 | case "$MV" in |
---|
| 894 | /*) |
---|
| 895 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
---|
| 896 | ;; |
---|
| 897 | *) |
---|
| 898 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 899 | for ac_dir in $PATH; do |
---|
| 900 | test -z "$ac_dir" && ac_dir=. |
---|
| 901 | if test -f $ac_dir/$ac_word; then |
---|
| 902 | ac_cv_path_MV="$ac_dir/$ac_word" |
---|
| 903 | break |
---|
| 904 | fi |
---|
| 905 | done |
---|
| 906 | IFS="$ac_save_ifs" |
---|
| 907 | ;; |
---|
| 908 | esac |
---|
| 909 | fi |
---|
| 910 | MV="$ac_cv_path_MV" |
---|
| 911 | if test -n "$MV"; then |
---|
| 912 | echo "$ac_t""$MV" 1>&6 |
---|
| 913 | else |
---|
| 914 | echo "$ac_t""no" 1>&6 |
---|
| 915 | fi |
---|
| 916 | |
---|
| 917 | # Extract the first word of "ln", so it can be a program name with args. |
---|
| 918 | set dummy ln; ac_word=$2 |
---|
| 919 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[37717818] | 920 | echo "configure:921: checking for $ac_word" >&5 |
---|
[a50148a] | 921 | if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then |
---|
| 922 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 923 | else |
---|
| 924 | case "$LN" in |
---|
| 925 | /*) |
---|
| 926 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
---|
| 927 | ;; |
---|
| 928 | *) |
---|
| 929 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 930 | for ac_dir in $PATH; do |
---|
| 931 | test -z "$ac_dir" && ac_dir=. |
---|
| 932 | if test -f $ac_dir/$ac_word; then |
---|
| 933 | ac_cv_path_LN="$ac_dir/$ac_word" |
---|
| 934 | break |
---|
| 935 | fi |
---|
| 936 | done |
---|
| 937 | IFS="$ac_save_ifs" |
---|
| 938 | ;; |
---|
| 939 | esac |
---|
| 940 | fi |
---|
| 941 | LN="$ac_cv_path_LN" |
---|
| 942 | if test -n "$LN"; then |
---|
| 943 | echo "$ac_t""$LN" 1>&6 |
---|
| 944 | else |
---|
| 945 | echo "$ac_t""no" 1>&6 |
---|
| 946 | fi |
---|
| 947 | |
---|
[37717818] | 948 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
---|
| 949 | echo "configure:950: checking whether ln -s works" >&5 |
---|
| 950 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
---|
| 951 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 952 | else |
---|
| 953 | rm -f conftestdata |
---|
| 954 | if ln -s X conftestdata 2>/dev/null |
---|
| 955 | then |
---|
| 956 | rm -f conftestdata |
---|
| 957 | ac_cv_prog_LN_S="ln -s" |
---|
| 958 | else |
---|
| 959 | ac_cv_prog_LN_S=ln |
---|
| 960 | fi |
---|
| 961 | fi |
---|
| 962 | LN_S="$ac_cv_prog_LN_S" |
---|
| 963 | if test "$ac_cv_prog_LN_S" = "ln -s"; then |
---|
| 964 | echo "$ac_t""yes" 1>&6 |
---|
| 965 | else |
---|
| 966 | echo "$ac_t""no" 1>&6 |
---|
| 967 | fi |
---|
| 968 | |
---|
[a50148a] | 969 | # Extract the first word of "chmod", so it can be a program name with args. |
---|
| 970 | set dummy chmod; ac_word=$2 |
---|
| 971 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[37717818] | 972 | echo "configure:973: checking for $ac_word" >&5 |
---|
[a50148a] | 973 | if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then |
---|
| 974 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 975 | else |
---|
| 976 | case "$CHMOD" in |
---|
| 977 | /*) |
---|
| 978 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
---|
| 979 | ;; |
---|
| 980 | *) |
---|
| 981 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 982 | for ac_dir in $PATH; do |
---|
| 983 | test -z "$ac_dir" && ac_dir=. |
---|
| 984 | if test -f $ac_dir/$ac_word; then |
---|
| 985 | ac_cv_path_CHMOD="$ac_dir/$ac_word" |
---|
| 986 | break |
---|
| 987 | fi |
---|
| 988 | done |
---|
| 989 | IFS="$ac_save_ifs" |
---|
| 990 | ;; |
---|
| 991 | esac |
---|
| 992 | fi |
---|
| 993 | CHMOD="$ac_cv_path_CHMOD" |
---|
| 994 | if test -n "$CHMOD"; then |
---|
| 995 | echo "$ac_t""$CHMOD" 1>&6 |
---|
| 996 | else |
---|
| 997 | echo "$ac_t""no" 1>&6 |
---|
| 998 | fi |
---|
| 999 | |
---|
| 1000 | # Extract the first word of "sort", so it can be a program name with args. |
---|
| 1001 | set dummy sort; ac_word=$2 |
---|
| 1002 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[37717818] | 1003 | echo "configure:1004: checking for $ac_word" >&5 |
---|
[a50148a] | 1004 | if eval "test \"`echo '$''{'ac_cv_path_SORT'+set}'`\" = set"; then |
---|
| 1005 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1006 | else |
---|
| 1007 | case "$SORT" in |
---|
| 1008 | /*) |
---|
| 1009 | ac_cv_path_SORT="$SORT" # Let the user override the test with a path. |
---|
| 1010 | ;; |
---|
| 1011 | *) |
---|
| 1012 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 1013 | for ac_dir in $PATH; do |
---|
| 1014 | test -z "$ac_dir" && ac_dir=. |
---|
| 1015 | if test -f $ac_dir/$ac_word; then |
---|
| 1016 | ac_cv_path_SORT="$ac_dir/$ac_word" |
---|
| 1017 | break |
---|
| 1018 | fi |
---|
| 1019 | done |
---|
| 1020 | IFS="$ac_save_ifs" |
---|
| 1021 | ;; |
---|
| 1022 | esac |
---|
| 1023 | fi |
---|
| 1024 | SORT="$ac_cv_path_SORT" |
---|
| 1025 | if test -n "$SORT"; then |
---|
| 1026 | echo "$ac_t""$SORT" 1>&6 |
---|
| 1027 | else |
---|
| 1028 | echo "$ac_t""no" 1>&6 |
---|
| 1029 | fi |
---|
| 1030 | |
---|
| 1031 | |
---|
| 1032 | # Extract the first word of "mkdir", so it can be a program name with args. |
---|
| 1033 | set dummy mkdir; ac_word=$2 |
---|
| 1034 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[3771cc6e] | 1035 | echo "configure:1036: checking for $ac_word" >&5 |
---|
[a50148a] | 1036 | if eval "test \"`echo '$''{'ac_cv_path_MKDIR'+set}'`\" = set"; then |
---|
| 1037 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1038 | else |
---|
| 1039 | case "$MKDIR" in |
---|
| 1040 | /*) |
---|
| 1041 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
---|
| 1042 | ;; |
---|
| 1043 | *) |
---|
| 1044 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 1045 | for ac_dir in $PATH; do |
---|
| 1046 | test -z "$ac_dir" && ac_dir=. |
---|
| 1047 | if test -f $ac_dir/$ac_word; then |
---|
| 1048 | ac_cv_path_MKDIR="$ac_dir/$ac_word" |
---|
| 1049 | break |
---|
| 1050 | fi |
---|
| 1051 | done |
---|
| 1052 | IFS="$ac_save_ifs" |
---|
| 1053 | ;; |
---|
| 1054 | esac |
---|
| 1055 | fi |
---|
| 1056 | MKDIR="$ac_cv_path_MKDIR" |
---|
| 1057 | if test -n "$MKDIR"; then |
---|
| 1058 | echo "$ac_t""$MKDIR" 1>&6 |
---|
| 1059 | else |
---|
| 1060 | echo "$ac_t""no" 1>&6 |
---|
| 1061 | fi |
---|
| 1062 | |
---|
| 1063 | |
---|
| 1064 | |
---|
| 1065 | |
---|
| 1066 | echo $ac_n "checking for working $MKDIR -m 0755""... $ac_c" 1>&6 |
---|
[3771cc6e] | 1067 | echo "configure:1068: checking for working $MKDIR -m 0755" >&5 |
---|
[a50148a] | 1068 | if eval "test \"`echo '$''{'rtems_cv_prog_MKDIR_P'+set}'`\" = set"; then |
---|
| 1069 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1070 | else |
---|
| 1071 | rm -rf conftestdata |
---|
| 1072 | if $MKDIR -m 0775 conftestdata 2>/dev/null; then |
---|
| 1073 | rtems_cv_prog_MKDIR_M="yes" |
---|
| 1074 | else |
---|
| 1075 | rtems_cv_prog_MKDIR_M="no" |
---|
| 1076 | fi |
---|
| 1077 | fi |
---|
| 1078 | rm -rf conftestdata |
---|
| 1079 | echo "$ac_t""$rtems_cv_prog_MKDIR_M" 1>&6 |
---|
| 1080 | |
---|
| 1081 | |
---|
| 1082 | |
---|
| 1083 | echo $ac_n "checking for working $MKDIR -p""... $ac_c" 1>&6 |
---|
[3771cc6e] | 1084 | echo "configure:1085: checking for working $MKDIR -p" >&5 |
---|
[a50148a] | 1085 | if eval "test \"`echo '$''{'rtems_cv_prog_mkdir_p'+set}'`\" = set"; then |
---|
| 1086 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1087 | else |
---|
| 1088 | rm -rf conftestdata |
---|
| 1089 | if $MKDIR -p conftestdata 2>/dev/null ;then |
---|
| 1090 | rtems_cv_prog_MKDIR_P="yes" |
---|
| 1091 | else |
---|
| 1092 | rtems_cv_prog_MKDIR_P="no" |
---|
| 1093 | fi |
---|
| 1094 | fi |
---|
| 1095 | rm -rf conftestdata |
---|
| 1096 | echo "$ac_t""$rtems_cv_prog_MKDIR_P" 1>&6 |
---|
| 1097 | |
---|
| 1098 | test "$rtems_cv_prog_MKDIR_P" = "yes" && MKDIR="$MKDIR -p" |
---|
| 1099 | test "$rtems_cv_prog_MKDIR_M" = "yes" && MKDIR="$MKDIR -m 0755" |
---|
| 1100 | |
---|
[3771cc6e] | 1101 | # Extract the first word of "touch", so it can be a program name with args. |
---|
| 1102 | set dummy touch; ac_word=$2 |
---|
| 1103 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
| 1104 | echo "configure:1105: checking for $ac_word" >&5 |
---|
| 1105 | if eval "test \"`echo '$''{'ac_cv_path_TOUCH'+set}'`\" = set"; then |
---|
| 1106 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1107 | else |
---|
| 1108 | case "$TOUCH" in |
---|
| 1109 | /*) |
---|
| 1110 | ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. |
---|
| 1111 | ;; |
---|
| 1112 | *) |
---|
| 1113 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 1114 | for ac_dir in $PATH; do |
---|
| 1115 | test -z "$ac_dir" && ac_dir=. |
---|
| 1116 | if test -f $ac_dir/$ac_word; then |
---|
| 1117 | ac_cv_path_TOUCH="$ac_dir/$ac_word" |
---|
| 1118 | break |
---|
| 1119 | fi |
---|
| 1120 | done |
---|
| 1121 | IFS="$ac_save_ifs" |
---|
| 1122 | ;; |
---|
| 1123 | esac |
---|
| 1124 | fi |
---|
| 1125 | TOUCH="$ac_cv_path_TOUCH" |
---|
| 1126 | if test -n "$TOUCH"; then |
---|
| 1127 | echo "$ac_t""$TOUCH" 1>&6 |
---|
| 1128 | else |
---|
| 1129 | echo "$ac_t""no" 1>&6 |
---|
| 1130 | fi |
---|
| 1131 | |
---|
| 1132 | # Extract the first word of "cmp", so it can be a program name with args. |
---|
| 1133 | set dummy cmp; ac_word=$2 |
---|
| 1134 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
| 1135 | echo "configure:1136: checking for $ac_word" >&5 |
---|
| 1136 | if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then |
---|
| 1137 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1138 | else |
---|
| 1139 | case "$CMP" in |
---|
| 1140 | /*) |
---|
| 1141 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
---|
| 1142 | ;; |
---|
| 1143 | *) |
---|
| 1144 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 1145 | for ac_dir in $PATH; do |
---|
| 1146 | test -z "$ac_dir" && ac_dir=. |
---|
| 1147 | if test -f $ac_dir/$ac_word; then |
---|
| 1148 | ac_cv_path_CMP="$ac_dir/$ac_word" |
---|
| 1149 | break |
---|
| 1150 | fi |
---|
| 1151 | done |
---|
| 1152 | IFS="$ac_save_ifs" |
---|
| 1153 | ;; |
---|
| 1154 | esac |
---|
| 1155 | fi |
---|
| 1156 | CMP="$ac_cv_path_CMP" |
---|
| 1157 | if test -n "$CMP"; then |
---|
| 1158 | echo "$ac_t""$CMP" 1>&6 |
---|
| 1159 | else |
---|
| 1160 | echo "$ac_t""no" 1>&6 |
---|
| 1161 | fi |
---|
| 1162 | |
---|
| 1163 | |
---|
| 1164 | # Extract the first word of "sed", so it can be a program name with args. |
---|
| 1165 | set dummy sed; ac_word=$2 |
---|
| 1166 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
| 1167 | echo "configure:1168: checking for $ac_word" >&5 |
---|
| 1168 | if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then |
---|
| 1169 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1170 | else |
---|
| 1171 | case "$SED" in |
---|
| 1172 | /*) |
---|
| 1173 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
---|
| 1174 | ;; |
---|
| 1175 | *) |
---|
| 1176 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 1177 | for ac_dir in $PATH; do |
---|
| 1178 | test -z "$ac_dir" && ac_dir=. |
---|
| 1179 | if test -f $ac_dir/$ac_word; then |
---|
| 1180 | ac_cv_path_SED="$ac_dir/$ac_word" |
---|
| 1181 | break |
---|
| 1182 | fi |
---|
| 1183 | done |
---|
| 1184 | IFS="$ac_save_ifs" |
---|
| 1185 | ;; |
---|
| 1186 | esac |
---|
| 1187 | fi |
---|
| 1188 | SED="$ac_cv_path_SED" |
---|
| 1189 | if test -n "$SED"; then |
---|
| 1190 | echo "$ac_t""$SED" 1>&6 |
---|
| 1191 | else |
---|
| 1192 | echo "$ac_t""no" 1>&6 |
---|
| 1193 | fi |
---|
| 1194 | |
---|
| 1195 | for ac_prog in gm4 m4 |
---|
| 1196 | do |
---|
| 1197 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1198 | set dummy $ac_prog; ac_word=$2 |
---|
| 1199 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
| 1200 | echo "configure:1201: checking for $ac_word" >&5 |
---|
| 1201 | if eval "test \"`echo '$''{'ac_cv_path_M4'+set}'`\" = set"; then |
---|
| 1202 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1203 | else |
---|
| 1204 | case "$M4" in |
---|
| 1205 | /*) |
---|
| 1206 | ac_cv_path_M4="$M4" # Let the user override the test with a path. |
---|
| 1207 | ;; |
---|
| 1208 | *) |
---|
| 1209 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 1210 | for ac_dir in $PATH; do |
---|
| 1211 | test -z "$ac_dir" && ac_dir=. |
---|
| 1212 | if test -f $ac_dir/$ac_word; then |
---|
| 1213 | ac_cv_path_M4="$ac_dir/$ac_word" |
---|
| 1214 | break |
---|
| 1215 | fi |
---|
| 1216 | done |
---|
| 1217 | IFS="$ac_save_ifs" |
---|
| 1218 | ;; |
---|
| 1219 | esac |
---|
| 1220 | fi |
---|
| 1221 | M4="$ac_cv_path_M4" |
---|
| 1222 | if test -n "$M4"; then |
---|
| 1223 | echo "$ac_t""$M4" 1>&6 |
---|
| 1224 | else |
---|
| 1225 | echo "$ac_t""no" 1>&6 |
---|
| 1226 | fi |
---|
| 1227 | |
---|
| 1228 | test -n "$M4" && break |
---|
| 1229 | done |
---|
| 1230 | |
---|
| 1231 | |
---|
| 1232 | for ac_prog in bash ksh sh |
---|
| 1233 | do |
---|
| 1234 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1235 | set dummy $ac_prog; ac_word=$2 |
---|
| 1236 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
| 1237 | echo "configure:1238: checking for $ac_word" >&5 |
---|
| 1238 | if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then |
---|
| 1239 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1240 | else |
---|
| 1241 | case "$KSH" in |
---|
| 1242 | /*) |
---|
| 1243 | ac_cv_path_KSH="$KSH" # Let the user override the test with a path. |
---|
| 1244 | ;; |
---|
| 1245 | *) |
---|
| 1246 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 1247 | for ac_dir in $PATH; do |
---|
| 1248 | test -z "$ac_dir" && ac_dir=. |
---|
| 1249 | if test -f $ac_dir/$ac_word; then |
---|
| 1250 | ac_cv_path_KSH="$ac_dir/$ac_word" |
---|
| 1251 | break |
---|
| 1252 | fi |
---|
| 1253 | done |
---|
| 1254 | IFS="$ac_save_ifs" |
---|
| 1255 | ;; |
---|
| 1256 | esac |
---|
| 1257 | fi |
---|
| 1258 | KSH="$ac_cv_path_KSH" |
---|
| 1259 | if test -n "$KSH"; then |
---|
| 1260 | echo "$ac_t""$KSH" 1>&6 |
---|
| 1261 | else |
---|
| 1262 | echo "$ac_t""no" 1>&6 |
---|
| 1263 | fi |
---|
| 1264 | |
---|
| 1265 | test -n "$KSH" && break |
---|
| 1266 | done |
---|
| 1267 | |
---|
| 1268 | |
---|
| 1269 | if test -z "$KSH"; then |
---|
| 1270 | { echo "configure: error: *** |
---|
| 1271 | Cannot determine a usable shell bash/ksh/sh |
---|
| 1272 | Please contact your system administrator " 1>&2; exit 1; }; |
---|
| 1273 | fi |
---|
| 1274 | |
---|
| 1275 | |
---|
| 1276 | |
---|
| 1277 | |
---|
| 1278 | RTEMS_HOST=$host_os |
---|
| 1279 | |
---|
| 1280 | case "${target}" in |
---|
| 1281 | # hpux unix port should go here |
---|
| 1282 | i[3456]86-go32-rtems*) |
---|
| 1283 | target_cpu=i386 |
---|
| 1284 | rtems_bsp="go32 go32_p5" |
---|
| 1285 | skip_startfiles="yes" |
---|
| 1286 | RTEMS_HAS_POSIX_API=no |
---|
| 1287 | ;; |
---|
| 1288 | i[3456]86-pc-linux*) # unix "simulator" port |
---|
| 1289 | target_cpu=unix |
---|
| 1290 | RTEMS_HOST=Linux |
---|
[2758c9f2] | 1291 | # override these settings |
---|
| 1292 | RTEMS_HAS_POSIX_API=no |
---|
| 1293 | RTEMS_USE_GCC272=yes |
---|
| 1294 | RTEMS_LIBC_DIR=/usr |
---|
[3771cc6e] | 1295 | ;; |
---|
| 1296 | no_cpu-*rtems*) |
---|
| 1297 | target_cpu=no_cpu |
---|
| 1298 | RTEMS_HAS_POSIX_API=no |
---|
| 1299 | ;; |
---|
| 1300 | sparc-sun-solaris*) # unix "simulator" port |
---|
| 1301 | target_cpu=unix |
---|
| 1302 | RTEMS_HOST=Solaris |
---|
[2758c9f2] | 1303 | # override these settings |
---|
| 1304 | RTEMS_HAS_POSIX_API=no |
---|
| 1305 | RTEMS_USE_GCC272=yes |
---|
| 1306 | RTEMS_LIBC_DIR=/usr |
---|
[3771cc6e] | 1307 | ;; |
---|
| 1308 | *) |
---|
| 1309 | echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6 |
---|
[2758c9f2] | 1310 | echo "configure:1311: checking rtems target cpu" >&5 |
---|
[3771cc6e] | 1311 | target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'` |
---|
| 1312 | echo "$ac_t""$target_cpu" 1>&6 |
---|
| 1313 | |
---|
| 1314 | ;; |
---|
| 1315 | esac |
---|
| 1316 | |
---|
| 1317 | # Override the set of BSPs to be built. |
---|
| 1318 | # Check whether --enable-rtemsbsp or --disable-rtemsbsp was given. |
---|
| 1319 | if test "${enable_rtemsbsp+set}" = set; then |
---|
| 1320 | enableval="$enable_rtemsbsp" |
---|
| 1321 | \ |
---|
| 1322 | rtems_bsp=$enableval \ |
---|
| 1323 | |
---|
| 1324 | fi |
---|
| 1325 | |
---|
| 1326 | |
---|
| 1327 | # Is this a supported CPU? |
---|
| 1328 | echo $ac_n "checking if cpu $target_cpu is supported""... $ac_c" 1>&6 |
---|
[2758c9f2] | 1329 | echo "configure:1330: checking if cpu $target_cpu is supported" >&5 |
---|
[3771cc6e] | 1330 | if test -d "$srcdir/c/src/exec/score/cpu/$target_cpu"; then |
---|
| 1331 | echo "$ac_t""yes" 1>&6 |
---|
| 1332 | makefiles="$makefiles c/src/exec/score/cpu/$target_cpu/Makefile" |
---|
| 1333 | else |
---|
| 1334 | { echo "configure: error: no" 1>&2; exit 1; } |
---|
| 1335 | fi |
---|
| 1336 | |
---|
| 1337 | |
---|
| 1338 | if [ "${program_prefix}" = "NONE" ] ; then |
---|
| 1339 | if [ "${target}" = "${host}" ] ; then |
---|
| 1340 | program_prefix= |
---|
| 1341 | else |
---|
| 1342 | program_prefix=${target}- |
---|
| 1343 | fi |
---|
| 1344 | fi |
---|
| 1345 | |
---|
| 1346 | CC="$program_prefix"gcc |
---|
| 1347 | |
---|
| 1348 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 1349 | set dummy gcc; ac_word=$2 |
---|
| 1350 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[2758c9f2] | 1351 | echo "configure:1352: checking for $ac_word" >&5 |
---|
[3771cc6e] | 1352 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
| 1353 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1354 | else |
---|
| 1355 | if test -n "$CC"; then |
---|
| 1356 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 1357 | else |
---|
| 1358 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 1359 | for ac_dir in $PATH; do |
---|
| 1360 | test -z "$ac_dir" && ac_dir=. |
---|
| 1361 | if test -f $ac_dir/$ac_word; then |
---|
| 1362 | ac_cv_prog_CC="gcc" |
---|
| 1363 | break |
---|
| 1364 | fi |
---|
| 1365 | done |
---|
| 1366 | IFS="$ac_save_ifs" |
---|
| 1367 | fi |
---|
| 1368 | fi |
---|
| 1369 | CC="$ac_cv_prog_CC" |
---|
| 1370 | if test -n "$CC"; then |
---|
| 1371 | echo "$ac_t""$CC" 1>&6 |
---|
| 1372 | else |
---|
| 1373 | echo "$ac_t""no" 1>&6 |
---|
| 1374 | fi |
---|
| 1375 | |
---|
| 1376 | if test -z "$CC"; then |
---|
| 1377 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 1378 | set dummy cc; ac_word=$2 |
---|
| 1379 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[2758c9f2] | 1380 | echo "configure:1381: checking for $ac_word" >&5 |
---|
[3771cc6e] | 1381 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
| 1382 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1383 | else |
---|
| 1384 | if test -n "$CC"; then |
---|
| 1385 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 1386 | else |
---|
| 1387 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 1388 | ac_prog_rejected=no |
---|
| 1389 | for ac_dir in $PATH; do |
---|
| 1390 | test -z "$ac_dir" && ac_dir=. |
---|
| 1391 | if test -f $ac_dir/$ac_word; then |
---|
| 1392 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
---|
| 1393 | ac_prog_rejected=yes |
---|
| 1394 | continue |
---|
| 1395 | fi |
---|
| 1396 | ac_cv_prog_CC="cc" |
---|
| 1397 | break |
---|
| 1398 | fi |
---|
| 1399 | done |
---|
| 1400 | IFS="$ac_save_ifs" |
---|
| 1401 | if test $ac_prog_rejected = yes; then |
---|
| 1402 | # We found a bogon in the path, so make sure we never use it. |
---|
| 1403 | set dummy $ac_cv_prog_CC |
---|
| 1404 | shift |
---|
| 1405 | if test $# -gt 0; then |
---|
| 1406 | # We chose a different compiler from the bogus one. |
---|
| 1407 | # However, it has the same basename, so the bogon will be chosen |
---|
| 1408 | # first if we set CC to just the basename; use the full file name. |
---|
| 1409 | shift |
---|
| 1410 | set dummy "$ac_dir/$ac_word" "$@" |
---|
| 1411 | shift |
---|
| 1412 | ac_cv_prog_CC="$@" |
---|
| 1413 | fi |
---|
| 1414 | fi |
---|
| 1415 | fi |
---|
| 1416 | fi |
---|
| 1417 | CC="$ac_cv_prog_CC" |
---|
| 1418 | if test -n "$CC"; then |
---|
| 1419 | echo "$ac_t""$CC" 1>&6 |
---|
| 1420 | else |
---|
| 1421 | echo "$ac_t""no" 1>&6 |
---|
| 1422 | fi |
---|
| 1423 | |
---|
| 1424 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
| 1425 | fi |
---|
| 1426 | |
---|
| 1427 | echo $ac_n "checking whether the target C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
[2758c9f2] | 1428 | echo "configure:1429: checking whether the target C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
[3771cc6e] | 1429 | |
---|
| 1430 | ac_ext=c |
---|
| 1431 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 1432 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1433 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 1434 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 1435 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 1436 | |
---|
| 1437 | cat > conftest.$ac_ext <<EOF |
---|
[2758c9f2] | 1438 | #line 1439 "configure" |
---|
[3771cc6e] | 1439 | #include "confdefs.h" |
---|
[01518357] | 1440 | main(){return(0);} |
---|
[3771cc6e] | 1441 | EOF |
---|
[2758c9f2] | 1442 | if { (eval echo configure:1443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
[3771cc6e] | 1443 | rtems_cv_prog_cc_works=yes |
---|
| 1444 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
| 1445 | if (./conftest; exit) 2>/dev/null; then |
---|
| 1446 | rtems_cv_prog_cc_cross=no |
---|
| 1447 | else |
---|
| 1448 | rtems_cv_prog_cc_cross=yes |
---|
| 1449 | fi |
---|
| 1450 | else |
---|
| 1451 | echo "configure: failed program was:" >&5 |
---|
| 1452 | cat conftest.$ac_ext >&5 |
---|
| 1453 | rtems_cv_prog_cc_works=no |
---|
| 1454 | fi |
---|
| 1455 | rm -fr conftest* |
---|
| 1456 | |
---|
| 1457 | echo "$ac_t""$rtems_cv_prog_cc_works" 1>&6 |
---|
| 1458 | if test $rtems_cv_prog_cc_works = no; then |
---|
| 1459 | { echo "configure: error: installation or configuration problem: target C compiler cannot create executables." 1>&2; exit 1; } |
---|
| 1460 | fi |
---|
| 1461 | echo $ac_n "checking whether the target C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
[2758c9f2] | 1462 | echo "configure:1463: checking whether the target C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
[3771cc6e] | 1463 | echo "$ac_t""$rtems_cv_prog_cc_cross" 1>&6 |
---|
| 1464 | |
---|
| 1465 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
[2758c9f2] | 1466 | echo "configure:1467: checking whether we are using GNU C" >&5 |
---|
[3771cc6e] | 1467 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
| 1468 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1469 | else |
---|
| 1470 | cat > conftest.c <<EOF |
---|
| 1471 | #ifdef __GNUC__ |
---|
| 1472 | yes; |
---|
| 1473 | #endif |
---|
| 1474 | EOF |
---|
[2758c9f2] | 1475 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
[3771cc6e] | 1476 | ac_cv_prog_gcc=yes |
---|
| 1477 | else |
---|
| 1478 | ac_cv_prog_gcc=no |
---|
| 1479 | fi |
---|
| 1480 | fi |
---|
| 1481 | |
---|
| 1482 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
| 1483 | |
---|
| 1484 | if test $ac_cv_prog_gcc = yes; then |
---|
| 1485 | GCC=yes |
---|
| 1486 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
| 1487 | ac_save_CFLAGS="$CFLAGS" |
---|
| 1488 | CFLAGS= |
---|
| 1489 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
[2758c9f2] | 1490 | echo "configure:1491: checking whether ${CC-cc} accepts -g" >&5 |
---|
[3771cc6e] | 1491 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
| 1492 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1493 | else |
---|
| 1494 | echo 'void f(){}' > conftest.c |
---|
| 1495 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
| 1496 | ac_cv_prog_cc_g=yes |
---|
| 1497 | else |
---|
| 1498 | ac_cv_prog_cc_g=no |
---|
| 1499 | fi |
---|
| 1500 | rm -f conftest* |
---|
| 1501 | |
---|
| 1502 | fi |
---|
| 1503 | |
---|
| 1504 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
| 1505 | if test "$ac_test_CFLAGS" = set; then |
---|
| 1506 | CFLAGS="$ac_save_CFLAGS" |
---|
| 1507 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 1508 | CFLAGS="-g -O2" |
---|
| 1509 | else |
---|
| 1510 | CFLAGS="-O2" |
---|
| 1511 | fi |
---|
| 1512 | else |
---|
| 1513 | GCC= |
---|
| 1514 | test "${CFLAGS+set}" = set || CFLAGS="-g" |
---|
| 1515 | fi |
---|
| 1516 | |
---|
| 1517 | CC_FOR_TARGET=$CC |
---|
| 1518 | rtems_cv_prog_gcc=$ac_cv_prog_gcc |
---|
| 1519 | rtems_cv_prog_cc_g=$ac_cv_prog_cc_g |
---|
| 1520 | |
---|
| 1521 | unset CC |
---|
| 1522 | unset ac_cv_prog_gcc |
---|
| 1523 | unset ac_cv_prog_cc_g |
---|
| 1524 | unset ac_cv_prog_CC |
---|
| 1525 | |
---|
| 1526 | |
---|
| 1527 | if test "$RTEMS_USE_GCC272" != "yes" ; then |
---|
| 1528 | |
---|
| 1529 | echo $ac_n "checking whether $CC_FOR_TARGET accepts -specs""... $ac_c" 1>&6 |
---|
[2758c9f2] | 1530 | echo "configure:1531: checking whether $CC_FOR_TARGET accepts -specs" >&5 |
---|
[3771cc6e] | 1531 | if eval "test \"`echo '$''{'rtems_cv_gcc_specs'+set}'`\" = set"; then |
---|
| 1532 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1533 | else |
---|
| 1534 | touch confspec |
---|
| 1535 | echo 'void f(){}' >conftest.c |
---|
| 1536 | if test -z "`${CC_FOR_TARGET} -specs confspec -c conftest.c 2>&1`";then |
---|
| 1537 | rtems_cv_gcc_specs=yes |
---|
| 1538 | else |
---|
| 1539 | rtems_cv_gcc_specs=no |
---|
| 1540 | fi |
---|
| 1541 | rm -f confspec conftest* |
---|
| 1542 | |
---|
| 1543 | fi |
---|
| 1544 | |
---|
| 1545 | echo "$ac_t""$rtems_cv_gcc_specs" 1>&6 |
---|
| 1546 | if test "$rtems_cv_gcc_specs" = "no"; then |
---|
| 1547 | echo "configure: warning: *** disabling --enable-gcc28" 1>&2 |
---|
| 1548 | RTEMS_USE_GCC272=yes |
---|
| 1549 | fi |
---|
| 1550 | fi |
---|
| 1551 | |
---|
[a7a08713] | 1552 | |
---|
[3771cc6e] | 1553 | |
---|
| 1554 | echo $ac_n "checking whether $CC_FOR_TARGET accepts --pipe""... $ac_c" 1>&6 |
---|
[2758c9f2] | 1555 | echo "configure:1556: checking whether $CC_FOR_TARGET accepts --pipe" >&5 |
---|
[3771cc6e] | 1556 | if eval "test \"`echo '$''{'rtems_cv_gcc_pipe'+set}'`\" = set"; then |
---|
| 1557 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1558 | else |
---|
| 1559 | |
---|
[a7a08713] | 1560 | case "$host_os" in |
---|
| 1561 | cygwin32*) |
---|
| 1562 | rtems_cv_gcc_pipe=no |
---|
| 1563 | ;; |
---|
| 1564 | *) |
---|
| 1565 | echo 'void f(){}' >conftest.c |
---|
| 1566 | if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then |
---|
| 1567 | rtems_cv_gcc_pipe=yes |
---|
| 1568 | else |
---|
| 1569 | rtems_cv_gcc_pipe=no |
---|
| 1570 | fi |
---|
| 1571 | rm -f conftest* |
---|
| 1572 | ;; |
---|
| 1573 | esac |
---|
[3771cc6e] | 1574 | |
---|
| 1575 | fi |
---|
| 1576 | |
---|
| 1577 | echo "$ac_t""$rtems_cv_gcc_pipe" 1>&6 |
---|
| 1578 | |
---|
[a7a08713] | 1579 | |
---|
[3771cc6e] | 1580 | if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then |
---|
| 1581 | CXX="$program_prefix"g++ |
---|
| 1582 | |
---|
| 1583 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ |
---|
| 1584 | do |
---|
| 1585 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1586 | set dummy $ac_prog; ac_word=$2 |
---|
| 1587 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[2758c9f2] | 1588 | echo "configure:1589: checking for $ac_word" >&5 |
---|
[3771cc6e] | 1589 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
---|
| 1590 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1591 | else |
---|
| 1592 | if test -n "$CXX"; then |
---|
| 1593 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
| 1594 | else |
---|
| 1595 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 1596 | for ac_dir in $PATH; do |
---|
| 1597 | test -z "$ac_dir" && ac_dir=. |
---|
| 1598 | if test -f $ac_dir/$ac_word; then |
---|
| 1599 | ac_cv_prog_CXX="$ac_prog" |
---|
| 1600 | break |
---|
| 1601 | fi |
---|
| 1602 | done |
---|
| 1603 | IFS="$ac_save_ifs" |
---|
| 1604 | fi |
---|
| 1605 | fi |
---|
| 1606 | CXX="$ac_cv_prog_CXX" |
---|
| 1607 | if test -n "$CXX"; then |
---|
| 1608 | echo "$ac_t""$CXX" 1>&6 |
---|
| 1609 | else |
---|
| 1610 | echo "$ac_t""no" 1>&6 |
---|
| 1611 | fi |
---|
| 1612 | |
---|
| 1613 | test -n "$CXX" && break |
---|
| 1614 | done |
---|
| 1615 | test -n "$CXX" || CXX="gcc" |
---|
| 1616 | |
---|
| 1617 | |
---|
| 1618 | echo $ac_n "checking whether the target C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
[2758c9f2] | 1619 | echo "configure:1620: checking whether the target C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
---|
[3771cc6e] | 1620 | |
---|
| 1621 | ac_ext=C |
---|
| 1622 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 1623 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 1624 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 1625 | ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 1626 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
| 1627 | |
---|
| 1628 | |
---|
| 1629 | cat > conftest.$ac_ext <<EOF |
---|
[2758c9f2] | 1630 | #line 1631 "configure" |
---|
[3771cc6e] | 1631 | #include "confdefs.h" |
---|
| 1632 | main(){return(0);} |
---|
| 1633 | EOF |
---|
[2758c9f2] | 1634 | if { (eval echo configure:1635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
[3771cc6e] | 1635 | rtems_cv_prog_cxx_works=yes |
---|
| 1636 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
| 1637 | if (./conftest; exit) 2>/dev/null; then |
---|
| 1638 | rtems_cv_prog_cxx_cross=no |
---|
| 1639 | else |
---|
| 1640 | rtems_cv_prog_cxx_cross=yes |
---|
| 1641 | fi |
---|
| 1642 | else |
---|
| 1643 | echo "configure: failed program was:" >&5 |
---|
| 1644 | cat conftest.$ac_ext >&5 |
---|
| 1645 | rtems_cv_prog_cxx_works=no |
---|
| 1646 | fi |
---|
| 1647 | rm -fr conftest* |
---|
| 1648 | if test "$rtems_cv_prog_cxx_works" = "no"; then |
---|
| 1649 | cat > conftest.$ac_ext <<EOF |
---|
[2758c9f2] | 1650 | #line 1651 "configure" |
---|
[3771cc6e] | 1651 | #include "confdefs.h" |
---|
[01518357] | 1652 | main(){return(0);} |
---|
[3771cc6e] | 1653 | EOF |
---|
[2758c9f2] | 1654 | if { (eval echo configure:1655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
[3771cc6e] | 1655 | rtems_cv_prog_cxx_works=yes |
---|
| 1656 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
| 1657 | if (./conftest; exit) 2>/dev/null; then |
---|
| 1658 | rtems_cv_prog_cxx_cross=no |
---|
| 1659 | else |
---|
| 1660 | rtems_cv_prog_cxx_cross=yes |
---|
| 1661 | fi |
---|
| 1662 | else |
---|
| 1663 | echo "configure: failed program was:" >&5 |
---|
| 1664 | cat conftest.$ac_ext >&5 |
---|
| 1665 | rtems_cv_prog_cxx_works=no |
---|
| 1666 | fi |
---|
| 1667 | rm -fr conftest* |
---|
| 1668 | fi |
---|
| 1669 | ac_ext=c |
---|
| 1670 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 1671 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1672 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 1673 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 1674 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 1675 | |
---|
| 1676 | echo "$ac_t""$rtems_cv_prog_cxx_works" 1>&6 |
---|
| 1677 | if test $rtems_cv_prog_cxx_works = no; then |
---|
| 1678 | { echo "configure: error: installation or configuration problem: target C++ compiler cannot create executables." 1>&2; exit 1; } |
---|
| 1679 | fi |
---|
| 1680 | echo $ac_n "checking whether the target C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
[2758c9f2] | 1681 | echo "configure:1682: checking whether the target C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
[3771cc6e] | 1682 | echo "$ac_t""$rtems_cv_prog_cxx_cross" 1>&6 |
---|
| 1683 | |
---|
| 1684 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
---|
[2758c9f2] | 1685 | echo "configure:1686: checking whether we are using GNU C++" >&5 |
---|
[3771cc6e] | 1686 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
---|
| 1687 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1688 | else |
---|
| 1689 | cat > conftest.C <<EOF |
---|
| 1690 | #ifdef __GNUC__ |
---|
| 1691 | yes; |
---|
| 1692 | #endif |
---|
| 1693 | EOF |
---|
[2758c9f2] | 1694 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
[3771cc6e] | 1695 | ac_cv_prog_gxx=yes |
---|
| 1696 | else |
---|
| 1697 | ac_cv_prog_gxx=no |
---|
| 1698 | fi |
---|
| 1699 | fi |
---|
| 1700 | |
---|
| 1701 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
---|
| 1702 | |
---|
| 1703 | if test $ac_cv_prog_gxx = yes; then |
---|
| 1704 | GXX=yes |
---|
| 1705 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
---|
| 1706 | ac_save_CXXFLAGS="$CXXFLAGS" |
---|
| 1707 | CXXFLAGS= |
---|
| 1708 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 |
---|
[2758c9f2] | 1709 | echo "configure:1710: checking whether ${CXX-g++} accepts -g" >&5 |
---|
[3771cc6e] | 1710 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
---|
| 1711 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1712 | else |
---|
| 1713 | echo 'void f(){}' > conftest.cc |
---|
| 1714 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then |
---|
| 1715 | ac_cv_prog_cxx_g=yes |
---|
| 1716 | else |
---|
| 1717 | ac_cv_prog_cxx_g=no |
---|
| 1718 | fi |
---|
| 1719 | rm -f conftest* |
---|
| 1720 | |
---|
| 1721 | fi |
---|
| 1722 | |
---|
| 1723 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 |
---|
| 1724 | if test "$ac_test_CXXFLAGS" = set; then |
---|
| 1725 | CXXFLAGS="$ac_save_CXXFLAGS" |
---|
| 1726 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
| 1727 | CXXFLAGS="-g -O2" |
---|
| 1728 | else |
---|
| 1729 | CXXFLAGS="-O2" |
---|
| 1730 | fi |
---|
| 1731 | else |
---|
| 1732 | GXX= |
---|
| 1733 | test "${CXXFLAGS+set}" = set || CXXFLAGS="-g" |
---|
| 1734 | fi |
---|
| 1735 | CXX_FOR_TARGET=$CXX |
---|
| 1736 | |
---|
| 1737 | unset CXX |
---|
| 1738 | unset ac_cv_prog_gxx |
---|
| 1739 | |
---|
| 1740 | # Extract the first word of ""$program_prefix"g++", so it can be a program name with args. |
---|
| 1741 | set dummy "$program_prefix"g++; ac_word=$2 |
---|
| 1742 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[2758c9f2] | 1743 | echo "configure:1744: checking for $ac_word" >&5 |
---|
[3771cc6e] | 1744 | if eval "test \"`echo '$''{'ac_cv_path_CXX_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1745 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1746 | else |
---|
| 1747 | case "$CXX_FOR_TARGET" in |
---|
| 1748 | /*) |
---|
| 1749 | ac_cv_path_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test with a path. |
---|
| 1750 | ;; |
---|
| 1751 | *) |
---|
| 1752 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 1753 | for ac_dir in $PATH; do |
---|
| 1754 | test -z "$ac_dir" && ac_dir=. |
---|
| 1755 | if test -f $ac_dir/$ac_word; then |
---|
| 1756 | ac_cv_path_CXX_FOR_TARGET="$ac_dir/$ac_word" |
---|
| 1757 | break |
---|
| 1758 | fi |
---|
| 1759 | done |
---|
| 1760 | IFS="$ac_save_ifs" |
---|
| 1761 | test -z "$ac_cv_path_CXX_FOR_TARGET" && ac_cv_path_CXX_FOR_TARGET="no" |
---|
| 1762 | ;; |
---|
| 1763 | esac |
---|
| 1764 | fi |
---|
| 1765 | CXX_FOR_TARGET="$ac_cv_path_CXX_FOR_TARGET" |
---|
| 1766 | if test -n "$CXX_FOR_TARGET"; then |
---|
| 1767 | echo "$ac_t""$CXX_FOR_TARGET" 1>&6 |
---|
| 1768 | else |
---|
| 1769 | echo "$ac_t""no" 1>&6 |
---|
| 1770 | fi |
---|
| 1771 | |
---|
| 1772 | else |
---|
| 1773 | CXX_FOR_TARGET="no" |
---|
| 1774 | fi |
---|
| 1775 | |
---|
| 1776 | if test "$rtems_cv_prog_gcc" = "yes" ; then |
---|
| 1777 | AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar` |
---|
| 1778 | AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as` |
---|
| 1779 | LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld` |
---|
| 1780 | NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm` |
---|
| 1781 | RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib` |
---|
| 1782 | fi |
---|
| 1783 | |
---|
| 1784 | |
---|
| 1785 | # Extract the first word of ""$program_prefix"gcc", so it can be a program name with args. |
---|
| 1786 | set dummy "$program_prefix"gcc; ac_word=$2 |
---|
| 1787 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[2758c9f2] | 1788 | echo "configure:1789: checking for $ac_word" >&5 |
---|
[3771cc6e] | 1789 | if eval "test \"`echo '$''{'ac_cv_path_CC_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1790 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1791 | else |
---|
| 1792 | case "$CC_FOR_TARGET" in |
---|
| 1793 | /*) |
---|
| 1794 | ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a path. |
---|
| 1795 | ;; |
---|
| 1796 | *) |
---|
| 1797 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 1798 | for ac_dir in $PATH; do |
---|
| 1799 | test -z "$ac_dir" && ac_dir=. |
---|
| 1800 | if test -f $ac_dir/$ac_word; then |
---|
| 1801 | ac_cv_path_CC_FOR_TARGET="$ac_dir/$ac_word" |
---|
| 1802 | break |
---|
| 1803 | fi |
---|
| 1804 | done |
---|
| 1805 | IFS="$ac_save_ifs" |
---|
| 1806 | test -z "$ac_cv_path_CC_FOR_TARGET" && ac_cv_path_CC_FOR_TARGET="no" |
---|
| 1807 | ;; |
---|
| 1808 | esac |
---|
| 1809 | fi |
---|
| 1810 | CC_FOR_TARGET="$ac_cv_path_CC_FOR_TARGET" |
---|
| 1811 | if test -n "$CC_FOR_TARGET"; then |
---|
| 1812 | echo "$ac_t""$CC_FOR_TARGET" 1>&6 |
---|
| 1813 | else |
---|
| 1814 | echo "$ac_t""no" 1>&6 |
---|
| 1815 | fi |
---|
| 1816 | |
---|
| 1817 | |
---|
| 1818 | # Extract the first word of ""$program_prefix"ar", so it can be a program name with args. |
---|
| 1819 | set dummy "$program_prefix"ar; ac_word=$2 |
---|
| 1820 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[2758c9f2] | 1821 | echo "configure:1822: checking for $ac_word" >&5 |
---|
[3771cc6e] | 1822 | if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1823 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1824 | else |
---|
| 1825 | case "$AR_FOR_TARGET" in |
---|
| 1826 | /*) |
---|
| 1827 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
---|
| 1828 | ;; |
---|
| 1829 | *) |
---|
| 1830 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 1831 | for ac_dir in $PATH; do |
---|
| 1832 | test -z "$ac_dir" && ac_dir=. |
---|
| 1833 | if test -f $ac_dir/$ac_word; then |
---|
| 1834 | ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word" |
---|
| 1835 | break |
---|
| 1836 | fi |
---|
| 1837 | done |
---|
| 1838 | IFS="$ac_save_ifs" |
---|
| 1839 | test -z "$ac_cv_path_AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET="no" |
---|
| 1840 | ;; |
---|
| 1841 | esac |
---|
| 1842 | fi |
---|
| 1843 | AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET" |
---|
| 1844 | if test -n "$AR_FOR_TARGET"; then |
---|
| 1845 | echo "$ac_t""$AR_FOR_TARGET" 1>&6 |
---|
| 1846 | else |
---|
| 1847 | echo "$ac_t""no" 1>&6 |
---|
| 1848 | fi |
---|
| 1849 | |
---|
| 1850 | # Extract the first word of ""$program_prefix"as", so it can be a program name with args. |
---|
| 1851 | set dummy "$program_prefix"as; ac_word=$2 |
---|
| 1852 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[2758c9f2] | 1853 | echo "configure:1854: checking for $ac_word" >&5 |
---|
[3771cc6e] | 1854 | if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1855 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1856 | else |
---|
| 1857 | case "$AS_FOR_TARGET" in |
---|
| 1858 | /*) |
---|
| 1859 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
---|
| 1860 | ;; |
---|
| 1861 | *) |
---|
| 1862 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 1863 | for ac_dir in $PATH; do |
---|
| 1864 | test -z "$ac_dir" && ac_dir=. |
---|
| 1865 | if test -f $ac_dir/$ac_word; then |
---|
| 1866 | ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word" |
---|
| 1867 | break |
---|
| 1868 | fi |
---|
| 1869 | done |
---|
| 1870 | IFS="$ac_save_ifs" |
---|
| 1871 | test -z "$ac_cv_path_AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET="no" |
---|
| 1872 | ;; |
---|
| 1873 | esac |
---|
| 1874 | fi |
---|
| 1875 | AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET" |
---|
| 1876 | if test -n "$AS_FOR_TARGET"; then |
---|
| 1877 | echo "$ac_t""$AS_FOR_TARGET" 1>&6 |
---|
| 1878 | else |
---|
| 1879 | echo "$ac_t""no" 1>&6 |
---|
| 1880 | fi |
---|
| 1881 | |
---|
| 1882 | # Extract the first word of ""$program_prefix"nm", so it can be a program name with args. |
---|
| 1883 | set dummy "$program_prefix"nm; ac_word=$2 |
---|
[a50148a] | 1884 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[2758c9f2] | 1885 | echo "configure:1886: checking for $ac_word" >&5 |
---|
[3771cc6e] | 1886 | if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then |
---|
[a50148a] | 1887 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1888 | else |
---|
[3771cc6e] | 1889 | case "$NM_FOR_TARGET" in |
---|
[a50148a] | 1890 | /*) |
---|
[3771cc6e] | 1891 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
---|
[a50148a] | 1892 | ;; |
---|
| 1893 | *) |
---|
| 1894 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 1895 | for ac_dir in $PATH; do |
---|
| 1896 | test -z "$ac_dir" && ac_dir=. |
---|
| 1897 | if test -f $ac_dir/$ac_word; then |
---|
[3771cc6e] | 1898 | ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word" |
---|
[a50148a] | 1899 | break |
---|
| 1900 | fi |
---|
| 1901 | done |
---|
| 1902 | IFS="$ac_save_ifs" |
---|
[3771cc6e] | 1903 | test -z "$ac_cv_path_NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET="no" |
---|
[a50148a] | 1904 | ;; |
---|
| 1905 | esac |
---|
| 1906 | fi |
---|
[3771cc6e] | 1907 | NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET" |
---|
| 1908 | if test -n "$NM_FOR_TARGET"; then |
---|
| 1909 | echo "$ac_t""$NM_FOR_TARGET" 1>&6 |
---|
[a50148a] | 1910 | else |
---|
| 1911 | echo "$ac_t""no" 1>&6 |
---|
| 1912 | fi |
---|
| 1913 | |
---|
[3771cc6e] | 1914 | # Extract the first word of ""$program_prefix"ld", so it can be a program name with args. |
---|
| 1915 | set dummy "$program_prefix"ld; ac_word=$2 |
---|
[a50148a] | 1916 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[2758c9f2] | 1917 | echo "configure:1918: checking for $ac_word" >&5 |
---|
[3771cc6e] | 1918 | if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then |
---|
[a50148a] | 1919 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1920 | else |
---|
[3771cc6e] | 1921 | case "$LD_FOR_TARGET" in |
---|
[a50148a] | 1922 | /*) |
---|
[3771cc6e] | 1923 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
---|
[a50148a] | 1924 | ;; |
---|
| 1925 | *) |
---|
| 1926 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 1927 | for ac_dir in $PATH; do |
---|
| 1928 | test -z "$ac_dir" && ac_dir=. |
---|
| 1929 | if test -f $ac_dir/$ac_word; then |
---|
[3771cc6e] | 1930 | ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word" |
---|
[a50148a] | 1931 | break |
---|
| 1932 | fi |
---|
| 1933 | done |
---|
| 1934 | IFS="$ac_save_ifs" |
---|
[3771cc6e] | 1935 | test -z "$ac_cv_path_LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET="no" |
---|
[a50148a] | 1936 | ;; |
---|
| 1937 | esac |
---|
| 1938 | fi |
---|
[3771cc6e] | 1939 | LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET" |
---|
| 1940 | if test -n "$LD_FOR_TARGET"; then |
---|
| 1941 | echo "$ac_t""$LD_FOR_TARGET" 1>&6 |
---|
[a50148a] | 1942 | else |
---|
| 1943 | echo "$ac_t""no" 1>&6 |
---|
| 1944 | fi |
---|
| 1945 | |
---|
| 1946 | |
---|
[3771cc6e] | 1947 | # Extract the first word of ""$program_prefix"ranlib", so it can be a program name with args. |
---|
| 1948 | set dummy "$program_prefix"ranlib; ac_word=$2 |
---|
[a50148a] | 1949 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[2758c9f2] | 1950 | echo "configure:1951: checking for $ac_word" >&5 |
---|
[3771cc6e] | 1951 | if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then |
---|
[a50148a] | 1952 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1953 | else |
---|
[3771cc6e] | 1954 | case "$RANLIB_FOR_TARGET" in |
---|
[a50148a] | 1955 | /*) |
---|
[3771cc6e] | 1956 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
---|
[a50148a] | 1957 | ;; |
---|
| 1958 | *) |
---|
| 1959 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 1960 | for ac_dir in $PATH; do |
---|
| 1961 | test -z "$ac_dir" && ac_dir=. |
---|
| 1962 | if test -f $ac_dir/$ac_word; then |
---|
[3771cc6e] | 1963 | ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word" |
---|
[a50148a] | 1964 | break |
---|
| 1965 | fi |
---|
| 1966 | done |
---|
| 1967 | IFS="$ac_save_ifs" |
---|
[3771cc6e] | 1968 | test -z "$ac_cv_path_RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET="no" |
---|
[a50148a] | 1969 | ;; |
---|
| 1970 | esac |
---|
| 1971 | fi |
---|
[3771cc6e] | 1972 | RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET" |
---|
| 1973 | if test -n "$RANLIB_FOR_TARGET"; then |
---|
| 1974 | echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6 |
---|
[a50148a] | 1975 | else |
---|
| 1976 | echo "$ac_t""no" 1>&6 |
---|
| 1977 | fi |
---|
| 1978 | |
---|
[3771cc6e] | 1979 | |
---|
| 1980 | # Extract the first word of ""$program_prefix"objcopy", so it can be a program name with args. |
---|
| 1981 | set dummy "$program_prefix"objcopy; ac_word=$2 |
---|
[a50148a] | 1982 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[2758c9f2] | 1983 | echo "configure:1984: checking for $ac_word" >&5 |
---|
[3771cc6e] | 1984 | if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then |
---|
[a50148a] | 1985 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1986 | else |
---|
[3771cc6e] | 1987 | case "$OBJCOPY_FOR_TARGET" in |
---|
[a50148a] | 1988 | /*) |
---|
[3771cc6e] | 1989 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. |
---|
[a50148a] | 1990 | ;; |
---|
| 1991 | *) |
---|
| 1992 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 1993 | for ac_dir in $PATH; do |
---|
| 1994 | test -z "$ac_dir" && ac_dir=. |
---|
| 1995 | if test -f $ac_dir/$ac_word; then |
---|
[3771cc6e] | 1996 | ac_cv_path_OBJCOPY_FOR_TARGET="$ac_dir/$ac_word" |
---|
[a50148a] | 1997 | break |
---|
| 1998 | fi |
---|
| 1999 | done |
---|
| 2000 | IFS="$ac_save_ifs" |
---|
[3771cc6e] | 2001 | test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET="no" |
---|
[a50148a] | 2002 | ;; |
---|
| 2003 | esac |
---|
| 2004 | fi |
---|
[3771cc6e] | 2005 | OBJCOPY_FOR_TARGET="$ac_cv_path_OBJCOPY_FOR_TARGET" |
---|
| 2006 | if test -n "$OBJCOPY_FOR_TARGET"; then |
---|
| 2007 | echo "$ac_t""$OBJCOPY_FOR_TARGET" 1>&6 |
---|
[a50148a] | 2008 | else |
---|
| 2009 | echo "$ac_t""no" 1>&6 |
---|
| 2010 | fi |
---|
| 2011 | |
---|
[3771cc6e] | 2012 | # Extract the first word of ""$program_prefix"size", so it can be a program name with args. |
---|
| 2013 | set dummy "$program_prefix"size; ac_word=$2 |
---|
[a50148a] | 2014 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[2758c9f2] | 2015 | echo "configure:2016: checking for $ac_word" >&5 |
---|
[3771cc6e] | 2016 | if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then |
---|
[a50148a] | 2017 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2018 | else |
---|
[3771cc6e] | 2019 | case "$SIZE_FOR_TARGET" in |
---|
[a50148a] | 2020 | /*) |
---|
[3771cc6e] | 2021 | ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a path. |
---|
[a50148a] | 2022 | ;; |
---|
| 2023 | *) |
---|
| 2024 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 2025 | for ac_dir in $PATH; do |
---|
| 2026 | test -z "$ac_dir" && ac_dir=. |
---|
| 2027 | if test -f $ac_dir/$ac_word; then |
---|
[3771cc6e] | 2028 | ac_cv_path_SIZE_FOR_TARGET="$ac_dir/$ac_word" |
---|
[a50148a] | 2029 | break |
---|
| 2030 | fi |
---|
| 2031 | done |
---|
| 2032 | IFS="$ac_save_ifs" |
---|
[3771cc6e] | 2033 | test -z "$ac_cv_path_SIZE_FOR_TARGET" && ac_cv_path_SIZE_FOR_TARGET="no" |
---|
[a50148a] | 2034 | ;; |
---|
| 2035 | esac |
---|
| 2036 | fi |
---|
[3771cc6e] | 2037 | SIZE_FOR_TARGET="$ac_cv_path_SIZE_FOR_TARGET" |
---|
| 2038 | if test -n "$SIZE_FOR_TARGET"; then |
---|
| 2039 | echo "$ac_t""$SIZE_FOR_TARGET" 1>&6 |
---|
[a50148a] | 2040 | else |
---|
| 2041 | echo "$ac_t""no" 1>&6 |
---|
| 2042 | fi |
---|
| 2043 | |
---|
| 2044 | |
---|
[3771cc6e] | 2045 | test "$rtems_cv_gcc_pipe" = "yes" && CC_FOR_TARGET="$CC_FOR_TARGET --pipe" |
---|
[a50148a] | 2046 | |
---|
[3771cc6e] | 2047 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 2048 | set dummy gcc; ac_word=$2 |
---|
| 2049 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[2758c9f2] | 2050 | echo "configure:2051: checking for $ac_word" >&5 |
---|
[3771cc6e] | 2051 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
| 2052 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2053 | else |
---|
| 2054 | if test -n "$CC"; then |
---|
| 2055 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2056 | else |
---|
| 2057 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 2058 | for ac_dir in $PATH; do |
---|
| 2059 | test -z "$ac_dir" && ac_dir=. |
---|
| 2060 | if test -f $ac_dir/$ac_word; then |
---|
| 2061 | ac_cv_prog_CC="gcc" |
---|
| 2062 | break |
---|
| 2063 | fi |
---|
| 2064 | done |
---|
| 2065 | IFS="$ac_save_ifs" |
---|
| 2066 | fi |
---|
| 2067 | fi |
---|
| 2068 | CC="$ac_cv_prog_CC" |
---|
| 2069 | if test -n "$CC"; then |
---|
| 2070 | echo "$ac_t""$CC" 1>&6 |
---|
| 2071 | else |
---|
| 2072 | echo "$ac_t""no" 1>&6 |
---|
[a50148a] | 2073 | fi |
---|
| 2074 | |
---|
[3771cc6e] | 2075 | if test -z "$CC"; then |
---|
| 2076 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2077 | set dummy cc; ac_word=$2 |
---|
| 2078 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[2758c9f2] | 2079 | echo "configure:2080: checking for $ac_word" >&5 |
---|
[3771cc6e] | 2080 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
| 2081 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2082 | else |
---|
| 2083 | if test -n "$CC"; then |
---|
| 2084 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2085 | else |
---|
| 2086 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 2087 | ac_prog_rejected=no |
---|
| 2088 | for ac_dir in $PATH; do |
---|
| 2089 | test -z "$ac_dir" && ac_dir=. |
---|
| 2090 | if test -f $ac_dir/$ac_word; then |
---|
| 2091 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
---|
| 2092 | ac_prog_rejected=yes |
---|
| 2093 | continue |
---|
| 2094 | fi |
---|
| 2095 | ac_cv_prog_CC="cc" |
---|
| 2096 | break |
---|
| 2097 | fi |
---|
| 2098 | done |
---|
| 2099 | IFS="$ac_save_ifs" |
---|
| 2100 | if test $ac_prog_rejected = yes; then |
---|
| 2101 | # We found a bogon in the path, so make sure we never use it. |
---|
| 2102 | set dummy $ac_cv_prog_CC |
---|
| 2103 | shift |
---|
| 2104 | if test $# -gt 0; then |
---|
| 2105 | # We chose a different compiler from the bogus one. |
---|
| 2106 | # However, it has the same basename, so the bogon will be chosen |
---|
| 2107 | # first if we set CC to just the basename; use the full file name. |
---|
| 2108 | shift |
---|
| 2109 | set dummy "$ac_dir/$ac_word" "$@" |
---|
| 2110 | shift |
---|
| 2111 | ac_cv_prog_CC="$@" |
---|
| 2112 | fi |
---|
| 2113 | fi |
---|
| 2114 | fi |
---|
| 2115 | fi |
---|
| 2116 | CC="$ac_cv_prog_CC" |
---|
| 2117 | if test -n "$CC"; then |
---|
| 2118 | echo "$ac_t""$CC" 1>&6 |
---|
| 2119 | else |
---|
| 2120 | echo "$ac_t""no" 1>&6 |
---|
| 2121 | fi |
---|
[a50148a] | 2122 | |
---|
[3771cc6e] | 2123 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
| 2124 | fi |
---|
[a50148a] | 2125 | |
---|
[3771cc6e] | 2126 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
[2758c9f2] | 2127 | echo "configure:2128: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
[1670eede] | 2128 | |
---|
[3771cc6e] | 2129 | ac_ext=c |
---|
| 2130 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 2131 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2132 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 2133 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 2134 | cross_compiling=$ac_cv_prog_cc_cross |
---|
[872cc62] | 2135 | |
---|
[3771cc6e] | 2136 | cat > conftest.$ac_ext <<EOF |
---|
[2758c9f2] | 2137 | #line 2138 "configure" |
---|
[3771cc6e] | 2138 | #include "confdefs.h" |
---|
| 2139 | main(){return(0);} |
---|
| 2140 | EOF |
---|
[2758c9f2] | 2141 | if { (eval echo configure:2142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
[3771cc6e] | 2142 | ac_cv_prog_cc_works=yes |
---|
| 2143 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
| 2144 | if (./conftest; exit) 2>/dev/null; then |
---|
| 2145 | ac_cv_prog_cc_cross=no |
---|
| 2146 | else |
---|
| 2147 | ac_cv_prog_cc_cross=yes |
---|
| 2148 | fi |
---|
| 2149 | else |
---|
| 2150 | echo "configure: failed program was:" >&5 |
---|
| 2151 | cat conftest.$ac_ext >&5 |
---|
| 2152 | ac_cv_prog_cc_works=no |
---|
| 2153 | fi |
---|
| 2154 | rm -fr conftest* |
---|
[744df795] | 2155 | |
---|
[3771cc6e] | 2156 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
| 2157 | if test $ac_cv_prog_cc_works = no; then |
---|
| 2158 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
| 2159 | fi |
---|
| 2160 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
[2758c9f2] | 2161 | echo "configure:2162: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
[3771cc6e] | 2162 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
| 2163 | cross_compiling=$ac_cv_prog_cc_cross |
---|
[1670eede] | 2164 | |
---|
[3771cc6e] | 2165 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
[2758c9f2] | 2166 | echo "configure:2167: checking whether we are using GNU C" >&5 |
---|
[3771cc6e] | 2167 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
| 2168 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2169 | else |
---|
| 2170 | cat > conftest.c <<EOF |
---|
| 2171 | #ifdef __GNUC__ |
---|
| 2172 | yes; |
---|
| 2173 | #endif |
---|
| 2174 | EOF |
---|
[2758c9f2] | 2175 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
[3771cc6e] | 2176 | ac_cv_prog_gcc=yes |
---|
| 2177 | else |
---|
| 2178 | ac_cv_prog_gcc=no |
---|
| 2179 | fi |
---|
| 2180 | fi |
---|
[254b4450] | 2181 | |
---|
[3771cc6e] | 2182 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
[b9ca4ba] | 2183 | |
---|
[3771cc6e] | 2184 | if test $ac_cv_prog_gcc = yes; then |
---|
| 2185 | GCC=yes |
---|
| 2186 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
| 2187 | ac_save_CFLAGS="$CFLAGS" |
---|
| 2188 | CFLAGS= |
---|
| 2189 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
[2758c9f2] | 2190 | echo "configure:2191: checking whether ${CC-cc} accepts -g" >&5 |
---|
[3771cc6e] | 2191 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
| 2192 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2193 | else |
---|
| 2194 | echo 'void f(){}' > conftest.c |
---|
| 2195 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
| 2196 | ac_cv_prog_cc_g=yes |
---|
| 2197 | else |
---|
| 2198 | ac_cv_prog_cc_g=no |
---|
[b9ca4ba] | 2199 | fi |
---|
[3771cc6e] | 2200 | rm -f conftest* |
---|
[b9ca4ba] | 2201 | |
---|
[3771cc6e] | 2202 | fi |
---|
[b9ca4ba] | 2203 | |
---|
[3771cc6e] | 2204 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
| 2205 | if test "$ac_test_CFLAGS" = set; then |
---|
| 2206 | CFLAGS="$ac_save_CFLAGS" |
---|
| 2207 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 2208 | CFLAGS="-g -O2" |
---|
| 2209 | else |
---|
| 2210 | CFLAGS="-O2" |
---|
| 2211 | fi |
---|
| 2212 | else |
---|
| 2213 | GCC= |
---|
| 2214 | test "${CFLAGS+set}" = set || CFLAGS="-g" |
---|
| 2215 | fi |
---|
| 2216 | |
---|
| 2217 | |
---|
| 2218 | for ac_func in strerror |
---|
| 2219 | do |
---|
| 2220 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
[2758c9f2] | 2221 | echo "configure:2222: checking for $ac_func" >&5 |
---|
[3771cc6e] | 2222 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
| 2223 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2224 | else |
---|
| 2225 | cat > conftest.$ac_ext <<EOF |
---|
[2758c9f2] | 2226 | #line 2227 "configure" |
---|
[3771cc6e] | 2227 | #include "confdefs.h" |
---|
| 2228 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 2229 | which can conflict with char $ac_func(); below. */ |
---|
| 2230 | #include <assert.h> |
---|
| 2231 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 2232 | /* We use char because int might match the return type of a gcc2 |
---|
| 2233 | builtin and then its argument prototype would still apply. */ |
---|
| 2234 | char $ac_func(); |
---|
| 2235 | |
---|
| 2236 | int main() { |
---|
| 2237 | |
---|
| 2238 | /* The GNU C library defines this for functions which it implements |
---|
| 2239 | to always fail with ENOSYS. Some functions are actually named |
---|
| 2240 | something starting with __ and the normal name is an alias. */ |
---|
| 2241 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
| 2242 | choke me |
---|
| 2243 | #else |
---|
| 2244 | $ac_func(); |
---|
| 2245 | #endif |
---|
| 2246 | |
---|
| 2247 | ; return 0; } |
---|
| 2248 | EOF |
---|
[2758c9f2] | 2249 | if { (eval echo configure:2250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
[3771cc6e] | 2250 | rm -rf conftest* |
---|
| 2251 | eval "ac_cv_func_$ac_func=yes" |
---|
| 2252 | else |
---|
| 2253 | echo "configure: failed program was:" >&5 |
---|
| 2254 | cat conftest.$ac_ext >&5 |
---|
| 2255 | rm -rf conftest* |
---|
| 2256 | eval "ac_cv_func_$ac_func=no" |
---|
| 2257 | fi |
---|
| 2258 | rm -f conftest* |
---|
| 2259 | fi |
---|
| 2260 | |
---|
| 2261 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
[1670eede] | 2262 | echo "$ac_t""yes" 1>&6 |
---|
[3771cc6e] | 2263 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
| 2264 | cat >> confdefs.h <<EOF |
---|
| 2265 | #define $ac_tr_func 1 |
---|
| 2266 | EOF |
---|
| 2267 | |
---|
[1670eede] | 2268 | else |
---|
[3771cc6e] | 2269 | echo "$ac_t""no" 1>&6 |
---|
[1670eede] | 2270 | fi |
---|
[3771cc6e] | 2271 | done |
---|
| 2272 | |
---|
[1670eede] | 2273 | |
---|
[37717818] | 2274 | # find all the Executive Makefiles |
---|
[1670eede] | 2275 | |
---|
[744df795] | 2276 | echo $ac_n "checking for Makefile.in in c/src/exec/score/tools/$target_cpu""... $ac_c" 1>&6 |
---|
[2758c9f2] | 2277 | echo "configure:2278: checking for Makefile.in in c/src/exec/score/tools/$target_cpu" >&5 |
---|
[744df795] | 2278 | if test -d $srcdir/c/src/exec/score/tools/$target_cpu; then |
---|
| 2279 | rtems_av_save_dir=`pwd`; |
---|
| 2280 | cd $srcdir; |
---|
[6f9c75c3] | 2281 | rtems_av_tmp=`find c/src/exec/score/tools/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[744df795] | 2282 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 2283 | cd $rtems_av_save_dir; |
---|
| 2284 | echo "$ac_t""done" 1>&6 |
---|
| 2285 | else |
---|
| 2286 | echo "$ac_t""no" 1>&6 |
---|
| 2287 | fi |
---|
| 2288 | |
---|
| 2289 | |
---|
| 2290 | |
---|
[37717818] | 2291 | echo $ac_n "checking for Makefile.in in c/src/exec/rtems""... $ac_c" 1>&6 |
---|
[2758c9f2] | 2292 | echo "configure:2293: checking for Makefile.in in c/src/exec/rtems" >&5 |
---|
[37717818] | 2293 | if test -d $srcdir/c/src/exec/rtems; then |
---|
| 2294 | rtems_av_save_dir=`pwd`; |
---|
| 2295 | cd $srcdir; |
---|
[6f9c75c3] | 2296 | rtems_av_tmp=`find c/src/exec/rtems -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[37717818] | 2297 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 2298 | cd $rtems_av_save_dir; |
---|
| 2299 | echo "$ac_t""done" 1>&6 |
---|
| 2300 | else |
---|
| 2301 | echo "$ac_t""no" 1>&6 |
---|
| 2302 | fi |
---|
[1670eede] | 2303 | |
---|
| 2304 | |
---|
| 2305 | |
---|
[37717818] | 2306 | echo $ac_n "checking for Makefile.in in c/src/exec/sapi""... $ac_c" 1>&6 |
---|
[2758c9f2] | 2307 | echo "configure:2308: checking for Makefile.in in c/src/exec/sapi" >&5 |
---|
[37717818] | 2308 | if test -d $srcdir/c/src/exec/sapi; then |
---|
| 2309 | rtems_av_save_dir=`pwd`; |
---|
| 2310 | cd $srcdir; |
---|
[6f9c75c3] | 2311 | rtems_av_tmp=`find c/src/exec/sapi -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[37717818] | 2312 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 2313 | cd $rtems_av_save_dir; |
---|
| 2314 | echo "$ac_t""done" 1>&6 |
---|
[1670eede] | 2315 | else |
---|
[37717818] | 2316 | echo "$ac_t""no" 1>&6 |
---|
| 2317 | fi |
---|
[1670eede] | 2318 | |
---|
| 2319 | |
---|
| 2320 | |
---|
[ba1a2af9] | 2321 | if test "$RTEMS_HAS_POSIX_API" = "yes"; then |
---|
[b9ca4ba] | 2322 | |
---|
| 2323 | echo $ac_n "checking for Makefile.in in c/src/exec/posix""... $ac_c" 1>&6 |
---|
[2758c9f2] | 2324 | echo "configure:2325: checking for Makefile.in in c/src/exec/posix" >&5 |
---|
[b9ca4ba] | 2325 | if test -d $srcdir/c/src/exec/posix; then |
---|
[37717818] | 2326 | rtems_av_save_dir=`pwd`; |
---|
| 2327 | cd $srcdir; |
---|
[6f9c75c3] | 2328 | rtems_av_tmp=`find c/src/exec/posix -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[37717818] | 2329 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 2330 | cd $rtems_av_save_dir; |
---|
| 2331 | echo "$ac_t""done" 1>&6 |
---|
[1670eede] | 2332 | else |
---|
| 2333 | echo "$ac_t""no" 1>&6 |
---|
| 2334 | fi |
---|
| 2335 | |
---|
| 2336 | |
---|
[ba1a2af9] | 2337 | makefiles="$makefiles c/src/exec/wrapup/posix/Makefile" |
---|
[b9ca4ba] | 2338 | fi |
---|
[1670eede] | 2339 | |
---|
[37717818] | 2340 | # find all the Makefiles for the BSPs |
---|
| 2341 | if test -d "$srcdir/c/src/lib/libbsp/$target_cpu"; then |
---|
| 2342 | makefiles="$makefiles c/src/lib/libbsp/$target_cpu/Makefile" |
---|
| 2343 | |
---|
| 2344 | if test -z "$rtems_bsp"; then |
---|
| 2345 | echo $ac_n "checking for bsps""... $ac_c" 1>&6 |
---|
[2758c9f2] | 2346 | echo "configure:2347: checking for bsps" >&5 |
---|
[37717818] | 2347 | files=`ls $srcdir/c/src/lib/libbsp/$target_cpu` |
---|
| 2348 | for file in $files; do |
---|
| 2349 | case $file in |
---|
| 2350 | shared*);; |
---|
| 2351 | Makefile*);; |
---|
| 2352 | READ*);; |
---|
| 2353 | CVS*);; |
---|
[674c900] | 2354 | pxfl*);; |
---|
| 2355 | go32*);; # so the i386 port can pick up the other Makefiles |
---|
| 2356 | # Now account for BSPs with build variants |
---|
| 2357 | gen68360) rtems_bsp="$rtems_bsp gen68360 gen68360_040";; |
---|
| 2358 | p4000) rtems_bsp="$rtems_bsp p4600 p4650";; |
---|
| 2359 | mvme162) rtems_bsp="$rtems_bsp mvme162 mvme162lx";; |
---|
[37717818] | 2360 | *) rtems_bsp="$rtems_bsp $file";; |
---|
| 2361 | esac; |
---|
| 2362 | done |
---|
[674c900] | 2363 | |
---|
[300c8a76] | 2364 | echo "$ac_t""$rtems_bsp done" 1>&6 |
---|
[37717818] | 2365 | fi |
---|
[1670eede] | 2366 | |
---|
[37717818] | 2367 | # collect makefiles for each bsp |
---|
| 2368 | for i in $rtems_bsp; do |
---|
[b9ca4ba] | 2369 | # make sure there is a make/custom file for the bsp |
---|
[6d6f1b34] | 2370 | if test ! -r "$srcdir/make/custom/${i}.cfg"; then |
---|
[b9ca4ba] | 2371 | { echo "configure: error: no make/custom/${i}.cfg file for BSP $i" 1>&2; exit 1; } |
---|
| 2372 | fi |
---|
[674c900] | 2373 | |
---|
[b9ca4ba] | 2374 | # account for "aliased" bsps which share source code |
---|
| 2375 | case $i in |
---|
| 2376 | mvme162lx) bspdir=mvme162 ;; # mvme162 board variant |
---|
| 2377 | gen68360_040) bspdir=gen68360 ;; # 68360 in companion mode |
---|
| 2378 | go32_p5) bspdir=go32 ;; # go32 on Pentium class CPU |
---|
| 2379 | p4600) bspdir=p4000 ;; # p4000 board with IDT 4600 |
---|
| 2380 | p4650) bspdir=p4000 ;; # p4000 board with IDT 4650 |
---|
| 2381 | *) bspdir=$i;; |
---|
| 2382 | esac |
---|
| 2383 | |
---|
| 2384 | # Is there code where there should be for this BSP? |
---|
| 2385 | if test -d "$srcdir/c/src/lib/libbsp/$target_cpu/$bspdir"; then |
---|
[87cec48] | 2386 | RTEMS_BSP_LIST="$RTEMS_BSP_LIST $i" |
---|
[b9ca4ba] | 2387 | # make sure the Makefiles in a bsp directory are only done once |
---|
| 2388 | echo $bspdirs | grep $bspdir >/dev/null 2>&1 |
---|
| 2389 | if test $? -ne 0 ; then |
---|
| 2390 | bspdirs="$bspdirs $bspdir" |
---|
| 2391 | |
---|
| 2392 | echo $ac_n "checking for Makefile.in in c/src/lib/libbsp/$target_cpu/$bspdir""... $ac_c" 1>&6 |
---|
[2758c9f2] | 2393 | echo "configure:2394: checking for Makefile.in in c/src/lib/libbsp/$target_cpu/$bspdir" >&5 |
---|
[b9ca4ba] | 2394 | if test -d $srcdir/c/src/lib/libbsp/$target_cpu/$bspdir; then |
---|
[37717818] | 2395 | rtems_av_save_dir=`pwd`; |
---|
| 2396 | cd $srcdir; |
---|
[6f9c75c3] | 2397 | rtems_av_tmp=`find c/src/lib/libbsp/$target_cpu/$bspdir -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[37717818] | 2398 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 2399 | cd $rtems_av_save_dir; |
---|
| 2400 | echo "$ac_t""done" 1>&6 |
---|
| 2401 | else |
---|
| 2402 | echo "$ac_t""no" 1>&6 |
---|
| 2403 | fi |
---|
[1670eede] | 2404 | |
---|
| 2405 | |
---|
[b9ca4ba] | 2406 | fi |
---|
| 2407 | else |
---|
| 2408 | { echo "configure: error: unable to find libbsp directory ($bspdir) for $i" 1>&2; exit 1; } |
---|
| 2409 | fi |
---|
[1670eede] | 2410 | done |
---|
[37717818] | 2411 | fi |
---|
| 2412 | |
---|
| 2413 | # find all the CPU dependent library Makefiles |
---|
| 2414 | |
---|
| 2415 | echo $ac_n "checking for Makefile.in in c/src/lib/libcpu/$target_cpu""... $ac_c" 1>&6 |
---|
[2758c9f2] | 2416 | echo "configure:2417: checking for Makefile.in in c/src/lib/libcpu/$target_cpu" >&5 |
---|
[37717818] | 2417 | if test -d $srcdir/c/src/lib/libcpu/$target_cpu; then |
---|
| 2418 | rtems_av_save_dir=`pwd`; |
---|
| 2419 | cd $srcdir; |
---|
[6f9c75c3] | 2420 | rtems_av_tmp=`find c/src/lib/libcpu/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[37717818] | 2421 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 2422 | cd $rtems_av_save_dir; |
---|
| 2423 | echo "$ac_t""done" 1>&6 |
---|
| 2424 | else |
---|
| 2425 | echo "$ac_t""no" 1>&6 |
---|
| 2426 | fi |
---|
[1670eede] | 2427 | |
---|
| 2428 | |
---|
| 2429 | |
---|
[37717818] | 2430 | if test "$skip_startfiles" != "yes"; then |
---|
| 2431 | |
---|
| 2432 | echo $ac_n "checking for Makefile.in in c/src/lib/start/$target_cpu""... $ac_c" 1>&6 |
---|
[2758c9f2] | 2433 | echo "configure:2434: checking for Makefile.in in c/src/lib/start/$target_cpu" >&5 |
---|
[37717818] | 2434 | if test -d $srcdir/c/src/lib/start/$target_cpu; then |
---|
| 2435 | rtems_av_save_dir=`pwd`; |
---|
| 2436 | cd $srcdir; |
---|
[6f9c75c3] | 2437 | rtems_av_tmp=`find c/src/lib/start/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[37717818] | 2438 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 2439 | cd $rtems_av_save_dir; |
---|
| 2440 | echo "$ac_t""done" 1>&6 |
---|
| 2441 | else |
---|
| 2442 | echo "$ac_t""no" 1>&6 |
---|
| 2443 | fi |
---|
[1670eede] | 2444 | |
---|
| 2445 | |
---|
[37717818] | 2446 | fi |
---|
[1670eede] | 2447 | |
---|
| 2448 | |
---|
| 2449 | |
---|
[4a7c0451] | 2450 | PROJECT_ROOT=`pwd;` |
---|
[254b4450] | 2451 | |
---|
[566aea7d] | 2452 | # If RTEMS macros are enabled, then use them. Otherwise, use inlines. |
---|
| 2453 | if test "$RTEMS_USE_MACROS" = "yes"; then |
---|
| 2454 | inline_dir=macros |
---|
| 2455 | if test "$RTEMS_HAS_POSIX_API" = "yes"; then |
---|
| 2456 | # The problem is that there is currently no code in posix/macros :) |
---|
| 2457 | { echo "configure: error: Macros are not implemented for the POSIX API" 1>&2; exit 1; } |
---|
| 2458 | fi |
---|
| 2459 | else |
---|
| 2460 | inline_dir=inline |
---|
| 2461 | fi |
---|
| 2462 | |
---|
[80a16ec4] | 2463 | # If the KA9Q TCP/IP stack is enabled, then find all KA9Q Makefiles |
---|
| 2464 | if test "$RTEMS_HAS_KA9Q" = "yes"; then |
---|
| 2465 | makefiles="$makefiles c/src/lib/libka9q/Makefile" |
---|
| 2466 | fi |
---|
[1f0f3e35] | 2467 | |
---|
[80a16ec4] | 2468 | # If the C++ support is enabled, then include the Makefiles |
---|
| 2469 | if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then |
---|
| 2470 | makefiles="$makefiles c/src/lib/librtems++/Makefile" |
---|
| 2471 | fi |
---|
[37717818] | 2472 | |
---|
| 2473 | # If the tests are enabled, then find all the test suite Makefiles |
---|
[70dda0ea] | 2474 | echo $ac_n "checking if the test suites are enabled? ""... $ac_c" 1>&6 |
---|
[2758c9f2] | 2475 | echo "configure:2476: checking if the test suites are enabled? " >&5 |
---|
[b9ca4ba] | 2476 | tests_enabled=yes |
---|
[254b4450] | 2477 | # Check whether --enable-tests or --disable-tests was given. |
---|
| 2478 | if test "${enable_tests+set}" = set; then |
---|
| 2479 | enableval="$enable_tests" |
---|
| 2480 | \ |
---|
[b9ca4ba] | 2481 | case "${enableval}" in |
---|
| 2482 | yes) echo "$ac_t""yes" 1>&6 ;; |
---|
| 2483 | no) echo "$ac_t""no" 1>&6 ; tests_enabled=no ;; |
---|
| 2484 | *) { echo "configure: error: bad value ${enableval} for tests option" 1>&2; exit 1; } ;; |
---|
| 2485 | esac |
---|
[37717818] | 2486 | else |
---|
[b9ca4ba] | 2487 | echo "$ac_t""yes" 1>&6 |
---|
| 2488 | |
---|
| 2489 | fi |
---|
| 2490 | |
---|
| 2491 | |
---|
[41f61bc] | 2492 | |
---|
[37717818] | 2493 | echo $ac_n "checking for Makefile.in in c/src/tests/tools/$target_cpu""... $ac_c" 1>&6 |
---|
[2758c9f2] | 2494 | echo "configure:2495: checking for Makefile.in in c/src/tests/tools/$target_cpu" >&5 |
---|
[37717818] | 2495 | if test -d $srcdir/c/src/tests/tools/$target_cpu; then |
---|
| 2496 | rtems_av_save_dir=`pwd`; |
---|
| 2497 | cd $srcdir; |
---|
[6f9c75c3] | 2498 | rtems_av_tmp=`find c/src/tests/tools/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[37717818] | 2499 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 2500 | cd $rtems_av_save_dir; |
---|
| 2501 | echo "$ac_t""done" 1>&6 |
---|
| 2502 | else |
---|
| 2503 | echo "$ac_t""no" 1>&6 |
---|
| 2504 | fi |
---|
| 2505 | |
---|
[b9ca4ba] | 2506 | |
---|
[41f61bc] | 2507 | |
---|
| 2508 | if test "$tests_enabled" = "yes"; then |
---|
[b9ca4ba] | 2509 | |
---|
[37717818] | 2510 | echo $ac_n "checking for Makefile.in in c/src/tests/libtests""... $ac_c" 1>&6 |
---|
[2758c9f2] | 2511 | echo "configure:2512: checking for Makefile.in in c/src/tests/libtests" >&5 |
---|
[37717818] | 2512 | if test -d $srcdir/c/src/tests/libtests; then |
---|
| 2513 | rtems_av_save_dir=`pwd`; |
---|
| 2514 | cd $srcdir; |
---|
[6f9c75c3] | 2515 | rtems_av_tmp=`find c/src/tests/libtests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[37717818] | 2516 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 2517 | cd $rtems_av_save_dir; |
---|
| 2518 | echo "$ac_t""done" 1>&6 |
---|
[254b4450] | 2519 | else |
---|
[37717818] | 2520 | echo "$ac_t""no" 1>&6 |
---|
| 2521 | fi |
---|
| 2522 | |
---|
[b9ca4ba] | 2523 | |
---|
| 2524 | |
---|
[37717818] | 2525 | echo $ac_n "checking for Makefile.in in c/src/tests/sptests""... $ac_c" 1>&6 |
---|
[2758c9f2] | 2526 | echo "configure:2527: checking for Makefile.in in c/src/tests/sptests" >&5 |
---|
[37717818] | 2527 | if test -d $srcdir/c/src/tests/sptests; then |
---|
| 2528 | rtems_av_save_dir=`pwd`; |
---|
| 2529 | cd $srcdir; |
---|
[6f9c75c3] | 2530 | rtems_av_tmp=`find c/src/tests/sptests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[37717818] | 2531 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 2532 | cd $rtems_av_save_dir; |
---|
| 2533 | echo "$ac_t""done" 1>&6 |
---|
| 2534 | else |
---|
| 2535 | echo "$ac_t""no" 1>&6 |
---|
| 2536 | fi |
---|
| 2537 | |
---|
[b9ca4ba] | 2538 | |
---|
| 2539 | |
---|
[37717818] | 2540 | echo $ac_n "checking for Makefile.in in c/src/tests/tmtests""... $ac_c" 1>&6 |
---|
[2758c9f2] | 2541 | echo "configure:2542: checking for Makefile.in in c/src/tests/tmtests" >&5 |
---|
[37717818] | 2542 | if test -d $srcdir/c/src/tests/tmtests; then |
---|
| 2543 | rtems_av_save_dir=`pwd`; |
---|
| 2544 | cd $srcdir; |
---|
[6f9c75c3] | 2545 | rtems_av_tmp=`find c/src/tests/tmtests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[37717818] | 2546 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 2547 | cd $rtems_av_save_dir; |
---|
| 2548 | echo "$ac_t""done" 1>&6 |
---|
| 2549 | else |
---|
| 2550 | echo "$ac_t""no" 1>&6 |
---|
| 2551 | fi |
---|
| 2552 | |
---|
[b9ca4ba] | 2553 | |
---|
| 2554 | |
---|
[37717818] | 2555 | echo $ac_n "checking for Makefile.in in c/src/tests/mptests""... $ac_c" 1>&6 |
---|
[2758c9f2] | 2556 | echo "configure:2557: checking for Makefile.in in c/src/tests/mptests" >&5 |
---|
[37717818] | 2557 | if test -d $srcdir/c/src/tests/mptests; then |
---|
| 2558 | rtems_av_save_dir=`pwd`; |
---|
| 2559 | cd $srcdir; |
---|
[6f9c75c3] | 2560 | rtems_av_tmp=`find c/src/tests/mptests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[37717818] | 2561 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 2562 | cd $rtems_av_save_dir; |
---|
| 2563 | echo "$ac_t""done" 1>&6 |
---|
| 2564 | else |
---|
| 2565 | echo "$ac_t""no" 1>&6 |
---|
[254b4450] | 2566 | fi |
---|
| 2567 | |
---|
[b9ca4ba] | 2568 | |
---|
[9829978] | 2569 | if test "$RTEMS_HAS_POSIX_API" = "yes"; then |
---|
[37717818] | 2570 | |
---|
| 2571 | echo $ac_n "checking for Makefile.in in c/src/tests/psxtests""... $ac_c" 1>&6 |
---|
[2758c9f2] | 2572 | echo "configure:2573: checking for Makefile.in in c/src/tests/psxtests" >&5 |
---|
[37717818] | 2573 | if test -d $srcdir/c/src/tests/psxtests; then |
---|
| 2574 | rtems_av_save_dir=`pwd`; |
---|
| 2575 | cd $srcdir; |
---|
[6f9c75c3] | 2576 | rtems_av_tmp=`find c/src/tests/psxtests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[37717818] | 2577 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 2578 | cd $rtems_av_save_dir; |
---|
| 2579 | echo "$ac_t""done" 1>&6 |
---|
| 2580 | else |
---|
| 2581 | echo "$ac_t""no" 1>&6 |
---|
| 2582 | fi |
---|
[254b4450] | 2583 | |
---|
[37717818] | 2584 | |
---|
[b9ca4ba] | 2585 | fi |
---|
| 2586 | fi |
---|
[37717818] | 2587 | |
---|
| 2588 | # If the HWAPI is enabled, the find the HWAPI Makefiles |
---|
[70dda0ea] | 2589 | echo $ac_n "checking if the HWAPI is enabled? ""... $ac_c" 1>&6 |
---|
[2758c9f2] | 2590 | echo "configure:2591: checking if the HWAPI is enabled? " >&5 |
---|
[d4cf164] | 2591 | # Check whether --enable-hwapi or --disable-hwapi was given. |
---|
| 2592 | if test "${enable_hwapi+set}" = set; then |
---|
| 2593 | enableval="$enable_hwapi" |
---|
| 2594 | \ |
---|
[b9ca4ba] | 2595 | case "${enableval}" in |
---|
| 2596 | yes) echo "$ac_t""yes" 1>&6 |
---|
[80a16ec4] | 2597 | if test -f ${srcdir}/c/src/lib/libhwapi/Makefile.in ; then |
---|
| 2598 | makefiles="$makefiles c/src/lib/libhwapi/Makefile" |
---|
| 2599 | |
---|
| 2600 | echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/analog""... $ac_c" 1>&6 |
---|
[2758c9f2] | 2601 | echo "configure:2602: checking for Makefile.in in c/src/lib/libhwapi/analog" >&5 |
---|
[80a16ec4] | 2602 | if test -d $srcdir/c/src/lib/libhwapi/analog; then |
---|
| 2603 | rtems_av_save_dir=`pwd`; |
---|
| 2604 | cd $srcdir; |
---|
[6f9c75c3] | 2605 | rtems_av_tmp=`find c/src/lib/libhwapi/analog -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[80a16ec4] | 2606 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 2607 | cd $rtems_av_save_dir; |
---|
| 2608 | echo "$ac_t""done" 1>&6 |
---|
| 2609 | else |
---|
| 2610 | echo "$ac_t""no" 1>&6 |
---|
| 2611 | fi |
---|
| 2612 | |
---|
| 2613 | |
---|
| 2614 | |
---|
| 2615 | echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/discrete""... $ac_c" 1>&6 |
---|
[2758c9f2] | 2616 | echo "configure:2617: checking for Makefile.in in c/src/lib/libhwapi/discrete" >&5 |
---|
[80a16ec4] | 2617 | if test -d $srcdir/c/src/lib/libhwapi/discrete; then |
---|
| 2618 | rtems_av_save_dir=`pwd`; |
---|
| 2619 | cd $srcdir; |
---|
[6f9c75c3] | 2620 | rtems_av_tmp=`find c/src/lib/libhwapi/discrete -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[80a16ec4] | 2621 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 2622 | cd $rtems_av_save_dir; |
---|
| 2623 | echo "$ac_t""done" 1>&6 |
---|
| 2624 | else |
---|
| 2625 | echo "$ac_t""no" 1>&6 |
---|
| 2626 | fi |
---|
| 2627 | |
---|
| 2628 | |
---|
| 2629 | |
---|
| 2630 | echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/drivers""... $ac_c" 1>&6 |
---|
[2758c9f2] | 2631 | echo "configure:2632: checking for Makefile.in in c/src/lib/libhwapi/drivers" >&5 |
---|
[80a16ec4] | 2632 | if test -d $srcdir/c/src/lib/libhwapi/drivers; then |
---|
| 2633 | rtems_av_save_dir=`pwd`; |
---|
| 2634 | cd $srcdir; |
---|
[6f9c75c3] | 2635 | rtems_av_tmp=`find c/src/lib/libhwapi/drivers -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[80a16ec4] | 2636 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 2637 | cd $rtems_av_save_dir; |
---|
| 2638 | echo "$ac_t""done" 1>&6 |
---|
| 2639 | else |
---|
| 2640 | echo "$ac_t""no" 1>&6 |
---|
| 2641 | fi |
---|
| 2642 | |
---|
| 2643 | |
---|
| 2644 | |
---|
[6d6f1b34] | 2645 | echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory""... $ac_c" 1>&6 |
---|
[2758c9f2] | 2646 | echo "configure:2647: checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory" >&5 |
---|
[6d6f1b34] | 2647 | if test -d $srcdir/c/src/lib/libhwapi/non_volatile_memory; then |
---|
[37717818] | 2648 | rtems_av_save_dir=`pwd`; |
---|
| 2649 | cd $srcdir; |
---|
[6d6f1b34] | 2650 | rtems_av_tmp=`find c/src/lib/libhwapi/non_volatile_memory -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[37717818] | 2651 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 2652 | cd $rtems_av_save_dir; |
---|
| 2653 | echo "$ac_t""done" 1>&6 |
---|
[d4cf164] | 2654 | else |
---|
[37717818] | 2655 | echo "$ac_t""no" 1>&6 |
---|
| 2656 | fi |
---|
| 2657 | |
---|
[80a16ec4] | 2658 | |
---|
| 2659 | |
---|
| 2660 | echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/serial""... $ac_c" 1>&6 |
---|
[2758c9f2] | 2661 | echo "configure:2662: checking for Makefile.in in c/src/lib/libhwapi/serial" >&5 |
---|
[80a16ec4] | 2662 | if test -d $srcdir/c/src/lib/libhwapi/serial; then |
---|
| 2663 | rtems_av_save_dir=`pwd`; |
---|
| 2664 | cd $srcdir; |
---|
[6f9c75c3] | 2665 | rtems_av_tmp=`find c/src/lib/libhwapi/serial -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[80a16ec4] | 2666 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 2667 | cd $rtems_av_save_dir; |
---|
| 2668 | echo "$ac_t""done" 1>&6 |
---|
| 2669 | else |
---|
| 2670 | echo "$ac_t""no" 1>&6 |
---|
| 2671 | fi |
---|
| 2672 | |
---|
| 2673 | |
---|
| 2674 | |
---|
| 2675 | echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/support""... $ac_c" 1>&6 |
---|
[2758c9f2] | 2676 | echo "configure:2677: checking for Makefile.in in c/src/lib/libhwapi/support" >&5 |
---|
[80a16ec4] | 2677 | if test -d $srcdir/c/src/lib/libhwapi/support; then |
---|
| 2678 | rtems_av_save_dir=`pwd`; |
---|
| 2679 | cd $srcdir; |
---|
[6f9c75c3] | 2680 | rtems_av_tmp=`find c/src/lib/libhwapi/support -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[80a16ec4] | 2681 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 2682 | cd $rtems_av_save_dir; |
---|
| 2683 | echo "$ac_t""done" 1>&6 |
---|
| 2684 | else |
---|
| 2685 | echo "$ac_t""no" 1>&6 |
---|
| 2686 | fi |
---|
| 2687 | |
---|
| 2688 | |
---|
| 2689 | |
---|
| 2690 | echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/wrapup""... $ac_c" 1>&6 |
---|
[2758c9f2] | 2691 | echo "configure:2692: checking for Makefile.in in c/src/lib/libhwapi/wrapup" >&5 |
---|
[80a16ec4] | 2692 | if test -d $srcdir/c/src/lib/libhwapi/wrapup; then |
---|
| 2693 | rtems_av_save_dir=`pwd`; |
---|
| 2694 | cd $srcdir; |
---|
[6f9c75c3] | 2695 | rtems_av_tmp=`find c/src/lib/libhwapi/wrapup -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[80a16ec4] | 2696 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 2697 | cd $rtems_av_save_dir; |
---|
| 2698 | echo "$ac_t""done" 1>&6 |
---|
| 2699 | else |
---|
| 2700 | echo "$ac_t""no" 1>&6 |
---|
| 2701 | fi |
---|
| 2702 | |
---|
| 2703 | |
---|
| 2704 | else |
---|
| 2705 | { echo "configure: error: No source code found for the HWAPI" 1>&2; exit 1; } |
---|
| 2706 | fi |
---|
| 2707 | ;; |
---|
[b9ca4ba] | 2708 | no) echo "$ac_t""no" 1>&6 ;; |
---|
| 2709 | *) { echo "configure: error: bad value ${enableval} for hwapi option" 1>&2; exit 1; } ;; |
---|
| 2710 | esac |
---|
[37717818] | 2711 | else |
---|
[b9ca4ba] | 2712 | echo "$ac_t""no" 1>&6 |
---|
[37717818] | 2713 | |
---|
[254b4450] | 2714 | fi |
---|
| 2715 | |
---|
| 2716 | |
---|
| 2717 | |
---|
| 2718 | |
---|
| 2719 | |
---|
| 2720 | |
---|
| 2721 | |
---|
| 2722 | |
---|
| 2723 | |
---|
| 2724 | |
---|
| 2725 | |
---|
[e2d79559] | 2726 | |
---|
[e412bae] | 2727 | |
---|
[1f0f3e35] | 2728 | |
---|
[91333c2] | 2729 | |
---|
[37717818] | 2730 | # pick up all the Makefiles in required parts of the tree |
---|
| 2731 | |
---|
| 2732 | echo $ac_n "checking for Makefile.in in c/build-tools""... $ac_c" 1>&6 |
---|
[2758c9f2] | 2733 | echo "configure:2734: checking for Makefile.in in c/build-tools" >&5 |
---|
[37717818] | 2734 | if test -d $srcdir/c/build-tools; then |
---|
| 2735 | rtems_av_save_dir=`pwd`; |
---|
| 2736 | cd $srcdir; |
---|
[6f9c75c3] | 2737 | rtems_av_tmp=`find c/build-tools -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[37717818] | 2738 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 2739 | cd $rtems_av_save_dir; |
---|
| 2740 | echo "$ac_t""done" 1>&6 |
---|
| 2741 | else |
---|
| 2742 | echo "$ac_t""no" 1>&6 |
---|
| 2743 | fi |
---|
| 2744 | |
---|
| 2745 | |
---|
| 2746 | |
---|
[6d6f1b34] | 2747 | echo $ac_n "checking for Makefile.in in make""... $ac_c" 1>&6 |
---|
[2758c9f2] | 2748 | echo "configure:2749: checking for Makefile.in in make" >&5 |
---|
[6d6f1b34] | 2749 | if test -d $srcdir/make; then |
---|
[37717818] | 2750 | rtems_av_save_dir=`pwd`; |
---|
| 2751 | cd $srcdir; |
---|
[6d6f1b34] | 2752 | rtems_av_tmp=`find make -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[37717818] | 2753 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 2754 | cd $rtems_av_save_dir; |
---|
| 2755 | echo "$ac_t""done" 1>&6 |
---|
| 2756 | else |
---|
| 2757 | echo "$ac_t""no" 1>&6 |
---|
| 2758 | fi |
---|
| 2759 | |
---|
| 2760 | |
---|
| 2761 | |
---|
| 2762 | echo $ac_n "checking for Makefile.in in c/src/lib/libmisc""... $ac_c" 1>&6 |
---|
[2758c9f2] | 2763 | echo "configure:2764: checking for Makefile.in in c/src/lib/libmisc" >&5 |
---|
[37717818] | 2764 | if test -d $srcdir/c/src/lib/libmisc; then |
---|
| 2765 | rtems_av_save_dir=`pwd`; |
---|
| 2766 | cd $srcdir; |
---|
[6f9c75c3] | 2767 | rtems_av_tmp=`find c/src/lib/libmisc -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[37717818] | 2768 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 2769 | cd $rtems_av_save_dir; |
---|
| 2770 | echo "$ac_t""done" 1>&6 |
---|
| 2771 | else |
---|
| 2772 | echo "$ac_t""no" 1>&6 |
---|
| 2773 | fi |
---|
| 2774 | |
---|
| 2775 | |
---|
[1670eede] | 2776 | |
---|
[37717818] | 2777 | echo $ac_n "checking for Makefile.in in c/src/tests/samples""... $ac_c" 1>&6 |
---|
[2758c9f2] | 2778 | echo "configure:2779: checking for Makefile.in in c/src/tests/samples" >&5 |
---|
[37717818] | 2779 | if test -d $srcdir/c/src/tests/samples; then |
---|
| 2780 | rtems_av_save_dir=`pwd`; |
---|
| 2781 | cd $srcdir; |
---|
[6f9c75c3] | 2782 | rtems_av_tmp=`find c/src/tests/samples -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
[37717818] | 2783 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 2784 | cd $rtems_av_save_dir; |
---|
| 2785 | echo "$ac_t""done" 1>&6 |
---|
| 2786 | else |
---|
| 2787 | echo "$ac_t""no" 1>&6 |
---|
| 2788 | fi |
---|
| 2789 | |
---|
| 2790 | |
---|
| 2791 | |
---|
[bb9084db] | 2792 | |
---|
| 2793 | |
---|
[37717818] | 2794 | # try not to explicitly list a Makefile here |
---|
[254b4450] | 2795 | trap '' 1 2 15 |
---|
| 2796 | cat > confcache <<\EOF |
---|
| 2797 | # This file is a shell script that caches the results of configure |
---|
| 2798 | # tests run on this system so they can be shared between configure |
---|
| 2799 | # scripts and configure runs. It is not useful on other systems. |
---|
| 2800 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
| 2801 | # |
---|
| 2802 | # By default, configure uses ./config.cache as the cache file, |
---|
| 2803 | # creating it if it does not exist already. You can give configure |
---|
| 2804 | # the --cache-file=FILE option to use a different cache file; that is |
---|
| 2805 | # what configure does when it calls configure scripts in |
---|
| 2806 | # subdirectories, so they share the cache. |
---|
| 2807 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
| 2808 | # config.status only pays attention to the cache file if you give it the |
---|
| 2809 | # --recheck option to rerun configure. |
---|
| 2810 | # |
---|
| 2811 | EOF |
---|
| 2812 | # The following way of writing the cache mishandles newlines in values, |
---|
| 2813 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 2814 | # So, don't put newlines in cache variables' values. |
---|
| 2815 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 2816 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 2817 | (set) 2>&1 | |
---|
| 2818 | case `(ac_space=' '; set) 2>&1` in |
---|
| 2819 | *ac_space=\ *) |
---|
| 2820 | # `set' does not quote correctly, so add quotes (double-quote substitution |
---|
| 2821 | # turns \\\\ into \\, and sed turns \\ into \). |
---|
| 2822 | sed -n \ |
---|
| 2823 | -e "s/'/'\\\\''/g" \ |
---|
| 2824 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
---|
| 2825 | ;; |
---|
| 2826 | *) |
---|
| 2827 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 2828 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
---|
| 2829 | ;; |
---|
| 2830 | esac >> confcache |
---|
| 2831 | if cmp -s $cache_file confcache; then |
---|
| 2832 | : |
---|
| 2833 | else |
---|
| 2834 | if test -w $cache_file; then |
---|
| 2835 | echo "updating cache $cache_file" |
---|
| 2836 | cat confcache > $cache_file |
---|
| 2837 | else |
---|
| 2838 | echo "not updating unwritable cache $cache_file" |
---|
| 2839 | fi |
---|
| 2840 | fi |
---|
| 2841 | rm -f confcache |
---|
| 2842 | |
---|
| 2843 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
| 2844 | |
---|
| 2845 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 2846 | # Let make expand exec_prefix. |
---|
| 2847 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 2848 | |
---|
| 2849 | # Any assignment to VPATH causes Sun make to only execute |
---|
| 2850 | # the first set of double-colon rules, so remove it if not needed. |
---|
| 2851 | # If there is a colon in the path, we need to keep it. |
---|
| 2852 | if test "x$srcdir" = x.; then |
---|
| 2853 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
---|
| 2854 | fi |
---|
| 2855 | |
---|
| 2856 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
---|
| 2857 | |
---|
[bb9084db] | 2858 | DEFS=-DHAVE_CONFIG_H |
---|
[254b4450] | 2859 | |
---|
| 2860 | # Without the "./", some shells look in PATH for config.status. |
---|
| 2861 | : ${CONFIG_STATUS=./config.status} |
---|
| 2862 | |
---|
| 2863 | echo creating $CONFIG_STATUS |
---|
| 2864 | rm -f $CONFIG_STATUS |
---|
| 2865 | cat > $CONFIG_STATUS <<EOF |
---|
| 2866 | #! /bin/sh |
---|
| 2867 | # Generated automatically by configure. |
---|
| 2868 | # Run this file to recreate the current configuration. |
---|
| 2869 | # This directory was configured as follows, |
---|
| 2870 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
| 2871 | # |
---|
| 2872 | # $0 $ac_configure_args |
---|
| 2873 | # |
---|
| 2874 | # Compiler output produced by configure, useful for debugging |
---|
| 2875 | # configure, is in ./config.log if it exists. |
---|
| 2876 | |
---|
| 2877 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
---|
| 2878 | for ac_option |
---|
| 2879 | do |
---|
| 2880 | case "\$ac_option" in |
---|
| 2881 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 2882 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
---|
| 2883 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
---|
| 2884 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
---|
| 2885 | echo "$CONFIG_STATUS generated by autoconf version 2.12" |
---|
| 2886 | exit 0 ;; |
---|
| 2887 | -help | --help | --hel | --he | --h) |
---|
| 2888 | echo "\$ac_cs_usage"; exit 0 ;; |
---|
| 2889 | *) echo "\$ac_cs_usage"; exit 1 ;; |
---|
| 2890 | esac |
---|
| 2891 | done |
---|
| 2892 | |
---|
| 2893 | ac_given_srcdir=$srcdir |
---|
| 2894 | |
---|
[a50148a] | 2895 | trap 'rm -fr `echo "Makefile |
---|
[3771cc6e] | 2896 | make/host.cfg |
---|
| 2897 | make/target.cfg |
---|
| 2898 | make/Templates/Makefile.inc |
---|
[a50148a] | 2899 | c/Makefile |
---|
| 2900 | c/src/Makefile |
---|
| 2901 | c/src/exec/Makefile |
---|
| 2902 | c/src/exec/score/Makefile |
---|
| 2903 | c/src/exec/score/cpu/Makefile |
---|
| 2904 | c/src/exec/score/headers/Makefile |
---|
[566aea7d] | 2905 | c/src/exec/score/${inline_dir}/Makefile |
---|
[a50148a] | 2906 | c/src/exec/score/src/Makefile |
---|
| 2907 | c/src/exec/score/tools/Makefile |
---|
| 2908 | c/src/exec/score/tools/generic/Makefile |
---|
[6d5769f] | 2909 | c/src/exec/score/tools/generic/size_rtems |
---|
[b9ca4ba] | 2910 | c/src/exec/wrapup/Makefile |
---|
| 2911 | c/src/exec/wrapup/rtems/Makefile |
---|
[a50148a] | 2912 | c/src/lib/Makefile |
---|
| 2913 | c/src/lib/include/Makefile |
---|
| 2914 | c/src/lib/libbsp/Makefile |
---|
| 2915 | c/src/lib/libbsp/shmdr/Makefile |
---|
| 2916 | c/src/lib/libc/Makefile |
---|
| 2917 | c/src/lib/libcpu/Makefile |
---|
| 2918 | c/src/lib/start/Makefile |
---|
| 2919 | c/src/lib/wrapup/Makefile |
---|
| 2920 | c/src/tests/Makefile |
---|
| 2921 | c/src/tests/support/Makefile |
---|
| 2922 | c/src/tests/support/include/Makefile |
---|
| 2923 | c/src/tests/support/stubdr/Makefile |
---|
| 2924 | c/src/tests/support/wrapup/Makefile |
---|
| 2925 | c/src/tests/tools/Makefile |
---|
| 2926 | c/src/tests/tools/generic/Makefile |
---|
| 2927 | $makefiles |
---|
[540292a] | 2928 | c/build-tools/scripts/rtems-glom |
---|
[bb9084db] | 2929 | c/update-tools/Makefile c/build-tools/src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
---|
[254b4450] | 2930 | EOF |
---|
| 2931 | cat >> $CONFIG_STATUS <<EOF |
---|
| 2932 | |
---|
| 2933 | # Protect against being on the right side of a sed subst in config.status. |
---|
| 2934 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
---|
| 2935 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
---|
| 2936 | $ac_vpsub |
---|
| 2937 | $extrasub |
---|
| 2938 | s%@CFLAGS@%$CFLAGS%g |
---|
| 2939 | s%@CPPFLAGS@%$CPPFLAGS%g |
---|
| 2940 | s%@CXXFLAGS@%$CXXFLAGS%g |
---|
| 2941 | s%@DEFS@%$DEFS%g |
---|
| 2942 | s%@LDFLAGS@%$LDFLAGS%g |
---|
| 2943 | s%@LIBS@%$LIBS%g |
---|
| 2944 | s%@exec_prefix@%$exec_prefix%g |
---|
| 2945 | s%@prefix@%$prefix%g |
---|
| 2946 | s%@program_transform_name@%$program_transform_name%g |
---|
| 2947 | s%@bindir@%$bindir%g |
---|
| 2948 | s%@sbindir@%$sbindir%g |
---|
| 2949 | s%@libexecdir@%$libexecdir%g |
---|
| 2950 | s%@datadir@%$datadir%g |
---|
| 2951 | s%@sysconfdir@%$sysconfdir%g |
---|
| 2952 | s%@sharedstatedir@%$sharedstatedir%g |
---|
| 2953 | s%@localstatedir@%$localstatedir%g |
---|
| 2954 | s%@libdir@%$libdir%g |
---|
| 2955 | s%@includedir@%$includedir%g |
---|
| 2956 | s%@oldincludedir@%$oldincludedir%g |
---|
| 2957 | s%@infodir@%$infodir%g |
---|
| 2958 | s%@mandir@%$mandir%g |
---|
| 2959 | s%@SET_MAKE@%$SET_MAKE%g |
---|
| 2960 | s%@host@%$host%g |
---|
| 2961 | s%@host_alias@%$host_alias%g |
---|
| 2962 | s%@host_cpu@%$host_cpu%g |
---|
| 2963 | s%@host_vendor@%$host_vendor%g |
---|
| 2964 | s%@host_os@%$host_os%g |
---|
| 2965 | s%@target@%$target%g |
---|
| 2966 | s%@target_alias@%$target_alias%g |
---|
| 2967 | s%@target_cpu@%$target_cpu%g |
---|
| 2968 | s%@target_vendor@%$target_vendor%g |
---|
| 2969 | s%@target_os@%$target_os%g |
---|
| 2970 | s%@build@%$build%g |
---|
| 2971 | s%@build_alias@%$build_alias%g |
---|
| 2972 | s%@build_cpu@%$build_cpu%g |
---|
| 2973 | s%@build_vendor@%$build_vendor%g |
---|
| 2974 | s%@build_os@%$build_os%g |
---|
[a50148a] | 2975 | s%@CAT@%$CAT%g |
---|
| 2976 | s%@RM@%$RM%g |
---|
| 2977 | s%@CP@%$CP%g |
---|
| 2978 | s%@MV@%$MV%g |
---|
| 2979 | s%@LN@%$LN%g |
---|
[37717818] | 2980 | s%@LN_S@%$LN_S%g |
---|
[a50148a] | 2981 | s%@CHMOD@%$CHMOD%g |
---|
| 2982 | s%@SORT@%$SORT%g |
---|
| 2983 | s%@MKDIR@%$MKDIR%g |
---|
| 2984 | s%@TOUCH@%$TOUCH%g |
---|
| 2985 | s%@CMP@%$CMP%g |
---|
| 2986 | s%@SED@%$SED%g |
---|
| 2987 | s%@M4@%$M4%g |
---|
| 2988 | s%@KSH@%$KSH%g |
---|
[3771cc6e] | 2989 | s%@CC@%$CC%g |
---|
| 2990 | s%@CXX@%$CXX%g |
---|
| 2991 | s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g |
---|
| 2992 | s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g |
---|
| 2993 | s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g |
---|
| 2994 | s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g |
---|
| 2995 | s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g |
---|
| 2996 | s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g |
---|
| 2997 | s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g |
---|
| 2998 | s%@OBJCOPY_FOR_TARGET@%$OBJCOPY_FOR_TARGET%g |
---|
| 2999 | s%@SIZE_FOR_TARGET@%$SIZE_FOR_TARGET%g |
---|
[87cec48] | 3000 | s%@RTEMS_BSP_LIST@%$RTEMS_BSP_LIST%g |
---|
[254b4450] | 3001 | s%@RTEMS_HOST@%$RTEMS_HOST%g |
---|
| 3002 | s%@RTEMS_LIBC_DIR@%$RTEMS_LIBC_DIR%g |
---|
[91333c2] | 3003 | s%@RTEMS_USE_OWN_PDIR@%$RTEMS_USE_OWN_PDIR%g |
---|
[254b4450] | 3004 | s%@RTEMS_HAS_POSIX_API@%$RTEMS_HAS_POSIX_API%g |
---|
[1f0f3e35] | 3005 | s%@RTEMS_HAS_KA9Q@%$RTEMS_HAS_KA9Q%g |
---|
[254b4450] | 3006 | s%@RTEMS_USE_MACROS@%$RTEMS_USE_MACROS%g |
---|
[91333c2] | 3007 | s%@RTEMS_HAS_CPLUSPLUS@%$RTEMS_HAS_CPLUSPLUS%g |
---|
[e412bae] | 3008 | s%@RTEMS_USE_GCC272@%$RTEMS_USE_GCC272%g |
---|
[254b4450] | 3009 | s%@PROJECT_ROOT@%$PROJECT_ROOT%g |
---|
| 3010 | s%@program_prefix@%$program_prefix%g |
---|
| 3011 | |
---|
| 3012 | CEOF |
---|
| 3013 | EOF |
---|
| 3014 | |
---|
| 3015 | cat >> $CONFIG_STATUS <<\EOF |
---|
| 3016 | |
---|
| 3017 | # Split the substitutions into bite-sized pieces for seds with |
---|
| 3018 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
| 3019 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
---|
| 3020 | ac_file=1 # Number of current file. |
---|
| 3021 | ac_beg=1 # First line for current file. |
---|
| 3022 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
---|
| 3023 | ac_more_lines=: |
---|
| 3024 | ac_sed_cmds="" |
---|
| 3025 | while $ac_more_lines; do |
---|
| 3026 | if test $ac_beg -gt 1; then |
---|
| 3027 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
| 3028 | else |
---|
| 3029 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
| 3030 | fi |
---|
| 3031 | if test ! -s conftest.s$ac_file; then |
---|
| 3032 | ac_more_lines=false |
---|
| 3033 | rm -f conftest.s$ac_file |
---|
| 3034 | else |
---|
| 3035 | if test -z "$ac_sed_cmds"; then |
---|
| 3036 | ac_sed_cmds="sed -f conftest.s$ac_file" |
---|
| 3037 | else |
---|
| 3038 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
---|
| 3039 | fi |
---|
| 3040 | ac_file=`expr $ac_file + 1` |
---|
| 3041 | ac_beg=$ac_end |
---|
| 3042 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
---|
| 3043 | fi |
---|
| 3044 | done |
---|
| 3045 | if test -z "$ac_sed_cmds"; then |
---|
| 3046 | ac_sed_cmds=cat |
---|
| 3047 | fi |
---|
| 3048 | EOF |
---|
| 3049 | |
---|
| 3050 | cat >> $CONFIG_STATUS <<EOF |
---|
| 3051 | |
---|
[a50148a] | 3052 | CONFIG_FILES=\${CONFIG_FILES-"Makefile |
---|
[3771cc6e] | 3053 | make/host.cfg |
---|
| 3054 | make/target.cfg |
---|
| 3055 | make/Templates/Makefile.inc |
---|
[a50148a] | 3056 | c/Makefile |
---|
| 3057 | c/src/Makefile |
---|
| 3058 | c/src/exec/Makefile |
---|
| 3059 | c/src/exec/score/Makefile |
---|
| 3060 | c/src/exec/score/cpu/Makefile |
---|
| 3061 | c/src/exec/score/headers/Makefile |
---|
[566aea7d] | 3062 | c/src/exec/score/${inline_dir}/Makefile |
---|
[a50148a] | 3063 | c/src/exec/score/src/Makefile |
---|
| 3064 | c/src/exec/score/tools/Makefile |
---|
| 3065 | c/src/exec/score/tools/generic/Makefile |
---|
[6d5769f] | 3066 | c/src/exec/score/tools/generic/size_rtems |
---|
[b9ca4ba] | 3067 | c/src/exec/wrapup/Makefile |
---|
| 3068 | c/src/exec/wrapup/rtems/Makefile |
---|
[a50148a] | 3069 | c/src/lib/Makefile |
---|
| 3070 | c/src/lib/include/Makefile |
---|
| 3071 | c/src/lib/libbsp/Makefile |
---|
| 3072 | c/src/lib/libbsp/shmdr/Makefile |
---|
| 3073 | c/src/lib/libc/Makefile |
---|
| 3074 | c/src/lib/libcpu/Makefile |
---|
| 3075 | c/src/lib/start/Makefile |
---|
| 3076 | c/src/lib/wrapup/Makefile |
---|
| 3077 | c/src/tests/Makefile |
---|
| 3078 | c/src/tests/support/Makefile |
---|
| 3079 | c/src/tests/support/include/Makefile |
---|
| 3080 | c/src/tests/support/stubdr/Makefile |
---|
| 3081 | c/src/tests/support/wrapup/Makefile |
---|
| 3082 | c/src/tests/tools/Makefile |
---|
| 3083 | c/src/tests/tools/generic/Makefile |
---|
| 3084 | $makefiles |
---|
[540292a] | 3085 | c/build-tools/scripts/rtems-glom |
---|
[1670eede] | 3086 | c/update-tools/Makefile"} |
---|
[254b4450] | 3087 | EOF |
---|
| 3088 | cat >> $CONFIG_STATUS <<\EOF |
---|
| 3089 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
---|
| 3090 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 3091 | case "$ac_file" in |
---|
| 3092 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
| 3093 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
| 3094 | *) ac_file_in="${ac_file}.in" ;; |
---|
| 3095 | esac |
---|
| 3096 | |
---|
| 3097 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
---|
| 3098 | |
---|
| 3099 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
| 3100 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
| 3101 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
| 3102 | # The file is in a subdirectory. |
---|
| 3103 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
| 3104 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
---|
| 3105 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 3106 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
| 3107 | else |
---|
| 3108 | ac_dir_suffix= ac_dots= |
---|
| 3109 | fi |
---|
| 3110 | |
---|
| 3111 | case "$ac_given_srcdir" in |
---|
| 3112 | .) srcdir=. |
---|
| 3113 | if test -z "$ac_dots"; then top_srcdir=. |
---|
| 3114 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
---|
| 3115 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
---|
| 3116 | *) # Relative path. |
---|
| 3117 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
---|
| 3118 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
---|
| 3119 | esac |
---|
| 3120 | |
---|
| 3121 | |
---|
| 3122 | echo creating "$ac_file" |
---|
| 3123 | rm -f "$ac_file" |
---|
| 3124 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
---|
| 3125 | case "$ac_file" in |
---|
| 3126 | *Makefile*) ac_comsub="1i\\ |
---|
| 3127 | # $configure_input" ;; |
---|
| 3128 | *) ac_comsub= ;; |
---|
| 3129 | esac |
---|
| 3130 | |
---|
| 3131 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
| 3132 | sed -e "$ac_comsub |
---|
| 3133 | s%@configure_input@%$configure_input%g |
---|
| 3134 | s%@srcdir@%$srcdir%g |
---|
| 3135 | s%@top_srcdir@%$top_srcdir%g |
---|
| 3136 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
---|
| 3137 | fi; done |
---|
| 3138 | rm -f conftest.s* |
---|
| 3139 | |
---|
[bb9084db] | 3140 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
| 3141 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
| 3142 | # |
---|
| 3143 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
| 3144 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
| 3145 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
---|
| 3146 | ac_dC='\3' |
---|
| 3147 | ac_dD='%g' |
---|
| 3148 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
---|
| 3149 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
| 3150 | ac_uB='\([ ]\)%\1#\2define\3' |
---|
| 3151 | ac_uC=' ' |
---|
| 3152 | ac_uD='\4%g' |
---|
| 3153 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
| 3154 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
| 3155 | ac_eB='$%\1#\2define\3' |
---|
| 3156 | ac_eC=' ' |
---|
| 3157 | ac_eD='%g' |
---|
| 3158 | |
---|
| 3159 | if test "${CONFIG_HEADERS+set}" != set; then |
---|
| 3160 | EOF |
---|
| 3161 | cat >> $CONFIG_STATUS <<EOF |
---|
| 3162 | CONFIG_HEADERS="c/build-tools/src/config.h" |
---|
| 3163 | EOF |
---|
| 3164 | cat >> $CONFIG_STATUS <<\EOF |
---|
| 3165 | fi |
---|
| 3166 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
---|
| 3167 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 3168 | case "$ac_file" in |
---|
| 3169 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
| 3170 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
| 3171 | *) ac_file_in="${ac_file}.in" ;; |
---|
| 3172 | esac |
---|
| 3173 | |
---|
| 3174 | echo creating $ac_file |
---|
| 3175 | |
---|
| 3176 | rm -f conftest.frag conftest.in conftest.out |
---|
| 3177 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
| 3178 | cat $ac_file_inputs > conftest.in |
---|
| 3179 | |
---|
| 3180 | EOF |
---|
| 3181 | |
---|
| 3182 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
---|
| 3183 | # the proper values into config.h.in to produce config.h. And first: |
---|
| 3184 | # Protect against being on the right side of a sed subst in config.status. |
---|
| 3185 | # Protect against being in an unquoted here document in config.status. |
---|
| 3186 | rm -f conftest.vals |
---|
| 3187 | cat > conftest.hdr <<\EOF |
---|
| 3188 | s/[\\&%]/\\&/g |
---|
| 3189 | s%[\\$`]%\\&%g |
---|
| 3190 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
---|
| 3191 | s%ac_d%ac_u%gp |
---|
| 3192 | s%ac_u%ac_e%gp |
---|
| 3193 | EOF |
---|
| 3194 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
---|
| 3195 | rm -f conftest.hdr |
---|
| 3196 | |
---|
| 3197 | # This sed command replaces #undef with comments. This is necessary, for |
---|
| 3198 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
| 3199 | # on some systems where configure will not decide to define it. |
---|
| 3200 | cat >> conftest.vals <<\EOF |
---|
| 3201 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
---|
| 3202 | EOF |
---|
| 3203 | |
---|
| 3204 | # Break up conftest.vals because some shells have a limit on |
---|
| 3205 | # the size of here documents, and old seds have small limits too. |
---|
| 3206 | |
---|
| 3207 | rm -f conftest.tail |
---|
| 3208 | while : |
---|
| 3209 | do |
---|
| 3210 | ac_lines=`grep -c . conftest.vals` |
---|
| 3211 | # grep -c gives empty output for an empty file on some AIX systems. |
---|
| 3212 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
---|
| 3213 | # Write a limited-size here document to conftest.frag. |
---|
| 3214 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
---|
| 3215 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
---|
| 3216 | echo 'CEOF |
---|
| 3217 | sed -f conftest.frag conftest.in > conftest.out |
---|
| 3218 | rm -f conftest.in |
---|
| 3219 | mv conftest.out conftest.in |
---|
| 3220 | ' >> $CONFIG_STATUS |
---|
| 3221 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
---|
| 3222 | rm -f conftest.vals |
---|
| 3223 | mv conftest.tail conftest.vals |
---|
| 3224 | done |
---|
| 3225 | rm -f conftest.vals |
---|
| 3226 | |
---|
| 3227 | cat >> $CONFIG_STATUS <<\EOF |
---|
| 3228 | rm -f conftest.frag conftest.h |
---|
| 3229 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
---|
| 3230 | cat conftest.in >> conftest.h |
---|
| 3231 | rm -f conftest.in |
---|
| 3232 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
---|
| 3233 | echo "$ac_file is unchanged" |
---|
| 3234 | rm -f conftest.h |
---|
| 3235 | else |
---|
| 3236 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
| 3237 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
| 3238 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
| 3239 | # The file is in a subdirectory. |
---|
| 3240 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
| 3241 | fi |
---|
| 3242 | rm -f $ac_file |
---|
| 3243 | mv conftest.h $ac_file |
---|
| 3244 | fi |
---|
| 3245 | fi; done |
---|
| 3246 | |
---|
[254b4450] | 3247 | EOF |
---|
| 3248 | cat >> $CONFIG_STATUS <<EOF |
---|
| 3249 | |
---|
| 3250 | EOF |
---|
| 3251 | cat >> $CONFIG_STATUS <<\EOF |
---|
| 3252 | |
---|
| 3253 | exit 0 |
---|
| 3254 | EOF |
---|
| 3255 | chmod +x $CONFIG_STATUS |
---|
| 3256 | rm -fr confdefs* $ac_clean_files |
---|
| 3257 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
---|
| 3258 | |
---|
| 3259 | |
---|
| 3260 | echo |
---|
| 3261 | echo target architecture: $target_cpu. |
---|
| 3262 | echo available BSPs: $rtems_bsp. |
---|
[87cec48] | 3263 | echo \'make all\' will build the following BSPs: $RTEMS_BSP_LIST. |
---|
| 3264 | echo other BSPs can be built with \'make RTEMS_BSP=\"bsp1 bsp2 ...\"\' |
---|
[254b4450] | 3265 | echo |
---|