comparison configure.in @ 1015:2cdcf67e9300

run image loader in separate thread this feature is disabled by default for now, it must be enabled by configure --enable-threads
author nadvornik
date Sat, 30 Aug 2008 20:15:47 +0000
parents fe82830ab8fd
children 98f8d5746b92
comparison
equal deleted inserted replaced
1014:4d3c98219246 1015:2cdcf67e9300
165 165
166 AM_CONDITIONAL(MS_LIB_AVAILABLE, test x$ms_librarian = xyes) 166 AM_CONDITIONAL(MS_LIB_AVAILABLE, test x$ms_librarian = xyes)
167 AM_CONDITIONAL(HAVE_WINDRES, test "x$WINDRES" != "x:") 167 AM_CONDITIONAL(HAVE_WINDRES, test "x$WINDRES" != "x:")
168 AC_SUBST(WINDRES) 168 AC_SUBST(WINDRES)
169 169
170 have_libpthread=no
171 AC_CHECK_LIB([pthread], [main],
172 [AC_CHECK_HEADER([pthread.h],
173 have_libpthread=yes,
174 have_libpthread=no)],
175 [AC_MSG_ERROR([Can't find the POSIX thread libraries])], [-lpthread])
176 if test "x${have_libpthread}" = "xyes"; then
177 LIBPTHREAD='-lpthread'
178 AC_DEFINE(HAVE_LIBPTHREAD, 1, [Define if pthread is available])
179 else
180 AC_MSG_WARN([POSIX thread header not installed])
181 fi
182 AC_MSG_CHECKING(for libpthread)
183 AC_MSG_RESULT([${have_libpthread}])
184
185 dnl reasonable guesses for where stuff is installed 170 dnl reasonable guesses for where stuff is installed
186 if test "x$prefix" = "xNONE"; then 171 if test "x$prefix" = "xNONE"; then
187 prefix="/usr/local" 172 prefix="/usr/local"
188 else 173 else
189 prefix=$prefix 174 prefix=$prefix
190 fi 175 fi
191 176
177 AM_PATH_GLIB_2_0(2.4.0,,AC_MSG_ERROR(GLIB >= 2.4.0 not installed.))
192 AM_PATH_GTK_2_0(2.4.0,,AC_MSG_ERROR(GTK+ >= 2.4.0 not installed.)) 178 AM_PATH_GTK_2_0(2.4.0,,AC_MSG_ERROR(GTK+ >= 2.4.0 not installed.))
179
180 have_gthread="no"
181 AC_ARG_ENABLE([threads],
182 AC_HELP_STRING([--enable-threads], [enable thread support]),
183 [
184 if test "x${enableval}" = "xyes"; then
185 PKG_CHECK_MODULES(GTHREAD, [gthread-2.0], have_gthread="yes", [AC_MSG_WARN("No thread support in glib")])
186 fi
187 ], )
188
189
190 if test "x$have_gthread" != "xno"; then
191 AC_DEFINE(HAVE_GTHREAD, 1, Define if you have gthread library)
192 GLIB_CFLAGS="$GTHREAD_CFLAGS"
193 GLIB_LIBS="$GTHREAD_LIBS"
194 fi
195
196
193 AC_PATH_PROGS(GDK_PIXBUF_CSOURCE, "gdk-pixbuf-csource") 197 AC_PATH_PROGS(GDK_PIXBUF_CSOURCE, "gdk-pixbuf-csource")
194 AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal) 198 AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
195 199
196 AC_ARG_WITH(readmedir, [ --with-readmedir=DIR install path for readme files], 200 AC_ARG_WITH(readmedir, [ --with-readmedir=DIR install path for readme files],
197 readmedir=$withval, readmedir="$prefix/share/doc/geeqie-$VERSION") 201 readmedir=$withval, readmedir="$prefix/share/doc/geeqie-$VERSION")
374 CPPFLAGS: $__CPPFLAGS 378 CPPFLAGS: $__CPPFLAGS
375 CFLAGS: $CFLAGS 379 CFLAGS: $CFLAGS
376 CXXFLAGS: $CXXFLAGS 380 CXXFLAGS: $CXXFLAGS
377 Gtk: $GTK_CFLAGS 381 Gtk: $GTK_CFLAGS
378 Glib: $GLIB_CFLAGS 382 Glib: $GLIB_CFLAGS
379 Thread: $LIBPTHREAD 383 Thread: $GTHREAD_LIBS
380 Others: $LCMS_LIBS $EXIV2_LIBS 384 Others: $LCMS_LIBS $EXIV2_LIBS
381 385
382 Localization: 386 Localization:
383 NLS support: $USE_NLS 387 NLS support: $USE_NLS
384 LINGUAS: $LINGUAS 388 LINGUAS: $LINGUAS