Skip to content

Commit

Permalink
use different automake variable so fix also works for pkg-config
Browse files Browse the repository at this point in the history
  • Loading branch information
calvin-sykes authored and jchelly committed Jun 10, 2022
1 parent 09a59b4 commit bdb3c40
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ GV_FIND_LIBRARY([hdf5], [HDF5], [hdf5], [hdf5], [H5open])

# Check if GLib has the config file parser
have_keyfile="no"
TMP_LDFLAGS=$LDFLAGS
LDFLAGS="${LDFLAGS} "-L${GV_GLIB_PATH}/lib/
TMP_LDFLAGS=${LDFLAGS}
LDFLAGS="${LDFLAGS} ${GLIB_LIBS}"
AC_CHECK_LIB(glib-2.0, g_key_file_new, [have_keyfile="yes"], [], [])
if test "${have_keyfile}" == "yes" ; then
AC_DEFINE([HAVE_KEYFILE],[],[Defined if we have GLib config file parser])
fi
LDFLAGS=$TMP_LDFLAGS
LDFLAGS=${TMP_LDFLAGS}

# Only build hdf5 wrapper library if we have HDF5
AM_CONDITIONAL([COND_HDF5], [test "$USE_HDF5" = yes])
Expand Down

0 comments on commit bdb3c40

Please sign in to comment.