--- gigedit/trunk/configure.ac 2017/01/02 22:30:03 3070 +++ gigedit/trunk/configure.ac 2017/01/04 12:01:00 3071 @@ -70,10 +70,14 @@ AM_CONDITIONAL(WINDOWS, test "$windows" = "yes") AM_CONDITIONAL(MAC, test "$mac" = "yes") -if test "$mac" = "yes"; then - AC_PROG_OBJC - AC_PROG_OBJCXX -fi +# Note: even though Objective-C sources are just compiled for Mac, the +# following AC macros though must not be embedded into a shell check +# (if test "$mac" = "yes" ...), because those AC macros themselves are +# expanded before any shell code is executed, the generated configure +# code though would then not be executed and would lead to interesting +# libtool errors on non-Mac systems due to this. +AC_PROG_OBJC +AC_PROG_OBJCXX PKG_PROG_PKG_CONFIG have_gtk3=no