root/DRIM_GUI/lime-perf/trunk/configure.in

Revision 1129, 2.6 kB (checked in by dcwang, 2 years ago)

sync with our internal CVS server, fix some bugs when develop Asianux 3.0 SP1 and Red Flag Asianux 3.0 SP1 Tool CD

Line 
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ(2.59)
5 AC_INIT(lime-perf, 1.1.15,taohe@redflag-linux.com,lime-perf)
6 AM_INIT_AUTOMAKE(lime-perf , 1.1.15)
7 AC_CONFIG_SRCDIR([lime-perf.h])
8 AC_CONFIG_HEADER([config.h])
9 AM_GNU_GETTEXT([external])
10 AM_GNU_GETTEXT_VERSION(0.14)
11 # Checks for programs.
12 AC_PROG_CXX
13 AC_PROG_CC
14 AC_PROG_LEX
15 AC_PROG_LN_S
16 AC_PROG_YACC
17 AC_PROG_LIBTOOL
18 # Checks for libraries.
19 # FIXME: Replace `main' with a function in `-lX11':
20 AC_CHECK_LIB([X11], [main])
21 # FIXME: Replace `main' with a function in `-lXext':
22 AC_CHECK_LIB([Xext], [main])
23 # FIXME: Replace `main' with a function in `-lm':
24 AC_CHECK_LIB([m], [main])
25
26 CHECK_OPENWBEM(3.2.2)
27
28 PKG_CHECK_MODULES(QT, qt-mt >= 3.3)
29 AC_SUBST(QT_CFLAGS)
30 AC_SUBST(QT_LIBS)
31
32 AC_PATH_PROGS(MOC,moc)
33 if test "x$MOC" = x; then
34 AC_MSG_ERROR([I couldn't find moc; make sure it's installed and in your path])
35 fi
36 AC_PATH_PROGS(UIC,uic)
37 if test "x$UIC" = x; then
38 AC_MSG_ERROR([I couldn't find uic; make sure it's installed and in your path])
39 fi
40
41
42 AC_ARG_WITH(lime-common,
43   [ --with-lime-common=<path> prefix of lime-common installation.],
44   [
45         if test "x$withval" != "xno" ; then
46                 LIME_COMMON_LIBS="-L$withval -llime-common"
47                 LIME_COMMON_CFLAGS="-I$withval"
48                 AC_SUBST(LIME_COMMON_CFLAGS)
49                 AC_SUBST(LIME_COMMON_LIBS)
50         fi
51   ],
52   [PKG_CHECK_MODULES(LIME_COMMON,lime-common >= 0.6.0)
53   AC_SUBST(LIME_COMMON_CFLAGS)
54   AC_SUBST(LIME_COMMON_LIBS)])
55
56 AC_ARG_WITH(lmc,
57   [ --with-lmc=<path> prefix of lmc headers.],
58   [
59         if test "x$withval" != "xno" ; then
60                 LMC_CFLAGS="-I$withval/src"
61                 AC_SUBST(LMC_CFLAGS)
62         fi
63   ],
64   [PKG_CHECK_MODULES(LMC,lmc >= 0.7.1)
65   AC_SUBST(LMC_CFLAGS)])
66
67
68 # Checks for header files.
69 AC_HEADER_STDC
70 AC_CHECK_HEADERS([arpa/inet.h libintl.h locale.h stdlib.h sys/ioctl.h sys/socket.h unistd.h])
71
72 # Checks for typedefs, structures, and compiler characteristics.
73 AC_HEADER_STDBOOL
74 AC_C_CONST
75 AC_TYPE_UID_T
76 AC_C_VOLATILE
77
78 if test x"$docdir" != x""; then
79    pkgdocdir=${docdir}
80 else
81    pkgdocdir=${datadir}/doc/${PACKAGE_NAME}
82 fi
83
84 AC_DEFINE_DIR(PKGDOCDIR,[pkgdocdir],[location where help file will be installed])
85
86 if test x"$localedir" == x""; then
87    localedir=${datadir}/locale
88 fi
89
90 AC_DEFINE_DIR(LOCALEDIR,[localedir],[location where locale files will be installed])
91 AC_SUBST(pkgdocdir)
92
93 # Checks for library functions.
94 AC_PROG_GCC_TRADITIONAL
95 AC_FUNC_MALLOC
96 AC_CHECK_FUNCS([inet_ntoa socket strtoul])
97 AC_PROG_CC
98 AC_PROG_INSTALL
99 AC_CONFIG_FILES(lime-perf.spec lib/lime-policy.pc)
100 AC_OUTPUT(
101                 Makefile
102                 src/Makefile
103                 src/common/Makefile
104                 src/libsrc/Makefile
105                 src/binsrc/Makefile
106                 lib/Makefile
107                 po/Makefile.in
108                 m4/Makefile
109                 )
Note: See TracBrowser for help on using the browser.