# -*- shell-script -*-

#
# mknetrel.cross -- set cross.cache for configure
#

crosscache () {
	cat <<EOF > config.cache
ac_cv_c_bigendian=\${ac_cv_c_bigendian=no}
ac_cv_sizeof_char=\${ac_cv_sizeof_char=1}
ac_cv_sizeof_char_p=\${ac_cv_sizeof_char_p=4}
ac_cv_sizeof_double=\${ac_cv_sizeof_double=8}
ac_cv_sizeof_float=\${ac_cv_sizeof_float=4}
ac_cv_sizeof_int=\${ac_cv_sizeof_int=4}
ac_cv_sizeof_long=\${ac_cv_sizeof_long=4}
ac_cv_sizeof_long_double=\${ac_cv_sizeof_long_double=12}
ac_cv_sizeof_long_long=\${ac_cv_sizeof_long_long=8}
ac_cv_sizeof_short=\${ac_cv_sizeof_short=2}
ac_cv_sizeof_void_p=\${ac_cv_sizeof_void_p=4}
ac_cv_c_long_size_t=\${ac_cv_c_long_size_t=no}
ac_cv_c_long_time_t=\${ac_cv_c_long_time_t=yes}
ac_16bit_type=\${ac_16bit_type=short}
ac_32bit_type=\${ac_32bit_type=int}
ac_64bit_type=\${ac_64bit_type=none}
ac_cv_sys_restartable_syscalls=\${ac_cv_sys_restartable_syscalls=no}
ac_cv_sprintf_count=\${ac_cv_sprintf_count=yes}
ac_cv_spinlocks=\${ac_cv_spinlocks=no}
ac_cv_func_getpgrp_void=\${ac_cv_func_getpgrp_void=yes}
ac_cv_func_setvbuf_reversed=\${ac_cv_func_setvbuf_reversed=no}
ac_cv_func_mkfifo=yes
ac_cv_search_dlopen=\${ac_cv_search_dlopen="none required"}
ac_exeext=\${ac_exeext=}
ac_cv_exeext=\${ac_cv_exeext=}

# libtool searches not only in the cross libpath
#     /cygwin/usr/lib:/cygwin/usr/lib/w32api:/usr/i686-cygwin/lib
# but also in /usr/lib.  there it finds libdl.a and adds -ldl
# to LIBS
# it seems that libtool is broken wrt cross compilation:
#    sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
lt_cv_dlopen=\${lt_cv_dlopen="dlopen"}
lt_cv_dlopen_libs=\${lt_cv_dlopen_libs="none required"}
ac_cv_lib_dld_shl_load=\${ac_cv_lib_dld_shl_load=no}
ac_cv_lib_dl_dlopen=\${ac_cv_lib_dl_dlopen=no}
EOF
}

