diff options
author | K. Richard Pixley <rich@cygnus> | 1991-05-19 00:32:13 +0000 |
---|---|---|
committer | K. Richard Pixley <rich@cygnus> | 1991-05-19 00:32:13 +0000 |
commit | 9d1e053bdcdf5740997df64912a3e4a60726045e (patch) | |
tree | 5f74871a3e41f7ce84bb1d0faf110a4ca151f213 /configure | |
parent | 089aacdb56c756a8451d8e97ae41908c2316ede3 (diff) | |
download | gdb-9d1e053bdcdf5740997df64912a3e4a60726045e.zip gdb-9d1e053bdcdf5740997df64912a3e4a60726045e.tar.gz gdb-9d1e053bdcdf5740997df64912a3e4a60726045e.tar.bz2 |
Changes to deal with missing subdirs gracefully, and changes dictated
from dropping configure over gdb.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 70 |
1 files changed, 45 insertions, 25 deletions
@@ -178,7 +178,7 @@ fi # script appropriate for this directory. For more information, check # any existing configure script. -configdirs="libiberty bfd binutils ld gas gcc gnulib clib" +configdirs="libiberty bfd binutils ld gas gdb gcc gnulib clib" srctrigger=README.configure srcname="gnu development package" @@ -249,11 +249,15 @@ if [ -n "${template}" ] ; then fi for i in ${configdir} ${targetspecificdirs} ; do - if [ -r $i/configure ] ; then - (cd $i ; - ./configure +template=${template} ${verbose}) + if [ -d $i ] ; then + if [ -r $i/configure ] ; then + (cd $i ; + ./configure +template=${template} ${verbose}) + else + echo No configure script in `pwd`/$i + fi else - echo No configure script in `pwd`/$i + echo Warning: directory $i is missing. fi done done @@ -424,18 +428,23 @@ for host in ${hosts} ; do cat ${srcdir}/Makefile.in >> Makefile # and shake thoroughly. - host_var_file=hmake-${host} - target_var_file=tmake-${target} + if [ -z "${host_makefile_frag}" ] ; then + host_makefile_frag=config/hmake-${host} + fi + + if [ -z "${target_makefile_frag}" ] ; then + target_makefile_frag=config/tmake-${target} + fi # Conditionalize the makefile for this host. - if [ -f ${srcdir}/config/${host_var_file} ] ; then - sed -e "/^####/ r ${srcdir}/config/${host_var_file}" Makefile > Makefile.tem + if [ -f ${srcdir}/${host_makefile_frag} ] ; then + sed -e "/^####/ r ${srcdir}/${host_makefile_frag}" Makefile > Makefile.tem mv Makefile.tem Makefile fi # Conditionalize the makefile for this target. - if [ -f ${srcdir}/config/${target_var_file} ] ; then - sed -e "/^####/ r ${srcdir}/config/${target_var_file}" Makefile > Makefile.tem + if [ -f ${srcdir}/${target_makefile_frag} ] ; then + sed -e "/^####/ r ${srcdir}/${target_makefile_frag}" Makefile > Makefile.tem mv Makefile.tem Makefile fi @@ -462,15 +471,15 @@ for host in ${hosts} ; do mv Makefile.tem Makefile using= - if [ -f ${srcdir}/config/${host_var_file} ] ; then - using=" using \"${host_var_file}\"" + if [ -f ${srcdir}/${host_makefile_frag} ] ; then + using=" using \"${host_makefile_frag}\"" fi - if [ -f ${srcdir}/config/${target_var_file} ] ; then + if [ -f ${srcdir}/${target_makefile_frag} ] ; then if [ -z "${using}" ] ; then - andusing=" using \"${target_var_file}\"" + andusing=" using \"${target_makefile_frag}\"" else - andusing="${using} and \"${target_var_file}\"" + andusing="${using} and \"${target_makefile_frag}\"" fi else andusing=${using} @@ -530,9 +539,13 @@ for configdir in ${configdirs} ; do done # for each host if [ -n "${commons}" ] ; then - (cd ${configdir} ; - ./configure ${commons} ${verbose} ${forcesubdirs} ${removing}) \ - | sed 's/^/ /' + if [ -d ${configdir} ] ; then + (cd ${configdir} ; + ./configure ${commons} ${verbose} ${forcesubdirs} ${removing}) \ + | sed 's/^/ /' + else + echo Warning: directory \"${configdir}\" is missing. + fi fi # if any common hosts if [ -n "${specifics}" ] ; then @@ -562,9 +575,13 @@ for configdir in ${configdirs} ; do fi # if verbose if [ -n "${commons}" ] ; then - (cd ${configdir} ; - ./configure ${hosts} ${verbose} ${forcesubdirs} ${removing} ${commons}) \ - | sed 's/^/ /' + if [ -d ${configdir} ] ; then + (cd ${configdir} ; + ./configure ${hosts} ${verbose} ${forcesubdirs} ${removing} ${commons}) \ + | sed 's/^/ /' + else + echo Warning: directory \"${configdir}\" is missing. + fi fi # if any commons if [ -n "${specifics}" ] ; then @@ -582,9 +599,12 @@ exit 0 # # $Log$ -# Revision 1.11 1991/05/14 14:09:59 rich -# Many small changes including the removal of configure.template. Any -# valid configure script can now be used as a template. +# Revision 1.12 1991/05/19 00:32:13 rich +# Changes to deal with missing subdirs gracefully, and changes dictated +# from dropping configure over gdb. +# +# Revision 1.4 1991/05/19 00:16:45 rich +# Configure for gdb. # # Revision 1.10 1991/05/04 00:58:38 rich # Fix program name bug. |