grim/guifications3
Clone
Summary
Browse
Changes
Graph
kill this branch since it still uses the old mtn rfqdn branch names and it's very out of date
org.guifications.gf3.feed_rewrite
2009-12-06, Gary Kramlich
1365e67470a8
kill this branch since it still uses the old mtn rfqdn branch names and it's very out of date
dnl
Process
this
file
with
autoconf
to
create
configure
.
dnl
################################################################
dnl
#
Initialize
autoconf
dnl
################################################################
AC_INIT
(
gflib
-
ui
,
3.0.0
mtn
,
guifications
-
devel
@lists
.
sourceforge
.
net
)
AC_PREREQ
(
2.50
)
AC_CANONICAL_SYSTEM
AC_CONFIG_SRCDIR
(
config
.
h
.
in
)
AC_COPYRIGHT
(
[
Copyright 2005 Gary Kramlich
]
)
dnl
################################################################
dnl
#
Version
information
dnl
################################################################
GFLIB_UI_MAJOR_VERSION
=
3
GFLIB_UI_MINOR_VERSION
=
0
GFLIB_UI_MICRO_VERSION
=
0
GFLIB_UI_DEVEL_VERSION
=
0
GFLIB_UI_VERSION
=
$
GFLIB_UI_MAJOR_VERSION
.
$
GFLIB_UI_MINOR_VERSION
.
$
GFLIB_UI_MICRO_VERSION
if
test
"x$GFLIB_UI_DEVEL_VERSION"
!=
"x0"
;
then
if
test
"x$GFLIB_UI_MICRO_VERSION"
=
"x0"
;
then
GFLIB_UI_MICRO_VERSION
=
$
GFLIB_UI_DEVEL_VERSION
GFLIB_UI_VERSION
=
$
GFLIB_UI_MAJOR_VERSION
.
$
GFLIB_UI_MINOR_VERSION
.
$
GFLIB_UI_MICRO_VERSION
else
GFLIB_UI_VERSION
=
$
GFLIB_UI_VERSION
.
$
GFLIB_UI_DEVEL_VERSION
fi
fi
AC_DEFINE_UNQUOTED
(
GFLIB_UI_MAJOR_VERSION
,
$
GFLIB_UI_MAJOR_VERSION
,
[
gflib-ui major version.
]
)
AC_DEFINE_UNQUOTED
(
GFLIB_UI_MINOR_VERSION
,
$
GFLIB_UI_MINOR_VERSION
,
[
gflib-ui minor version.
]
)
AC_DEFINE_UNQUOTED
(
GFLIB_UI_MICRO_VERSION
,
$
GFLIB_UI_MICRO_VERSION
,
[
gflib-ui micro version.
]
)
AC_DEFINE_UNQUOTED
(
GFLIB_UI_VERSION
,
$
GFLIB_UI_VERSION
,
[
gflib-ui version
]
)
AC_DEFINE_UNQUOTED
(
GFLIB_UI_VERSION_S
,
"$GFLIB_UI_VERSION"
,
[
gflib-ui version string
]
)
dnl
################################################################
dnl
#
libtool
versioning
dnl
################################################################
dnl
#
dnl
#
+
1
:
0
:
+
1
==
new
interface
that
does
not
break
old
one
.
dnl
#
+
1
:
0
:
0
==
removed
an
interface
.
Breaks
old
apps
.
dnl
#
?
:
+
1
:
?
==
internal
changes
that
doesn
't break anything.
dnl #
dnl # CURRENT : REVISION : AGE
dnl #
LT_CURRENT=0
LT_REVISION=0
LT_AGE=0
LT_RELEASE=$GFLIB_UI_MAJOR_VERSION.$GFLIB_UI_MINOR_VERSION.$GFLIB_UI_MICRO_VERSION
AC_SUBST(LT_RELEASE)
AC_SUBST(LT_CURRENT)
AC_SUBST(LT_REVISION)
AC_SUBST(LT_AGE)
dnl ################################################################
dnl # Initialize automake
dnl ################################################################
AM_INIT_AUTOMAKE([foreign dist-bzip2])
dnl ################################################################
dnl # Configuration file
dnl ################################################################
AM_CONFIG_HEADER(config.h)
dnl # Stash configure args
AC_DEFINE_UNQUOTED(CONFIG_ARGS, "$ac_configure_args", [configure arguments])
dnl #######################################################################
dnl # Setup libtool
dnl #######################################################################
AM_PROG_LIBTOOL
LIBTOOL="$LIBTOOL --silent"
PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig:$HOME/lib/pkgconfig"
export PKG_CONFIG_PATH
dnl #######################################################################
dnl # I'
m
lazy
and
figured
config
.
h
is
the
best
place
for
this
;)
dnl
#######################################################################
AC_DEFINE_UNQUOTED
(
GFLIB_UI_WEBSITE
,
"http://guifications.org/"
,
[
gflib-gtk website
]
)
dnl
#######################################################################
dnl
#
Our
header
dnl
#######################################################################
AH_TOP
(
[
/* our header */
#ifndef CONFIG_H
#define CONFIG_H
]
)
AH_BOTTOM
(
[
#endif /* CONFIG_H */
]
)
dnl
#######################################################################
dnl
#
INTLTOOL
dnl
#######################################################################
AC_PROG_INTLTOOL
GETTEXT_PACKAGE
=
gflib
-
ui
AC_SUBST
(
GETTEXT_PACKAGE
)
AC_DEFINE_UNQUOTED
(
GETTEXT_PACKAGE
,
[
"$GETTEXT_PACKAGE"
]
,
[
Define the gettext package to be used
]
)
ALL_LINGUAS
=
""
AM_GLIB_GNU_GETTEXT
AC_OUTPUT_COMMANDS
(
[
case "$CONFIG_FILES" in *po-properties/Makefile.in*)
sed -e "/POTFILES =/r po-properties/POTFILES" po-properties/Makefile.in > po-properties/Makefile
esac
]
)
dnl
#######################################################################
dnl
#
Look
for
the
C
compiler
dnl
#######################################################################
CFLAGS_save
=
"$CFLAGS"
AC_PROG_CC
CFLAGS
=
"$CFLAGS_save"
AC_ARG_ENABLE
(
debug
,
[
--enable-debug compile with debugging support
]
,,
enable_debug
=
no
)
if
test
"x$enable_debug"
=
"xyes"
;
then
AC_DEFINE
(
DEBUG
,
1
,
[
Define if debugging is enabled.
]
)
fi
AC_ARG_ENABLE
(
deprecated
,
[
--disable-deprecated compile without deprecated API usage
]
,,
enable_deprecated
=
yes
)
if
test
"x$enable_deprecated"
=
no
;
then
DEBUG_CFLAGS
=
"$DEBUG_CFLAGS -DG_DISABLE_DEPRECATED"
fi
AC_SUBST
(
DEBUG_CFLAGS
)
if
test
"x$GCC"
=
"xyes"
;
then
CFLAGS
=
"$CFLAGS -Wall -g3"
fi
AC_SUBST
(
CFLAGS
)
AC_SUBST
(
DEBUG_CFLAGS
)
dnl
#######################################################################
dnl
#
check
for
gflib
dnl
#######################################################################
PKG_CHECK_MODULES
(
GFLIB
,
[
gflib
]
)
AC_SUBST
(
GFLIB_LIBS
)
AC_SUBST
(
GFLIB_CFLAGS
)
GFLIB_GENHEADER
=
`
pkg
-
config
--
variable
=
gflib_genheader
gflib
`
AC_SUBST
(
GFLIB_GENHEADER
)
dnl
#######################################################################
dnl
#
check
for
glib
and
other
glib
dependencies
dnl
#######################################################################
PKG_CHECK_MODULES
(
GLIB
,
[
glib-2.0 gobject-2.0 gmodule-2.0
]
)
AC_SUBST
(
GLIB_CFLAGS
)
AC_SUBST
(
GLIB_LIBS
)
dnl
#######################################################################
dnl
#
do
we
want
to
build
the
tests
?
dnl
#######################################################################
AC_ARG_ENABLE
(
tests
,
[
--enable-tests build test programs
]
,,
enable_tests
=
no
)
AM_CONDITIONAL
(
BUILD_TESTS
,
test
x
"$enable_tests"
=
x
"yes"
)
dnl
#######################################################################
dnl
#
gtk
-
doc
Stuff
dnl
#######################################################################
GTK_DOC_CHECK
(
[
1.0
]
)
dnl
#######################################################################
dnl
#
Finish
up
dnl
#######################################################################
AC_OUTPUT
(
[
Makefile
gflib-ui.pc
doc/Makefile
doc/gflib-ui/Makefile
gflib-ui/Makefile
po/Makefile.in
po-properties/Makefile.in
tests/Makefile
]
)
dnl
#######################################################################
dnl
#
Ouput
!!
dnl
#######################################################################
echo
;
echo
AC_PACKAGE_NAME
AC_PACKAGE_VERSION
Configuration
complete
echo
;
echo
Debugging
enabled
................
:
$
enable_debug
echo
Build
tests
......................
:
$
enable_tests
echo
;
echo
Type
make
to
compile
echo
;