diff options
author | frostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-10 20:11:12 +0000 |
---|---|---|
committer | frostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-10 20:11:12 +0000 |
commit | 4325a586836f118c0ad68a68d66c7c242af98ab4 (patch) | |
tree | c633bdfb0cceaa7b3439388c1112225b8e45a5d1 /configure | |
parent | 54c26dd6cc66032ad6208afd1168fed6928a3912 (diff) |
Fixed problem with strlcpy detection.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1035 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -144,7 +144,7 @@ echo "#include <string.h>">.test.cpp echo "#include <stdio.h>">>.test.cpp echo "int main() { char a[10]; char b[10]; strlcpy(a,b,10); printf(\"%d\\n\",9); }" >>.test.cpp g++ -o .test .test.cpp 2>&1 -if [ ! -e ".test" ] ; then +if [ -e ".test" ] ; then HAS_STRLCPY=1 fi rm -f .test.cpp .test @@ -482,7 +482,7 @@ echo "#define GCC3" >>include/inspircd_config.h echo "#define GCC34" >>include/inspircd_config.h fi fi -if [ $HAS_STRLCPY != "1" ] ; then +if [ "$HAS_STRLCPY" -eq "1" ] ; then echo "#define HAS_STRLCPY" >>include/inspircd_config.h fi echo "#define SYSLOG_FACILITY LOG_DAEMON" >>include/inspircd_config.h |