Move "config" test programs to "compat".

It makes sense to me to have the little tests for functionality right
next to the comptability implementations of that same functionality.

But also, this means I can now tab-complete ./configure from the three
initial characters (rather than the seven required previously).
This commit is contained in:
Carl Worth 2010-04-06 11:12:10 -07:00
parent b5d8fe2784
commit d8192a4d7f
4 changed files with 18 additions and 7 deletions

16
compat/README Normal file
View file

@ -0,0 +1,16 @@
notmuch/comapt
This directory consists of two things:
1. Small programs used by the notmuch configure script to test for the
availability of certain system features, (library functions, etc.).
For example: have_getline.c
2. Compatibility implementations of those system features for systems
that don't provide their own versions.
For example: getline.c
The compilation of these files is made conditional on the output of
the test programs from [1].

View file

@ -1,5 +0,0 @@
notmuch/config
This directory consists of small programs used by the notmuch
configure script to test for the availability of certain system
features, (library functions, etc.).

4
configure vendored
View file

@ -250,7 +250,7 @@ EOF
fi fi
printf "Checking for getline... " printf "Checking for getline... "
if ${CC} -o config/have_getline config/have_getline.c > /dev/null 2>&1 if ${CC} -o compat/have_getline compat/have_getline.c > /dev/null 2>&1
then then
printf "Yes.\n" printf "Yes.\n"
have_getline=1 have_getline=1
@ -258,7 +258,7 @@ else
printf "No (will use our own instead).\n" printf "No (will use our own instead).\n"
have_getline=0 have_getline=0
fi fi
rm -f config/have_getline rm -f compat/have_getline
cat <<EOF cat <<EOF