comparison configure @ 412:a8015e02b590

Initial configure support for MacOS X.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 13 May 2003 07:59:00 +0000
parents 18ecaae9cc3b
children 561acf6de39a
comparison
equal deleted inserted replaced
411:a3a299455c67 412:a8015e02b590
1198 1198
1199 DW_MAJOR_VERSION=1 1199 DW_MAJOR_VERSION=1
1200 DW_MINOR_VERSION=0 1200 DW_MINOR_VERSION=0
1201 DW_SUB_VERSION=0 1201 DW_SUB_VERSION=0
1202 1202
1203 DW_SRC=gtk
1204 DW_DEFINE=__UNIX__
1203 1205
1204 1206
1205 1207
1206 1208
1207 INCLUDES="-I." 1209 INCLUDES="-I."
3578 if test $ac_cv_lib_resolv_gethostbyname = yes; then 3580 if test $ac_cv_lib_resolv_gethostbyname = yes; then
3579 LIBS="$LIBS -lresolv" 3581 LIBS="$LIBS -lresolv"
3580 fi 3582 fi
3581 3583
3582 3584
3583 # Extract the first word of "pkg-config", so it can be a program name with args. 3585 OPSYSTEM=`uname -s`
3586
3587 if test $OPSYSTEM = "Darwin"; then
3588 DW_SRC=mac
3589 DW_DEFINE=__MAC__
3590 else
3591 # Extract the first word of "pkg-config", so it can be a program name with args.
3584 set dummy pkg-config; ac_word=$2 3592 set dummy pkg-config; ac_word=$2
3585 echo "$as_me:$LINENO: checking for $ac_word" >&5 3593 echo "$as_me:$LINENO: checking for $ac_word" >&5
3586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3587 if test "${ac_cv_prog_PKG_CFG+set}" = set; then 3595 if test "${ac_cv_prog_PKG_CFG+set}" = set; then
3588 echo $ECHO_N "(cached) $ECHO_C" >&6 3596 echo $ECHO_N "(cached) $ECHO_C" >&6
3613 else 3621 else
3614 echo "$as_me:$LINENO: result: no" >&5 3622 echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6 3623 echo "${ECHO_T}no" >&6
3616 fi 3624 fi
3617 3625
3618 if test x"$PKG_CFG" != x; then 3626 if test x"$PKG_CFG" != x; then
3619 GTK_LIBS=`$PKG_CFG --silence-errors --libs gtk+-2.0 gthread-2.0` 3627 GTK_LIBS=`$PKG_CFG --silence-errors --libs gtk+-2.0 gthread-2.0`
3620 fi 3628 fi
3621 3629
3622 if test x"$GTK_LIBS" = x; then 3630 if test x"$GTK_LIBS" = x; then
3623 3631
3624 # Check whether --with-glib-prefix or --without-glib-prefix was given. 3632 # Check whether --with-glib-prefix or --without-glib-prefix was given.
3625 if test "${with_glib_prefix+set}" = set; then 3633 if test "${with_glib_prefix+set}" = set; then
3626 withval="$with_glib_prefix" 3634 withval="$with_glib_prefix"
3627 glib_config_prefix="$withval" 3635 glib_config_prefix="$withval"
4480 fi 4488 fi
4481 4489
4482 4490
4483 rm -f conf.gdkimlibtest 4491 rm -f conf.gdkimlibtest
4484 4492
4485 else 4493 else
4486 GTK_CFLAGS=`$PKG_CFG --cflags gtk+-2.0 gthread-2.0` 4494 GTK_CFLAGS=`$PKG_CFG --cflags gtk+-2.0 gthread-2.0`
4487 GTK_LIBS=`$PKG_CFG --libs gtk+-2.0 gthread-2.0` 4495 GTK_LIBS=`$PKG_CFG --libs gtk+-2.0 gthread-2.0`
4496 fi
4488 fi 4497 fi
4489 4498
4490 if test "${ac_cv_header_pthread_h+set}" = set; then 4499 if test "${ac_cv_header_pthread_h+set}" = set; then
4491 echo "$as_me:$LINENO: checking for pthread.h" >&5 4500 echo "$as_me:$LINENO: checking for pthread.h" >&5
4492 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6 4501 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
4792 RM="rm -f" 4801 RM="rm -f"
4793 LN="ln -s" 4802 LN="ln -s"
4794 CP="cp" 4803 CP="cp"
4795 MV="mv" 4804 MV="mv"
4796 MKDIR="mkdir" 4805 MKDIR="mkdir"
4806
4807
4808
4797 4809
4798 4810
4799 4811
4800 4812
4801 4813
5389 s,@RM@,$RM,;t t 5401 s,@RM@,$RM,;t t
5390 s,@LN@,$LN,;t t 5402 s,@LN@,$LN,;t t
5391 s,@CP@,$CP,;t t 5403 s,@CP@,$CP,;t t
5392 s,@MV@,$MV,;t t 5404 s,@MV@,$MV,;t t
5393 s,@MKDIR@,$MKDIR,;t t 5405 s,@MKDIR@,$MKDIR,;t t
5406 s,@DW_SRC@,$DW_SRC,;t t
5407 s,@DW_DEFINE@,$DW_DEFINE,;t t
5394 CEOF 5408 CEOF
5395 5409
5396 _ACEOF 5410 _ACEOF
5397 5411
5398 cat >>$CONFIG_STATUS <<\_ACEOF 5412 cat >>$CONFIG_STATUS <<\_ACEOF