comparison configure.in @ 326:1e39dc490627 stable-0-6-59

add autoconf checking for libgsf
author Carl Byington <carl@five-ten-sg.com>
date Fri, 17 May 2013 14:09:35 -0700
parents cb67b335afcc
children c507af52515a
comparison
equal deleted inserted replaced
325:cb67b335afcc 326:1e39dc490627
1 AC_PREREQ(2.59) 1 AC_PREREQ(2.59)
2 AC_INIT(libpst,0.6.58,carl@five-ten-sg.com) 2 AC_INIT(libpst,0.6.59,carl@five-ten-sg.com)
3 AC_CONFIG_SRCDIR([src/libpst.c]) 3 AC_CONFIG_SRCDIR([src/libpst.c])
4 AC_CONFIG_HEADER([config.h]) 4 AC_CONFIG_HEADER([config.h])
5 AM_INIT_AUTOMAKE 5 AM_INIT_AUTOMAKE
6 AC_CANONICAL_HOST 6 AC_CANONICAL_HOST
7 7
17 # 5. If any interfaces have been removed or changed since the last public 17 # 5. If any interfaces have been removed or changed since the last public
18 # release, then set age to 0, since we are not backward compatible. 18 # release, then set age to 0, since we are not backward compatible.
19 # 6. libtool will build libpst.so.x.y.z where the SONAME is libpst.so.x 19 # 6. libtool will build libpst.so.x.y.z where the SONAME is libpst.so.x
20 # and x=current-age, y=age, z=revision 20 # and x=current-age, y=age, z=revision
21 21
22 libpst_version_info='5:7:1' 22 libpst_version_info='5:8:1'
23 AC_SUBST(LIBPST_VERSION_INFO, [$libpst_version_info]) 23 AC_SUBST(LIBPST_VERSION_INFO, [$libpst_version_info])
24 libpst_so_major='4' 24 libpst_so_major='4'
25 AC_SUBST(LIBPST_SO_MAJOR, [$libpst_so_major]) 25 AC_SUBST(LIBPST_SO_MAJOR, [$libpst_so_major])
26 26
27 # libpst 27 # libpst
41 # 0.6.54 libpst.so.4 libpst.so.4.1.4 41 # 0.6.54 libpst.so.4 libpst.so.4.1.4
42 # 0.6.55 libpst.so.4 libpst.so.4.1.5 42 # 0.6.55 libpst.so.4 libpst.so.4.1.5
43 # 0.6.56 libpst.so.4 libpst.so.4.1.6 43 # 0.6.56 libpst.so.4 libpst.so.4.1.6
44 # 0.6.57 libpst.so.4 libpst.so.4.1.6 44 # 0.6.57 libpst.so.4 libpst.so.4.1.6
45 # 0.6.58 libpst.so.4 libpst.so.4.1.7 45 # 0.6.58 libpst.so.4 libpst.so.4.1.7
46 # 0.6.59 libpst.so.4 libpst.so.4.1.8
46 47
47 48
48 49
49 # Check for solaris 50 # Check for solaris
50 AC_MSG_CHECKING([for Solaris]) 51 AC_MSG_CHECKING([for Solaris])
358 AC_MSG_RESULT([$enable_profiling]) 359 AC_MSG_RESULT([$enable_profiling])
359 AM_CONDITIONAL(GPROF_PROFILING, [test "$enable_profiling" = "yes"]) 360 AM_CONDITIONAL(GPROF_PROFILING, [test "$enable_profiling" = "yes"])
360 361
361 gsf_flags="`pkg-config libgsf-1 --cflags`" 362 gsf_flags="`pkg-config libgsf-1 --cflags`"
362 gsf_libs="`pkg-config libgsf-1 --libs`" 363 gsf_libs="`pkg-config libgsf-1 --libs`"
364 if test "$gsf_flags" = ""; then
365 AC_MSG_ERROR(libgsf not found)
366 fi
367
363 AC_SUBST(GSF_FLAGS, [$gsf_flags]) 368 AC_SUBST(GSF_FLAGS, [$gsf_flags])
364 AC_SUBST(GSF_LIBS, [$gsf_libs]) 369 AC_SUBST(GSF_LIBS, [$gsf_libs])
365 370
366 AC_OUTPUT( \ 371 AC_OUTPUT( \
367 Makefile \ 372 Makefile \