1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172
|
dnl Process this file with autoconf to produce a configure script.
dnl Created by Anjuta - will be overwritten
dnl If you don't want it to overwrite it,
dnl Please disable it in the Anjuta project configuration
AC_INIT([gnusim8085], [1.3.6], [https://bugs.launchpad.net/gnusim8085])
AC_DEFINE([PACKAGE_URL],["http://www.gnusim8085.org/"],[Website URL])
AC_CANONICAL_HOST
AM_INIT_AUTOMAKE([check-news])
AC_CONFIG_SRCDIR([src/main.c])
AC_CONFIG_HEADERS([config.h])
# Enable silent build when available (Automake 1.11)
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
AC_ISC_POSIX
AC_SUBST(CFLAGS,$CFLAGS)
AC_PROG_CC
AM_PROG_CC_STDC
AM_PROG_CC_C_O
AC_HEADER_STDC
dnl Checks for programs.
PKG_PROG_PKG_CONFIG
dnl Checks for libraries.
dnl Checks for header files.
AC_CHECK_HEADERS([libintl.h stdlib.h string.h unistd.h])
dnl Checks for typedefs, structures, and compiler characteristics.
dnl Checks for library functions.
AC_CHECK_FUNCS([memset setlocale strtol strtoul])
dnl Checks for Additional stuffs.
case "${host}" in
i[[3456789]]86-*-mingw32*) WIN32="yes" ;;
*cygwin*) WIN32="yes" ;;
*) WIN32="no" ;;
esac
AM_CONDITIONAL([WIN32], test "$WIN32" = "yes")
gtk_required="2.12.0"
gtksourceview2_required="2.2.0"
AC_ARG_ENABLE([gio],
AS_HELP_STRING([--enable-gio],[Enable gio based file handling (default: disabled)]),
[enable_gio=$enableval],
[enable_gio=no])
if test "x$enable_gio" = "xyes"; then
PKG_CHECK_MODULES(GIO, [gio-2.0],, [
AC_MSG_ERROR(
[
Cannot find gio
Please check the following:
* Do you have the glib2 development package installed?
(usually called glib2-devel for rpm based distros or
libglib2.0-dev for deb based distros or similar)
If
ls -l /usr/lib/pkgconfig/gio-2.0.pc
reports that the file does not exist, then you are missing
the development package.
])])
fi
AM_CONDITIONAL(USE_GIO, test "x$enable_gio" = "xyes")
PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= $gtk_required],, [
AC_MSG_ERROR(
[
Cannot find libgtk2.0 >= $gtk_required
Please check the following:
* Do you have the gtk+ development package installed?
(usually called gtk2-devel for rpm based distros or
libgtk2.0-dev for deb based distros or similar)
If
ls -l /usr/lib/pkgconfig/gtk+-2.0.pc
reports that the file does not exist, then you are missing
the development package.
])])
PKG_CHECK_MODULES(GTKSOURCEVIEW2, [gtksourceview-2.0 >= $gtksourceview2_required],, [
AC_MSG_ERROR(
[
Cannot find gtksourceview2 >= $gtksourceview2_required
Please check the following:
* Do you have the gtksourceview2 development package installed?
(usually called gtksourceview2-devel for rpm based distros or
libgtksourceview2.0-dev for deb based distros or similar)
If
ls -l /usr/lib/pkgconfig/gtksourceview-2.0.pc
reports that the file does not exist, then you are missing
the development package.
])])
PKG_CHECK_EXISTS([gtksourceview-2.0 >= 2.8], [have_gsv_2_8=yes], [have_gsv_2_8=no])
if test "x$have_gsv_2_8" = "xyes"; then
AC_DEFINE([GSV_2_8], [1], [gtksourceview2 version >= 2.8])
fi
AC_SUBST(GTK_LIBS)
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTKSOURCEVIEW2_LIBS)
AC_SUBST(GTKSOURCEVIEW2_CFLAGS)
dnl Languages which your application supports
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.17])
dnl Set PACKAGE SOURCE DIR in config.h.
packagesrcdir=`cd $srcdir && pwd`
dnl Set PACKAGE PREFIX
if test "x${prefix}" = "xNONE"; then
packageprefix=${ac_default_prefix}
else
packageprefix=${prefix}
fi
dnl Set PACKAGE DATA & DOC DIR
packagedatadir=share/${PACKAGE}
packagedocdir=share/doc/${PACKAGE}
dnl Set PACKAGE DIRs in config.h.
packagepixmapsdir=share/icons/hicolor/scalable/apps
packagehelpdir=share/gnome/help/${PACKAGE}
packagemenudir=share/gnome/apps
dnl Subst PACKAGE_DATA_DIR.
PACKAGE_DATA_DIR="${packageprefix}/${packagedatadir}"
AC_SUBST(PACKAGE_DATA_DIR)
dnl Subst PACKAGE_PIXMAPS_DIR.
PACKAGE_PIXMAPS_DIR="${packageprefix}/${packagepixmapsdir}"
AC_SUBST(PACKAGE_PIXMAPS_DIR)
dnl Subst PACKAGE_HELP_DIR.
PACKAGE_HELP_DIR="${packageprefix}/${packagehelpdir}"
AC_SUBST(PACKAGE_HELP_DIR)
dnl Subst PACKAGE_MENU_DIR.
PACKAGE_MENU_DIR="${packageprefix}/${packagemenudir}"
AC_SUBST(PACKAGE_MENU_DIR)
AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${packageprefix}/${packagedatadir}")
AC_DEFINE_UNQUOTED(PACKAGE_PIXMAPS_DIR, "${packageprefix}/${packagepixmapsdir}")
AC_DEFINE_UNQUOTED(PACKAGE_HELP_DIR, "${packageprefix}/${packagehelpdir}")
AC_DEFINE_UNQUOTED(PACKAGE_MENU_DIR, "${packageprefix}/${packagemenudir}")
AC_DEFINE_UNQUOTED(PACKAGE_SOURCE_DIR, "${packagesrcdir}")
AC_OUTPUT([
Makefile
po/Makefile.in
src/Makefile
pixmaps/Makefile
doc/Makefile
data/Makefile
GNUSim8085.desktop
installer.nsi
])
|