|
From: Mojca M. <moj...@gm...> - 2011-07-22 10:37:58
|
On Fri, Jul 22, 2011 at 03:59, Lutz Maibaum wrote:
>
> Could you try this one-line change in configure.in, run the prepare script, and then try to configure?
>
> 1357c1357
> < if test "$is_apple" = yes; then
> ---
>> if test "$ac_cv_lib_aquaterm_aqtInit" = yes; then
>
> This should take care of the incorrect configure summary.
This does take care of configure summary (but I didn't even try since
it doesn't help me to include aquaterm), but it doesn't even try to
use "-framework AquaTerm", so it will fail to include AquaTerm after
all anyway.
>> This would help in the case of macports. It doesn't help with aquaterm
>> 1.1.0 which doesn't install libaquaterm.dylib at all.
>
> It doesn't install a dynamic library at all, not even within the framework directory structure?
Of course it installs it into the framework.
> I do not know how one could modify the configure process to check for the presence of the aquaterm framework. For libraries there is a standard way to do so (the AC_CHECK_LIB macro, used in m4/apple.m4), but it's not clear to me if there is something similar for frameworks.
It would probably be easier to use cmake, but just to answer you. I
have no idea how autotools work. The configure script currently has
$as_echo "yes" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for aqtInit in
-laquaterm" >&5
$as_echo_n "checking for aqtInit in -laquaterm... " >&6; }
if ${ac_cv_lib_aquaterm_aqtInit+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-laquaterm -lobjc $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char aqtInit ();
int
main ()
{
return aqtInit ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_aquaterm_aqtInit=yes
else
ac_cv_lib_aquaterm_aqtInit=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
$ac_cv_lib_aquaterm_aqtInit" >&5
$as_echo "$ac_cv_lib_aquaterm_aqtInit" >&6; }
if test "x$ac_cv_lib_aquaterm_aqtInit" = xyes; then :
LIBS="-laquaterm $LIBS -framework Foundation"
CFLAGS="$CFLAGS -ObjC"
$as_echo "#define HAVE_LIBAQUATERM 1" >>confdefs.h
fi
All you need to do is to replace every instance of -laquaterm with
-framework AquaTerm and check if that flag works ok. I have no idea
how to do that in auto tools.
(Off-topic: is anyone providing Qt support/fixing Qt bugs? I reported
twice the reasons why I cannot use it, but I didn't get any response.)
Mojca
|