O Venres 16/11/2007 ás 15:27, [EMAIL PROTECTED] dicía... > > I don't know what is the "standard" way of detecting which version > > of Maemo you're using, but you can do it using autoconf and > > checking the versions of some basic libraries such as libosso and > > hildon. > > Are there any symbols that simply detect Maemo or not Maemo?
That's what I use: if pkg-config --exists libosso; then # Compiling for Maemo else # Otherwise ... fi And to detect the Maemo version: libossovers=`$PKG_CONFIG libosso --modversion | cut -d . -f 1` if test "$libossovers" = "1"; then # This is Maemo 2/3 elif test "$libossovers" = "2"; then # This is Maemo 4 fi -- Alberto García González http://people.igalia.com/berto/ _______________________________________________ maemo-developers mailing list [email protected] https://lists.maemo.org/mailman/listinfo/maemo-developers
