CVSROOT: /sources/m4
Module name: m4
Changes by: Eric Blake <ericb> 06/10/31 02:05:37
Index: configure.ac
===================================================================
RCS file: /sources/m4/m4/configure.ac,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -b -r1.60 -r1.61
--- configure.ac 27 Oct 2006 21:10:15 -0000 1.60
+++ configure.ac 31 Oct 2006 02:05:37 -0000 1.61
@@ -124,8 +124,15 @@
else
if test "$use_modules" != yes; then
for module in $use_modules; do
- DLPREOPEN="$DLPREOPEN -dlpreopen modules/$module.la"
- PREOPEN_DEPENDENCIES="$PREOPEN_DEPENDENCIES modules/$module.la"
+ case $module in
+ no|none) break ;;
+ m4|traditional|gnu|load|mpeval) dir=modules ;;
+ import|modtest|shadow|stdlib|time) dir=tests ;;
+ *) AC_MSG_ERROR([Unrecognized module `$module' in --with-modules])
+ ;;
+ esac
+ DLPREOPEN="$DLPREOPEN -dlpreopen $dir/$module.la"
+ PREOPEN_DEPENDENCIES="$PREOPEN_DEPENDENCIES $dir/$module.la"
done
fi
fi