|
Revision 15142, 0.8 kB
(checked in by mattn, 5 months ago)
|
|
add files for autotools.
|
| Line | |
|---|
| 1 | # -*- Autoconf -*- |
|---|
| 2 | # Process this file with autoconf to produce a configure script. |
|---|
| 3 | |
|---|
| 4 | AC_PREREQ(2.57) |
|---|
| 5 | AC_INIT(frontend.cpp, 0.0.1, mattn.jp@gmail.com) |
|---|
| 6 | AC_CONFIG_SRCDIR([frontend.cpp]) |
|---|
| 7 | AM_CONFIG_HEADER([config.h]) |
|---|
| 8 | AM_INIT_AUTOMAKE(sonydb, 0.0.1, no-define) |
|---|
| 9 | |
|---|
| 10 | # Checks for programs. |
|---|
| 11 | AC_PROG_CXX |
|---|
| 12 | |
|---|
| 13 | # Checks for libraries. |
|---|
| 14 | dnl id3lib |
|---|
| 15 | AC_SEARCH_LIBS(ID3Tag_Link,"id3" "id3 -lstdc++" "id3 -lz" "id3 -lz -lstdc++",, |
|---|
| 16 | AC_MSG_ERROR(id3lib not found.)) |
|---|
| 17 | |
|---|
| 18 | # Checks for header files. |
|---|
| 19 | AC_CHECK_HEADERS([memory.h]) |
|---|
| 20 | |
|---|
| 21 | # Checks for typedefs, structures, and compiler characteristics. |
|---|
| 22 | AC_C_CONST |
|---|
| 23 | AC_TYPE_SIZE_T |
|---|
| 24 | |
|---|
| 25 | # Checks for library functions. |
|---|
| 26 | AC_FUNC_MALLOC |
|---|
| 27 | AC_FUNC_MEMCMP |
|---|
| 28 | AC_HEADER_STDC |
|---|
| 29 | AC_FUNC_REALLOC |
|---|
| 30 | AC_CHECK_FUNCS([memset putenv setlocale strdup strpbrk]) |
|---|
| 31 | |
|---|
| 32 | # Checks for library functions. |
|---|
| 33 | AC_OUTPUT([Makefile sonydb.spec]) |
|---|
| 34 | |
|---|