Index: /issm/trunk-jpl/m4/issm_options.m4
===================================================================
--- /issm/trunk-jpl/m4/issm_options.m4	(revision 14171)
+++ /issm/trunk-jpl/m4/issm_options.m4	(revision 14172)
@@ -1073,5 +1073,6 @@
 	if test -n "$GRAPHICS_LIB" ; then
 		dnl check that library provided EXISTS!
-		if test -f "$GRAPHICS_LIB"; then
+		GRAPHICS_DIR=$(echo $GRAPHICS_LIB | sed -e "s/-L//g" | awk '{print $[1]}')
+		if test -d "$GRAPHICS_DIR"; then
 			HAVE_GRAPHICS=yes
 			GRAPHICSLIB="$GRAPHICS_LIB"
