Move Autoconf's macro definitions into config.h.
[openvswitch] / configure.ac
index 0cdc593a6386db8e73c33ea15800f40174c9f9b6..eb5f9fdd72c111295b834b5dfa541ccbcfddebe5 100644 (file)
@@ -1,14 +1,20 @@
 AC_PREREQ(2.59)
 AC_INIT(openflow, v0.8.1, info@openflowswitch.org)
+AC_CONFIG_HEADERS([config.h])
 AM_INIT_AUTOMAKE
 
 AC_PROG_CC
 AC_PROG_CPP
 AC_PROG_LD
+AC_PROG_RANLIB
 
-AC_USE_SYSTEM_EXTENSIONS
+AC_ARG_VAR([PERL], [path to Perl interpreter])
+AC_PATH_PROG([PERL], perl, no)
+if test "$PERL" = no; then
+   AC_MSG_ERROR([Perl interpreter not found in $PATH or $PERL.])
+fi
 
-AC_PROG_LIBTOOL
+AC_USE_SYSTEM_EXTENSIONS
 
 AC_ARG_ENABLE(
   [ndebug],
@@ -39,7 +45,7 @@ case "${enable_hw_tables}" in # (
     ;;
 esac
 for d in $hw_tables; do
-    mk=datapath/hwtable-$d/Modules.mk
+    mk=datapath/hwtable_$d/Modules.mk
     if test ! -e $srcdir/$mk; then
        AC_MSG_ERROR([--enable-hw-tables=$d specified but $mk is missing])
     fi