# gt.m4 - Macros to locate and utilise giellatekno scripts -*- Autoconf -*- # serial 1 (gtsvn-1) # # Copyright © 2011 Divvun/Samediggi/UiT . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 3 of the License. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # the prefixes gt_*, _gt_* are reserved here for giellatekno variables and # macros. It is the same as gettext and probably others, but I expect no # collisions really. AC_DEFUN([gt_PROG_SCRIPTS_PATHS], [ # GTCORE and GTFREE env. variables are required by the testbench AC_ARG_VAR([GTCORE], [directory for giellatekno core data and scripts]) AC_ARG_VAR([GTFREE], [gtfree path must be defined for the test bench to work]) # Check if any of the corpus data repositories are available: AC_MSG_CHECKING([whether GTBOUND STABLE exists for __UND__]) AS_IF([test -d ${GTBOUND}/stable/goldstandard/converted/__UND__/], [gtboundstable=yes], [gtboundstable=no]) AC_MSG_RESULT([$gtboundstable]) AM_CONDITIONAL([BOUNDSTABLE], [test "x$gtboundstable" != "xno"]) AC_MSG_CHECKING([whether GTBOUND PRESTABLE exists for __UND__]) AS_IF([test -d ${GTBOUND}/prestable/goldstandard/converted/__UND__/], [gtboundprestable=yes], [gtboundprestable=no]) AC_MSG_RESULT([$gtboundprestable]) AM_CONDITIONAL([BOUNDPRESTABLE], [test "x$gtboundprestable" != "xno"]) AC_MSG_CHECKING([whether GTFREE STABLE exists for __UND__]) AS_IF([test -d ${GTFREE}/stable/goldstandard/converted/__UND__/], [gtfreestable=yes], [gtfreestable=no]) AC_MSG_RESULT([$gtfreestable]) AM_CONDITIONAL([FREESTABLE], [test "x$gtfreestable" != "xno"]) AC_MSG_CHECKING([whether GTFREE PRESTABLE exists for __UND__]) AS_IF([test -d ${GTFREE}/prestable/goldstandard/converted/__UND__/], [gtfreeprestable=yes], [gtfreeprestable=no]) AC_MSG_RESULT([$gtfreeprestable]) AM_CONDITIONAL([FREEPRESTABLE], [test "x$gtfreeprestable" != "xno"]) # Define whether you want to be a maintainer: AC_ARG_VAR([GTMAINTAINER], [define if you are maintaining the infra to get additional complaining about infra integrity]) AM_CONDITIONAL([WANT_MAINTAIN], [test x"$GTMAINTAINER" != x]) AC_PATH_PROG([GTVERSION], [gt-version.sh], [false], [$GTCORE/scripts/$PATH_SEPARATOR$GTHOME/gtcore/scripts/]) AS_IF([test "x$GTSCRIPT" = xfalse], [cat<<