Script started on Fri 18 Sep 2009 04:29:34 IST You will gain money by a speculation or lottery. 2/pvaneynd@manticore:/tmp/test :) $ wget http://ftp.gnu.org/gnu/libsigsegv/libsigsegv-2.7.tar.gz --2009-09-18 04:29:54-- http://ftp.gnu.org/gnu/libsigsegv/libsigsegv-2.7.tar.gz Resolving ftp.gnu.org... 140.186.70.20 Connecting to ftp.gnu.org|140.186.70.20|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 365921 (357K) [application/x-tar] Saving to: `libsigsegv-2.7.tar.gz' 100%[=====================================================================================================>] 365,921 261K/s in 1.4s 2009-09-18 04:29:56 (261 KB/s) - `libsigsegv-2.7.tar.gz' saved [365921/365921] 2/pvaneynd@manticore:/tmp/test :) $ tar zxvf libsigsegv-2.7.tar.gz libsigsegv-2.7/ libsigsegv-2.7/configure libsigsegv-2.7/Makefile.msvc libsigsegv-2.7/PORTING libsigsegv-2.7/COPYING libsigsegv-2.7/aclocal.m4 libsigsegv-2.7/INSTALL libsigsegv-2.7/src/ libsigsegv-2.7/src/stackvma.c libsigsegv-2.7/src/leave-sigaltstack.c libsigsegv-2.7/src/fault-aix3-powerpc.h libsigsegv-2.7/src/fault-linux-cris-old.h libsigsegv-2.7/src/fault-irix.h libsigsegv-2.7/src/fault-beos-i386.h libsigsegv-2.7/src/fault-osf.h libsigsegv-2.7/src/leave-nop.c libsigsegv-2.7/src/machfault-macos.h libsigsegv-2.7/src/fault-bsd.h libsigsegv-2.7/src/fault-beos.h libsigsegv-2.7/src/fault-linux-ia64-old.h libsigsegv-2.7/src/stackvma-freebsd.c libsigsegv-2.7/src/fault-macosdarwin7-powerpc.h libsigsegv-2.7/src/fault-aix3.h libsigsegv-2.7/src/fault-linux-x86_64-old.h libsigsegv-2.7/src/fault-hurd.h libsigsegv-2.7/src/fault-linux.h libsigsegv-2.7/src/dispatcher.c libsigsegv-2.7/src/fault-linux-powerpc-old.h libsigsegv-2.7/src/fault-linux-cris.h libsigsegv-2.7/src/fault-linux-mips.h libsigsegv-2.7/src/fault-linux-sh.h libsigsegv-2.7/src/signals-hurd.h libsigsegv-2.7/src/heur-ab.h libsigsegv-2.7/src/fault-linux-sh-old.h libsigsegv-2.7/src/leave.c libsigsegv-2.7/src/fault-osf-alpha.h libsigsegv-2.7/src/fault-macosdarwin7-powerpc.c libsigsegv-2.7/src/leave-setcontext.c libsigsegv-2.7/src/fault-linux-hppa.h libsigsegv-2.7/src/fault-linux-i386.h libsigsegv-2.7/src/fault-solaris-sparc.h libsigsegv-2.7/src/fault-linux-i386-oldold.h libsigsegv-2.7/src/fault-linux-m68k-old.h libsigsegv-2.7/src/fault-posix-ucontext.h libsigsegv-2.7/src/fault-linux-sparc-old.h libsigsegv-2.7/src/leave.h libsigsegv-2.7/src/fault-none.h libsigsegv-2.7/src/fault-solaris.h libsigsegv-2.7/src/fault-linux-s390.h libsigsegv-2.7/src/fault-macosdarwin5-powerpc.c libsigsegv-2.7/src/fault-hpux-hppa.h libsigsegv-2.7/src/fault-freebsd-i386.h libsigsegv-2.7/src/fault-linux-alpha-old.h libsigsegv-2.7/src/fault-linux-arm-old.h libsigsegv-2.7/src/fault-netbsd-alpha.h libsigsegv-2.7/src/fault-linux-sparc.h libsigsegv-2.7/src/fault-linux-ia64.h libsigsegv-2.7/src/fault-linux-hppa-old.h libsigsegv-2.7/src/fault-linux-alpha.h libsigsegv-2.7/src/fault-linux-arm.h libsigsegv-2.7/src/Makefile.am libsigsegv-2.7/src/heur-ac.h libsigsegv-2.7/src/stackvma-win32.c libsigsegv-2.7/src/fault-irix-mips.h libsigsegv-2.7/src/signals.h libsigsegv-2.7/src/sigsegv.h.msvc libsigsegv-2.7/src/fault.h libsigsegv-2.7/src/fault-netbsd-alpha.c libsigsegv-2.7/src/fault-netbsd.h libsigsegv-2.7/src/fault-linux-m68k.h libsigsegv-2.7/src/signals-bsd.h libsigsegv-2.7/src/fault-aix5-powerpc.h libsigsegv-2.7/src/stackvma-none.c libsigsegv-2.7/src/fault-linux-powerpc.h libsigsegv-2.7/src/handler-none.c libsigsegv-2.7/src/stackvma-mach.c libsigsegv-2.7/src/Makefile.in libsigsegv-2.7/src/fault-solaris-i386.h libsigsegv-2.7/src/handler-win32.c libsigsegv-2.7/src/fault-linux-s390-old.h libsigsegv-2.7/src/fault-linux-m68k-old.c libsigsegv-2.7/src/machfault.h libsigsegv-2.7/src/heur-none.h libsigsegv-2.7/src/stackvma-rofile.c libsigsegv-2.7/src/stackvma-simple.c libsigsegv-2.7/src/handler-macos.c libsigsegv-2.7/src/fault-linux-i386-old.h libsigsegv-2.7/src/stackvma-procfs.c libsigsegv-2.7/src/stackvma.h libsigsegv-2.7/src/sigsegv.h.in libsigsegv-2.7/src/signals-hpux.h libsigsegv-2.7/src/signals-macos.h libsigsegv-2.7/src/heur-bc.h libsigsegv-2.7/src/fault-linux-mips-old.h libsigsegv-2.7/src/fault-openbsd-i386.h libsigsegv-2.7/src/fault-aix5.h libsigsegv-2.7/src/stackvma-mincore.c libsigsegv-2.7/src/version.c libsigsegv-2.7/src/fault-macos-i386.h libsigsegv-2.7/src/fault-macosdarwin5-powerpc.h libsigsegv-2.7/src/handler-unix.c libsigsegv-2.7/src/handler.c libsigsegv-2.7/src/fault-posix.h libsigsegv-2.7/src/fault-openbsd.h libsigsegv-2.7/src/stackvma-linux.c libsigsegv-2.7/src/leave-none.c libsigsegv-2.7/src/fault-hpux.h libsigsegv-2.7/src/stackvma-beos.c libsigsegv-2.7/config.h.msvc libsigsegv-2.7/AUTHORS libsigsegv-2.7/Makefile.am libsigsegv-2.7/ChangeLog libsigsegv-2.7/configure.ac libsigsegv-2.7/Makefile.in libsigsegv-2.7/tests/ libsigsegv-2.7/tests/stackoverflow2.c libsigsegv-2.7/tests/Makefile.am libsigsegv-2.7/tests/Makefile.in libsigsegv-2.7/tests/mmaputil.h libsigsegv-2.7/tests/sigsegv2.c libsigsegv-2.7/tests/sigsegv3.c libsigsegv-2.7/tests/sigsegv1.c libsigsegv-2.7/tests/stackoverflow1.c libsigsegv-2.7/README.woe32 libsigsegv-2.7/config.h.in libsigsegv-2.7/NEWS libsigsegv-2.7/README libsigsegv-2.7/ChangeLog.1 libsigsegv-2.7/build-aux/ libsigsegv-2.7/build-aux/config.guess libsigsegv-2.7/build-aux/install-sh libsigsegv-2.7/build-aux/missing libsigsegv-2.7/build-aux/ltmain.sh libsigsegv-2.7/build-aux/config.sub libsigsegv-2.7/m4/ libsigsegv-2.7/m4/lt~obsolete.m4 libsigsegv-2.7/m4/libtool.m4 libsigsegv-2.7/m4/bold.m4 libsigsegv-2.7/m4/ltoptions.m4 libsigsegv-2.7/m4/sigaltstack-longjmp.m4 libsigsegv-2.7/m4/relocatable.m4 libsigsegv-2.7/m4/sigaltstack.m4 libsigsegv-2.7/m4/ltversion.m4 libsigsegv-2.7/m4/mmap-anon.m4 libsigsegv-2.7/m4/ltsugar.m4 libsigsegv-2.7/m4/fault.m4 libsigsegv-2.7/m4/getpagesize.m4 libsigsegv-2.7/m4/sigaltstack-siglongjmp.m4 2/pvaneynd@manticore:/tmp/test :) $ cd libsigsegv-2.7/ 2/pvaneynd@manticore:/tmp/test/libsigsegv-2.7 :) $ ./configure Build Tools: checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of gcc... none checking how to run the C preprocessor... gcc -E checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking host platform... x86_64-unknown-linux2.6.30-gnu-glibc2.9 checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for ar... ar checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... no checking whether to build static libraries... yes Optional Platform Environment: checking sys/signal.h usability... yes checking sys/signal.h presence... yes checking for sys/signal.h... yes checking for unistd.h... (cached) yes checking for getpagesize... yes checking for sysconf(_SC_PAGESIZE)... yes checking for PAGESIZE in limits.h... no checking for mmap with MAP_ANON... yes checking for mmap with MAP_ANONYMOUS... yes checking for mmap of /dev/zero... yes checking whether a fault handler according to POSIX works... yes checking whether a fault handler according to Linux/i386 works... no checking whether a fault handler according to old Linux/i386 works... no checking whether a fault handler according to Linux/m68k works... no checking whether a fault handler according to Linux/PowerPC works... no checking whether a fault handler according to Linux/HPPA works... no checking whether a fault handler according to BSD works... no checking whether a fault handler according to IRIX works... no checking whether a fault handler according to HP-UX HPPA works... no checking whether a fault handler according to OSF/1 Alpha works... no checking whether a fault handler according to NetBSD Alpha works... no checking whether a fault handler according to AIX works... no checking whether a fault handler according to MacOSX/Darwin7 PowerPC works... no checking whether a fault handler according to MacOSX/Darwin5 PowerPC works... no checking whether a fault handler according to Hurd works... no checking ucontext.h usability... yes checking ucontext.h presence... yes checking for ucontext.h... yes checking for the fault handler specifics... fault-linux-i386.h checking if the system supports catching SIGSEGV... yes checking for stack direction... grows down checking for PIOCMAP in sys/procfs.h... no checking for mincore... yes checking for getrlimit... yes checking for setrlimit... yes checking for sigaltstack... yes checking for stack_t... yes checking for working sigaltstack... yes checking for correct stack_t interpretation... yes checking if the system supports catching stack overflow... yes checking whether a signal handler can be left through longjmp... yes checking whether a signal handler can be left through longjmp and sigaltstack... yes checking whether a signal handler can be left through longjmp and setcontext... yes checking whether a signal handler can be left through siglongjmp... yes checking whether a signal handler can be left through siglongjmp and sigaltstack... yes checking whether a signal handler can be left through siglongjmp and setcontext... yes Build Parameters: checking whether to activate relocatable installation... no Output Substitution: configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating src/sigsegv.h config.status: creating tests/Makefile config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands Now please type 'make' to compile. Good luck. 2/pvaneynd@manticore:/tmp/test/libsigsegv-2.7 :) $ uname -a Linux manticore 2.6.30-1-amd64 #1 SMP Sat Aug 15 18:09:19 UTC 2009 x86_64 GNU/Linux 2/pvaneynd@manticore:/tmp/test/libsigsegv-2.7 :) $ cat config.status #! /bin/bash # Generated by configure. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=${CONFIG_SHELL-/bin/bash} export SHELL ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error ERROR [LINENO LOG_FD] # --------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with status $?, using 1 if that was 0. as_fn_error () { as_status=$?; test $as_status -eq 0 && as_status=1 if test "$3"; then as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 fi $as_echo "$as_me: error: $1" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in #( -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by $as_me, which was generated by GNU Autoconf 2.64. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " # Files that config.status was made for. config_files=" Makefile src/Makefile src/sigsegv.h tests/Makefile" config_headers=" config.h" config_commands=" depfiles libtool" ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to the package provider." ac_cs_version="\ config.status configured by ./configure, generated by GNU Autoconf 2.64, with options \"\" Copyright (C) 2009 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='/tmp/test/libsigsegv-2.7' srcdir='.' INSTALL='/usr/bin/install -c' MKDIR_P='/bin/mkdir -p' AWK='gawk' test -n "$AWK" || AWK=awk # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi if $ac_cs_recheck; then set X '/bin/bash' './configure' $ac_configure_extra_args --no-create --no-recursion shift $as_echo "running CONFIG_SHELL=/bin/bash $*" >&6 CONFIG_SHELL='/bin/bash' export CONFIG_SHELL exec "$@" fi exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 # # INIT-COMMANDS # AMDEP_TRUE="" ac_aux_dir="build-aux" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='s/\(["`$\\]\)/\\\1/g' double_quote_subst='s/\(["`\\]\)/\\\1/g' delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' macro_version='2.2.6' macro_revision='1.3012' enable_shared='no' enable_static='yes' pic_mode='default' enable_fast_install='needless' host_alias='' host='x86_64-unknown-linux-gnu' host_os='linux-gnu' build_alias='' build='x86_64-unknown-linux-gnu' build_os='linux-gnu' SED='/bin/sed' Xsed='/bin/sed -e 1s/^X//' GREP='/bin/grep' EGREP='/bin/grep -E' FGREP='/bin/grep -F' LD='/usr/bin/ld -m elf_x86_64' NM='/usr/bin/nm -B' LN_S='ln -s' max_cmd_len='1572864' ac_objext='o' exeext='' lt_unset='unset' lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' reload_flag=' -r' reload_cmds='$LD$reload_flag -o $output$reload_objs' OBJDUMP='objdump' deplibs_check_method='pass_all' file_magic_cmd='$MAGIC_CMD' AR='ar' AR_FLAGS='cru' STRIP='strip' RANLIB='ranlib' old_postinstall_cmds='chmod 644 $oldlib~$RANLIB $oldlib' old_postuninstall_cmds='' old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs~$RANLIB $oldlib' CC='gcc' CFLAGS='-g -O2' compiler='gcc' GCC='yes' lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'\''' lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^T .* \(.*\)$/extern int \1();/p'\'' -e '\''s/^[ABCDGIRSTW]* .* \(.*\)$/extern char \1;/p'\''' lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\) $/ {\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \([^ ]*\)$/ {"\2", (void *) \&\2},/p'\''' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='sed -n -e '\''s/^: \([^ ]*\) $/ {\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \(lib[^ ]*\)$/ {"\2", (void *) \&\2},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \([^ ]*\)$/ {"lib\2", (void *) \&\2},/p'\''' objdir='.libs' SHELL='/bin/bash' ECHO='echo' MAGIC_CMD='file' lt_prog_compiler_no_builtin_flag=' -fno-builtin' lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic=' -fPIC -DPIC' lt_prog_compiler_static='-static' lt_cv_prog_compiler_c_o='yes' need_locks='no' DSYMUTIL='' NMEDIT='' LIPO='' OTOOL='' OTOOL64='' libext='a' shrext_cmds='.so' extract_expsyms_cmds='' archive_cmds_need_lc='yes' enable_shared_with_static_runtimes='no' export_dynamic_flag_spec='${wl}--export-dynamic' whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' compiler_needs_object='no' old_archive_from_new_cmds='' old_archive_from_expsyms_cmds='' archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' module_cmds='' module_expsym_cmds='' with_gnu_ld='yes' allow_undefined_flag='' no_undefined_flag='' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_flag_spec_ld='' hardcode_libdir_separator='' hardcode_direct='no' hardcode_direct_absolute='no' hardcode_minus_L='no' hardcode_shlibpath_var='unsupported' hardcode_automatic='no' inherit_rpath='no' link_all_deplibs='unknown' fix_srcfile_path='' always_export_symbols='no' export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' include_expsyms='' prelink_cmds='' file_list_spec='' variables_saved_for_relink='PATH LD_LIBRARY_PATH LD_RUN_PATH GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH' need_lib_prefix='no' need_version='no' version_type='linux' runpath_var='LD_RUN_PATH' shlibpath_var='LD_LIBRARY_PATH' shlibpath_overrides_runpath='no' libname_spec='lib$name' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' postinstall_cmds='' postuninstall_cmds='' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' finish_eval='' hardcode_into_libs='yes' sys_lib_search_path_spec='/usr/lib/gcc/x86_64-linux-gnu/4.3.4 /usr/lib /lib /usr/lib/x86_64-linux-gnu' sys_lib_dlsearch_path_spec='/lib /usr/lib /usr/local/lib /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu ' hardcode_action='immediate' enable_dlopen='unknown' enable_dlopen_self='unknown' enable_dlopen_self_static='unknown' old_striplib='strip --strip-debug' striplib='strip --strip-unneeded' LTCC='gcc' LTCFLAGS='-g -O2' compiler='gcc' # Quote evaled strings. for var in SED GREP EGREP FGREP LD NM LN_S lt_SP2NL lt_NL2SP reload_flag OBJDUMP deplibs_check_method file_magic_cmd AR AR_FLAGS STRIP RANLIB CC CFLAGS compiler lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl lt_cv_sys_global_symbol_to_c_name_address lt_cv_sys_global_symbol_to_c_name_address_lib_prefix SHELL ECHO lt_prog_compiler_no_builtin_flag lt_prog_compiler_wl lt_prog_compiler_pic lt_prog_compiler_static lt_cv_prog_compiler_c_o need_locks DSYMUTIL NMEDIT LIPO OTOOL OTOOL64 shrext_cmds export_dynamic_flag_spec whole_archive_flag_spec compiler_needs_object with_gnu_ld allow_undefined_flag no_undefined_flag hardcode_libdir_flag_spec hardcode_libdir_flag_spec_ld hardcode_libdir_separator fix_srcfile_path exclude_expsyms include_expsyms file_list_spec variables_saved_for_relink libname_spec library_names_spec soname_spec finish_eval old_striplib striplib; do case `eval \\$ECHO "X\\$$var"` in *[\\\`\"\$]*) eval "lt_$var=\\\"\`\$ECHO \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\$$var\\\"" ;; esac done # Double-quote double-evaled strings. for var in reload_cmds old_postinstall_cmds old_postuninstall_cmds old_archive_cmds extract_expsyms_cmds old_archive_from_new_cmds old_archive_from_expsyms_cmds archive_cmds archive_expsym_cmds module_cmds module_expsym_cmds export_symbols_cmds prelink_cmds postinstall_cmds postuninstall_cmds finish_cmds sys_lib_search_path_spec sys_lib_dlsearch_path_spec; do case `eval \\$ECHO "X\\$$var"` in *[\\\`\"\$]*) eval "lt_$var=\\\"\`\$ECHO \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\$$var\\\"" ;; esac done # Fix-up fallback echo if it was mangled by the above quoting rules. case $lt_ECHO in *'\$0 --fallback-echo"') lt_ECHO=`$ECHO "X$lt_ECHO" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac ac_aux_dir='build-aux' xsi_shell='yes' lt_shell_append='yes' # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes INIT. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi PACKAGE='libsigsegv' VERSION='2.7' TIMESTAMP='' RM='rm -f' ofile='libtool' # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "src/sigsegv.h") CONFIG_FILES="$CONFIG_FILES src/sigsegv.h" ;; "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= trap 'exit_status=$? { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$tmp/subs1.awk" && cat >>"$tmp/subs1.awk" <<\_ACAWK && S["am__EXEEXT_FALSE"]="" S["am__EXEEXT_TRUE"]="#" S["LTLIBOBJS"]="" S["LIBOBJS"]="" S["RELOCATABLE"]="no" S["CFG_HANDLER"]="handler-unix.c" S["CFG_LEAVE"]="leave-nop.c" S["HAVE_STACK_OVERFLOW_RECOVERY"]="1" S["CFG_STACKVMA"]="stackvma-linux.c" S["HAVE_SIGSEGV_RECOVERY"]="1" S["FAULT_CONTEXT_INCLUDE"]="#include " S["FAULT_CONTEXT"]="ucontext_t" S["OTOOL64"]="" S["OTOOL"]="" S["LIPO"]="" S["NMEDIT"]="" S["DSYMUTIL"]="" S["lt_ECHO"]="echo" S["RANLIB"]="ranlib" S["AR"]="ar" S["OBJDUMP"]="objdump" S["LN_S"]="ln -s" S["NM"]="/usr/bin/nm -B" S["ac_ct_DUMPBIN"]="" S["DUMPBIN"]="" S["LD"]="/usr/bin/ld -m elf_x86_64" S["FGREP"]="/bin/grep -F" S["EGREP"]="/bin/grep -E" S["GREP"]="/bin/grep" S["SED"]="/bin/sed" S["LIBTOOL"]="$(SHELL) $(top_builddir)/libtool" S["PLATFORM"]="x86_64-unknown-linux2.6.30-gnu-glibc2.9" S["host_os"]="linux-gnu" S["host_vendor"]="unknown" S["host_cpu"]="x86_64" S["host"]="x86_64-unknown-linux-gnu" S["build_os"]="linux-gnu" S["build_vendor"]="unknown" S["build_cpu"]="x86_64" S["build"]="x86_64-unknown-linux-gnu" S["CPP"]="gcc -E" S["am__fastdepCC_FALSE"]="" S["am__fastdepCC_TRUE"]="#" S["CCDEPMODE"]="depmode=none" S["AMDEPBACKSLASH"]="\\" S["AMDEP_FALSE"]="#" S["AMDEP_TRUE"]="" S["am__quote"]="" S["am__include"]="include" S["DEPDIR"]=".deps" S["OBJEXT"]="o" S["EXEEXT"]="" S["ac_ct_CC"]="gcc" S["CPPFLAGS"]="" S["LDFLAGS"]="" S["CFLAGS"]="-g -O2" S["CC"]="gcc" S["am__untar"]="${AMTAR} xf -" S["am__tar"]="${AMTAR} chof - \"$$tardir\"" S["AMTAR"]="${SHELL} /tmp/test/libsigsegv-2.7/build-aux/missing --run tar" S["am__leading_dot"]="." S["SET_MAKE"]="" S["AWK"]="gawk" S["mkdir_p"]="/bin/mkdir -p" S["MKDIR_P"]="/bin/mkdir -p" S["INSTALL_STRIP_PROGRAM"]="$(install_sh) -c -s" S["STRIP"]="strip" S["install_sh"]="${SHELL} /tmp/test/libsigsegv-2.7/build-aux/install-sh" S["MAKEINFO"]="${SHELL} /tmp/test/libsigsegv-2.7/build-aux/missing --run makeinfo" S["AUTOHEADER"]="${SHELL} /tmp/test/libsigsegv-2.7/build-aux/missing --run autoheader" S["AUTOMAKE"]="${SHELL} /tmp/test/libsigsegv-2.7/build-aux/missing --run automake-1.11" S["AUTOCONF"]="${SHELL} /tmp/test/libsigsegv-2.7/build-aux/missing --run autoconf" S["ACLOCAL"]="${SHELL} /tmp/test/libsigsegv-2.7/build-aux/missing --run aclocal-1.11" S["VERSION"]="2.7" S["PACKAGE"]="libsigsegv" S["CYGPATH_W"]="echo" S["am__isrc"]="" S["INSTALL_DATA"]="${INSTALL} -m 644" S["INSTALL_SCRIPT"]="${INSTALL}" S["INSTALL_PROGRAM"]="${INSTALL}" S["target_alias"]="" S["host_alias"]="" S["build_alias"]="" S["LIBS"]="" S["ECHO_T"]="" S["ECHO_N"]="-n" S["ECHO_C"]="" S["DEFS"]="-DHAVE_CONFIG_H" S["mandir"]="${datarootdir}/man" S["localedir"]="${datarootdir}/locale" S["libdir"]="${exec_prefix}/lib" S["psdir"]="${docdir}" S["pdfdir"]="${docdir}" S["dvidir"]="${docdir}" S["htmldir"]="${docdir}" S["infodir"]="${datarootdir}/info" S["docdir"]="${datarootdir}/doc/${PACKAGE}" S["oldincludedir"]="/usr/include" S["includedir"]="${prefix}/include" S["localstatedir"]="${prefix}/var" S["sharedstatedir"]="${prefix}/com" S["sysconfdir"]="${prefix}/etc" S["datadir"]="${datarootdir}" S["datarootdir"]="${prefix}/share" S["libexecdir"]="${exec_prefix}/libexec" S["sbindir"]="${exec_prefix}/sbin" S["bindir"]="${exec_prefix}/bin" S["program_transform_name"]="s,x,x," S["prefix"]="/usr/local" S["exec_prefix"]="${prefix}" S["PACKAGE_URL"]="" S["PACKAGE_BUGREPORT"]="" S["PACKAGE_STRING"]="" S["PACKAGE_VERSION"]="" S["PACKAGE_TARNAME"]="" S["PACKAGE_NAME"]="" S["PATH_SEPARATOR"]=":" S["SHELL"]="/bin/bash" _ACAWK cat >>"$tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ || as_fn_error "could not setup config files machinery" "$LINENO" 5 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$tmp/defines.awk" <<\_ACAWK || BEGIN { D["PACKAGE_NAME"]=" \"\"" D["PACKAGE_TARNAME"]=" \"\"" D["PACKAGE_VERSION"]=" \"\"" D["PACKAGE_STRING"]=" \"\"" D["PACKAGE_BUGREPORT"]=" \"\"" D["PACKAGE_URL"]=" \"\"" D["PACKAGE"]=" \"libsigsegv\"" D["VERSION"]=" \"2.7\"" D["STDC_HEADERS"]=" 1" D["HAVE_SYS_TYPES_H"]=" 1" D["HAVE_SYS_STAT_H"]=" 1" D["HAVE_STDLIB_H"]=" 1" D["HAVE_STRING_H"]=" 1" D["HAVE_MEMORY_H"]=" 1" D["HAVE_STRINGS_H"]=" 1" D["HAVE_INTTYPES_H"]=" 1" D["HAVE_STDINT_H"]=" 1" D["HAVE_UNISTD_H"]=" 1" D["HAVE_DLFCN_H"]=" 1" D["LT_OBJDIR"]=" \".libs/\"" D["HAVE_SYS_SIGNAL_H"]=" 1" D["CFG_SIGNALS"]=" \"signals.h\"" D["HAVE_UNISTD_H"]=" 1" D["HAVE_GETPAGESIZE"]=" 1" D["HAVE_SYSCONF_PAGESIZE"]=" 1" D["HAVE_MMAP_ANON"]=" 1" D["HAVE_MMAP_ANONYMOUS"]=" 1" D["HAVE_MMAP_DEVZERO"]=" 1" D["HAVE_UCONTEXT_H"]=" 1" D["CFG_FAULT"]=" \"fault-linux-i386.h\"" D["CFG_MACHFAULT"]=" \"fault-none.h\"" D["STACK_DIRECTION"]=" -1" D["HAVE_MINCORE"]=" 1" D["HAVE_STACKVMA"]=" 1" D["CFG_STACKVMA"]=" \"stackvma-linux.c\"" D["HAVE_GETRLIMIT"]=" 1" D["HAVE_SETRLIMIT"]=" 1" D["HAVE_SIGALTSTACK"]=" 1" D["HAVE_WORKING_SIGALTSTACK"]=" 1" D["CFG_LEAVE"]=" \"leave-nop.c\"" D["CFG_HANDLER"]=" \"handler-unix.c\"" for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+[_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ][_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]*([\t (]|$)/ { line = $ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK as_fn_error "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$tmp/stdin" \ || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} ac_datarootdir_hack=' s&@datadir@&${datarootdir}&g s&@docdir@&${datarootdir}/doc/${PACKAGE}&g s&@infodir@&${datarootdir}/info&g s&@localedir@&${datarootdir}/locale&g s&@mandir@&${datarootdir}/man&g s&\${datarootdir}&${prefix}/share&g' ;; esac ac_sed_extra="/^[ ]*VPATH[ ]*=/{ s/:*\$(srcdir):*/:/ s/:*\${srcdir}:*/:/ s/:*@srcdir@:*/:/ s/^\([^=]*=[ ]*\):*/\1/ s/:*$// s/^[^=]*=[ ]*$// } :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ || as_fn_error "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&2;} rm -f "$tmp/stdin" case $ac_file in -) cat "$tmp/out" && rm -f "$tmp/out";; *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; esac \ || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" } >"$tmp/config.h" \ || as_fn_error "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$tmp/config.h" "$ac_file" \ || as_fn_error "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error "could not create -" "$LINENO" 5 fi # Compute "$ac_file"'s index in $config_headers. _am_arg="$ac_file" _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Autoconf 2.62 quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir=$dirpart/$fdir; as_fn_mkdir_p # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ;; "libtool":C) # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi cfgfile="${ofile}T" trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008 Free Software Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. # # GNU Libtool is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of # the License, or (at your option) any later version. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, or # obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # The names of the tagged configurations supported by this script. available_tags="" # ### BEGIN LIBTOOL CONFIG # Which release of libtool.m4 was used? macro_version=$macro_version macro_revision=$macro_revision # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # What type of objects to build. pic_mode=$pic_mode # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="\$SED -e 1s/^X//" # A grep program that handles long lines. GREP=$lt_GREP # An ERE matcher. EGREP=$lt_EGREP # A literal string matcher. FGREP=$lt_FGREP # A BSD- or MS-compatible name lister. NM=$lt_NM # Whether we need soft or hard links. LN_S=$lt_LN_S # What is the maximum length of a command? max_cmd_len=$max_cmd_len # Object file suffix (normally "o"). objext=$ac_objext # Executable file suffix (normally ""). exeext=$exeext # whether the shell understands "unset". lt_unset=$lt_unset # turn spaces into newlines. SP2NL=$lt_lt_SP2NL # turn newlines into spaces. NL2SP=$lt_lt_NL2SP # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # An object symbol dumper. OBJDUMP=$lt_OBJDUMP # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == "file_magic". file_magic_cmd=$lt_file_magic_cmd # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A symbol stripping program. STRIP=$lt_STRIP # Commands used to install an old-style archive. RANLIB=$lt_RANLIB old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # A C compiler. LTCC=$lt_CC # LTCC compiler flags. LTCFLAGS=$lt_CFLAGS # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # Transform the output of nm in a C name address pair when lib prefix is needed. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix # The name of the directory that contains temporary libtool files. objdir=$objdir # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # An echo program that does not interpret backslashes. ECHO=$lt_ECHO # Used to examine libraries when file_magic_cmd begins with "file". MAGIC_CMD=$MAGIC_CMD # Must we lock files when doing compilation? need_locks=$lt_need_locks # Tool to manipulate archived DWARF debug symbol files on Mac OS X. DSYMUTIL=$lt_DSYMUTIL # Tool to change global to local symbols on Mac OS X. NMEDIT=$lt_NMEDIT # Tool to manipulate fat objects and archives on Mac OS X. LIPO=$lt_LIPO # ldd/readelf like tool for Mach-O binaries on Mac OS X. OTOOL=$lt_OTOOL # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. OTOOL64=$lt_OTOOL64 # Old archive suffix (normally "a"). libext=$libext # Shared library suffix (normally ".so"). shrext_cmds=$lt_shrext_cmds # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Variables whose values should be saved in libtool wrapper scripts and # restored at link time. variables_saved_for_relink=$lt_variables_saved_for_relink # Do we need the "lib" prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Library versioning type. version_type=$version_type # Shared library runtime path variable. runpath_var=$runpath_var # Shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Command to use after installation of a shared archive. postinstall_cmds=$lt_postinstall_cmds # Command to use after uninstallation of a shared archive. postuninstall_cmds=$lt_postuninstall_cmds # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # As "finish_cmds", except a single script fragment to be evaled but # not shown. finish_eval=$lt_finish_eval # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Compile-time system search path for libraries. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # The linker used to build libraries. LD=$lt_LD # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds # A language specific compiler. CC=$lt_compiler # Is the compiler the GNU compiler? with_gcc=$GCC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec # If ld is used when linking, flag to hardcode \$libdir into a binary # during linking. This must work even if \$libdir does not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \${shlibpath_var} if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms # Symbols that must always be exported. include_expsyms=$lt_include_expsyms # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds # Specify filename containing input files. file_list_spec=$lt_file_list_spec # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # ### END LIBTOOL CONFIG _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac ltmain="$ac_aux_dir/ltmain.sh" # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) case $xsi_shell in yes) cat << \_LT_EOF >> "$cfgfile" # func_dirname file append nondir_replacement # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. func_dirname () { case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac } # func_basename file func_basename () { func_basename_result="${1##*/}" } # func_dirname_and_basename file append nondir_replacement # perform func_basename and func_dirname in a single function # call: # dirname: Compute the dirname of FILE. If nonempty, # add APPEND to the result, otherwise set result # to NONDIR_REPLACEMENT. # value returned in "$func_dirname_result" # basename: Compute filename of FILE. # value retuned in "$func_basename_result" # Implementation must be kept synchronized with func_dirname # and func_basename. For efficiency, we do not delegate to # those functions but instead duplicate the functionality here. func_dirname_and_basename () { case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac func_basename_result="${1##*/}" } # func_stripname prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). func_stripname () { # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are # positional parameters, so assign one to ordinary parameter first. func_stripname_result=${3} func_stripname_result=${func_stripname_result#"${1}"} func_stripname_result=${func_stripname_result%"${2}"} } # func_opt_split func_opt_split () { func_opt_split_opt=${1%%=*} func_opt_split_arg=${1#*=} } # func_lo2o object func_lo2o () { case ${1} in *.lo) func_lo2o_result=${1%.lo}.${objext} ;; *) func_lo2o_result=${1} ;; esac } # func_xform libobj-or-source func_xform () { func_xform_result=${1%.*}.lo } # func_arith arithmetic-term... func_arith () { func_arith_result=$(( $* )) } # func_len string # STRING may not start with a hyphen. func_len () { func_len_result=${#1} } _LT_EOF ;; *) # Bourne compatible functions. cat << \_LT_EOF >> "$cfgfile" # func_dirname file append nondir_replacement # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. func_dirname () { # Extract subdirectory from the argument. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` if test "X$func_dirname_result" = "X${1}"; then func_dirname_result="${3}" else func_dirname_result="$func_dirname_result${2}" fi } # func_basename file func_basename () { func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` } # func_stripname prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # func_strip_suffix prefix name func_stripname () { case ${2} in .*) func_stripname_result=`$ECHO "X${3}" \ | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; *) func_stripname_result=`$ECHO "X${3}" \ | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; esac } # sed scripts: my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' my_sed_long_arg='1s/^-[^=]*=//' # func_opt_split func_opt_split () { func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` } # func_lo2o object func_lo2o () { func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` } # func_xform libobj-or-source func_xform () { func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` } # func_arith arithmetic-term... func_arith () { func_arith_result=`expr "$@"` } # func_len string # STRING may not start with a hyphen. func_len () { func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` } _LT_EOF esac case $lt_shell_append in yes) cat << \_LT_EOF >> "$cfgfile" # func_append var value # Append VALUE to the end of shell variable VAR. func_append () { eval "$1+=\$2" } _LT_EOF ;; *) cat << \_LT_EOF >> "$cfgfile" # func_append var value # Append VALUE to the end of shell variable VAR. func_append () { eval "$1=\$$1\$2" } _LT_EOF ;; esac sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ;; esac done # for ac_tag as_fn_exit 0 2/pvaneynd@manticore:/tmp/test/libsigsegv-2.7 :) $ cat config.log This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.64. Invocation command line was $ ./configure ## --------- ## ## Platform. ## ## --------- ## hostname = manticore uname -m = x86_64 uname -r = 2.6.30-1-amd64 uname -s = Linux uname -v = #1 SMP Sat Aug 15 18:09:19 UTC 2009 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/local/bin PATH: /usr/bin PATH: /bin PATH: /usr/bin/X11 PATH: /usr/games PATH: /sbin PATH: /usr/sbin PATH: /usr/local/sbin PATH: ~/bin PATH: . PATH: /sbin PATH: /usr/sbin ## ----------- ## ## Core tests. ## ## ----------- ## configure:2444: checking for a BSD-compatible install configure:2512: result: /usr/bin/install -c configure:2523: checking whether build environment is sane configure:2573: result: yes configure:2714: checking for a thread-safe mkdir -p configure:2753: result: /bin/mkdir -p configure:2766: checking for gawk configure:2782: found /usr/bin/gawk configure:2793: result: gawk configure:2804: checking whether make sets $(MAKE) configure:2826: result: yes configure:2957: checking for gcc configure:2973: found /usr/bin/gcc configure:2984: result: gcc configure:3213: checking for C compiler version configure:3222: gcc --version >&5 gcc (Debian 4.3.4-2) 4.3.4 Copyright (C) 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:3233: $? = 0 configure:3222: gcc -v >&5 Using built-in specs. Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.4-2' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.3.4 (Debian 4.3.4-2) configure:3233: $? = 0 configure:3222: gcc -V >&5 gcc: '-V' option must have argument configure:3233: $? = 1 configure:3222: gcc -qversion >&5 gcc: unrecognized option '-qversion' gcc: no input files configure:3233: $? = 1 configure:3255: checking for C compiler default output file name configure:3277: gcc conftest.c >&5 configure:3281: $? = 0 configure:3318: result: a.out configure:3334: checking whether the C compiler works configure:3343: ./a.out configure:3347: $? = 0 configure:3362: result: yes configure:3369: checking whether we are cross compiling configure:3371: result: no configure:3374: checking for suffix of executables configure:3381: gcc -o conftest conftest.c >&5 configure:3385: $? = 0 configure:3407: result: configure:3413: checking for suffix of object files configure:3435: gcc -c conftest.c >&5 configure:3439: $? = 0 configure:3460: result: o configure:3464: checking whether we are using the GNU C compiler configure:3483: gcc -c conftest.c >&5 configure:3483: $? = 0 configure:3492: result: yes configure:3501: checking whether gcc accepts -g configure:3521: gcc -c -g conftest.c >&5 configure:3521: $? = 0 configure:3562: result: yes configure:3579: checking for gcc option to accept ISO C89 configure:3643: gcc -c -g -O2 conftest.c >&5 configure:3643: $? = 0 configure:3656: result: none needed configure:3687: checking for style of include used by make configure:3715: result: GNU configure:3740: checking dependency style of gcc configure:3850: result: none configure:3870: checking how to run the C preprocessor configure:3901: gcc -E conftest.c configure:3901: $? = 0 configure:3915: gcc -E conftest.c conftest.c:11:28: error: ac_nonexistent.h: No such file or directory configure:3915: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.7" | /* end confdefs.h. */ | #include configure:3940: result: gcc -E configure:3960: gcc -E conftest.c configure:3960: $? = 0 configure:3974: gcc -E conftest.c conftest.c:11:28: error: ac_nonexistent.h: No such file or directory configure:3974: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.7" | /* end confdefs.h. */ | #include configure:4007: checking build system type configure:4021: result: x86_64-unknown-linux-gnu configure:4041: checking host system type configure:4054: result: x86_64-unknown-linux-gnu configure:4074: checking host platform configure:4093: result: x86_64-unknown-linux2.6.30-gnu-glibc2.9 configure:4125: checking for a sed that does not truncate output configure:4189: result: /bin/sed configure:4207: checking for grep that handles long lines and -e configure:4265: result: /bin/grep configure:4270: checking for egrep configure:4332: result: /bin/grep -E configure:4337: checking for fgrep configure:4399: result: /bin/grep -F configure:4434: checking for ld used by gcc configure:4501: result: /usr/bin/ld configure:4508: checking if the linker (/usr/bin/ld) is GNU ld configure:4523: result: yes configure:4535: checking for BSD- or MS-compatible name lister (nm) configure:4584: result: /usr/bin/nm -B configure:4702: checking the name lister (/usr/bin/nm -B) interface configure:4709: gcc -c -g -O2 conftest.c >&5 configure:4712: /usr/bin/nm -B "conftest.o" configure:4715: output 0000000000000000 B some_variable configure:4722: result: BSD nm configure:4725: checking whether ln -s works configure:4729: result: yes configure:4737: checking the maximum length of command line arguments configure:4857: result: 1572864 configure:4874: checking whether the shell understands some XSI constructs configure:4884: result: yes configure:4888: checking whether the shell understands "+=" configure:4894: result: yes configure:4929: checking for /usr/bin/ld option to reload object files configure:4936: result: -r configure:5005: checking for objdump configure:5021: found /usr/bin/objdump configure:5032: result: objdump configure:5064: checking how to recognize dependent libraries configure:5260: result: pass_all configure:5320: checking for ar configure:5336: found /usr/bin/ar configure:5347: result: ar configure:5425: checking for strip configure:5441: found /usr/bin/strip configure:5452: result: strip configure:5524: checking for ranlib configure:5540: found /usr/bin/ranlib configure:5551: result: ranlib configure:5641: checking command to parse /usr/bin/nm -B output from gcc object configure:5759: gcc -c -g -O2 conftest.c >&5 configure:5762: $? = 0 configure:5766: /usr/bin/nm -B conftest.o \| sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' \> conftest.nm configure:5769: $? = 0 configure:5823: gcc -o conftest -g -O2 conftest.c conftstm.o >&5 configure:5826: $? = 0 configure:5864: result: ok configure:5960: gcc -c -g -O2 conftest.c >&5 configure:5963: $? = 0 configure:6669: checking for ANSI C header files configure:6689: gcc -c -g -O2 conftest.c >&5 configure:6689: $? = 0 configure:6762: gcc -o conftest -g -O2 conftest.c >&5 configure:6762: $? = 0 configure:6762: ./conftest configure:6762: $? = 0 configure:6773: result: yes configure:6786: checking for sys/types.h configure:6786: gcc -c -g -O2 conftest.c >&5 configure:6786: $? = 0 configure:6786: result: yes configure:6786: checking for sys/stat.h configure:6786: gcc -c -g -O2 conftest.c >&5 configure:6786: $? = 0 configure:6786: result: yes configure:6786: checking for stdlib.h configure:6786: gcc -c -g -O2 conftest.c >&5 configure:6786: $? = 0 configure:6786: result: yes configure:6786: checking for string.h configure:6786: gcc -c -g -O2 conftest.c >&5 configure:6786: $? = 0 configure:6786: result: yes configure:6786: checking for memory.h configure:6786: gcc -c -g -O2 conftest.c >&5 configure:6786: $? = 0 configure:6786: result: yes configure:6786: checking for strings.h configure:6786: gcc -c -g -O2 conftest.c >&5 configure:6786: $? = 0 configure:6786: result: yes configure:6786: checking for inttypes.h configure:6786: gcc -c -g -O2 conftest.c >&5 configure:6786: $? = 0 configure:6786: result: yes configure:6786: checking for stdint.h configure:6786: gcc -c -g -O2 conftest.c >&5 configure:6786: $? = 0 configure:6786: result: yes configure:6786: checking for unistd.h configure:6786: gcc -c -g -O2 conftest.c >&5 configure:6786: $? = 0 configure:6786: result: yes configure:6801: checking for dlfcn.h configure:6801: gcc -c -g -O2 conftest.c >&5 configure:6801: $? = 0 configure:6801: result: yes configure:6984: checking for objdir configure:6999: result: .libs configure:7295: checking if gcc supports -fno-rtti -fno-exceptions configure:7313: gcc -c -g -O2 -fno-rtti -fno-exceptions conftest.c >&5 cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C configure:7317: $? = 0 configure:7330: result: no configure:7350: checking for gcc option to produce PIC configure:7622: result: -fPIC -DPIC configure:7634: checking if gcc PIC flag -fPIC -DPIC works configure:7652: gcc -c -g -O2 -fPIC -DPIC -DPIC conftest.c >&5 configure:7656: $? = 0 configure:7669: result: yes configure:7693: checking if gcc static flag -static works configure:7721: result: yes configure:7736: checking if gcc supports -c -o file.o configure:7757: gcc -c -g -O2 -o out/conftest2.o conftest.c >&5 configure:7761: $? = 0 configure:7783: result: yes configure:7791: checking if gcc supports -c -o file.o configure:7838: result: yes configure:7871: checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries configure:8857: result: yes configure:9096: checking dynamic linker characteristics configure:9529: gcc -o conftest -g -O2 -Wl,-rpath -Wl,/foo conftest.c >&5 configure:9529: $? = 0 configure:9747: result: GNU/Linux ld.so configure:9849: checking how to hardcode library paths into programs configure:9874: result: immediate configure:10394: checking whether stripping libraries is possible configure:10399: result: yes configure:10434: checking if libtool supports shared libraries configure:10436: result: yes configure:10439: checking whether to build shared libraries configure:10460: result: no configure:10463: checking whether to build static libraries configure:10467: result: yes configure:10510: checking sys/signal.h usability configure:10510: gcc -c -g -O2 conftest.c >&5 configure:10510: $? = 0 configure:10510: result: yes configure:10510: checking sys/signal.h presence configure:10510: gcc -E conftest.c configure:10510: $? = 0 configure:10510: result: yes configure:10510: checking for sys/signal.h configure:10510: result: yes configure:10545: checking for unistd.h configure:10545: result: yes configure:10557: checking for getpagesize configure:10580: gcc -o conftest -g -O2 conftest.c >&5 configure:10580: $? = 0 configure:10588: result: yes configure:10597: checking for sysconf(_SC_PAGESIZE) configure:10620: gcc -o conftest -g -O2 conftest.c >&5 configure:10620: $? = 0 configure:10628: result: yes configure:10637: checking for PAGESIZE in limits.h configure:10655: gcc -o conftest -g -O2 conftest.c >&5 conftest.c: In function 'main': conftest.c:33: error: 'PAGESIZE' undeclared (first use in this function) conftest.c:33: error: (Each undeclared identifier is reported only once conftest.c:33: error: for each function it appears in.) configure:10655: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.7" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | /* end confdefs.h. */ | | #include | int | main () | { | int pgsz = PAGESIZE; | ; | return 0; | } configure:10663: result: no configure:10681: checking for mmap with MAP_ANON configure:10731: gcc -o conftest -g -O2 conftest.c >&5 configure:10731: $? = 0 configure:10731: ./conftest configure:10731: $? = 0 configure:10742: result: yes configure:10751: checking for mmap with MAP_ANONYMOUS configure:10803: gcc -o conftest -g -O2 conftest.c >&5 configure:10803: $? = 0 configure:10803: ./conftest configure:10803: $? = 0 configure:10814: result: yes configure:10823: checking for mmap of /dev/zero configure:10886: gcc -o conftest -g -O2 conftest.c >&5 configure:10886: $? = 0 configure:10886: ./conftest configure:10886: $? = 0 configure:10897: result: yes configure:10919: checking whether a fault handler according to POSIX works configure:11048: gcc -o conftest -g -O2 conftest.c >&5 configure:11048: $? = 0 configure:11048: ./conftest configure:11048: $? = 0 configure:11059: result: yes configure:11067: checking whether a fault handler according to Linux/i386 works configure:11197: gcc -o conftest -g -O2 conftest.c >&5 In file included from conftest.c:38: /usr/include/asm/sigcontext.h:134: error: redefinition of 'struct _fpstate' /usr/include/asm/sigcontext.h:157: error: redefinition of 'struct sigcontext' configure:11197: $? = 1 configure: program exited with status 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.7" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | #define HAVE_MMAP_ANON 1 | #define HAVE_MMAP_ANONYMOUS 1 | #define HAVE_MMAP_DEVZERO 1 | /* end confdefs.h. */ | | | #include | #include | #if HAVE_SYS_SIGNAL_H | # include | #endif | #include | #include | #include | #if HAVE_MMAP_DEVZERO | # include | # ifndef MAP_FILE | # define MAP_FILE 0 | # endif | #endif | #ifndef PROT_NONE | # define PROT_NONE 0 | #endif | #if HAVE_MMAP_ANON | # define zero_fd -1 | # define map_flags MAP_ANON | MAP_PRIVATE | #elif HAVE_MMAP_ANONYMOUS | # define zero_fd -1 | # define map_flags MAP_ANONYMOUS | MAP_PRIVATE | #elif HAVE_MMAP_DEVZERO | static int zero_fd; | # define map_flags MAP_FILE | MAP_PRIVATE | #endif | unsigned long page; | int handler_called = 0; | void sigsegv_handler (int sig, struct sigcontext sc) | { | void *fault_address = (void *) (sc.cr2); | handler_called++; | if (handler_called == 10) | exit (4); | if (fault_address != (void*)(page + 0x678)) | exit (3); | if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0) | exit (2); | } | void crasher (unsigned long p) | { | *(int *) (p + 0x678) = 42; | } | int main () | { | void *p; | struct sigaction action; | /* Preparations. */ | #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO | zero_fd = open ("/dev/zero", O_RDONLY, 0644); | #endif | /* Setup some mmaped memory. */ | #ifdef __hpux | /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete | freedom about the address range. */ | p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #else | p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #endif | if (p == (void *)(-1)) | exit (2); | page = (unsigned long) p; | /* Make it read-only. */ | if (mprotect ((void *) page, 0x10000, PROT_READ) < 0) | exit (2); | /* Install the SIGSEGV handler. */ | sigemptyset(&action.sa_mask); | | action.sa_handler = (void (*) (int)) &sigsegv_handler; | action.sa_flags = 0; | | sigaction (SIGSEGV, &action, (struct sigaction *) NULL); | sigaction (SIGBUS, &action, (struct sigaction *) NULL); | /* The first write access should invoke the handler and then complete. */ | crasher (page); | /* The second write access should not invoke the handler. */ | crasher (page); | /* Check that the handler was called only once. */ | if (handler_called != 1) | exit (1); | /* Test passed! */ | return 0; | } configure:11208: result: no configure:11216: checking whether a fault handler according to old Linux/i386 works configure:11346: gcc -o conftest -g -O2 conftest.c >&5 configure:11346: $? = 0 configure:11346: ./conftest configure:11346: $? = 3 configure: program exited with status 3 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.7" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | #define HAVE_MMAP_ANON 1 | #define HAVE_MMAP_ANONYMOUS 1 | #define HAVE_MMAP_DEVZERO 1 | /* end confdefs.h. */ | | | #include | #include | #if HAVE_SYS_SIGNAL_H | # include | #endif | | #include | #include | #if HAVE_MMAP_DEVZERO | # include | # ifndef MAP_FILE | # define MAP_FILE 0 | # endif | #endif | #ifndef PROT_NONE | # define PROT_NONE 0 | #endif | #if HAVE_MMAP_ANON | # define zero_fd -1 | # define map_flags MAP_ANON | MAP_PRIVATE | #elif HAVE_MMAP_ANONYMOUS | # define zero_fd -1 | # define map_flags MAP_ANONYMOUS | MAP_PRIVATE | #elif HAVE_MMAP_DEVZERO | static int zero_fd; | # define map_flags MAP_FILE | MAP_PRIVATE | #endif | unsigned long page; | int handler_called = 0; | void sigsegv_handler (int sig, unsigned int more) | { | void *fault_address = (void *) (((unsigned long *) &more) [21]); | handler_called++; | if (handler_called == 10) | exit (4); | if (fault_address != (void*)(page + 0x678)) | exit (3); | if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0) | exit (2); | } | void crasher (unsigned long p) | { | *(int *) (p + 0x678) = 42; | } | int main () | { | void *p; | struct sigaction action; | /* Preparations. */ | #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO | zero_fd = open ("/dev/zero", O_RDONLY, 0644); | #endif | /* Setup some mmaped memory. */ | #ifdef __hpux | /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete | freedom about the address range. */ | p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #else | p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #endif | if (p == (void *)(-1)) | exit (2); | page = (unsigned long) p; | /* Make it read-only. */ | if (mprotect ((void *) page, 0x10000, PROT_READ) < 0) | exit (2); | /* Install the SIGSEGV handler. */ | sigemptyset(&action.sa_mask); | | action.sa_handler = (void (*) (int)) &sigsegv_handler; | action.sa_flags = 0; | | sigaction (SIGSEGV, &action, (struct sigaction *) NULL); | sigaction (SIGBUS, &action, (struct sigaction *) NULL); | /* The first write access should invoke the handler and then complete. */ | crasher (page); | /* The second write access should not invoke the handler. */ | crasher (page); | /* Check that the handler was called only once. */ | if (handler_called != 1) | exit (1); | /* Test passed! */ | return 0; | } configure:11357: result: no configure:11365: checking whether a fault handler according to Linux/m68k works configure:11497: gcc -o conftest -g -O2 conftest.c >&5 In file included from conftest.c:38: /usr/include/asm/sigcontext.h:134: error: redefinition of 'struct _fpstate' /usr/include/asm/sigcontext.h:157: error: redefinition of 'struct sigcontext' In file included from conftest.c:39: ./src/fault-linux-m68k-old.c: In function 'get_fault_addr': ./src/fault-linux-m68k-old.c:22: error: 'struct sigcontext' has no member named 'sc_formatvec' configure:11497: $? = 1 configure: program exited with status 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.7" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | #define HAVE_MMAP_ANON 1 | #define HAVE_MMAP_ANONYMOUS 1 | #define HAVE_MMAP_DEVZERO 1 | /* end confdefs.h. */ | | | #include | #include | #if HAVE_SYS_SIGNAL_H | # include | #endif | #include | #include "./src/fault-linux-m68k-old.c" | #include | #include | #if HAVE_MMAP_DEVZERO | # include | # ifndef MAP_FILE | # define MAP_FILE 0 | # endif | #endif | #ifndef PROT_NONE | # define PROT_NONE 0 | #endif | #if HAVE_MMAP_ANON | # define zero_fd -1 | # define map_flags MAP_ANON | MAP_PRIVATE | #elif HAVE_MMAP_ANONYMOUS | # define zero_fd -1 | # define map_flags MAP_ANONYMOUS | MAP_PRIVATE | #elif HAVE_MMAP_DEVZERO | static int zero_fd; | # define map_flags MAP_FILE | MAP_PRIVATE | #endif | unsigned long page; | int handler_called = 0; | void sigsegv_handler (int sig, int code, struct sigcontext *scp) | { | void *fault_address = (void *) (get_fault_addr (scp)); | handler_called++; | if (handler_called == 10) | exit (4); | if (fault_address != (void*)(page + 0x678)) | exit (3); | if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0) | exit (2); | } | void crasher (unsigned long p) | { | *(int *) (p + 0x678) = 42; | } | int main () | { | void *p; | struct sigaction action; | /* Preparations. */ | #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO | zero_fd = open ("/dev/zero", O_RDONLY, 0644); | #endif | /* Setup some mmaped memory. */ | #ifdef __hpux | /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete | freedom about the address range. */ | p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #else | p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #endif | if (p == (void *)(-1)) | exit (2); | page = (unsigned long) p; | /* Make it read-only. */ | if (mprotect ((void *) page, 0x10000, PROT_READ) < 0) | exit (2); | /* Install the SIGSEGV handler. */ | sigemptyset(&action.sa_mask); | | action.sa_handler = (void (*) (int)) &sigsegv_handler; | action.sa_flags = 0; | | sigaction (SIGSEGV, &action, (struct sigaction *) NULL); | sigaction (SIGBUS, &action, (struct sigaction *) NULL); | /* The first write access should invoke the handler and then complete. */ | crasher (page); | /* The second write access should not invoke the handler. */ | crasher (page); | /* Check that the handler was called only once. */ | if (handler_called != 1) | exit (1); | /* Test passed! */ | return 0; | } configure:11508: result: no configure:11516: checking whether a fault handler according to Linux/PowerPC works configure:11646: gcc -o conftest -g -O2 conftest.c >&5 In file included from conftest.c:38: /usr/include/asm/sigcontext.h:134: error: redefinition of 'struct _fpstate' /usr/include/asm/sigcontext.h:157: error: redefinition of 'struct sigcontext' conftest.c: In function 'sigsegv_handler': conftest.c:64: error: 'struct sigcontext' has no member named 'regs' configure:11646: $? = 1 configure: program exited with status 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.7" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | #define HAVE_MMAP_ANON 1 | #define HAVE_MMAP_ANONYMOUS 1 | #define HAVE_MMAP_DEVZERO 1 | /* end confdefs.h. */ | | | #include | #include | #if HAVE_SYS_SIGNAL_H | # include | #endif | #include | #include | #include | #if HAVE_MMAP_DEVZERO | # include | # ifndef MAP_FILE | # define MAP_FILE 0 | # endif | #endif | #ifndef PROT_NONE | # define PROT_NONE 0 | #endif | #if HAVE_MMAP_ANON | # define zero_fd -1 | # define map_flags MAP_ANON | MAP_PRIVATE | #elif HAVE_MMAP_ANONYMOUS | # define zero_fd -1 | # define map_flags MAP_ANONYMOUS | MAP_PRIVATE | #elif HAVE_MMAP_DEVZERO | static int zero_fd; | # define map_flags MAP_FILE | MAP_PRIVATE | #endif | unsigned long page; | int handler_called = 0; | void sigsegv_handler (int sig, struct sigcontext *scp) | { | void *fault_address = (void *) (scp->regs->dar); | handler_called++; | if (handler_called == 10) | exit (4); | if (fault_address != (void*)(page + 0x678)) | exit (3); | if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0) | exit (2); | } | void crasher (unsigned long p) | { | *(int *) (p + 0x678) = 42; | } | int main () | { | void *p; | struct sigaction action; | /* Preparations. */ | #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO | zero_fd = open ("/dev/zero", O_RDONLY, 0644); | #endif | /* Setup some mmaped memory. */ | #ifdef __hpux | /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete | freedom about the address range. */ | p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #else | p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #endif | if (p == (void *)(-1)) | exit (2); | page = (unsigned long) p; | /* Make it read-only. */ | if (mprotect ((void *) page, 0x10000, PROT_READ) < 0) | exit (2); | /* Install the SIGSEGV handler. */ | sigemptyset(&action.sa_mask); | | action.sa_handler = (void (*) (int)) &sigsegv_handler; | action.sa_flags = 0; | | sigaction (SIGSEGV, &action, (struct sigaction *) NULL); | sigaction (SIGBUS, &action, (struct sigaction *) NULL); | /* The first write access should invoke the handler and then complete. */ | crasher (page); | /* The second write access should not invoke the handler. */ | crasher (page); | /* Check that the handler was called only once. */ | if (handler_called != 1) | exit (1); | /* Test passed! */ | return 0; | } configure:11657: result: no configure:11665: checking whether a fault handler according to Linux/HPPA works configure:11794: gcc -o conftest -g -O2 conftest.c >&5 configure:11794: $? = 0 configure:11794: ./conftest configure:11794: $? = 3 configure: program exited with status 3 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.7" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | #define HAVE_MMAP_ANON 1 | #define HAVE_MMAP_ANONYMOUS 1 | #define HAVE_MMAP_DEVZERO 1 | /* end confdefs.h. */ | | | #include | #include | #if HAVE_SYS_SIGNAL_H | # include | #endif | | #include | #include | #if HAVE_MMAP_DEVZERO | # include | # ifndef MAP_FILE | # define MAP_FILE 0 | # endif | #endif | #ifndef PROT_NONE | # define PROT_NONE 0 | #endif | #if HAVE_MMAP_ANON | # define zero_fd -1 | # define map_flags MAP_ANON | MAP_PRIVATE | #elif HAVE_MMAP_ANONYMOUS | # define zero_fd -1 | # define map_flags MAP_ANONYMOUS | MAP_PRIVATE | #elif HAVE_MMAP_DEVZERO | static int zero_fd; | # define map_flags MAP_FILE | MAP_PRIVATE | #endif | unsigned long page; | int handler_called = 0; | void sigsegv_handler (int sig, siginfo_t *sip, void *ucp) | { | void *fault_address = (void *) (sip->si_ptr); | handler_called++; | if (handler_called == 10) | exit (4); | if (fault_address != (void*)(page + 0x678)) | exit (3); | if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0) | exit (2); | } | void crasher (unsigned long p) | { | *(int *) (p + 0x678) = 42; | } | int main () | { | void *p; | struct sigaction action; | /* Preparations. */ | #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO | zero_fd = open ("/dev/zero", O_RDONLY, 0644); | #endif | /* Setup some mmaped memory. */ | #ifdef __hpux | /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete | freedom about the address range. */ | p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #else | p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #endif | if (p == (void *)(-1)) | exit (2); | page = (unsigned long) p; | /* Make it read-only. */ | if (mprotect ((void *) page, 0x10000, PROT_READ) < 0) | exit (2); | /* Install the SIGSEGV handler. */ | sigemptyset(&action.sa_mask); | action.sa_sigaction = &sigsegv_handler; | action.sa_flags = SA_SIGINFO; | sigaction (SIGSEGV, &action, (struct sigaction *) NULL); | sigaction (SIGBUS, &action, (struct sigaction *) NULL); | /* The first write access should invoke the handler and then complete. */ | crasher (page); | /* The second write access should not invoke the handler. */ | crasher (page); | /* Check that the handler was called only once. */ | if (handler_called != 1) | exit (1); | /* Test passed! */ | return 0; | } configure:11805: result: no configure:11813: checking whether a fault handler according to BSD works configure:11943: gcc -o conftest -g -O2 conftest.c >&5 configure:11943: $? = 0 configure:11943: ./conftest configure:11943: $? = 3 configure: program exited with status 3 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.7" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | #define HAVE_MMAP_ANON 1 | #define HAVE_MMAP_ANONYMOUS 1 | #define HAVE_MMAP_DEVZERO 1 | /* end confdefs.h. */ | | | #include | #include | #if HAVE_SYS_SIGNAL_H | # include | #endif | | #include | #include | #if HAVE_MMAP_DEVZERO | # include | # ifndef MAP_FILE | # define MAP_FILE 0 | # endif | #endif | #ifndef PROT_NONE | # define PROT_NONE 0 | #endif | #if HAVE_MMAP_ANON | # define zero_fd -1 | # define map_flags MAP_ANON | MAP_PRIVATE | #elif HAVE_MMAP_ANONYMOUS | # define zero_fd -1 | # define map_flags MAP_ANONYMOUS | MAP_PRIVATE | #elif HAVE_MMAP_DEVZERO | static int zero_fd; | # define map_flags MAP_FILE | MAP_PRIVATE | #endif | unsigned long page; | int handler_called = 0; | void sigsegv_handler (int sig, int code, struct sigcontext *scp, void *addr) | { | void *fault_address = (void *) (addr); | handler_called++; | if (handler_called == 10) | exit (4); | if (fault_address != (void*)(page + 0x678)) | exit (3); | if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0) | exit (2); | } | void crasher (unsigned long p) | { | *(int *) (p + 0x678) = 42; | } | int main () | { | void *p; | struct sigaction action; | /* Preparations. */ | #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO | zero_fd = open ("/dev/zero", O_RDONLY, 0644); | #endif | /* Setup some mmaped memory. */ | #ifdef __hpux | /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete | freedom about the address range. */ | p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #else | p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #endif | if (p == (void *)(-1)) | exit (2); | page = (unsigned long) p; | /* Make it read-only. */ | if (mprotect ((void *) page, 0x10000, PROT_READ) < 0) | exit (2); | /* Install the SIGSEGV handler. */ | sigemptyset(&action.sa_mask); | | action.sa_handler = (void (*) (int)) &sigsegv_handler; | action.sa_flags = 0; | | sigaction (SIGSEGV, &action, (struct sigaction *) NULL); | sigaction (SIGBUS, &action, (struct sigaction *) NULL); | /* The first write access should invoke the handler and then complete. */ | crasher (page); | /* The second write access should not invoke the handler. */ | crasher (page); | /* Check that the handler was called only once. */ | if (handler_called != 1) | exit (1); | /* Test passed! */ | return 0; | } configure:11954: result: no configure:11962: checking whether a fault handler according to IRIX works configure:12092: gcc -o conftest -g -O2 conftest.c >&5 conftest.c: In function 'sigsegv_handler': conftest.c:64: error: 'struct sigcontext' has no member named 'sc_badvaddr' configure:12092: $? = 1 configure: program exited with status 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.7" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | #define HAVE_MMAP_ANON 1 | #define HAVE_MMAP_ANONYMOUS 1 | #define HAVE_MMAP_DEVZERO 1 | /* end confdefs.h. */ | | | #include | #include | #if HAVE_SYS_SIGNAL_H | # include | #endif | | #include | #include | #if HAVE_MMAP_DEVZERO | # include | # ifndef MAP_FILE | # define MAP_FILE 0 | # endif | #endif | #ifndef PROT_NONE | # define PROT_NONE 0 | #endif | #if HAVE_MMAP_ANON | # define zero_fd -1 | # define map_flags MAP_ANON | MAP_PRIVATE | #elif HAVE_MMAP_ANONYMOUS | # define zero_fd -1 | # define map_flags MAP_ANONYMOUS | MAP_PRIVATE | #elif HAVE_MMAP_DEVZERO | static int zero_fd; | # define map_flags MAP_FILE | MAP_PRIVATE | #endif | unsigned long page; | int handler_called = 0; | void sigsegv_handler (int sig, int code, struct sigcontext *scp) | { | void *fault_address = (void *) ((unsigned long) scp->sc_badvaddr); | handler_called++; | if (handler_called == 10) | exit (4); | if (fault_address != (void*)(page + 0x678)) | exit (3); | if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0) | exit (2); | } | void crasher (unsigned long p) | { | *(int *) (p + 0x678) = 42; | } | int main () | { | void *p; | struct sigaction action; | /* Preparations. */ | #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO | zero_fd = open ("/dev/zero", O_RDONLY, 0644); | #endif | /* Setup some mmaped memory. */ | #ifdef __hpux | /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete | freedom about the address range. */ | p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #else | p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #endif | if (p == (void *)(-1)) | exit (2); | page = (unsigned long) p; | /* Make it read-only. */ | if (mprotect ((void *) page, 0x10000, PROT_READ) < 0) | exit (2); | /* Install the SIGSEGV handler. */ | sigemptyset(&action.sa_mask); | | action.sa_handler = (void (*) (int)) &sigsegv_handler; | action.sa_flags = 0; | | sigaction (SIGSEGV, &action, (struct sigaction *) NULL); | sigaction (SIGBUS, &action, (struct sigaction *) NULL); | /* The first write access should invoke the handler and then complete. */ | crasher (page); | /* The second write access should not invoke the handler. */ | crasher (page); | /* Check that the handler was called only once. */ | if (handler_called != 1) | exit (1); | /* Test passed! */ | return 0; | } configure:12103: result: no configure:12111: checking whether a fault handler according to HP-UX HPPA works configure:12251: gcc -o conftest -g -O2 conftest.c >&5 conftest.c: In function 'sigsegv_handler': conftest.c:67: error: 'struct sigcontext' has no member named 'sc_sl' conftest.c:67: error: 'SS_WIDEREGS' undeclared (first use in this function) conftest.c:67: error: (Each undeclared identifier is reported only once conftest.c:67: error: for each function it appears in.) conftest.c:67: error: 'struct sigcontext' has no member named 'sc_sl' conftest.c:67: error: 'SS_NARROWISINVALID' undeclared (first use in this function) conftest.c:67: error: 'struct sigcontext' has no member named 'sc_sl' conftest.c:67: error: 'struct sigcontext' has no member named 'sc_sl' configure:12251: $? = 1 configure: program exited with status 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.7" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | #define HAVE_MMAP_ANON 1 | #define HAVE_MMAP_ANONYMOUS 1 | #define HAVE_MMAP_DEVZERO 1 | /* end confdefs.h. */ | | | #include | #include | #if HAVE_SYS_SIGNAL_H | # include | #endif | | #define USE_64BIT_REGS(mc) (((mc).ss_flags & SS_WIDEREGS) && ((mc).ss_flags & SS_NARROWISINVALID)) | #define GET_CR21(mc) (USE_64BIT_REGS(mc) ? (mc).ss_wide.ss_64.ss_cr21 : (mc).ss_narrow.ss_cr21) | | #include | #include | #if HAVE_MMAP_DEVZERO | # include | # ifndef MAP_FILE | # define MAP_FILE 0 | # endif | #endif | #ifndef PROT_NONE | # define PROT_NONE 0 | #endif | #if HAVE_MMAP_ANON | # define zero_fd -1 | # define map_flags MAP_ANON | MAP_PRIVATE | #elif HAVE_MMAP_ANONYMOUS | # define zero_fd -1 | # define map_flags MAP_ANONYMOUS | MAP_PRIVATE | #elif HAVE_MMAP_DEVZERO | static int zero_fd; | # define map_flags MAP_FILE | MAP_PRIVATE | #endif | unsigned long page; | int handler_called = 0; | void sigsegv_handler (int sig, int code, struct sigcontext *scp) | { | void *fault_address = (void *) (GET_CR21 (scp->sc_sl.sl_ss)); | handler_called++; | if (handler_called == 10) | exit (4); | if (fault_address != (void*)(page + 0x678)) | exit (3); | if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0) | exit (2); | } | void crasher (unsigned long p) | { | *(int *) (p + 0x678) = 42; | } | int main () | { | void *p; | struct sigaction action; | /* Preparations. */ | #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO | zero_fd = open ("/dev/zero", O_RDONLY, 0644); | #endif | /* Setup some mmaped memory. */ | #ifdef __hpux | /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete | freedom about the address range. */ | p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #else | p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #endif | if (p == (void *)(-1)) | exit (2); | page = (unsigned long) p; | /* Make it read-only. */ | if (mprotect ((void *) page, 0x10000, PROT_READ) < 0) | exit (2); | /* Install the SIGSEGV handler. */ | sigemptyset(&action.sa_mask); | | action.sa_handler = (void (*) (int)) &sigsegv_handler; | action.sa_flags = 0; | | sigaction (SIGSEGV, &action, (struct sigaction *) NULL); | sigaction (SIGBUS, &action, (struct sigaction *) NULL); | /* The first write access should invoke the handler and then complete. */ | crasher (page); | /* The second write access should not invoke the handler. */ | crasher (page); | /* Check that the handler was called only once. */ | if (handler_called != 1) | exit (1); | /* Test passed! */ | return 0; | } configure:12262: result: no configure:12270: checking whether a fault handler according to OSF/1 Alpha works configure:12400: gcc -o conftest -g -O2 conftest.c >&5 conftest.c: In function 'sigsegv_handler': conftest.c:64: error: 'struct sigcontext' has no member named 'sc_traparg_a0' configure:12400: $? = 1 configure: program exited with status 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.7" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | #define HAVE_MMAP_ANON 1 | #define HAVE_MMAP_ANONYMOUS 1 | #define HAVE_MMAP_DEVZERO 1 | /* end confdefs.h. */ | | | #include | #include | #if HAVE_SYS_SIGNAL_H | # include | #endif | | #include | #include | #if HAVE_MMAP_DEVZERO | # include | # ifndef MAP_FILE | # define MAP_FILE 0 | # endif | #endif | #ifndef PROT_NONE | # define PROT_NONE 0 | #endif | #if HAVE_MMAP_ANON | # define zero_fd -1 | # define map_flags MAP_ANON | MAP_PRIVATE | #elif HAVE_MMAP_ANONYMOUS | # define zero_fd -1 | # define map_flags MAP_ANONYMOUS | MAP_PRIVATE | #elif HAVE_MMAP_DEVZERO | static int zero_fd; | # define map_flags MAP_FILE | MAP_PRIVATE | #endif | unsigned long page; | int handler_called = 0; | void sigsegv_handler (int sig, int code, struct sigcontext *scp) | { | void *fault_address = (void *) (scp->sc_traparg_a0); | handler_called++; | if (handler_called == 10) | exit (4); | if (fault_address != (void*)(page + 0x678)) | exit (3); | if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0) | exit (2); | } | void crasher (unsigned long p) | { | *(int *) (p + 0x678) = 42; | } | int main () | { | void *p; | struct sigaction action; | /* Preparations. */ | #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO | zero_fd = open ("/dev/zero", O_RDONLY, 0644); | #endif | /* Setup some mmaped memory. */ | #ifdef __hpux | /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete | freedom about the address range. */ | p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #else | p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #endif | if (p == (void *)(-1)) | exit (2); | page = (unsigned long) p; | /* Make it read-only. */ | if (mprotect ((void *) page, 0x10000, PROT_READ) < 0) | exit (2); | /* Install the SIGSEGV handler. */ | sigemptyset(&action.sa_mask); | | action.sa_handler = (void (*) (int)) &sigsegv_handler; | action.sa_flags = 0; | | sigaction (SIGSEGV, &action, (struct sigaction *) NULL); | sigaction (SIGBUS, &action, (struct sigaction *) NULL); | /* The first write access should invoke the handler and then complete. */ | crasher (page); | /* The second write access should not invoke the handler. */ | crasher (page); | /* Check that the handler was called only once. */ | if (handler_called != 1) | exit (1); | /* Test passed! */ | return 0; | } configure:12411: result: no configure:12419: checking whether a fault handler according to NetBSD Alpha works configure:12549: gcc -o conftest -g -O2 conftest.c >&5 In file included from conftest.c:38: ./src/fault-netbsd-alpha.c: In function 'get_fault_addr': ./src/fault-netbsd-alpha.c:25: error: 'struct sigcontext' has no member named 'sc_pc' ./src/fault-netbsd-alpha.c:36: error: 'struct sigcontext' has no member named 'sc_regs' configure:12549: $? = 1 configure: program exited with status 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.7" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | #define HAVE_MMAP_ANON 1 | #define HAVE_MMAP_ANONYMOUS 1 | #define HAVE_MMAP_DEVZERO 1 | /* end confdefs.h. */ | | | #include | #include | #if HAVE_SYS_SIGNAL_H | # include | #endif | #include "./src/fault-netbsd-alpha.c" | #include | #include | #if HAVE_MMAP_DEVZERO | # include | # ifndef MAP_FILE | # define MAP_FILE 0 | # endif | #endif | #ifndef PROT_NONE | # define PROT_NONE 0 | #endif | #if HAVE_MMAP_ANON | # define zero_fd -1 | # define map_flags MAP_ANON | MAP_PRIVATE | #elif HAVE_MMAP_ANONYMOUS | # define zero_fd -1 | # define map_flags MAP_ANONYMOUS | MAP_PRIVATE | #elif HAVE_MMAP_DEVZERO | static int zero_fd; | # define map_flags MAP_FILE | MAP_PRIVATE | #endif | unsigned long page; | int handler_called = 0; | void sigsegv_handler (int sig, int code, struct sigcontext *scp) | { | void *fault_address = (void *) (get_fault_addr (scp)); | handler_called++; | if (handler_called == 10) | exit (4); | if (fault_address != (void*)(page + 0x678)) | exit (3); | if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0) | exit (2); | } | void crasher (unsigned long p) | { | *(int *) (p + 0x678) = 42; | } | int main () | { | void *p; | struct sigaction action; | /* Preparations. */ | #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO | zero_fd = open ("/dev/zero", O_RDONLY, 0644); | #endif | /* Setup some mmaped memory. */ | #ifdef __hpux | /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete | freedom about the address range. */ | p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #else | p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #endif | if (p == (void *)(-1)) | exit (2); | page = (unsigned long) p; | /* Make it read-only. */ | if (mprotect ((void *) page, 0x10000, PROT_READ) < 0) | exit (2); | /* Install the SIGSEGV handler. */ | sigemptyset(&action.sa_mask); | | action.sa_handler = (void (*) (int)) &sigsegv_handler; | action.sa_flags = 0; | | sigaction (SIGSEGV, &action, (struct sigaction *) NULL); | sigaction (SIGBUS, &action, (struct sigaction *) NULL); | /* The first write access should invoke the handler and then complete. */ | crasher (page); | /* The second write access should not invoke the handler. */ | crasher (page); | /* Check that the handler was called only once. */ | if (handler_called != 1) | exit (1); | /* Test passed! */ | return 0; | } configure:12560: result: no configure:12568: checking whether a fault handler according to AIX works configure:12698: gcc -o conftest -g -O2 conftest.c >&5 conftest.c: In function 'sigsegv_handler': conftest.c:64: error: 'struct sigcontext' has no member named 'sc_jmpbuf' configure:12698: $? = 1 configure: program exited with status 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.7" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | #define HAVE_MMAP_ANON 1 | #define HAVE_MMAP_ANONYMOUS 1 | #define HAVE_MMAP_DEVZERO 1 | /* end confdefs.h. */ | | | #include | #include | #if HAVE_SYS_SIGNAL_H | # include | #endif | | #include | #include | #if HAVE_MMAP_DEVZERO | # include | # ifndef MAP_FILE | # define MAP_FILE 0 | # endif | #endif | #ifndef PROT_NONE | # define PROT_NONE 0 | #endif | #if HAVE_MMAP_ANON | # define zero_fd -1 | # define map_flags MAP_ANON | MAP_PRIVATE | #elif HAVE_MMAP_ANONYMOUS | # define zero_fd -1 | # define map_flags MAP_ANONYMOUS | MAP_PRIVATE | #elif HAVE_MMAP_DEVZERO | static int zero_fd; | # define map_flags MAP_FILE | MAP_PRIVATE | #endif | unsigned long page; | int handler_called = 0; | void sigsegv_handler (int sig, int code, struct sigcontext *scp) | { | void *fault_address = (void *) (scp->sc_jmpbuf.jmp_context.o_vaddr); | handler_called++; | if (handler_called == 10) | exit (4); | if (fault_address != (void*)(page + 0x678)) | exit (3); | if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0) | exit (2); | } | void crasher (unsigned long p) | { | *(int *) (p + 0x678) = 42; | } | int main () | { | void *p; | struct sigaction action; | /* Preparations. */ | #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO | zero_fd = open ("/dev/zero", O_RDONLY, 0644); | #endif | /* Setup some mmaped memory. */ | #ifdef __hpux | /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete | freedom about the address range. */ | p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #else | p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #endif | if (p == (void *)(-1)) | exit (2); | page = (unsigned long) p; | /* Make it read-only. */ | if (mprotect ((void *) page, 0x10000, PROT_READ) < 0) | exit (2); | /* Install the SIGSEGV handler. */ | sigemptyset(&action.sa_mask); | | action.sa_handler = (void (*) (int)) &sigsegv_handler; | action.sa_flags = 0; | | sigaction (SIGSEGV, &action, (struct sigaction *) NULL); | sigaction (SIGBUS, &action, (struct sigaction *) NULL); | /* The first write access should invoke the handler and then complete. */ | crasher (page); | /* The second write access should not invoke the handler. */ | crasher (page); | /* Check that the handler was called only once. */ | if (handler_called != 1) | exit (1); | /* Test passed! */ | return 0; | } configure:12709: result: no configure:12717: checking whether a fault handler according to MacOSX/Darwin7 PowerPC works configure:12846: gcc -o conftest -g -O2 conftest.c >&5 In file included from conftest.c:38: ./src/fault-macosdarwin7-powerpc.c: In function 'get_fault_addr': ./src/fault-macosdarwin7-powerpc.c:43: error: invalid type argument of '->' (have 'mcontext_t') ./src/fault-macosdarwin7-powerpc.c:130: warning: cast to pointer from integer of different size conftest.c: In function 'main': conftest.c:101: warning: assignment from incompatible pointer type configure:12846: $? = 1 configure: program exited with status 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.7" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | #define HAVE_MMAP_ANON 1 | #define HAVE_MMAP_ANONYMOUS 1 | #define HAVE_MMAP_DEVZERO 1 | /* end confdefs.h. */ | | | #include | #include | #if HAVE_SYS_SIGNAL_H | # include | #endif | #include "./src/fault-macosdarwin7-powerpc.c" | #include | #include | #if HAVE_MMAP_DEVZERO | # include | # ifndef MAP_FILE | # define MAP_FILE 0 | # endif | #endif | #ifndef PROT_NONE | # define PROT_NONE 0 | #endif | #if HAVE_MMAP_ANON | # define zero_fd -1 | # define map_flags MAP_ANON | MAP_PRIVATE | #elif HAVE_MMAP_ANONYMOUS | # define zero_fd -1 | # define map_flags MAP_ANONYMOUS | MAP_PRIVATE | #elif HAVE_MMAP_DEVZERO | static int zero_fd; | # define map_flags MAP_FILE | MAP_PRIVATE | #endif | unsigned long page; | int handler_called = 0; | void sigsegv_handler (int sig, siginfo_t *sip, ucontext_t *ucp) | { | void *fault_address = (void *) (get_fault_addr (sip, ucp)); | handler_called++; | if (handler_called == 10) | exit (4); | if (fault_address != (void*)(page + 0x678)) | exit (3); | if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0) | exit (2); | } | void crasher (unsigned long p) | { | *(int *) (p + 0x678) = 42; | } | int main () | { | void *p; | struct sigaction action; | /* Preparations. */ | #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO | zero_fd = open ("/dev/zero", O_RDONLY, 0644); | #endif | /* Setup some mmaped memory. */ | #ifdef __hpux | /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete | freedom about the address range. */ | p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #else | p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #endif | if (p == (void *)(-1)) | exit (2); | page = (unsigned long) p; | /* Make it read-only. */ | if (mprotect ((void *) page, 0x10000, PROT_READ) < 0) | exit (2); | /* Install the SIGSEGV handler. */ | sigemptyset(&action.sa_mask); | action.sa_sigaction = &sigsegv_handler; | action.sa_flags = SA_SIGINFO; | sigaction (SIGSEGV, &action, (struct sigaction *) NULL); | sigaction (SIGBUS, &action, (struct sigaction *) NULL); | /* The first write access should invoke the handler and then complete. */ | crasher (page); | /* The second write access should not invoke the handler. */ | crasher (page); | /* Check that the handler was called only once. */ | if (handler_called != 1) | exit (1); | /* Test passed! */ | return 0; | } configure:12857: result: no configure:12866: checking whether a fault handler according to MacOSX/Darwin5 PowerPC works configure:12996: gcc -o conftest -g -O2 conftest.c >&5 In file included from conftest.c:38: ./src/fault-macosdarwin5-powerpc.c: In function 'get_fault_addr': ./src/fault-macosdarwin5-powerpc.c:36: error: 'struct sigcontext' has no member named 'sc_ir' ./src/fault-macosdarwin5-powerpc.c:37: error: 'struct sigcontext' has no member named 'sc_regs' ./src/fault-macosdarwin5-powerpc.c:123: warning: cast to pointer from integer of different size configure:12996: $? = 1 configure: program exited with status 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.7" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | #define HAVE_MMAP_ANON 1 | #define HAVE_MMAP_ANONYMOUS 1 | #define HAVE_MMAP_DEVZERO 1 | /* end confdefs.h. */ | | | #include | #include | #if HAVE_SYS_SIGNAL_H | # include | #endif | #include "./src/fault-macosdarwin5-powerpc.c" | #include | #include | #if HAVE_MMAP_DEVZERO | # include | # ifndef MAP_FILE | # define MAP_FILE 0 | # endif | #endif | #ifndef PROT_NONE | # define PROT_NONE 0 | #endif | #if HAVE_MMAP_ANON | # define zero_fd -1 | # define map_flags MAP_ANON | MAP_PRIVATE | #elif HAVE_MMAP_ANONYMOUS | # define zero_fd -1 | # define map_flags MAP_ANONYMOUS | MAP_PRIVATE | #elif HAVE_MMAP_DEVZERO | static int zero_fd; | # define map_flags MAP_FILE | MAP_PRIVATE | #endif | unsigned long page; | int handler_called = 0; | void sigsegv_handler (int sig, int code, struct sigcontext *scp) | { | void *fault_address = (void *) (get_fault_addr (scp)); | handler_called++; | if (handler_called == 10) | exit (4); | if (fault_address != (void*)(page + 0x678)) | exit (3); | if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0) | exit (2); | } | void crasher (unsigned long p) | { | *(int *) (p + 0x678) = 42; | } | int main () | { | void *p; | struct sigaction action; | /* Preparations. */ | #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO | zero_fd = open ("/dev/zero", O_RDONLY, 0644); | #endif | /* Setup some mmaped memory. */ | #ifdef __hpux | /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete | freedom about the address range. */ | p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #else | p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #endif | if (p == (void *)(-1)) | exit (2); | page = (unsigned long) p; | /* Make it read-only. */ | if (mprotect ((void *) page, 0x10000, PROT_READ) < 0) | exit (2); | /* Install the SIGSEGV handler. */ | sigemptyset(&action.sa_mask); | | action.sa_handler = (void (*) (int)) &sigsegv_handler; | action.sa_flags = 0; | | sigaction (SIGSEGV, &action, (struct sigaction *) NULL); | sigaction (SIGBUS, &action, (struct sigaction *) NULL); | /* The first write access should invoke the handler and then complete. */ | crasher (page); | /* The second write access should not invoke the handler. */ | crasher (page); | /* Check that the handler was called only once. */ | if (handler_called != 1) | exit (1); | /* Test passed! */ | return 0; | } configure:13007: result: no configure:13016: checking whether a fault handler according to Hurd works configure:13146: gcc -o conftest -g -O2 conftest.c >&5 conftest.c: In function 'sigsegv_handler': conftest.c:64: warning: cast to pointer from integer of different size configure:13146: $? = 0 configure:13146: ./conftest configure:13146: $? = 3 configure: program exited with status 3 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.7" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | #define HAVE_MMAP_ANON 1 | #define HAVE_MMAP_ANONYMOUS 1 | #define HAVE_MMAP_DEVZERO 1 | /* end confdefs.h. */ | | | #include | #include | #if HAVE_SYS_SIGNAL_H | # include | #endif | | #include | #include | #if HAVE_MMAP_DEVZERO | # include | # ifndef MAP_FILE | # define MAP_FILE 0 | # endif | #endif | #ifndef PROT_NONE | # define PROT_NONE 0 | #endif | #if HAVE_MMAP_ANON | # define zero_fd -1 | # define map_flags MAP_ANON | MAP_PRIVATE | #elif HAVE_MMAP_ANONYMOUS | # define zero_fd -1 | # define map_flags MAP_ANONYMOUS | MAP_PRIVATE | #elif HAVE_MMAP_DEVZERO | static int zero_fd; | # define map_flags MAP_FILE | MAP_PRIVATE | #endif | unsigned long page; | int handler_called = 0; | void sigsegv_handler (int sig, int code, struct sigcontext *scp) | { | void *fault_address = (void *) (code); | handler_called++; | if (handler_called == 10) | exit (4); | if (fault_address != (void*)(page + 0x678)) | exit (3); | if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0) | exit (2); | } | void crasher (unsigned long p) | { | *(int *) (p + 0x678) = 42; | } | int main () | { | void *p; | struct sigaction action; | /* Preparations. */ | #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO | zero_fd = open ("/dev/zero", O_RDONLY, 0644); | #endif | /* Setup some mmaped memory. */ | #ifdef __hpux | /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete | freedom about the address range. */ | p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #else | p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #endif | if (p == (void *)(-1)) | exit (2); | page = (unsigned long) p; | /* Make it read-only. */ | if (mprotect ((void *) page, 0x10000, PROT_READ) < 0) | exit (2); | /* Install the SIGSEGV handler. */ | sigemptyset(&action.sa_mask); | | action.sa_handler = (void (*) (int)) &sigsegv_handler; | action.sa_flags = 0; | | sigaction (SIGSEGV, &action, (struct sigaction *) NULL); | sigaction (SIGBUS, &action, (struct sigaction *) NULL); | /* The first write access should invoke the handler and then complete. */ | crasher (page); | /* The second write access should not invoke the handler. */ | crasher (page); | /* Check that the handler was called only once. */ | if (handler_called != 1) | exit (1); | /* Test passed! */ | return 0; | } configure:13157: result: no configure:13263: checking ucontext.h usability configure:13263: gcc -c -g -O2 conftest.c >&5 configure:13263: $? = 0 configure:13263: result: yes configure:13263: checking ucontext.h presence configure:13263: gcc -E conftest.c configure:13263: $? = 0 configure:13263: result: yes configure:13263: checking for ucontext.h configure:13263: result: yes configure:13492: checking for the fault handler specifics configure:13503: result: fault-linux-i386.h configure:13525: checking if the system supports catching SIGSEGV configure:13527: result: yes configure:13537: checking for stack direction configure:13634: result: grows down configure:13642: checking for PIOCMAP in sys/procfs.h configure:13659: gcc -o conftest -g -O2 conftest.c >&5 conftest.c: In function 'main': conftest.c:39: error: 'PIOCNMAP' undeclared (first use in this function) conftest.c:39: error: (Each undeclared identifier is reported only once conftest.c:39: error: for each function it appears in.) conftest.c:39: error: 'PIOCMAP' undeclared (first use in this function) conftest.c:39: error: 'prmap_t' undeclared (first use in this function) conftest.c:39: error: expected ';' before 'y' configure:13659: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.7" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | #define HAVE_MMAP_ANON 1 | #define HAVE_MMAP_ANONYMOUS 1 | #define HAVE_MMAP_DEVZERO 1 | #define HAVE_UCONTEXT_H 1 | #define CFG_FAULT "fault-linux-i386.h" | #define CFG_MACHFAULT "fault-none.h" | #define STACK_DIRECTION -1 | /* end confdefs.h. */ | #include | int | main () | { | int x = PIOCNMAP + PIOCMAP; prmap_t y; | ; | return 0; | } configure:13668: result: no configure:13672: checking for mincore configure:13672: gcc -o conftest -g -O2 conftest.c >&5 configure:13672: $? = 0 configure:13672: result: yes configure:13712: checking for getrlimit configure:13712: gcc -o conftest -g -O2 conftest.c >&5 configure:13712: $? = 0 configure:13712: result: yes configure:13712: checking for setrlimit configure:13712: gcc -o conftest -g -O2 conftest.c >&5 configure:13712: $? = 0 configure:13712: result: yes configure:13729: checking for sigaltstack configure:13729: gcc -o conftest -g -O2 conftest.c >&5 configure:13729: $? = 0 configure:13729: result: yes configure:13740: checking for stack_t configure:13740: gcc -c -g -O2 conftest.c >&5 configure:13740: $? = 0 configure:13740: gcc -c -g -O2 conftest.c >&5 conftest.c: In function 'main': conftest.c:51: error: expected expression before ')' token configure:13740: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.7" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | #define HAVE_MMAP_ANON 1 | #define HAVE_MMAP_ANONYMOUS 1 | #define HAVE_MMAP_DEVZERO 1 | #define HAVE_UCONTEXT_H 1 | #define CFG_FAULT "fault-linux-i386.h" | #define CFG_MACHFAULT "fault-none.h" | #define STACK_DIRECTION -1 | #define HAVE_MINCORE 1 | #define HAVE_STACKVMA 1 | #define CFG_STACKVMA "stackvma-linux.c" | #define HAVE_GETRLIMIT 1 | #define HAVE_SETRLIMIT 1 | #define HAVE_SIGALTSTACK 1 | /* end confdefs.h. */ | | #include | #if HAVE_SYS_SIGNAL_H | # include | #endif | | | int | main () | { | if (sizeof ((stack_t))) | return 0; | ; | return 0; | } configure:13740: result: yes configure:13758: checking for working sigaltstack configure:13882: gcc -o conftest -g -O2 conftest.c >&5 configure:13882: $? = 0 configure:13882: ./conftest configure:13882: $? = 0 configure:13898: result: yes configure:13905: checking for correct stack_t interpretation configure:13969: gcc -o conftest -g -O2 conftest.c >&5 configure:13969: $? = 0 configure:13969: ./conftest configure:13969: $? = 0 configure:13980: result: yes configure:13990: checking if the system supports catching stack overflow configure:14069: result: yes configure:14092: checking whether a signal handler can be left through longjmp configure:14181: gcc -o conftest -g -O2 conftest.c >&5 configure:14181: $? = 0 configure:14181: ./conftest configure:14181: $? = 0 configure:14192: result: yes configure:14200: checking whether a signal handler can be left through longjmp and sigaltstack configure:14299: gcc -o conftest -g -O2 conftest.c >&5 configure:14299: $? = 0 configure:14299: ./conftest configure:14299: $? = 0 configure:14310: result: yes configure:14318: checking whether a signal handler can be left through longjmp and setcontext configure:14422: gcc -o conftest -g -O2 conftest.c >&5 configure:14422: $? = 0 configure:14422: ./conftest configure:14422: $? = 0 configure:14433: result: yes configure:14455: checking whether a signal handler can be left through siglongjmp configure:14542: gcc -o conftest -g -O2 conftest.c >&5 configure:14542: $? = 0 configure:14542: ./conftest configure:14542: $? = 0 configure:14553: result: yes configure:14561: checking whether a signal handler can be left through siglongjmp and sigaltstack configure:14658: gcc -o conftest -g -O2 conftest.c >&5 configure:14658: $? = 0 configure:14658: ./conftest configure:14658: $? = 0 configure:14669: result: yes configure:14677: checking whether a signal handler can be left through siglongjmp and setcontext configure:14779: gcc -o conftest -g -O2 conftest.c >&5 configure:14779: $? = 0 configure:14779: ./conftest configure:14779: $? = 0 configure:14790: result: yes configure:14849: checking whether to activate relocatable installation configure:14864: result: no configure:14990: creating ./config.status ## ---------------------- ## ## Running config.status. ## ## ---------------------- ## This file was extended by config.status, which was generated by GNU Autoconf 2.64. Invocation command line was CONFIG_FILES = CONFIG_HEADERS = CONFIG_LINKS = CONFIG_COMMANDS = $ ./config.status on manticore config.status:1091: creating Makefile config.status:1091: creating src/Makefile config.status:1091: creating src/sigsegv.h config.status:1091: creating tests/Makefile config.status:1091: creating config.h config.status:1311: executing depfiles commands config.status:1311: executing libtool commands ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=x86_64-unknown-linux-gnu ac_cv_c_compiler_gnu=yes ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_func_getrlimit=yes ac_cv_func_mincore=yes ac_cv_func_setrlimit=yes ac_cv_func_sigaltstack=yes ac_cv_header_dlfcn_h=yes ac_cv_header_inttypes_h=yes ac_cv_header_memory_h=yes ac_cv_header_stdc=yes ac_cv_header_stdint_h=yes ac_cv_header_stdlib_h=yes ac_cv_header_string_h=yes ac_cv_header_strings_h=yes ac_cv_header_sys_signal_h=yes ac_cv_header_sys_stat_h=yes ac_cv_header_sys_types_h=yes ac_cv_header_ucontext_h=yes ac_cv_header_unistd_h=yes ac_cv_host=x86_64-unknown-linux-gnu ac_cv_objext=o ac_cv_path_EGREP='/bin/grep -E' ac_cv_path_FGREP='/bin/grep -F' ac_cv_path_GREP=/bin/grep ac_cv_path_SED=/bin/sed ac_cv_path_install='/usr/bin/install -c' ac_cv_path_mkdir=/bin/mkdir ac_cv_prog_AWK=gawk ac_cv_prog_CPP='gcc -E' ac_cv_prog_ac_ct_AR=ar ac_cv_prog_ac_ct_CC=gcc ac_cv_prog_ac_ct_OBJDUMP=objdump ac_cv_prog_ac_ct_RANLIB=ranlib ac_cv_prog_ac_ct_STRIP=strip ac_cv_prog_cc_c89= ac_cv_prog_cc_g=yes ac_cv_prog_make_make_set=yes ac_cv_type_stack_t=yes am_cv_CC_dependencies_compiler_type=none lt_cv_deplibs_check_method=pass_all lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_ld_reload_flag=-r lt_cv_nm_interface='BSD nm' lt_cv_objdir=.libs lt_cv_path_LD=/usr/bin/ld lt_cv_path_NM='/usr/bin/nm -B' lt_cv_prog_compiler_c_o=yes lt_cv_prog_compiler_pic_works=yes lt_cv_prog_compiler_rtti_exceptions=no lt_cv_prog_compiler_static_works=yes lt_cv_prog_gnu_ld=yes lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'\''' lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\) $/ {\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \([^ ]*\)$/ {"\2", (void *) \&\2},/p'\''' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='sed -n -e '\''s/^: \([^ ]*\) $/ {\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \(lib[^ ]*\)$/ {"\2", (void *) \&\2},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \([^ ]*\)$/ {"lib\2", (void *) \&\2},/p'\''' lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^T .* \(.*\)$/extern int \1();/p'\'' -e '\''s/^[ABCDGIRSTW]* .* \(.*\)$/extern char \1;/p'\''' lt_cv_sys_max_cmd_len=1572864 sv_cv_fault_aix=no sv_cv_fault_bsd=no sv_cv_fault_hpux_hppa=no sv_cv_fault_hurd=no sv_cv_fault_include=fault-linux-i386.h sv_cv_fault_irix=no sv_cv_fault_linux_hppa=no sv_cv_fault_linux_i386=no sv_cv_fault_linux_i386_old=no sv_cv_fault_linux_m68k=no sv_cv_fault_linux_powerpc=no sv_cv_fault_macosdarwin5_ppc=no sv_cv_fault_macosdarwin7_ppc=no sv_cv_fault_netbsd_alpha=no sv_cv_fault_osf_alpha=no sv_cv_fault_posix=yes sv_cv_func_getpagesize=yes sv_cv_func_mmap_anon=yes sv_cv_func_mmap_anonymous=yes sv_cv_func_mmap_devzero=yes sv_cv_func_sysconf_pagesize=yes sv_cv_have_sigsegv_recovery=yes sv_cv_have_stack_overflow_recovery=yes sv_cv_host=x86_64-unknown-linux2.6.30-gnu-glibc2.9 sv_cv_leave_handler_longjmp=yes sv_cv_leave_handler_longjmp_setcontext=yes sv_cv_leave_handler_longjmp_sigaltstack=yes sv_cv_leave_handler_siglongjmp=yes sv_cv_leave_handler_siglongjmp_setcontext=yes sv_cv_leave_handler_siglongjmp_sigaltstack=yes sv_cv_macro_pagesize=no sv_cv_procfsvma=no sv_cv_sigaltstack=yes sv_cv_sigaltstack_low_base=yes sv_cv_stack_direction=-1 sv_cv_stack_direction_msg='grows down' ## ----------------- ## ## Output variables. ## ## ----------------- ## ACLOCAL='${SHELL} /tmp/test/libsigsegv-2.7/build-aux/missing --run aclocal-1.11' AMDEPBACKSLASH='\' AMDEP_FALSE='#' AMDEP_TRUE='' AMTAR='${SHELL} /tmp/test/libsigsegv-2.7/build-aux/missing --run tar' AR='ar' AUTOCONF='${SHELL} /tmp/test/libsigsegv-2.7/build-aux/missing --run autoconf' AUTOHEADER='${SHELL} /tmp/test/libsigsegv-2.7/build-aux/missing --run autoheader' AUTOMAKE='${SHELL} /tmp/test/libsigsegv-2.7/build-aux/missing --run automake-1.11' AWK='gawk' CC='gcc' CCDEPMODE='depmode=none' CFG_HANDLER='handler-unix.c' CFG_LEAVE='leave-nop.c' CFG_STACKVMA='stackvma-linux.c' CFLAGS='-g -O2' CPP='gcc -E' CPPFLAGS='' CYGPATH_W='echo' DEFS='-DHAVE_CONFIG_H' DEPDIR='.deps' DSYMUTIL='' DUMPBIN='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='/bin/grep -E' EXEEXT='' FAULT_CONTEXT='ucontext_t' FAULT_CONTEXT_INCLUDE='#include ' FGREP='/bin/grep -F' GREP='/bin/grep' HAVE_SIGSEGV_RECOVERY='1' HAVE_STACK_OVERFLOW_RECOVERY='1' INSTALL_DATA='${INSTALL} -m 644' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' LD='/usr/bin/ld -m elf_x86_64' LDFLAGS='' LIBOBJS='' LIBS='' LIBTOOL='$(SHELL) $(top_builddir)/libtool' LIPO='' LN_S='ln -s' LTLIBOBJS='' MAKEINFO='${SHELL} /tmp/test/libsigsegv-2.7/build-aux/missing --run makeinfo' MKDIR_P='/bin/mkdir -p' NM='/usr/bin/nm -B' NMEDIT='' OBJDUMP='objdump' OBJEXT='o' OTOOL64='' OTOOL='' PACKAGE='libsigsegv' PACKAGE_BUGREPORT='' PACKAGE_NAME='' PACKAGE_STRING='' PACKAGE_TARNAME='' PACKAGE_URL='' PACKAGE_VERSION='' PATH_SEPARATOR=':' PLATFORM='x86_64-unknown-linux2.6.30-gnu-glibc2.9' RANLIB='ranlib' RELOCATABLE='no' SED='/bin/sed' SET_MAKE='' SHELL='/bin/bash' STRIP='strip' VERSION='2.7' ac_ct_CC='gcc' ac_ct_DUMPBIN='' am__EXEEXT_FALSE='' am__EXEEXT_TRUE='#' am__fastdepCC_FALSE='' am__fastdepCC_TRUE='#' am__include='include' am__isrc='' am__leading_dot='.' am__quote='' am__tar='${AMTAR} chof - "$$tardir"' am__untar='${AMTAR} xf -' bindir='${exec_prefix}/bin' build='x86_64-unknown-linux-gnu' build_alias='' build_cpu='x86_64' build_os='linux-gnu' build_vendor='unknown' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE}' dvidir='${docdir}' exec_prefix='${prefix}' host='x86_64-unknown-linux-gnu' host_alias='' host_cpu='x86_64' host_os='linux-gnu' host_vendor='unknown' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' install_sh='${SHELL} /tmp/test/libsigsegv-2.7/build-aux/install-sh' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' lt_ECHO='echo' mandir='${datarootdir}/man' mkdir_p='/bin/mkdir -p' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='/usr/local' program_transform_name='s,x,x,' psdir='${docdir}' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target_alias='' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" #define PACKAGE_STRING "" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" #define PACKAGE "libsigsegv" #define VERSION "2.7" #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define HAVE_DLFCN_H 1 #define LT_OBJDIR ".libs/" #define HAVE_SYS_SIGNAL_H 1 #define CFG_SIGNALS "signals.h" #define HAVE_UNISTD_H 1 #define HAVE_GETPAGESIZE 1 #define HAVE_SYSCONF_PAGESIZE 1 #define HAVE_MMAP_ANON 1 #define HAVE_MMAP_ANONYMOUS 1 #define HAVE_MMAP_DEVZERO 1 #define HAVE_UCONTEXT_H 1 #define CFG_FAULT "fault-linux-i386.h" #define CFG_MACHFAULT "fault-none.h" #define STACK_DIRECTION -1 #define HAVE_MINCORE 1 #define HAVE_STACKVMA 1 #define CFG_STACKVMA "stackvma-linux.c" #define HAVE_GETRLIMIT 1 #define HAVE_SETRLIMIT 1 #define HAVE_SIGALTSTACK 1 #define HAVE_WORKING_SIGALTSTACK 1 #define CFG_LEAVE "leave-nop.c" #define CFG_HANDLER "handler-unix.c" configure: exit 0 2/pvaneynd@manticore:/tmp/test/libsigsegv-2.7 :) $ cat config.site cat: config.site: No such file or directory 2/pvaneynd@manticore:/tmp/test/libsigsegv-2.7 :( $ make make TARGETSTACK=" all" all-recursive make[1]: Entering directory `/tmp/test/libsigsegv-2.7' Making all in src make[2]: Entering directory `/tmp/test/libsigsegv-2.7/src' /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -g -O2 -c -o handler.lo handler.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -g -O2 -c handler.c -o handler.o /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -g -O2 -c -o stackvma.lo stackvma.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -g -O2 -c stackvma.c -o stackvma.o /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -g -O2 -c -o leave.lo leave.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -g -O2 -c leave.c -o leave.o /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -g -O2 -c -o dispatcher.lo dispatcher.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -g -O2 -c dispatcher.c -o dispatcher.o /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -g -O2 -c -o version.lo version.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -g -O2 -c version.c -o version.o /bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -rpath /usr/local/lib -version-info 2:0:0 -lc -no-undefined -o libsigsegv.la -rpath /usr/local/lib handler.lo stackvma.lo leave.lo dispatcher.lo version.lo libtool: link: ar cru .libs/libsigsegv.a handler.o stackvma.o leave.o dispatcher.o version.o libtool: link: ranlib .libs/libsigsegv.a libtool: link: ( cd ".libs" && rm -f "libsigsegv.la" && ln -s "../libsigsegv.la" "libsigsegv.la" ) make[2]: Leaving directory `/tmp/test/libsigsegv-2.7/src' Making all in tests make[2]: Entering directory `/tmp/test/libsigsegv-2.7/tests' gcc -DHAVE_CONFIG_H -I. -I.. -I../src -g -O2 -c sigsegv1.c /bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -o sigsegv1 sigsegv1.o ../src/libsigsegv.la libtool: link: gcc -g -O2 -o sigsegv1 sigsegv1.o ../src/.libs/libsigsegv.a -lc gcc -DHAVE_CONFIG_H -I. -I.. -I../src -g -O2 -c sigsegv2.c /bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -o sigsegv2 sigsegv2.o ../src/libsigsegv.la libtool: link: gcc -g -O2 -o sigsegv2 sigsegv2.o ../src/.libs/libsigsegv.a -lc gcc -DHAVE_CONFIG_H -I. -I.. -I../src -g -O2 -c sigsegv3.c /bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -o sigsegv3 sigsegv3.o ../src/libsigsegv.la libtool: link: gcc -g -O2 -o sigsegv3 sigsegv3.o ../src/.libs/libsigsegv.a -lc gcc -DHAVE_CONFIG_H -I. -I.. -I../src -g -O2 -c stackoverflow1.c /bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -o stackoverflow1 stackoverflow1.o ../src/libsigsegv.la libtool: link: gcc -g -O2 -o stackoverflow1 stackoverflow1.o ../src/.libs/libsigsegv.a -lc gcc -DHAVE_CONFIG_H -I. -I.. -I../src -g -O2 -c stackoverflow2.c /bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -o stackoverflow2 stackoverflow2.o ../src/libsigsegv.la libtool: link: gcc -g -O2 -o stackoverflow2 stackoverflow2.o ../src/.libs/libsigsegv.a -lc make[2]: Leaving directory `/tmp/test/libsigsegv-2.7/tests' make[2]: Entering directory `/tmp/test/libsigsegv-2.7' Now please type 'make check' to run a quick test suite. Hope it works. make[2]: Leaving directory `/tmp/test/libsigsegv-2.7' make[1]: Leaving directory `/tmp/test/libsigsegv-2.7' 2/pvaneynd@manticore:/tmp/test/libsigsegv-2.7 :) $ make check Making check in src make[1]: Entering directory `/tmp/test/libsigsegv-2.7/src' make[1]: Nothing to be done for `check'. make[1]: Leaving directory `/tmp/test/libsigsegv-2.7/src' Making check in tests make[1]: Entering directory `/tmp/test/libsigsegv-2.7/tests' make check-TESTS make[2]: Entering directory `/tmp/test/libsigsegv-2.7/tests' Test passed. PASS: sigsegv1 Test passed. PASS: sigsegv2 Doing SIGSEGV pass 1. Stack overflow 1 caught. Doing SIGSEGV pass 2. Stack overflow 2 caught. Test passed. PASS: sigsegv3 Starting recursion pass 1. Stack overflow 1 caught. Starting recursion pass 2. Stack overflow 2 caught. Test passed. PASS: stackoverflow1 Starting recursion pass 1. Stack overflow 1 caught. Starting recursion pass 2. Stack overflow 2 caught. /bin/bash: line 5: 17302 Segmentation fault ${dir}$tst FAIL: stackoverflow2 =================== 1 of 5 tests failed =================== make[2]: *** [check-TESTS] Error 1 make[2]: Leaving directory `/tmp/test/libsigsegv-2.7/tests' make[1]: *** [check-am] Error 2 make[1]: Leaving directory `/tmp/test/libsigsegv-2.7/tests' make: *** [check-recursive] Error 1 2/pvaneynd@manticore:/tmp/test/libsigsegv-2.7 :( $ exit exit Script done on Fri 18 Sep 2009 04:32:13 IST