Emeric Vigier | 2f62582 | 2012-08-06 11:09:52 -0400 | [diff] [blame] | 1 | dnl Copyright (C) 1999-2005 Open Source Telecom Corporation. |
| 2 | dnl Copyright (C) 2006-2010 David Sugar, Tycho Softworks. |
| 3 | dnl |
| 4 | dnl This program is free software; you can redistribute it and/or modify |
| 5 | dnl it under the terms of the GNU General Public License as published by |
| 6 | dnl the Free Software Foundation; either version 2 of the License, or |
| 7 | dnl (at your option) any later version. |
| 8 | dnl |
| 9 | dnl This program is distributed in the hope that it will be useful, |
| 10 | dnl but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | dnl GNU General Public License for more details. |
| 13 | dnl |
| 14 | dnl You should have received a copy of the GNU General Public License |
| 15 | dnl along with this program; if not, write to the Free Software |
| 16 | dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 17 | dnl |
| 18 | dnl As a special exception to the GNU General Public License, if you |
| 19 | dnl distribute this file as part of a program that contains a configuration |
| 20 | dnl script generated by Autoconf, you may include it under the same |
| 21 | dnl distribution terms that you use for the rest of that program. |
| 22 | |
| 23 | AC_DEFUN([OST_AUTOMAKE_MODE],[ |
| 24 | AC_MSG_CHECKING([for genorated automake files]) |
| 25 | if test -z "[$1]" ; then |
| 26 | ost_AUTOMAKE_TEST=Makefile.in |
| 27 | else |
| 28 | ost_AUTOMAKE_TEST=[$1] |
| 29 | fi |
| 30 | if test ! -f $ost_AUTOMAKE_TEST ; then |
| 31 | AC_MSG_RESULT(missing) |
| 32 | automake -a |
| 33 | else |
| 34 | AC_MSG_RESULT(found) |
| 35 | fi |
| 36 | ]) |
| 37 | |
| 38 | AC_DEFUN([OST_MAINTAINER_MODE],[ |
| 39 | AM_MAINTAINER_MODE |
| 40 | if test -z "$MAINT" ; then |
| 41 | AC_MSG_CHECKING([for maintainer ftp distribution directory]) |
| 42 | if test -d ~ftp/pub ; then |
| 43 | FTPDIR=~ftp/pub |
| 44 | AC_MSG_RESULT(found) |
| 45 | else |
| 46 | AC_MSG_RESULT(missing) |
| 47 | fi |
| 48 | fi |
| 49 | AC_SUBST(FTPDIR) |
| 50 | ]) |
| 51 | |
| 52 | AC_DEFUN([AC_SUBST_DIR], [ |
| 53 | ifelse($2,,,$1="[$]$2") |
| 54 | result="***" |
| 55 | prior="A" |
| 56 | while test "$prior" != "$result" ; do |
| 57 | prior=`(echo "[$]$1")` |
| 58 | $1=`( |
| 59 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" |
| 60 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" |
| 61 | eval echo \""[$]$1"\" |
| 62 | )` |
| 63 | result=`(echo "[$]$1")` |
| 64 | done |
| 65 | AC_SUBST($1) |
| 66 | ]) |
| 67 | |