X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=configure.in;h=da1694ac3a1a8275fbda0c4a7ba9d59ce5a8f689;hp=5f5648b6262ffde5d167cfdefe8fb3ac74c7fb5e;hb=2f1ad68193fa6825fc561a09684585280bd67895;hpb=480c3cf04004acef3a792d1914382b38b0f79bfa diff --git a/configure.in b/configure.in index 5f5648b..da1694a 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,6 @@ dnl YAZ Toolkit, Index Data 1994-2004 dnl See the file LICENSE for details. -dnl $Id: configure.in,v 1.139 2004-05-01 23:32:20 adam Exp $ +dnl $Id: configure.in,v 1.140 2004-05-02 00:07:34 adam Exp $ AC_INIT(include/yaz/yaz-version.h) AM_INIT_AUTOMAKE(yaz, 2.0.19) AM_MAINTAINER_MODE @@ -50,11 +50,17 @@ if test "$openssl" != "no"; then SSL_LIBS="-L$openssl/lib" fi else - if $pkgconfig --exists openssl; then - SSL_CFLAGS=`$pkgconfig --cflags openssl` - SSL_LIBS=`$pkgconfig --libs openssl` - sslver=`$pkgconfig --modversion openssl` - fi + if test "$pkgconfig" != "NONE"; then + if $pkgconfig --exists openssl; then + SSL_CFLAGS=`$pkgconfig --cflags openssl` + SSL_LIBS=`$pkgconfig --libs openssl` + sslver=`$pkgconfig --modversion openssl` + fi + fi + if test "$sslver" = "no"; then + SSL_CFLAGS="-I/usr/include/openssl" + SSL_LIBS="" + fi fi if test "$sslver" = "no"; then xLIBS="$LIBS";