diff options
Diffstat (limited to 'img/dist/IM/configure')
| -rwxr-xr-x | img/dist/IM/configure | 166 |
1 files changed, 93 insertions, 73 deletions
diff --git a/img/dist/IM/configure b/img/dist/IM/configure index 4aa36c5d..a6809c77 100755 --- a/img/dist/IM/configure +++ b/img/dist/IM/configure @@ -12,11 +12,15 @@ ac_help= ac_default_prefix=/usr/local # Any additions from configure.in: ac_help="$ac_help - --enable-rpop Use RPOP (suidperl is needed)" + --enable-rpop Use RPOP (suidperl is needed)" ac_help="$ac_help - --with-perldir=DIR Use DIR as site_perl directory" + --with-fsyncno=NUMBER Use NUMBER as SYS_fsync" ac_help="$ac_help - --with-ssh=PATH Use PATH as SSH location" + --with-perldir=DIR Use DIR as site_perl directory" +ac_help="$ac_help + --with-ssh=PATH Use PATH as SSH location" +ac_help="$ac_help + --with-hostname=HOSTNAME Use HOSTNAME as default domain for mail-address" # Initialize some variables set by options. # The variables have the same names as the options, with @@ -559,7 +563,7 @@ ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:563: checking for a BSD compatible install" >&5 +echo "configure:567: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -618,7 +622,7 @@ else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } fi echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:622: checking host system type" >&5 +echo "configure:626: checking host system type" >&5 host_alias=$host case "$host_alias" in @@ -641,7 +645,7 @@ echo "$ac_t""$host" 1>&6 # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:645: checking for $ac_word" >&5 +echo "configure:649: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -671,7 +675,7 @@ if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:675: checking for $ac_word" >&5 +echo "configure:679: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -722,7 +726,7 @@ fi # Extract the first word of "cl", so it can be a program name with args. set dummy cl; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:726: checking for $ac_word" >&5 +echo "configure:730: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -754,7 +758,7 @@ fi fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:758: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 +echo "configure:762: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. @@ -765,12 +769,12 @@ cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext << EOF -#line 769 "configure" +#line 773 "configure" #include "confdefs.h" main(){return(0);} EOF -if { (eval echo configure:774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cc_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then @@ -796,12 +800,12 @@ if test $ac_cv_prog_cc_works = no; then { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 -echo "configure:800: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "configure:804: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:805: checking whether we are using GNU C" >&5 +echo "configure:809: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -810,7 +814,7 @@ else yes; #endif EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no @@ -829,7 +833,7 @@ ac_test_CFLAGS="${CFLAGS+set}" ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:833: checking whether ${CC-cc} accepts -g" >&5 +echo "configure:837: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -861,7 +865,7 @@ else fi echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 -echo "configure:865: checking how to run the C preprocessor" >&5 +echo "configure:869: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= @@ -876,13 +880,13 @@ else # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext <<EOF -#line 880 "configure" +#line 884 "configure" #include "confdefs.h" #include <assert.h> Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -893,13 +897,13 @@ else rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext <<EOF -#line 897 "configure" +#line 901 "configure" #include "confdefs.h" #include <assert.h> Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -910,13 +914,13 @@ else rm -rf conftest* CPP="${CC-cc} -nologo -E" cat > conftest.$ac_ext <<EOF -#line 914 "configure" +#line 918 "configure" #include "confdefs.h" #include <assert.h> Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -959,7 +963,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:963: checking for $ac_word" >&5 +echo "configure:967: checking for $ac_word" >&5 if eval "test \"`echo '$''{'im_cv_path_im_path_perl'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1000,7 +1004,7 @@ case "$im_path_perl" in exit 1 esac echo $ac_n "checking for site_perl""... $ac_c" 1>&6 -echo "configure:1004: checking for site_perl" >&5 +echo "configure:1008: checking for site_perl" >&5 if eval "test \"`echo '$''{'im_cv_path_im_path_siteperl'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1026,7 +1030,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1030: checking for $ac_word" >&5 +echo "configure:1034: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_im_path_chmod'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1067,7 +1071,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1071: checking for $ac_word" >&5 +echo "configure:1075: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_im_path_mkdir'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1108,7 +1112,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1112: checking for $ac_word" >&5 +echo "configure:1116: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_im_path_rm'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1149,7 +1153,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1153: checking for $ac_word" >&5 +echo "configure:1157: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_im_path_mv'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1190,7 +1194,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1194: checking for $ac_word" >&5 +echo "configure:1198: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_im_path_sed'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1227,7 +1231,7 @@ done test -n "$im_path_sed" || im_path_sed="missing_sed" echo $ac_n "checking for DB type""... $ac_c" 1>&6 -echo "configure:1231: checking for DB type" >&5 +echo "configure:1235: checking for DB type" >&5 if eval "test \"`echo '$''{'im_cv_perl_im_db_type'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1252,26 +1256,34 @@ fi # Check whether --enable-rpop or --disable-rpop was given. if test "${enable_rpop+set}" = set; then enableval="$enable_rpop" - im_rpop="-o root -m 4555" + im_rpop="-o root -m 4755" else - im_rpop="-m 555" + im_rpop="-m 755" fi -im_nosync="undefined" -ac_safe=`echo "sys/syscall.h" | sed 'y%./+-%__p_%'` +im_fsync_no=undef +# Check whether --with-fsyncno or --without-fsyncno was given. +if test "${with_fsyncno+set}" = set; then + withval="$with_fsyncno" + im_fsync_no="${withval}" +fi + +if test "x$im_fsync_no" = 'xundef'; then + im_nosync="undefined" + ac_safe=`echo "sys/syscall.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for sys/syscall.h""... $ac_c" 1>&6 -echo "configure:1265: checking for sys/syscall.h" >&5 +echo "configure:1277: checking for sys/syscall.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1270 "configure" +#line 1282 "configure" #include "confdefs.h" #include <sys/syscall.h> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -1292,8 +1304,8 @@ else echo "$ac_t""no" 1>&6 fi -if test "$ac_cv_header_sys_syscall_h" = yes ; then - cat > conftest.c << EOF + if test "$ac_cv_header_sys_syscall_h" = yes ; then + cat > conftest.c << EOF #include <sys/syscall.h> #ifdef SYS_fsync IM_FSYNC_NO=SYS_fsync @@ -1301,13 +1313,11 @@ IM_FSYNC_NO=SYS_fsync IM_FSYNC_NO=undef #endif EOF - - im_fsync_no=`eval $ac_cpp conftest.c | sed -n -e "s/^IM_FSYNC_NO=//p"` - rm -f conftest.c -else - im_fsync_no=undef + im_fsync_no=`eval $ac_cpp conftest.c | sed -n -e "s/^IM_FSYNC_NO=//p"` + rm -f conftest.c + fi fi -if test "x$im_fsync_no" = "xundef"; then +if test "x$im_fsync_no" = 'xundef'; then im_nosync="yes" else im_nosync="no" @@ -1328,7 +1338,7 @@ fi echo $ac_n "checking OS type""... $ac_c" 1>&6 -echo "configure:1332: checking OS type" >&5 +echo "configure:1342: checking OS type" >&5 case "$host" in *-*-solaris2*) echo "$ac_t""Seems to be a Solaris; Content-Length: should be checked" 1>&6 @@ -1338,18 +1348,18 @@ case "$host" in im_usecl=no ;; esac -im_path_ssh='yes' +im_path_ssh='' # Check whether --with-ssh or --without-ssh was given. if test "${with_ssh+set}" = set; then withval="$with_ssh" im_path_ssh="${withval}" fi -if test "x$im_path_ssh" = 'xyes'; then - # Extract the first word of "ssh", so it can be a program name with args. +if test "x$im_path_ssh" = 'x'; then + # Extract the first word of "ssh", so it can be a program name with args. set dummy ssh; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1353: checking for $ac_word" >&5 +echo "configure:1363: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_im_path_ssh'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1384,10 +1394,19 @@ fi fi -echo $ac_n "checking domain for mail-address""... $ac_c" 1>&6 -echo "configure:1389: checking domain for mail-address" >&5 -im_hostname=`hostname` -echo "$ac_t""$im_hostname" 1>&6 +im_hostname='' +# Check whether --with-hostname or --without-hostname was given. +if test "${with_hostname+set}" = set; then + withval="$with_hostname" + im_hostname="${withval}" +fi + +if test "x$im_hostname" = 'x'; then + echo $ac_n "checking domain for mail-address""... $ac_c" 1>&6 +echo "configure:1407: checking domain for mail-address" >&5 + im_hostname=`hostname` + echo "$ac_t""$im_hostname" 1>&6 +fi trap '' 1 2 15 cat > confcache <<\EOF @@ -1502,14 +1521,14 @@ done ac_given_srcdir=$srcdir ac_given_INSTALL="$INSTALL" -trap 'rm -fr `echo "imali:imali.in imcat:imcat.in imcd:imcd.in imclean:imclean.in \ - imget:imget.in imgrep:imgrep.in \ - imhist:imhist.in imhsync:imhsync.in \ - imjoin:imjoin.in imls:imls.in immv:immv.in \ - impack:impack.in impath:impath.in imput:imput.in \ - impwagent:impwagent.in \ - imrm:imrm.in imsetup:imsetup.in imsort:imsort.in \ - imstore:imstore.in imtar:imtar.in immknmz:immknmz.in\ +trap 'rm -fr `echo "imali:imali.in imcat:imcat.in imcd:imcd.in \ + imclean:imclean.in imget:imget.in \ + imgrep:imgrep.in imhist:imhist.in imhsync:imhsync.in \ + imjoin:imjoin.in imls:imls.in \ + immknmz:immknmz.in immv:immv.in impack:impack.in \ + impath:impath.in imput:imput.in \ + impwagent:impwagent.in imrm:imrm.in imsetup:imsetup.in \ + imsort:imsort.in imstore:imstore.in imtar:imtar.in \ Makefile:Makefile.in \ cnf.im/SiteConfig:cnf.im/SiteConfig.in \ IM/Config.pm:IM/Config.pm.in \ @@ -1613,14 +1632,14 @@ EOF cat >> $CONFIG_STATUS <<EOF -CONFIG_FILES=\${CONFIG_FILES-"imali:imali.in imcat:imcat.in imcd:imcd.in imclean:imclean.in \ - imget:imget.in imgrep:imgrep.in \ - imhist:imhist.in imhsync:imhsync.in \ - imjoin:imjoin.in imls:imls.in immv:immv.in \ - impack:impack.in impath:impath.in imput:imput.in \ - impwagent:impwagent.in \ - imrm:imrm.in imsetup:imsetup.in imsort:imsort.in \ - imstore:imstore.in imtar:imtar.in immknmz:immknmz.in\ +CONFIG_FILES=\${CONFIG_FILES-"imali:imali.in imcat:imcat.in imcd:imcd.in \ + imclean:imclean.in imget:imget.in \ + imgrep:imgrep.in imhist:imhist.in imhsync:imhsync.in \ + imjoin:imjoin.in imls:imls.in \ + immknmz:immknmz.in immv:immv.in impack:impack.in \ + impath:impath.in imput:imput.in \ + impwagent:impwagent.in imrm:imrm.in imsetup:imsetup.in \ + imsort:imsort.in imstore:imstore.in imtar:imtar.in \ Makefile:Makefile.in \ cnf.im/SiteConfig:cnf.im/SiteConfig.in \ IM/Config.pm:IM/Config.pm.in \ @@ -1688,9 +1707,10 @@ cat >> $CONFIG_STATUS <<EOF EOF cat >> $CONFIG_STATUS <<\EOF -chmod 555 imali imcat imcd imclean imget imgrep imhist imjoin\ - imls immv impack impath imput impwagent imrm imsetup imsort imstore\ - imtar +chmod 755 imali imcat imcd imclean imget \ + imgrep imhist imhsync imjoin imls \ + immknmz immv impack impath imput \ + impwagent imrm imsetup imsort imstore imtar exit 0 EOF chmod +x $CONFIG_STATUS |
