diff --git a/Makefile.in b/Makefile.in index 14ff9818f1f224e2db01efb9ba2ee3ee2a897a7f..d9e9e01b0445b9aed2a35c0b32828e68b3f797d2 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,5 +1,7 @@ +prefix=@prefix@ + CC=@CC@ CFLAGS=@CFLAGS@ @@ -11,3 +13,6 @@ all: clean: for i in ${dirs}; do cd $$i; make clean; cd ..; done +install: + cp lib/callbacks.exe $(prefix)/bin/callbacks.exe + diff --git a/configure b/configure index 56decfde3029703f89f2c1fbea936f0f2d30eda8..8de6c4135d579dd6663529d5231f2cfb4b9d24f4 100755 --- a/configure +++ b/configure @@ -581,6 +581,7 @@ PACKAGE_STRING='myconfig version-0.1' PACKAGE_BUGREPORT='' PACKAGE_URL='' +ac_default_prefix=$ZIPR_CALLBACKS ac_subst_vars='LIB OS AR @@ -1744,6 +1745,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -6077,6 +6079,8 @@ enable_dir watchsyscall enable_dir p1 enable_dir inferfn +prefix=$prefix + ac_config_files="$ac_config_files Makefile" cat >confcache <<\_ACEOF @@ -7249,6 +7253,9 @@ fi +echo prefix=$prefix +prefix=$prefix + echo "------------------------------------------------" echo "Ignore configure warnings about unknown --enable options for these items: $bad_warnings" diff --git a/configure.in b/configure.in index b510346c88234eccf58072716c4ad817e94e5547..e47d58da8ae0784fe7c4981d73ac29cc18f5e27e 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,7 @@ AC_INIT(myconfig, version-0.1) +AC_PREFIX_DEFAULT($ZIPR_CALLBACKS) AC_PROG_CC AC_ARG_ENABLE([debugging], [ --enable-debugging enable -g when compiling]) @@ -75,6 +76,7 @@ AC_SUBST(ARCH) AC_SUBST(AR) AC_SUBST(OS) AC_SUBST(LIB) +AC_SUBST(prefix, $prefix) echo "------------------------------------------------" echo "Ignore configure warnings about unknown --enable options for these items: $bad_warnings" diff --git a/configure_for_cgc b/configure_for_cgc index 97200893ddda5fafc323c43205991688da28a2dd..e5c24dc6a443056f250a3eb2ec6b9af0632f2e8d 100755 --- a/configure_for_cgc +++ b/configure_for_cgc @@ -1,7 +1,7 @@ #!/bin/bash -./configure --enable-watchsyscall --enable-cgc $* +./configure --enable-watchsyscall --enable-cgc --prefix=$ZIPR_INSTALL $* # enable p1 only if it's needed.