2008-02-27 01:55:30 +00:00
|
|
|
dnl @synopsis AX_THRIFT_GEN(SHORT_LANGUAGE, LONG_LANGUAGE, DEFAULT)
|
2008-03-02 07:00:19 +00:00
|
|
|
dnl @synopsis AX_THRIFT_LIB(SHORT_LANGUAGE, LONG_LANGUAGE, DEFAULT)
|
2008-02-27 01:55:30 +00:00
|
|
|
dnl
|
|
|
|
dnl Allow a particular language generator to be disabled.
|
2008-03-02 07:00:19 +00:00
|
|
|
dnl Allow a particular language library to be disabled.
|
2008-02-27 01:55:30 +00:00
|
|
|
dnl
|
2008-03-02 07:00:19 +00:00
|
|
|
dnl These macros have poor error handling and are poorly documented.
|
|
|
|
dnl They are intended only for internal use by the Thrift compiler.
|
2008-02-27 01:55:30 +00:00
|
|
|
dnl
|
|
|
|
dnl @version 2008-02-20
|
|
|
|
dnl @license AllPermissive
|
2009-03-30 22:52:29 +00:00
|
|
|
dnl
|
|
|
|
dnl Copyright (C) 2009 David Reiss
|
|
|
|
dnl Copying and distribution of this file, with or without modification,
|
|
|
|
dnl are permitted in any medium without royalty provided the copyright
|
|
|
|
dnl notice and this notice are preserved.
|
2008-02-27 01:55:30 +00:00
|
|
|
|
2008-03-02 07:00:19 +00:00
|
|
|
AC_DEFUN([AX_THRIFT_LIB],
|
|
|
|
[
|
|
|
|
AC_ARG_WITH($1,
|
|
|
|
AC_HELP_STRING([--with-$1], [build the $2 library @<:@default=$3@:>@]),
|
|
|
|
[with_$1="$withval"],
|
|
|
|
[with_$1=$3]
|
|
|
|
)
|
2010-08-31 16:51:20 +00:00
|
|
|
have_$1=no
|
2008-03-02 07:00:19 +00:00
|
|
|
dnl What we do here is going to vary from library to library,
|
|
|
|
dnl so we can't really generalize (yet!).
|
|
|
|
])
|