- Timestamp:
- Nov 15, 2013, 5:09:41 PM (10 years ago)
- Branches:
- (u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
- Children:
- bbeddf73180e5a0b82609d4054f2cf3d3de40a27
- Parents:
- c6f0451f6fc744c2dac1401c4d9346c784f6b28b
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-11-15 17:09:41+01:00
- git-committer:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-11-15 17:17:40+01:00
- Location:
- m4
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
m4/ax_python.m4
rc6f0451 r1684c3 57 57 [AC_MSG_CHECKING(for python build information) 58 58 AC_MSG_RESULT([]) 59 for python in python2. 6 python2.5 python2.4 python2.3 python2.2 python2.1python; do59 for python in python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2 python; do 60 60 AC_CHECK_PROGS(PYTHON_BIN, [$python]) 61 61 ax_python_bin=$PYTHON_BIN -
m4/ax_python_embed.m4
rc6f0451 r1684c3 224 224 if test -n "$PYTHON" 225 225 then 226 ax_python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`226 ax_python_prefix=`${PYTHON}-config --prefix` 227 227 if test -z "$ax_python_prefix" 228 228 then 229 229 AC_MSG_ERROR([Python Prefix is not known]) 230 230 fi 231 ax_python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"` 232 ax_python_version=`$PYTHON -c "import sys; print sys.version[[:3]]"` 233 ax_python_includespec="-I${ax_python_prefix}/include/python${ax_python_version}" 234 if test x"$python_prefix" != x"$python_execprefix"; then 235 ax_python_execspec="-I${ax_python_execprefix}/include/python${ax_python_version}" 236 ax_python_includespec="${ax_python_includespec} $ax_python_execspec" 237 fi 238 ax_python_ccshared=`${PYTHON} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('CFLAGSFORSHARED')"` 239 ax_python_cspec="${ax_python_ccshared} ${ax_python_includespec}" 231 # ax_python_execprefix=`${PYTHON}-config --exec-prefix` 232 # ax_python_version=`$PYTHON -c "import sys; print sys.version[[:3]]"` 233 # ax_python_includespec="-I${ax_python_prefix}/include/python${ax_python_version}" 234 # if test x"$python_prefix" != x"$python_execprefix"; then 235 # ax_python_execspec="-I${ax_python_execprefix}/include/python${ax_python_version}" 236 # ax_python_includespec="${ax_python_includespec} $ax_python_execspec" 237 # fi 238 ax_python_cspec=`${PYTHON}-config --cflags | sed -e "s@ -arch i386@@" -e "s@ -arch x86_64@@" -e 's@ -g@@g' -e 's@ -mno-fused-madd@@g'` 239 # or -Qunused-arguments / clang :( 240 # ax_python_cspec="${ax_python_ccshared} ${ax_python_includespec}" 240 241 AC_SUBST([PYTHON_CSPEC], [${ax_python_cspec}]) 241 242 AC_MSG_NOTICE([PYTHON_CSPEC=${ax_python_cspec}]) … … 269 270 AC_DEFUN([AX_PYTHON_LSPEC], 270 271 [ 272 271 273 AC_ARG_VAR( [PYTHON], [Python Executable Path] ) 272 274 if test -n "$PYTHON" 273 275 then 276 274 277 AX_PYTHON_RUN([ 275 278 import sys … … 308 311 print strLinkSpec 309 312 ]) 310 AC_SUBST([PYTHON_LSPEC], [${ax_python_output}]) 311 AC_MSG_NOTICE([PYTHON_LSPEC=${ax_python_output}]) 313 314 # AC_SUBST([PYTHON_LSPEC], [${ax_python_output}]) 315 # AC_MSG_NOTICE([PYTHON_LSPEC=${ax_python_output}]) 316 317 ax_python_lspec=`${PYTHON}-config --ldflags | sed -e "s@ -arch i386@@" -e "s@ -arch x86_64@@" -e 's@ -g@@g'` 318 AC_SUBST([PYTHON_LSPEC], [${ax_python_lspec}]) 319 AC_MSG_NOTICE([PYTHON_LSPEC=${ax_python_lspec}]) 320 312 321 fi 313 322 ]) -
m4/ax_python_with_version.m4
rc6f0451 r1684c3 68 68 AC_PATH_PROGS( 69 69 [PYTHON], 70 [python2 python],70 [python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2 python], 71 71 [], 72 72 $2 -
m4/flags.m4
rc6f0451 r1684c3 105 105 AX_APPEND_LINK_FLAGS(${DBGFLAGS}) 106 106 fi 107 107 108 ## for clang: -Wunneeded-internal-declaration 109 108 110 if test "x${ENABLE_OPTIMIZATION}" != xno; then 109 111 OPTFLAGS="-DOM_NDEBUG -DNDEBUG -O3 -Wno-unused-function -Wno-trigraphs -Wno-unused-parameter -Wno-unused-variable -fomit-frame-pointer -fwrapv -fvisibility=default -finline-functions -fno-exceptions -fno-rtti -fno-threadsafe-statics -fno-enforce-eh-specs -fconserve-space -funroll-loops" 110 112 # -O3 - crashes gcc???!!! 111 # -fpermissive 113 # -fpermissive 112 114 AC_LANG_PUSH([C]) 113 115 AX_APPEND_COMPILE_FLAGS(${OPTFLAGS}, [CFLAGS]) … … 124 126 fi 125 127 128 FLAGS2="-Qunused-arguments" 129 AC_LANG_PUSH([C]) 130 AX_APPEND_COMPILE_FLAGS(${FLAGS2}, [CFLAGS]) 131 AC_LANG_POP([C]) 132 133 AC_LANG_PUSH([C++]) 134 AX_APPEND_COMPILE_FLAGS(${FLAGS2}, [CXXFLAGS]) 135 AC_LANG_POP([C++]) 136 137 AX_APPEND_LINK_FLAGS(${FLAGS2}) 138 126 139 # SING_SHOW_FLAGS([before PROG_C_CC]) 127 140
Note: See TracChangeset
for help on using the changeset viewer.