Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
f97d1bc5
Commit
f97d1bc5
authored
10 years ago
by
Hisham Muhammad
Browse files
Options
Download
Plain Diff
Merge branch 'master' into wip
parents
cc269741
aed9b9d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile.am
+1
-1
Makefile.am
configure.ac
+13
-0
configure.ac
with
14 additions
and
1 deletion
+14
-1
Makefile.am
View file @
f97d1bc5
...
...
@@ -12,7 +12,7 @@ applications_DATA = htop.desktop
pixmapdir
=
$(datadir)
/pixmaps
pixmap_DATA
=
htop.png
htop_CFLAGS
=
-pedantic
-Wall
-W
extra
-std
=
c99
-rdynamic
-D_XOPEN_SOURCE_EXTENDED
-DSYSCONFDIR
=
\"
$(sysconfdir)
\"
-I
"
$(my_htop_platform)
"
htop_CFLAGS
=
-pedantic
-Wall
$(w
extra
_flag)
-std
=
c99
-rdynamic
-D_XOPEN_SOURCE_EXTENDED
-DSYSCONFDIR
=
\"
$(sysconfdir)
\"
-I
"
$(my_htop_platform)
"
AM_CPPFLAGS
=
-DNDEBUG
myhtopsources
=
AvailableMetersPanel.c CategoriesPanel.c CheckItem.c
\
...
...
This diff is collapsed.
Click to expand it.
configure.ac
View file @
f97d1bc5
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment