version 1.3, 2014/04/23 21:06:41 |
version 1.6, 2014/08/05 12:50:52 |
Line 20 exec > config.h 2> config.log |
|
Line 20 exec > config.h 2> config.log |
|
CFLAGS="${CFLAGS} -Wno-unused -Werror" |
CFLAGS="${CFLAGS} -Wno-unused -Werror" |
|
|
runtest() { |
runtest() { |
echo ${CC} ${CFLAGS} -o test-${1} test-${1}.c 1>&2 |
echo ${CC} ${CFLAGS} ${3} -o test-${1} test-${1}.c 1>&2 |
${CC} ${CFLAGS} -o "test-${1}" "test-${1}.c" 1>&2 || return 0 |
${CC} ${CFLAGS} ${3} -o "test-${1}" "test-${1}.c" 1>&2 || return 0 |
"./test-${1}" && echo "#define HAVE_${2}" \ |
"./test-${1}" && echo "#define HAVE_${2}" \ |
|| echo FAILURE: test-${1} returned $? 1>&2 |
|| echo FAILURE: test-${1} returned $? 1>&2 |
rm "test-${1}" |
rm "test-${1}" |
Line 33 echo "#define VERSION \"${VERSION}\"" |
|
Line 33 echo "#define VERSION \"${VERSION}\"" |
|
runtest fgetln FGETLN |
runtest fgetln FGETLN |
runtest getsubopt GETSUBOPT |
runtest getsubopt GETSUBOPT |
runtest mmap MMAP |
runtest mmap MMAP |
runtest ohash OHASH |
runtest ohash OHASH -lutil |
runtest reallocarray REALLOCARRAY |
runtest reallocarray REALLOCARRAY |
|
runtest sqlite3_errstr SQLITE3_ERRSTR \ |
|
"-I/usr/local/include -L/usr/local/lib -lsqlite3" |
runtest strcasestr STRCASESTR |
runtest strcasestr STRCASESTR |
runtest strlcat STRLCAT |
runtest strlcat STRLCAT |
runtest strlcpy STRLCPY |
runtest strlcpy STRLCPY |
runtest strnlen STRNLEN |
|
runtest strptime STRPTIME |
runtest strptime STRPTIME |
runtest strsep STRSEP |
runtest strsep STRSEP |
echo |
echo |