~ubuntu-branches/ubuntu/raring/ibutils/raring-proposed

« back to all changes in this revision

Viewing changes to ibdm/configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Benoit Mortier
  • Date: 2010-01-11 22:22:00 UTC
  • Revision ID: james.westby@ubuntu.com-20100111222200-53kum2et5nh13rv3
Tags: upstream-1.2-OFED-1.4.2
ImportĀ upstreamĀ versionĀ 1.2-OFED-1.4.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl Process this file with autoconf to produce a configure script.
 
2
 
 
3
AC_INIT(ibdm/Fabric.h)
 
4
 
 
5
dnl use local config dir for extras
 
6
AC_CONFIG_AUX_DIR(config)
 
7
 
 
8
dnl Defines the Language
 
9
AC_LANG_CPLUSPLUS
 
10
 
 
11
dnl we use auto cheader
 
12
AM_CONFIG_HEADER(config.h)
 
13
 
 
14
dnl Auto make
 
15
AM_INIT_AUTOMAKE(ibdm,1.2)
 
16
 
 
17
dnl Provides control over re-making of all auto files
 
18
dnl We also use it to define swig dependencies so end
 
19
dnl users do not see them.
 
20
AM_MAINTAINER_MODE
 
21
 
 
22
dnl Required for cases make defines a MAKE=make ??? Why
 
23
AC_PROG_MAKE_SET
 
24
 
 
25
dnl Checks for programs.
 
26
AC_PROG_CXX
 
27
AC_PROG_CPP
 
28
AC_PROG_INSTALL
 
29
AC_PROG_LN_S
 
30
AC_PROG_MAKE_SET
 
31
MLX_PROG_SWIG(1.1.5, eq)
 
32
AM_PROG_LEX 
 
33
AC_PROG_YACC
 
34
 
 
35
dnl We will use libtool for making ...
 
36
AC_PROG_LIBTOOL
 
37
 
 
38
dnl For making dist we need not check any lib dependency
 
39
AC_ARG_ENABLE(libcheck,
 
40
[  --enable-libcheck    Enable Dependency Checking],
 
41
[case "${enableval}" in
 
42
  yes) libcheck=true ;;
 
43
  no)  libcheck=false ;;
 
44
  *) AC_MSG_ERROR(bad value ${enableval} for --enable-libcheck) ;; esac],[libcheck=true])
 
45
 
 
46
dnl Get the TCL defs: TCL_LIBS TCL_CPPFLAGS
 
47
MLX_LANG_TCL
 
48
 
 
49
dnl Checks for libraries.
 
50
 
 
51
dnl Checks for header files.
 
52
AC_HEADER_STDC
 
53
AC_CHECK_HEADERS([inttypes.h stdlib.h string.h])
 
54
 
 
55
dnl Checks for typedefs, structures, and compiler characteristics.
 
56
dnl AC_HEADER_STDBOOL
 
57
 
 
58
dnl For CPP there is absolutly no need for CONST etc
 
59
dnl moreover we mst somehow remoev them from the autoheader
 
60
dnl AC_C_CONST
 
61
dnl AC_C_INLINE
 
62
AC_LANG_CPLUSPLUS
 
63
AC_TYPE_SIZE_T
 
64
 
 
65
dnl Checks for library functions.
 
66
dnl AC_FUNC_MALLOC
 
67
dnl AC_FUNC_REALLOC
 
68
AC_CHECK_FUNCS([strchr strstr strtol strtoull index rindex])
 
69
AC_REPLACE_FUNCS(memset)
 
70
IS_INCLUDED_REGEX()
 
71
 
 
72
dnl Just in case that the current version does not support the 
 
73
dnl usage of LTLIBOBJS
 
74
 
 
75
dnl Xsed="sed -e s/^X//"
 
76
dnl LTLIBOBJS=`echo X"$LIBOBJS"|\
 
77
dnl           [$Xsed -e "s,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,"]`
 
78
dnl AC_SUBST(LTLIBOBJS)
 
79
 
 
80
dnl Define an input config option to control debug compile
 
81
AC_ARG_ENABLE(debug,
 
82
[  --enable-debug    Turn on debugging],
 
83
[case "${enableval}" in
 
84
  yes) debug=true ;;
 
85
  no)  debug=false ;;
 
86
  *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
 
87
esac],[debug=false])
 
88
AM_CONDITIONAL(DEBUG, test x$debug = xtrue)
 
89
 
 
90
dnl Define an input config option to control final package prefix:
 
91
dnl We compile and install in one dir - but we know eventually we 
 
92
dnl will be moved to FINAL_PREFIX
 
93
AC_ARG_WITH(final-prefix,
 
94
[  --with-final-prefix=<dir>  Let IBDM know it will eventually be moved there],
 
95
AC_SUBST(with_final_prefix)
 
96
AC_MSG_NOTICE(Using FINAL_PREFIX=$with_final_prefix)
 
97
,[final_prefix=""])
 
98
AM_CONDITIONAL(USE_FINAL_PREFIX, test x$with_final_prefix != x)
 
99
 
 
100
dnl Create the following Makefiles
 
101
AC_OUTPUT(Makefile replace/Makefile ibnl/Makefile src/Makefile ibdm/Makefile Clusters/Makefile doc/Makefile)
 
102