1 dnl Process this file with autoconf to produce a configure script.
2 dnl Created by Anjuta application wizard.
6 AM_INIT_AUTOMAKE([1.7.9 foreign dist-bzip2 dist-zip])
7 AM_CONFIG_HEADER(config.h)
16 if test x"$CC_FOR_BUILD" = x; then
17 if test x"$cross_compiling" = x"yes"; then
18 AC_CHECK_PROGS(CC_FOR_BUILD, gcc, cc)
24 AC_SUBST(CC_FOR_BUILD)
26 # introduce the optional configure parameter for the path of libXXX.a
30 [try this for the hb-library prefix install directory]
36 if test $hb_PATHSET = 1 ; then
39 CXXFLAGS="$CXXFLAGS -I$with_hb/libhb"
40 CFLAGS="$CFLAGS -I$with_hb/libhb"
41 LDFLAGS="$LDFLAGS -L$with_hb/libhb -L$with_hb/contrib/lib"
42 AC_SUBST(HB_DIR, "$with_hb")
45 CXXFLAGS="$CXXFLAGS "'-I$(top_srcdir)/'"$with_hb/libhb"
46 CFLAGS="$CFLAGS "'-I$(top_srcdir)/'"$with_hb/libhb"
47 LDFLAGS="$LDFLAGS "'-L$(top_srcdir)/'"$with_hb/libhb "'-L$(top_srcdir)/'"$with_hb/contrib/lib"
48 AC_SUBST(HB_DIR, '$(top_srcdir)/'"$with_hb")
52 CXXFLAGS="$CXXFLAGS "'-I$(top_srcdir)/'"../libhb"
53 CFLAGS="$CFLAGS "'-I$(top_srcdir)/'"../libhb"
54 LDFLAGS="$LDFLAGS "'-L$(top_srcdir)/'"../libhb "'-L$(top_srcdir)/'"../contrib/lib"
55 AC_SUBST(HB_DIR, '$(top_srcdir)/'"..")
59 AS_HELP_STRING([--enable-dl], [enable libdl]),
60 use_libdl=yes, use_libdl=no)
63 AS_HELP_STRING([--enable-gst], [enable gstreamer on Win32]),
64 w32_gst=yes, w32_gst=no)
66 AC_ARG_ENABLE(update-checks,
67 AS_HELP_STRING([--disable-update-checks], [disable update checks]),
68 update_checks=no, update_checks=yes)
70 # overwrite global variable (used for Makefile generation)
71 AC_SUBST(GLOBALCXXFLAGS, $CXXFLAGS )
72 AC_SUBST(GLOBALLDFLAGS, $LDFLAGS )
76 dnl ***************************************************************************
77 dnl Internatinalization
78 dnl ***************************************************************************
80 AC_SUBST(GETTEXT_PACKAGE)
81 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
83 IT_PROG_INTLTOOL([0.35.0])
89 if test "x$w32_gst" = "xyes" ; then
90 GHB_PACKAGES="gtk+-2.0 >= 2.10 gthread-2.0 gstreamer-0.10 gstreamer-interfaces-0.10 gstreamer-video-0.10 gstreamer-pbutils-0.10 gio-2.0"
92 GHB_PACKAGES="gtk+-2.0 >= 2.10 gthread-2.0 gio-2.0"
97 GHB_PACKAGES="gtk+-2.0 >= 2.10 gthread-2.0 gstreamer-0.10 gstreamer-interfaces-0.10 gstreamer-video-0.10 gstreamer-pbutils-0.10 gio-2.0 libnotify gudev-1.0"
102 if test "x$w32_gst" = "xyes" -o "x$mingw_flag" != "xyes" ; then
103 CXXFLAGS="$CXXFLAGS -D_ENABLE_GST"
104 CFLAGS="$CFLAGS -D_ENABLE_GST"
108 if test "x$update_checks" = "xyes" ; then
109 PKG_CHECK_MODULES(OldWebKitGtk, WebKitGtk, old_webkit=yes, old_webkit=no)
110 if test "x$old_webkit" = "xyes" ; then
111 if test "x$mingw_flag" = "xno" ; then
112 GHB_PACKAGES="$GHB_PACKAGES WebKitGtk"
113 CXXFLAGS="$CXXFLAGS -D_OLD_WEBKIT"
114 CFLAGS="$CFLAGS -D_OLD_WEBKIT"
117 if test "x$mingw_flag" = "xno" ; then
118 GHB_PACKAGES="$GHB_PACKAGES webkit-1.0"
122 CFLAGS="$CFLAGS -D_NO_UPDATE_CHECK"
125 AM_CONDITIONAL([MINGW], [test "x$mingw_flag" = "xyes"])
127 PKG_CHECK_MODULES(GHB, [$GHB_PACKAGES])
129 AC_PATH_PROG(BUILD_PKG_CONFIG, pkg-config, no)
130 if test x"$BUILD_PKG_CONFIG" = x"no"; then
131 AC_MSG_ERROR([You need to install pkg-config])
134 GHB_TOOLS_CFLAGS=`$BUILD_PKG_CONFIG --cflags glib-2.0 gdk-pixbuf-2.0`
135 GHB_TOOLS_LIBS=`$BUILD_PKG_CONFIG --libs glib-2.0 gdk-pixbuf-2.0`
139 if test "x$use_libdl" = "xyes" ; then
140 GHB_LIBS="$GHB_LIBS -ldl"
145 AC_SUBST(GHB_TOOLS_CFLAGS)
146 AC_SUBST(GHB_TOOLS_LIBS)