]> rtime.felk.cvut.cz Git - orte.git/blob - admin/idl.m4
JORTE: ignore 'int-to-pointer' and 'pointer-to-int' compiler warnings
[orte.git] / admin / idl.m4
1 # Add --enable-orte-idl option to configure.
2 # From Petr Smolik
3
4 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004
5 # Free Software Foundation, Inc.
6
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2, or (at your option)
10 # any later version.
11
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 # GNU General Public License for more details.
16
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
20 # 02111-1307, USA.
21
22 # serial 3
23
24 AC_DEFUN([AM_ORTE_IDL],
25 [AC_MSG_CHECKING([whether to enable orte IDL compiler])
26   dnl orte-idl is disabled by default
27   AC_ARG_ENABLE(orte-idl,
28 [  --enable-orte-idl  enable to compile orte IDL compiler],
29       USE_ORTE_IDL=$enableval,
30       USE_ORTE_IDL=no)
31   AC_MSG_RESULT([$USE_ORTE_IDL])
32
33   if test ${USE_ORTE_IDL} == "yes" ; then
34         PKG_CHECK_MODULES(LIBIDL, libIDL-2.0)
35         CFLAGS="$CFLAGS $LIBIDL_CFLAGS"
36         LIBS="$LIBS $LIBIDL_LIBS"
37         #popt
38         AC_CHECK_LIB([popt], [poptSetOtherOptionHelp])
39   fi
40
41   AM_CONDITIONAL(CONFIG_ORTE_IDL, [test $USE_ORTE_IDL = yes])
42   AC_SUBST(CONFIG_ORTE_IDL)     
43
44 ]
45 )
46
47 AU_DEFUN([jm_ORTE_IDL], [AM_ORTE_IDL])