So trying to build pike 8.0 from git, and got an error about Msql:

=== configuring in Msql (/home/riffraff/src/pike/8.0/pike/build/linux-4.16.6-302.fc28.x86_64-x86_64/modules/Msql)
configure: running /bin/bash -norc /home/riffraff/src/pike/8.0/pike/src/modules/Msql/configure --disable-option-checking '--prefix=/usr/local'  --cache-file=/dev/null --srcdir=/home/riffraff/src/pike/8.0/pike/src/modules/Msql
configure: error: cannot find sources (msqlmod.cmod) in /home/riffraff/src/pike/8.0/pike/src/modules/Msql
configure: error: /home/riffraff/src/pike/8.0/pike/src/modules/Msql/configure failed for Msql
configure: error: /home/riffraff/src/pike/8.0/pike/src/modules/configure failed for modules


ll Msql/
total 52
-rw-rw-r--. 1 riffraff riffraff   403 May 10 20:22 acconfig.h
-rw-rw-r--. 1 riffraff riffraff  2948 May 10 20:22 configure.in
-rw-rw-r--. 1 riffraff riffraff   187 May 10 20:22 Makefile.in
-rw-rw-r--. 1 riffraff riffraff 29556 May 10 20:22 msqlmod.c
-rwxrwxr-x. 1 riffraff riffraff   824 May 10 20:22 test_msqlmod.pike
-rw-rw-r--. 1 riffraff riffraff     0 May 10 20:22 testsuite.in
-rw-rw-r--. 1 riffraff riffraff   334 May 10 20:22 version.h



Before build attempt:

$ pwd
/home/riffraff/src/pike/8.0/pike/src/modules/Msql
? ~/src/pike/8.0/pike/src/modules/Msql [8.0|?19]
20:26 $ grep cmod *

After (make distclean && make):

ll
total 220
-rw-rw-r--. 1 riffraff riffraff    403 May 10 20:26 acconfig.h
-rwxrwxr-x. 1 riffraff riffraff 160015 May 10 20:27 configure
-rw-rw-r--. 1 riffraff riffraff   2948 May 10 20:26 configure.in
-rw-rw-r--. 1 riffraff riffraff      0 May 10 20:27 dependencies
-rw-rw-r--. 1 riffraff riffraff    187 May 10 20:26 Makefile.in
-rw-rw-r--. 1 riffraff riffraff   2236 May 10 20:27 msql_config.h.in
-rw-rw-r--. 1 riffraff riffraff  29556 May 10 20:26 msqlmod.c
-rw-rw-r--. 1 riffraff riffraff      4 May 10 20:27 stamp-h.in
-rwxrwxr-x. 1 riffraff riffraff    824 May 10 20:26 test_msqlmod.pike
-rw-rw-r--. 1 riffraff riffraff      0 May 10 20:26 testsuite.in
-rw-rw-r--. 1 riffraff riffraff    334 May 10 20:26 version.h
? ~/src/pike/8.0/pike/src/modules/Msql [8.0|?19]
20:28 $ grep cmod *
configure:  PMOD_TARGETS=`echo $srcdir/*.cmod | sed -e "s/\.cmod/\.c/g" | sed -e "s|$srcdir/|\\$(SRCDIR)/|g"`

So something in the build is creating configure so that it looks for *.cmod, and fails.

However, I just now encountered that after I removed Msql, I had the same problem with Mysql

Hmm, maybe it is me?  Is there something I'm doing wrong?  I've done this before in the past and haven't had this problem before.