commit-queue@webkit.org | b12c4b9 | 2012-06-11 22:16:11 +0000 | [diff] [blame] | 1 | AC_PREREQ(2.60) |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 2 | |
mrobinson@webkit.org | 38e753c | 2013-02-08 16:15:18 +0000 | [diff] [blame] | 3 | m4_include([Source/autotools/Versions.m4]) |
jmalonzo@webkit.org | 54cd7bc | 2009-07-03 09:57:39 +0000 | [diff] [blame] | 4 | |
commit-queue@webkit.org | d89cca7 | 2012-08-23 16:26:04 +0000 | [diff] [blame] | 5 | AC_INIT([WebKitGTK],[webkit_major_version.webkit_minor_version.webkit_micro_version],[http://bugs.webkit.org/]) |
abarth@webkit.org | c2a176a | 2011-01-02 02:04:41 +0000 | [diff] [blame] | 6 | AC_CONFIG_MACRO_DIR([Source/autotools]) |
| 7 | AC_CONFIG_AUX_DIR([Source/autotools]) |
| 8 | AC_SUBST(ACLOCAL_AMFLAGS, "-I Source/autotools") |
jmalonzo@webkit.org | 6afc5d4 | 2008-09-04 20:26:16 +0000 | [diff] [blame] | 9 | AC_CONFIG_HEADERS([autotoolsconfig.h]) |
mrobinson@webkit.org | 38e753c | 2013-02-08 16:15:18 +0000 | [diff] [blame] | 10 | AC_CONFIG_SRCDIR([Source/WebCore/config.h]) |
christian@webkit.org | 56f0069 | 2008-06-05 22:50:40 +0000 | [diff] [blame] | 11 | |
| 12 | WEBKIT_MAJOR_VERSION=webkit_major_version |
| 13 | WEBKIT_MINOR_VERSION=webkit_minor_version |
| 14 | WEBKIT_MICRO_VERSION=webkit_micro_version |
jmalonzo@webkit.org | 54cd7bc | 2009-07-03 09:57:39 +0000 | [diff] [blame] | 15 | WEBKIT_USER_AGENT_MAJOR_VERSION=webkit_user_agent_major_version |
| 16 | WEBKIT_USER_AGENT_MINOR_VERSION=webkit_user_agent_minor_version |
christian@webkit.org | 56f0069 | 2008-06-05 22:50:40 +0000 | [diff] [blame] | 17 | AC_SUBST(WEBKIT_MAJOR_VERSION) |
| 18 | AC_SUBST(WEBKIT_MINOR_VERSION) |
| 19 | AC_SUBST(WEBKIT_MICRO_VERSION) |
jmalonzo@webkit.org | 54cd7bc | 2009-07-03 09:57:39 +0000 | [diff] [blame] | 20 | AC_SUBST(WEBKIT_USER_AGENT_MAJOR_VERSION) |
| 21 | AC_SUBST(WEBKIT_USER_AGENT_MINOR_VERSION) |
zandobersek@gmail.com | 9b52dc5 | 2013-02-24 19:01:20 +0000 | [diff] [blame] | 22 | AC_DEFINE([USER_AGENT_GTK_MAJOR_VERSION], [webkit_user_agent_major_version], [The major version used in user agent string]) |
| 23 | AC_DEFINE([USER_AGENT_GTK_MINOR_VERSION], [webkit_user_agent_minor_version], [The minor version used in user agent string]) |
christian@webkit.org | 56f0069 | 2008-06-05 22:50:40 +0000 | [diff] [blame] | 24 | |
zandobersek@gmail.com | bca0b27 | 2013-09-23 15:09:34 +0000 | [diff] [blame] | 25 | m4_include([Source/autotools/CustomMacros.m4]) |
mrobinson@webkit.org | 38e753c | 2013-02-08 16:15:18 +0000 | [diff] [blame] | 26 | m4_include([Source/autotools/CheckSystemAndBasicDependencies.m4]) |
| 27 | m4_include([Source/autotools/SetupLibtool.m4]) |
| 28 | m4_include([Source/autotools/ReadCommandLineArguments.m4]) |
| 29 | m4_include([Source/autotools/FindDependencies.m4]) |
| 30 | m4_include([Source/autotools/SetupCompilerFlags.m4]) |
| 31 | m4_include([Source/autotools/SetupAutoconfHeader.m4]) |
mrobinson@webkit.org | 3e4076e | 2013-02-21 16:19:47 +0000 | [diff] [blame] | 32 | m4_include([Source/autotools/SetupWebKitFeatures.m4]) |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 33 | |
mrobinson@webkit.org | 38e753c | 2013-02-08 16:15:18 +0000 | [diff] [blame] | 34 | # We would put AM_INIT_AUTOMAKE into SetupAutomake.m4, but seems to cause autoconf errors. |
commit-queue@webkit.org | 19d9006 | 2011-10-28 06:44:54 +0000 | [diff] [blame] | 35 | AM_INIT_AUTOMAKE([foreign subdir-objects dist-xz no-dist-gzip tar-ustar]) |
kov@webkit.org | fe75707 | 2013-08-28 23:35:34 +0000 | [diff] [blame] | 36 | AM_MAINTAINER_MODE([enable]) |
mrobinson@webkit.org | 38e753c | 2013-02-08 16:15:18 +0000 | [diff] [blame] | 37 | m4_include([Source/autotools/SetupAutomake.m4]) |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 38 | |
mrobinson@webkit.org | 38e753c | 2013-02-08 16:15:18 +0000 | [diff] [blame] | 39 | ###################################################################################### |
| 40 | # Processing of configuration files |
| 41 | ###################################################################################### |
jmalonzo@webkit.org | ea8d0e9 | 2009-09-23 13:08:51 +0000 | [diff] [blame] | 42 | |
mrobinson@webkit.org | 374ddf7 | 2013-04-19 17:55:57 +0000 | [diff] [blame] | 43 | AC_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.org | 4643e48 | 2011-05-03 09:53:26 +0000 | [diff] [blame] | 47 | |
zandobersek@gmail.com | 6499f57 | 2013-01-15 19:49:50 +0000 | [diff] [blame] | 48 | if test "$enable_webkit1" = "yes"; then |
mrobinson@webkit.org | 374ddf7 | 2013-04-19 17:55:57 +0000 | [diff] [blame] | 49 | 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.com | 6499f57 | 2013-01-15 19:49:50 +0000 | [diff] [blame] | 52 | fi |
carlosgc@webkit.org | 52abc15 | 2011-09-16 11:43:16 +0000 | [diff] [blame] | 53 | |
| 54 | if test "$enable_webkit2" = "yes"; then |
mrobinson@webkit.org | 374ddf7 | 2013-04-19 17:55:57 +0000 | [diff] [blame] | 55 | 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.org | 52abc15 | 2011-09-16 11:43:16 +0000 | [diff] [blame] | 58 | fi |
| 59 | |
mrobinson@webkit.org | 38e753c | 2013-02-08 16:15:18 +0000 | [diff] [blame] | 60 | m4_include([Source/autotools/PrintBuildConfiguration.m4]) |