From 7ca4d98726f40fe6ec5b1335ee02d05ba0c18e57 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 24 May 2002 22:59:42 +0000 Subject: new root dir based on bb-cvs --- BUGS | 0 CodingStyle | 13 --- Makefile.am | 2 - autom4te.cache/requests | 173 +++++++++++++++++++++++++++++++ bootstrap | 1 + config.h.in | 145 -------------------------- configure.ac | 234 ++++++++++++++++++++++++++++++++++++++++++ configure.in | 267 ------------------------------------------------ stamp-h.in | 1 - 9 files changed, 408 insertions(+), 428 deletions(-) delete mode 100644 BUGS delete mode 100644 CodingStyle delete mode 100644 config.h.in create mode 100644 configure.ac delete mode 100644 configure.in delete mode 100644 stamp-h.in diff --git a/BUGS b/BUGS deleted file mode 100644 index e69de29b..00000000 diff --git a/CodingStyle b/CodingStyle deleted file mode 100644 index 729e37c0..00000000 --- a/CodingStyle +++ /dev/null @@ -1,13 +0,0 @@ -Openbox coding style: - -2 space indent, expanded to spaces. No actual tab characters. - -Braces do not get a \n before the top one, for example: - if () { - } - -Put a space between an if/while/etc and the ()'s (see above example) - - -If you see anythig not laid out, mention it and we can decide what is right and -add it to this file! diff --git a/Makefile.am b/Makefile.am index bf0473bb..23cfc45a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,7 +1,5 @@ # Makefile.am for Openbox -AUTOMAKE_OPTIONS = foreign - SUBDIRS = data doc nls src util MAINTAINERCLEANFILES = aclocal.m4 config.h.in configure Makefile.in stamp-h.in diff --git a/autom4te.cache/requests b/autom4te.cache/requests index 3452fdff..8189aa86 100644 --- a/autom4te.cache/requests +++ b/autom4te.cache/requests @@ -89,6 +89,179 @@ 'AC_PROG_LIBTOOL' => 1, 'AC_PROG_CC' => 1 } + ], 'Request' ), + bless( [ + '1', + 1, + [ + '/usr/share/autoconf' + ], + [ + '--reload-state=/usr/share/autoconf/autoconf/autoconf.m4f', + 'configure.ac' + ], + { + 'AC_HEADER_STAT' => 1, + 'AC_FUNC_STRFTIME' => 1, + 'AC_PROG_RANLIB' => 1, + 'AC_FUNC_WAIT3' => 1, + 'AC_FUNC_SETPGRP' => 1, + 'AC_HEADER_TIME' => 1, + 'AC_FUNC_SETVBUF_REVERSED' => 1, + 'AC_HEADER_SYS_WAIT' => 1, + 'AC_TYPE_UID_T' => 1, + 'AC_CHECK_LIB' => 1, + 'AM_CONDITIONAL' => 1, + 'AC_PROG_LN_S' => 1, + 'AC_FUNC_MEMCMP' => 1, + 'AC_FUNC_FORK' => 1, + 'AC_FUNC_GETGROUPS' => 1, + 'AC_HEADER_MAJOR' => 1, + 'AC_FUNC_STRTOD' => 1, + 'AC_HEADER_DIRENT' => 1, + 'AC_FUNC_UTIME_NULL' => 1, + 'AC_CONFIG_FILES' => 1, + 'AC_FUNC_ALLOCA' => 1, + 'AC_C_CONST' => 1, + 'include' => 1, + 'AC_FUNC_OBSTACK' => 1, + 'AC_FUNC_LSTAT' => 1, + 'AC_STRUCT_TIMEZONE' => 1, + 'AC_FUNC_GETPGRP' => 1, + 'AC_DEFINE_TRACE_LITERAL' => 1, + 'AC_CHECK_HEADERS' => 1, + 'AC_TYPE_MODE_T' => 1, + 'AC_CHECK_TYPES' => 1, + 'AC_PROG_YACC' => 1, + 'AC_FUNC_STRERROR_R' => 1, + 'AC_TYPE_PID_T' => 1, + 'AC_STRUCT_ST_BLOCKS' => 1, + 'AC_PROG_GCC_TRADITIONAL' => 1, + 'AC_TYPE_SIGNAL' => 1, + 'AC_FUNC_FNMATCH' => 1, + 'AC_PROG_CPP' => 1, + 'AM_PROG_LIBTOOL' => 1, + 'AC_FUNC_STAT' => 1, + 'AC_PROG_INSTALL' => 1, + 'AM_GNU_GETTEXT' => 1, + 'AC_FUNC_STRCOLL' => 1, + 'AC_LIBSOURCE' => 1, + 'AC_C_INLINE' => 1, + 'AC_FUNC_CHOWN' => 1, + 'AC_PROG_LEX' => 1, + 'AH_OUTPUT' => 1, + 'AC_HEADER_STDC' => 1, + 'AC_FUNC_GETLOADAVG' => 1, + 'AC_CHECK_FUNCS' => 1, + 'AC_TYPE_SIZE_T' => 1, + 'AC_DECL_SYS_SIGLIST' => 1, + 'AC_FUNC_MKTIME' => 1, + 'AC_PROG_MAKE_SET' => 1, + 'AC_PROG_CXX' => 1, + 'm4_pattern_allow' => 1, + 'm4_include' => 1, + 'm4_pattern_forbid' => 1, + 'AC_PROG_AWK' => 1, + 'AC_FUNC_VPRINTF' => 1, + 'AC_CONFIG_HEADERS' => 1, + 'AC_PATH_X' => 1, + 'AC_TYPE_OFF_T' => 1, + 'AC_FUNC_MALLOC' => 1, + 'AC_FUNC_ERROR_AT_LINE' => 1, + 'AC_FUNC_FSEEKO' => 1, + 'AC_STRUCT_TM' => 1, + 'AC_FUNC_MMAP' => 1, + 'AC_SUBST' => 1, + 'AC_PROG_LIBTOOL' => 1, + 'AC_PROG_CC' => 1 + } + ], 'Request' ), + bless( [ + '2', + 1, + [ + '/usr/share/autoconf' + ], + [ + '--reload-state=/usr/share/autoconf/autoconf/autoconf.m4f', + 'aclocal.m4', + 'configure.ac' + ], + { + 'AC_HEADER_STAT' => 1, + 'AC_FUNC_STRFTIME' => 1, + 'AC_PROG_RANLIB' => 1, + 'AC_FUNC_WAIT3' => 1, + 'AC_FUNC_SETPGRP' => 1, + 'AC_HEADER_TIME' => 1, + 'AC_FUNC_SETVBUF_REVERSED' => 1, + 'AC_HEADER_SYS_WAIT' => 1, + 'AC_TYPE_UID_T' => 1, + 'AM_CONDITIONAL' => 1, + 'AC_CHECK_LIB' => 1, + 'AC_PROG_LN_S' => 1, + 'AC_FUNC_MEMCMP' => 1, + 'AC_FUNC_FORK' => 1, + 'AC_FUNC_GETGROUPS' => 1, + 'AC_HEADER_MAJOR' => 1, + 'AC_FUNC_STRTOD' => 1, + 'AC_HEADER_DIRENT' => 1, + 'AC_FUNC_UTIME_NULL' => 1, + 'AC_CONFIG_FILES' => 1, + 'AC_FUNC_ALLOCA' => 1, + 'AC_C_CONST' => 1, + 'include' => 1, + 'AC_FUNC_OBSTACK' => 1, + 'AC_FUNC_LSTAT' => 1, + 'AC_STRUCT_TIMEZONE' => 1, + 'AC_FUNC_GETPGRP' => 1, + 'AC_DEFINE_TRACE_LITERAL' => 1, + 'AC_CHECK_HEADERS' => 1, + 'AC_TYPE_MODE_T' => 1, + 'AC_CHECK_TYPES' => 1, + 'AC_PROG_YACC' => 1, + 'AC_TYPE_PID_T' => 1, + 'AC_FUNC_STRERROR_R' => 1, + 'AC_STRUCT_ST_BLOCKS' => 1, + 'AC_PROG_GCC_TRADITIONAL' => 1, + 'AC_TYPE_SIGNAL' => 1, + 'AC_FUNC_FNMATCH' => 1, + 'AC_PROG_CPP' => 1, + 'AM_PROG_LIBTOOL' => 1, + 'AC_FUNC_STAT' => 1, + 'AC_PROG_INSTALL' => 1, + 'AM_GNU_GETTEXT' => 1, + 'AC_FUNC_STRCOLL' => 1, + 'AC_LIBSOURCE' => 1, + 'AC_C_INLINE' => 1, + 'AC_FUNC_CHOWN' => 1, + 'AC_PROG_LEX' => 1, + 'AH_OUTPUT' => 1, + 'AC_HEADER_STDC' => 1, + 'AC_FUNC_GETLOADAVG' => 1, + 'AC_CHECK_FUNCS' => 1, + 'AC_TYPE_SIZE_T' => 1, + 'AC_DECL_SYS_SIGLIST' => 1, + 'AC_FUNC_MKTIME' => 1, + 'AC_PROG_MAKE_SET' => 1, + 'AC_PROG_CXX' => 1, + 'm4_pattern_allow' => 1, + 'm4_include' => 1, + 'm4_pattern_forbid' => 1, + 'AC_PROG_AWK' => 1, + 'AC_FUNC_VPRINTF' => 1, + 'AC_CONFIG_HEADERS' => 1, + 'AC_PATH_X' => 1, + 'AC_TYPE_OFF_T' => 1, + 'AC_FUNC_MALLOC' => 1, + 'AC_FUNC_ERROR_AT_LINE' => 1, + 'AC_FUNC_FSEEKO' => 1, + 'AC_FUNC_MMAP' => 1, + 'AC_STRUCT_TM' => 1, + 'AC_SUBST' => 1, + 'AC_PROG_CC' => 1, + 'AC_PROG_LIBTOOL' => 1 + } ], 'Request' ) ); diff --git a/bootstrap b/bootstrap index 60958c82..3c3044d3 100755 --- a/bootstrap +++ b/bootstrap @@ -4,6 +4,7 @@ sh() { /bin/sh -c "set -x; $*" } +sh autoheader sh aclocal sh automake --foreign --include-deps --add-missing sh autoconf diff --git a/config.h.in b/config.h.in deleted file mode 100644 index cb7c7ee7..00000000 --- a/config.h.in +++ /dev/null @@ -1,145 +0,0 @@ -/* config.h.in. Generated from configure.in by autoheader. */ - -/* Define to 1 if you have the `basename' function. */ -#undef HAVE_BASENAME - -/* Define to 1 if you have the `catclose' function. */ -#undef HAVE_CATCLOSE - -/* Define to 1 if you have the `catgets' function. */ -#undef HAVE_CATGETS - -/* Define to 1 if you have the `catopen' function. */ -#undef HAVE_CATOPEN - -/* Define to 1 if you have the header file. */ -#undef HAVE_CTYPE_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_DIRENT_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_FCNTL_H - -/* Define to 1 if you have the `getpid' function. */ -#undef HAVE_GETPID - -/* Define to 1 if you have the header file. */ -#undef HAVE_INTTYPES_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_LIBGEN_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_LOCALE_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_MEMORY_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_NL_TYPES_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_PROCESS_H - -/* Define to 1 if you have the `setlocale' function. */ -#undef HAVE_SETLOCALE - -/* Define to 1 if you have the `sigaction' function. */ -#undef HAVE_SIGACTION - -/* Define to 1 if you have the header file. */ -#undef HAVE_SIGNAL_H - -/* Define to 1 if you have the `snprintf' function. */ -#undef HAVE_SNPRINTF - -/* Define to 1 if you have the header file. */ -#undef HAVE_STDARG_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_STDINT_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_STDIO_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_STDLIB_H - -/* Define to 1 if you have the `strcasestr' function. */ -#undef HAVE_STRCASESTR - -/* Define to 1 if you have the `strftime' function. */ -#undef HAVE_STRFTIME - -/* Define to 1 if you have the header file. */ -#undef HAVE_STRINGS_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_STRING_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_PARAM_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_SELECT_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_SIGNAL_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_STAT_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_TIME_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_TYPES_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_WAIT_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SSTREAM - -/* Define to 1 if you have the header file. */ -#undef HAVE_TIME_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_UNISTD_H - -/* Define to 1 if you have the `vsnprintf' function. */ -#undef HAVE_VSNPRINTF - -/* Name of package */ -#undef PACKAGE - -/* Define to the address where bug reports for this package should be sent. */ -#undef PACKAGE_BUGREPORT - -/* Define to the full name of this package. */ -#undef PACKAGE_NAME - -/* Define to the full name and version of this package. */ -#undef PACKAGE_STRING - -/* Define to the one symbol short name of this package. */ -#undef PACKAGE_TARNAME - -/* Define to the version of this package. */ -#undef PACKAGE_VERSION - -/* Define as the return type of signal handlers (`int' or `void'). */ -#undef RETSIGTYPE - -/* Define to 1 if you have the ANSI C header files. */ -#undef STDC_HEADERS - -/* Define to 1 if you can safely include both and . */ -#undef TIME_WITH_SYS_TIME - -/* Version number of package */ -#undef VERSION - -/* Define to 1 if the X Window System is missing or not being used. */ -#undef X_DISPLAY_MISSING diff --git a/configure.ac b/configure.ac new file mode 100644 index 00000000..ae460597 --- /dev/null +++ b/configure.ac @@ -0,0 +1,234 @@ +dnl configure.in for Openbox +dnl Initialize autoconf and automake +AC_INIT(src/blackbox.cc) +AM_INIT_AUTOMAKE(openbox,2.0.0,no-define) +AC_CONFIG_HEADERS(config.h) + +dnl Determine default prefix +test x$prefix = "xNONE" && prefix="$ac_default_prefix" + +dnl Check for various flavors of UNIX(r) +dnl AC_AIX +dnl AC_ISC_POSIX + +dnl Locate required external software +AC_PROG_CC +AC_PROG_CXX +AC_PROG_INSTALL + +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 for system header files +AC_CHECK_HEADERS(ctype.h dirent.h fcntl.h libgen.h locale.h nl_types.h process.h signal.h stdarg.h stdio.h string.h stdlib.h time.h unistd.h sys/param.h sys/select.h sys/signal.h sys/stat.h sys/time.h sys/types.h sys/wait.h) +AC_HEADER_TIME + +dnl Check for existance of basename(), setlocale() and strftime() +AC_CHECK_FUNCS(basename, , AC_CHECK_LIB(gen, basename, + AC_DEFINE(HAVE_BASENAME) LIBS="$LIBS -lgen")) +AC_CHECK_FUNCS(getpid setlocale sigaction strftime strcasestr snprintf vsnprintf catopen catgets catclose) +AC_CHECK_LIB(nsl, t_open, LIBS="$LIBS -lnsl") +AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket") + +dnl Check for X headers and libraries +AC_PATH_X +AC_PATH_XTRA + +test x$no_x = "xyes" && AC_MSG_ERROR([Openbox requires the X Window System libraries and headers.]) + +test x$x_includes = "x" && x_includes="/usr/include" +test x$x_libraries = "x" && x_libraries="/usr/lib" + +CFLAGS="$CFLAGS $X_CFLAGS" +CXXFLAGS="$CXXFLAGS $X_CFLAGS" +LIBS="$LIBS $X_LIBS" +LDFLAGS="$LDFLAGS $LIBS $X_PRE_LIBS" + +dnl Check for required functions in -lX11 +AC_CHECK_LIB(X11, XOpenDisplay, + LIBS="$LIBS -lX11", + AC_MSG_ERROR([Could not find XOpenDisplay in -lX11.]) +) + +LIBS="$LIBS $X_EXTRA_LIBS" + +Xext_lib="" + +dnl Check for XShape extension support and proper library files. +SHAPE="" +AC_MSG_CHECKING([whether to build support for the XShape extension]) +AC_ARG_ENABLE( + shape, [ --enable-shape enable support of the XShape extension [default=yes]]) + +: ${enableval="yes"} +if test x$enableval = "xyes"; then + AC_MSG_RESULT([yes]) + AC_CHECK_LIB(Xext, XShapeCombineShape, + AC_MSG_CHECKING([for X11/extensions/shape.h]) + AC_TRY_LINK( +#include +#include +#include +, long foo = ShapeSet, + AC_MSG_RESULT([yes]) + SHAPE="-DSHAPE"; Xext_lib="-lXext", + AC_MSG_RESULT([no]) + ) + ) +else + AC_MSG_RESULT([no]) +fi +AC_SUBST(SHAPE) + +LIBS="$LIBS $Xext_lib" + +dnl Check for the Slit +SLIT="" +AC_MSG_CHECKING([whether to include the Slit]) +AC_ARG_ENABLE( + slit, [ --enable-slit include code for the Slit [default=yes]], + if test x$enableval = "xyes"; then + AC_MSG_RESULT([yes]) + SLIT="-DSLIT" + else + AC_MSG_RESULT([no]) + fi, + AC_MSG_RESULT([yes]) + SLIT="-DSLIT" +) +AC_SUBST(SLIT) + +dnl Check for ordered 8bpp dithering +ORDEREDPSEUDO="" +AC_MSG_CHECKING([whether to include Pseudocolor ordered dithering code]) +AC_ARG_ENABLE(ordered-pseudo, +[ --enable-ordered-pseudo include code for ordered pseudocolor (8bpp) + dithering [default=no]], + if test x$enableval = "xyes"; then + AC_MSG_RESULT([yes]) + ORDEREDPSEUDO="-DORDEREDPSEUDO" + else + AC_MSG_RESULT([no]) + fi, + AC_MSG_RESULT([no]) +) +AC_SUBST(ORDEREDPSEUDO) + +dnl Check for event clobbering +CLOBBER="" +AC_MSG_CHECKING([whether to intercept mouse events to clients]) +AC_ARG_ENABLE(clobber, +[ --enable-clobber intercept mouse events to clients when num lock + or scroll lock are on [default=yes]], + if test x$enableval = "xno"; then + AC_MSG_RESULT([no]) + CLOBBER="-DNOCLOBBER" + else + AC_MSG_RESULT([yes]) + fi, + AC_MSG_RESULT([no]) +) +AC_SUBST(CLOBBER) + +dnl Check whether to include debugging code +DEBUG="" +AC_MSG_CHECKING([whether to include verbose debugging code]) +AC_ARG_ENABLE(debug, + [ --enable-debug include verbose debugging code [default=no]], + if test x$enableval = "xyes"; then + AC_MSG_RESULT([yes]) + DEBUG="-DDEBUG -Wall -W" + else + AC_MSG_RESULT([no]) + fi, + AC_MSG_RESULT([no]) +) +AC_SUBST(DEBUG) + +dnl Check whether to include natural language support (i18n) +NLS="" +AC_MSG_CHECKING([whether to include NLS support]) +AC_ARG_ENABLE(nls, + [ --enable-nls include natural language support [default=yes]], + if test x$enableval = "xyes"; then + AC_MSG_RESULT([yes]) + NLS="-DNLS" + else + AC_MSG_RESULT([no]) + fi, + AC_MSG_RESULT([yes]) + NLS="-DNLS" +) +AC_SUBST(NLS) + +AC_CHECK_LIB(xpg4, setlocale, LIBS="$LIBS -lxpg4") + +AC_CHECK_PROGS(gencat_cmd, gencat) +if test x$gencat_cmd = "x"; then + NLS="" +fi + + +dnl Check for new timed pixmap cache +TIMEDCACHE="" +AC_MSG_CHECKING([whether to use the new timed pixmap cache]) +AC_ARG_ENABLE( + timed-cache, +[ --enable-timed-cache use new timed pixmap cache [default=yes]], + if test x$enableval = "xyes"; then + AC_MSG_RESULT([yes]) + TIMEDCACHE="-DTIMEDCACHE" + else + AC_MSG_RESULT([no]) + fi, + AC_MSG_RESULT([yes]) + TIMEDCACHE="-DTIMEDCACHE" +) +AC_SUBST(TIMEDCACHE) + +dnl Determine the return type of signal handlers +AC_TYPE_SIGNAL + +dnl Determine if maintainer portions of the Makefiles should be included. +AM_MAINTAINER_MODE + +dnl Print results +AC_MSG_RESULT([]) +AC_MSG_RESULT([ $PACKAGE version $VERSION configured successfully.]) +AC_MSG_RESULT([]) +AC_MSG_RESULT([Using '$prefix' for installation.]) +AC_MSG_RESULT([Using '$CXX' for C++ compiler.]) +AC_MSG_RESULT([Building with '$CXXFLAGS' for C++ compiler flags.]) +AC_MSG_RESULT([Building with '$LIBS' for linker flags.]) +AC_MSG_RESULT([]) + +dnl Output files +AM_CONFIG_HEADER(config.h) +AC_OUTPUT(Makefile +src/Makefile +util/Makefile +data/Makefile +data/styles/Makefile +doc/Makefile +nls/Makefile +nls/C/Makefile +nls/da_DK/Makefile +nls/de_DE/Makefile +nls/es_ES/Makefile +nls/et_EE/Makefile +nls/fr_FR/Makefile +nls/hu_HU/Makefile +nls/it_IT/Makefile +nls/ja_JP/Makefile +nls/nl_NL/Makefile +nls/pt_BR/Makefile +nls/ru_RU/Makefile +nls/sl_SI/Makefile +nls/sv_SE/Makefile +nls/tr_TR/Makefile +nls/uk_UA/Makefile +nls/zh_CN/Makefile +nls/zh_TW/Makefile +version.h) diff --git a/configure.in b/configure.in deleted file mode 100644 index 29e5cf80..00000000 --- a/configure.in +++ /dev/null @@ -1,267 +0,0 @@ -dnl configure.in for Openbox -dnl Initialize autoconf and automake -AC_INIT(src/openbox.cc) -AM_INIT_AUTOMAKE(openbox,2.0.0,no-define) - -dnl Determine default prefix -test x$prefix = "xNONE" && prefix="$ac_default_prefix" - -dnl Check for various flavors of UNIX(r) -dnl AC_AIX -dnl AC_ISC_POSIX - -dnl Locate required external software -AC_PROG_CC -AC_PROG_CXX -AC_PROG_INSTALL - -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 for system header files -AC_CHECK_HEADERS(ctype.h dirent.h fcntl.h libgen.h locale.h nl_types.h process.h signal.h stdarg.h stdio.h string.h stdlib.h time.h unistd.h sys/param.h sys/select.h sys/signal.h sys/stat.h sys/time.h sys/types.h sys/wait.h) -AC_HEADER_TIME - -dnl Check for existance of basename(), setlocale() and strftime() -AC_CHECK_FUNCS(basename, , AC_CHECK_LIB(gen, basename, - AC_DEFINE(HAVE_BASENAME) LIBS="$LIBS -lgen")) -AC_CHECK_FUNCS(getpid setlocale sigaction strftime strcasestr snprintf vsnprintf catopen catgets catclose) -AC_CHECK_LIB(nsl, t_open, LIBS="$LIBS -lnsl") -AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket") - -dnl Check for X headers and libraries -AC_PATH_X -AC_PATH_XTRA - -test x$no_x = "xyes" && AC_MSG_ERROR([Openbox requires the X Window System libraries and headers.]) - -test x$x_includes = "x" && x_includes="/usr/include" -test x$x_libraries = "x" && x_libraries="/usr/lib" - -CFLAGS="$CFLAGS $X_CFLAGS" -CXXFLAGS="$CXXFLAGS $X_CFLAGS" -LIBS="$LIBS $X_LIBS" -LDFLAGS="$LDFLAGS $LIBS $X_PRE_LIBS" - -dnl Check for required functions in -lX11 -AC_CHECK_LIB(X11, XOpenDisplay, - LIBS="$LIBS -lX11", - AC_MSG_ERROR([Could not find XOpenDisplay in -lX11.]) -) - -LIBS="$LIBS $X_EXTRA_LIBS" - -Xext_lib="" - -dnl Check for XShape extension support and proper library files. -SHAPE="" -AC_MSG_CHECKING([whether to build support for the XShape extension]) -AC_ARG_ENABLE( - shape, [ --enable-shape enable support of the XShape extension [default=yes]]) - -: ${enableval="yes"} -if test x$enableval = "xyes"; then - AC_MSG_RESULT([yes]) - AC_CHECK_LIB(Xext, XShapeCombineShape, - AC_MSG_CHECKING([for X11/extensions/shape.h]) - AC_TRY_LINK( -#include -#include -#include -, long foo = ShapeSet, - AC_MSG_RESULT([yes]) - SHAPE="-DSHAPE"; Xext_lib="-lXext", - AC_MSG_RESULT([no]) - ) - ) -else - AC_MSG_RESULT([no]) -fi -AC_SUBST(SHAPE) - -LIBS="$LIBS $Xext_lib" - -dnl Check for the Slit -SLIT="" -AC_MSG_CHECKING([whether to include the Slit]) -AC_ARG_ENABLE( - slit, [ --enable-slit include code for the Slit [default=yes]], - if test x$enableval = "xyes"; then - AC_MSG_RESULT([yes]) - SLIT="-DSLIT" - else - AC_MSG_RESULT([no]) - fi, - AC_MSG_RESULT([yes]) - SLIT="-DSLIT" -) -AC_SUBST(SLIT) - -dnl Check for the new WM Spec -NEWWMSPEC="" -AC_MSG_CHECKING([whether to include the new WM Spec (DOES NOTHING)]) -AC_ARG_ENABLE( - newspec, -[ --enable-newspec include code for the new WM Spec (DOES NOTHING) - [default=no]], - if test x$enableval = "xyes"; then - AC_MSG_RESULT([yes]) - NEWWMSPEC="-DNEWWMSPEC" - else - AC_MSG_RESULT([no]) - fi, - AC_MSG_RESULT([no]) -) -AC_SUBST(NEWWMSPEC) - - -dnl Check for Interlacing -INTERLACE="" -AC_MSG_CHECKING([whether to include interlacing image code]) -AC_ARG_ENABLE( - interlace, [ --enable-interlace include code for image interlacing [default=yes]], - if test x$enableval = "xyes"; then - AC_MSG_RESULT([yes]) - INTERLACE="-DINTERLACE" - else - AC_MSG_RESULT([no]) - fi, - AC_MSG_RESULT([yes]) - INTERLACE="-DINTERLACE" -) -AC_SUBST(INTERLACE) - -dnl Check for ordered 8bpp dithering -ORDEREDPSEUDO="" -AC_MSG_CHECKING([whether to include Pseudocolor ordered dithering code]) -AC_ARG_ENABLE(ordered-pseudo, -[ --enable-ordered-pseudo include code for ordered pseudocolor (8bpp) - dithering [default=no]], - if test x$enableval = "xyes"; then - AC_MSG_RESULT([yes]) - ORDEREDPSEUDO="-DORDEREDPSEUDO" - else - AC_MSG_RESULT([no]) - fi, - AC_MSG_RESULT([no]) -) -AC_SUBST(ORDEREDPSEUDO) - -dnl Check for event clobbering -CLOBBER="" -AC_MSG_CHECKING([whether to intercept mouse events to clients]) -AC_ARG_ENABLE(clobber, -[ --enable-clobber intercept mouse events to clients when num lock - or scroll lock are on [default=yes]], - if test x$enableval = "xno"; then - AC_MSG_RESULT([no]) - CLOBBER="-DNOCLOBBER" - else - AC_MSG_RESULT([yes]) - fi, - AC_MSG_RESULT([no]) -) -AC_SUBST(CLOBBER) - -dnl Check whether to include debugging code -DEBUG="" -AC_MSG_CHECKING([whether to include verbose debugging code]) -AC_ARG_ENABLE(debug, - [ --enable-debug include verbose debugging code [default=no]], - if test x$enableval = "xyes"; then - AC_MSG_RESULT([yes]) - DEBUG="-DDEBUG -Wall -W" - else - AC_MSG_RESULT([no]) - fi, - AC_MSG_RESULT([no]) -) -AC_SUBST(DEBUG) - -dnl Check whether to include natural language support (i18n) -NLS="" -AC_MSG_CHECKING([whether to include NLS support]) -AC_ARG_ENABLE(nls, - [ --enable-nls include natural language support [default=yes]], - if test x$enableval = "xyes"; then - AC_MSG_RESULT([yes]) - NLS="-DNLS" - else - AC_MSG_RESULT([no]) - fi, - AC_MSG_RESULT([yes]) - NLS="-DNLS" -) -AC_SUBST(NLS) - -AC_CHECK_LIB(xpg4, setlocale, LIBS="$LIBS -lxpg4") - -AC_CHECK_PROGS(gencat_cmd, gencat) -if test x$gencat_cmd = "x"; then - NLS="" -fi - - -dnl Check for new timed pixmap cache -TIMEDCACHE="" -AC_MSG_CHECKING([whether to use the new timed pixmap cache]) -AC_ARG_ENABLE( - timed-cache, -[ --enable-timed-cache use new timed pixmap cache [default=yes]], - if test x$enableval = "xyes"; then - AC_MSG_RESULT([yes]) - TIMEDCACHE="-DTIMEDCACHE" - else - AC_MSG_RESULT([no]) - fi, - AC_MSG_RESULT([yes]) - TIMEDCACHE="-DTIMEDCACHE" -) -AC_SUBST(TIMEDCACHE) - -dnl Determine the return type of signal handlers -AC_TYPE_SIGNAL - -dnl Determine if maintainer portions of the Makefiles should be included. -AM_MAINTAINER_MODE - -dnl Print results -AC_MSG_RESULT([]) -AC_MSG_RESULT([ $PACKAGE version $VERSION configured successfully.]) -AC_MSG_RESULT([]) -AC_MSG_RESULT([Using '$prefix' for installation.]) -AC_MSG_RESULT([Using '$CXX' for C++ compiler.]) -AC_MSG_RESULT([Building with '$CXXFLAGS' for C++ compiler flags.]) -AC_MSG_RESULT([Building with '$LIBS' for linker flags.]) -AC_MSG_RESULT([]) - -dnl Output files -AM_CONFIG_HEADER(config.h) -AC_OUTPUT(Makefile -src/Makefile -util/Makefile -data/Makefile -data/styles/Makefile -doc/Makefile -dnl doc/ja_JP/Makefile -dnl doc/nl_NL/Makefile -dnl doc/sl_SI/Makefile -nls/Makefile -nls/C/Makefile -nls/da_DK/Makefile -nls/de_DE/Makefile -nls/es_ES/Makefile -nls/et_EE/Makefile -nls/fr_FR/Makefile -nls/it_IT/Makefile -nls/ja_JP/Makefile -nls/nl_NL/Makefile -nls/pt_BR/Makefile -nls/ru_RU/Makefile -nls/sl_SI/Makefile -nls/sv_SE/Makefile -nls/tr_TR/Makefile -nls/zh_CN/Makefile -version.h) diff --git a/stamp-h.in b/stamp-h.in deleted file mode 100644 index 9788f702..00000000 --- a/stamp-h.in +++ /dev/null @@ -1 +0,0 @@ -timestamp -- cgit v1.2.3