-
-AC_PATH_PROG([regex_cmd], [sed])
-test -z $regex_cmd && AC_MSG_ERROR([sed not found])
-
-AC_PROG_CC
-AC_PROG_CXX
-AC_PROG_LIBTOOL
-LIBTOOL="$LIBTOOL --silent"
-AC_PROG_INSTALL
-
-ALL_LINGUAS=""
-AM_GNU_GETTEXT
-
-AC_LANG(C++)
-
-dnl Check what compiler we are using
-AC_MSG_CHECKING([for GCC])
-if test "$GCC" = "yes"; then
- AC_MSG_RESULT([yes])
- CPPFLAGS="$CPPFLAGS -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 CPPFLAGS)
- lang_std_not_set=`echo $CPPFLAGS | grep "\-LANG:std"`
- if test "x$lang_std_not_set" = "x"; then
- AC_MSG_RESULT([not set, setting.])
- CPPFLAGS="${CPPFLAGS} -LANG:std"
- else
- AC_MSG_RESULT([already set.])
- fi
- fi
+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"