1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-04 21:04:18 +01:00

Fix out-of-tree builds

- The throwing out of autogen.sh in favor of autoreconf comes from
  http://www.gnu.org/software/automake/manual/autoconf/autoreconf-Invocation.html#autoreconf-Invocation
- 'think that instead of the exit, some better way should be put in
  to control whether or not to automatically run configure. Or maybe
  just don't even run it.
This commit is contained in:
Tamas TEVESZ
2010-04-08 21:38:03 +02:00
committed by Carlos R. Mafra
parent e4fedca2bb
commit 6b5cfc887a
10 changed files with 12 additions and 57 deletions

View File

@@ -28,7 +28,7 @@ server_LDADD = $(top_builddir)/WINGs/libWUtil.la @LIBRARY_SEARCH_PATH@ @INTLIBS@
INCLUDES = -I$(top_srcdir)/WINGs -I$(top_srcdir)/wrlib -I$(top_srcdir)/src \
-DRESOURCE_PATH=\"$(datadir)/WINGs\" @HEADER_SEARCH_PATH@ -DDEBUG
LIBTOOL = $(QUIET) $(SHELL) $(top_srcdir)/libtool $(LIBTOOL_ARG)
LIBTOOL = $(QUIET) $(SHELL) $(top_builddir)/libtool $(LIBTOOL_ARG)
.c.o:
$(QUIET)$(COMPILE) -c $<

View File

@@ -35,7 +35,7 @@ LDADD= $(top_builddir)/WINGs/libWINGs.la $(top_builddir)/wrlib/libwraster.la \
test_LDADD = wtableview.o wtabledelegates.o $(LDADD)
LIBTOOL = $(SHELL) $(top_srcdir)/libtool $(LIBTOOL_ARG)
LIBTOOL = $(SHELL) $(top_builddir)/libtool $(LIBTOOL_ARG)
.c.o:
$(QUIET)$(COMPILE) -c $<

View File

@@ -4,7 +4,7 @@ AUTOMAKE_OPTIONS = no-dependencies
SUBDIRS = WINGs . po Documentation Resources
LIBTOOL = $(SHELL) $(top_srcdir)/libtool $(LIBTOOL_ARG)
LIBTOOL = $(SHELL) $(top_builddir)/libtool $(LIBTOOL_ARG)
libWINGs_a_AR = $(QUIET_AR) $(AR) $(ARFLAGS)

View File

@@ -20,7 +20,7 @@ INCLUDES = -I$(top_srcdir)/WINGs -I$(top_srcdir)/wrlib -I$(top_srcdir)/src \
-DRESOURCE_PATH=\"$(datadir)/WINGs\" @XFTFLAGS@ @HEADER_SEARCH_PATH@ \
-DDEBUG
LIBTOOL = $(QUIET) $(SHELL) $(top_srcdir)/libtool $(LIBTOOL_ARG)
LIBTOOL = $(QUIET) $(SHELL) $(top_builddir)/libtool $(LIBTOOL_ARG)
.c.o:
$(QUIET)$(COMPILE) -c $<

View File

@@ -57,7 +57,7 @@ WPrefs_LDADD = \
@XFTLIBS@ \
@INTLIBS@
LIBTOOL = $(QUIET) $(SHELL) $(top_srcdir)/libtool $(LIBTOOL_ARG)
LIBTOOL = $(QUIET) $(SHELL) $(top_builddir)/libtool $(LIBTOOL_ARG)
.c.o:
$(QUIET)$(COMPILE) -c $<

View File

@@ -1,48 +1,8 @@
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
DIE=0
autoreconf -vfi -I m4
echo "Generating configuration files for WindowMaker, please wait...."
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have autoconf installed to compile WindowMaker."
echo "Download the appropriate package for your distribution,"
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
DIE=1
}
(libtool --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have libtool installed to compile WindowMaker."
echo "Download the appropriate package for your distribution,"
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
DIE=1
}
(automake --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have automake installed to compile WindowMaker."
echo "Download the appropriate package for your distribution,"
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
DIE=1
}
if test "$DIE" -eq 1; then
exit 1
fi
echo " libtoolize --copy --force --automake"
libtoolize --copy --force --automake
echo " aclocal -I m4 $ACLOCAL_FLAGS"
aclocal -I m4 $ACLOCAL_FLAGS
echo " autoheader"
autoheader
echo " automake --add-missing --gnu --include-deps"
automake --add-missing --gnu --include-deps
echo " autoconf"
autoconf
exit 0
if [ -x config.status -a -z "$*" ]; then
./config.status --recheck

View File

@@ -14,11 +14,8 @@ dnl
AC_INIT(src/WindowMaker.h)
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE(WindowMaker, 0.94.0-crm)
AC_PROG_LIBTOOL
AM_CONFIG_HEADER(src/config.h)
@@ -31,11 +28,9 @@ dnl Checks for programs.
dnl ===================
AC_ISC_POSIX
AC_PROG_CC
dnl AC_PROG_MAKE_SET -- already done by AM_INIT_AUTOMAKE
#AC_PROG_RANLIB
dnl AC_PROG_INSTALL -- already done by AM_INIT_AUTOMAKE
AC_PROG_LN_S
AC_PROG_GCC_TRADITIONAL
AC_PROG_LIBTOOL
AX_CFLAGS_GCC_OPTION(-Wall)
AX_CFLAGS_GCC_OPTION(-Wextra)

View File

@@ -120,7 +120,7 @@ wmaker_LDADD = \
@XLIBS@ \
@INTLIBS@
LIBTOOL = $(SHELL) $(top_srcdir)/libtool $(LIBTOOL_ARG)
LIBTOOL = $(SHELL) $(top_builddir)/libtool $(LIBTOOL_ARG)
.c.o:
$(QUIET)$(COMPILE) -c $<

View File

@@ -73,7 +73,7 @@ wmaker.inst: $(srcdir)/wmaker.inst.in ./Makefile
chmod 755 wmaker.inst
LIBTOOL = $(SHELL) $(top_srcdir)/libtool $(LIBTOOL_ARG)
LIBTOOL = $(SHELL) $(top_builddir)/libtool $(LIBTOOL_ARG)
.c.o:
$(QUIET)$(COMPILE) -c $<

View File

@@ -8,7 +8,7 @@ lib_LTLIBRARIES = libwraster.la
libwraster_la_LDFLAGS = -version-info 4:0:1
LIBTOOL = $(QUIET) $(SHELL) $(top_srcdir)/libtool $(LIBTOOL_ARG)
LIBTOOL = $(QUIET) $(SHELL) $(top_builddir)/libtool $(LIBTOOL_ARG)
bin_SCRIPTS = get-wraster-flags