-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.in
48 lines (40 loc) · 1.12 KB
/
configure.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
AC_INIT(configure.in)
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(csql, 2.7)
AC_LANG_CPLUSPLUS
AC_PROG_CXX
AM_PROG_LIBTOOL
AC_C_BIGENDIAN
AC_CANONICAL_HOST
AC_PROG_YACC
AM_PROG_LEX
case "${host_os}" in
*linux* )
OSTYPE=LINUX
;;
esac
case "${host_cpu}" in
i686 | i386 )
CPUTYPE=i686
;;
x86_64 )
CPUTYPE=x86_64
;;
sparc )
CPUTYPE=sparc
;;
amd64 )
CPUTYPE=x86_64
;;
esac
echo "#ifndef BUILD_H" >build.h
echo "#define BUILD_H" >>build.h
echo "#define CSQL" >>build.h
echo "#define ${OSTYPE}" >>build.h
echo "#define ${CPUTYPE}" >>build.h
echo "#endif" >>build.h
cp build.h include
AC_CHECK_HEADERS(stdio.h sys/mman.h sys/shm.h sys/errno.h crypt.h unistd.h \
string.h sys/types.h sys/stat.h fcntl.h pthread.h math.h \
signal.h)
AC_OUTPUT(Makefile src/Makefile include/Makefile src/base/Makefile src/storage/Makefile src/sql/Makefile src/adapter/Makefile src/gateway/Makefile src/cache/Makefile src/network/Makefile src/sqllog/Makefile src/tools/Makefile src/server/Makefile src/jdbc/Makefile src/odbc/Makefile src/oci/Makefile src/sqlnetwork/Makefile src/faulttest/Makefile)