Dongjin Kim | f316f52 | 2022-01-18 10:10:24 +0000 | [diff] [blame] | 1 | # -*- Autoconf -*- |
| 2 | # Process this file with autoconf to produce a configure script. |
| 3 | |
| 4 | AC_PREREQ([2.69]) |
| 5 | AC_INIT([wiringpi-examples], [1.0], [tobetter@gmail.com]) |
| 6 | AC_CONFIG_SRCDIR([serialRead.c]) |
| 7 | AC_CONFIG_HEADERS([config.h]) |
| 8 | |
| 9 | AC_SUBST([EXTRA_CFLAGS], ["-Wformat=2 -Wall -Wextra -Winline -Wno-format-truncation -pipe -fPIC"]) |
| 10 | |
| 11 | # Checks for programs. |
| 12 | AC_PROG_CC |
| 13 | |
| 14 | # Checks for libraries. |
| 15 | PKG_CHECK_MODULES([LIBCRYPT], [libcrypt]) |
| 16 | PKG_CHECK_MODULES([LIBWIRINGPI], [libwiringpi2]) |
| 17 | |
| 18 | AM_INIT_AUTOMAKE([foreign]) |
| 19 | AC_CONFIG_MACRO_DIRS([m4]) |
| 20 | |
| 21 | # Checks for header files. |
| 22 | AC_CHECK_HEADERS([fcntl.h stdint.h stdlib.h string.h sys/ioctl.h sys/time.h unistd.h]) |
| 23 | |
| 24 | # Checks for typedefs, structures, and compiler characteristics. |
| 25 | |
| 26 | # Checks for library functions. |
| 27 | AC_FUNC_MALLOC |
| 28 | AC_CHECK_FUNCS([floor gettimeofday rint strcasecmp strerror]) |
| 29 | |
| 30 | AC_CONFIG_FILES([ |
| 31 | Makefile |
| 32 | Gertboard/Makefile |
| 33 | PiFace/Makefile |
| 34 | PiGlow/Makefile |
| 35 | q2w/Makefile |
| 36 | scrollPhat/Makefile |
| 37 | ]) |
| 38 | |
| 39 | AC_OUTPUT |