]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
configure: use well-known file name conftest.c
authorKamil Dudka <kdudka@redhat.com>
Mon, 15 Mar 2021 09:27:40 +0000 (10:27 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 15 Mar 2021 09:42:48 +0000 (10:42 +0100)
... for configuration checks.  Compiler wrappers check for this name
in order to skip any instrumentation of the build that is intended
for regular source files only.

configure

index a0f62d7b67f4d6df9287fd5559ea9292650e90d1..729a9d4c7a07a63739d5d7fb5490ac24eac3b8b9 100755 (executable)
--- a/configure
+++ b/configure
@@ -33,13 +33,13 @@ test_code () {
     echo "int main(int argc, char **argv) {"
     echo "$code"
     echo "return 0; }"
-  ) > docheck.c
+  ) > conftest.c
 
-  echo "docheck.c:" >> config.log
-  cat docheck.c >> config.log
-  echo $MYCC $MYCFLAGS $MYCPPFLAGS $cflags -o docheck docheck.c $ldflags \
+  echo "conftest.c:" >> config.log
+  cat conftest.c >> config.log
+  echo $MYCC $MYCFLAGS $MYCPPFLAGS $cflags -o conftest conftest.c $ldflags \
     $MYLDFLAGS >> config.log
-  $MYCC $MYCFLAGS $MYCPPFLAGS $cflags -o docheck docheck.c $ldflags \
+  $MYCC $MYCFLAGS $MYCPPFLAGS $cflags -o conftest conftest.c $ldflags \
     $MYLDFLAGS >> config.log 2>&1
 
   if [ $? -eq 0 ]
@@ -50,7 +50,7 @@ test_code () {
     echo "No"
     result=1
   fi
-  rm -f docheck.c docheck
+  rm -f conftest.c conftest
   echo >> config.log
   return $result
 }