File: llnl_python_aix.m4

package info (click to toggle)
babel 0.10.2-1
  • links: PTS
  • area: contrib
  • in suites: sarge
  • size: 43,932 kB
  • ctags: 29,707
  • sloc: java: 74,695; ansic: 73,142; cpp: 40,649; sh: 18,411; f90: 10,062; fortran: 6,727; python: 6,406; makefile: 3,866; xml: 118; perl: 48
file content (37 lines) | stat: -rw-r--r-- 916 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
dnl @synopsis LLNL_XML_EXTRA
dnl
dnl @author Tom Epperly
dnl
dnl When linking Python C extensions on AIX, one must include the 
dnl library dependencies from libxml2.
AC_DEFUN([LLNL_PYTHON_AIX],[
AC_REQUIRE([AC_CANONICAL_HOST])dnl
AC_REQUIRE([LLNL_LIBXML_CONFIG]) dnl
AC_MSG_CHECKING([for extra python setup arguments])
PYTHON_SETUP_ARGS=""
if test "$XML2_CONFIG" != "no"; then
  case $host_os in
  aix*)
    libxml_libs=`$XML2_CONFIG --libs`
    for f in $libxml_libs; do
      case $f in
      -L*)
	libxml_dir=`echo "$f" | sed -e 's/^-L//'` 
	PYTHON_SETUP_ARGS="$PYTHON_SETUP_ARGS --library-dirs=$libxml_dir"
	;;
      -l*)
	libxml_lib=`echo "$f" | sed -e 's/^-l//'`
	PYTHON_SETUP_ARGS="$PYTHON_SETUP_ARGS --extra-library=$libxml_lib"
	;;
      esac
    done
    ;;
  esac
fi
if test -z "$PYTHON_SETUP_ARGS" ; then
  AC_MSG_RESULT([none])
else
  AC_MSG_RESULT($PYTHON_SETUP_ARGS)
fi
AC_SUBST(PYTHON_SETUP_ARGS)
])