[BACK]Return to configure.in CVS log [TXT][DIR] Up to [local] / OpenXM / src / ox_python

Annotation of OpenXM/src/ox_python/configure.in, Revision 1.4

1.4     ! takayama    1: dnl $OpenXM: OpenXM/src/ox_python/configure.in,v 1.3 2022/01/03 05:11:15 takayama Exp $
1.1       takayama    2:
                      3: AC_INIT
                      4: AC_PREREQ(2.61)
                      5: AC_CANONICAL_TARGET
                      6:
                      7: AC_PROG_CC
                      8: AC_PROG_INSTALL
                      9: AC_PROG_LN_S
                     10: AC_PATH_XTRA
                     11:
1.4     ! takayama   12:
1.1       takayama   13: TARGET=ox_python
                     14: case "${host}" in
                     15: *-apple-darwin*)
                     16:     LIBS="-L../../lib -L/usr/local/lib  -lox -lmpfr -lgmp -lgc"
                     17:     CFLAGS="${CPPFLAGS} -Wno-attributes -I../../include -I /usr/local/include"
                     18:     ;;
1.2       takayama   19: *-linux-gnu*)
                     20:     LIBS_GCC=" "
                     21:     LIBS_OX="-L../../lib -lox -lmpfr -lgmp -lgc"
1.3       takayama   22:     LIBS="${LIBS_GCC} ${LIBS_OX}"
1.2       takayama   23:     CFLAGS="${CPPFLAGS} -Wno-attributes -I../../include -I /usr/local/include "
                     24:     ;;
1.1       takayama   25: *)
                     26:     LIBS_GCC="-L/usr/local/lib -L/usr/local/lib/gcc49 -Wl,-rpath=/usr/local/lib/gcc49"
                     27:     LIBS_OX="-L../../lib -lox -lmpfr -lgmp -lgc"
                     28:     LIBS="${LIBS_GCC} ${LIBS_OX}"
                     29:     CFLAGS="${CPPFLAGS} -Wno-attributes -I../../include -I /usr/local/include "
                     30:     ;;
                     31: esac
                     32:
1.4     ! takayama   33: LIB_CONFIG=""
        !            34: python3-config --embed
        !            35: case "$?" in
        !            36: 0)
        !            37:    LIB_CONFIG="python3-config --ldflags --embed"
        !            38:    ;;
        !            39: *)
        !            40:    LIB_CONFIG="python3-config --ldflags"
        !            41:    ;;
        !            42: esac
        !            43: AC_SUBST([LIB_CONFIG])
        !            44:
1.1       takayama   45: AC_SUBST([TARGET])
                     46: AC_SUBST([LIBS])
                     47: AC_CONFIG_FILES([Makefile])
                     48: AC_OUTPUT

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>