GNU Binutils with patches for OS216
Revision | bfbe55196399e6c26117aa18aa91a3fd8fdbc010 (tree) |
---|---|
Time | 2003-01-10 05:45:29 |
Author | Alexandre Oliva <aoliva@redh...> |
Commiter | Alexandre Oliva |
* configure.in: Remove Makefile in build, host and target modules
unless configure was run with --no-recursion.
* configure: Rebuilt.
@@ -1,3 +1,9 @@ | ||
1 | +2003-01-09 Alexandre Oliva <aoliva@redhat.com> | |
2 | + | |
3 | + * configure.in: Remove Makefile in build, host and target modules | |
4 | + unless configure was run with --no-recursion. | |
5 | + * configure: Rebuilt. | |
6 | + | |
1 | 7 | 2003-01-08 Chris Demetriou <cgd@broadcom.com> |
2 | 8 | |
3 | 9 | * config.guess: Update to 2003-01-03 version. |
@@ -1525,20 +1525,6 @@ if test -n "${target_configdirs}" ; then | ||
1525 | 1525 | fi |
1526 | 1526 | fi |
1527 | 1527 | |
1528 | -# Deconfigure all subdirectories, in case we are changing the | |
1529 | -# configuration from one where a subdirectory is supported to one where it | |
1530 | -# is not. | |
1531 | -if test -z "${norecursion}" && test -n "${configdirs}" ; then | |
1532 | - for i in `echo ${configdirs} | sed -e s/target-//g` ; do | |
1533 | - rm -f $i/Makefile | |
1534 | - done | |
1535 | -fi | |
1536 | -if test -z "${norecursion}" && test -n "${target_configdirs}" ; then | |
1537 | - for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do | |
1538 | - rm -f ${target_subdir}/$i/Makefile | |
1539 | - done | |
1540 | -fi | |
1541 | - | |
1542 | 1528 | # Quietly strip out all directories which aren't configurable in this tree. |
1543 | 1529 | # This relies on all configurable subdirectories being autoconfiscated, which |
1544 | 1530 | # is now the case. |
@@ -2325,13 +2311,24 @@ target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | ||
2325 | 2311 | # This is the final value for target_configdirs. configdirs already |
2326 | 2312 | # has its final value. It's time to create some lists of valid targets. |
2327 | 2313 | |
2314 | +# While at that, we remove Makefiles if we were started for recursive | |
2315 | +# configuration, such that the top-level Makefile reconfigures them, | |
2316 | +# like we used to do when configure itself was recursive. | |
2317 | + | |
2328 | 2318 | all_build_modules= |
2329 | 2319 | configure_build_modules= |
2330 | 2320 | # Only make build modules if build != host. |
2331 | 2321 | # This should be done more generally, but at the moment it doesn't matter. |
2332 | 2322 | if test ${host_alias} != ${build_alias} ; then |
2333 | - all_build_modules=all-build-libiberty | |
2334 | - configure_build_modules=configure-build-libiberty | |
2323 | + for module in libiberty ; do | |
2324 | + all_build_modules=all-build-${module} | |
2325 | + configure_build_modules=configure-build-${module} | |
2326 | + if test -z "${no_recursion}" \ | |
2327 | + && test -f ${build_subdir}/${module}/Makefile; then | |
2328 | + echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
2329 | + rm -f ${build_subdir}/${module}/Makefile | |
2330 | + fi | |
2331 | + done | |
2335 | 2332 | fi |
2336 | 2333 | |
2337 | 2334 | all_host_modules= |
@@ -2343,6 +2340,11 @@ for module in ${configdirs} ; do | ||
2343 | 2340 | check_host_modules="${check_host_modules} check-${module}" |
2344 | 2341 | install_host_modules="${install_host_modules} install-${module}" |
2345 | 2342 | configure_host_modules="${configure_host_modules} configure-${module}" |
2343 | + if test -z "${no_recursion}" \ | |
2344 | + && test -f ${module}/Makefile; then | |
2345 | + echo 1>&2 "*** removing ${module}/Makefile to force reconfigure" | |
2346 | + rm -f ${module}/Makefile | |
2347 | + fi | |
2346 | 2348 | done |
2347 | 2349 | install_host_modules_nogcc=`echo "${install_host_modules}" | sed -e 's/install-gcc//g'` |
2348 | 2350 |
@@ -2355,6 +2357,11 @@ for module in ${target_configdirs} ; do | ||
2355 | 2357 | check_target_modules="${check_target_modules} check-target-${module}" |
2356 | 2358 | install_target_modules="${install_target_modules} install-target-${module}" |
2357 | 2359 | configure_target_modules="${configure_target_modules} configure-target-${module}" |
2360 | + if test -z "${no_recursion}" \ | |
2361 | + && test -f ${target_subdir}/${module}/Makefile; then | |
2362 | + echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
2363 | + rm -f ${target_subdir}/${module}/Makefile | |
2364 | + fi | |
2358 | 2365 | done |
2359 | 2366 | |
2360 | 2367 | # Determine whether gdb needs tk/tcl or not. |
@@ -2726,7 +2733,7 @@ test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | ||
2726 | 2733 | # Extract the first word of "${ncn_tool_prefix}ar", so it can be a program name with args. |
2727 | 2734 | set dummy ${ncn_tool_prefix}ar; ac_word=$2 |
2728 | 2735 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2729 | -echo "configure:2730: checking for $ac_word" >&5 | |
2736 | +echo "configure:2737: checking for $ac_word" >&5 | |
2730 | 2737 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
2731 | 2738 | echo $ac_n "(cached) $ac_c" 1>&6 |
2732 | 2739 | else |
@@ -2759,7 +2766,7 @@ if test -z "$ac_cv_prog_AR" ; then | ||
2759 | 2766 | # Extract the first word of "ar", so it can be a program name with args. |
2760 | 2767 | set dummy ar; ac_word=$2 |
2761 | 2768 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2762 | -echo "configure:2763: checking for $ac_word" >&5 | |
2769 | +echo "configure:2770: checking for $ac_word" >&5 | |
2763 | 2770 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR'+set}'`\" = set"; then |
2764 | 2771 | echo $ac_n "(cached) $ac_c" 1>&6 |
2765 | 2772 | else |
@@ -2798,7 +2805,7 @@ fi | ||
2798 | 2805 | # Extract the first word of "${ncn_tool_prefix}as", so it can be a program name with args. |
2799 | 2806 | set dummy ${ncn_tool_prefix}as; ac_word=$2 |
2800 | 2807 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2801 | -echo "configure:2802: checking for $ac_word" >&5 | |
2808 | +echo "configure:2809: checking for $ac_word" >&5 | |
2802 | 2809 | if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then |
2803 | 2810 | echo $ac_n "(cached) $ac_c" 1>&6 |
2804 | 2811 | else |
@@ -2831,7 +2838,7 @@ if test -z "$ac_cv_prog_AS" ; then | ||
2831 | 2838 | # Extract the first word of "as", so it can be a program name with args. |
2832 | 2839 | set dummy as; ac_word=$2 |
2833 | 2840 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2834 | -echo "configure:2835: checking for $ac_word" >&5 | |
2841 | +echo "configure:2842: checking for $ac_word" >&5 | |
2835 | 2842 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS'+set}'`\" = set"; then |
2836 | 2843 | echo $ac_n "(cached) $ac_c" 1>&6 |
2837 | 2844 | else |
@@ -2870,7 +2877,7 @@ fi | ||
2870 | 2877 | # Extract the first word of "${ncn_tool_prefix}dlltool", so it can be a program name with args. |
2871 | 2878 | set dummy ${ncn_tool_prefix}dlltool; ac_word=$2 |
2872 | 2879 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2873 | -echo "configure:2874: checking for $ac_word" >&5 | |
2880 | +echo "configure:2881: checking for $ac_word" >&5 | |
2874 | 2881 | if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then |
2875 | 2882 | echo $ac_n "(cached) $ac_c" 1>&6 |
2876 | 2883 | else |
@@ -2903,7 +2910,7 @@ if test -z "$ac_cv_prog_DLLTOOL" ; then | ||
2903 | 2910 | # Extract the first word of "dlltool", so it can be a program name with args. |
2904 | 2911 | set dummy dlltool; ac_word=$2 |
2905 | 2912 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2906 | -echo "configure:2907: checking for $ac_word" >&5 | |
2913 | +echo "configure:2914: checking for $ac_word" >&5 | |
2907 | 2914 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL'+set}'`\" = set"; then |
2908 | 2915 | echo $ac_n "(cached) $ac_c" 1>&6 |
2909 | 2916 | else |
@@ -2942,7 +2949,7 @@ fi | ||
2942 | 2949 | # Extract the first word of "${ncn_tool_prefix}ld", so it can be a program name with args. |
2943 | 2950 | set dummy ${ncn_tool_prefix}ld; ac_word=$2 |
2944 | 2951 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2945 | -echo "configure:2946: checking for $ac_word" >&5 | |
2952 | +echo "configure:2953: checking for $ac_word" >&5 | |
2946 | 2953 | if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then |
2947 | 2954 | echo $ac_n "(cached) $ac_c" 1>&6 |
2948 | 2955 | else |
@@ -2975,7 +2982,7 @@ if test -z "$ac_cv_prog_LD" ; then | ||
2975 | 2982 | # Extract the first word of "ld", so it can be a program name with args. |
2976 | 2983 | set dummy ld; ac_word=$2 |
2977 | 2984 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2978 | -echo "configure:2979: checking for $ac_word" >&5 | |
2985 | +echo "configure:2986: checking for $ac_word" >&5 | |
2979 | 2986 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD'+set}'`\" = set"; then |
2980 | 2987 | echo $ac_n "(cached) $ac_c" 1>&6 |
2981 | 2988 | else |
@@ -3014,7 +3021,7 @@ fi | ||
3014 | 3021 | # Extract the first word of "${ncn_tool_prefix}nm", so it can be a program name with args. |
3015 | 3022 | set dummy ${ncn_tool_prefix}nm; ac_word=$2 |
3016 | 3023 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3017 | -echo "configure:3018: checking for $ac_word" >&5 | |
3024 | +echo "configure:3025: checking for $ac_word" >&5 | |
3018 | 3025 | if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then |
3019 | 3026 | echo $ac_n "(cached) $ac_c" 1>&6 |
3020 | 3027 | else |
@@ -3047,7 +3054,7 @@ if test -z "$ac_cv_prog_NM" ; then | ||
3047 | 3054 | # Extract the first word of "nm", so it can be a program name with args. |
3048 | 3055 | set dummy nm; ac_word=$2 |
3049 | 3056 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3050 | -echo "configure:3051: checking for $ac_word" >&5 | |
3057 | +echo "configure:3058: checking for $ac_word" >&5 | |
3051 | 3058 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM'+set}'`\" = set"; then |
3052 | 3059 | echo $ac_n "(cached) $ac_c" 1>&6 |
3053 | 3060 | else |
@@ -3086,7 +3093,7 @@ fi | ||
3086 | 3093 | # Extract the first word of "${ncn_tool_prefix}ranlib", so it can be a program name with args. |
3087 | 3094 | set dummy ${ncn_tool_prefix}ranlib; ac_word=$2 |
3088 | 3095 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3089 | -echo "configure:3090: checking for $ac_word" >&5 | |
3096 | +echo "configure:3097: checking for $ac_word" >&5 | |
3090 | 3097 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
3091 | 3098 | echo $ac_n "(cached) $ac_c" 1>&6 |
3092 | 3099 | else |
@@ -3119,7 +3126,7 @@ if test -z "$ac_cv_prog_RANLIB" ; then | ||
3119 | 3126 | # Extract the first word of "ranlib", so it can be a program name with args. |
3120 | 3127 | set dummy ranlib; ac_word=$2 |
3121 | 3128 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3122 | -echo "configure:3123: checking for $ac_word" >&5 | |
3129 | +echo "configure:3130: checking for $ac_word" >&5 | |
3123 | 3130 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB'+set}'`\" = set"; then |
3124 | 3131 | echo $ac_n "(cached) $ac_c" 1>&6 |
3125 | 3132 | else |
@@ -3158,7 +3165,7 @@ fi | ||
3158 | 3165 | # Extract the first word of "${ncn_tool_prefix}windres", so it can be a program name with args. |
3159 | 3166 | set dummy ${ncn_tool_prefix}windres; ac_word=$2 |
3160 | 3167 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3161 | -echo "configure:3162: checking for $ac_word" >&5 | |
3168 | +echo "configure:3169: checking for $ac_word" >&5 | |
3162 | 3169 | if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then |
3163 | 3170 | echo $ac_n "(cached) $ac_c" 1>&6 |
3164 | 3171 | else |
@@ -3191,7 +3198,7 @@ if test -z "$ac_cv_prog_WINDRES" ; then | ||
3191 | 3198 | # Extract the first word of "windres", so it can be a program name with args. |
3192 | 3199 | set dummy windres; ac_word=$2 |
3193 | 3200 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3194 | -echo "configure:3195: checking for $ac_word" >&5 | |
3201 | +echo "configure:3202: checking for $ac_word" >&5 | |
3195 | 3202 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES'+set}'`\" = set"; then |
3196 | 3203 | echo $ac_n "(cached) $ac_c" 1>&6 |
3197 | 3204 | else |
@@ -3230,7 +3237,7 @@ fi | ||
3230 | 3237 | # Extract the first word of "${ncn_tool_prefix}objcopy", so it can be a program name with args. |
3231 | 3238 | set dummy ${ncn_tool_prefix}objcopy; ac_word=$2 |
3232 | 3239 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3233 | -echo "configure:3234: checking for $ac_word" >&5 | |
3240 | +echo "configure:3241: checking for $ac_word" >&5 | |
3234 | 3241 | if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then |
3235 | 3242 | echo $ac_n "(cached) $ac_c" 1>&6 |
3236 | 3243 | else |
@@ -3263,7 +3270,7 @@ if test -z "$ac_cv_prog_OBJCOPY" ; then | ||
3263 | 3270 | # Extract the first word of "objcopy", so it can be a program name with args. |
3264 | 3271 | set dummy objcopy; ac_word=$2 |
3265 | 3272 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3266 | -echo "configure:3267: checking for $ac_word" >&5 | |
3273 | +echo "configure:3274: checking for $ac_word" >&5 | |
3267 | 3274 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJCOPY'+set}'`\" = set"; then |
3268 | 3275 | echo $ac_n "(cached) $ac_c" 1>&6 |
3269 | 3276 | else |
@@ -3302,7 +3309,7 @@ fi | ||
3302 | 3309 | # Extract the first word of "${ncn_tool_prefix}objdump", so it can be a program name with args. |
3303 | 3310 | set dummy ${ncn_tool_prefix}objdump; ac_word=$2 |
3304 | 3311 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3305 | -echo "configure:3306: checking for $ac_word" >&5 | |
3312 | +echo "configure:3313: checking for $ac_word" >&5 | |
3306 | 3313 | if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then |
3307 | 3314 | echo $ac_n "(cached) $ac_c" 1>&6 |
3308 | 3315 | else |
@@ -3335,7 +3342,7 @@ if test -z "$ac_cv_prog_OBJDUMP" ; then | ||
3335 | 3342 | # Extract the first word of "objdump", so it can be a program name with args. |
3336 | 3343 | set dummy objdump; ac_word=$2 |
3337 | 3344 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3338 | -echo "configure:3339: checking for $ac_word" >&5 | |
3345 | +echo "configure:3346: checking for $ac_word" >&5 | |
3339 | 3346 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJDUMP'+set}'`\" = set"; then |
3340 | 3347 | echo $ac_n "(cached) $ac_c" 1>&6 |
3341 | 3348 | else |
@@ -3383,7 +3390,7 @@ fi | ||
3383 | 3390 | # Extract the first word of "${ncn_target_tool_prefix}ar", so it can be a program name with args. |
3384 | 3391 | set dummy ${ncn_target_tool_prefix}ar; ac_word=$2 |
3385 | 3392 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3386 | -echo "configure:3387: checking for $ac_word" >&5 | |
3393 | +echo "configure:3394: checking for $ac_word" >&5 | |
3387 | 3394 | if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then |
3388 | 3395 | echo $ac_n "(cached) $ac_c" 1>&6 |
3389 | 3396 | else |
@@ -3416,7 +3423,7 @@ if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then | ||
3416 | 3423 | # Extract the first word of "ar", so it can be a program name with args. |
3417 | 3424 | set dummy ar; ac_word=$2 |
3418 | 3425 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3419 | -echo "configure:3420: checking for $ac_word" >&5 | |
3426 | +echo "configure:3427: checking for $ac_word" >&5 | |
3420 | 3427 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR_FOR_TARGET'+set}'`\" = set"; then |
3421 | 3428 | echo $ac_n "(cached) $ac_c" 1>&6 |
3422 | 3429 | else |
@@ -3455,7 +3462,7 @@ fi | ||
3455 | 3462 | # Extract the first word of "${ncn_target_tool_prefix}as", so it can be a program name with args. |
3456 | 3463 | set dummy ${ncn_target_tool_prefix}as; ac_word=$2 |
3457 | 3464 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3458 | -echo "configure:3459: checking for $ac_word" >&5 | |
3465 | +echo "configure:3466: checking for $ac_word" >&5 | |
3459 | 3466 | if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then |
3460 | 3467 | echo $ac_n "(cached) $ac_c" 1>&6 |
3461 | 3468 | else |
@@ -3488,7 +3495,7 @@ if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then | ||
3488 | 3495 | # Extract the first word of "as", so it can be a program name with args. |
3489 | 3496 | set dummy as; ac_word=$2 |
3490 | 3497 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3491 | -echo "configure:3492: checking for $ac_word" >&5 | |
3498 | +echo "configure:3499: checking for $ac_word" >&5 | |
3492 | 3499 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS_FOR_TARGET'+set}'`\" = set"; then |
3493 | 3500 | echo $ac_n "(cached) $ac_c" 1>&6 |
3494 | 3501 | else |
@@ -3527,7 +3534,7 @@ fi | ||
3527 | 3534 | # Extract the first word of "${ncn_target_tool_prefix}dlltool", so it can be a program name with args. |
3528 | 3535 | set dummy ${ncn_target_tool_prefix}dlltool; ac_word=$2 |
3529 | 3536 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3530 | -echo "configure:3531: checking for $ac_word" >&5 | |
3537 | +echo "configure:3538: checking for $ac_word" >&5 | |
3531 | 3538 | if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then |
3532 | 3539 | echo $ac_n "(cached) $ac_c" 1>&6 |
3533 | 3540 | else |
@@ -3560,7 +3567,7 @@ if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then | ||
3560 | 3567 | # Extract the first word of "dlltool", so it can be a program name with args. |
3561 | 3568 | set dummy dlltool; ac_word=$2 |
3562 | 3569 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3563 | -echo "configure:3564: checking for $ac_word" >&5 | |
3570 | +echo "configure:3571: checking for $ac_word" >&5 | |
3564 | 3571 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then |
3565 | 3572 | echo $ac_n "(cached) $ac_c" 1>&6 |
3566 | 3573 | else |
@@ -3599,7 +3606,7 @@ fi | ||
3599 | 3606 | # Extract the first word of "${ncn_target_tool_prefix}ld", so it can be a program name with args. |
3600 | 3607 | set dummy ${ncn_target_tool_prefix}ld; ac_word=$2 |
3601 | 3608 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3602 | -echo "configure:3603: checking for $ac_word" >&5 | |
3609 | +echo "configure:3610: checking for $ac_word" >&5 | |
3603 | 3610 | if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then |
3604 | 3611 | echo $ac_n "(cached) $ac_c" 1>&6 |
3605 | 3612 | else |
@@ -3632,7 +3639,7 @@ if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then | ||
3632 | 3639 | # Extract the first word of "ld", so it can be a program name with args. |
3633 | 3640 | set dummy ld; ac_word=$2 |
3634 | 3641 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3635 | -echo "configure:3636: checking for $ac_word" >&5 | |
3642 | +echo "configure:3643: checking for $ac_word" >&5 | |
3636 | 3643 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD_FOR_TARGET'+set}'`\" = set"; then |
3637 | 3644 | echo $ac_n "(cached) $ac_c" 1>&6 |
3638 | 3645 | else |
@@ -3671,7 +3678,7 @@ fi | ||
3671 | 3678 | # Extract the first word of "${ncn_target_tool_prefix}nm", so it can be a program name with args. |
3672 | 3679 | set dummy ${ncn_target_tool_prefix}nm; ac_word=$2 |
3673 | 3680 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3674 | -echo "configure:3675: checking for $ac_word" >&5 | |
3681 | +echo "configure:3682: checking for $ac_word" >&5 | |
3675 | 3682 | if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then |
3676 | 3683 | echo $ac_n "(cached) $ac_c" 1>&6 |
3677 | 3684 | else |
@@ -3704,7 +3711,7 @@ if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then | ||
3704 | 3711 | # Extract the first word of "nm", so it can be a program name with args. |
3705 | 3712 | set dummy nm; ac_word=$2 |
3706 | 3713 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3707 | -echo "configure:3708: checking for $ac_word" >&5 | |
3714 | +echo "configure:3715: checking for $ac_word" >&5 | |
3708 | 3715 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM_FOR_TARGET'+set}'`\" = set"; then |
3709 | 3716 | echo $ac_n "(cached) $ac_c" 1>&6 |
3710 | 3717 | else |
@@ -3743,7 +3750,7 @@ fi | ||
3743 | 3750 | # Extract the first word of "${ncn_target_tool_prefix}ranlib", so it can be a program name with args. |
3744 | 3751 | set dummy ${ncn_target_tool_prefix}ranlib; ac_word=$2 |
3745 | 3752 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3746 | -echo "configure:3747: checking for $ac_word" >&5 | |
3753 | +echo "configure:3754: checking for $ac_word" >&5 | |
3747 | 3754 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then |
3748 | 3755 | echo $ac_n "(cached) $ac_c" 1>&6 |
3749 | 3756 | else |
@@ -3776,7 +3783,7 @@ if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then | ||
3776 | 3783 | # Extract the first word of "ranlib", so it can be a program name with args. |
3777 | 3784 | set dummy ranlib; ac_word=$2 |
3778 | 3785 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3779 | -echo "configure:3780: checking for $ac_word" >&5 | |
3786 | +echo "configure:3787: checking for $ac_word" >&5 | |
3780 | 3787 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET'+set}'`\" = set"; then |
3781 | 3788 | echo $ac_n "(cached) $ac_c" 1>&6 |
3782 | 3789 | else |
@@ -3815,7 +3822,7 @@ fi | ||
3815 | 3822 | # Extract the first word of "${ncn_target_tool_prefix}windres", so it can be a program name with args. |
3816 | 3823 | set dummy ${ncn_target_tool_prefix}windres; ac_word=$2 |
3817 | 3824 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3818 | -echo "configure:3819: checking for $ac_word" >&5 | |
3825 | +echo "configure:3826: checking for $ac_word" >&5 | |
3819 | 3826 | if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then |
3820 | 3827 | echo $ac_n "(cached) $ac_c" 1>&6 |
3821 | 3828 | else |
@@ -3848,7 +3855,7 @@ if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then | ||
3848 | 3855 | # Extract the first word of "windres", so it can be a program name with args. |
3849 | 3856 | set dummy windres; ac_word=$2 |
3850 | 3857 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3851 | -echo "configure:3852: checking for $ac_word" >&5 | |
3858 | +echo "configure:3859: checking for $ac_word" >&5 | |
3852 | 3859 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET'+set}'`\" = set"; then |
3853 | 3860 | echo $ac_n "(cached) $ac_c" 1>&6 |
3854 | 3861 | else |
@@ -3980,15 +3987,34 @@ trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | ||
3980 | 3987 | # Transform confdefs.h into DEFS. |
3981 | 3988 | # Protect against shell expansion while executing Makefile rules. |
3982 | 3989 | # Protect against Makefile macro expansion. |
3983 | -cat > conftest.defs <<\EOF | |
3984 | -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g | |
3985 | -s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g | |
3986 | -s%\[%\\&%g | |
3987 | -s%\]%\\&%g | |
3988 | -s%\$%$$%g | |
3989 | -EOF | |
3990 | -DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` | |
3991 | -rm -f conftest.defs | |
3990 | +# | |
3991 | +# If the first sed substitution is executed (which looks for macros that | |
3992 | +# take arguments), then we branch to the quote section. Otherwise, | |
3993 | +# look for a macro that doesn't take arguments. | |
3994 | +cat >confdef2opt.sed <<\_ACEOF | |
3995 | +t clear | |
3996 | +: clear | |
3997 | +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g | |
3998 | +t quote | |
3999 | +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g | |
4000 | +t quote | |
4001 | +d | |
4002 | +: quote | |
4003 | +s,[ `~#$^&*(){}\\|;'"<>?],\\&,g | |
4004 | +s,\[,\\&,g | |
4005 | +s,\],\\&,g | |
4006 | +s,\$,$$,g | |
4007 | +p | |
4008 | +_ACEOF | |
4009 | +# We use echo to avoid assuming a particular line-breaking character. | |
4010 | +# The extra dot is to prevent the shell from consuming trailing | |
4011 | +# line-breaks from the sub-command output. A line-break within | |
4012 | +# single-quotes doesn't work because, if this script is created in a | |
4013 | +# platform that uses two characters for line-breaks (e.g., DOS), tr | |
4014 | +# would break. | |
4015 | +ac_LF_and_DOT=`echo; echo .` | |
4016 | +DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` | |
4017 | +rm -f confdef2opt.sed | |
3992 | 4018 | |
3993 | 4019 | |
3994 | 4020 | # Without the "./", some shells look in PATH for config.status. |
@@ -1,5 +1,5 @@ | ||
1 | 1 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, |
2 | -# 1999, 2000, 2001, 2002 Free Software Foundation, Inc. | |
2 | +# 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. | |
3 | 3 | # |
4 | 4 | # This file is free software; you can redistribute it and/or modify it |
5 | 5 | # under the terms of the GNU General Public License as published by |
@@ -868,20 +868,6 @@ if test -n "${target_configdirs}" ; then | ||
868 | 868 | fi |
869 | 869 | fi |
870 | 870 | |
871 | -# Deconfigure all subdirectories, in case we are changing the | |
872 | -# configuration from one where a subdirectory is supported to one where it | |
873 | -# is not. | |
874 | -if test -z "${norecursion}" && test -n "${configdirs}" ; then | |
875 | - for i in `echo ${configdirs} | sed -e s/target-//g` ; do | |
876 | - rm -f $i/Makefile | |
877 | - done | |
878 | -fi | |
879 | -if test -z "${norecursion}" && test -n "${target_configdirs}" ; then | |
880 | - for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do | |
881 | - rm -f ${target_subdir}/$i/Makefile | |
882 | - done | |
883 | -fi | |
884 | - | |
885 | 871 | # Quietly strip out all directories which aren't configurable in this tree. |
886 | 872 | # This relies on all configurable subdirectories being autoconfiscated, which |
887 | 873 | # is now the case. |
@@ -1668,13 +1654,24 @@ target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | ||
1668 | 1654 | # This is the final value for target_configdirs. configdirs already |
1669 | 1655 | # has its final value. It's time to create some lists of valid targets. |
1670 | 1656 | |
1657 | +# While at that, we remove Makefiles if we were started for recursive | |
1658 | +# configuration, such that the top-level Makefile reconfigures them, | |
1659 | +# like we used to do when configure itself was recursive. | |
1660 | + | |
1671 | 1661 | all_build_modules= |
1672 | 1662 | configure_build_modules= |
1673 | 1663 | # Only make build modules if build != host. |
1674 | 1664 | # This should be done more generally, but at the moment it doesn't matter. |
1675 | 1665 | if test ${host_alias} != ${build_alias} ; then |
1676 | - all_build_modules=all-build-libiberty | |
1677 | - configure_build_modules=configure-build-libiberty | |
1666 | + for module in libiberty ; do | |
1667 | + all_build_modules=all-build-${module} | |
1668 | + configure_build_modules=configure-build-${module} | |
1669 | + if test -z "${no_recursion}" \ | |
1670 | + && test -f ${build_subdir}/${module}/Makefile; then | |
1671 | + echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
1672 | + rm -f ${build_subdir}/${module}/Makefile | |
1673 | + fi | |
1674 | + done | |
1678 | 1675 | fi |
1679 | 1676 | |
1680 | 1677 | all_host_modules= |
@@ -1686,6 +1683,11 @@ for module in ${configdirs} ; do | ||
1686 | 1683 | check_host_modules="${check_host_modules} check-${module}" |
1687 | 1684 | install_host_modules="${install_host_modules} install-${module}" |
1688 | 1685 | configure_host_modules="${configure_host_modules} configure-${module}" |
1686 | + if test -z "${no_recursion}" \ | |
1687 | + && test -f ${module}/Makefile; then | |
1688 | + echo 1>&2 "*** removing ${module}/Makefile to force reconfigure" | |
1689 | + rm -f ${module}/Makefile | |
1690 | + fi | |
1689 | 1691 | done |
1690 | 1692 | install_host_modules_nogcc=`echo "${install_host_modules}" | sed -e 's/install-gcc//g'` |
1691 | 1693 |
@@ -1698,6 +1700,11 @@ for module in ${target_configdirs} ; do | ||
1698 | 1700 | check_target_modules="${check_target_modules} check-target-${module}" |
1699 | 1701 | install_target_modules="${install_target_modules} install-target-${module}" |
1700 | 1702 | configure_target_modules="${configure_target_modules} configure-target-${module}" |
1703 | + if test -z "${no_recursion}" \ | |
1704 | + && test -f ${target_subdir}/${module}/Makefile; then | |
1705 | + echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
1706 | + rm -f ${target_subdir}/${module}/Makefile | |
1707 | + fi | |
1701 | 1708 | done |
1702 | 1709 | |
1703 | 1710 | # Determine whether gdb needs tk/tcl or not. |