Jake Farrell | 60723b8 | 2013-03-23 22:38:48 -0400 | [diff] [blame] | 1 | dnl @synopsis AX_THRIFT_GEN(SHORT_LANGUAGE, LONG_LANGUAGE, DEFAULT) |
| 2 | dnl @synopsis AX_THRIFT_LIB(SHORT_LANGUAGE, LONG_LANGUAGE, DEFAULT) |
| 3 | dnl |
| 4 | dnl Allow a particular language generator to be disabled. |
| 5 | dnl Allow a particular language library to be disabled. |
| 6 | dnl |
| 7 | dnl These macros have poor error handling and are poorly documented. |
| 8 | dnl They are intended only for internal use by the Thrift compiler. |
| 9 | dnl |
| 10 | dnl @version 2008-02-20 |
| 11 | dnl @license AllPermissive |
| 12 | dnl |
| 13 | dnl Copyright (C) 2009 David Reiss |
| 14 | dnl Copying and distribution of this file, with or without modification, |
| 15 | dnl are permitted in any medium without royalty provided the copyright |
| 16 | dnl notice and this notice are preserved. |
| 17 | |
| 18 | AC_DEFUN([AX_THRIFT_LIB], |
| 19 | [ |
| 20 | AC_ARG_WITH($1, |
| 21 | AC_HELP_STRING([--with-$1], [build the $2 library @<:@default=$3@:>@]), |
| 22 | [with_$1="$withval"], |
| 23 | [with_$1=$3] |
| 24 | ) |
| 25 | have_$1=no |
| 26 | dnl What we do here is going to vary from library to library, |
| 27 | dnl so we can't really generalize (yet!). |
| 28 | ]) |