-AC_INIT(src/blackbox.cc)
-AM_INIT_AUTOMAKE(openbox, 2.90.0, no-define)
-
-dnl Check for check
-AM_PATH_CHECK
-
-dnl Determine default prefix
-test "$prefix" = "NONE" && prefix="$ac_default_prefix"
-
-dnl We're in the C++ world
-AC_LANG(C++)
-
-AC_PROG_CC
-AC_PROG_CXX
-AC_PROG_INSTALL
-AC_PROG_LIBTOOL
-
-AC_CHECK_PROGS(regex_cmd, sed)
-if test x$regex_cmd = "x"; then
- AC_MSG_ERROR([error. sed is required to build the default menu file.])
-fi
-
-dnl Check what compiler we are using
-AC_MSG_CHECKING(for GCC)
-if test "$GCC" = "yes"; then
- AC_MSG_RESULT([yes])
- CXXFLAGS="$CXXFLAGS -Wall -W -pedantic"
-else
- AC_MSG_RESULT([no, trying other compilers])
- AC_MSG_CHECKING(for MIPSpro)
- mips_pro_ver=`$CXX -version 2>&1 | grep -i mipspro | cut -f4 -d ' '`
- if test -z "$mips_pro_ver"; then
- AC_MSG_RESULT([no])
- else
- AC_MSG_RESULT([yes, version $mips_pro_ver.])
- AC_MSG_CHECKING(for -LANG:std in CXXFLAGS)
- lang_std_not_set=`echo $CXXFLAGS | grep "\-LANG:std"`
- if test "x$lang_std_not_set" = "x"; then
- AC_MSG_RESULT([not set, setting.])
- CXXFLAGS="${CXXFLAGS} -LANG:std"
- else
- AC_MSG_RESULT([already set.])
- fi
- fi
+AC_PREREQ([2.50])
+AC_INIT([kernel/openbox.c])
+# AC_CONFIG_HEADERS(config.h)
+AC_LANG([C])
+AC_ENABLE_STATIC([no])
+AC_ENABLE_SHARED([yes])
+
+AC_PREFIX_DEFAULT([/usr/local])
+if test "$prefix" = "NONE"; then
+ prefix=$ac_default_prefix
+ ac_configure_args="$ac_configure_args --prefix $prefix"