@@ -680,9 +680,6 @@ MKDIR_P
680
680
INSTALL_DATA
681
681
INSTALL_SCRIPT
682
682
INSTALL_PROGRAM
683
- OPCODEHGEN
684
- PYTHON
685
- ASDLGEN
686
683
ac_ct_READELF
687
684
READELF
688
685
ARFLAGS
@@ -743,6 +740,7 @@ CONFIG_ARGS
743
740
SOVERSION
744
741
VERSION
745
742
PYTHON_FOR_BUILD
743
+ PYTHON_FOR_GEN
746
744
host_os
747
745
host_vendor
748
746
host_cpu
@@ -776,7 +774,6 @@ infodir
776
774
docdir
777
775
oldincludedir
778
776
includedir
779
- runstatedir
780
777
localstatedir
781
778
sharedstatedir
782
779
sysconfdir
@@ -887,7 +884,6 @@ datadir='${datarootdir}'
887
884
sysconfdir=' ${prefix}/etc'
888
885
sharedstatedir=' ${prefix}/com'
889
886
localstatedir=' ${prefix}/var'
890
- runstatedir=' ${localstatedir}/run'
891
887
includedir=' ${prefix}/include'
892
888
oldincludedir=' /usr/include'
893
889
docdir=' ${datarootdir}/doc/${PACKAGE_TARNAME}'
@@ -1140,15 +1136,6 @@ do
1140
1136
| -silent | --silent | --silen | --sile | --sil)
1141
1137
silent=yes ;;
1142
1138
1143
- -runstatedir | --runstatedir | --runstatedi | --runstated \
1144
- | --runstate | --runstat | --runsta | --runst | --runs \
1145
- | --run | --ru | --r)
1146
- ac_prev=runstatedir ;;
1147
- -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1148
- | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1149
- | --run=* | --ru=* | --r=* )
1150
- runstatedir=$ac_optarg ;;
1151
-
1152
1139
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153
1140
ac_prev=sbindir ;;
1154
1141
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1286
1273
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287
1274
datadir sysconfdir sharedstatedir localstatedir includedir \
1288
1275
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289
- libdir localedir mandir runstatedir
1276
+ libdir localedir mandir
1290
1277
do
1291
1278
eval ac_val=\$ $ac_var
1292
1279
# Remove trailing slashes.
@@ -1439,7 +1426,6 @@ Fine tuning of the installation directories:
1439
1426
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1440
1427
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441
1428
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442
- --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1443
1429
--libdir=DIR object code libraries [EPREFIX/lib]
1444
1430
--includedir=DIR C header files [PREFIX/include]
1445
1431
--oldincludedir=DIR C header files for non-gcc [/usr/include]
@@ -2995,6 +2981,56 @@ case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2995
2981
# pybuilddir.txt will be created by --generate-posix-vars in the Makefile
2996
2982
rm -f pybuilddir.txt
2997
2983
2984
+ for ac_prog in python$PACKAGE_VERSION python3 python
2985
+ do
2986
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
2987
+ set dummy $ac_prog ; ac_word=$2
2988
+ { $as_echo " $as_me :${as_lineno-$LINENO } : checking for $ac_word " >&5
2989
+ $as_echo_n " checking for $ac_word ... " >&6 ; }
2990
+ if ${ac_cv_prog_PYTHON_FOR_GEN+: } false ; then :
2991
+ $as_echo_n " (cached) " >&6
2992
+ else
2993
+ if test -n " $PYTHON_FOR_GEN " ; then
2994
+ ac_cv_prog_PYTHON_FOR_GEN=" $PYTHON_FOR_GEN " # Let the user override the test.
2995
+ else
2996
+ as_save_IFS=$IFS ; IFS=$PATH_SEPARATOR
2997
+ for as_dir in $PATH
2998
+ do
2999
+ IFS=$as_save_IFS
3000
+ test -z " $as_dir " && as_dir=.
3001
+ for ac_exec_ext in ' ' $ac_executable_extensions ; do
3002
+ if as_fn_executable_p " $as_dir /$ac_word$ac_exec_ext " ; then
3003
+ ac_cv_prog_PYTHON_FOR_GEN=" $ac_prog "
3004
+ $as_echo " $as_me :${as_lineno-$LINENO } : found $as_dir /$ac_word$ac_exec_ext " >&5
3005
+ break 2
3006
+ fi
3007
+ done
3008
+ done
3009
+ IFS=$as_save_IFS
3010
+
3011
+ fi
3012
+ fi
3013
+ PYTHON_FOR_GEN=$ac_cv_prog_PYTHON_FOR_GEN
3014
+ if test -n " $PYTHON_FOR_GEN " ; then
3015
+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: $PYTHON_FOR_GEN " >&5
3016
+ $as_echo " $PYTHON_FOR_GEN " >&6 ; }
3017
+ else
3018
+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
3019
+ $as_echo " no" >&6 ; }
3020
+ fi
3021
+
3022
+
3023
+ test -n " $PYTHON_FOR_GEN " && break
3024
+ done
3025
+ test -n " $PYTHON_FOR_GEN " || PYTHON_FOR_GEN=" not-found"
3026
+
3027
+ if test " $PYTHON_FOR_GEN " = not-found; then
3028
+ PYTHON_FOR_GEN=' @echo "Cannot generate $@, python not found !" && \
3029
+ echo "To skip re-generation of $@ run <make touch> or <make -t $@>." && \
3030
+ echo "Otherwise, set python in PATH and run configure or run <make PYTHON_FOR_GEN=python>." && false &&'
3031
+ fi
3032
+
3033
+
2998
3034
if test " $cross_compiling " = yes; then
2999
3035
{ $as_echo " $as_me :${as_lineno-$LINENO } : checking for python interpreter for cross build" >&5
3000
3036
$as_echo_n " checking for python interpreter for cross build... " >&6 ; }
@@ -6295,107 +6331,6 @@ fi
6295
6331
6296
6332
6297
6333
6298
- for ac_prog in python$PACKAGE_VERSION python3 python
6299
- do
6300
- # Extract the first word of "$ac_prog", so it can be a program name with args.
6301
- set dummy $ac_prog ; ac_word=$2
6302
- { $as_echo " $as_me :${as_lineno-$LINENO } : checking for $ac_word " >&5
6303
- $as_echo_n " checking for $ac_word ... " >&6 ; }
6304
- if ${ac_cv_prog_PYTHON+: } false ; then :
6305
- $as_echo_n " (cached) " >&6
6306
- else
6307
- if test -n " $PYTHON " ; then
6308
- ac_cv_prog_PYTHON=" $PYTHON " # Let the user override the test.
6309
- else
6310
- as_save_IFS=$IFS ; IFS=$PATH_SEPARATOR
6311
- for as_dir in $PATH
6312
- do
6313
- IFS=$as_save_IFS
6314
- test -z " $as_dir " && as_dir=.
6315
- for ac_exec_ext in ' ' $ac_executable_extensions ; do
6316
- if as_fn_executable_p " $as_dir /$ac_word$ac_exec_ext " ; then
6317
- ac_cv_prog_PYTHON=" $ac_prog "
6318
- $as_echo " $as_me :${as_lineno-$LINENO } : found $as_dir /$ac_word$ac_exec_ext " >&5
6319
- break 2
6320
- fi
6321
- done
6322
- done
6323
- IFS=$as_save_IFS
6324
-
6325
- fi
6326
- fi
6327
- PYTHON=$ac_cv_prog_PYTHON
6328
- if test -n " $PYTHON " ; then
6329
- { $as_echo " $as_me :${as_lineno-$LINENO } : result: $PYTHON " >&5
6330
- $as_echo " $PYTHON " >&6 ; }
6331
- else
6332
- { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
6333
- $as_echo " no" >&6 ; }
6334
- fi
6335
-
6336
-
6337
- test -n " $PYTHON " && break
6338
- done
6339
- test -n " $PYTHON " || PYTHON=" not-found"
6340
-
6341
- if test " $PYTHON " = not-found; then
6342
- ASDLGEN=" @echo python: $PYTHON ! cannot run \$ (srcdir)/Parser/asdl_c.py #"
6343
- else
6344
- ASDLGEN=" $PYTHON "
6345
- fi
6346
-
6347
-
6348
- for ac_prog in python$PACKAGE_VERSION python3 python
6349
- do
6350
- # Extract the first word of "$ac_prog", so it can be a program name with args.
6351
- set dummy $ac_prog ; ac_word=$2
6352
- { $as_echo " $as_me :${as_lineno-$LINENO } : checking for $ac_word " >&5
6353
- $as_echo_n " checking for $ac_word ... " >&6 ; }
6354
- if ${ac_cv_prog_PYTHON+: } false ; then :
6355
- $as_echo_n " (cached) " >&6
6356
- else
6357
- if test -n " $PYTHON " ; then
6358
- ac_cv_prog_PYTHON=" $PYTHON " # Let the user override the test.
6359
- else
6360
- as_save_IFS=$IFS ; IFS=$PATH_SEPARATOR
6361
- for as_dir in $PATH
6362
- do
6363
- IFS=$as_save_IFS
6364
- test -z " $as_dir " && as_dir=.
6365
- for ac_exec_ext in ' ' $ac_executable_extensions ; do
6366
- if as_fn_executable_p " $as_dir /$ac_word$ac_exec_ext " ; then
6367
- ac_cv_prog_PYTHON=" $ac_prog "
6368
- $as_echo " $as_me :${as_lineno-$LINENO } : found $as_dir /$ac_word$ac_exec_ext " >&5
6369
- break 2
6370
- fi
6371
- done
6372
- done
6373
- IFS=$as_save_IFS
6374
-
6375
- fi
6376
- fi
6377
- PYTHON=$ac_cv_prog_PYTHON
6378
- if test -n " $PYTHON " ; then
6379
- { $as_echo " $as_me :${as_lineno-$LINENO } : result: $PYTHON " >&5
6380
- $as_echo " $PYTHON " >&6 ; }
6381
- else
6382
- { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
6383
- $as_echo " no" >&6 ; }
6384
- fi
6385
-
6386
-
6387
- test -n " $PYTHON " && break
6388
- done
6389
- test -n " $PYTHON " || PYTHON=" not-found"
6390
-
6391
- if test " $PYTHON " = not-found; then
6392
- OPCODEHGEN=" @echo python: $PYTHON ! cannot run Tools/scripts/generate_opcode_h.py"
6393
- else
6394
- OPCODEHGEN=" $PYTHON "
6395
- fi
6396
-
6397
-
6398
-
6399
6334
case $MACHDEP in
6400
6335
bsdos* |hp* |HP* )
6401
6336
# install -d does not work on BSDI or HP-UX
0 commit comments