More binary-bundling removal
[pdfmod:pdfmod.git] / configure.ac
1 dnl Warning: This is an automatically generated file, do not edit!
2 dnl Process this file with autoconf to produce a configure script.
3 AC_PREREQ([2.54])
4 AC_INIT([pdfmod], [0.5])
5 AM_INIT_AUTOMAKE([foreign dist-bzip2 tar-ustar])
6 AM_MAINTAINER_MODE
7 AC_SUBST([ACLOCAL_AMFLAGS], ["-I . \${ACLOCAL_FLAGS}"])
8
9 dnl pkg-config
10 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
11 if test "x$PKG_CONFIG" = "xno"; then
12         AC_MSG_ERROR([You need to install pkg-config])
13 fi
14
15 GNOME_DOC_INIT
16
17 AC_DEFUN([SHAMROCK_EXPAND_LIBDIR],
18 [       
19         expanded_libdir=`(
20                 case $prefix in 
21                         NONE) prefix=$ac_default_prefix ;; 
22                         *) ;; 
23                 esac
24                 case $exec_prefix in 
25                         NONE) exec_prefix=$prefix ;; 
26                         *) ;; 
27                 esac
28                 eval echo $libdir
29         )`
30         AC_SUBST(expanded_libdir)
31 ])
32
33 AC_DEFUN([SHAMROCK_EXPAND_BINDIR],
34 [
35         expanded_bindir=`(
36                 case $prefix in 
37                         NONE) prefix=$ac_default_prefix ;; 
38                         *) ;; 
39                 esac
40                 case $exec_prefix in 
41                         NONE) exec_prefix=$prefix ;; 
42                         *) ;; 
43                 esac
44                 eval echo $bindir
45         )`
46         AC_SUBST(expanded_bindir)
47 ])
48
49 AC_DEFUN([SHAMROCK_EXPAND_DATADIR],
50 [
51         case $prefix in
52                 NONE) prefix=$ac_default_prefix ;;
53                 *) ;;
54         esac
55
56         case $exec_prefix in
57                 NONE) exec_prefix=$prefix ;;
58                 *) ;;
59         esac
60
61         expanded_datadir=`(eval echo $datadir)`
62         expanded_datadir=`(eval echo $expanded_datadir)`
63
64         AC_SUBST(expanded_datadir)
65 ])
66
67
68 SHAMROCK_EXPAND_LIBDIR
69 SHAMROCK_EXPAND_BINDIR
70 SHAMROCK_EXPAND_DATADIR
71
72 IT_PROG_INTLTOOL([0.35.0])
73 AC_PROG_INSTALL
74
75 AC_PATH_PROG(MCS, gmcs, no)
76 if test "x$MCS" = "xno"; then
77         AC_MSG_ERROR([gmcs Not found])
78 fi
79
80
81 AC_ARG_ENABLE(debug,
82         AC_HELP_STRING([--enable-debug],
83                 [Use 'DEBUG' Configuration [default=NO]]),
84                 enable_debug=yes, enable_debug=no)
85 AM_CONDITIONAL(ENABLE_DEBUG, test x$enable_debug = xyes)
86 if test "x$enable_debug" = "xyes" ; then
87         CONFIG_REQUESTED="yes"
88 fi
89 AC_ARG_ENABLE(release,
90         AC_HELP_STRING([--enable-release],
91                 [Use 'RELEASE' Configuration [default=YES]]),
92                 enable_release=yes, enable_release=no)
93 AM_CONDITIONAL(ENABLE_RELEASE, test x$enable_release = xyes)
94 if test "x$enable_release" = "xyes" ; then
95         CONFIG_REQUESTED="yes"
96 fi
97 if test -z "$CONFIG_REQUESTED" ; then
98         AM_CONDITIONAL(ENABLE_RELEASE, true)
99         enable_release=yes
100 fi
101
102 dnl localisation
103 GETTEXT_PACKAGE=pdfmod
104 AC_SUBST(GETTEXT_PACKAGE)
105 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Gettext package name])
106 AM_GLIB_GNU_GETTEXT
107
108 dnl package checks, common for all configs
109 PKG_CHECK_MODULES([GTK_SHARP_20], [gtk-sharp-2.0])
110 PKG_CHECK_MODULES([GLIB_SHARP_20], [glib-sharp-2.0])
111 PKG_CHECK_MODULES([GNOME_SHARP_20], [gnome-sharp-2.0])
112 PKG_CHECK_MODULES([GCONF_SHARP_20], [gconf-sharp-2.0])
113
114 dnl package checks, per config
115 PKG_CHECK_MODULES(HYENA, hyena = 0.1)
116 HYENA_ASSEMBLIES="`$PKG_CONFIG --variable=Assemblies hyena`"
117 HYENA_FILES="`$PKG_CONFIG --variable=Files hyena`"
118 AC_SUBST(HYENA_ASSEMBLIES)
119 AC_SUBST(HYENA_FILES)
120
121 PKG_CHECK_MODULES(HYENA_GUI, hyena.gui = 0.1)
122 HYENA_GUI_ASSEMBLIES="`$PKG_CONFIG --variable=Assemblies hyena.gui`"
123 HYENA_GUI_FILES="`$PKG_CONFIG --variable=Files hyena.gui`"
124 AC_SUBST(HYENA_GUI_ASSEMBLIES)
125 AC_SUBST(HYENA_GUI_FILES)
126
127 BUNDLE_ASSEMBLIES="$HYENA_ASSEMBLIES $HYENA_GUI_ASSEMBLIES"
128 BUNDLE_FILES="$HYENA_FILES $HYENA_GUI_FILES"
129 AC_SUBST(BUNDLE_ASSEMBLIES)
130 AC_SUBST(BUNDLE_FILES)
131
132 dnl How to configure for distcheck
133 DISTCHECK_CONFIGURE_FLAGS=""
134 AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
135
136 AC_CONFIG_FILES([
137 po/Makefile.in
138 docs/Makefile
139 data/Makefile
140 data/pdfmod.desktop.in
141 data/icons/Makefile
142 lib/PdfSharp/Makefile
143 lib/poppler-sharp/Makefile
144 src/PdfMod/Core/Defines.cs
145 src/pdfmod
146 src/Makefile
147 Makefile
148
149 ])
150
151 AC_OUTPUT