1 dnl Process this file with autoconf to produce 2 3 AC_PREREQ(2.59) 4 AC_INIT([usbip-utils], [2.0], [linux-usb@vger. 5 AC_DEFINE([USBIP_VERSION], [0x00000111], [bina 6 7 CURRENT=0 8 REVISION=1 9 AGE=0 10 AC_SUBST([LIBUSBIP_VERSION], [$CURRENT:$REVISI 11 12 AC_CONFIG_SRCDIR([src/usbipd.c]) 13 AC_CONFIG_HEADERS([config.h]) 14 15 AM_INIT_AUTOMAKE([foreign]) 16 LT_INIT 17 18 # Silent build for automake >= 1.11 19 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([ 20 21 AC_SUBST([EXTRA_CFLAGS], ["-Wall -Werror -Wext 22 23 # Checks for programs. 24 AC_PROG_CC 25 AC_PROG_INSTALL 26 AC_PROG_MAKE_SET 27 28 # Checks for header files. 29 AC_HEADER_DIRENT 30 AC_HEADER_STDC 31 AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h 32 string.h sys/socket.h syslog 33 34 # Checks for typedefs, structures, and compile 35 AC_TYPE_INT32_T 36 AC_TYPE_SIZE_T 37 AC_TYPE_SSIZE_T 38 AC_TYPE_UINT16_T 39 AC_TYPE_UINT32_T 40 AC_TYPE_UINT8_T 41 42 # Checks for library functions. 43 AC_FUNC_REALLOC 44 AC_CHECK_FUNCS([memset mkdir regcomp socket st 45 strtoul]) 46 47 AC_CHECK_HEADER([libudev.h], 48 [AC_CHECK_LIB([udev], [udev_ne 49 [LIBS="$LIBS -lu 50 [AC_MSG_ERROR([M 51 [AC_MSG_ERROR([Missing /usr/in 52 53 # Checks for libwrap library. 54 AC_MSG_CHECKING([whether to use the libwrap (T 55 AC_ARG_WITH([tcp-wrappers], 56 [AS_HELP_STRING([--with-tcp-wrappe 57 [use the libwrap ( 58 dnl [ACTION-IF-GIVEN] 59 [if test "$withval" = "yes"; then 60 AC_MSG_RESULT([yes]) 61 AC_MSG_CHECKING([for host 62 saved_LIBS="$LIBS" 63 LIBS="-lwrap $saved_LIBS" 64 AC_TRY_LINK( 65 [int hosts_access(); in 66 [hosts_access()], 67 [AC_MSG_RESULT([yes]); 68 AC_DEFINE([HAVE_LIBWRA 69 [use tcp wra 70 [AC_MSG_RESULT([not fou 71 else 72 AC_MSG_RESULT([no]); 73 fi], 74 dnl [ACTION-IF-NOT-GIVEN] 75 [AC_MSG_RESULT([(default)]) 76 AC_MSG_CHECKING([for hosts_access 77 saved_LIBS="$LIBS" 78 LIBS="-lwrap $saved_LIBS" 79 AC_TRY_LINK( 80 [int hosts_access(); int allow_ 81 [hosts_access()], 82 [AC_MSG_RESULT([yes]); 83 AC_DEFINE([HAVE_LIBWRAP], [1], 84 [AC_MSG_RESULT([no]); LIBS="$sa 85 86 # Sets directory containing usb.ids. 87 AC_ARG_WITH([usbids-dir], 88 [AS_HELP_STRING([--with-usbids-dir 89 [where usb.ids is found (defaul 90 [USBIDS_DIR=$withval], [USBIDS_DIR 91 AC_SUBST([USBIDS_DIR]) 92 93 # use _FORTIFY_SOURCE 94 AC_MSG_CHECKING([whether to use fortify]) 95 AC_ARG_WITH([fortify], 96 [AS_HELP_STRING([--with-fortify], 97 [use _FORTIFY_SOUR 98 dnl [ACTION-IF-GIV 99 [if test "$withval 100 AC_MSG_RESULT( 101 CFLAGS="$CFLAG 102 else 103 AC_MSG_RESULT( 104 CFLAGS="$CFLAG 105 fi 106 ], 107 dnl [ACTION-IF-NOT 108 [AC_MSG_RESULT([de 109 110 AC_CONFIG_FILES([Makefile libsrc/Makefile src/ 111 AC_OUTPUT
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.