summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <sandmann@daimi.au.dk>2005-07-11 19:27:55 +0000
committerSøren Sandmann Pedersen <sandmann@daimi.au.dk>2005-07-11 19:27:55 +0000
commit4029039f28642f78bf2f68e7e9908d183cf5c644 (patch)
treeb5ee766b7637e9d5b8f031359c6686e340ebfccf
parent9c6438171706f3cec7473968a993e84092ce255b (diff)
Build system for xphelloworld
-rw-r--r--AUTHORS0
-rw-r--r--COPYING0
-rw-r--r--ChangeLog0
-rw-r--r--INSTALL0
-rw-r--r--Makefile.am28
-rw-r--r--NEWS0
-rw-r--r--README0
-rwxr-xr-xautogen.sh13
-rw-r--r--configure.ac116
-rw-r--r--xpawhelloworld/Makefile.am31
-rw-r--r--xphelloworld/Makefile.am32
-rw-r--r--xpsimplehelloworld/Makefile.am32
-rw-r--r--xpxmhelloworld/Makefile.am32
-rw-r--r--xpxthelloworld/Makefile.am32
14 files changed, 316 insertions, 0 deletions
diff --git a/AUTHORS b/AUTHORS
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/AUTHORS
diff --git a/COPYING b/COPYING
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/COPYING
diff --git a/ChangeLog b/ChangeLog
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/ChangeLog
diff --git a/INSTALL b/INSTALL
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/INSTALL
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..9f7d128
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,28 @@
+#
+# Copyright 2005 Red Hat, Inc.
+#
+# Permission to use, copy, modify, distribute, and sell this software and its
+# documentation for any purpose is hereby granted without fee, provided that
+# the above copyright notice appear in all copies and that both that
+# copyright notice and this permission notice appear in supporting
+# documentation, and that the name of Red Hat not be used in
+# advertising or publicity pertaining to distribution of the software without
+# specific, written prior permission. Red Hat makes no
+# representations about the suitability of this software for any purpose. It
+# is provided "as is" without express or implied warranty.
+#
+# RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+# EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+# PERFORMANCE OF THIS SOFTWARE.
+
+if BUILD_MOTIFAPPS
+MOTIFAPPS=xpawhelloworld xpxmhelloworld
+else
+MOTIFAPPS=
+endif
+
+SUBDIRS = $(MOTIFAPPS) xphelloworld xpsimplehelloworld xpxthelloworld
diff --git a/NEWS b/NEWS
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/NEWS
diff --git a/README b/README
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/README
diff --git a/autogen.sh b/autogen.sh
new file mode 100755
index 0000000..e81f989
--- /dev/null
+++ b/autogen.sh
@@ -0,0 +1,13 @@
+#! /bin/sh
+
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+
+ORIGDIR=`pwd`
+cd $srcdir
+
+autoreconf -v --install || exit 1
+cd $ORIGDIR || exit $?
+
+$srcdir/configure --enable-maintainer-mode "$@"
+
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..9505385
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,116 @@
+
+dnl Copyright 2005 Red Hat, Inc.
+dnl
+dnl Permission to use, copy, modify, distribute, and sell this software and its
+dnl documentation for any purpose is hereby granted without fee, provided that
+dnl the above copyright notice appear in all copies and that both that
+dnl copyright notice and this permission notice appear in supporting
+dnl documentation, and that the name of Red Hat not be used in
+dnl advertising or publicity pertaining to distribution of the software without
+dnl specific, written prior permission. Red Hat makes no
+dnl representations about the suitability of this software for any purpose. It
+dnl is provided "as is" without express or implied warranty.
+dnl
+dnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+dnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+dnl EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+dnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+dnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+dnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+dnl PERFORMANCE OF THIS SOFTWARE.
+dnl
+dnl Process this file with autoconf to create configure.
+
+AC_PREREQ([2.57])
+AC_INIT(xphelloworld,[7.0], [xorg@freedesktop.org],xphelloworld)
+AM_INIT_AUTOMAKE([dist-bzip2])
+AM_MAINTAINER_MODE
+
+AM_CONFIG_HEADER(config.h)
+
+AC_PROG_CC
+AC_PROG_INSTALL
+
+# Checking for Motif
+#
+build_motifapps=yes
+
+AC_ARG_WITH(motif-libraries, [Directory containing the Motif libraries],
+ motif_libs=$withval)
+AC_ARG_WITH(motif-includes, [Directory containing the Xm direcotry with the Motif header files (eg. /usr/X11R6/include)],
+ motif_includes=$withval)
+
+if test $with_motif_libraries = no; then
+ echo no motif - commandline $with_motif_libraries
+ build_motifapps=no
+fi
+
+if [[ -z $motif_libs ]] ; then
+ PKG_CHECK_MODULES(X11, x11)
+ AC_CHECK_LIB(Xm, XmFontListCreate, build_motifapps=no, [$X11])
+ echo motif library not found
+fi
+
+if test x$build_motifapps = xyes ; then
+ if [[ ! -z $motif_includes ]] ; then
+ MOTIF_CFLAGS=-I$motif_includes
+ fi
+
+ if [[ ! -z $motif_libs ]] ; then
+ MOTIF_LIBS="-L$motif_libs -lXm"
+ else
+ MOTIF_LIBS="-lXm"
+ fi
+fi
+
+echo build: Build Motif Applications: $build_motifapps
+
+AM_CONDITIONAL([BUILD_MOTIFAPPS], test "$build_motifapps" = yes)
+
+# xpawhelloworld
+#
+if test x$build_motifapps = xyes ; then
+ PKG_CHECK_MODULES(XPAWHELLOWORLD, xaw8 xprintutil)
+ XPAWHELLOWORLD_CFLAGS="$XPAWHELLOWORLD_CFLAGS $MOTIF_CFLAGS"
+ XPAWHELLOWORLD_LIBS="$XPAWHELLOWORLD_LIBS $MOTIF_LIBS"
+fi
+
+AC_SUBST(XPAWHELLOWORLD_CFLAGS)
+AC_SUBST(XPAWHELLOWORLD_LIBS)
+
+#
+# xphelloworld
+#
+
+PKG_CHECK_MODULES(XPHELLOWORLD, xprintapputil xprintutil)
+
+#
+# xpsimplehelloworld
+#
+
+PKG_CHECK_MODULES(XPSIMPLEHELLOWORLD, xprintutil)
+
+#
+# xpxmhellowolrd
+#
+
+if test x$build_motifapps = xyes ; then
+ PKG_CHECK_MODULES(XPXMHELLOWORLD, xprintutil xt)
+ XPXMHELLOWORLD_CFLAGS="$XPXMHELLOWORLD_CFLAGS $MOTIF_CFLAGS"
+ XPXMHELLOWORLD_LIBS="$XPXMHELLOWORLD_LIBS $MOTIF_LIBS"
+fi
+
+#
+# xpxthelloworld
+#
+
+PKG_CHECK_MODULES(XPXTHELLOWORLD, xaw8 xprintutil xt)
+
+AC_OUTPUT([
+ Makefile
+ xpawhelloworld/Makefile
+ xphelloworld/Makefile
+ xpsimplehelloworld/Makefile
+ xpxmhelloworld/Makefile
+ xpxthelloworld/Makefile
+])
diff --git a/xpawhelloworld/Makefile.am b/xpawhelloworld/Makefile.am
new file mode 100644
index 0000000..ea9aa26
--- /dev/null
+++ b/xpawhelloworld/Makefile.am
@@ -0,0 +1,31 @@
+#
+# Copyright 2005 Red Hat, Inc.
+#
+# Permission to use, copy, modify, distribute, and sell this software and its
+# documentation for any purpose is hereby granted without fee, provided that
+# the above copyright notice appear in all copies and that both that
+# copyright notice and this permission notice appear in supporting
+# documentation, and that the name of Red Hat not be used in
+# advertising or publicity pertaining to distribution of the software without
+# specific, written prior permission. Red Hat makes no
+# representations about the suitability of this software for any purpose. It
+# is provided "as is" without express or implied warranty.
+#
+# RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+# EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+# PERFORMANCE OF THIS SOFTWARE.
+
+bin_PROGRAMS = xpawhelloworld
+
+xpawhelloworld_CFLAGS = $(XPAWHELLOWORLD_CFLAGS)
+xpawhelloworld_LDADD = $(XPAWHELLOWORLD_LIBS)
+
+xpawhelloworld_SOURCES = \
+ xpawhelloworld.c
+
+dist_man_MANS = \
+ xpawhelloworld.man
diff --git a/xphelloworld/Makefile.am b/xphelloworld/Makefile.am
new file mode 100644
index 0000000..8acddf8
--- /dev/null
+++ b/xphelloworld/Makefile.am
@@ -0,0 +1,32 @@
+#
+# Copyright 2005 Red Hat, Inc.
+#
+# Permission to use, copy, modify, distribute, and sell this software and its
+# documentation for any purpose is hereby granted without fee, provided that
+# the above copyright notice appear in all copies and that both that
+# copyright notice and this permission notice appear in supporting
+# documentation, and that the name of Red Hat not be used in
+# advertising or publicity pertaining to distribution of the software without
+# specific, written prior permission. Red Hat makes no
+# representations about the suitability of this software for any purpose. It
+# is provided "as is" without express or implied warranty.
+#
+# RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+# EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+# PERFORMANCE OF THIS SOFTWARE.
+
+bin_PROGRAMS = xphelloworld
+
+xphelloworld_CFLAGS = $(XPHELLOWORLD_CFLAGS)
+xphelloworld_LDADD = $(XPHELLOWORLD_LIBS)
+
+xphelloworld_SOURCES = \
+ xphelloworld.c
+
+dist_man_MANS = \
+ xphelloworld.man
+
diff --git a/xpsimplehelloworld/Makefile.am b/xpsimplehelloworld/Makefile.am
new file mode 100644
index 0000000..751f6ca
--- /dev/null
+++ b/xpsimplehelloworld/Makefile.am
@@ -0,0 +1,32 @@
+#
+# Copyright 2005 Red Hat, Inc.
+#
+# Permission to use, copy, modify, distribute, and sell this software and its
+# documentation for any purpose is hereby granted without fee, provided that
+# the above copyright notice appear in all copies and that both that
+# copyright notice and this permission notice appear in supporting
+# documentation, and that the name of Red Hat not be used in
+# advertising or publicity pertaining to distribution of the software without
+# specific, written prior permission. Red Hat makes no
+# representations about the suitability of this software for any purpose. It
+# is provided "as is" without express or implied warranty.
+#
+# RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+# EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+# PERFORMANCE OF THIS SOFTWARE.
+
+bin_PROGRAMS = xpsimplehelloworld
+
+xpsimplehelloworld_CFLAGS = $(XPSIMPLEHELLOWORLD_CFLAGS)
+xpsimplehelloworld_LDADD = $(XPSIMPLEHELLOWORLD_LIBS)
+
+xpsimplehelloworld_SOURCES = \
+ xpsimplehelloworld.c
+
+dist_man_MANS = \
+ xpsimplehelloworld.man
+
diff --git a/xpxmhelloworld/Makefile.am b/xpxmhelloworld/Makefile.am
new file mode 100644
index 0000000..189251b
--- /dev/null
+++ b/xpxmhelloworld/Makefile.am
@@ -0,0 +1,32 @@
+#
+# Copyright 2005 Red Hat, Inc.
+#
+# Permission to use, copy, modify, distribute, and sell this software and its
+# documentation for any purpose is hereby granted without fee, provided that
+# the above copyright notice appear in all copies and that both that
+# copyright notice and this permission notice appear in supporting
+# documentation, and that the name of Red Hat not be used in
+# advertising or publicity pertaining to distribution of the software without
+# specific, written prior permission. Red Hat makes no
+# representations about the suitability of this software for any purpose. It
+# is provided "as is" without express or implied warranty.
+#
+# RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+# EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+# PERFORMANCE OF THIS SOFTWARE.
+
+bin_PROGRAMS = xpxmhelloworld
+
+xpxmhelloworld_CFLAGS = $(XPXMHELLOWORLD_CFLAGS)
+xpxmhelloworld_LDADD = $(XPXMHELLOWORLD_LIBS)
+
+xpxmhelloworld_SOURCES = \
+ xpxmhelloworld.c
+
+dist_man_MANS = \
+ xpxmhelloworld.man
+
diff --git a/xpxthelloworld/Makefile.am b/xpxthelloworld/Makefile.am
new file mode 100644
index 0000000..1da1b43
--- /dev/null
+++ b/xpxthelloworld/Makefile.am
@@ -0,0 +1,32 @@
+#
+# Copyright 2005 Red Hat, Inc.
+#
+# Permission to use, copy, modify, distribute, and sell this software and its
+# documentation for any purpose is hereby granted without fee, provided that
+# the above copyright notice appear in all copies and that both that
+# copyright notice and this permission notice appear in supporting
+# documentation, and that the name of Red Hat not be used in
+# advertising or publicity pertaining to distribution of the software without
+# specific, written prior permission. Red Hat makes no
+# representations about the suitability of this software for any purpose. It
+# is provided "as is" without express or implied warranty.
+#
+# RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+# EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+# PERFORMANCE OF THIS SOFTWARE.
+
+bin_PROGRAMS = xpxthelloworld
+
+xpxthelloworld_CFLAGS = $(XPXTHELLOWORLD_CFLAGS)
+xpxthelloworld_LDADD = $(XPXTHELLOWORLD_LIBS)
+
+xpxthelloworld_SOURCES = \
+ xpxthelloworld.c
+
+dist_man_MANS = \
+ xpxthelloworld.man
+