Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 48 lines (40 sloc) 1.612 kb
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
dnl I'd like this to be edited in -*- Autoconf -*- mode...
dnl
dnl AM_PATH_GST(MIN-REQ-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
dnl

AC_DEFUN([AM_PATH_GST],[

dnl Various autoconf user options

AC_ARG_WITH(gst,
AS_HELP_STRING([--with-gst=PFX], [Prefix where GNU Smalltalk is installed]),
gst_prefix="$withval", gst_prefix="")

    gst_old_PKG_CONFIG_PATH_set=${PKG_CONFIG_PATH+set}
    gst_old_PKG_CONFIG_PATH=${PKG_CONFIG_PATH}
    if test x$gst_prefix != x; then
        : ${GST="$gst_prefix/bin/gst"}
        : ${GST_CONFIG="$gst_prefix/bin/gst-config"}
        : ${GST_PACKAGE="$gst_prefix/bin/gst-package"}
gst_config_path=$gst_prefix/lib/pkgconfig
        PKG_CONFIG_PATH=$gst_config_path${PKG_CONFIG_PATH+:$PKG_CONFIG_PATH}
        export PKG_CONFIG_PATH
    fi

    PKG_PROG_PKG_CONFIG([0.7])
    AC_PATH_PROG([GST], [gst], no)
    AC_PATH_PROG([GST_CONFIG], [gst-config], no)
    AC_PATH_PROG([GST_PACKAGE], [gst-package], no)

    export PKG_CONFIG_PATH
    PKG_CHECK_MODULES(GST, [gnu-smalltalk[]m4_if([$1],[],[],[ >= $1])],
[gstlibdir=`$PKG_CONFIG --variable=libdir gnu-smalltalk`
gstdatadir=`$PKG_CONFIG --variable=pkgdatadir gnu-smalltalk`
gstmoduledir=`$PKG_CONFIG --variable=moduledir gnu-smalltalk`
         gstmoduleexecdir='${gstmoduledir}'
have_gst=yes],
[have_gst=no])

    PKG_CONFIG_PATH=$gst_old_PKG_CONFIG_PATH
    export PKG_CONFIG_PATH
    test x$gst_old_PKG_CONFIG_PATH_set = xset || unset PKG_CONFIG_PATH
    AS_IF([test $have_gst = yes], [$2], [$3])
    AC_SUBST(gstlibdir)
    AC_SUBST(gstdatadir)
     AC_SUBST(gstmoduledir)
     AC_SUBST(gstmoduleexecdir)
])
Something went wrong with that request. Please try again.