@@ -1,7 +1,12 @@ AC_INIT(ObjFW, 0.4-dev, js@webkeks.org) AC_CONFIG_SRCDIR(src) + +AS_IF([test x"$host" = x"psp"], [ + LIBS="$LIBS -lc -lpspkernel -lpspuser" + LIBS="$LIBS -lpspnet -lpspnet_inet -lpspnet_resolver" +]) AC_CANONICAL_HOST AC_LANG([Objective C]) AC_PROG_OBJC @@ -114,26 +119,26 @@ ObjFW-RT) AC_DEFINE(OF_OBJFW_RUNTIME, 1, [Whether we use the ObjFW runtime]) AC_SUBST(GNU_RUNTIME, "-fgnu-runtime") OBJCFLAGS="$OBJCFLAGS -fgnu-runtime" - LIBS="$LIBS -lobjfw-rt" + LIBS="-lobjfw-rt $LIBS" ;; Apple) AC_DEFINE(OF_APPLE_RUNTIME, 1, [Whether we use the Apple ObjC runtime]) - LIBS="$LIBS -lobjc" + LIBS="-lobjc $LIBS" ;; GNU) AC_DEFINE(OF_GNU_RUNTIME, 1, [Whether we use the GNU ObjC runtime]) - LIBS="$LIBS -lobjc" + LIBS="-lobjc $LIBS" ;; "old GNU") AC_DEFINE(OF_OLD_GNU_RUNTIME, 1, [Whether we use the old GNU ObjC runtime]) - LIBS="$LIBS -lobjc" + LIBS="-lobjc $LIBS" ;; *) AC_MSG_RESULT(none) AC_MSG_ERROR(No ObjC runtime found! Please install ObjFW-RT!) ;;