aboutsummaryrefslogtreecommitdiffstats
path: root/macros
diff options
context:
space:
mode:
authorArturo Espinosa <unammx@src.gnome.org>1998-02-11 11:01:47 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-02-11 11:01:47 +0800
commit68ab0fcf20bb6957b56d70c704bc8b9ef5ad0cd9 (patch)
tree09264fdcb0ee409276be28086cb82256704e0d85 /macros
parent4fdf7de508224509cf62f87f879c9fce6ee1d2ea (diff)
downloadgsoc2013-evolution-68ab0fcf20bb6957b56d70c704bc8b9ef5ad0cd9.tar.gz
gsoc2013-evolution-68ab0fcf20bb6957b56d70c704bc8b9ef5ad0cd9.tar.zst
gsoc2013-evolution-68ab0fcf20bb6957b56d70c704bc8b9ef5ad0cd9.zip
Gnome/Objc automake/autoconf setup
svn path=/trunk/; revision=15
Diffstat (limited to 'macros')
-rw-r--r--macros/gnome-objc-checks.m447
1 files changed, 30 insertions, 17 deletions
diff --git a/macros/gnome-objc-checks.m4 b/macros/gnome-objc-checks.m4
index 96f0aa4bb5..48a7818619 100644
--- a/macros/gnome-objc-checks.m4
+++ b/macros/gnome-objc-checks.m4
@@ -14,22 +14,22 @@ dnl FIXME: extend list of possible names of ObjC compilers.
AC_CACHE_CHECK([if Objective C compiler ($OBJC) works],
ac_cv_prog_objc_works, [
if test -n "$OBJC"; then
- cat > conftest.m <<EOF
- #include <objc/Object.h>
- @interface myRandomObj : Object
- {
- }
- @end
- @implementation myRandomObj
- @end
- int main () {
- /* No, you are not seeing double. Remember that square brackets
- are the autoconf m4 quotes. */
- id myid = [[myRandomObj alloc]];
- [[myid free]];
- return 0;
- }
- EOF
+ cat > conftest.m <<EOF
+#include <objc/Object.h>
+@interface myRandomObj : Object
+{
+}
+@end
+@implementation myRandomObj
+@end
+int main () {
+ /* No, you are not seeing double. Remember that square brackets
+ are the autoconf m4 quotes. */
+ id myid = [[myRandomObj alloc]];
+ [[myid free]];
+ return 0;
+}
+EOF
$OBJC -o conftest $LDFLAGS conftest.m -lobjc $PTHREAD_LIB 1>&AC_FD_CC 2>&1
result=$?
@@ -44,4 +44,17 @@ dnl FIXME: extend list of possible names of ObjC compilers.
])
AM_CONDITIONAL(OBJECTIVE_C, test x$ac_cv_prog_objc_works = xyes)
-]) \ No newline at end of file
+])
+
+AC_DEFUN([GNOME_INIT_OBJC],
+[
+ AC_MSG_CHECKING(Loading obGnomeConf.sh values)
+ if test -e $gnome_prefix/obGnomeConf.sh; then
+ . $gnome_prefix/obGnomeConf.sh
+ AC_MSG_RESULT(found)
+ else
+ AC_MSG_ERROR(Could not find the obGnomeConf.sh file that is generated by gnome-objc install)
+ fi
+ AC_SUBST(OBGNOME_LIBS)
+ AC_SUBST(OBGTK_LIBS)
+])
'/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/lang/pike78?id=fa90c8ebab4f0c342282591ed62f499dc4fe9bfe'>Mark broken on 7.x/amd64: segmentation fault during compilationjohans2011-04-181-0/+5 * - Remove Pike 7.8 dependency on the Nettle port,johans2011-04-092-3/+2 * Bump PORTREVISION for ports linking to default libmysqlclient.ale2011-03-191-1/+1 * Pike 7.8 works fine on sparc64johans2010-10-291-1/+1 * Bounce PORTREVISION for gettext-related ports. Have fun, ya'll.ade2010-05-311-1/+1 * Switch to use newer GMP version.ale2010-04-191-2/+2 * Update my mail address to @FreeBSD.orgjohans2010-02-241-1/+1 * - update to jpeg-8dinoex2010-02-051-2/+2 * - Unbreak on 8.x (fix plist)johans2009-12-042-1310/+9 * Update to 7.8.352johans2009-10-093-57/+53 * - Register CONFLICTS for lang/pike* ports (binaries + manuals in same place)johans2009-08-091-0/+2 * Mark broken on FreeBSD-8johans2009-07-301-0/+4 * - update to jpeg7dinoex2009-07-181-1/+2 * Update to pike 7.8.316johans2009-07-093-46/+26 * Tell pike how to build and install shared module libs on amd64johans2009-05-221-3/+3 * Disable problematic gssapi modulejohans2009-05-211-0/+1 * Pike is an interpreted, object-oriented programming language.johans2009-05-19