blob: 1fc81aff5e19efc843ceab428fd51f9f817234b0 [file] [log] [blame]
Emeric Vigier2f625822012-08-06 11:09:52 -04001dnl Copyright (C) 1999-2005 Open Source Telecom Corporation.
2dnl Copyright (C) 2006-2010 David Sugar, Tycho Softworks.
3dnl
4dnl This program is free software; you can redistribute it and/or modify
5dnl it under the terms of the GNU General Public License as published by
6dnl the Free Software Foundation; either version 2 of the License, or
7dnl (at your option) any later version.
8dnl
9dnl This program is distributed in the hope that it will be useful,
10dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
11dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12dnl GNU General Public License for more details.
13dnl
14dnl You should have received a copy of the GNU General Public License
15dnl along with this program; if not, write to the Free Software
16dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17dnl
18dnl As a special exception to the GNU General Public License, if you
19dnl distribute this file as part of a program that contains a configuration
20dnl script generated by Autoconf, you may include it under the same
21dnl distribution terms that you use for the rest of that program.
22
23AC_DEFUN([OST_PROG_CC_POSIX],[
24 AC_PROG_CC
25 AC_PROG_CPP
26 AC_ISC_POSIX
27 AC_MINIX]
28)
29
30AC_DEFUN([OST_PROG_COMMON],[
31 AC_REQUIRE([AC_PROG_INSTALL])
32 AC_REQUIRE([AC_PROG_MAKE_SET])
33])
34
35AC_DEFUN([OST_PROJ_LIBRARY],[
36 AC_REQUIRE([AM_PROG_LIBTOOL])
37 AC_REQUIRE([AC_PROG_RANLIB])
38 if test ! -z "[$2]" ; then
39 if test ! -z "[$3]" ; then
40 LT_[$1]_VERSION="-version-info [$3] -release [$2]"
41 else
42 LT_[$1]_VERSION="-release [$2]"
43 fi
44 AC_SUBST(LT_[$1]_VERSION)
45 fi
46])
47
48AC_DEFUN([OST_PROG_LIBVER],[
49 LT_MAJOR="`echo $LT_VERSION | sed s/:.*$//`"
50 LT_MINOR="`echo $LT_VERSION | sed s/.*://`"
51 LT_SUBVER="$LT_MAJOR.$LT_MINOR"
52 AC_SUBST(LT_RELEASE)
53 AC_SUBST(LT_SUBVER)
54 AC_SUBST(LT_MAJOR)
55 AC_SUBST(LT_MINOR)
56])
57
58
59AC_DEFUN([OST_PROG_LIBRARY],[
60 AC_REQUIRE([AM_PROG_LIBTOOL])
61 AC_REQUIRE([AC_PROG_RANLIB])
62 if test ! -z "[$2]" ; then
63 LT_[$1]_VERSION="-version-info [$2]"
64 AC_SUBST(LT_[$1]_VERSION)
65 fi
66])
67