diff --git a/bochs/config.h.in b/bochs/config.h.in index 26578cf43..4963ec9fe 100644 --- a/bochs/config.h.in +++ b/bochs/config.h.in @@ -468,6 +468,7 @@ typedef unsigned int Boolean; #define BX_HAVE_SELECT 0 #define BX_HAVE_SNPRINTF 0 #define BX_HAVE_STRTOULL 0 +#define BX_HAVE_STRTOUQ 0 #define BX_HAVE_STRDUP 0 // set if your compiler does not permit an empty struct diff --git a/bochs/configure b/bochs/configure index 1ef4bb869..ebda228e5 100755 --- a/bochs/configure +++ b/bochs/configure @@ -2462,7 +2462,7 @@ else fi done -for ac_func in strdup +for ac_func in strtouq do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:2469: checking for $ac_func" >&5 @@ -2505,6 +2505,64 @@ fi rm -f conftest* fi +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <> confdefs.h <<\EOF +#define BX_HAVE_STRTOUQ 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi +done + +for ac_func in strdup +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:2527: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:2555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` @@ -2522,16 +2580,16 @@ done echo $ac_n "checking if compiler allows empty structs""... $ac_c" 1>&6 -echo "configure:2526: checking if compiler allows empty structs" >&5 +echo "configure:2584: checking if compiler allows empty structs" >&5 cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""yes" 1>&6 else @@ -2549,16 +2607,16 @@ fi rm -f conftest* echo $ac_n "checking if compiler allows __attribute__""... $ac_c" 1>&6 -echo "configure:2553: checking if compiler allows __attribute__" >&5 +echo "configure:2611: checking if compiler allows __attribute__" >&5 cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""yes" 1>&6 else @@ -2584,16 +2642,16 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross echo $ac_n "checking for hash_map.h""... $ac_c" 1>&6 -echo "configure:2588: checking for hash_map.h" >&5 +echo "configure:2646: checking for hash_map.h" >&5 cat > conftest.$ac_ext < int main() { ; return 0; } EOF -if { (eval echo configure:2597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""yes" 1>&6 @@ -2611,16 +2669,16 @@ fi rm -f conftest* echo $ac_n "checking if compiler allows blank labels""... $ac_c" 1>&6 -echo "configure:2615: checking if compiler allows blank labels" >&5 +echo "configure:2673: checking if compiler allows blank labels" >&5 cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""yes" 1>&6 else @@ -2645,16 +2703,16 @@ cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking if compiler allows LL for 64-bit constants""... $ac_c" 1>&6 -echo "configure:2649: checking if compiler allows LL for 64-bit constants" >&5 +echo "configure:2707: checking if compiler allows LL for 64-bit constants" >&5 cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""yes" 1>&6 else @@ -2673,7 +2731,7 @@ rm -f conftest* echo $ac_n "checking for cpu level""... $ac_c" 1>&6 -echo "configure:2677: checking for cpu level" >&5 +echo "configure:2735: checking for cpu level" >&5 # Check whether --enable-cpu-level or --disable-cpu-level was given. if test "${enable_cpu_level+set}" = set; then enableval="$enable_cpu_level" @@ -2736,7 +2794,7 @@ fi echo $ac_n "checking for dynamic translation support""... $ac_c" 1>&6 -echo "configure:2740: checking for dynamic translation support" >&5 +echo "configure:2798: checking for dynamic translation support" >&5 # Check whether --enable-dynamic or --disable-dynamic was given. if test "${enable_dynamic+set}" = set; then enableval="$enable_dynamic" @@ -2809,7 +2867,7 @@ fi echo $ac_n "checking for split hard disk image support""... $ac_c" 1>&6 -echo "configure:2813: checking for split hard disk image support" >&5 +echo "configure:2871: checking for split hard disk image support" >&5 # Check whether --enable-split-hd or --disable-split-hd was given. if test "${enable_split_hd+set}" = set; then enableval="$enable_split_hd" @@ -2840,7 +2898,7 @@ fi echo $ac_n "checking for NE2000 support""... $ac_c" 1>&6 -echo "configure:2844: checking for NE2000 support" >&5 +echo "configure:2902: checking for NE2000 support" >&5 # Check whether --enable-ne2000 or --disable-ne2000 was given. if test "${enable_ne2000+set}" = set; then enableval="$enable_ne2000" @@ -2875,7 +2933,7 @@ fi echo $ac_n "checking for i440FX PCI support""... $ac_c" 1>&6 -echo "configure:2879: checking for i440FX PCI support" >&5 +echo "configure:2937: checking for i440FX PCI support" >&5 # Check whether --enable-pci or --disable-pci was given. if test "${enable_pci+set}" = set; then enableval="$enable_pci" @@ -2910,7 +2968,7 @@ fi echo $ac_n "checking for port e9 hack""... $ac_c" 1>&6 -echo "configure:2914: checking for port e9 hack" >&5 +echo "configure:2972: checking for port e9 hack" >&5 # Check whether --enable-port-e9-hack or --disable-port-e9-hack was given. if test "${enable_port_e9_hack+set}" = set; then enableval="$enable_port_e9_hack" @@ -2941,7 +2999,7 @@ fi echo $ac_n "checking for use of .cpp as suffix""... $ac_c" 1>&6 -echo "configure:2945: checking for use of .cpp as suffix" >&5 +echo "configure:3003: checking for use of .cpp as suffix" >&5 # Check whether --enable-cpp or --disable-cpp was given. if test "${enable_cpp+set}" = set; then enableval="$enable_cpp" @@ -2983,7 +3041,7 @@ fi echo $ac_n "checking for Bochs internal debugger support""... $ac_c" 1>&6 -echo "configure:2987: checking for Bochs internal debugger support" >&5 +echo "configure:3045: checking for Bochs internal debugger support" >&5 # Check whether --enable-debugger or --disable-debugger was given. if test "${enable_debugger+set}" = set; then enableval="$enable_debugger" @@ -3021,7 +3079,7 @@ fi echo $ac_n "checking for disassembler support""... $ac_c" 1>&6 -echo "configure:3025: checking for disassembler support" >&5 +echo "configure:3083: checking for disassembler support" >&5 # Check whether --enable-disasm or --disable-disasm was given. if test "${enable_disasm+set}" = set; then enableval="$enable_disasm" @@ -3068,7 +3126,7 @@ fi echo $ac_n "checking for loader support""... $ac_c" 1>&6 -echo "configure:3072: checking for loader support" >&5 +echo "configure:3130: checking for loader support" >&5 # Check whether --enable-loader or --disable-loader was given. if test "${enable_loader+set}" = set; then enableval="$enable_loader" @@ -3106,7 +3164,7 @@ fi INSTRUMENT_DIR='instrument/stubs' echo $ac_n "checking for instrumentation support""... $ac_c" 1>&6 -echo "configure:3110: checking for instrumentation support" >&5 +echo "configure:3168: checking for instrumentation support" >&5 # Check whether --enable-instrumentation or --disable-instrumentation was given. if test "${enable_instrumentation+set}" = set; then enableval="$enable_instrumentation" @@ -3241,7 +3299,7 @@ fi echo $ac_n "checking for VGA emulation""... $ac_c" 1>&6 -echo "configure:3245: checking for VGA emulation" >&5 +echo "configure:3303: checking for VGA emulation" >&5 # Check whether --enable-vga or --disable-vga was given. if test "${enable_vga+set}" = set; then enableval="$enable_vga" @@ -3275,7 +3333,7 @@ fi echo $ac_n "checking for FPU emulation""... $ac_c" 1>&6 -echo "configure:3279: checking for FPU emulation" >&5 +echo "configure:3337: checking for FPU emulation" >&5 FPU_VAR='' FPU_GLUE_OBJ='' # Check whether --enable-fpu or --disable-fpu was given. @@ -3319,7 +3377,7 @@ fi echo $ac_n "checking for x86 debugger support""... $ac_c" 1>&6 -echo "configure:3323: checking for x86 debugger support" >&5 +echo "configure:3381: checking for x86 debugger support" >&5 # Check whether --enable-x86-debugger or --disable-x86-debugger was given. if test "${enable_x86_debugger+set}" = set; then enableval="$enable_x86_debugger" @@ -3355,7 +3413,7 @@ fi echo $ac_n "checking for CDROM support""... $ac_c" 1>&6 -echo "configure:3359: checking for CDROM support" >&5 +echo "configure:3417: checking for CDROM support" >&5 # Check whether --enable-cdrom or --disable-cdrom was given. if test "${enable_cdrom+set}" = set; then enableval="$enable_cdrom" @@ -3397,7 +3455,7 @@ fi echo $ac_n "checking for Sound Blaster 16 support""... $ac_c" 1>&6 -echo "configure:3401: checking for Sound Blaster 16 support" >&5 +echo "configure:3459: checking for Sound Blaster 16 support" >&5 # Check whether --enable-sb16 or --disable-sb16 was given. if test "${enable_sb16+set}" = set; then enableval="$enable_sb16" @@ -3694,7 +3752,7 @@ fi if test "$use_curses" = yes; then echo $ac_n "checking for mvaddch in -lcurses""... $ac_c" 1>&6 -echo "configure:3698: checking for mvaddch in -lcurses" >&5 +echo "configure:3756: checking for mvaddch in -lcurses" >&5 ac_lib_var=`echo curses'_'mvaddch | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3702,7 +3760,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lcurses $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3734,7 +3792,7 @@ else fi echo $ac_n "checking for mvaddch in -lncurses""... $ac_c" 1>&6 -echo "configure:3738: checking for mvaddch in -lncurses" >&5 +echo "configure:3796: checking for mvaddch in -lncurses" >&5 ac_lib_var=`echo ncurses'_'mvaddch | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3742,7 +3800,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lncurses $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3774,7 +3832,7 @@ else fi echo $ac_n "checking for mvaddch in -ltermlib""... $ac_c" 1>&6 -echo "configure:3778: checking for mvaddch in -ltermlib" >&5 +echo "configure:3836: checking for mvaddch in -ltermlib" >&5 ac_lib_var=`echo termlib'_'mvaddch | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3782,7 +3840,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ltermlib $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else