Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
54a3209c
Commit
54a3209c
authored
Dec 01, 2014
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure.ac: Rename some variables so that they follow automake convention
parent
9eb554a8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
configure.ac
configure.ac
+9
-9
src/Makefile.am
src/Makefile.am
+2
-2
tests/Makefile.am
tests/Makefile.am
+1
-1
No files found.
configure.ac
View file @
54a3209c
...
@@ -202,41 +202,41 @@ AC_LANG_POP()
...
@@ -202,41 +202,41 @@ AC_LANG_POP()
# Checks for libraries.
# Checks for libraries.
# Additional libraries required for tests.
# Additional libraries required for tests.
TEST
S_LIB
S=
TEST
LDFLAG
S=
# Additional libraries required for programs under src directory.
# Additional libraries required for programs under src directory.
SRC_LIB
S=
APPLDFLAG
S=
LIBS_OLD=$LIBS
LIBS_OLD=$LIBS
# Search for dlsym function, which is used in tests. Linux needs -ldl,
# Search for dlsym function, which is used in tests. Linux needs -ldl,
# but netbsd does not need it.
# but netbsd does not need it.
AC_SEARCH_LIBS([dlsym], [dl])
AC_SEARCH_LIBS([dlsym], [dl])
TEST
S_LIBS="$LIBS $TESTS_LIB
S"
TEST
LDFLAGS="$LIBS $TESTLDFLAG
S"
LIBS=$LIBS_OLD
LIBS=$LIBS_OLD
LIBS_OLD=$LIBS
LIBS_OLD=$LIBS
AC_SEARCH_LIBS([clock_gettime], [rt],
AC_SEARCH_LIBS([clock_gettime], [rt],
[AC_DEFINE([HAVE_CLOCK_GETTIME], [1],
[AC_DEFINE([HAVE_CLOCK_GETTIME], [1],
[Define to 1 if you have the `clock_gettime`.])])
[Define to 1 if you have the `clock_gettime`.])])
SRC_LIBS="$LIBS $SRC_LIB
S"
APPLDFLAGS="$LIBS $APPLDFLAG
S"
LIBS=$LIBS_OLD
LIBS=$LIBS_OLD
case "$host" in
case "$host" in
*android*)
*android*)
android_build=yes
android_build=yes
# android does not need -pthread, but needs followng 2 libs for C++
# android does not need -pthread, but needs followng 2 libs for C++
SRC_LIBS="$SRC_LIB
S -lstdc++ -lsupc++"
APPLDFLAGS="$APPLDFLAG
S -lstdc++ -lsupc++"
;;
;;
*)
*)
PTHREAD_LDFLAGS="-pthread"
PTHREAD_LDFLAGS="-pthread"
SRC_LIBS="$SRC_LIB
S $PTHREAD_LDFLAGS"
APPLDFLAGS="$APPLDFLAG
S $PTHREAD_LDFLAGS"
;;
;;
esac
esac
# zlib
# zlib
if test "x$android_build" = "xyes"; then
if test "x$android_build" = "xyes"; then
# Use zlib provided by NDK
# Use zlib provided by NDK
SRC_LIBS="-lz $SRC_LIB
S"
APPLDFLAGS="-lz $APPLDFLAG
S"
have_zlib=yes
have_zlib=yes
else
else
PKG_CHECK_MODULES([ZLIB], [zlib >= 1.2.3], [have_zlib=yes], [have_zlib=no])
PKG_CHECK_MODULES([ZLIB], [zlib >= 1.2.3], [have_zlib=yes], [have_zlib=no])
...
@@ -576,8 +576,8 @@ if test "x$threads" != "xyes" || test "x$have_std_future" != "xyes"; then
...
@@ -576,8 +576,8 @@ if test "x$threads" != "xyes" || test "x$have_std_future" != "xyes"; then
AC_DEFINE([NOTHREADS], [1], [Define to 1 if you want to disable threads.])
AC_DEFINE([NOTHREADS], [1], [Define to 1 if you want to disable threads.])
fi
fi
AC_SUBST([TEST
S_LIB
S])
AC_SUBST([TEST
LDFLAG
S])
AC_SUBST([
SRC_LIB
S])
AC_SUBST([
APPLDFLAG
S])
AC_CONFIG_FILES([
AC_CONFIG_FILES([
Makefile
Makefile
...
...
src/Makefile.am
View file @
54a3209c
...
@@ -49,7 +49,7 @@ AM_LDFLAGS = \
...
@@ -49,7 +49,7 @@ AM_LDFLAGS = \
@OPENSSL_LIBS@
\
@OPENSSL_LIBS@
\
@JANSSON_LIBS@
\
@JANSSON_LIBS@
\
@ZLIB_LIBS@
\
@ZLIB_LIBS@
\
@
SRC_LIB
S@
@
APPLDFLAG
S@
LDADD
=
\
LDADD
=
\
$(top_builddir)
/lib/libnghttp2.la
\
$(top_builddir)
/lib/libnghttp2.la
\
...
@@ -145,7 +145,7 @@ nghttpx_unittest_CPPFLAGS = ${AM_CPPFLAGS}\
...
@@ -145,7 +145,7 @@ nghttpx_unittest_CPPFLAGS = ${AM_CPPFLAGS}\
-DNGHTTP2_TESTS_DIR
=
\"
$(top_srcdir)
/tests
\"
-DNGHTTP2_TESTS_DIR
=
\"
$(top_srcdir)
/tests
\"
nghttpx_unittest_LDFLAGS
=
-static
nghttpx_unittest_LDFLAGS
=
-static
nghttpx_unittest_LDADD
=
libnghttpx.a
${LDADD}
${AM_LDFLAGS}
\
nghttpx_unittest_LDADD
=
libnghttpx.a
${LDADD}
${AM_LDFLAGS}
\
@CUNIT_LIBS@ @TEST
S_LIB
S@
@CUNIT_LIBS@ @TEST
LDFLAG
S@
TESTS
+=
nghttpx-unittest
TESTS
+=
nghttpx-unittest
endif
# HAVE_CUNIT
endif
# HAVE_CUNIT
...
...
tests/Makefile.am
View file @
54a3209c
...
@@ -50,7 +50,7 @@ HFILES = nghttp2_pq_test.h nghttp2_map_test.h nghttp2_queue_test.h \
...
@@ -50,7 +50,7 @@ HFILES = nghttp2_pq_test.h nghttp2_map_test.h nghttp2_queue_test.h \
main_SOURCES
=
$(HFILES)
$(OBJECTS)
main_SOURCES
=
$(HFILES)
$(OBJECTS)
main_LDADD
=
${top_builddir}
/lib/libnghttp2.la
main_LDADD
=
${top_builddir}
/lib/libnghttp2.la
main_LDFLAGS
=
-static
@CUNIT_LIBS@ @TEST
S_LIB
S@
main_LDFLAGS
=
-static
@CUNIT_LIBS@ @TEST
LDFLAG
S@
if
ENABLE_FAILMALLOC
if
ENABLE_FAILMALLOC
failmalloc_SOURCES
=
failmalloc.c failmalloc_test.c failmalloc_test.h
\
failmalloc_SOURCES
=
failmalloc.c failmalloc_test.c failmalloc_test.h
\
...
...
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