diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/configure.in b/configure.in index 6b86ebd0..197a0410 100644 --- a/configure.in +++ b/configure.in @@ -601,7 +601,7 @@ then then ### ssl.h found under openssl. Use openssl configuration preferentially echo "Enabling OpenSSL support in $with_ssl" - CEFLAGS="$CEFLAGS -I$with_ssl/include -I$with_ssl/include/openssl" + CEFLAGS="$CEFLAGS -I$with_ssl/include/openssl" ### OpenBSD comes with ssl headers elif test -r /usr/include/ssl/ssl.h then @@ -609,7 +609,7 @@ then CEFLAGS="$CEFLAGS -I/usr/include/ssl" else echo "Enabling SSLeay support in $with_ssl" - CEFLAGS="$CEFLAGS -I$with_ssl/include" + test "$with_ssl" != "/usr" && CEFLAGS="$CEFLAGS -I$with_ssl/include" fi LDEFLAGS="$LDEFLAGS -L$with_ssl/lib" LIBS="$LIBS -lssl -lcrypto" @@ -668,7 +668,8 @@ x) do if test -f "$dir/include/hesiod.h" then - test "$dir" != "/usr" && CEFLAGS="$CEFLAGS -DHESIOD -I$dir/include" + CEFLAGS="$CEFLAGS -DHESIOD" + test "$dir" != "/usr" && CEFLAGS="$CEFLAGS -I$dir/include" LDEFLAGS="$LDEFLAGS -L$dir/lib" LIBS="$LIBS -lhesiod" with_hesiod=$dir @@ -678,7 +679,8 @@ x) ;; *) # Path given - CEFLAGS="$CEFLAGS -DHESIOD -I$with_hesiod/include" + CEFLAGS="$CEFLAGS -DHESIOD" + test "$with_hesiod" != "/usr" && CEFLAGS="$CEFLAGS -I$with_hesiod/include" LDEFLAGS="$LDEFLAGS -L$with_hesiod/lib" LIBS="$LIBS -lhesiod" ;; |