Changeset bb9084db in rtems
- Timestamp:
- 01/30/98 20:57:43 (26 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 243ce5d
- Parents:
- b4767da
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
configure
rb4767da rbb9084db 1927 1927 1928 1928 1929 1930 1929 1931 # try not to explicitly list a Makefile here 1930 1932 trap '' 1 2 15 … … 1991 1993 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 1992 1994 1993 # Transform confdefs.h into DEFS. 1994 # Protect against shell expansion while executing Makefile rules. 1995 # Protect against Makefile macro expansion. 1996 cat > conftest.defs <<\EOF 1997 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g 1998 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g 1999 s%\[%\\&%g 2000 s%\]%\\&%g 2001 s%\$%$$%g 2002 EOF 2003 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` 2004 rm -f conftest.defs 2005 1995 DEFS=-DHAVE_CONFIG_H 2006 1996 2007 1997 # Without the "./", some shells look in PATH for config.status. … … 2073 2063 make/target.cfg 2074 2064 make/Templates/Makefile.inc 2075 c/build-tools/src/config.h 2076 c/update-tools/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 2065 c/update-tools/Makefile c/build-tools/src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 2077 2066 EOF 2078 2067 cat >> $CONFIG_STATUS <<EOF … … 2220 2209 make/target.cfg 2221 2210 make/Templates/Makefile.inc 2222 c/build-tools/src/config.h2223 2211 c/update-tools/Makefile"} 2224 2212 EOF … … 2275 2263 rm -f conftest.s* 2276 2264 2265 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 2266 # NAME is the cpp macro being defined and VALUE is the value it is being given. 2267 # 2268 # ac_d sets the value in "#define NAME VALUE" lines. 2269 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 2270 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 2271 ac_dC='\3' 2272 ac_dD='%g' 2273 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 2274 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 2275 ac_uB='\([ ]\)%\1#\2define\3' 2276 ac_uC=' ' 2277 ac_uD='\4%g' 2278 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 2279 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 2280 ac_eB='$%\1#\2define\3' 2281 ac_eC=' ' 2282 ac_eD='%g' 2283 2284 if test "${CONFIG_HEADERS+set}" != set; then 2285 EOF 2286 cat >> $CONFIG_STATUS <<EOF 2287 CONFIG_HEADERS="c/build-tools/src/config.h" 2288 EOF 2289 cat >> $CONFIG_STATUS <<\EOF 2290 fi 2291 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 2292 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2293 case "$ac_file" in 2294 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 2295 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2296 *) ac_file_in="${ac_file}.in" ;; 2297 esac 2298 2299 echo creating $ac_file 2300 2301 rm -f conftest.frag conftest.in conftest.out 2302 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 2303 cat $ac_file_inputs > conftest.in 2304 2305 EOF 2306 2307 # Transform confdefs.h into a sed script conftest.vals that substitutes 2308 # the proper values into config.h.in to produce config.h. And first: 2309 # Protect against being on the right side of a sed subst in config.status. 2310 # Protect against being in an unquoted here document in config.status. 2311 rm -f conftest.vals 2312 cat > conftest.hdr <<\EOF 2313 s/[\\&%]/\\&/g 2314 s%[\\$`]%\\&%g 2315 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 2316 s%ac_d%ac_u%gp 2317 s%ac_u%ac_e%gp 2318 EOF 2319 sed -n -f conftest.hdr confdefs.h > conftest.vals 2320 rm -f conftest.hdr 2321 2322 # This sed command replaces #undef with comments. This is necessary, for 2323 # example, in the case of _POSIX_SOURCE, which is predefined and required 2324 # on some systems where configure will not decide to define it. 2325 cat >> conftest.vals <<\EOF 2326 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 2327 EOF 2328 2329 # Break up conftest.vals because some shells have a limit on 2330 # the size of here documents, and old seds have small limits too. 2331 2332 rm -f conftest.tail 2333 while : 2334 do 2335 ac_lines=`grep -c . conftest.vals` 2336 # grep -c gives empty output for an empty file on some AIX systems. 2337 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 2338 # Write a limited-size here document to conftest.frag. 2339 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 2340 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 2341 echo 'CEOF 2342 sed -f conftest.frag conftest.in > conftest.out 2343 rm -f conftest.in 2344 mv conftest.out conftest.in 2345 ' >> $CONFIG_STATUS 2346 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 2347 rm -f conftest.vals 2348 mv conftest.tail conftest.vals 2349 done 2350 rm -f conftest.vals 2351 2352 cat >> $CONFIG_STATUS <<\EOF 2353 rm -f conftest.frag conftest.h 2354 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 2355 cat conftest.in >> conftest.h 2356 rm -f conftest.in 2357 if cmp -s $ac_file conftest.h 2>/dev/null; then 2358 echo "$ac_file is unchanged" 2359 rm -f conftest.h 2360 else 2361 # Remove last slash and all that follows it. Not all systems have dirname. 2362 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 2363 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 2364 # The file is in a subdirectory. 2365 test ! -d "$ac_dir" && mkdir "$ac_dir" 2366 fi 2367 rm -f $ac_file 2368 mv conftest.h $ac_file 2369 fi 2370 fi; done 2371 2277 2372 EOF 2278 2373 cat >> $CONFIG_STATUS <<EOF
Note: See TracChangeset
for help on using the changeset viewer.