summaryrefslogtreecommitdiff
path: root/m4/vapigen.m4
diff options
context:
space:
mode:
authorSeonah Moon <seonah1.moon@samsung.com>2020-02-28 12:54:59 +0900
committerSeonah Moon <seonah1.moon@samsung.com>2020-02-28 12:55:12 +0900
commitb74c5fd5483969d55625576448662edf864b6b9e (patch)
treee3cd0fca2b0804eb86ec06c49c5495444a86f98d /m4/vapigen.m4
parent58894334cd3f0b89c865304e8e9d6eea3cd20a55 (diff)
downloadlibsoup-upstream/2.69.90.tar.gz
libsoup-upstream/2.69.90.tar.bz2
libsoup-upstream/2.69.90.zip
Imported Upstream version 2.69.90upstream/2.69.90upstream/2.69.0
Change-Id: I484cce89dab3187f91ab6e005e265514a03028bd
Diffstat (limited to 'm4/vapigen.m4')
-rw-r--r--m4/vapigen.m4177
1 files changed, 0 insertions, 177 deletions
diff --git a/m4/vapigen.m4 b/m4/vapigen.m4
deleted file mode 100644
index 99e5493c..00000000
--- a/m4/vapigen.m4
+++ /dev/null
@@ -1,177 +0,0 @@
-dnl vapigen.m4
-dnl
-dnl Copyright 2012 Evan Nemerson, Daniel Espinosa
-dnl
-dnl This library is free software; you can redistribute it and/or
-dnl modify it under the terms of the GNU Lesser General Public
-dnl License as published by the Free Software Foundation; either
-dnl version 2.1 of the License, or (at your option) any later version.
-dnl
-dnl This library is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-dnl Lesser General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU Lesser General Public
-dnl License along with this library; if not, write to the Free Software
-dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-
-# VAPIGEN_CHECK([VERSION], [API_VERSION], [FOUND-INTROSPECTION], [DEFAULT])
-# --------------------------------------
-# Check vapigen existence and version. GObject Introspection is required, then
-# set FOUND-INTROSPECTION to [yes] or use call GOBJECT_INTROSPECTION_CHECK or
-# GOBJECT_INTROSPECTION_REQUIRE. This is an internal macro, use VAPIGEN_CHECK,
-# VAPIGEN_GI_CHECK or VAPIGEN_GI_REQUIRE.
-#
-# See http://live.gnome.org/Vala/UpstreamGuide for detailed documentation
-m4_define([_VAPIGEN_CHECK_INTERNAL],
-[
- AC_REQUIRE([PKG_PROG_PKG_CONFIG])
- AC_REQUIRE([AM_PROG_VALAC])
- AC_ARG_ENABLE([vala],
- [AS_HELP_STRING([--enable-vala[=@<:@no/auto/yes@:>@]],[build Vala bindings @<:@default=]ifelse($4,,auto,$4)[@:>@])],,[
- AS_IF([ test "x$4" = "x"], [
- enable_vala=auto
- ], [
- enable_vala=$4
- ])
- ])
- AS_IF([ test "x$enable_vala" = "xyes" -o "x$enable_vala" = "xauto"],
- [
- AS_IF([ test "x$3" != "xyes" -a "x$found_introspection" != "xyes"], [
- AC_MSG_ERROR([Vala bindings require GObject Introspection])
- ])
- ], [
- AS_IF([ test "x$enable_vala" != "no"],[
- vapigen_pkg_found=no
- ],[
- AC_MSG_ERROR([Invalid argument passed to --enable-vala, should be one of @<:@no/auto/yes@:>@])
- ])
- ])
- AS_IF([ test "x$2" = "x"], [
- vapigen_pkg_name=vapigen
- ], [
- vapigen_pkg_name=vapigen-$2
- ])
- AS_IF([ test "x$1" = "x"], [
- vapigen_pkg="$vapigen_pkg_name"
- ], [
- vapigen_pkg="$vapigen_pkg_name >= $1"
- ])
- AS_IF([ test "x$enable_vala" = "xyes" -o "x$enable_vala" = "xauto"], [
- AC_MSG_CHECKING([for vapigen $vapigen_pkg_name])
- PKG_CHECK_EXISTS([ $vapigen_pkg ], [
- vapigen_pkg_found=yes
- ], [
- vapigen_pkg_found=no
- AC_MSG_RESULT([no])
- AC_MSG_NOTICE([Searching for $vapigen_pkg_name program...])
- AC_PATH_PROG(VAPIGEN, [$vapigen_pkg_name], [no])
- if test "x$VAPIGEN" = "xno"
- then
- check_prog=no
- else
- check_prog=yes
- fi
- ])
-
- AS_CASE([$vapigen_pkg_found],
- [yes], [
- VAPIGEN=`$PKG_CONFIG --variable=vapigen vapigen`
- VAPIGEN_MAKEFILE=`$PKG_CONFIG --variable=datadir vapigen`/vala/Makefile.vapigen
- VAPIDIR=`$PKG_CONFIG --variable=vapidir vapigen`
- AS_IF([ test "x$2" = "x"], [
- VAPIGEN_VAPIDIR=`$PKG_CONFIG --variable=vapidir vapigen`
- ], [
- VAPIGEN_VAPIDIR=`$PKG_CONFIG --variable=vapidir_versioned vapigen`
- ])
- ],
- [no], [
- AS_CASE([$check_prog],[no],[
- AC_MSG_ERROR([Can't locate $vapigen_pkg program])
- ], [yes], [
- AS_IF([ test "x$2" = "x"], [
- vala_pkg_name=libvala
- ], [
- vala_pkg_name=libvala-$2
- ])
- AS_IF([ test "x$1" = "x"], [
- vala_pkg="$vala_pkg_name"
- ], [
- vala_pkg="$vala_pkg_name >= $1"
- ])
- AC_MSG_CHECKING([for $vala_pkg])
- PKG_CHECK_EXISTS([$vala_pkg], [
- VALA_DATADIR=`pkg-config $vala_pkg --variable=datadir`
- VAPIDIR="$VALA_DATADIR/vala/vapi"
- VAPIGEN_MAKEFILE="$VALA_DATADIR/vala/Makefile.vapigen"
- AS_IF([ test "x$2" = "x"], [
- VAPIGEN_VAPIDIR=`$PKG_CONFIG --variable=vapidir vapigen`
- ], [
- VAPIGEN_VAPIDIR=`$PKG_CONFIG --variable=vapidir_versioned vapigen`
- ])
- vapigen_pkg_found=yes
- ], [
- AS_CASE([$enable_vala], [yes], [
- AC_MSG_ERROR([$vala_pkg not found])
- ], [auto], [
- vapigen_pkg_found=no
- ])
- ])
- ])
- ])
-
- AC_MSG_RESULT([$vapigen_pkg_found])
-
-
- ])
- AC_SUBST([VAPIGEN])
- AC_SUBST([VAPIGEN_VAPIDIR])
- AC_SUBST([VAPIDIR])
- AC_SUBST([VAPIGEN_MAKEFILE])
-
- AM_CONDITIONAL(ENABLE_VAPIGEN, test "x$vapigen_pkg_found" = "xyes")
-])
-
-dnl Check VAPIGEN
-# VAPIGEN_CHECK([VERSION], [API_VERSION], [FOUND-INTROSPECTION], [DEFAULT])
-# --------------------------------------
-# Check vapigen existence and version. Set FOUND-INTROSPECTION to [yes]
-# if you have detected GObject Introspection without GOBJECT_INTROSPECTION_CHECK
-# or GOBJECT_INTROSPECTION_REQUIRE macros.
-#
-# See http://live.gnome.org/Vala/UpstreamGuide for detailed documentation
-AC_DEFUN([VAPIGEN_CHECK],
-[
- _VAPIGEN_CHECK_INTERNAL($1,$2,$3,$4)
-]
-)
-
-dnl usage:
-# VAPIGEN_GI_CHECK([VERSION], [API_VERSION], [DEFAULT])
-# --------------------------------------
-# Check vapigen existence and version. You must call GOBJECT_INTROSPECTION_CHECK
-# first in order to call this macro.
-#
-# See http://live.gnome.org/Vala/UpstreamGuide for detailed documentation
-AC_DEFUN([VAPIGEN_GI_CHECK],
-[
- AC_REQUIRE([GOBJECT_INTROSPECTION_CHECK])
- _VAPIGEN_CHECK_INTERNAL([$1],[$2],[$found_introspection],[$3])
-]
-)
-
-dnl usage:
-# VAPIGEN_GI_REQUIRE([VERSION], [API_VERSION], [DEFAULT])
-# --------------------------------------
-# Check vapigen existence and version. You must call GOBJECT_INTROSPECTION_REQUIRE
-# first in order to call this macro.
-#
-# See http://live.gnome.org/Vala/UpstreamGuide for detailed documentation
-AC_DEFUN([VAPIGEN_GI_REQUIRE],
-[
- AC_REQUIRE([GOBJECT_INTROSPECTION_REQUIRE])
- _VAPIGEN_CHECK_INTERNAL([$1],[$2],[$found_introspection],[$3])
-]
-)
-