Mercurial > dwindows
comparison configure @ 2130:55c6587f269c
Mac: Add --with-sdk option to configure to specify an alternate MacOS SDK location.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 30 Jun 2020 19:17:41 +0000 |
parents | 2fb132a1d1fa |
children | 07f1366a724c |
comparison
equal
deleted
inserted
replaced
2129:2fb132a1d1fa | 2130:55c6587f269c |
---|---|
736 enable_option_checking | 736 enable_option_checking |
737 with_dwcompat | 737 with_dwcompat |
738 with_gtk2 | 738 with_gtk2 |
739 with_deprecated | 739 with_deprecated |
740 with_arch | 740 with_arch |
741 with_sdk | |
741 with_x | 742 with_x |
742 with_glib_prefix | 743 with_glib_prefix |
743 with_glib_exec_prefix | 744 with_glib_exec_prefix |
744 enable_glibtest | 745 enable_glibtest |
745 with_gtk_prefix | 746 with_gtk_prefix |
1386 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | 1387 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1387 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | 1388 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1388 --with-dwcompat specify this to build the optional dwcompat library | 1389 --with-dwcompat specify this to build the optional dwcompat library |
1389 --with-gtk2 specify this to build with GTK+ 2.x if available | 1390 --with-gtk2 specify this to build with GTK+ 2.x if available |
1390 --with-deprecated specify this to build with deprecated functions | 1391 --with-deprecated specify this to build with deprecated functions |
1391 --with-arch specify architecture: one of all, 32bit, 64bit, intel, ppc, ppc64, x86_64, i386 | 1392 --with-arch specify MacOS architecture: one of all, 32bit, 64bit, intel, arm, ppc, ppc64, x86_64, i386 |
1393 --with-sdk specify this to build with an alternate MacOS SDK location | |
1392 --with-x use the X Window System | 1394 --with-x use the X Window System |
1393 --with-glib-prefix=PFX Prefix where GLIB is installed (optional) | 1395 --with-glib-prefix=PFX Prefix where GLIB is installed (optional) |
1394 --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional) | 1396 --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional) |
1395 --with-gtk-prefix=PFX Prefix where GTK is installed (optional) | 1397 --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1396 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | 1398 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) |
3687 with_arch=no | 3689 with_arch=no |
3688 fi | 3690 fi |
3689 | 3691 |
3690 | 3692 |
3691 | 3693 |
3694 # Check whether --with-sdk was given. | |
3695 if test "${with_sdk+set}" = set; then : | |
3696 withval=$with_sdk; with_sdk=$withval | |
3697 else | |
3698 with_sdk=no | |
3699 fi | |
3700 | |
3701 | |
3702 | |
3692 ac_ext=c | 3703 ac_ext=c |
3693 ac_cpp='$CPP $CPPFLAGS' | 3704 ac_cpp='$CPP $CPPFLAGS' |
3694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 3705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 3706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3696 ac_compiler_gnu=$ac_cv_c_compiler_gnu | 3707 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4639 arm) | 4650 arm) |
4640 ARCH="-arch arm64" | 4651 ARCH="-arch arm64" |
4641 ;; | 4652 ;; |
4642 *) | 4653 *) |
4643 ARCH="-arch $with_arch" | 4654 ARCH="-arch $with_arch" |
4655 ;; | |
4656 esac | |
4657 case "$with_sdk" in | |
4658 no) | |
4659 ;; | |
4660 *) | |
4661 CC="$CC -isysroot$with_sdk" | |
4644 ;; | 4662 ;; |
4645 esac | 4663 esac |
4646 SHAREDFLAG="-dynamiclib -flat_namespace -undefined suppress -headerpad_max_install_names" | 4664 SHAREDFLAG="-dynamiclib -flat_namespace -undefined suppress -headerpad_max_install_names" |
4647 SOSUFFIX=dylib | 4665 SOSUFFIX=dylib |
4648 DW_DIR=mac | 4666 DW_DIR=mac |