diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2015-02-04 12:19:52 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-02-04 12:19:52 -0200 |
commit | f97d1bc54af13e7c801bf6d83e95661f25695719 (patch) | |
tree | c49ef33241f63cb6b6629ade8190951e7779ae63 /configure.ac | |
parent | cc269741295610743b50b0d0fa650e79dd2208af (diff) | |
parent | aed9b9d18ebcdeb3d861c26eaf2f46b9616db2aa (diff) |
Merge branch 'master' into wip
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index b0801441..a13f7022 100644 --- a/configure.ac +++ b/configure.ac @@ -70,6 +70,19 @@ AC_TRY_COMPILE(AC_INCLUDES_DEFAULT, [char *a; a = strdup("foo"); int i = 0; i++; AC_MSG_ERROR([htop is written in C99. A newer version of gcc is required.])) CFLAGS="$save_cflags" +save_cflags="${CFLAGS}" +CFLAGS="$CFLAGS -Wextra" +AC_MSG_CHECKING([if compiler supports -Wextra]) +AC_TRY_COMPILE([], [], [ + wextra_flag=-Wextra + AC_MSG_RESULT([yes]) +],[ + wextra_flag= + AC_MSG_RESULT([no]) +]) +CFLAGS="$save_cflags" +AC_SUBST(wextra_flag) + # Checks for features and flags. # ---------------------------------------------------------------------- PROCDIR=/proc |