X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=configure.ac;h=17a463af5a6771ac076a95746ff31d4988875b6a;hb=46d23449027eea9a270d79f83ee368fa8712db10;hp=c9b36ed9f6a833eadf57324c55d9e9c1f2c0ae3e;hpb=3d7ec5e25f2a8f82bc593e290878180097c27d64;p=lyx.git diff --git a/configure.ac b/configure.ac index c9b36ed9f6..17a463af5a 100644 --- a/configure.ac +++ b/configure.ac @@ -67,6 +67,9 @@ done LYX_PATH_PYTHON23([2.7.0], [3.3.0]) # do the usual python setup stuff AM_PATH_PYTHON + +# Tools for creating libraries (note that we do not use libtool) +m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) dnl AM_PROG_AR requires automake 1.12 AC_PROG_RANLIB ### Check for a C++ compiler @@ -210,7 +213,7 @@ save_LIBS="$LIBS" LIBS= AC_CHECK_FUNCS(fcntl, [AC_SEARCH_LIBS([gethostbyname], [nsl]) - AC_SEARCH_LIBS([socket], [socket], [], + AC_SEARCH_LIBS([socket], [socket network], [], [AC_CHECK_LIB([socket], [socket], [LIBS="-lsocket -lnsl $LIBS"], [], [-lnsl])])], [lyx_client_subdir=false]) @@ -273,6 +276,10 @@ AH_BOTTOM([ /************************************************************ ** You should not need to change anything beyond this point */ +#if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__) +#define LYX_USE_CXX11 +#endif + #ifndef HAVE_STRERROR #if defined(__cplusplus) extern "C"