Develop and Download Open Source Software

Browse CVS Repository

Annotation of /xoonips/AL/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.7.2.1 - (hide annotations) (download)
Thu Aug 24 09:59:20 2006 UTC (17 years, 7 months ago) by aga4096
Branch: XOONIPS_STABLE_2
CVS Tags: tag20061115, RELENG_2_0_0a_RELEASE
Changes since 1.7: +14 -1 lines
・[ #8723 ] STABLE2 のALでDB接続文字コード指定  のパッチをあてた.

1 orrisroot 1.1 # -*- Autoconf -*-
2     # Process this file with autoconf to produce a configure script.
3    
4 orrisroot 1.7 AC_PREREQ([2.59])
5 aga4096 1.7.2.1 AC_REVISION($Id: configure.in,v 1.7 2005/12/10 11:55:02 orrisroot Exp $)
6 orrisroot 1.1
7 orrisroot 1.3 AC_INIT([xnpal], [1.0.0], [software@ni.brain.riken.jp])
8 orrisroot 1.1
9     AC_CONFIG_SRCDIR([account.cc])
10     AM_CONFIG_HEADER([config.h])
11     AC_CONFIG_AUX_DIR(config)
12     AC_CANONICAL_TARGET
13     AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
14    
15    
16     AM_MAINTAINER_MODE
17    
18     # Checks for programs.
19     AM_DISABLE_STATIC
20     AC_PROG_CXX
21     AC_PROG_CC
22     AC_PROG_CPP
23     AC_PROG_INSTALL
24     AC_PROG_LN_S
25     AC_PROG_MAKE_SET
26     AC_PROG_RANLIB
27     AC_LIBTOOL_DLOPEN
28     AC_PROG_LIBTOOL
29    
30 orrisroot 1.5 AM_XNI_PATH_XML2([2.6.17])
31 orrisroot 1.2 AM_PATH_IODBC([3.0.6])
32 orrisroot 1.5 AM_PATH_UNIXODBC([2.2.9])
33 orrisroot 1.1 AM_PATH_ZLIB
34     AM_PATH_OPENSSL
35 orrisroot 1.2 AM_PATH_PHP([4.3.2])
36 orrisroot 1.1
37     ODBC_CFLAGS=""
38     ODBC_LIBS=""
39     if test x"$UNIXODBC_LIBS" = x ; then
40     if test x"$IODBC_LIBS" = x ; then
41     AC_MSG_ERROR([odbc library required but not found])
42     else
43     ODBC_CFLAGS="$IODBC_CFLAGS"
44     ODBC_LIBS="$IODBC_LIBS"
45     fi
46     else
47     ODBC_CFLAGS="$UNIXODBC_CFLAGS"
48     ODBC_LIBS="$UNIXODBC_LIBS"
49     fi
50    
51     XNPAL_CFLAGS="$XML_CPPFLAGS $ODBC_CFLAGS $ZLIB_CFLAGS $OPENSSL_CFLAGS"
52     XNPAL_LIBADD="$XML_LIBS $ODBC_LIBS $ZLIB_LIBS $OPENSSL_LIBS"
53    
54     AC_SUBST([XNPAL_CFLAGS])
55     AC_SUBST([XNPAL_LIBADD])
56    
57 aga4096 1.7.2.1 dnl check mysql charset for 4.1 or higher
58     AC_MSG_CHECKING([if mysql charset setting wanted])
59     AC_ARG_WITH(mysql-charset, AC_HELP_STRING([--with-mysql-charset], [Set MySQL charset (for version 4.1 or higher)]), mysql_charset="$withval", mysql_charset="")
60     if test x-$mysql_charset != "x-"; then
61     AC_MSG_RESULT([yes ($mysql_charset)])
62     AC_DEFINE_UNQUOTED(MYSQL_CHARSET,"$mysql_charset",[mysql charset])
63     AC_DEFINE(USE_MYSQL_CHARSET,,[mysql charset setting required])
64     else
65     AC_MSG_RESULT(no)
66     fi
67     AC_SUBST([MYSQL_CHARSET])
68     AC_SUBST([USE_MYSQL_CHARSET])
69    
70 orrisroot 1.4 dnl check where to log
71     AC_MSG_CHECKING(if logging to syslog wanted)
72     AC_ARG_ENABLE(syslog, AC_HELP_STRING([--enable-syslog], [Enable logging to syslog]), syslog=yes)
73     if test x-$syslog = "x-yes"; then
74     AC_MSG_RESULT(yes)
75     AC_DEFINE(USE_SYSLOG,,[logging to syslog enabled])
76     else
77     AC_MSG_RESULT(no)
78     fi
79     AC_SUBST(USE_SYSLOG)
80    
81 orrisroot 1.1 # Checks for header files.
82     AC_HEADER_STDC
83     AC_CHECK_HEADERS([arpa/inet.h fcntl.h netinet/in.h stddef.h stdlib.h string.h sys/socket.h syslog.h unistd.h utime.h])
84    
85     # Checks for typedefs, structures, and compiler characteristics.
86     AC_C_CONST
87     AC_TYPE_SIZE_T
88     AC_STRUCT_TM
89 orrisroot 1.6 AC_CHECK_TYPE(time_t, long)
90 orrisroot 1.1
91     # Checks for library functions.
92     AC_FUNC_MALLOC
93     AC_FUNC_STAT
94     AC_FUNC_STRTOD
95     AC_CHECK_FUNCS([memset strchr strncasecmp])
96    
97     AC_CONFIG_FILES([Makefile xnpal-config])
98     AC_OUTPUT

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26