zturtleman / mm3d

Maverick Model 3D is a 3D model editor and animator for games.
https://clover.moe/mm3d
GNU General Public License v2.0
110 stars 22 forks source link

fix misplaced "fi"s #193

Closed sharkcz closed 4 months ago

sharkcz commented 4 months ago

When configure.ac is processed with autoconf 2.72, then configure fails with

checking for lua... yes:
    LUA_CCFLAGS=-I/usr/include
    LUA_DIR=/usr
    LUA_LIBS=-L/usr/lib64 -llua -lm -ldl
./configure: line 7936: syntax error near unexpected token `fi'
./configure: line 7936: `      fi'

I believe some of the "fi"s in KSW_HAVE_LUA and KSW_HAVE_LUALIB are not placed correctly, so fix that.

sharkcz commented 4 months ago

With this fix I am able to build mm3d for Fedora Rawhide with autotools 2.72 and it doesn't break anything for earlier Fedora releases with autoconf 2.71. Lua is found in both cases correctly.

zturtleman commented 4 months ago

Thanks.

(I amended the commit message to add "configure: " prefix.)