Changeset 3824e90 in git for MP


Ignore:
Timestamp:
Sep 19, 2001, 12:55:45 PM (23 years ago)
Author:
Anne Frühbis-Krüger <anne@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
2338c8aaeaa29f0c2a9dac1c4ddfd8ffa8da42af
Parents:
d2f3863412c790930f365b65b4ca2a568584cd7a
Message:
*anne: Changes for Macintosh-darwin, new rsh tests


git-svn-id: file:///usr/local/Singular/svn/trunk@5632 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
MP
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • MP/configure

    rd2f3863 r3824e90  
    27152715if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    27162716  echo "$ac_t""yes" 1>&6
    2717   freebsd_problem=no
     2717  freebsd_problem=no
     2718                          no_values_h=no
    27182719else
    27192720  echo "$ac_t""no" 1>&6
     
    27212722ac_safe=`echo "/usr/include/values.h" | sed 'y%./+-%__p_%'`
    27222723echo $ac_n "checking for /usr/include/values.h""... $ac_c" 1>&6
    2723 echo "configure:2724: checking for /usr/include/values.h" >&5
     2724echo "configure:2725: checking for /usr/include/values.h" >&5
    27242725if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
    27252726  echo $ac_n "(cached) $ac_c" 1>&6
     
    27372738if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
    27382739  echo "$ac_t""yes" 1>&6
    2739   freebsd_problem=yes
    2740 else
    2741   echo "$ac_t""no" 1>&6
    2742 echo "*** no values.h";exit
     2740  freebsd_problem=yes
     2741                              no_values_h=no
     2742else
     2743  echo "$ac_t""no" 1>&6
     2744no_values_h=yes
     2745                              freebsd_problem=no
    27432746fi
    27442747
    27452748fi
    27462749 
    2747 if test "$freebsd_problem" != no; then
     2750if test "${freebsd_problem}" != no; then
    27482751  grep -v "#warning" /usr/include/values.h > ./values.h
    2749   cat > conftest.$ac_ext <<EOF
    2750 #line 2751 "configure"
     2752elif test "${no_values_h}" != no; then
     2753  cp ./values.h.subst ./values.h
     2754  cat > conftest.$ac_ext <<EOF
     2755#line 2756 "configure"
    27512756#include "confdefs.h"
    27522757#include "values.h" ,
     
    27542759EOF
    27552760ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2756 { (eval echo configure:2757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2761{ (eval echo configure:2762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    27572762ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    27582763if test -z "$ac_err"; then
     
    27692774ac_safe=`echo "fcntl.h" | sed 'y%./+-%__p_%'`
    27702775echo $ac_n "checking for fcntl.h""... $ac_c" 1>&6
    2771 echo "configure:2772: checking for fcntl.h" >&5
     2776echo "configure:2777: checking for fcntl.h" >&5
    27722777if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    27732778  echo $ac_n "(cached) $ac_c" 1>&6
    27742779else
    27752780  cat > conftest.$ac_ext <<EOF
    2776 #line 2777 "configure"
     2781#line 2782 "configure"
    27772782#include "confdefs.h"
    27782783#include <fcntl.h>
    27792784EOF
    27802785ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2781 { (eval echo configure:2782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2786{ (eval echo configure:2787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    27822787ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    27832788if test -z "$ac_err"; then
     
    28032808ac_safe=`echo "sys/ioctl.h" | sed 'y%./+-%__p_%'`
    28042809echo $ac_n "checking for sys/ioctl.h""... $ac_c" 1>&6
    2805 echo "configure:2806: checking for sys/ioctl.h" >&5
     2810echo "configure:2811: checking for sys/ioctl.h" >&5
    28062811if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    28072812  echo $ac_n "(cached) $ac_c" 1>&6
    28082813else
    28092814  cat > conftest.$ac_ext <<EOF
    2810 #line 2811 "configure"
     2815#line 2816 "configure"
    28112816#include "confdefs.h"
    28122817#include <sys/ioctl.h>
    28132818EOF
    28142819ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2815 { (eval echo configure:2816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2820{ (eval echo configure:2821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    28162821ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    28172822if test -z "$ac_err"; then
     
    28372842ac_safe=`echo "sys/param.h" | sed 'y%./+-%__p_%'`
    28382843echo $ac_n "checking for sys/param.h""... $ac_c" 1>&6
    2839 echo "configure:2840: checking for sys/param.h" >&5
     2844echo "configure:2845: checking for sys/param.h" >&5
    28402845if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    28412846  echo $ac_n "(cached) $ac_c" 1>&6
    28422847else
    28432848  cat > conftest.$ac_ext <<EOF
    2844 #line 2845 "configure"
     2849#line 2850 "configure"
    28452850#include "confdefs.h"
    28462851#include <sys/param.h>
    28472852EOF
    28482853ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2849 { (eval echo configure:2850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2854{ (eval echo configure:2855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    28502855ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    28512856if test -z "$ac_err"; then
     
    28712876ac_safe=`echo "sys/socket.h" | sed 'y%./+-%__p_%'`
    28722877echo $ac_n "checking for sys/socket.h""... $ac_c" 1>&6
    2873 echo "configure:2874: checking for sys/socket.h" >&5
     2878echo "configure:2879: checking for sys/socket.h" >&5
    28742879if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    28752880  echo $ac_n "(cached) $ac_c" 1>&6
    28762881else
    28772882  cat > conftest.$ac_ext <<EOF
    2878 #line 2879 "configure"
     2883#line 2884 "configure"
    28792884#include "confdefs.h"
    28802885#include <sys/socket.h>
    28812886EOF
    28822887ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2883 { (eval echo configure:2884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2888{ (eval echo configure:2889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    28842889ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    28852890if test -z "$ac_err"; then
     
    29052910ac_safe=`echo "sys/stat.h" | sed 'y%./+-%__p_%'`
    29062911echo $ac_n "checking for sys/stat.h""... $ac_c" 1>&6
    2907 echo "configure:2908: checking for sys/stat.h" >&5
     2912echo "configure:2913: checking for sys/stat.h" >&5
    29082913if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    29092914  echo $ac_n "(cached) $ac_c" 1>&6
    29102915else
    29112916  cat > conftest.$ac_ext <<EOF
    2912 #line 2913 "configure"
     2917#line 2918 "configure"
    29132918#include "confdefs.h"
    29142919#include <sys/stat.h>
    29152920EOF
    29162921ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2917 { (eval echo configure:2918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2922{ (eval echo configure:2923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    29182923ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    29192924if test -z "$ac_err"; then
     
    29392944ac_safe=`echo "sys/time.h" | sed 'y%./+-%__p_%'`
    29402945echo $ac_n "checking for sys/time.h""... $ac_c" 1>&6
    2941 echo "configure:2942: checking for sys/time.h" >&5
     2946echo "configure:2947: checking for sys/time.h" >&5
    29422947if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    29432948  echo $ac_n "(cached) $ac_c" 1>&6
    29442949else
    29452950  cat > conftest.$ac_ext <<EOF
    2946 #line 2947 "configure"
     2951#line 2952 "configure"
    29472952#include "confdefs.h"
    29482953#include <sys/time.h>
    29492954EOF
    29502955ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2951 { (eval echo configure:2952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2956{ (eval echo configure:2957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    29522957ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    29532958if test -z "$ac_err"; then
     
    29732978ac_safe=`echo "sys/types.h" | sed 'y%./+-%__p_%'`
    29742979echo $ac_n "checking for sys/types.h""... $ac_c" 1>&6
    2975 echo "configure:2976: checking for sys/types.h" >&5
     2980echo "configure:2981: checking for sys/types.h" >&5
    29762981if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    29772982  echo $ac_n "(cached) $ac_c" 1>&6
    29782983else
    29792984  cat > conftest.$ac_ext <<EOF
    2980 #line 2981 "configure"
     2985#line 2986 "configure"
    29812986#include "confdefs.h"
    29822987#include <sys/types.h>
    29832988EOF
    29842989ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2985 { (eval echo configure:2986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2990{ (eval echo configure:2991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    29862991ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    29872992if test -z "$ac_err"; then
     
    30073012ac_safe=`echo "sys/uio.h" | sed 'y%./+-%__p_%'`
    30083013echo $ac_n "checking for sys/uio.h""... $ac_c" 1>&6
    3009 echo "configure:3010: checking for sys/uio.h" >&5
     3014echo "configure:3015: checking for sys/uio.h" >&5
    30103015if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    30113016  echo $ac_n "(cached) $ac_c" 1>&6
    30123017else
    30133018  cat > conftest.$ac_ext <<EOF
    3014 #line 3015 "configure"
     3019#line 3020 "configure"
    30153020#include "confdefs.h"
    30163021#include <sys/uio.h>
    30173022EOF
    30183023ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    3019 { (eval echo configure:3020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     3024{ (eval echo configure:3025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    30203025ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    30213026if test -z "$ac_err"; then
     
    30413046ac_safe=`echo "sys/un.h" | sed 'y%./+-%__p_%'`
    30423047echo $ac_n "checking for sys/un.h""... $ac_c" 1>&6
    3043 echo "configure:3044: checking for sys/un.h" >&5
     3048echo "configure:3049: checking for sys/un.h" >&5
    30443049if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    30453050  echo $ac_n "(cached) $ac_c" 1>&6
    30463051else
    30473052  cat > conftest.$ac_ext <<EOF
    3048 #line 3049 "configure"
     3053#line 3054 "configure"
    30493054#include "confdefs.h"
    30503055#include <sys/un.h>
    30513056EOF
    30523057ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    3053 { (eval echo configure:3054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     3058{ (eval echo configure:3059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    30543059ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    30553060if test -z "$ac_err"; then
     
    30753080ac_safe=`echo "unistd.h" | sed 'y%./+-%__p_%'`
    30763081echo $ac_n "checking for unistd.h""... $ac_c" 1>&6
    3077 echo "configure:3078: checking for unistd.h" >&5
     3082echo "configure:3083: checking for unistd.h" >&5
    30783083if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    30793084  echo $ac_n "(cached) $ac_c" 1>&6
    30803085else
    30813086  cat > conftest.$ac_ext <<EOF
    3082 #line 3083 "configure"
     3087#line 3088 "configure"
    30833088#include "confdefs.h"
    30843089#include <unistd.h>
    30853090EOF
    30863091ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    3087 { (eval echo configure:3088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     3092{ (eval echo configure:3093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    30883093ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    30893094if test -z "$ac_err"; then
     
    31093114ac_safe=`echo "math.h" | sed 'y%./+-%__p_%'`
    31103115echo $ac_n "checking for math.h""... $ac_c" 1>&6
    3111 echo "configure:3112: checking for math.h" >&5
     3116echo "configure:3117: checking for math.h" >&5
    31123117if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    31133118  echo $ac_n "(cached) $ac_c" 1>&6
    31143119else
    31153120  cat > conftest.$ac_ext <<EOF
    3116 #line 3117 "configure"
     3121#line 3122 "configure"
    31173122#include "confdefs.h"
    31183123#include <math.h>
    31193124EOF
    31203125ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    3121 { (eval echo configure:3122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     3126{ (eval echo configure:3127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    31223127ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    31233128if test -z "$ac_err"; then
     
    31473152ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    31483153echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    3149 echo "configure:3150: checking for $ac_hdr" >&5
     3154echo "configure:3155: checking for $ac_hdr" >&5
    31503155if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    31513156  echo $ac_n "(cached) $ac_c" 1>&6
    31523157else
    31533158  cat > conftest.$ac_ext <<EOF
    3154 #line 3155 "configure"
     3159#line 3160 "configure"
    31553160#include "confdefs.h"
    31563161#include <$ac_hdr>
    31573162EOF
    31583163ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    3159 { (eval echo configure:3160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     3164{ (eval echo configure:3165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    31603165ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    31613166if test -z "$ac_err"; then
     
    31863191if test "$ac_cv_header_gmp_h" = yes; then
    31873192  cat > conftest.$ac_ext <<EOF
    3188 #line 3189 "configure"
     3193#line 3194 "configure"
    31893194#include "confdefs.h"
    31903195#include <gmp.h>
     
    31993204  if test ! "$MPZ_PTR" = mpz_ptr; then
    32003205    cat > conftest.$ac_ext <<EOF
    3201 #line 3202 "configure"
     3206#line 3207 "configure"
    32023207#include "confdefs.h"
    32033208#include <gmp.h>
     
    32283233  fi
    32293234  cat > conftest.$ac_ext <<EOF
    3230 #line 3231 "configure"
     3235#line 3236 "configure"
    32313236#include "confdefs.h"
    32323237#include <gmp.h>
     
    34733478
    34743479    echo $ac_n "checking for ulong""... $ac_c" 1>&6
    3475 echo "configure:3476: checking for ulong" >&5
     3480echo "configure:3481: checking for ulong" >&5
    34763481if eval "test \"`echo '$''{'ac_cv_type_ulong'+set}'`\" = set"; then
    34773482  echo $ac_n "(cached) $ac_c" 1>&6
    34783483else
    34793484  cat > conftest.$ac_ext <<EOF
    3480 #line 3481 "configure"
     3485#line 3486 "configure"
    34813486#include "confdefs.h"
    34823487#include <sys/types.h>
     
    35193524  ac_safe=`echo "TB.h" | sed 'y%./+-%__p_%'`
    35203525echo $ac_n "checking for TB.h""... $ac_c" 1>&6
    3521 echo "configure:3522: checking for TB.h" >&5
     3526echo "configure:3527: checking for TB.h" >&5
    35223527if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    35233528  echo $ac_n "(cached) $ac_c" 1>&6
    35243529else
    35253530  cat > conftest.$ac_ext <<EOF
    3526 #line 3527 "configure"
     3531#line 3532 "configure"
    35273532#include "confdefs.h"
    35283533#include <TB.h>
    35293534EOF
    35303535ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    3531 { (eval echo configure:3532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     3536{ (eval echo configure:3537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    35323537ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    35333538if test -z "$ac_err"; then
     
    35633568 ac_safe=`echo "pvm3.h" | sed 'y%./+-%__p_%'`
    35643569echo $ac_n "checking for pvm3.h""... $ac_c" 1>&6
    3565 echo "configure:3566: checking for pvm3.h" >&5
     3570echo "configure:3571: checking for pvm3.h" >&5
    35663571if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    35673572  echo $ac_n "(cached) $ac_c" 1>&6
    35683573else
    35693574  cat > conftest.$ac_ext <<EOF
    3570 #line 3571 "configure"
     3575#line 3576 "configure"
    35713576#include "confdefs.h"
    35723577#include <pvm3.h>
    35733578EOF
    35743579ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    3575 { (eval echo configure:3576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     3580{ (eval echo configure:3581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    35763581ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    35773582if test -z "$ac_err"; then
     
    36123617set dummy ${with_rsh}; ac_word=$2
    36133618echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    3614 echo "configure:3615: checking for $ac_word" >&5
     3619echo "configure:3620: checking for $ac_word" >&5
    36153620if eval "test \"`echo '$''{'ac_cv_prog_with_rsh'+set}'`\" = set"; then
    36163621  echo $ac_n "(cached) $ac_c" 1>&6
     
    36393644
    36403645  if test "$ac_cv_prog_with_rsh" = $with_rsh; then
    3641     ac_rsh_programs=${with_rsh}
     3646    mp_rsh_cmdline=${with_rsh}
    36423647  else
    3643    ac_rsh_programs=
     3648    mp_rsh_cmdline=no
    36443649  fi
    3645 fi
    3646 
    3647 
    3648 
    3649 # Extract the first word of "rsh", so it can be a program name with args.
     3650else
     3651  mp_rsh_cmdline=no
     3652fi
     3653
     3654if test "$mp_rsh_cmdline" = no; then
     3655  # Extract the first word of "ssh", so it can be a program name with args.
     3656set dummy ssh; ac_word=$2
     3657echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     3658echo "configure:3659: checking for $ac_word" >&5
     3659if eval "test \"`echo '$''{'ac_cv_prog_mp_ssh'+set}'`\" = set"; then
     3660  echo $ac_n "(cached) $ac_c" 1>&6
     3661else
     3662  if test -n "$mp_ssh"; then
     3663  ac_cv_prog_mp_ssh="$mp_ssh" # Let the user override the test.
     3664else
     3665  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     3666  ac_dummy="$PATH"
     3667  for ac_dir in $ac_dummy; do
     3668    test -z "$ac_dir" && ac_dir=.
     3669    if test -f $ac_dir/$ac_word; then
     3670      ac_cv_prog_mp_ssh="ssh"
     3671      break
     3672    fi
     3673  done
     3674  IFS="$ac_save_ifs"
     3675  test -z "$ac_cv_prog_mp_ssh" && ac_cv_prog_mp_ssh="no"
     3676fi
     3677fi
     3678mp_ssh="$ac_cv_prog_mp_ssh"
     3679if test -n "$mp_ssh"; then
     3680  echo "$ac_t""$mp_ssh" 1>&6
     3681else
     3682  echo "$ac_t""no" 1>&6
     3683fi
     3684
     3685  # Extract the first word of "remsh", so it can be a program name with args.
     3686set dummy remsh; ac_word=$2
     3687echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     3688echo "configure:3689: checking for $ac_word" >&5
     3689if eval "test \"`echo '$''{'ac_cv_prog_mp_remsh'+set}'`\" = set"; then
     3690  echo $ac_n "(cached) $ac_c" 1>&6
     3691else
     3692  if test -n "$mp_remsh"; then
     3693  ac_cv_prog_mp_remsh="$mp_remsh" # Let the user override the test.
     3694else
     3695  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     3696  ac_dummy="$PATH"
     3697  for ac_dir in $ac_dummy; do
     3698    test -z "$ac_dir" && ac_dir=.
     3699    if test -f $ac_dir/$ac_word; then
     3700      ac_cv_prog_mp_remsh="remsh"
     3701      break
     3702    fi
     3703  done
     3704  IFS="$ac_save_ifs"
     3705  test -z "$ac_cv_prog_mp_remsh" && ac_cv_prog_mp_remsh="no"
     3706fi
     3707fi
     3708mp_remsh="$ac_cv_prog_mp_remsh"
     3709if test -n "$mp_remsh"; then
     3710  echo "$ac_t""$mp_remsh" 1>&6
     3711else
     3712  echo "$ac_t""no" 1>&6
     3713fi
     3714
     3715  # Extract the first word of "rsh", so it can be a program name with args.
    36503716set dummy rsh; ac_word=$2
    36513717echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    3652 echo "configure:3653: checking for $ac_word" >&5
     3718echo "configure:3719: checking for $ac_word" >&5
    36533719if eval "test \"`echo '$''{'ac_cv_prog_mp_rsh'+set}'`\" = set"; then
    36543720  echo $ac_n "(cached) $ac_c" 1>&6
     
    36773743fi
    36783744
    3679 if test "$ac_cv_prog_mp_rsh" = rsh; then
    3680    ac_rsh_programs="$ac_rsh_programs rsh"
    3681 fi
    3682 
    3683 # Extract the first word of "remsh", so it can be a program name with args.
    3684 set dummy remsh; ac_word=$2
    3685 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    3686 echo "configure:3687: checking for $ac_word" >&5
    3687 if eval "test \"`echo '$''{'ac_cv_prog_mp_remsh'+set}'`\" = set"; then
    3688   echo $ac_n "(cached) $ac_c" 1>&6
    3689 else
    3690   if test -n "$mp_remsh"; then
    3691   ac_cv_prog_mp_remsh="$mp_remsh" # Let the user override the test.
    3692 else
    3693   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    3694   ac_dummy="$PATH"
    3695   for ac_dir in $ac_dummy; do
    3696     test -z "$ac_dir" && ac_dir=.
    3697     if test -f $ac_dir/$ac_word; then
    3698       ac_cv_prog_mp_remsh="remsh"
    3699       break
    3700     fi
    3701   done
    3702   IFS="$ac_save_ifs"
    3703   test -z "$ac_cv_prog_mp_remsh" && ac_cv_prog_mp_remsh="no"
    3704 fi
    3705 fi
    3706 mp_remsh="$ac_cv_prog_mp_remsh"
    3707 if test -n "$mp_remsh"; then
    3708   echo "$ac_t""$mp_remsh" 1>&6
    3709 else
    3710   echo "$ac_t""no" 1>&6
    3711 fi
    3712 
    3713 if test "$ac_cv_prog_mp_remsh" = remsh; then
    3714    ac_rsh_programs="$ac_rsh_programs remsh"
    3715 fi
    3716 
    3717 # Extract the first word of "ssh", so it can be a program name with args.
    3718 set dummy ssh; ac_word=$2
    3719 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    3720 echo "configure:3721: checking for $ac_word" >&5
    3721 if eval "test \"`echo '$''{'ac_cv_prog_mp_ssh'+set}'`\" = set"; then
    3722   echo $ac_n "(cached) $ac_c" 1>&6
    3723 else
    3724   if test -n "$mp_ssh"; then
    3725   ac_cv_prog_mp_ssh="$mp_ssh" # Let the user override the test.
    3726 else
    3727   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    3728   ac_dummy="$PATH"
    3729   for ac_dir in $ac_dummy; do
    3730     test -z "$ac_dir" && ac_dir=.
    3731     if test -f $ac_dir/$ac_word; then
    3732       ac_cv_prog_mp_ssh="ssh"
    3733       break
    3734     fi
    3735   done
    3736   IFS="$ac_save_ifs"
    3737   test -z "$ac_cv_prog_mp_ssh" && ac_cv_prog_mp_ssh="no"
    3738 fi
    3739 fi
    3740 mp_ssh="$ac_cv_prog_mp_ssh"
    3741 if test -n "$mp_ssh"; then
    3742   echo "$ac_t""$mp_ssh" 1>&6
    3743 else
    3744   echo "$ac_t""no" 1>&6
    3745 fi
    3746 
    3747 if test "$ac_cv_prog_mp_ssh" = ssh; then
    3748    ac_rsh_programs="$ac_rsh_programs ssh"
    3749 fi
    3750 
    3751 for mp_rsh in $ac_rsh_programs; do
    3752     echo $ac_n "checking whether $mp_rsh works""... $ac_c" 1>&6
    3753 echo "configure:3754: checking whether $mp_rsh works" >&5
    3754     if $mp_rsh `hostname` -n uname > /dev/null 2>&1; then
    3755       mp_rsh_found=$mp_rsh
    3756       echo "$ac_t""yes" 1>&6
    3757       break;
    3758     elif $mp_rsh localhost -n uname > /dev/null 2>&1; then
    3759       mp_rsh_found=$mp_rsh
    3760       echo "$ac_t""yes" 1>&6
    3761       break;
    3762     else
    3763       mp_rsh_found=none
    3764       echo "$ac_t""no" 1>&6
    3765     fi
    3766 done
    3767 if test "${mp_rsh_found}" = none; then
    3768    echo "configure: warning: "No working remote shell command found"" 1>&2
     3745  if test "$ac_cv_prog_mp_ssh" = ssh; then
     3746     mp_rsh_found=ssh
     3747  elif test "$ac_cv_prog_mp_remsh" = remsh; then
     3748     mp_rsh_found=remsh
     3749  elif test "$ac_cv_prog_mp_rsh" = rsh; then
     3750     mp_rsh_found=rsh
     3751  else
     3752     mp_rsh_found=no
     3753  fi
     3754else
     3755  mp_rsh_found=${mp_rsh_cmdline}
     3756fi
     3757
     3758echo $ac_n "checking which remote shell command to use""... $ac_c" 1>&6
     3759echo "configure:3760: checking which remote shell command to use" >&5
     3760echo "$ac_t""${mp_rsh_found}" 1>&6
     3761
     3762if test "$mp_rsh_found" = no; then
     3763   echo "configure: warning: "No remote shell command found"" 1>&2
    37693764else
    37703765  cat >> confdefs.h <<EOF
     
    37723767EOF
    37733768
    3774    # check whether it alsow works with localhost, instead of hostname
    3775    if $mp_rsh localhost -n uname  > /dev/null 2>&1; then
    3776      cat >> confdefs.h <<\EOF
    3777 #define RSH_CAN_LOCALHOST 1
    3778 EOF
    3779 
    3780    fi
     3769   # check whether it also works with localhost, instead of hostname
     3770   #if $mp_rsh localhost -n uname  > /dev/null 2>&1; then
     3771   #  AC_DEFINE(RSH_CAN_LOCALHOST)
     3772   #fi
    37813773fi
    37823774
     
    37933785  ac_safe=`echo "${with_malloc}" | sed 'y%./+-%__p_%'`
    37943786echo $ac_n "checking for ${with_malloc}""... $ac_c" 1>&6
    3795 echo "configure:3796: checking for ${with_malloc}" >&5
     3787echo "configure:3788: checking for ${with_malloc}" >&5
    37963788if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    37973789  echo $ac_n "(cached) $ac_c" 1>&6
    37983790else
    37993791  cat > conftest.$ac_ext <<EOF
    3800 #line 3801 "configure"
     3792#line 3793 "configure"
    38013793#include "confdefs.h"
    38023794#include <${with_malloc}>
    38033795EOF
    38043796ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    3805 { (eval echo configure:3806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     3797{ (eval echo configure:3798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    38063798ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    38073799if test -z "$ac_err"; then
     
    38273819fi
    38283820echo $ac_n "checking where malloc rotuines come from""... $ac_c" 1>&6
    3829 echo "configure:3830: checking where malloc rotuines come from" >&5
     3821echo "configure:3822: checking where malloc rotuines come from" >&5
    38303822if test "${with_malloc+set}" = set; then
    38313823  echo "$ac_t""${with_malloc}" 1>&6
     
    38443836
    38453837echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
    3846 echo "configure:3847: checking whether byte ordering is bigendian" >&5
     3838echo "configure:3839: checking whether byte ordering is bigendian" >&5
    38473839if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
    38483840  echo $ac_n "(cached) $ac_c" 1>&6
     
    38513843# See if sys/param.h defines the BYTE_ORDER macro.
    38523844cat > conftest.$ac_ext <<EOF
    3853 #line 3854 "configure"
     3845#line 3846 "configure"
    38543846#include "confdefs.h"
    38553847#include <sys/types.h>
     
    38623854; return 0; }
    38633855EOF
    3864 if { (eval echo configure:3865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3856if { (eval echo configure:3857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    38653857  rm -rf conftest*
    38663858  # It does; now see whether it defined to BIG_ENDIAN or not.
    38673859cat > conftest.$ac_ext <<EOF
    3868 #line 3869 "configure"
     3860#line 3861 "configure"
    38693861#include "confdefs.h"
    38703862#include <sys/types.h>
     
    38773869; return 0; }
    38783870EOF
    3879 if { (eval echo configure:3880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3871if { (eval echo configure:3872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    38803872  rm -rf conftest*
    38813873  ac_cv_c_bigendian=yes
     
    38973889else
    38983890  cat > conftest.$ac_ext <<EOF
    3899 #line 3900 "configure"
     3891#line 3892 "configure"
    39003892#include "confdefs.h"
    39013893main () {
     
    39103902}
    39113903EOF
    3912 if { (eval echo configure:3913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3904if { (eval echo configure:3905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    39133905then
    39143906  ac_cv_c_bigendian=no
     
    39343926
    39353927echo $ac_n "checking for working const""... $ac_c" 1>&6
    3936 echo "configure:3937: checking for working const" >&5
     3928echo "configure:3929: checking for working const" >&5
    39373929if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    39383930  echo $ac_n "(cached) $ac_c" 1>&6
    39393931else
    39403932  cat > conftest.$ac_ext <<EOF
    3941 #line 3942 "configure"
     3933#line 3934 "configure"
    39423934#include "confdefs.h"
    39433935
     
    39883980; return 0; }
    39893981EOF
    3990 if { (eval echo configure:3991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3982if { (eval echo configure:3983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    39913983  rm -rf conftest*
    39923984  ac_cv_c_const=yes
     
    40094001
    40104002echo $ac_n "checking for size_t""... $ac_c" 1>&6
    4011 echo "configure:4012: checking for size_t" >&5
     4003echo "configure:4004: checking for size_t" >&5
    40124004if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
    40134005  echo $ac_n "(cached) $ac_c" 1>&6
    40144006else
    40154007  cat > conftest.$ac_ext <<EOF
    4016 #line 4017 "configure"
     4008#line 4009 "configure"
    40174009#include "confdefs.h"
    40184010#include <sys/types.h>
     
    40424034
    40434035echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
    4044 echo "configure:4045: checking whether time.h and sys/time.h may both be included" >&5
     4036echo "configure:4037: checking whether time.h and sys/time.h may both be included" >&5
    40454037if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
    40464038  echo $ac_n "(cached) $ac_c" 1>&6
    40474039else
    40484040  cat > conftest.$ac_ext <<EOF
    4049 #line 4050 "configure"
     4041#line 4042 "configure"
    40504042#include "confdefs.h"
    40514043#include <sys/types.h>
     
    40564048; return 0; }
    40574049EOF
    4058 if { (eval echo configure:4059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     4050if { (eval echo configure:4051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    40594051  rm -rf conftest*
    40604052  ac_cv_header_time=yes
     
    40784070
    40794071echo $ac_n "checking size of long""... $ac_c" 1>&6
    4080 echo "configure:4081: checking size of long" >&5
     4072echo "configure:4073: checking size of long" >&5
    40814073if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
    40824074  echo $ac_n "(cached) $ac_c" 1>&6
     
    40864078else
    40874079  cat > conftest.$ac_ext <<EOF
    4088 #line 4089 "configure"
     4080#line 4081 "configure"
    40894081#include "confdefs.h"
    40904082#include <stdio.h>
     
    40974089}
    40984090EOF
    4099 if { (eval echo configure:4100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     4091if { (eval echo configure:4092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    41004092then
    41014093  ac_cv_sizeof_long=`cat conftestval`
     
    42994291s%@NEED_LIBS@%$NEED_LIBS%g
    43004292s%@with_rsh@%$with_rsh%g
     4293s%@mp_ssh@%$mp_ssh%g
     4294s%@mp_remsh@%$mp_remsh%g
    43014295s%@mp_rsh@%$mp_rsh%g
    4302 s%@mp_remsh@%$mp_remsh%g
    4303 s%@mp_ssh@%$mp_ssh%g
    43044296s%@CLEAN@%$CLEAN%g
    43054297s%@subdirs@%$subdirs%g
  • MP/configure.in

    rd2f3863 r3824e90  
    1 dnl
     1onl
    22dnl Written by Olaf Bachmann (obachman@mathematik.uni-kl.de)
    33dnl
     
    231231dnl Wrong preprocessor statement in /usr/include/values.h causes
    232232dnl problems on FreeBSD
    233 AC_HEADER_CHECK(values.h, freebsd_problem=no,
    234                 AC_CHECK_FILE(/usr/include/values.h,freebsd_problem=yes,
    235                               echo "*** no values.h";exit))
    236 if test "$freebsd_problem" != no; then
     233AC_HEADER_CHECK(values.h, freebsd_problem=no
     234                          no_values_h=no,
     235                AC_CHECK_FILE(/usr/include/values.h,
     236                              freebsd_problem=yes
     237                              no_values_h=no,
     238                              no_values_h=yes
     239                              freebsd_problem=no))
     240if test "${freebsd_problem}" != no; then
    237241  grep -v "#warning" /usr/include/values.h > ./values.h
     242elif test "${no_values_h}" != no; then
     243  cp ./values.h.subst ./values.h
    238244  AC_TRY_CPP( #include "values.h" ,
    239245              CPPFLAGS="-I. ${CPPFLAGS}",
     
    430436  AC_CHECK_PROG(with_rsh, ${with_rsh}, ${with_rsh})
    431437  if test "$ac_cv_prog_with_rsh" = $with_rsh; then
    432     ac_rsh_programs=${with_rsh}
    433   else
    434    ac_rsh_programs=
    435   fi
    436 fi
    437 
    438 
    439 
    440 AC_CHECK_PROG(mp_rsh, rsh, rsh, no)
    441 if test "$ac_cv_prog_mp_rsh" = rsh; then
    442    ac_rsh_programs="$ac_rsh_programs rsh"
    443 fi
    444 
    445 AC_CHECK_PROG(mp_remsh, remsh, remsh, no)
    446 if test "$ac_cv_prog_mp_remsh" = remsh; then
    447    ac_rsh_programs="$ac_rsh_programs remsh"
    448 fi
    449 
    450 AC_CHECK_PROG(mp_ssh, ssh, ssh, no)
    451 if test "$ac_cv_prog_mp_ssh" = ssh; then
    452    ac_rsh_programs="$ac_rsh_programs ssh"
    453 fi
    454 
    455 for mp_rsh in $ac_rsh_programs; do
    456     AC_MSG_CHECKING(whether $mp_rsh works)
    457     if $mp_rsh `hostname` -n uname > /dev/null 2>&1; then
    458       mp_rsh_found=$mp_rsh
    459       AC_MSG_RESULT(yes, with hostname)
    460       break;
    461     elif $mp_rsh localhost -n uname > /dev/null 2>&1; then
    462       mp_rsh_found=$mp_rsh
    463       AC_MSG_RESULT(yes, with localhost)
    464       break;
    465     else
    466       mp_rsh_found=none
    467       AC_MSG_RESULT(no)
    468     fi
    469 done
    470 if test "${mp_rsh_found}" = none; then
    471    AC_MSG_WARN("No working remote shell command found")
     438    mp_rsh_cmdline=${with_rsh}
     439  else
     440    mp_rsh_cmdline=no
     441  fi
     442else
     443  mp_rsh_cmdline=no
     444fi
     445
     446if test "$mp_rsh_cmdline" = no; then
     447  AC_CHECK_PROG(mp_ssh, ssh, ssh, no)
     448  AC_CHECK_PROG(mp_remsh, remsh, remsh, no)
     449  AC_CHECK_PROG(mp_rsh, rsh, rsh, no)
     450  if test "$ac_cv_prog_mp_ssh" = ssh; then
     451     mp_rsh_found=ssh
     452  elif test "$ac_cv_prog_mp_remsh" = remsh; then
     453     mp_rsh_found=remsh
     454  elif test "$ac_cv_prog_mp_rsh" = rsh; then
     455     mp_rsh_found=rsh
     456  else
     457     mp_rsh_found=no
     458  fi
     459else
     460  mp_rsh_found=${mp_rsh_cmdline}
     461fi
     462
     463AC_MSG_CHECKING(which remote shell command to use)
     464AC_MSG_RESULT(${mp_rsh_found})
     465
     466if test "$mp_rsh_found" = no; then
     467   AC_MSG_WARN("No remote shell command found")
    472468else
    473469  AC_DEFINE_UNQUOTED(MP_RSH_COMMAND, "$mp_rsh_found")
    474    # check whether it alsow works with localhost, instead of hostname
    475    if $mp_rsh localhost -n uname  > /dev/null 2>&1; then
    476      AC_DEFINE(RSH_CAN_LOCALHOST)
    477    fi
     470   # check whether it also works with localhost, instead of hostname
     471   #if $mp_rsh localhost -n uname  > /dev/null 2>&1; then
     472   #  AC_DEFINE(RSH_CAN_LOCALHOST)
     473   #fi
    478474fi
    479475
Note: See TracChangeset for help on using the changeset viewer.