Changeset 301 for branches/branch-1.2/zoo-kernel/configure.ac
- Timestamp:
- Aug 5, 2011, 3:02:43 PM (13 years ago)
- Location:
- branches/branch-1.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1.2
-
branches/branch-1.2/zoo-kernel/configure.ac
r217 r301 122 122 [PYTHON_PATH="$withval"; PYTHON_ENABLED="-DUSE_PYTHON"], [PYTHON_ENABLED=""]) 123 123 124 AC_ARG_WITH([pyvers], 125 [AS_HELP_STRING([--with-pyvers=NUM], [To use a specific python version])], 126 [PYTHON_VERS="$withval"], [PYTHON_VERS=""]) 127 124 128 125 129 if test -z "$PYTHON_ENABLED" … … 127 131 PYTHON_FILE="" 128 132 else 129 PYTHONCONFIG="$PYTHON_PATH/bin/python -config"133 PYTHONCONFIG="$PYTHON_PATH/bin/python${PYTHON_VERS}-config" 130 134 PYTHON_FILE="service_internal_python.o" 131 135 if test "$PYTHON_PATH" = "yes" 132 136 then 133 137 # PHP was not specified, so search within the current path 134 AC_PATH_PROG([PYTHONCONFIG], [python -config])135 else 136 PYTHONCONFIG="$PYTHON_PATH/bin/python -config"138 AC_PATH_PROG([PYTHONCONFIG], [python${PYTHON_VERS}-config]) 139 else 140 PYTHONCONFIG="$PYTHON_PATH/bin/python${PYTHON_VERS}-config" 137 141 fi 138 142 … … 314 318 JS_FILE="" 315 319 else 320 JS_FILE="service_internal_js.o" 316 321 if test "$JSHOME" = "yes" 317 322 then 318 JS_FILE="service_internal_js.o"319 323 320 324 #on teste si on est sous debian like 321 325 if test -f "/usr/bin/dpkg" 322 326 then 323 if test -n "`dpkg -l | grep libmozjs -dev`"327 if test -n "`dpkg -l | grep libmozjs185-dev`" 324 328 then 325 JS_CPPFLAGS="-I/usr/include/ mozjs/"326 JS_LDFLAGS="-L/usr/lib -lmozjs -lm"327 JS_LIB="mozjs "329 JS_CPPFLAGS="-I/usr/include/js/" 330 JS_LDFLAGS="-L/usr/lib -lmozjs185 -lm" 331 JS_LIB="mozjs185" 328 332 else 329 XUL_VERSION="`dpkg -l | grep xulrunner | grep dev | awk '{print $3;}' | sed -e 's/\([[0-9]]\{1,2\}\.[[0-9]]\{1,2\}\.[[0-9]]\{1,2\}\.[[0-9]]\{1,2\}\).*/\1/'`"333 XUL_VERSION="`dpkg -l | grep xulrunner | grep dev | head -1| awk '{print $3;}' | cut -d'+' -f1`" 330 334 if test -n "$XUL_VERSION" 331 335 then … … 334 338 JS_LIB="mozjs" 335 339 else 336 AC_MSG_ERROR([You must install libmozjs -dev or xulrunner-dev ])340 AC_MSG_ERROR([You must install libmozjs185-dev or xulrunner-dev ]) 337 341 fi 338 342 fi 339 343 else 340 AC_MSG_ERROR([You must specify your custom install of lib js])344 AC_MSG_ERROR([You must specify your custom install of libmozjs185]) 341 345 fi 342 346 else 343 JS_CPPFLAGS="-I$JSHOME/include/ "344 JS_LDFLAGS="-L$JSHOME/lib -lmozjs -lm"345 JS_LIB="mozjs "347 JS_CPPFLAGS="-I$JSHOME/include/js/" 348 JS_LDFLAGS="-L$JSHOME/lib -lmozjs185 -lm" 349 JS_LIB="mozjs185" 346 350 347 351 fi … … 356 360 LIBS="$JS_LDFLAGS" 357 361 358 AC_CHECK_LIB([$JS_LIB], [JS_C allFunctionName], [], [AC_MSG_ERROR([could not find $JS_LIB])], [])362 AC_CHECK_LIB([$JS_LIB], [JS_CompileFile,JS_CallFunctionName], [], [AC_MSG_ERROR([could not find $JS_LIB])], []) 359 363 360 364 AC_SUBST([JS_CPPFLAGS]) … … 366 370 367 371 AC_CONFIG_FILES([Makefile]) 372 AC_CONFIG_FILES([ZOOMakefile.opts]) 368 373 AC_OUTPUT
Note: See TracChangeset
for help on using the changeset viewer.