Skip to content

Commit

Permalink
configure: Only use LIBCRYPTO_{CFLAGS,LIBS} on PKG_CHECK_MODULES success
Browse files Browse the repository at this point in the history
Signed-off-by: Anders Kaseorg <[email protected]>
  • Loading branch information
andersk committed Jan 15, 2013
1 parent 35a9ec7 commit 1f121cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ AS_IF([test "x$with_zephyr" != xno],
[AC_MSG_ERROR([Kerberos IV requested but not found])])])])
AS_IF([test "x$have_krb4" != xyes],
[PKG_CHECK_MODULES([LIBCRYPTO], [libcrypto])
AM_CFLAGS="${AM_CFLAGS} ${LIBCRYPTO_CFLAGS}"
LIBS="${LIBS} ${LIBCRYPTO_LIBS}"
])
[PKG_CHECK_MODULES([LIBCRYPTO], [libcrypto],
[AM_CFLAGS="${AM_CFLAGS} ${LIBCRYPTO_CFLAGS}"
LIBS="${LIBS} ${LIBCRYPTO_LIBS}"
])])
AC_CHECK_LIB([zephyr], [ZGetSender],
[LIBS="$LIBS -lzephyr"
Expand Down

0 comments on commit 1f121cb

Please sign in to comment.