comparison configure @ 2220:4020bdb806dc

Mac: Add --with-minver option for specifying the minimum MacOS version. Also add a list of build recommendations for platform and feature support. So you can pick the broadest platform support with the features you desire.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 17 Dec 2020 02:44:49 +0000
parents 6cdb907755cb
children 5c981407b0f3
comparison
equal deleted inserted replaced
2219:2c82060fda42 2220:4020bdb806dc
714 htmldir 714 htmldir
715 infodir 715 infodir
716 docdir 716 docdir
717 oldincludedir 717 oldincludedir
718 includedir 718 includedir
719 runstatedir
720 localstatedir 719 localstatedir
721 sharedstatedir 720 sharedstatedir
722 sysconfdir 721 sysconfdir
723 datadir 722 datadir
724 datarootdir 723 datarootdir
742 with_dwcompat 741 with_dwcompat
743 with_gtk2 742 with_gtk2
744 with_deprecated 743 with_deprecated
745 with_arch 744 with_arch
746 with_sdk 745 with_sdk
746 with_minver
747 with_x 747 with_x
748 with_glib_prefix 748 with_glib_prefix
749 with_glib_exec_prefix 749 with_glib_exec_prefix
750 enable_glibtest 750 enable_glibtest
751 with_gtk_prefix 751 with_gtk_prefix
809 datarootdir='${prefix}/share' 809 datarootdir='${prefix}/share'
810 datadir='${datarootdir}' 810 datadir='${datarootdir}'
811 sysconfdir='${prefix}/etc' 811 sysconfdir='${prefix}/etc'
812 sharedstatedir='${prefix}/com' 812 sharedstatedir='${prefix}/com'
813 localstatedir='${prefix}/var' 813 localstatedir='${prefix}/var'
814 runstatedir='${localstatedir}/run'
815 includedir='${prefix}/include' 814 includedir='${prefix}/include'
816 oldincludedir='/usr/include' 815 oldincludedir='/usr/include'
817 docdir='${datarootdir}/doc/${PACKAGE}' 816 docdir='${datarootdir}/doc/${PACKAGE}'
818 infodir='${datarootdir}/info' 817 infodir='${datarootdir}/info'
819 htmldir='${docdir}' 818 htmldir='${docdir}'
1062 1061
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil) 1063 | -silent | --silent | --silen | --sile | --sil)
1065 silent=yes ;; 1064 silent=yes ;;
1066 1065
1067 -runstatedir | --runstatedir | --runstatedi | --runstated \
1068 | --runstate | --runstat | --runsta | --runst | --runs \
1069 | --run | --ru | --r)
1070 ac_prev=runstatedir ;;
1071 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1072 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1073 | --run=* | --ru=* | --r=*)
1074 runstatedir=$ac_optarg ;;
1075
1076 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1066 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077 ac_prev=sbindir ;; 1067 ac_prev=sbindir ;;
1078 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1068 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079 | --sbi=* | --sb=*) 1069 | --sbi=* | --sb=*)
1080 sbindir=$ac_optarg ;; 1070 sbindir=$ac_optarg ;;
1208 1198
1209 # Check all directory arguments for consistency. 1199 # Check all directory arguments for consistency.
1210 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1200 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211 datadir sysconfdir sharedstatedir localstatedir includedir \ 1201 datadir sysconfdir sharedstatedir localstatedir includedir \
1212 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1202 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213 libdir localedir mandir runstatedir 1203 libdir localedir mandir
1214 do 1204 do
1215 eval ac_val=\$$ac_var 1205 eval ac_val=\$$ac_var
1216 # Remove trailing slashes. 1206 # Remove trailing slashes.
1217 case $ac_val in 1207 case $ac_val in
1218 */ ) 1208 */ )
1361 --sbindir=DIR system admin executables [EPREFIX/sbin] 1351 --sbindir=DIR system admin executables [EPREFIX/sbin]
1362 --libexecdir=DIR program executables [EPREFIX/libexec] 1352 --libexecdir=DIR program executables [EPREFIX/libexec]
1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1353 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1354 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1355 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1366 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1367 --libdir=DIR object code libraries [EPREFIX/lib] 1356 --libdir=DIR object code libraries [EPREFIX/lib]
1368 --includedir=DIR C header files [PREFIX/include] 1357 --includedir=DIR C header files [PREFIX/include]
1369 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1358 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1370 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1359 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1371 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1360 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1410 --with-dwcompat specify this to build the optional dwcompat library 1399 --with-dwcompat specify this to build the optional dwcompat library
1411 --with-gtk2 specify this to build with GTK+ 2.x if available 1400 --with-gtk2 specify this to build with GTK+ 2.x if available
1412 --with-deprecated specify this to build with deprecated functions 1401 --with-deprecated specify this to build with deprecated functions
1413 --with-arch specify MacOS architecture: one of modern, classic, 32bit, intel, arm, powerpc 1402 --with-arch specify MacOS architecture: one of modern, classic, 32bit, intel, arm, powerpc
1414 --with-sdk specify this to build with an alternate MacOS SDK location 1403 --with-sdk specify this to build with an alternate MacOS SDK location
1404 --with-minver specify this to build with a minimum MacOS version
1415 --with-x use the X Window System 1405 --with-x use the X Window System
1416 --with-glib-prefix=PFX Prefix where GLIB is installed (optional) 1406 --with-glib-prefix=PFX Prefix where GLIB is installed (optional)
1417 --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional) 1407 --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)
1418 --with-gtk-prefix=PFX Prefix where GTK is installed (optional) 1408 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1419 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) 1409 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
3726 with_sdk=no 3716 with_sdk=no
3727 fi 3717 fi
3728 3718
3729 3719
3730 3720
3721 # Check whether --with-minver was given.
3722 if test "${with_minver+set}" = set; then :
3723 withval=$with_minver; with_minver=$withval
3724 else
3725 with_minver=no
3726 fi
3727
3728
3729
3731 ac_ext=c 3730 ac_ext=c
3732 ac_cpp='$CPP $CPPFLAGS' 3731 ac_cpp='$CPP $CPPFLAGS'
3733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3735 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4685 case "$with_sdk" in 4684 case "$with_sdk" in
4686 no) 4685 no)
4687 ;; 4686 ;;
4688 *) 4687 *)
4689 CC="$CC -isysroot$with_sdk" 4688 CC="$CC -isysroot$with_sdk"
4689 ;;
4690 esac
4691 case "$with_minver" in
4692 no)
4693 ;;
4694 *)
4695 CFLAGS="$CFLAGS -mmacosx-version-min=$with_minver"
4696 LIBS="$LIBS -mmacosx-version-min=$with_minver"
4690 ;; 4697 ;;
4691 esac 4698 esac
4692 SHAREDFLAG="-dynamiclib -flat_namespace -undefined suppress -headerpad_max_install_names" 4699 SHAREDFLAG="-dynamiclib -flat_namespace -undefined suppress -headerpad_max_install_names"
4693 SOSUFFIX=dylib 4700 SOSUFFIX=dylib
4694 DW_DIR=mac 4701 DW_DIR=mac