Initialize Tizen 2.3
[framework/system/usbutils.git] / configure.ac
1 AC_INIT([usbutils],
2         [0.86],
3         [linux-usb@vger.kernel.org])
4 AC_PREREQ(2.60)
5 AM_INIT_AUTOMAKE([check-news foreign 1.9 dist-bzip2])
6 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
7 AC_PREFIX_DEFAULT([/usr])
8
9 AC_USE_SYSTEM_EXTENSIONS
10 AC_SYS_LARGEFILE
11
12 USE_ZLIB=yes
13 AC_ARG_ENABLE(zlib,
14         AS_HELP_STRING(--disable-zlib,disable support for zlib),
15         [
16                 if eval "test x$enable_zlib = xno"; then
17                         USE_ZLIB=
18                 fi
19         ])
20 if test "$USE_ZLIB" = "yes" ; then
21         AC_CHECK_LIB(z, inflateEnd)
22         if test "${ac_cv_lib_z_inflateEnd}" = "yes" ; then
23                 HAVE_ZLIB="yes"
24         fi
25 fi
26 AM_CONDITIONAL(HAVE_ZLIB, test x$HAVE_ZLIB = xyes)
27
28 PKG_CHECK_MODULES(LIBUSB, libusb >= 0.1.12)
29 AC_SUBST(LIBUSB_CFLAGS)
30 AC_SUBST(LIBUSB_LIBS)
31
32 AC_CONFIG_HEADERS([config.h])
33 AC_CONFIG_FILES([
34         Makefile
35 ])
36
37 AC_OUTPUT
38 AC_MSG_RESULT([
39         usbutils $VERSION
40         =============
41
42         prefix:                 ${prefix}
43         datarootdir:            ${datarootdir}
44         datadir:                ${datadir}
45         mandir:                 ${mandir}
46
47         usb.ids:                ${datadir}/usb.ids
48         zlib:                   ${USE_ZLIB}
49
50         compiler:               ${CC}
51         cflags:                 ${CFLAGS}
52         ldflags:                ${LDFLAGS}
53 ])