for try in $checks; do glib_config_args= if test $try = 1 -o $try = 3; then glib_modules=gmodule else echo "*** trying without -lgmodule" glib_modules= fi if test $try = 1 -o $try = 2; then AM_PATH_GLIB(1.2.0,,, $glib_modules) else AM_PATH_GLIB_2_0(2.0.0,,, $glib_modules) fi if test "$GLIB_LIBS"; then if test $glib_modules = gmodule; then cat >>confdefs.h <<\_ACEOF #define HAVE_GMODULE 1 _ACEOF have_gmodule=yes fi break fi done