pike.git/
src/
configure.in
Branch:
Tag:
Non-build tags
All tags
No tags
2006-07-23
2006-07-23 21:37:53 by Martin Stjernholm <mast@lysator.liu.se>
72bb7caa948e28f58cbc47e60c0e9b09edaa1b13 (
75
lines) (+
48
/-
27
)
[
Show
|
Annotate
]
Branch:
7.9
Try -mtune before -mcpu to avoid warnings from gcc 4.0.
Rev: src/configure.in:1.974
1:
-
AC_REVISION("$Id: configure.in,v 1.
973
2006/07/23
16
:
00
:
36
nilsson
Exp $")
+
AC_REVISION("$Id: configure.in,v 1.
974
2006/07/23
21
:
37
:
53
mast
Exp $")
AC_INIT(interpret.c) AC_CONFIG_HEADER(machine.h)
1756:
]) ;; i586)
+
AC_SYS_COMPILER_FLAG(-mtune=pentium,mtune_pentium,CFLAGS,[
AC_SYS_COMPILER_FLAG(-mcpu=pentium,mcpu_pentium,CFLAGS,[ AC_SYS_COMPILER_FLAG(-mpentium,pentium,CFLAGS) ])
-
+
])
;; i686)
-
+
AC_SYS_COMPILER_FLAG(-mtune=i686,mtune_i686,CFLAGS,[
AC_SYS_COMPILER_FLAG(-mcpu=i686,mcpu_i686,CFLAGS,[ AC_SYS_COMPILER_FLAG(-mpentiumpro,pentiumpro,CFLAGS,[ AC_SYS_COMPILER_FLAG(-mcpu=pentium,mcpu_pentium,CFLAGS,[
1768:
]) ]) ])
+
])
# AC_SYS_COMPILER_FLAG(-march=i686,march_i686,CFLAGS) ;; x86_64) AC_SYS_COMPILER_FLAG(-m64,m64,CFLAGS,[
-
+
AC_SYS_COMPILER_FLAG(-mtune=i686,mtune_i686,CFLAGS,[
AC_SYS_COMPILER_FLAG(-mcpu=i686,mcpu_i686,CFLAGS,[ AC_SYS_COMPILER_FLAG(-mpentiumpro,pentiumpro,CFLAGS,[ AC_SYS_COMPILER_FLAG(-mcpu=pentium,mcpu_pentium,CFLAGS,[
1779:
]) ]) ])
+
])
], [ BUNDLE_FLAGS="$BUNDLE_FLAGS --build=x86_64" ])
1788:
case "`optisa \`isalist 2>/dev/null\` 2>/dev/null || isalist 2>/dev/null`" in *amd64*) AC_SYS_COMPILER_FLAG(-m64,m64,CFLAGS,[
+
AC_SYS_COMPILER_FLAG(-mtune=i686,mtune_i686,CFLAGS,[
AC_SYS_COMPILER_FLAG(-mcpu=i686,mcpu_i686,CFLAGS,[ AC_SYS_COMPILER_FLAG(-mpentiumpro,pentiumpro,CFLAGS,[ AC_SYS_COMPILER_FLAG(-mcpu=pentium,mcpu_pentium,CFLAGS,[
1795:
]) ]) ])
+
])
], [ BUNDLE_FLAGS="$BUNDLE_FLAGS --build=x86_64" ]) # AC_SYS_COMPILER_FLAG(-march=i686,march_i686,CFLAGS) ;; *pentium_pro*)
-
+
AC_SYS_COMPILER_FLAG(-mtune=i686,mtune_i686,CFLAGS,[
AC_SYS_COMPILER_FLAG(-mcpu=i686,mcpu_i686,CFLAGS,[ AC_SYS_COMPILER_FLAG(-mpentiumpro,pentiumpro,CFLAGS,[ AC_SYS_COMPILER_FLAG(-mcpu=pentium,mcpu_pentium,CFLAGS,[
1808:
]) ]) ])
+
])
# AC_SYS_COMPILER_FLAG(-march=i686,march_i686,CFLAGS) ;; *pentium*)
-
+
AC_SYS_COMPILER_FLAG(-mtune=pentium,mtune_pentium,CFLAGS,[
AC_SYS_COMPILER_FLAG(-mcpu=pentium,mcpu_pentium,CFLAGS,[ AC_SYS_COMPILER_FLAG(-mpentium,pentium,CFLAGS,[ AC_SYS_COMPILER_FLAG(-m486,486,CFLAGS) ]) ])
-
+
])
;; esac ;;
2249:
# MinGW system. cat <<\EOF #!/bin/sh
-
# Automatically generated by $Id: configure.in,v 1.
973
2006/07/23
16
:
00
:
36
nilsson
Exp $.
+
# Automatically generated by $Id: configure.in,v 1.
974
2006/07/23
21
:
37
:
53
mast
Exp $.
# MinGW-version. Do NOT edit. posix_name="`cat`" posix_prefix="/"
2287:
# Native POSIX system. cat <<\EOF #!/bin/sh
-
# Automatically generated by $Id: configure.in,v 1.
973
2006/07/23
16
:
00
:
36
nilsson
Exp $.
+
# Automatically generated by $Id: configure.in,v 1.
974
2006/07/23
21
:
37
:
53
mast
Exp $.
# POSIX-version. Do NOT edit. cat EOF
2296:
# rntcl-style cat <<\EOF #!/bin/sh
-
# Automatically generated by $Id: configure.in,v 1.
973
2006/07/23
16
:
00
:
36
nilsson
Exp $.
+
# Automatically generated by $Id: configure.in,v 1.
974
2006/07/23
21
:
37
:
53
mast
Exp $.
# RNTCL-version. Do NOT edit. sed -e "$PIKE_PATH_TRANSLATE" EOF
7473:
OPT_GOT_OFLAG=no OPT_GOT_MCPU=no
+
OPT_GOT_MTUNE=no
OPT_GOT_MARCH=no NEW_CFLAGS= NEW_OPTIMIZE=
7523:
OPT_GOT_MCPU=yes fi ;;
+
-mtune*)
+
if test "x$OPT_GOT_MTUNE" = xno; then
+
NEW_CFLAGS="$NEW_CFLAGS $opt"
+
OPT_GOT_MTUNE=yes
+
fi
+
;;
-march*) if test "x$OPT_GOT_MARCH" = xno; then NEW_CFLAGS="$NEW_CFLAGS $opt"
7541:
unset NEW_CFLAGS unset OPT_GOT_OFLAG unset OPT_GOT_MCPU
+
unset OPT_GOT_MTUNE
unset OPT_GOT_ARCH AC_SUBST(INTERPRET_DEOPTIMIZE)