Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
14591e0d
Commit
14591e0d
authored
Nov 09, 2006
by
'Alexey Rodriguez
Browse files
Added configure gadgets to detect Papi, and fixed build problems
parent
2b522ade
Changes
3
Show whitespace changes
Inline
Side-by-side
configure.ac
View file @
14591e0d
...
...
@@ -1200,6 +1200,17 @@ if test -n "$GTK_CONFIG"; then
fi
AC_SUBST([GTK_CONFIG])
#Checking for PAPI
AC_CHECK_LIB(papi, PAPI_library_init, HavePapiLib=YES, HavePapiLib=NO)
AC_CHECK_HEADER([papi.h], [HavePapiHeader=YES], [HavePapiHeader=NO])
AC_SUBST(HavePapiLib)
AC_SUBST(HavePapiHeader)
if test "$HavePapiLib" = "YES" -a "$HavePapiHeader" = "YES"; then
USE_PAPI=YES
fi
AC_SUBST(USE_PAPI)
AC_CONFIG_FILES([mk/config.mk ghc.spec docs/users_guide/ug-book.xml])
AC_CONFIG_COMMANDS([mk/stamp-h],[echo timestamp > mk/stamp-h])
AC_OUTPUT
mk/config.mk.in
View file @
14591e0d
...
...
@@ -987,6 +987,9 @@ UNAME = uname
# GTK+
GTK_CONFIG
=
@GTK_CONFIG@
# PAPI
USE_PAPI
=
@USE_PAPI@
#-----------------------------------------------------------------------------
# DocBook XML stuff
...
...
rts/Makefile
View file @
14591e0d
...
...
@@ -178,6 +178,14 @@ else # GTK_CONFIG
EXCLUDED_SRCS
+=
$(
wildcard
Vis
*
.c
)
endif
#-----------------------------------------------------------------------------
# Add PAPI library if needed
ifeq
"$(USE_PAPI)" "YES"
SRC_HC_OPTS
+=
-lpapi
-optc-DUSE_PAPI
PACKAGE_CPP_OPTS
+=
-DUSE_PAPI
endif
#-----------------------------------------------------------------------------
# make depend setup
...
...
Write
Preview
Supports
Markdown
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