annotate lib/swig/swigwin-2.0.11/Tools/config/ac_compile_warnings.m4 @ 2575:a76d408c5132 tip

DrawTranslucent -> DrawTextureGrayShade Removed old texture drawing stuff
author a.parshin
date Wed, 09 Mar 2016 01:39:52 +0200
parents b3009adc0e2f
children
rev   line source
1899
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
1 dnl @synopsis AC_COMPILE_WARNINGS
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
2 dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
3 dnl Set the maximum warning verbosity according to C and C++ compiler used.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
4 dnl Currently supports g++ and gcc.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
5 dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
6 dnl The compiler options are always added CFLAGS and CXXFLAGS even if
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
7 dnl these are overidden at configure time. Removing the maximum warning
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
8 dnl flags can be removed with --without-maximum-compile-warnings. For example:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
9 dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
10 dnl ./configure --without-maximum-compile-warnings CFLAGS= CXXFLAGS=
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
11 dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
12 dnl @category Misc
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
13 dnl @author Loic Dachary <loic@senga.org>
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
14 dnl @author William Fulton <wsf@fultondesigns.co.uk>
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
15 dnl @version 2005-04-29
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
16 dnl @license GPLWithACException
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
17
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
18 AC_DEFUN([AC_COMPILE_WARNINGS], [
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
19 AC_MSG_CHECKING([maximum warning verbosity option])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
20 AC_REQUIRE([AC_PROG_CC])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
21 AC_REQUIRE([AC_PROG_CXX])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
22
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
23 AC_ARG_WITH([maximum-compile-warnings],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
24 AS_HELP_STRING([--without-maximum-compile-warnings],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
25 [Disable maximum warning verbosity]),
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
26 [ac_compile_warnings_on="$withval"],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
27 [ac_compile_warnings_on=""])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
28
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
29 if test x"$ac_compile_warnings_on" = xno
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
30 then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
31 ac_compile_warnings_msg=no
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
32 else
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
33 if test -n "$CXX"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
34 then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
35 if test "$GXX" = "yes"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
36 then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
37 ac_compile_warnings_opt='-Wall -W -ansi -pedantic'
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
38 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
39 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
40 ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
41 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
42
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
43 if test -n "$CC"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
44 then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
45 if test "$GCC" = "yes"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
46 then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
47 ac_compile_warnings_opt='-Wall -W -ansi -pedantic'
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
48 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
49 CFLAGS="$CFLAGS $ac_compile_warnings_opt"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
50 ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
51 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
52 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
53 AC_MSG_RESULT([$ac_compile_warnings_msg])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
54 unset ac_compile_warnings_msg
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
55 unset ac_compile_warnings_opt
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
56 ])