Commit 1d1fded0 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

configure: search japser lib for jas_stream_memopen

parent a3aeee32
2011-01-25 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* splitcode: added support for code numbers > 999
2011-01-21 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* changed grid name GRID_CELL to GRID_UNSTRUCTURED
......
......@@ -102,7 +102,6 @@ case "${HOSTNAME}" in
--with-zlib=/sw/etch-ia32/zlib-1.2.3 \
--with-szlib=$HOME/local/etch-ia32 \
--with-proj=/sw/etch-ia32/proj-4.6.0 \
LIBS="-ljpeg"\
CC=gcc CFLAGS="-g -D_REENTRANT -Wall -W -Wfloat-equal -pedantic -O2"
;;
# dap enabled
......
......@@ -17392,9 +17392,9 @@ fi
if test -d "$JASPER_ROOT"; then :
LDFLAGS="$LDFLAGS -L$JASPER_ROOT/lib"
CPPFLAGS="$CPPFLAGS -I$JASPER_ROOT/include"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing jas_init" >&5
$as_echo_n "checking for library containing jas_init... " >&6; }
if test "${ac_cv_search_jas_init+set}" = set; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing jas_stream_memopen" >&5
$as_echo_n "checking for library containing jas_stream_memopen... " >&6; }
if test "${ac_cv_search_jas_stream_memopen+set}" = set; then :
$as_echo_n "(cached) " >&6
else
ac_func_search_save_LIBS=$LIBS
......@@ -17407,11 +17407,11 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
#ifdef __cplusplus
extern "C"
#endif
char jas_init ();
char jas_stream_memopen ();
int
main ()
{
return jas_init ();
return jas_stream_memopen ();
;
return 0;
}
......@@ -17424,25 +17424,25 @@ for ac_lib in '' jasper; do
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
fi
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_search_jas_init=$ac_res
ac_cv_search_jas_stream_memopen=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext
if test "${ac_cv_search_jas_init+set}" = set; then :
if test "${ac_cv_search_jas_stream_memopen+set}" = set; then :
break
fi
done
if test "${ac_cv_search_jas_init+set}" = set; then :
if test "${ac_cv_search_jas_stream_memopen+set}" = set; then :
 
else
ac_cv_search_jas_init=no
ac_cv_search_jas_stream_memopen=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_jas_init" >&5
$as_echo "$ac_cv_search_jas_init" >&6; }
ac_res=$ac_cv_search_jas_init
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_jas_stream_memopen" >&5
$as_echo "$ac_cv_search_jas_stream_memopen" >&6; }
ac_res=$ac_cv_search_jas_stream_memopen
if test "$ac_res" != no; then :
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
......
......@@ -157,7 +157,7 @@ AC_ARG_WITH([jasper],
AS_IF([test -d "$JASPER_ROOT"],
[LDFLAGS="$LDFLAGS -L$JASPER_ROOT/lib"
CPPFLAGS="$CPPFLAGS -I$JASPER_ROOT/include"
AC_SEARCH_LIBS([jas_init],
AC_SEARCH_LIBS([jas_stream_memopen],
[jasper],
[AC_DEFINE([HAVE_LIBJASPER],[1],[Define to 1 for JPEG compression for GRIB2])],
[AC_MSG_ERROR([Could not link to jasper library! Required for GRIB_API])])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment