diff options
author | Norbert Preining <norbert@preining.info> | 2024-03-26 03:03:59 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2024-03-26 03:03:59 +0000 |
commit | 904f56f2c26edc7eb11d5a27579bccbeca29c618 (patch) | |
tree | 8a4d6d2e163e93dd2c13a28db996b419aee856b4 /graphics/asymptote/configure | |
parent | 05f8146ef2eea2cd71b9c96583c6d893e6c76af5 (diff) |
CTAN sync 202403260303
Diffstat (limited to 'graphics/asymptote/configure')
-rwxr-xr-x | graphics/asymptote/configure | 463 |
1 files changed, 351 insertions, 112 deletions
diff --git a/graphics/asymptote/configure b/graphics/asymptote/configure index df7d825109..4e83c4a259 100755 --- a/graphics/asymptote/configure +++ b/graphics/asymptote/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.71 for Asymptote 2.88. +# Generated by GNU Autoconf 2.71 for Asymptote 2.89. # # Report bugs to <https://github.com/vectorgraphics/asymptote/issues>. # @@ -611,8 +611,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='Asymptote' PACKAGE_TARNAME='asymptote' -PACKAGE_VERSION='2.88' -PACKAGE_STRING='Asymptote 2.88' +PACKAGE_VERSION='2.89' +PACKAGE_STRING='Asymptote 2.89' PACKAGE_BUGREPORT='https://github.com/vectorgraphics/asymptote/issues' PACKAGE_URL='' @@ -754,9 +754,9 @@ enable_gc_debug enable_gc_full_debug enable_threads enable_sigsegv -enable_curl enable_readline enable_static +enable_curl enable_fftw enable_eigen enable_xdr @@ -1326,7 +1326,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures Asymptote 2.88 to adapt to many kinds of systems. +\`configure' configures Asymptote 2.89 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1392,7 +1392,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of Asymptote 2.88:";; + short | recursive ) echo "Configuration of Asymptote 2.89:";; esac cat <<\_ACEOF @@ -1409,9 +1409,9 @@ Optional Features: --enable-gc-full-debug enable (very slow) garbage collector backtrace --enable-threads[=yes] enable POSIX threads --enable-sigsegv[=yes] enable GNU Stack Overflow Handler - --enable-curl[=yes] enable libcurl and compile with optional URL support --enable-readline[=yes] enable GNU Readline Library --enable-static[=no] link against static libraries + --enable-curl[=yes] enable libcurl and compile with optional URL support --enable-fftw[=yes] enable FFTW Library --enable-eigen[=yes] enable Eigen Library --enable-xdr[=yes] enable XDR/V3D support @@ -1508,7 +1508,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -Asymptote configure 2.88 +Asymptote configure 2.89 generated by GNU Autoconf 2.71 Copyright (C) 2021 Free Software Foundation, Inc. @@ -1988,7 +1988,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by Asymptote $as_me 2.88, which was +It was created by Asymptote $as_me 2.89, which was generated by GNU Autoconf 2.71. Invocation command line was $ $0$ac_configure_args_raw @@ -7454,63 +7454,6 @@ then : fi -# Check whether --enable-curl was given. -if test ${enable_curl+y} -then : - enableval=$enable_curl; -fi - -if test "x$enable_curl" != "xno"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curl_easy_init in -lcurl" >&5 -printf %s "checking for curl_easy_init in -lcurl... " >&6; } -if test ${ac_cv_lib_curl_curl_easy_init+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS -LIBS="-lcurl $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -namespace conftest { - extern "C" int curl_easy_init (); -} -int -main (void) -{ -return conftest::curl_easy_init (); - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_link "$LINENO" -then : - ac_cv_lib_curl_curl_easy_init=yes -else $as_nop - ac_cv_lib_curl_curl_easy_init=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_init" >&5 -printf "%s\n" "$ac_cv_lib_curl_curl_easy_init" >&6; } -if test "x$ac_cv_lib_curl_curl_easy_init" = xyes -then : - printf "%s\n" "#define HAVE_LIBCURL 1" >>confdefs.h - - LIBS="-lcurl $LIBS" - -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** Could not find libcurl: will compile without optional URL support. ***" >&5 -printf "%s\n" "$as_me: *** Could not find libcurl: will compile without optional URL support. ***" >&6;} -fi - -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** libcurl support disabled by configure flag: will compile without optional URL support. ***" >&5 -printf "%s\n" "$as_me: *** libcurl support disabled by configure flag: will compile without optional URL support. ***" >&6;} -fi - LSPLIBS= LSPLIB= if test "x$enable_lsp" != "xno" -a "x$enable_threads" != "xno"; then @@ -7628,8 +7571,13 @@ fi + + if test "x$enable_readline" != "xno"; then -CPPFLAGS="$CPPFLAGS "`pkg-config --cflags readline` + + + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -7653,9 +7601,16 @@ _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : -PKGFLAGS=`pkg-config --libs readline` +PKG_FLAGS="" + + + +if test "x$PKG_FLAGS" == "x"; then +PKG_FLAGS=-l"readline" +echo Will try linking with $PKG_FLAGS +fi LDFLAGS_SAVE=$LDFLAGS -LDFLAGS="$LDFLAGS ""$STATIC ""$PKGFLAGS""$DYNAMIC " +LDFLAGS="$LDFLAGS ""$STATIC ""$PKG_FLAGS ""$DYNAMIC " { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for history_list in -lreadline" >&5 printf %s "checking for history_list in -lreadline... " >&6; } if test ${ac_cv_lib_readline_history_list+y} @@ -7698,7 +7653,8 @@ printf "%s\n" "#define HAVE_LIBREADLINE 1" >>confdefs.h else $as_nop if test "x$enable_static" = "xyes"; then -LDFLAGS="$LDFLAGS_SAVE ""$PKGFLAGS" +echo "Static library not found; will check for dynamic version" +LDFLAGS="$LDFLAGS_SAVE ""$PKG_FLAGS " { ac_cv_lib_readline_history_list=; unset ac_cv_lib_readline_history_list;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for history_list in -lreadline" >&5 printf %s "checking for history_list in -lreadline... " >&6; } @@ -7736,12 +7692,14 @@ fi printf "%s\n" "$ac_cv_lib_readline_history_list" >&6; } if test "x$ac_cv_lib_readline_history_list" = xyes then : - printf "%s\n" "#define HAVE_LIBREADLINE 1" >>confdefs.h - LIBS="-lreadline $LIBS" +printf "%s\n" "#define HAVE_LIBREADLINE 1" >>confdefs.h else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** Could not find GNU readline 4.3 or later: will compile without readline support ***" >&5 + +LDFLAGS=$LDFLAGS_SAVE + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** Could not find GNU readline 4.3 or later: will compile without readline support ***" >&5 printf "%s\n" "$as_me: *** Could not find GNU readline 4.3 or later: will compile without readline support ***" >&6;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5 printf %s "checking for readline in -ledit... " >&6; } @@ -7793,11 +7751,14 @@ then : fi + fi else +LDFLAGS=$LDFLAGS_SAVE + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** Could not find GNU readline 4.3 or later: will compile without readline support ***" >&5 printf "%s\n" "$as_me: *** Could not find GNU readline 4.3 or later: will compile without readline support ***" >&6;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5 @@ -7850,6 +7811,7 @@ then : fi + fi fi @@ -7912,11 +7874,20 @@ fi fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -CPPFLAGS="$CPPFLAGS "`pkg-config --cflags tinfo` -PKGFLAGS=`pkg-config --libs tinfo` + + + +PKG_FLAGS="" + + + +if test "x$PKG_FLAGS" == "x"; then +PKG_FLAGS=-l"tinfo" +echo Will try linking with $PKG_FLAGS +fi LDFLAGS_SAVE=$LDFLAGS -LDFLAGS="$LDFLAGS ""$STATIC ""$PKGFLAGS""$DYNAMIC " +LDFLAGS="$LDFLAGS ""$STATIC ""$PKG_FLAGS ""$DYNAMIC " { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5 printf %s "checking for tgetent in -ltinfo... " >&6; } if test ${ac_cv_lib_tinfo_tgetent+y} @@ -7959,7 +7930,8 @@ printf "%s\n" "#define HAVE_LIBTINFO 1" >>confdefs.h else $as_nop if test "x$enable_static" = "xyes"; then -LDFLAGS="$LDFLAGS_SAVE ""$PKGFLAGS" +echo "Static library not found; will check for dynamic version" +LDFLAGS="$LDFLAGS_SAVE ""$PKG_FLAGS " { ac_cv_lib_tinfo_tgetent=; unset ac_cv_lib_tinfo_tgetent;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5 printf %s "checking for tgetent in -ltinfo... " >&6; } @@ -7997,26 +7969,33 @@ fi printf "%s\n" "$ac_cv_lib_tinfo_tgetent" >&6; } if test "x$ac_cv_lib_tinfo_tgetent" = xyes then : - printf "%s\n" "#define HAVE_LIBTINFO 1" >>confdefs.h - LIBS="-ltinfo $LIBS" +printf "%s\n" "#define HAVE_LIBTINFO 1" >>confdefs.h else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: perhaps tgetent is in -lncurses" >&5 + +LDFLAGS=$LDFLAGS_SAVE +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: perhaps tgetent is in -lncurses" >&5 printf "%s\n" "$as_me: perhaps tgetent is in -lncurses" >&6;} + fi else + +LDFLAGS=$LDFLAGS_SAVE { printf "%s\n" "$as_me:${as_lineno-$LINENO}: perhaps tgetent is in -lncurses" >&5 printf "%s\n" "$as_me: perhaps tgetent is in -lncurses" >&6;} + fi fi -CPPFLAGS="$CPPFLAGS "`pkg-config --cflags ncurses` + + + for ac_header in ncurses/curses.h ncurses.h curses.h do : as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh` @@ -8031,9 +8010,16 @@ fi done -PKGFLAGS=`pkg-config --libs ncurses` +PKG_FLAGS="" + + + +if test "x$PKG_FLAGS" == "x"; then +PKG_FLAGS=-l"ncurses" +echo Will try linking with $PKG_FLAGS +fi LDFLAGS_SAVE=$LDFLAGS -LDFLAGS="$LDFLAGS ""$STATIC ""$PKGFLAGS""$DYNAMIC " +LDFLAGS="$LDFLAGS ""$STATIC ""$PKG_FLAGS ""$DYNAMIC " { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lncurses" >&5 printf %s "checking for setupterm in -lncurses... " >&6; } if test ${ac_cv_lib_ncurses_setupterm+y} @@ -8076,7 +8062,8 @@ printf "%s\n" "#define HAVE_LIBCURSES 1" >>confdefs.h else $as_nop if test "x$enable_static" = "xyes"; then -LDFLAGS="$LDFLAGS_SAVE ""$PKGFLAGS" +echo "Static library not found; will check for dynamic version" +LDFLAGS="$LDFLAGS_SAVE ""$PKG_FLAGS " { ac_cv_lib_ncurses_setupterm=; unset ac_cv_lib_ncurses_setupterm;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lncurses" >&5 printf %s "checking for setupterm in -lncurses... " >&6; } @@ -8114,12 +8101,13 @@ fi printf "%s\n" "$ac_cv_lib_ncurses_setupterm" >&6; } if test "x$ac_cv_lib_ncurses_setupterm" = xyes then : - printf "%s\n" "#define HAVE_LIBNCURSES 1" >>confdefs.h - LIBS="-lncurses $LIBS" +printf "%s\n" "#define HAVE_LIBCURSES 1" >>confdefs.h else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lcurses" >&5 + +LDFLAGS=$LDFLAGS_SAVE +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lcurses" >&5 printf %s "checking for setupterm in -lcurses... " >&6; } if test ${ac_cv_lib_curses_setupterm+y} then : @@ -8161,10 +8149,13 @@ then : fi + fi else + +LDFLAGS=$LDFLAGS_SAVE { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lcurses" >&5 printf %s "checking for setupterm in -lcurses... " >&6; } if test ${ac_cv_lib_curses_setupterm+y} @@ -8207,11 +8198,150 @@ then : fi + +fi + +fi + + +fi + +# Check whether --enable-curl was given. +if test ${enable_curl+y} +then : + enableval=$enable_curl; +fi + +if test "x$enable_curl" != "xno"; then + + + + ac_fn_cxx_check_header_compile "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default" +if test "x$ac_cv_header_curl_curl_h" = xyes +then : + +PKG_FLAGS="" + + + +if test "x$PKG_FLAGS" == "x"; then +PKG_FLAGS=-l"curl" +echo Will try linking with $PKG_FLAGS +fi +LDFLAGS_SAVE=$LDFLAGS +LDFLAGS="$LDFLAGS ""$STATIC ""$PKG_FLAGS ""$DYNAMIC " +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curl_easy_init in -lcurl" >&5 +printf %s "checking for curl_easy_init in -lcurl... " >&6; } +if test ${ac_cv_lib_curl_curl_easy_init+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcurl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +namespace conftest { + extern "C" int curl_easy_init (); +} +int +main (void) +{ +return conftest::curl_easy_init (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO" +then : + ac_cv_lib_curl_curl_easy_init=yes +else $as_nop + ac_cv_lib_curl_curl_easy_init=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_init" >&5 +printf "%s\n" "$ac_cv_lib_curl_curl_easy_init" >&6; } +if test "x$ac_cv_lib_curl_curl_easy_init" = xyes +then : + +printf "%s\n" "#define HAVE_LIBCURL 1" >>confdefs.h + +else $as_nop + if test "x$enable_static" = "xyes"; then + +echo "Static library not found; will check for dynamic version" +LDFLAGS="$LDFLAGS_SAVE ""$PKG_FLAGS " +{ ac_cv_lib_curl_curl_easy_init=; unset ac_cv_lib_curl_curl_easy_init;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curl_easy_init in -lcurl" >&5 +printf %s "checking for curl_easy_init in -lcurl... " >&6; } +if test ${ac_cv_lib_curl_curl_easy_init+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcurl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +namespace conftest { + extern "C" int curl_easy_init (); +} +int +main (void) +{ +return conftest::curl_easy_init (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO" +then : + ac_cv_lib_curl_curl_easy_init=yes +else $as_nop + ac_cv_lib_curl_curl_easy_init=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_init" >&5 +printf "%s\n" "$ac_cv_lib_curl_curl_easy_init" >&6; } +if test "x$ac_cv_lib_curl_curl_easy_init" = xyes +then : + +printf "%s\n" "#define HAVE_LIBCURL 1" >>confdefs.h + +else $as_nop + +LDFLAGS=$LDFLAGS_SAVE +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** Could not find libcurl: will compile without optional URL support. ***" >&5 +printf "%s\n" "$as_me: *** Could not find libcurl: will compile without optional URL support. ***" >&6;} + +fi + + +else + +LDFLAGS=$LDFLAGS_SAVE +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** Could not find libcurl: will compile without optional URL support. ***" >&5 +printf "%s\n" "$as_me: *** Could not find libcurl: will compile without optional URL support. ***" >&6;} + fi fi +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** Header file curl.h not found: will compile without optional URL support. ***" >&5 +printf "%s\n" "$as_me: *** Header file curl.h not found: will compile without optional URL support. ***" >&6;} +fi + +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** libcurl support disabled by configure flag: will compile without optional URL support. ***" >&5 +printf "%s\n" "$as_me: *** libcurl support disabled by configure flag: will compile without optional URL support. ***" >&6;} fi # Check whether --enable-fftw was given. @@ -8222,14 +8352,23 @@ fi if test "x$enable_fftw" != "xno"; then -CPPFLAGS="$CPPFLAGS "`pkg-config --cflags fftw3` + + + ac_fn_cxx_check_header_compile "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default" if test "x$ac_cv_header_fftw3_h" = xyes then : -PKGFLAGS=`pkg-config --libs fftw3` +PKG_FLAGS="" + + + +if test "x$PKG_FLAGS" == "x"; then +PKG_FLAGS=-l"fftw3" +echo Will try linking with $PKG_FLAGS +fi LDFLAGS_SAVE=$LDFLAGS -LDFLAGS="$LDFLAGS ""$STATIC ""$PKGFLAGS""$DYNAMIC " +LDFLAGS="$LDFLAGS ""$STATIC ""$PKG_FLAGS ""$DYNAMIC " { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5 printf %s "checking for fftw_execute in -lfftw3... " >&6; } if test ${ac_cv_lib_fftw3_fftw_execute+y} @@ -8272,7 +8411,8 @@ printf "%s\n" "#define HAVE_LIBFFTW3 1" >>confdefs.h else $as_nop if test "x$enable_static" = "xyes"; then -LDFLAGS="$LDFLAGS_SAVE ""$PKGFLAGS" +echo "Static library not found; will check for dynamic version" +LDFLAGS="$LDFLAGS_SAVE ""$PKG_FLAGS " { ac_cv_lib_fftw3_fftw_execute=; unset ac_cv_lib_fftw3_fftw_execute;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5 printf %s "checking for fftw_execute in -lfftw3... " >&6; } @@ -8310,19 +8450,24 @@ fi printf "%s\n" "$ac_cv_lib_fftw3_fftw_execute" >&6; } if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes then : - printf "%s\n" "#define HAVE_LIBFFTW3 1" >>confdefs.h - LIBS="-lfftw3 $LIBS" +printf "%s\n" "#define HAVE_LIBFFTW3 1" >>confdefs.h else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** Could not find libfftw3: will compile without optional fast Fourier transforms. ***" >&5 + +LDFLAGS=$LDFLAGS_SAVE +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** Could not find libfftw3: will compile without optional fast Fourier transforms. ***" >&5 printf "%s\n" "$as_me: *** Could not find libfftw3: will compile without optional fast Fourier transforms. ***" >&6;} + fi else + +LDFLAGS=$LDFLAGS_SAVE { printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** Could not find libfftw3: will compile without optional fast Fourier transforms. ***" >&5 printf "%s\n" "$as_me: *** Could not find libfftw3: will compile without optional fast Fourier transforms. ***" >&6;} + fi fi @@ -8343,7 +8488,9 @@ fi if test "x$enable_eigen" != "xno"; then -CPPFLAGS="$CPPFLAGS "`pkg-config --cflags eigen3` + + + ac_fn_cxx_check_header_compile "$LINENO" "Eigen/Dense" "ac_cv_header_Eigen_Dense" "$ac_includes_default" if test "x$ac_cv_header_Eigen_Dense" = xyes then : @@ -8440,11 +8587,13 @@ fi if test "x$enable_xdr" != "xno"; then case "$OSTYPE" in darwin*) + +printf "%s\n" "#define HAVE_LIBTIRPC 1" >>confdefs.h + ;; *) - CPPFLAGS="$CPPFLAGS "`pkg-config --cflags libtirpc` - ;; -esac + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -8460,9 +8609,16 @@ _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : -PKGFLAGS=`pkg-config --libs libtirpc` +PKG_FLAGS="" + + + +if test "x$PKG_FLAGS" == "x"; then +PKG_FLAGS=-l"tirpc" +echo Will try linking with $PKG_FLAGS +fi LDFLAGS_SAVE=$LDFLAGS -LDFLAGS="$LDFLAGS ""$STATIC ""$PKGFLAGS""$DYNAMIC " +LDFLAGS="$LDFLAGS ""$STATIC ""$PKG_FLAGS ""$DYNAMIC " { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xdrstdio_create in -ltirpc" >&5 printf %s "checking for xdrstdio_create in -ltirpc... " >&6; } if test ${ac_cv_lib_tirpc_xdrstdio_create+y} @@ -8505,7 +8661,8 @@ printf "%s\n" "#define HAVE_LIBTIRPC 1" >>confdefs.h else $as_nop if test "x$enable_static" = "xyes"; then -LDFLAGS="$LDFLAGS_SAVE ""$PKGFLAGS" +echo "Static library not found; will check for dynamic version" +LDFLAGS="$LDFLAGS_SAVE ""$PKG_FLAGS " { ac_cv_lib_tirpc_xdrstdio_create=; unset ac_cv_lib_tirpc_xdrstdio_create;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xdrstdio_create in -ltirpc" >&5 printf %s "checking for xdrstdio_create in -ltirpc... " >&6; } @@ -8543,19 +8700,24 @@ fi printf "%s\n" "$ac_cv_lib_tirpc_xdrstdio_create" >&6; } if test "x$ac_cv_lib_tirpc_xdrstdio_create" = xyes then : - printf "%s\n" "#define HAVE_LIBTIRPC 1" >>confdefs.h - LIBS="-ltirpc $LIBS" +printf "%s\n" "#define HAVE_LIBTIRPC 1" >>confdefs.h else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** Could not find libtirpc; XDR/V3D support disabled ***" >&5 + +LDFLAGS=$LDFLAGS_SAVE +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** Could not find libtirpc; XDR/V3D support disabled ***" >&5 printf "%s\n" "$as_me: *** Could not find libtirpc; XDR/V3D support disabled ***" >&6;} + fi else + +LDFLAGS=$LDFLAGS_SAVE { printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** Could not find libtirpc; XDR/V3D support disabled ***" >&5 printf "%s\n" "$as_me: *** Could not find libtirpc; XDR/V3D support disabled ***" >&6;} + fi fi @@ -8566,6 +8728,8 @@ else $as_nop printf "%s\n" "$as_me: *** Broken rpc headers; XDR/V3D support disabled ***" >&6;} fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ;; +esac fi # Check whether --enable-gsl was given. @@ -8576,19 +8740,34 @@ fi if test "x$enable_gsl" != "xno"; then - CPPFLAGS="$CPPFLAGS "`pkg-config --cflags gsl` - LDFLAGS="$LDFLAGS "`pkg-config --libs gsl` + + + + + + ac_fn_cxx_check_header_compile "$LINENO" "gsl/gsl_sf.h" "ac_cv_header_gsl_gsl_sf_h" "$ac_includes_default" if test "x$ac_cv_header_gsl_gsl_sf_h" = xyes then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gsl_sf_debye_6 in -lgsl" >&5 + +PKG_FLAGS="" + + + +if test "x$PKG_FLAGS" == "x"; then +PKG_FLAGS=-l"gsl" +echo Will try linking with $PKG_FLAGS +fi +LDFLAGS_SAVE=$LDFLAGS +LDFLAGS="$LDFLAGS ""$STATIC ""$PKG_FLAGS ""$DYNAMIC " +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gsl_sf_debye_6 in -lgsl" >&5 printf %s "checking for gsl_sf_debye_6 in -lgsl... " >&6; } if test ${ac_cv_lib_gsl_gsl_sf_debye_6+y} then : printf %s "(cached) " >&6 else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lgsl -lgslcblas $LIBS" +LIBS="-lgsl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -8619,12 +8798,72 @@ if test "x$ac_cv_lib_gsl_gsl_sf_debye_6" = xyes then : printf "%s\n" "#define HAVE_LIBGSL 1" >>confdefs.h - LIBS=$LIBS"-lgsl -lgslcblas " + +else $as_nop + if test "x$enable_static" = "xyes"; then + +echo "Static library not found; will check for dynamic version" +LDFLAGS="$LDFLAGS_SAVE ""$PKG_FLAGS " +{ ac_cv_lib_gsl_gsl_sf_debye_6=; unset ac_cv_lib_gsl_gsl_sf_debye_6;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gsl_sf_debye_6 in -lgsl" >&5 +printf %s "checking for gsl_sf_debye_6 in -lgsl... " >&6; } +if test ${ac_cv_lib_gsl_gsl_sf_debye_6+y} +then : + printf %s "(cached) " >&6 else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** Could not find libgsl: will compile without optional special functions. ***" >&5 + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgsl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +namespace conftest { + extern "C" int gsl_sf_debye_6 (); +} +int +main (void) +{ +return conftest::gsl_sf_debye_6 (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO" +then : + ac_cv_lib_gsl_gsl_sf_debye_6=yes +else $as_nop + ac_cv_lib_gsl_gsl_sf_debye_6=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gsl_gsl_sf_debye_6" >&5 +printf "%s\n" "$ac_cv_lib_gsl_gsl_sf_debye_6" >&6; } +if test "x$ac_cv_lib_gsl_gsl_sf_debye_6" = xyes +then : + +printf "%s\n" "#define HAVE_LIBGSL 1" >>confdefs.h + +else $as_nop + +LDFLAGS=$LDFLAGS_SAVE +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** Could not find libgsl: will compile without optional special functions. ***" >&5 printf "%s\n" "$as_me: *** Could not find libgsl: will compile without optional special functions. ***" >&6;} + fi + +else + +LDFLAGS=$LDFLAGS_SAVE +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** Could not find libgsl: will compile without optional special functions. ***" >&5 +printf "%s\n" "$as_me: *** Could not find libgsl: will compile without optional special functions. ***" >&6;} + +fi + +fi + + else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** Header file gsl_sf.h not found: will compile without optional special functions. ***" >&5 printf "%s\n" "$as_me: *** Header file gsl_sf.h not found: will compile without optional special functions. ***" >&6;} @@ -10314,7 +10553,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by Asymptote $as_me 2.88, which was +This file was extended by Asymptote $as_me 2.89, which was generated by GNU Autoconf 2.71. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -10378,7 +10617,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ -Asymptote config.status 2.88 +Asymptote config.status 2.89 configured by $0, generated by GNU Autoconf 2.71, with options \\"\$ac_cs_config\\" |