diff options
author | Dai Sato <satodai@w3m.jp> | 2007-05-29 12:01:04 +0000 |
---|---|---|
committer | Dai Sato <satodai@w3m.jp> | 2007-05-29 12:01:04 +0000 |
commit | 6c28792111b5db2829f201a468d2baad827bf6df (patch) | |
tree | 51c496bb133b9c36712549fcb1cac0841a53fd70 /aclocal.m4 | |
parent | add datarootdir for Autoconf 2.60 and later. (diff) | |
download | w3m-6c28792111b5db2829f201a468d2baad827bf6df.tar.gz w3m-6c28792111b5db2829f201a468d2baad827bf6df.zip |
move 'gc' from $LIBS to $LIBGC. [w3m-dev 04259]
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -426,6 +426,7 @@ AC_ARG_WITH(termlib, # ---------------------------------------------------------------- AC_DEFUN([AC_W3M_GC], [AC_MSG_CHECKING(GC library exists) +AC_SUBST(LIBGC) AC_ARG_WITH(gc, [ --with-gc[=PREFIX] libgc PREFIX], [test x"$with_gc" = xno && AC_MSG_ERROR([You can not build w3m without gc])], @@ -456,7 +457,7 @@ AC_ARG_WITH(gc, fi fi unset ac_cv_lib_gc_GC_init - AC_CHECK_LIB(gc, GC_init, [LIBS="$LIBS -lgc"]) + AC_CHECK_LIB(gc, GC_init, [LIBGC="-lgc"]) if test x"$ac_cv_lib_gc_GC_init" = xno; then AC_MSG_CHECKING(GC library location) AC_MSG_RESULT($with_gc) @@ -466,7 +467,7 @@ AC_ARG_WITH(gc, LDFLAGS="$LDFLAGS -L$dir/lib" AC_MSG_CHECKING($dir) unset ac_cv_lib_gc_GC_init - AC_CHECK_LIB(gc, GC_init, [gclibdir="$dir/lib"; LIBS="$LIBS -L$dir/lib -lgc"; break]) + AC_CHECK_LIB(gc, GC_init, [gclibdir="$dir/lib"; LIBGC="-L$dir/lib -lgc"; break]) LDFLAGS="$ldflags" done if test x"$gclibdir" = xno; then |