@@ -625,9 +625,6 @@ MPICC
625625FOUND_SAPPORO2
626626SAPPORO2_LIBS
627627SAPPORO2_CFLAGS
628- FOUND_SAPPORO_LIGHT
629- SAPPORO_LIGHT_LIBS
630- SAPPORO_LIGHT_CFLAGS
631628FOUND_STOPCOND
632629STOPCOND_LIBS
633630STOPCOND_CFLAGS
@@ -721,8 +718,6 @@ PKG_CONFIG_PATH
721718PKG_CONFIG_LIBDIR
722719STOPCOND_CFLAGS
723720STOPCOND_LIBS
724- SAPPORO_LIGHT_CFLAGS
725- SAPPORO_LIGHT_LIBS
726721SAPPORO2_CFLAGS
727722SAPPORO2_LIBS
728723MPICC
@@ -1365,10 +1360,6 @@ Some influential environment variables:
13651360 C compiler flags for STOPCOND, overriding pkg-config
13661361 STOPCOND_LIBS
13671362 linker flags for STOPCOND, overriding pkg-config
1368- SAPPORO_LIGHT_CFLAGS
1369- C compiler flags for SAPPORO_LIGHT, overriding pkg-config
1370- SAPPORO_LIGHT_LIBS
1371- linker flags for SAPPORO_LIGHT, overriding pkg-config
13721363 SAPPORO2_CFLAGS
13731364 C compiler flags for SAPPORO2, overriding pkg-config
13741365 SAPPORO2_LIBS
@@ -5060,211 +5051,6 @@ fi
50605051
50615052
50625053
5063- amuse_save_LIBS=" $LIBS "
5064- amuse_save_LIB_CFLAGS=" $SAPPORO_LIGHT_CFLAGS "
5065- amuse_save_LIB_LIBS=" $SAPPORO_LIGHT_LIBS "
5066- amuse_save_PKG_CONFIG_PATH=" $PKG_CONFIG_PATH "
5067-
5068- # If we have an active virtualenv, make sure pkg-config searches it
5069- if test " a${VIRTUAL_ENV} " ! = " a"
5070- then
5071- PKG_CONFIG_PATH=" ${VIRTUAL_ENV} /lib/pkgconfig:${PKG_CONFIG_PATH} "
5072- fi
5073-
5074- # All AMUSE libs export C symbols
5075- ac_ext=c
5076- ac_cpp=' $CPP $CPPFLAGS'
5077- ac_compile=' $CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5078- ac_link=' $CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5079- ac_compiler_gnu=$ac_cv_c_compiler_gnu
5080-
5081-
5082- # Search for the library, first directly then fall back to pkg-config
5083- { printf " %s\n" " $as_me :${as_lineno-$LINENO } : checking for library containing get_device_count" >&5
5084- printf %s " checking for library containing get_device_count... " >&6 ; }
5085- if test ${ac_cv_search_get_device_count+y}
5086- then :
5087- printf %s " (cached) " >&6
5088- else $as_nop
5089- ac_func_search_save_LIBS=$LIBS
5090- cat confdefs.h - << _ACEOF >conftest.$ac_ext
5091- /* end confdefs.h. */
5092-
5093- /* Override any GCC internal prototype to avoid an error.
5094- Use char because int might match the return type of a GCC
5095- builtin and then its argument prototype would still apply. */
5096- char get_device_count ();
5097- int
5098- main (void)
5099- {
5100- return get_device_count ();
5101- ;
5102- return 0;
5103- }
5104- _ACEOF
5105- for ac_lib in ' ' sapporo
5106- do
5107- if test -z " $ac_lib " ; then
5108- ac_res=" none required"
5109- else
5110- ac_res=-l$ac_lib
5111- LIBS=" -l$ac_lib $ac_func_search_save_LIBS "
5112- fi
5113- if ac_fn_c_try_link " $LINENO "
5114- then :
5115- ac_cv_search_get_device_count=$ac_res
5116- fi
5117- rm -f core conftest.err conftest.$ac_objext conftest.beam \
5118- conftest$ac_exeext
5119- if test ${ac_cv_search_get_device_count+y}
5120- then :
5121- break
5122- fi
5123- done
5124- if test ${ac_cv_search_get_device_count+y}
5125- then :
5126-
5127- else $as_nop
5128- ac_cv_search_get_device_count=no
5129- fi
5130- rm conftest.$ac_ext
5131- LIBS=$ac_func_search_save_LIBS
5132- fi
5133- { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: $ac_cv_search_get_device_count " >&5
5134- printf " %s\n" " $ac_cv_search_get_device_count " >&6 ; }
5135- ac_res=$ac_cv_search_get_device_count
5136- if test " $ac_res " ! = no
5137- then :
5138- test " $ac_res " = " none required" || LIBS=" $ac_res $LIBS "
5139-
5140- FOUND_SAPPORO_LIGHT=" yes"
5141- SAPPORO_LIGHT_LIBS=" $LIBS "
5142- SAPPORO_LIGHT_CFLAGS=" "
5143-
5144- else $as_nop
5145-
5146-
5147- pkg_failed=no
5148- { printf " %s\n" " $as_me :${as_lineno-$LINENO } : checking for SAPPORO_LIGHT" >&5
5149- printf %s " checking for SAPPORO_LIGHT... " >&6 ; }
5150-
5151- if test -n " $SAPPORO_LIGHT_CFLAGS " ; then
5152- pkg_cv_SAPPORO_LIGHT_CFLAGS=" $SAPPORO_LIGHT_CFLAGS "
5153- elif test -n " $PKG_CONFIG " ; then
5154- if test -n " $PKG_CONFIG " && \
5155- { { printf " %s\n" " $as_me :${as_lineno-$LINENO } : \$ PKG_CONFIG --exists --print-errors \" sapporo_light\" " ; } >&5
5156- ($PKG_CONFIG --exists --print-errors " sapporo_light" ) 2>&5
5157- ac_status=$?
5158- printf " %s\n" " $as_me :${as_lineno-$LINENO } : \$ ? = $ac_status " >&5
5159- test $ac_status = 0; }; then
5160- pkg_cv_SAPPORO_LIGHT_CFLAGS=` $PKG_CONFIG --cflags " sapporo_light" 2> /dev/null`
5161- test " x$? " ! = " x0" && pkg_failed=yes
5162- else
5163- pkg_failed=yes
5164- fi
5165- else
5166- pkg_failed=untried
5167- fi
5168- if test -n " $SAPPORO_LIGHT_LIBS " ; then
5169- pkg_cv_SAPPORO_LIGHT_LIBS=" $SAPPORO_LIGHT_LIBS "
5170- elif test -n " $PKG_CONFIG " ; then
5171- if test -n " $PKG_CONFIG " && \
5172- { { printf " %s\n" " $as_me :${as_lineno-$LINENO } : \$ PKG_CONFIG --exists --print-errors \" sapporo_light\" " ; } >&5
5173- ($PKG_CONFIG --exists --print-errors " sapporo_light" ) 2>&5
5174- ac_status=$?
5175- printf " %s\n" " $as_me :${as_lineno-$LINENO } : \$ ? = $ac_status " >&5
5176- test $ac_status = 0; }; then
5177- pkg_cv_SAPPORO_LIGHT_LIBS=` $PKG_CONFIG --libs " sapporo_light" 2> /dev/null`
5178- test " x$? " ! = " x0" && pkg_failed=yes
5179- else
5180- pkg_failed=yes
5181- fi
5182- else
5183- pkg_failed=untried
5184- fi
5185-
5186-
5187-
5188- if test $pkg_failed = yes; then
5189- { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: no" >&5
5190- printf " %s\n" " no" >&6 ; }
5191-
5192- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5193- _pkg_short_errors_supported=yes
5194- else
5195- _pkg_short_errors_supported=no
5196- fi
5197- if test $_pkg_short_errors_supported = yes; then
5198- SAPPORO_LIGHT_PKG_ERRORS=` $PKG_CONFIG --short-errors --print-errors --cflags --libs " sapporo_light" 2>&1 `
5199- else
5200- SAPPORO_LIGHT_PKG_ERRORS=` $PKG_CONFIG --print-errors --cflags --libs " sapporo_light" 2>&1 `
5201- fi
5202- # Put the nasty error message in config.log where it belongs
5203- echo " $SAPPORO_LIGHT_PKG_ERRORS " >&5
5204-
5205-
5206- FOUND_SAPPORO_LIGHT=" no"
5207-
5208- elif test $pkg_failed = untried; then
5209- { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: no" >&5
5210- printf " %s\n" " no" >&6 ; }
5211-
5212- FOUND_SAPPORO_LIGHT=" no"
5213-
5214- else
5215- SAPPORO_LIGHT_CFLAGS=$pkg_cv_SAPPORO_LIGHT_CFLAGS
5216- SAPPORO_LIGHT_LIBS=$pkg_cv_SAPPORO_LIGHT_LIBS
5217- { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: yes" >&5
5218- printf " %s\n" " yes" >&6 ; }
5219-
5220- FOUND_SAPPORO_LIGHT=" yes"
5221-
5222- fi
5223-
5224- fi
5225-
5226-
5227- ac_ext=c
5228- ac_cpp=' $CPP $CPPFLAGS'
5229- ac_compile=' $CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5230- ac_link=' $CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5231- ac_compiler_gnu=$ac_cv_c_compiler_gnu
5232-
5233-
5234- PKG_CONFIG_PATH=" $amuse_save_PKG_CONFIG_PATH "
5235- LIBS=" $amuse_save_LIBS "
5236-
5237- # If we have an active CONDA environment, assume that the lib is coming from
5238- # there and add an additional flag so that .mod files can be found. Only really
5239- # needed for stopcond and forsockets, and hopefully conda-forge will give us a
5240- # better solution soon.
5241- if test " ${FOUND_SAPPORO_LIGHT} " == " yes" -a " x$CONDA_PREFIX " ! = " x"
5242- then
5243- SAPPORO_LIGHT_CFLAGS=" ${SAPPORO_LIGHT_CFLAGS} -I${CONDA_PREFIX} /include"
5244- fi
5245-
5246- # If the user overrode the variables, go with what they set instead of
5247- # what we just detected.
5248- if test " x$amuse_save_LIB_CFLAGS " ! = " x"
5249- then :
5250-
5251- SAPPORO_LIGHT_CFLAGS=" $amuse_save_LIB_CFLAGS "
5252-
5253- fi
5254- if test " x$amuse_save_LIB_LIBS " ! = " x"
5255- then :
5256-
5257- SAPPORO_LIGHT_LIBS=" $amuse_save_LIB_LIBS "
5258-
5259- fi
5260-
5261-
5262-
5263-
5264-
5265-
5266-
5267-
52685054 amuse_save_LIBS=" $LIBS "
52695055 amuse_save_LIB_CFLAGS=" $SAPPORO2_CFLAGS "
52705056 amuse_save_LIB_LIBS=" $SAPPORO2_LIBS "
0 commit comments