blob: 77a6fb37791cc5e230d405a0e8d9b26f9a620b36 (
plain)
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
|
--- a/configure.in
+++ b/configure.in
@@ -35,8 +35,8 @@
MYPCFILES="kyotocabinet.pc"
# Building flags
-MYCFLAGS="-Wall -ansi -pedantic -fPIC -fsigned-char -g0"
-MYCXXFLAGS="-Wall -fPIC -fsigned-char -g0"
+MYCFLAGS="-Wall -ansi -pedantic -fPIC -fsigned-char"
+MYCXXFLAGS="-Wall -fPIC -fsigned-char"
MYCPPFLAGS="-I. -I\$(INCLUDEDIR)"
MYCPPFLAGS="$MYCPPFLAGS -DNDEBUG -D_GNU_SOURCE=1"
MYCPPFLAGS="$MYCPPFLAGS -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D__EXTENSIONS__"
@@ -193,28 +193,6 @@
# Byte order
AC_C_BIGENDIAN(MYCPPFLAGS="$MYCPPFLAGS -D_MYBIGEND")
-# System-depending optimization
-printf 'checking for 64-bit availability... '
-if printf 'main() {}' | $CC -xc -m64 -o config.tmp - >config.tmp 2>&1
-then
- MYCFLAGS="-m64 $MYCFLAGS"
- MYCXXFLAGS="-m64 $MYCXXFLAGS"
- printf 'yes\n'
-else
- printf 'no\n'
-fi
-if test "$enable_opt" != "no"
-then
- printf 'checking for CPU optimization availability... '
- if printf 'main() {}' | $CC -xc -march=native -o config.tmp - >config.tmp 2>&1
- then
- MYCFLAGS="-march=native $MYCFLAGS"
- MYCXXFLAGS="-march=native $MYCXXFLAGS"
- printf 'yes\n'
- else
- printf 'no\n'
- fi
-fi
printf 'checking for useless warnings... '
if printf 'main() {}' | $CC -xc \
-Wno-unused-but-set-variable -Wno-unused-but-set-parameter -o config.tmp - >config.tmp 2>&1
|