comparison configure1.in @ 4704:b5d192c0f910

Substitute variable `vpath_sed'. If not in $srcdir and $srcdir is configured, issue warning that GNU make is required, and set vpath_sed to use vpath.sed script.
author Roland McGrath <roland@gnu.org>
date Sun, 12 Sep 1993 10:47:34 +0000
parents 32220a85d53b
children 49643e1db119
comparison
equal deleted inserted replaced
4703:c5419d943526 4704:b5d192c0f910
360 fi 360 fi
361 ;; 361 ;;
362 * ) srcdir="`(cd ${srcdir}; pwd)`" ;; 362 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
363 esac 363 esac
364 364
365 #### Check if the source directory already has a configured system in it.
366 if [ `pwd` != `(cd ${srcdir} && pwd)` ] \
367 && [ -f "${srcdir}/src/config.h" ] ; then
368 (echo "${progname}: WARNING: The directory tree \`${srcdir}' is being used"
369 echo " as a build directory right now; it has been configured in its own"
370 echo " right. To configure in another directory as well, you MUST"
371 echo " use GNU make. If you do not have GNU make, then you must"
372 echo " now do \`make distclean' in ${srcdir},"
373 echo " and then run ${progname} again.") >&2
374 # We need a multi-line sed script, which cannot go in a makefile.
375 vpath_sed='-f vpath.sed'
376 else
377 # Do the normal substitution for VPATH. This will not crash non-GNU make.
378 vpath_sed='-e '\''s|^\(VPATH *=\).*$$|\1 ='\''"${srcdir}/${subdir}|"'
379 fi
380 ] AC_SUBST(vpath_sed) [
381
365 ### Make the necessary directories, if they don't exist. 382 ### Make the necessary directories, if they don't exist.
366 for dir in ./src ./lib-src ./cpp ./oldXMenu ./etc ; do 383 for dir in ./src ./lib-src ./cpp ./oldXMenu ./etc ; do
367 if [ ! -d ${dir} ]; then 384 if [ ! -d ${dir} ]; then
368 mkdir ${dir} 385 mkdir ${dir}
369 fi 386 fi
1291 test -n "${prefix}" && 1308 test -n "${prefix}" &&
1292 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` 1309 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
1293 test -n "${exec_prefix}" && 1310 test -n "${exec_prefix}" &&
1294 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` 1311 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
1295 ] 1312 ]
1296 AC_OUTPUT(Makefile) 1313 AC_OUTPUT(Makefile ${extra_output})