Changelog for HylaFAX 4.2.1
+* check strftime with arguments, gcc-3.3 fix (23 Dec 2004)
* initialize some variables in some scripts that may not
be initialzed in setup.cache (23 Dec 2004)
* remove need to have separate "fax" user (22 Dec 2004)
runMake t "t:; \${CCF} t.c $libs"
}
+#
+# Look for a library using a known (unique) function.
+#
+CheckForLibraryWithArgs()
+{
+ f=$1; shift
+ a=$1; shift
+ libs="$@";
+ cat>t.c<<EOF
+int t() { $f($a); return 0; }
+int main(){ t(); return 0; }
+EOF
+ capture cat t.c
+ runMake t "t:; \${CCF} t.c $libs"
+}
+
#
# Look for an include file.
#
fi
done
}
-CheckForLibrary strftime -lc || {
+CheckForLibraryWithArgs strftime "(void*)0, 0, (void*)0, (void*)0" -lc || {
#
# SCO has strftime in -lintl.
#