1 # Process this file with autoconf to produce a configure script
3 AM_INIT_AUTOMAKE([ipkg], [0.99.163])
4 AM_CONFIG_HEADER(config.h)
9 for top_builddir in . .. ../.. $ac_auxdir $ac_auxdir/..; do
10 test -f $top_builddir/configure && break
22 # Checks for libraries (hah! ipkg is pretty much self-contained)
24 # Checks for header files
28 AC_CHECK_HEADERS([errno.h fcntl.h memory.h regex.h stddef.h stdlib.h string.h strings.h unistd.h utime.h])
30 # Checks for typedefs, structures, and compiler characteristics.
37 AC_CHECK_MEMBERS([struct stat.st_rdev])
39 # Don't do annoying tests that don't work when cross-compiling, just trust them.
40 # The AC_FUNC_MEMCMP test doesn't work during a cross-compile, disable.
42 # The AC_FUNC_STAT test doesn't work during a cross-compile, disable.
45 # Checks for library functions
51 AC_CHECK_FUNCS([memmove memset mkdir regcomp strchr strcspn strdup strerror strndup strrchr strstr strtol strtoul sysinfo utime])
54 AC_ARG_WITH(ipkglibdir,
55 [ --with-ipkglibdir=DIR specifies directory to put status and info files.
56 "/ipkg" is always added so if you want your files
57 to be in /usr/lib/ipkg you should indicate
58 --with-ipkglibdir=/usr/lib ],
60 yes) AC_MSG_ERROR(bad value ${withval} given for ipkg libs directories ) ;;
62 *) ipkglibdir=$with_ipkglibdir ;;
65 # Default local prefix if it is empty
66 if test x$ipkglibdir = x; then
72 AC_OUTPUT(Makefile etc/Makefile familiar/Makefile familiar/control familiar/control-unstripped familiar/libipkg-control familiar/libipkg-dev-control libbb/Makefile libipkg.pc ipkg.h)