• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revisionbfbe55196399e6c26117aa18aa91a3fd8fdbc010 (tree)
Time2003-01-10 05:45:29
AuthorAlexandre Oliva <aoliva@redh...>
CommiterAlexandre Oliva

Log Message

* configure.in: Remove Makefile in build, host and target modules
unless configure was run with --no-recursion.
* configure: Rebuilt.

Change Summary

Incremental Difference

--- a/ChangeLog
+++ b/ChangeLog
@@ -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+
17 2003-01-08 Chris Demetriou <cgd@broadcom.com>
28
39 * config.guess: Update to 2003-01-03 version.
--- a/configure
+++ b/configure
@@ -1525,20 +1525,6 @@ if test -n "${target_configdirs}" ; then
15251525 fi
15261526 fi
15271527
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-
15421528 # Quietly strip out all directories which aren't configurable in this tree.
15431529 # This relies on all configurable subdirectories being autoconfiscated, which
15441530 # is now the case.
@@ -2325,13 +2311,24 @@ target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23252311 # This is the final value for target_configdirs. configdirs already
23262312 # has its final value. It's time to create some lists of valid targets.
23272313
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+
23282318 all_build_modules=
23292319 configure_build_modules=
23302320 # Only make build modules if build != host.
23312321 # This should be done more generally, but at the moment it doesn't matter.
23322322 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
23352332 fi
23362333
23372334 all_host_modules=
@@ -2343,6 +2340,11 @@ for module in ${configdirs} ; do
23432340 check_host_modules="${check_host_modules} check-${module}"
23442341 install_host_modules="${install_host_modules} install-${module}"
23452342 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
23462348 done
23472349 install_host_modules_nogcc=`echo "${install_host_modules}" | sed -e 's/install-gcc//g'`
23482350
@@ -2355,6 +2357,11 @@ for module in ${target_configdirs} ; do
23552357 check_target_modules="${check_target_modules} check-target-${module}"
23562358 install_target_modules="${install_target_modules} install-target-${module}"
23572359 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
23582365 done
23592366
23602367 # Determine whether gdb needs tk/tcl or not.
@@ -2726,7 +2733,7 @@ test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
27262733 # Extract the first word of "${ncn_tool_prefix}ar", so it can be a program name with args.
27272734 set dummy ${ncn_tool_prefix}ar; ac_word=$2
27282735 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
27302737 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
27312738 echo $ac_n "(cached) $ac_c" 1>&6
27322739 else
@@ -2759,7 +2766,7 @@ if test -z "$ac_cv_prog_AR" ; then
27592766 # Extract the first word of "ar", so it can be a program name with args.
27602767 set dummy ar; ac_word=$2
27612768 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
27632770 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR'+set}'`\" = set"; then
27642771 echo $ac_n "(cached) $ac_c" 1>&6
27652772 else
@@ -2798,7 +2805,7 @@ fi
27982805 # Extract the first word of "${ncn_tool_prefix}as", so it can be a program name with args.
27992806 set dummy ${ncn_tool_prefix}as; ac_word=$2
28002807 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
28022809 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
28032810 echo $ac_n "(cached) $ac_c" 1>&6
28042811 else
@@ -2831,7 +2838,7 @@ if test -z "$ac_cv_prog_AS" ; then
28312838 # Extract the first word of "as", so it can be a program name with args.
28322839 set dummy as; ac_word=$2
28332840 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
28352842 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS'+set}'`\" = set"; then
28362843 echo $ac_n "(cached) $ac_c" 1>&6
28372844 else
@@ -2870,7 +2877,7 @@ fi
28702877 # Extract the first word of "${ncn_tool_prefix}dlltool", so it can be a program name with args.
28712878 set dummy ${ncn_tool_prefix}dlltool; ac_word=$2
28722879 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
28742881 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
28752882 echo $ac_n "(cached) $ac_c" 1>&6
28762883 else
@@ -2903,7 +2910,7 @@ if test -z "$ac_cv_prog_DLLTOOL" ; then
29032910 # Extract the first word of "dlltool", so it can be a program name with args.
29042911 set dummy dlltool; ac_word=$2
29052912 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
29072914 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL'+set}'`\" = set"; then
29082915 echo $ac_n "(cached) $ac_c" 1>&6
29092916 else
@@ -2942,7 +2949,7 @@ fi
29422949 # Extract the first word of "${ncn_tool_prefix}ld", so it can be a program name with args.
29432950 set dummy ${ncn_tool_prefix}ld; ac_word=$2
29442951 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
29462953 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
29472954 echo $ac_n "(cached) $ac_c" 1>&6
29482955 else
@@ -2975,7 +2982,7 @@ if test -z "$ac_cv_prog_LD" ; then
29752982 # Extract the first word of "ld", so it can be a program name with args.
29762983 set dummy ld; ac_word=$2
29772984 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
29792986 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD'+set}'`\" = set"; then
29802987 echo $ac_n "(cached) $ac_c" 1>&6
29812988 else
@@ -3014,7 +3021,7 @@ fi
30143021 # Extract the first word of "${ncn_tool_prefix}nm", so it can be a program name with args.
30153022 set dummy ${ncn_tool_prefix}nm; ac_word=$2
30163023 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
30183025 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
30193026 echo $ac_n "(cached) $ac_c" 1>&6
30203027 else
@@ -3047,7 +3054,7 @@ if test -z "$ac_cv_prog_NM" ; then
30473054 # Extract the first word of "nm", so it can be a program name with args.
30483055 set dummy nm; ac_word=$2
30493056 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
30513058 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM'+set}'`\" = set"; then
30523059 echo $ac_n "(cached) $ac_c" 1>&6
30533060 else
@@ -3086,7 +3093,7 @@ fi
30863093 # Extract the first word of "${ncn_tool_prefix}ranlib", so it can be a program name with args.
30873094 set dummy ${ncn_tool_prefix}ranlib; ac_word=$2
30883095 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
30903097 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
30913098 echo $ac_n "(cached) $ac_c" 1>&6
30923099 else
@@ -3119,7 +3126,7 @@ if test -z "$ac_cv_prog_RANLIB" ; then
31193126 # Extract the first word of "ranlib", so it can be a program name with args.
31203127 set dummy ranlib; ac_word=$2
31213128 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
31233130 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB'+set}'`\" = set"; then
31243131 echo $ac_n "(cached) $ac_c" 1>&6
31253132 else
@@ -3158,7 +3165,7 @@ fi
31583165 # Extract the first word of "${ncn_tool_prefix}windres", so it can be a program name with args.
31593166 set dummy ${ncn_tool_prefix}windres; ac_word=$2
31603167 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
31623169 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
31633170 echo $ac_n "(cached) $ac_c" 1>&6
31643171 else
@@ -3191,7 +3198,7 @@ if test -z "$ac_cv_prog_WINDRES" ; then
31913198 # Extract the first word of "windres", so it can be a program name with args.
31923199 set dummy windres; ac_word=$2
31933200 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
31953202 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES'+set}'`\" = set"; then
31963203 echo $ac_n "(cached) $ac_c" 1>&6
31973204 else
@@ -3230,7 +3237,7 @@ fi
32303237 # Extract the first word of "${ncn_tool_prefix}objcopy", so it can be a program name with args.
32313238 set dummy ${ncn_tool_prefix}objcopy; ac_word=$2
32323239 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
32343241 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
32353242 echo $ac_n "(cached) $ac_c" 1>&6
32363243 else
@@ -3263,7 +3270,7 @@ if test -z "$ac_cv_prog_OBJCOPY" ; then
32633270 # Extract the first word of "objcopy", so it can be a program name with args.
32643271 set dummy objcopy; ac_word=$2
32653272 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
32673274 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJCOPY'+set}'`\" = set"; then
32683275 echo $ac_n "(cached) $ac_c" 1>&6
32693276 else
@@ -3302,7 +3309,7 @@ fi
33023309 # Extract the first word of "${ncn_tool_prefix}objdump", so it can be a program name with args.
33033310 set dummy ${ncn_tool_prefix}objdump; ac_word=$2
33043311 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
33063313 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
33073314 echo $ac_n "(cached) $ac_c" 1>&6
33083315 else
@@ -3335,7 +3342,7 @@ if test -z "$ac_cv_prog_OBJDUMP" ; then
33353342 # Extract the first word of "objdump", so it can be a program name with args.
33363343 set dummy objdump; ac_word=$2
33373344 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
33393346 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJDUMP'+set}'`\" = set"; then
33403347 echo $ac_n "(cached) $ac_c" 1>&6
33413348 else
@@ -3383,7 +3390,7 @@ fi
33833390 # Extract the first word of "${ncn_target_tool_prefix}ar", so it can be a program name with args.
33843391 set dummy ${ncn_target_tool_prefix}ar; ac_word=$2
33853392 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
33873394 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
33883395 echo $ac_n "(cached) $ac_c" 1>&6
33893396 else
@@ -3416,7 +3423,7 @@ if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
34163423 # Extract the first word of "ar", so it can be a program name with args.
34173424 set dummy ar; ac_word=$2
34183425 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
34203427 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR_FOR_TARGET'+set}'`\" = set"; then
34213428 echo $ac_n "(cached) $ac_c" 1>&6
34223429 else
@@ -3455,7 +3462,7 @@ fi
34553462 # Extract the first word of "${ncn_target_tool_prefix}as", so it can be a program name with args.
34563463 set dummy ${ncn_target_tool_prefix}as; ac_word=$2
34573464 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
34593466 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
34603467 echo $ac_n "(cached) $ac_c" 1>&6
34613468 else
@@ -3488,7 +3495,7 @@ if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
34883495 # Extract the first word of "as", so it can be a program name with args.
34893496 set dummy as; ac_word=$2
34903497 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
34923499 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS_FOR_TARGET'+set}'`\" = set"; then
34933500 echo $ac_n "(cached) $ac_c" 1>&6
34943501 else
@@ -3527,7 +3534,7 @@ fi
35273534 # Extract the first word of "${ncn_target_tool_prefix}dlltool", so it can be a program name with args.
35283535 set dummy ${ncn_target_tool_prefix}dlltool; ac_word=$2
35293536 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
35313538 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
35323539 echo $ac_n "(cached) $ac_c" 1>&6
35333540 else
@@ -3560,7 +3567,7 @@ if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
35603567 # Extract the first word of "dlltool", so it can be a program name with args.
35613568 set dummy dlltool; ac_word=$2
35623569 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
35643571 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
35653572 echo $ac_n "(cached) $ac_c" 1>&6
35663573 else
@@ -3599,7 +3606,7 @@ fi
35993606 # Extract the first word of "${ncn_target_tool_prefix}ld", so it can be a program name with args.
36003607 set dummy ${ncn_target_tool_prefix}ld; ac_word=$2
36013608 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
36033610 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
36043611 echo $ac_n "(cached) $ac_c" 1>&6
36053612 else
@@ -3632,7 +3639,7 @@ if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
36323639 # Extract the first word of "ld", so it can be a program name with args.
36333640 set dummy ld; ac_word=$2
36343641 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
36363643 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD_FOR_TARGET'+set}'`\" = set"; then
36373644 echo $ac_n "(cached) $ac_c" 1>&6
36383645 else
@@ -3671,7 +3678,7 @@ fi
36713678 # Extract the first word of "${ncn_target_tool_prefix}nm", so it can be a program name with args.
36723679 set dummy ${ncn_target_tool_prefix}nm; ac_word=$2
36733680 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
36753682 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
36763683 echo $ac_n "(cached) $ac_c" 1>&6
36773684 else
@@ -3704,7 +3711,7 @@ if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
37043711 # Extract the first word of "nm", so it can be a program name with args.
37053712 set dummy nm; ac_word=$2
37063713 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
37083715 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM_FOR_TARGET'+set}'`\" = set"; then
37093716 echo $ac_n "(cached) $ac_c" 1>&6
37103717 else
@@ -3743,7 +3750,7 @@ fi
37433750 # Extract the first word of "${ncn_target_tool_prefix}ranlib", so it can be a program name with args.
37443751 set dummy ${ncn_target_tool_prefix}ranlib; ac_word=$2
37453752 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
37473754 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
37483755 echo $ac_n "(cached) $ac_c" 1>&6
37493756 else
@@ -3776,7 +3783,7 @@ if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
37763783 # Extract the first word of "ranlib", so it can be a program name with args.
37773784 set dummy ranlib; ac_word=$2
37783785 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
37803787 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET'+set}'`\" = set"; then
37813788 echo $ac_n "(cached) $ac_c" 1>&6
37823789 else
@@ -3815,7 +3822,7 @@ fi
38153822 # Extract the first word of "${ncn_target_tool_prefix}windres", so it can be a program name with args.
38163823 set dummy ${ncn_target_tool_prefix}windres; ac_word=$2
38173824 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
38193826 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
38203827 echo $ac_n "(cached) $ac_c" 1>&6
38213828 else
@@ -3848,7 +3855,7 @@ if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
38483855 # Extract the first word of "windres", so it can be a program name with args.
38493856 set dummy windres; ac_word=$2
38503857 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
38523859 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET'+set}'`\" = set"; then
38533860 echo $ac_n "(cached) $ac_c" 1>&6
38543861 else
@@ -3980,15 +3987,34 @@ trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
39803987 # Transform confdefs.h into DEFS.
39813988 # Protect against shell expansion while executing Makefile rules.
39823989 # 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
39924018
39934019
39944020 # Without the "./", some shells look in PATH for config.status.
--- a/configure.in
+++ b/configure.in
@@ -1,5 +1,5 @@
11 # 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.
33 #
44 # This file is free software; you can redistribute it and/or modify it
55 # under the terms of the GNU General Public License as published by
@@ -868,20 +868,6 @@ if test -n "${target_configdirs}" ; then
868868 fi
869869 fi
870870
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-
885871 # Quietly strip out all directories which aren't configurable in this tree.
886872 # This relies on all configurable subdirectories being autoconfiscated, which
887873 # is now the case.
@@ -1668,13 +1654,24 @@ target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
16681654 # This is the final value for target_configdirs. configdirs already
16691655 # has its final value. It's time to create some lists of valid targets.
16701656
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+
16711661 all_build_modules=
16721662 configure_build_modules=
16731663 # Only make build modules if build != host.
16741664 # This should be done more generally, but at the moment it doesn't matter.
16751665 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
16781675 fi
16791676
16801677 all_host_modules=
@@ -1686,6 +1683,11 @@ for module in ${configdirs} ; do
16861683 check_host_modules="${check_host_modules} check-${module}"
16871684 install_host_modules="${install_host_modules} install-${module}"
16881685 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
16891691 done
16901692 install_host_modules_nogcc=`echo "${install_host_modules}" | sed -e 's/install-gcc//g'`
16911693
@@ -1698,6 +1700,11 @@ for module in ${target_configdirs} ; do
16981700 check_target_modules="${check_target_modules} check-target-${module}"
16991701 install_target_modules="${install_target_modules} install-target-${module}"
17001702 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
17011708 done
17021709
17031710 # Determine whether gdb needs tk/tcl or not.