4 # mknetrel.cross -- set cross.cache for configure
9 uploads=$here/uploads/$base && mkdir -p $uploads/
10 tarstem=$uploads/$package
14 cat <<EOF > config.cache
15 ac_cv_c_bigendian=\${ac_cv_c_bigendian=no}
16 ac_cv_c_long_size_t=\${ac_cv_c_long_size_t=no}
17 ac_cv_c_long_time_t=\${ac_cv_c_long_time_t=yes}
18 ac_cv_sizeof___int64=\${ac_cv_sizeof___int64=0}
19 ac_cv_sizeof_char=\${ac_cv_sizeof_char=1}
20 ac_cv_sizeof_char_p=\${ac_cv_sizeof_char_p=4}
21 ac_cv_sizeof_double=\${ac_cv_sizeof_double=8}
22 ac_cv_sizeof_float=\${ac_cv_sizeof_float=4}
23 ac_cv_sizeof_int=\${ac_cv_sizeof_int=4}
24 ac_cv_sizeof_intmax_t=\${ac_cv_sizeof_intmax_t=8}
25 ac_cv_sizeof_intptr_t=\${ac_cv_sizeof_intptr_t=4}
26 ac_cv_sizeof_long=\${ac_cv_sizeof_long=4}
27 ac_cv_sizeof_long_double=\${ac_cv_sizeof_long_double=12}
28 ac_cv_sizeof_long_long=\${ac_cv_sizeof_long_long=8}
29 ac_cv_sizeof_ptrdiff_t=\${ac_cv_sizeof_ptrdiff_t=4}
30 ac_cv_sizeof_short=\${ac_cv_sizeof_short=2}
31 ac_cv_sizeof_size_t=\${ac_cv_sizeof_size_t=4}
32 ac_cv_sizeof_uintptr_t=\${ac_cv_sizeof_uintptr_t=4}
33 ac_cv_sizeof_unsigned___int64=\${ac_cv_sizeof_unsigned___int64=0}
34 ac_cv_sizeof_unsigned_char=\${ac_cv_sizeof_unsigned_char=1}
35 ac_cv_sizeof_unsigned_int=\${ac_cv_sizeof_unsigned_int=4}
36 ac_cv_sizeof_unsigned_long=\${ac_cv_sizeof_unsigned_long=4}
37 ac_cv_sizeof_unsigned_long_long=\${ac_cv_sizeof_unsigned_long_long=8}
38 ac_cv_sizeof_unsigned_short=\${ac_cv_sizeof_unsigned_short=2}
39 ac_cv_sizeof_void_p=\${ac_cv_sizeof_void_p=4}
40 ac_16bit_type=\${ac_16bit_type=short}
41 ac_32bit_type=\${ac_32bit_type=int}
42 ac_64bit_type=\${ac_64bit_type=none}
43 ac_cv_sys_restartable_syscalls=\${ac_cv_sys_restartable_syscalls=yes}
44 ac_cv_sprintf_count=\${ac_cv_sprintf_count=yes}
45 ac_cv_spinlocks=\${ac_cv_spinlocks=no}
46 ac_cv_func_getpgrp_void=\${ac_cv_func_getpgrp_void=yes}
47 ac_cv_func_setvbuf_reversed=\${ac_cv_func_setvbuf_reversed=no}
49 # but in mingw only if winsock2.h
50 ac_cv_func_select=\${ac_cv_func_select=yes}
51 ac_cv_search_dlopen=\${ac_cv_search_dlopen="none required"}
52 ac_exeext=\${ac_exeext=}
53 ac_cv_exeext=\${ac_cv_exeext=}
55 # libtool searches not only in the cross libpath
56 # /cygwin/usr/lib:/cygwin/usr/lib/w32api:/usr/i686-cygwin/lib
57 # but also in /usr/lib. there it finds libdl.a and adds -ldl
59 # it seems that libtool is broken wrt cross compilation:
60 # sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
61 lt_cv_dlopen=\${lt_cv_dlopen="dlopen"}
62 lt_cv_dlopen_libs=\${lt_cv_dlopen_libs="none required"}
63 ## trying to get .la's in /usr/lib, will this work? -- jcn
64 ##libltdl_cv_sys_search_path=\${libltdl_cv_sys_search_path="'"/lib /usr/lib"'"}
65 ##libltdl_cv_sys_search_path=\${libltdl_cv_sys_search_path="'"$cygwin_prefix/lib"'"}
66 libltdl_cv_sys_search_path=\${libltdl_cv_sys_search_path="'"$cygwin_prefix/lib"'"}
67 lt_cv_sys_max_cmd_len=\${lt_cv_sys_max_cmd_len=8192}
68 ##ac_cv_header_strings_h=\${ac_cv_header_strings_h=yes}
69 ac_cv_lib_dld_shl_load=\${ac_cv_lib_dld_shl_load=no}
70 ac_cv_lib_dl_dlopen=\${ac_cv_lib_dl_dlopen=no}
71 ac_cv_c_stack_direction=\${ac_cv_c_stack_direction=-1}
82 if [ ! -x ./configure ]; then
85 for i in $(find $src -name configure | xargs grep -l PKG_CONFIG); do
86 sed -i~ -e 's/ x$PKG_CONFIG / "$x$PKG_CONFIG" /' $i
89 CONFIGOPTS="--config-cache --enable-shared --disable-static $CONFIGOPTS"
90 ##[ "$cygwin" == "mingw" ] && CONFIGOPTS="'LDFLAGS=-mwindows -mms-bitfields' $CONFIGOPTS"
91 iscygwin || crosscache
98 extras_postconfig () {