root/lang/cplusplus/i3/configure.ac @ 14879

Revision 14879, 2.9 kB (checked in by saturday06, 5 years ago)

正直にQT4に対応してないって言ってくれYO

Line 
1#                                               -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ([2.61])
5AC_INIT([i3],[1.0],[dyob@lunaport.net])
6AC_CONFIG_AUX_DIR([build-aux])
7AM_INIT_AUTOMAKE([foreign])
8AC_CONFIG_SRCDIR([src/Main.cpp])
9AC_CONFIG_HEADER([config.h])
10
11# ---------------------------------------
12# we don't like default CFLAGS(-O2 -g).
13
14#
15# CFLAGS -> i3_CFLAGS_RELEASE, i3_CFLAGS_DEBUG
16#
17
18AC_SUBST(CFLAGS)
19AC_SUBST(i3_CFLAGS_RELEASE)
20AC_SUBST(i3_CFLAGS_DEBUG)
21if test "" = "$CFLAGS"; then
22    CFLAGS=" "
23    i3_CFLAGS_RELEASE="-O3 -DNDEBUG"
24    i3_CFLAGS_DEBUG="-g -pg -fprofile-arcs -ftest-coverage -D_DEBUG"
25else
26    i3_CFLAGS_RELEASE=
27    i3_CFLAGS_DEBUG=
28fi
29
30#
31# CXXFLAGS -> i3_CXXFLAGS_RELEASE, i3_CXXFLAGS_DEBUG
32#
33
34AC_SUBST(CXXFLAGS)
35AC_SUBST(i3_CXXFLAGS_RELEASE)
36AC_SUBST(i3_CXXFLAGS_DEBUG)
37if test "" = "$CXXFLAGS"; then
38    CXXFLAGS=" "
39    i3_CXXFLAGS_RELEASE="-O3 -DNDEBUG"
40    i3_CXXFLAGS_DEBUG=" -Isrc/gch/i3_debug -g -pg \
41                        -fprofile-arcs -ftest-coverage -D_DEBUG "
42else
43    i3_CXXFLAGS_RELEASE=
44    i3_CXXFLAGS_DEBUG=
45fi
46
47
48# ---------------------------------------
49# Checks for programs.
50AC_PROG_CC
51AC_GNU_SOURCE
52AC_PROG_CXX
53
54# ---------------------------------------
55# Options
56AC_ARG_ENABLE(debug,
57AS_HELP_STRING([--enable-debug], [build debug binaries]),
58#enable_debug="$enableval", enable_debug="no")
59enable_debug="$enableval", enable_debug="yes")
60
61AM_CONDITIONAL(ENABLE_DEBUG, test "$enable_debug" = "yes")
62
63# ---------------------------------------
64# Checks for libraries.
65
66#
67# boost
68#
69
70AX_BOOST_BASE([1.35.0])
71#AX_BOOST_UNIT_TEST_FRAMEWORK
72
73#
74# pthread
75#
76
77ACX_PTHREAD
78
79#
80# gettext
81#
82localedir='${prefix}/share/locale'
83AC_SUBST(localedir)
84
85# zenbu youi!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
86ALL_LINGUAS="ja"
87AM_GNU_GETTEXT
88
89# follow cygwin & mingw version
90AM_GNU_GETTEXT_VERSION([0.17])
91
92# GCC LOCAL: Make USE_INCLUDED_LIBINTL visible to C code.
93if test $USE_INCLUDED_LIBINTL = yes; then
94  AC_DEFINE([USE_INCLUDED_LIBINTL], 1,
95  [Define to use the libintl included with this package instead of any
96  version in the system libraries.])
97fi
98
99# ---------------------------------------
100# Checks for header files.
101AC_CHECK_HEADERS([atlstdthunk.h])
102AC_CHECK_HEADERS([xbyak.h])
103
104# ---------------------------------------
105# Checks for typedefs, structures, and compiler characteristics.
106
107
108# ---------------------------------------
109# Checks for library functions.
110
111# ---------------------------------------
112# OS
113
114gw_CHECK_QT
115
116case "$host_os" in
117    mingw*)
118        use_windows_api=true
119        ;;
120    cygwin*)
121        use_windows_api=true
122        ;;
123    *)
124        ;;
125esac
126
127AM_CONDITIONAL(USE_WINDOWS_API, test x$use_windows_api = xtrue)
128AC_SUBST(USE_WINDOWS_API)
129
130# ---------------------------------------
131AC_CONFIG_FILES([Makefile intl/Makefile po/Makefile.in])
132AC_OUTPUT
133
134echo "Then type 'make' to make ${PACKAGE} . Good luck. "
135
Note: See TracBrowser for help on using the browser.