[AD] allegro-config not working under macosx

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Hi.

I wanted to run allegro on a macbook. The 4.2 branch compiles and
installs without problems, the examples run too. However, the
allegro-config script installed into /usr/local/bin doesn't work because
there are some @ variables which don't get substituted correctly.

This script is sed'ed from misc/allegro-config.in through makefile.osx.
Variables like @libdir@ or @includedir@ are not modified, so I can't run
allegro-config from other makefiles and get the correct switches for
compilation.

I'm attaching the diff between the installed allegro-config and the one
under misc. As expected from the diff here's the output of the script:

	$ allegro-config --libs
	-L@libdir@ -lalleg-4.2.2 -lalleg-main -framework Cocoa
	$ allegro-config --cflags
	-I@includedir@
--- misc/allegro-config.in	2007-05-26 23:56:27.000000000 +0200
+++ /usr/local/bin/allegro-config	2007-05-27 00:13:23.000000000 +0200
@@ -11,22 +11,22 @@
 
 version=4.2.2
 
-prefix=@prefix@
+prefix=/usr/local
 exec_prefix=$prefix
 exec_prefix_set=no
-include_prefix=@INCLUDE_PREFIX@
+include_prefix=/usr/local
 include_path=@includedir@
 lib_path=@libdir@
 bin_path=@bindir@
 
-static_libs=@LINK_WITH_STATIC_LIBS@
-lib_type=@LIB_TO_LINK@
+static_libs=no
+lib_type=alleg
 
-accepts_frameworks=no
+accepts_frameworks=yes
 
-allegro_ldflags="@LDFLAGS@"
-allegro_libs="@LIBS@"
-allegro_frameworks="@FRAMEWORKS@"
+allegro_ldflags=""
+allegro_libs="-framework Cocoa -framework Carbon -framework IOKit -framework System -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework QuickTime"
+allegro_frameworks="-framework Cocoa -framework Allegro -lalleg-main"
 allegro_cflags=""
 allegro_cppflags=""
 
@@ -183,9 +183,9 @@ fi
 if test "$echo_libs" = "yes"; then
    libdirs=-L${lib_path}
    if test "$static_libs" = "yes"; then
-      echo $libdirs $allegro_ldflags -l${lib_type} $allegro_libs
+      echo $libdirs $allegro_ldflags -l${lib_type}_s $allegro_libs
    else
-      echo $libdirs $allegro_ldflags -l${lib_type}-${version} -l${lib_type}_unsharable
+      echo $libdirs $allegro_ldflags -l${lib_type}-${version} -l${lib_type}-main -framework Cocoa
    fi
 fi
 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/