/usr/share/bibledit/configure.ac is in bibledit-data 5.0.453-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 | AC_INIT([bibledit],[5.0.453],[http://bibledit.org])
AM_INIT_AUTOMAKE
AM_INIT_AUTOMAKE([tar-ustar subdir-objects])
AC_CANONICAL_BUILD
ac_default_prefix=/usr
AC_PROG_CC
AC_PROG_CXX
AC_LANG([C++])
AX_CXX_COMPILE_STDCXX_11([noext],[mandatory])
AC_PROG_RANLIB
AC_CONFIG_HEADER(config.h)
AC_PATH_PROG(GZIP_PATH, gzip, no)
if test x$GZIP_PATH = xno; then
AC_MSG_ERROR(Program "gzip" is needed. Install this first.)
fi
AC_PATH_PROG(GUNZIP_PATH, gunzip, no)
if test x$GUNZIP_PATH = xno; then
AC_MSG_ERROR(Program "gunzip" is needed. Install this first.)
fi
AC_PATH_PROG(FIND_TAR, tar, no)
if test x$FIND_TAR = xno; then
AC_MSG_ERROR(Program "tar" is needed. Install this first.)
fi
AC_PATH_PROG(ZIP_PATH, zip, no)
if test x$ZIP_PATH = xno; then
AC_MSG_ERROR(Program "zip" is needed. Install this first.)
fi
AC_PATH_PROG(UNZIP_PATH, unzip, no)
if test x$UNZIP_PATH = xno; then
AC_MSG_ERROR(Program "unzip" is needed. Install this first.)
fi
AC_PATH_PROG(INSTALLMGR_PATH, installmgr, no)
AC_PATH_PROG(DIATHEKE_PATH, diatheke, no)
PKG_PROG_PKG_CONFIG
AC_PATH_PROG(PKG_CONFIG_PATH, pkg-config, no)
if test x$PKG_CONFIG_PATH = xno; then
AC_MSG_ERROR(Program "pkg-config" is needed. Install this first.)
fi
PKG_CHECK_MODULES(GTK, gtk+-3.0,,AC_MSG_ERROR(Gtk3 development version is needed.))
AC_SUBST(GTK_LIBS)
AC_SUBST(GTK_CFLAGS)
PKG_CHECK_MODULES([WEBKIT2GTK], [webkit2gtk-4.0],, [
PKG_CHECK_MODULES([WEBKIT2GTK], [webkit2gtk-3.0],,AC_MSG_ERROR(Webkit2Gtk development version is needed.))
])
AC_SUBST(WEBKIT2GTK_LIBS)
AC_SUBST(WEBKIT2GTK_CFLAGS)
AC_CHECK_LIB([mbedtls], [mbedtls_ssl_init])
AM_CONDITIONAL([HAVE_LIBMBEDTLS], [test "$ac_cv_lib_mbedtls_ssl_init" = yes])
# Tag1 (leave in place)
# Tag2 (leave in place)
# Tag3 (leave in place)
# Tag4 (leave in place)
# Tag5 (leave in place)
# Tag6 (leave in place)
# Tag7 (leave in place)
AC_DEFINE([HAVE_LINUX], [1], [Enable installation on Linux])
# Tag9 (leave in place)
# TagA (leave in place)
# TagB (leave in place)
# TagC (leave in place)
# TagD (leave in place)
# TagE (leave in place)
# TagF (leave in place)
# TagG (leave in place)
AC_CHECK_HEADER(pthread.h,AC_DEFINE([HAVE_PTHREAD],[1],[Define whether pthread.h is present]),)
AC_CHECK_HEADER(libproc.h,AC_DEFINE([HAVE_LIBPROC],[1],[Define whether libproc.h is present]),)
AC_CHECK_HEADER(execinfo.h,AC_DEFINE([HAVE_EXECINFO],[1],[Define whether execinfo.h is present]),)
AC_CHECK_HEADER(sys/sysctl.h,AC_DEFINE([HAVE_SYS_SYSCTL],[1],[Define whether sys/sysctl.h is present]),)
if test "x${prefix}" = "xNONE"; then
AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${ac_default_prefix}/share/bibledit", [Package data directory])
else
AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${prefix}/share/bibledit", [Package data directory])
fi
AC_DEFINE_UNQUOTED(PACKAGE_PREFIX_DIR, "${prefix}", [Package prefix directory])
CPPFLAGS=-I/usr/local/include
# Check whether function 'stoi' is available
AC_MSG_CHECKING([whether stoi is available])
AC_COMPILE_IFELSE(
[AC_LANG_SOURCE([[
#include <string>
using namespace std;
int i = stoi ("string");
]])],
[AC_DEFINE([HAVE_STOI], [1], [Define whether function 'stoi' is available])
AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no])]
)
# Windows.
ENABLEWINDOWS=no
AC_ARG_ENABLE(windows,
[ --enable-windows Compile for Windows],
[
AC_DEFINE([WIN32], [1], [Define whether to compile on Windows])
AC_DEFINE([HAVE_WINDOWS], [1], [Define whether to compile on Windows])
ENABLEWINDOWS=yes
]
)
# Android.
ENABLEANDROID=no
AC_ARG_ENABLE(android,
[ --enable-android Compile for Android],
[
AC_DEFINE([HAVE_ANDROID], [1], [Define whether to compile for Android])
ENABLEANDROID=yes
]
)
# macOS.
ENABLEMAC=no
AC_ARG_ENABLE(mac,
[ --enable-mac Compile for Mac],
[
AC_DEFINE([HAVE_MAC], [1], [Define whether to compile for Mac])
ENABLEMAC=yes
]
)
# Linux.
ENABLELINUX=yes
AC_ARG_ENABLE(linux,
[ --enable-linux Compile for Linux],
[
AC_DEFINE([HAVE_LINUX], [1], [Define whether to compile for Linux])
ENABLELINUX=yes
]
)
# iOS.
ENABLEIOS=no
AC_ARG_ENABLE(ios,
[ --enable-ios Compile for iOS],
[
AC_DEFINE([HAVE_IOS], [1], [Define whether to compile for iOS])
ENABLEIOS=yes
]
)
# Chrome OS.
ENABLECHROMEOS=no
AC_ARG_ENABLE(chromeos,
[ --enable-chromeos Compile for Chrome OS],
[
AC_DEFINE([HAVE_CHROMEOS], [1], [Define whether to compile for Chrome OS])
ENABLECHROMEOS=yes
]
)
# Chrome App.
ENABLECHROMEAPP=no
AC_ARG_ENABLE(chromeapp,
[ --enable-chromeapp Compile for Chrome App],
[
AC_DEFINE([HAVE_CHROMEAPP], [1], [Define whether to compile for Chrome App])
ENABLECHROMEAPP=yes
]
)
AC_OUTPUT(Makefile)
echo "
Bibledit $VERSION configuration summary:
Installation prefix : ${prefix}
Windows (--enable-windows) : ${ENABLEWINDOWS}
Android (--enable-android) : ${ENABLEANDROID}
macOS (--enable-mac) : ${ENABLEMAC}
Linux (--enable-linux) : ${ENABLELINUX}
iOS (--enable-ios) : ${ENABLEIOS}
Chrome OS (--enable-chromeos) : ${ENABLECHROMEOS}
Chrome App (--enable-chromeapp) : ${ENABLECHROMEAPP}
"
|