From: David Reiss Date: Tue, 17 Feb 2009 20:28:01 +0000 (+0000) Subject: Allow the Thrift compiler to be built without the Erlang generator. X-Git-Tag: 0.2.0~298 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=f3b0db3735f4f441eedc46548c96199eba3e2486;p=common%2Fthrift.git Allow the Thrift compiler to be built without the Erlang generator. - Use AX_THRIFT_GEN to make configure support --disable-gen-erl - Update the compiler Makefile.am to exclude the generator. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@745233 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/compiler/cpp/Makefile.am b/compiler/cpp/Makefile.am index 132462ca..6b21c675 100644 --- a/compiler/cpp/Makefile.am +++ b/compiler/cpp/Makefile.am @@ -12,7 +12,6 @@ thrift_SOURCES = src/thrifty.yy \ src/generate/t_generator.cc \ src/generate/t_php_generator.cc \ src/generate/t_xsd_generator.cc \ - src/generate/t_erl_generator.cc \ src/globals.h \ src/main.h \ src/platform.h \ @@ -58,6 +57,9 @@ endif if THRIFT_GEN_perl thrift_SOURCES += src/generate/t_perl_generator.cc endif +if THRIFT_GEN_erl +thrift_SOURCES += src/generate/t_erl_generator.cc +endif if THRIFT_GEN_cocoa thrift_SOURCES += src/generate/t_cocoa_generator.cc endif diff --git a/configure.ac b/configure.ac index 040ae06b..9a748c5a 100644 --- a/configure.ac +++ b/configure.ac @@ -162,6 +162,8 @@ AX_THRIFT_GEN(rb, [Ruby], yes) AM_CONDITIONAL([THRIFT_GEN_rb], [test "$ax_thrift_gen_rb" = "yes"]) AX_THRIFT_GEN(perl, [Perl], yes) AM_CONDITIONAL([THRIFT_GEN_perl], [test "$ax_thrift_gen_perl" = "yes"]) +AX_THRIFT_GEN(erl, [Erlang], yes) +AM_CONDITIONAL([THRIFT_GEN_erl], [test "$ax_thrift_gen_erl" = "yes"]) AX_THRIFT_GEN(cocoa, [Cocoa], yes) AM_CONDITIONAL([THRIFT_GEN_cocoa], [test "$ax_thrift_gen_cocoa" = "yes"]) AX_THRIFT_GEN(st, [Smalltalk], yes)