@@ -8384,6 +8384,180 @@ if test "$ac_res" != no; then
83848384
83858385fi
83868386
8387+ { $as_echo "$as_me:$LINENO: checking for library containing shm_open" >&5
8388+ $as_echo_n "checking for library containing shm_open... " >&6; }
8389+ if test "${ac_cv_search_shm_open+set}" = set; then
8390+ $as_echo_n "(cached) " >&6
8391+ else
8392+ ac_func_search_save_LIBS=$LIBS
8393+ cat >conftest.$ac_ext <<_ACEOF
8394+ /* confdefs.h. */
8395+ _ACEOF
8396+ cat confdefs.h >>conftest.$ac_ext
8397+ cat >>conftest.$ac_ext <<_ACEOF
8398+ /* end confdefs.h. */
8399+
8400+ /* Override any GCC internal prototype to avoid an error.
8401+ Use char because int might match the return type of a GCC
8402+ builtin and then its argument prototype would still apply. */
8403+ #ifdef __cplusplus
8404+ extern "C"
8405+ #endif
8406+ char shm_open ();
8407+ int
8408+ main ()
8409+ {
8410+ return shm_open ();
8411+ ;
8412+ return 0;
8413+ }
8414+ _ACEOF
8415+ for ac_lib in '' rt; do
8416+ if test -z "$ac_lib"; then
8417+ ac_res="none required"
8418+ else
8419+ ac_res=-l$ac_lib
8420+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8421+ fi
8422+ rm -f conftest.$ac_objext conftest$ac_exeext
8423+ if { (ac_try="$ac_link"
8424+ case "(($ac_try" in
8425+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426+ *) ac_try_echo=$ac_try;;
8427+ esac
8428+ eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8429+ $as_echo "$ac_try_echo") >&5
8430+ (eval "$ac_link") 2>conftest.er1
8431+ ac_status=$?
8432+ grep -v '^ *+' conftest.er1 >conftest.err
8433+ rm -f conftest.er1
8434+ cat conftest.err >&5
8435+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436+ (exit $ac_status); } && {
8437+ test -z "$ac_c_werror_flag" ||
8438+ test ! -s conftest.err
8439+ } && test -s conftest$ac_exeext && {
8440+ test "$cross_compiling" = yes ||
8441+ $as_test_x conftest$ac_exeext
8442+ }; then
8443+ ac_cv_search_shm_open=$ac_res
8444+ else
8445+ $as_echo "$as_me: failed program was:" >&5
8446+ sed 's/^/| /' conftest.$ac_ext >&5
8447+
8448+
8449+ fi
8450+
8451+ rm -rf conftest.dSYM
8452+ rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8453+ conftest$ac_exeext
8454+ if test "${ac_cv_search_shm_open+set}" = set; then
8455+ break
8456+ fi
8457+ done
8458+ if test "${ac_cv_search_shm_open+set}" = set; then
8459+ :
8460+ else
8461+ ac_cv_search_shm_open=no
8462+ fi
8463+ rm conftest.$ac_ext
8464+ LIBS=$ac_func_search_save_LIBS
8465+ fi
8466+ { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
8467+ $as_echo "$ac_cv_search_shm_open" >&6; }
8468+ ac_res=$ac_cv_search_shm_open
8469+ if test "$ac_res" != no; then
8470+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8471+
8472+ fi
8473+
8474+ { $as_echo "$as_me:$LINENO: checking for library containing shm_unlink" >&5
8475+ $as_echo_n "checking for library containing shm_unlink... " >&6; }
8476+ if test "${ac_cv_search_shm_unlink+set}" = set; then
8477+ $as_echo_n "(cached) " >&6
8478+ else
8479+ ac_func_search_save_LIBS=$LIBS
8480+ cat >conftest.$ac_ext <<_ACEOF
8481+ /* confdefs.h. */
8482+ _ACEOF
8483+ cat confdefs.h >>conftest.$ac_ext
8484+ cat >>conftest.$ac_ext <<_ACEOF
8485+ /* end confdefs.h. */
8486+
8487+ /* Override any GCC internal prototype to avoid an error.
8488+ Use char because int might match the return type of a GCC
8489+ builtin and then its argument prototype would still apply. */
8490+ #ifdef __cplusplus
8491+ extern "C"
8492+ #endif
8493+ char shm_unlink ();
8494+ int
8495+ main ()
8496+ {
8497+ return shm_unlink ();
8498+ ;
8499+ return 0;
8500+ }
8501+ _ACEOF
8502+ for ac_lib in '' rt; do
8503+ if test -z "$ac_lib"; then
8504+ ac_res="none required"
8505+ else
8506+ ac_res=-l$ac_lib
8507+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8508+ fi
8509+ rm -f conftest.$ac_objext conftest$ac_exeext
8510+ if { (ac_try="$ac_link"
8511+ case "(($ac_try" in
8512+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8513+ *) ac_try_echo=$ac_try;;
8514+ esac
8515+ eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8516+ $as_echo "$ac_try_echo") >&5
8517+ (eval "$ac_link") 2>conftest.er1
8518+ ac_status=$?
8519+ grep -v '^ *+' conftest.er1 >conftest.err
8520+ rm -f conftest.er1
8521+ cat conftest.err >&5
8522+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523+ (exit $ac_status); } && {
8524+ test -z "$ac_c_werror_flag" ||
8525+ test ! -s conftest.err
8526+ } && test -s conftest$ac_exeext && {
8527+ test "$cross_compiling" = yes ||
8528+ $as_test_x conftest$ac_exeext
8529+ }; then
8530+ ac_cv_search_shm_unlink=$ac_res
8531+ else
8532+ $as_echo "$as_me: failed program was:" >&5
8533+ sed 's/^/| /' conftest.$ac_ext >&5
8534+
8535+
8536+ fi
8537+
8538+ rm -rf conftest.dSYM
8539+ rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8540+ conftest$ac_exeext
8541+ if test "${ac_cv_search_shm_unlink+set}" = set; then
8542+ break
8543+ fi
8544+ done
8545+ if test "${ac_cv_search_shm_unlink+set}" = set; then
8546+ :
8547+ else
8548+ ac_cv_search_shm_unlink=no
8549+ fi
8550+ rm conftest.$ac_ext
8551+ LIBS=$ac_func_search_save_LIBS
8552+ fi
8553+ { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shm_unlink" >&5
8554+ $as_echo "$ac_cv_search_shm_unlink" >&6; }
8555+ ac_res=$ac_cv_search_shm_unlink
8556+ if test "$ac_res" != no; then
8557+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8558+
8559+ fi
8560+
83878561# Solaris:
83888562{ $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
83898563$as_echo_n "checking for library containing fdatasync... " >&6; }
@@ -19763,7 +19937,8 @@ LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
1976319937
1976419938
1976519939
19766- for ac_func in cbrt dlopen fdatasync getifaddrs getpeerucred getrlimit mbstowcs_l memmove poll pstat readlink setproctitle setsid sigprocmask symlink sync_file_range towlower utime utimes wcstombs wcstombs_l
19940+
19941+ for ac_func in cbrt dlopen fdatasync getifaddrs getpeerucred getrlimit mbstowcs_l memmove poll pstat readlink setproctitle setsid shm_open sigprocmask symlink sync_file_range towlower utime utimes wcstombs wcstombs_l
1976719942do
1976819943as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
1976919944{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
0 commit comments