3
3
# Copyright (c) 2009-2015 Cisco Systems, Inc. All rights reserved.
4
4
# Copyright (c) 2013 Los Alamos National Security, LLC. All rights reserved.
5
5
# Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
6
+ # Copyright (c) 2017 Research Organization for Information Science
7
+ # and Technology (RIST). All rights reserved.
6
8
# $COPYRIGHT$
7
9
#
8
10
# Additional copyrights may follow
@@ -27,25 +29,29 @@ AC_DEFUN([OPAL_ZLIB_CONFIG],[
27
29
if test " $with_zlib " ! = " no" ; then
28
30
AC_MSG_CHECKING([for zlib in])
29
31
if test ! -z " $with_zlib " && test " $with_zlib " ! = " yes" ; then
32
+ AC_MSG_RESULT([$with_zlib ])
30
33
opal_zlib_dir=$with_zlib
31
34
opal_zlib_standard_header_location=no
32
- if test -d $with_zlib /lib; then
33
- opal_zlib_libdir=$with_zlib /lib
34
- elif test -d $with_zlib /lib64; then
35
- opal_zlib_libdir=$with_zlib /lib64
36
- else
37
- AC_MSG_RESULT([Could not find $with_zlib /lib or $with_zlib /lib64])
38
- AC_MSG_ERROR([Can not continue])
39
- fi
40
- AC_MSG_RESULT([$opal_zlib_dir and $opal_zlib_libdir ])
35
+ opal_zlib_standard_lib_location=no
36
+ AS_IF([test -z " $with_zlib_libdir " || test " $with_zlib_libdir " = " yes" ],
37
+ [if test -d $with_zlib /lib; then
38
+ opal_zlib_libdir= $with_zlib /lib
39
+ elif test -d $with_zlib /lib64; then
40
+ opal_zlib_libdir= $with_zlib /lib64
41
+ else
42
+ AC_MSG_RESULT([Could not find $with_zlib /lib or $with_zlib /lib64])
43
+ AC_MSG_ERROR([Can not continue])
44
+ fi
45
+ AC_MSG_RESULT([$opal_zlib_dir and $opal_zlib_libdir ])],
46
+ [AC_MSG_RESULT([$with_zlib_libdir ])])
41
47
else
42
48
AC_MSG_RESULT([(default search paths)])
43
49
opal_zlib_standard_header_location=yes
50
+ opal_zlib_standard_lib_location=yes
44
51
fi
45
52
AS_IF([test ! -z " $with_zlib_libdir " && test " $with_zlib_libdir " != " yes" ],
46
53
[opal_zlib_libdir= " $with_zlib_libdir "
47
- opal_zlib_standard_lib_location= no],
48
- [opal_zlib_standard_lib_location= yes])
54
+ opal_zlib_standard_lib_location= no])
49
55
50
56
OPAL_CHECK_PACKAGE([opal_zlib],
51
57
[zlib.h],
0 commit comments