blob: 7a9e34e32f565dac07394de3e8858176c7b7097b [file] [log] [blame]
commit-queue@webkit.orgb12c4b92012-06-11 22:16:11 +00001AC_PREREQ(2.60)
alp@webkit.org278f1252007-12-27 06:05:21 +00002
mrobinson@webkit.org38e753c2013-02-08 16:15:18 +00003m4_include([Source/autotools/Versions.m4])
jmalonzo@webkit.org54cd7bc2009-07-03 09:57:39 +00004
commit-queue@webkit.orgd89cca72012-08-23 16:26:04 +00005AC_INIT([WebKitGTK],[webkit_major_version.webkit_minor_version.webkit_micro_version],[http://bugs.webkit.org/])
abarth@webkit.orgc2a176a2011-01-02 02:04:41 +00006AC_CONFIG_MACRO_DIR([Source/autotools])
7AC_CONFIG_AUX_DIR([Source/autotools])
8AC_SUBST(ACLOCAL_AMFLAGS, "-I Source/autotools")
jmalonzo@webkit.org6afc5d42008-09-04 20:26:16 +00009AC_CONFIG_HEADERS([autotoolsconfig.h])
mrobinson@webkit.org38e753c2013-02-08 16:15:18 +000010AC_CONFIG_SRCDIR([Source/WebCore/config.h])
christian@webkit.org56f00692008-06-05 22:50:40 +000011
12WEBKIT_MAJOR_VERSION=webkit_major_version
13WEBKIT_MINOR_VERSION=webkit_minor_version
14WEBKIT_MICRO_VERSION=webkit_micro_version
jmalonzo@webkit.org54cd7bc2009-07-03 09:57:39 +000015WEBKIT_USER_AGENT_MAJOR_VERSION=webkit_user_agent_major_version
16WEBKIT_USER_AGENT_MINOR_VERSION=webkit_user_agent_minor_version
christian@webkit.org56f00692008-06-05 22:50:40 +000017AC_SUBST(WEBKIT_MAJOR_VERSION)
18AC_SUBST(WEBKIT_MINOR_VERSION)
19AC_SUBST(WEBKIT_MICRO_VERSION)
jmalonzo@webkit.org54cd7bc2009-07-03 09:57:39 +000020AC_SUBST(WEBKIT_USER_AGENT_MAJOR_VERSION)
21AC_SUBST(WEBKIT_USER_AGENT_MINOR_VERSION)
zandobersek@gmail.com9b52dc52013-02-24 19:01:20 +000022AC_DEFINE([USER_AGENT_GTK_MAJOR_VERSION], [webkit_user_agent_major_version], [The major version used in user agent string])
23AC_DEFINE([USER_AGENT_GTK_MINOR_VERSION], [webkit_user_agent_minor_version], [The minor version used in user agent string])
christian@webkit.org56f00692008-06-05 22:50:40 +000024
zandobersek@gmail.combca0b272013-09-23 15:09:34 +000025m4_include([Source/autotools/CustomMacros.m4])
mrobinson@webkit.org38e753c2013-02-08 16:15:18 +000026m4_include([Source/autotools/CheckSystemAndBasicDependencies.m4])
27m4_include([Source/autotools/SetupLibtool.m4])
28m4_include([Source/autotools/ReadCommandLineArguments.m4])
29m4_include([Source/autotools/FindDependencies.m4])
30m4_include([Source/autotools/SetupCompilerFlags.m4])
31m4_include([Source/autotools/SetupAutoconfHeader.m4])
mrobinson@webkit.org3e4076e2013-02-21 16:19:47 +000032m4_include([Source/autotools/SetupWebKitFeatures.m4])
alp@webkit.org278f1252007-12-27 06:05:21 +000033
mrobinson@webkit.org38e753c2013-02-08 16:15:18 +000034# We would put AM_INIT_AUTOMAKE into SetupAutomake.m4, but seems to cause autoconf errors.
commit-queue@webkit.org19d90062011-10-28 06:44:54 +000035AM_INIT_AUTOMAKE([foreign subdir-objects dist-xz no-dist-gzip tar-ustar])
kov@webkit.orgfe757072013-08-28 23:35:34 +000036AM_MAINTAINER_MODE([enable])
mrobinson@webkit.org38e753c2013-02-08 16:15:18 +000037m4_include([Source/autotools/SetupAutomake.m4])
alp@webkit.org278f1252007-12-27 06:05:21 +000038
mrobinson@webkit.org38e753c2013-02-08 16:15:18 +000039######################################################################################
40# Processing of configuration files
41######################################################################################
jmalonzo@webkit.orgea8d0e92009-09-23 13:08:51 +000042
mrobinson@webkit.org374ddf72013-04-19 17:55:57 +000043AC_CONFIG_FILES([
44 GNUmakefile Source/WebCore/platform/gtk/po/POTFILES
45 Source/JavaScriptCore/javascriptcoregtk-${WEBKITGTK_API_VERSION}.pc:Source/JavaScriptCore/javascriptcoregtk.pc.in
46 JavaScriptCore-${WEBKITGTK_API_VERSION}.gir:Source/JavaScriptCore/JavaScriptCore.gir.in])
carlosgc@webkit.org4643e482011-05-03 09:53:26 +000047
zandobersek@gmail.com6499f572013-01-15 19:49:50 +000048if test "$enable_webkit1" = "yes"; then
mrobinson@webkit.org374ddf72013-04-19 17:55:57 +000049 AC_CONFIG_FILES([
50 Source/WebKit/gtk/webkit/webkitversion.h
51 Source/WebKit/gtk/${WEBKITGTK_PC_NAME}-${WEBKITGTK_API_VERSION}.pc:Source/WebKit/gtk/webkit.pc.in])
zandobersek@gmail.com6499f572013-01-15 19:49:50 +000052fi
carlosgc@webkit.org52abc152011-09-16 11:43:16 +000053
54if test "$enable_webkit2" = "yes"; then
mrobinson@webkit.org374ddf72013-04-19 17:55:57 +000055 AC_CONFIG_FILES([
56 DerivedSources/WebKit2/webkit2gtk/webkit2/WebKitVersion.h:Source/WebKit2/UIProcess/API/gtk/WebKitVersion.h.in
57 Source/WebKit2/webkit2gtk-${WEBKITGTK_API_VERSION}.pc:Source/WebKit2/webkit2gtk.pc.in])
carlosgc@webkit.org52abc152011-09-16 11:43:16 +000058fi
59
mrobinson@webkit.org38e753c2013-02-08 16:15:18 +000060m4_include([Source/autotools/PrintBuildConfiguration.m4])