1980
2009
PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1981
2010
FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1982
2011
FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
1983
if test "$UNIVERSAL_ARCHS" = "all"
2012
case "${UNIVERSAL_ARCHS}" in
1985
2014
FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
1986
2015
FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
1988
2018
FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1989
2019
FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1992
2023
if test "x${prefix}" = "xNONE" ; then
1993
2024
FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2091
2122
# On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2092
2123
# even though select is a POSIX function. Reported by J. Ribbens.
2093
2124
# Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2094
OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2125
# In addition, Stefan Krah confirms that issue #1244610 exists through
2126
# OpenBSD 4.6, but is fixed in 4.7.
2127
OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123456])
2095
2128
define_xopen_source=no
2096
2129
# OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2097
2130
# also defined. This can be overridden by defining _BSD_SOURCE
4665
4710
# -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4666
4711
# used to be here, but non-Apple gcc doesn't accept them.
4669
4713
if test "${enable_universalsdk}"; then
4670
4714
UNIVERSAL_ARCH_FLAGS=""
4671
4715
if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4672
4717
UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
4675
4719
elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4720
ARCH_RUN_32BIT="true"
4676
4721
UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
4677
ARCH_RUN_32BIT="true"
4679
4723
elif test "$UNIVERSAL_ARCHS" = "all" ; then
4724
ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
4680
4725
UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4681
ARCH_RUN_32BIT="arch -i386 -ppc"
4726
UNIVERSAL_ARCH32_FLAGS="-arch i386 -arch ppc"
4727
UNIVERSAL_ARCH64_FLAGS="-arch x86_64 -arch ppc64"
4728
LIPO_32BIT_FLAGS="-extract i386 -extract ppc7400"
4729
LIPO_64BIT_FLAGS="-extract x86_64 -extract ppc64"
4683
4731
elif test "$UNIVERSAL_ARCHS" = "intel" ; then
4732
ARCH_RUN_32BIT="/usr/bin/arch -i386"
4684
4733
UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
4685
ARCH_RUN_32BIT="arch -i386"
4734
UNIVERSAL_ARCH32_FLAGS="-arch i386"
4735
UNIVERSAL_ARCH64_FLAGS="-arch x86_64"
4736
LIPO_32BIT_FLAGS="-extract i386"
4737
LIPO_64BIT_FLAGS="-extract x86_64"
4687
4739
elif test "$UNIVERSAL_ARCHS" = "3-way" ; then
4740
ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
4688
4741
UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
4689
ARCH_RUN_32BIT="arch -i386 -ppc"
4742
UNIVERSAL_ARCH32_FLAGS="-arch i386 -arch ppc"
4743
UNIVERSAL_ARCH64_FLAGS="-arch x86_64"
4744
LIPO_32BIT_FLAGS="-extract i386 -extract ppc7400"
4745
LIPO_64BIT_FLAGS="-extract x86_64"
4692
4748
{ { echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5
17195
17256
# exit Python
17196
17257
{ echo "$as_me:$LINENO: checking for chflags" >&5
17197
17258
echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17198
if test "$cross_compiling" = yes; then
17199
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17200
See \`config.log' for more details." >&5
17201
echo "$as_me: error: cannot run test program while cross compiling
17202
See \`config.log' for more details." >&2;}
17203
{ (exit 1); exit 1; }; }
17259
if test "${ac_cv_have_chflags+set}" = set; then
17260
echo $ECHO_N "(cached) $ECHO_C" >&6
17262
if test "$cross_compiling" = yes; then
17263
ac_cv_have_chflags=cross
17205
17265
cat >conftest.$ac_ext <<_ACEOF
17206
17266
/* confdefs.h. */
17240
17300
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241
17301
(exit $ac_status); }; }; then
17302
ac_cv_have_chflags=yes
17304
echo "$as_me: program exited with status $ac_status" >&5
17305
echo "$as_me: failed program was:" >&5
17306
sed 's/^/| /' conftest.$ac_ext >&5
17308
( exit $ac_status )
17309
ac_cv_have_chflags=no
17311
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17317
{ echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5
17318
echo "${ECHO_T}$ac_cv_have_chflags" >&6; }
17319
if test "$ac_cv_have_chflags" = cross ; then
17320
{ echo "$as_me:$LINENO: checking for chflags" >&5
17321
echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17322
if test "${ac_cv_func_chflags+set}" = set; then
17323
echo $ECHO_N "(cached) $ECHO_C" >&6
17325
cat >conftest.$ac_ext <<_ACEOF
17328
cat confdefs.h >>conftest.$ac_ext
17329
cat >>conftest.$ac_ext <<_ACEOF
17330
/* end confdefs.h. */
17331
/* Define chflags to an innocuous variant, in case <limits.h> declares chflags.
17332
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17333
#define chflags innocuous_chflags
17335
/* System header to define __stub macros and hopefully few prototypes,
17336
which can conflict with char chflags (); below.
17337
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17338
<limits.h> exists even on freestanding compilers. */
17341
# include <limits.h>
17343
# include <assert.h>
17348
/* Override any GCC internal prototype to avoid an error.
17349
Use char because int might match the return type of a GCC
17350
builtin and then its argument prototype would still apply. */
17355
/* The GNU C library defines this for functions which it implements
17356
to always fail with ENOSYS. Some functions are actually named
17357
something starting with __ and the normal name is an alias. */
17358
#if defined __stub_chflags || defined __stub___chflags
17370
rm -f conftest.$ac_objext conftest$ac_exeext
17371
if { (ac_try="$ac_link"
17372
case "(($ac_try" in
17373
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17374
*) ac_try_echo=$ac_try;;
17376
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17377
(eval "$ac_link") 2>conftest.er1
17379
grep -v '^ *+' conftest.er1 >conftest.err
17381
cat conftest.err >&5
17382
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383
(exit $ac_status); } && {
17384
test -z "$ac_c_werror_flag" ||
17385
test ! -s conftest.err
17386
} && test -s conftest$ac_exeext &&
17387
$as_test_x conftest$ac_exeext; then
17388
ac_cv_func_chflags=yes
17390
echo "$as_me: failed program was:" >&5
17391
sed 's/^/| /' conftest.$ac_ext >&5
17393
ac_cv_func_chflags=no
17396
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17397
conftest$ac_exeext conftest.$ac_ext
17399
{ echo "$as_me:$LINENO: result: $ac_cv_func_chflags" >&5
17400
echo "${ECHO_T}$ac_cv_func_chflags" >&6; }
17401
if test $ac_cv_func_chflags = yes; then
17402
ac_cv_have_chflags="yes"
17404
ac_cv_have_chflags="no"
17408
if test "$ac_cv_have_chflags" = yes ; then
17243
17410
cat >>confdefs.h <<\_ACEOF
17244
17411
#define HAVE_CHFLAGS 1
17247
{ echo "$as_me:$LINENO: result: yes" >&5
17248
echo "${ECHO_T}yes" >&6; }
17250
echo "$as_me: program exited with status $ac_status" >&5
17251
echo "$as_me: failed program was:" >&5
17252
sed 's/^/| /' conftest.$ac_ext >&5
17254
( exit $ac_status )
17255
{ echo "$as_me:$LINENO: result: no" >&5
17256
echo "${ECHO_T}no" >&6; }
17259
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17264
17416
{ echo "$as_me:$LINENO: checking for lchflags" >&5
17265
17417
echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17266
if test "$cross_compiling" = yes; then
17267
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17268
See \`config.log' for more details." >&5
17269
echo "$as_me: error: cannot run test program while cross compiling
17270
See \`config.log' for more details." >&2;}
17271
{ (exit 1); exit 1; }; }
17418
if test "${ac_cv_have_lchflags+set}" = set; then
17419
echo $ECHO_N "(cached) $ECHO_C" >&6
17421
if test "$cross_compiling" = yes; then
17422
ac_cv_have_lchflags=cross
17273
17424
cat >conftest.$ac_ext <<_ACEOF
17274
17425
/* confdefs.h. */
17308
17459
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309
17460
(exit $ac_status); }; }; then
17461
ac_cv_have_lchflags=yes
17463
echo "$as_me: program exited with status $ac_status" >&5
17464
echo "$as_me: failed program was:" >&5
17465
sed 's/^/| /' conftest.$ac_ext >&5
17467
( exit $ac_status )
17468
ac_cv_have_lchflags=no
17470
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17476
{ echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5
17477
echo "${ECHO_T}$ac_cv_have_lchflags" >&6; }
17478
if test "$ac_cv_have_lchflags" = cross ; then
17479
{ echo "$as_me:$LINENO: checking for lchflags" >&5
17480
echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17481
if test "${ac_cv_func_lchflags+set}" = set; then
17482
echo $ECHO_N "(cached) $ECHO_C" >&6
17484
cat >conftest.$ac_ext <<_ACEOF
17487
cat confdefs.h >>conftest.$ac_ext
17488
cat >>conftest.$ac_ext <<_ACEOF
17489
/* end confdefs.h. */
17490
/* Define lchflags to an innocuous variant, in case <limits.h> declares lchflags.
17491
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17492
#define lchflags innocuous_lchflags
17494
/* System header to define __stub macros and hopefully few prototypes,
17495
which can conflict with char lchflags (); below.
17496
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17497
<limits.h> exists even on freestanding compilers. */
17500
# include <limits.h>
17502
# include <assert.h>
17507
/* Override any GCC internal prototype to avoid an error.
17508
Use char because int might match the return type of a GCC
17509
builtin and then its argument prototype would still apply. */
17514
/* The GNU C library defines this for functions which it implements
17515
to always fail with ENOSYS. Some functions are actually named
17516
something starting with __ and the normal name is an alias. */
17517
#if defined __stub_lchflags || defined __stub___lchflags
17524
return lchflags ();
17529
rm -f conftest.$ac_objext conftest$ac_exeext
17530
if { (ac_try="$ac_link"
17531
case "(($ac_try" in
17532
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17533
*) ac_try_echo=$ac_try;;
17535
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17536
(eval "$ac_link") 2>conftest.er1
17538
grep -v '^ *+' conftest.er1 >conftest.err
17540
cat conftest.err >&5
17541
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542
(exit $ac_status); } && {
17543
test -z "$ac_c_werror_flag" ||
17544
test ! -s conftest.err
17545
} && test -s conftest$ac_exeext &&
17546
$as_test_x conftest$ac_exeext; then
17547
ac_cv_func_lchflags=yes
17549
echo "$as_me: failed program was:" >&5
17550
sed 's/^/| /' conftest.$ac_ext >&5
17552
ac_cv_func_lchflags=no
17555
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17556
conftest$ac_exeext conftest.$ac_ext
17558
{ echo "$as_me:$LINENO: result: $ac_cv_func_lchflags" >&5
17559
echo "${ECHO_T}$ac_cv_func_lchflags" >&6; }
17560
if test $ac_cv_func_lchflags = yes; then
17561
ac_cv_have_lchflags="yes"
17563
ac_cv_have_lchflags="no"
17567
if test "$ac_cv_have_lchflags" = yes ; then
17311
17569
cat >>confdefs.h <<\_ACEOF
17312
17570
#define HAVE_LCHFLAGS 1
17315
{ echo "$as_me:$LINENO: result: yes" >&5
17316
echo "${ECHO_T}yes" >&6; }
17318
echo "$as_me: program exited with status $ac_status" >&5
17319
echo "$as_me: failed program was:" >&5
17320
sed 's/^/| /' conftest.$ac_ext >&5
17322
( exit $ac_status )
17323
{ echo "$as_me:$LINENO: result: no" >&5
17324
echo "${ECHO_T}no" >&6; }
17327
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17332
17575
case $ac_sys_system/$ac_sys_release in
25649
25925
LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
25650
25926
SO!$SO$ac_delim
25651
25927
LDSHARED!$LDSHARED$ac_delim
25930
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25932
elif $ac_last_try; then
25933
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25934
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25935
{ (exit 1); exit 1; }; }
25937
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25941
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25942
if test -n "$ac_eof"; then
25943
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25944
ac_eof=`expr $ac_eof + 1`
25947
cat >>$CONFIG_STATUS <<_ACEOF
25948
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25949
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25952
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25953
s/^/s,@/; s/!/@,|#_!!_#|/
25956
s/'"$ac_delim"'$/,g/; t
25958
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25959
' >>$CONFIG_STATUS <conf$$subs.sed
25960
rm -f conf$$subs.sed
25961
cat >>$CONFIG_STATUS <<_ACEOF
25967
for ac_last_try in false false false false false :; do
25968
cat >conf$$subs.sed <<_ACEOF
25652
25969
BLDSHARED!$BLDSHARED$ac_delim
25653
25970
CCSHARED!$CCSHARED$ac_delim
25654
25971
LINKFORSHARED!$LINKFORSHARED$ac_delim
25655
25972
CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
25658
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25660
elif $ac_last_try; then
25661
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25662
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25663
{ (exit 1); exit 1; }; }
25665
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25669
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25670
if test -n "$ac_eof"; then
25671
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25672
ac_eof=`expr $ac_eof + 1`
25675
cat >>$CONFIG_STATUS <<_ACEOF
25676
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25677
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25680
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25681
s/^/s,@/; s/!/@,|#_!!_#|/
25684
s/'"$ac_delim"'$/,g/; t
25686
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25687
' >>$CONFIG_STATUS <conf$$subs.sed
25688
rm -f conf$$subs.sed
25689
cat >>$CONFIG_STATUS <<_ACEOF
25695
for ac_last_try in false false false false false :; do
25696
cat >conf$$subs.sed <<_ACEOF
25697
25973
SHLIBS!$SHLIBS$ac_delim
25698
25974
USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
25699
25975
SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim