Mercurial > dwindows
comparison configure @ 639:06be879f5137
Support for building with GTK+ on Mac OSX
author | mhessling@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 12 Apr 2009 01:12:04 +0000 |
parents | f6f887d2c5aa |
children | 9ab89d89e6b4 |
comparison
equal
deleted
inserted
replaced
638:3ce487327afd | 639:06be879f5137 |
---|---|
648 ECHO_T | 648 ECHO_T |
649 LIBS | 649 LIBS |
650 build_alias | 650 build_alias |
651 host_alias | 651 host_alias |
652 target_alias | 652 target_alias |
653 TARGET | |
654 TARGET2 | |
653 DW_MAJOR_VERSION | 655 DW_MAJOR_VERSION |
654 DW_MINOR_VERSION | 656 DW_MINOR_VERSION |
655 DW_SUB_VERSION | 657 DW_SUB_VERSION |
656 CC | 658 CC |
657 CFLAGS | 659 CFLAGS |
665 ac_ct_CXX | 667 ac_ct_CXX |
666 MAKE | 668 MAKE |
667 INSTALL_PROGRAM | 669 INSTALL_PROGRAM |
668 INSTALL_SCRIPT | 670 INSTALL_SCRIPT |
669 INSTALL_DATA | 671 INSTALL_DATA |
672 SYSCONF_LINK_TARGET_SHARED | |
673 SYSCONF_LINK_TARGET_SHARED2 | |
670 CPP | 674 CPP |
671 GREP | 675 GREP |
672 EGREP | 676 EGREP |
673 PKG_CFG | 677 PKG_CFG |
674 GLIB_CONFIG | 678 GLIB_CONFIG |
689 SHAREDFLAG | 693 SHAREDFLAG |
690 SOSUFFIX | 694 SOSUFFIX |
691 DW_SRC | 695 DW_SRC |
692 DW_DEFINE | 696 DW_DEFINE |
693 BROWSER_OBJECT | 697 BROWSER_OBJECT |
698 COMPAT_OBJECT | |
699 INSTALL_COMPAT | |
694 LIBOBJS | 700 LIBOBJS |
695 LTLIBOBJS' | 701 LTLIBOBJS' |
696 ac_subst_files='' | 702 ac_subst_files='' |
697 ac_precious_vars='build_alias | 703 ac_precious_vars='build_alias |
698 host_alias | 704 host_alias |
1279 --disable-imlibtest Do not try to compile and run a test IMLIB program | 1285 --disable-imlibtest Do not try to compile and run a test IMLIB program |
1280 | 1286 |
1281 Optional Packages: | 1287 Optional Packages: |
1282 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | 1288 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1283 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | 1289 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1290 --with-compat specify this to build the optional dwcompat library | |
1291 --with-gtk specify this to build dwindows with GTK+ (only relevant for OSX) | |
1284 --with-glib-prefix=PFX Prefix where GLIB is installed (optional) | 1292 --with-glib-prefix=PFX Prefix where GLIB is installed (optional) |
1285 --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional) | 1293 --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional) |
1286 --with-gtk-prefix=PFX Prefix where GTK is installed (optional) | 1294 --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1287 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | 1295 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) |
1288 --with-imlib-prefix=PFX Prefix where IMLIB is installed (optional) | 1296 --with-imlib-prefix=PFX Prefix where IMLIB is installed (optional) |
1727 | 1735 |
1728 DW_MAJOR_VERSION=1 | 1736 DW_MAJOR_VERSION=1 |
1729 DW_MINOR_VERSION=1 | 1737 DW_MINOR_VERSION=1 |
1730 DW_SUB_VERSION=0 | 1738 DW_SUB_VERSION=0 |
1731 | 1739 |
1740 TARGET="dw" | |
1741 TARGET2="dwcompat" | |
1742 | |
1743 | |
1744 | |
1732 DW_SRC=gtk | 1745 DW_SRC=gtk |
1733 DW_DEFINE=__UNIX__ | 1746 DW_DEFINE=__UNIX__ |
1734 SHAREDFLAG=-shared | 1747 SHAREDFLAG=-shared |
1735 SOSUFFIX=so | 1748 SOSUFFIX=so |
1736 | 1749 |
3210 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 3223 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3211 | 3224 |
3212 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 3225 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3213 | 3226 |
3214 | 3227 |
3228 | |
3229 | |
3230 with_compat=no | |
3231 | |
3232 # Check whether --with-compat was given. | |
3233 if test "${with_compat+set}" = set; then | |
3234 withval=$with_compat; with_compat=$withval | |
3235 else | |
3236 with_compat=no | |
3237 fi | |
3238 | |
3239 if test $with_compat = yes; then | |
3240 COMPAT_OBJECT="compat.o" | |
3241 INSTALL_COMPAT="installcompat" | |
3242 SYSCONF_LINK_TARGET_SHARED2="lib$TARGET2.$SOSUFFIX.$DW_MAJOR_VERSION.$DW_MINOR_VERSION" | |
3243 else | |
3244 COMPAT_OBJECT="" | |
3245 INSTALL_COMPAT="" | |
3246 SYSCONF_LINK_TARGET_SHARED2="" | |
3247 fi | |
3248 SYSCONF_LINK_TARGET_SHARED="lib$TARGET.$SOSUFFIX.$DW_MAJOR_VERSION.$DW_MINOR_VERSION" | |
3249 | |
3250 | |
3251 | |
3252 | |
3253 # Check whether --with-gtk was given. | |
3254 if test "${with_gtk+set}" = set; then | |
3255 withval=$with_gtk; with_gtk=$withval | |
3256 else | |
3257 with_gtk=no | |
3258 fi | |
3215 | 3259 |
3216 | 3260 |
3217 | 3261 |
3218 ac_ext=c | 3262 ac_ext=c |
3219 ac_cpp='$CPP $CPPFLAGS' | 3263 ac_cpp='$CPP $CPPFLAGS' |
4977 | 5021 |
4978 ;; | 5022 ;; |
4979 esac | 5023 esac |
4980 | 5024 |
4981 if test $OPSYSTEM = "Darwin"; then | 5025 if test $OPSYSTEM = "Darwin"; then |
4982 DW_SRC=mac | 5026 ARCH="-arch ppc -arch ppc64 -arch x86_64 -arch i386" |
4983 DW_DEFINE=__MAC__ | 5027 SHAREDFLAG="-dynamiclib -flat_namespace -undefined suppress $ARCH" |
4984 SHAREDFLAG=-dynamiclib | |
4985 SOSUFFIX=dylib | 5028 SOSUFFIX=dylib |
4986 LIBS="$LIBS -framework Carbon" | 5029 if test $with_gtk = yes; then |
5030 DW_SRC=gtk | |
5031 LIBS="$LIBS -framework Gtk -framework Glib -framework Cairo" | |
5032 GTK_CFLAGS="-I/Library/Frameworks/Gtk.framework/Headers -I/Library/Frameworks/Glib.framework/Headers -I/Library/Frameworks/Cairo.framework/Headers $ARCH" | |
5033 else | |
5034 DW_SRC=mac | |
5035 DW_DEFINE=__MAC__ | |
5036 LIBS="$LIBS -framework Carbon" | |
5037 fi | |
4987 else | 5038 else |
4988 # Extract the first word of "pkg-config", so it can be a program name with args. | 5039 # Extract the first word of "pkg-config", so it can be a program name with args. |
4989 set dummy pkg-config; ac_word=$2 | 5040 set dummy pkg-config; ac_word=$2 |
4990 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 5041 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 5042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
6413 | 6464 |
6414 | 6465 |
6415 | 6466 |
6416 | 6467 |
6417 | 6468 |
6469 | |
6470 | |
6418 ac_config_files="$ac_config_files Makefile dw-config" | 6471 ac_config_files="$ac_config_files Makefile dw-config" |
6419 | 6472 |
6420 cat >confcache <<\_ACEOF | 6473 cat >confcache <<\_ACEOF |
6421 # This file is a shell script that caches the results of configure | 6474 # This file is a shell script that caches the results of configure |
6422 # tests run on this system so they can be shared between configure | 6475 # tests run on this system so they can be shared between configure |
7069 ECHO_T!$ECHO_T$ac_delim | 7122 ECHO_T!$ECHO_T$ac_delim |
7070 LIBS!$LIBS$ac_delim | 7123 LIBS!$LIBS$ac_delim |
7071 build_alias!$build_alias$ac_delim | 7124 build_alias!$build_alias$ac_delim |
7072 host_alias!$host_alias$ac_delim | 7125 host_alias!$host_alias$ac_delim |
7073 target_alias!$target_alias$ac_delim | 7126 target_alias!$target_alias$ac_delim |
7127 TARGET!$TARGET$ac_delim | |
7128 TARGET2!$TARGET2$ac_delim | |
7074 DW_MAJOR_VERSION!$DW_MAJOR_VERSION$ac_delim | 7129 DW_MAJOR_VERSION!$DW_MAJOR_VERSION$ac_delim |
7075 DW_MINOR_VERSION!$DW_MINOR_VERSION$ac_delim | 7130 DW_MINOR_VERSION!$DW_MINOR_VERSION$ac_delim |
7076 DW_SUB_VERSION!$DW_SUB_VERSION$ac_delim | 7131 DW_SUB_VERSION!$DW_SUB_VERSION$ac_delim |
7077 CC!$CC$ac_delim | 7132 CC!$CC$ac_delim |
7078 CFLAGS!$CFLAGS$ac_delim | 7133 CFLAGS!$CFLAGS$ac_delim |
7086 ac_ct_CXX!$ac_ct_CXX$ac_delim | 7141 ac_ct_CXX!$ac_ct_CXX$ac_delim |
7087 MAKE!$MAKE$ac_delim | 7142 MAKE!$MAKE$ac_delim |
7088 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | 7143 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
7089 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | 7144 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
7090 INSTALL_DATA!$INSTALL_DATA$ac_delim | 7145 INSTALL_DATA!$INSTALL_DATA$ac_delim |
7146 SYSCONF_LINK_TARGET_SHARED!$SYSCONF_LINK_TARGET_SHARED$ac_delim | |
7147 SYSCONF_LINK_TARGET_SHARED2!$SYSCONF_LINK_TARGET_SHARED2$ac_delim | |
7091 CPP!$CPP$ac_delim | 7148 CPP!$CPP$ac_delim |
7092 GREP!$GREP$ac_delim | 7149 GREP!$GREP$ac_delim |
7093 EGREP!$EGREP$ac_delim | 7150 EGREP!$EGREP$ac_delim |
7094 PKG_CFG!$PKG_CFG$ac_delim | 7151 PKG_CFG!$PKG_CFG$ac_delim |
7095 GLIB_CONFIG!$GLIB_CONFIG$ac_delim | 7152 GLIB_CONFIG!$GLIB_CONFIG$ac_delim |
7110 SHAREDFLAG!$SHAREDFLAG$ac_delim | 7167 SHAREDFLAG!$SHAREDFLAG$ac_delim |
7111 SOSUFFIX!$SOSUFFIX$ac_delim | 7168 SOSUFFIX!$SOSUFFIX$ac_delim |
7112 DW_SRC!$DW_SRC$ac_delim | 7169 DW_SRC!$DW_SRC$ac_delim |
7113 DW_DEFINE!$DW_DEFINE$ac_delim | 7170 DW_DEFINE!$DW_DEFINE$ac_delim |
7114 BROWSER_OBJECT!$BROWSER_OBJECT$ac_delim | 7171 BROWSER_OBJECT!$BROWSER_OBJECT$ac_delim |
7172 COMPAT_OBJECT!$COMPAT_OBJECT$ac_delim | |
7173 INSTALL_COMPAT!$INSTALL_COMPAT$ac_delim | |
7115 LIBOBJS!$LIBOBJS$ac_delim | 7174 LIBOBJS!$LIBOBJS$ac_delim |
7116 LTLIBOBJS!$LTLIBOBJS$ac_delim | 7175 LTLIBOBJS!$LTLIBOBJS$ac_delim |
7117 _ACEOF | 7176 _ACEOF |
7118 | 7177 |
7119 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then | 7178 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 86; then |
7120 break | 7179 break |
7121 elif $ac_last_try; then | 7180 elif $ac_last_try; then |
7122 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | 7181 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
7123 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | 7182 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
7124 { (exit 1); exit 1; }; } | 7183 { (exit 1); exit 1; }; } |