Changeset dc32d42 in git
- Timestamp:
- May 21, 1997, 3:05:36 PM (26 years ago)
- Branches:
- (u'spielwiese', '91e5db82acc17434e4062bcfa44e6efa7d41fd30')
- Children:
- 2b3f238c740deb3d586dc1d5b379ddadb848cbaa
- Parents:
- 670667a17a4a8423dbd6c8e3749cc652102fb28a
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ChangeLog
r670667 rdc32d42 2 2 subexpr.cc: implemented sleftv::Copy for ring/qring 3 3 syz1.cc: added missing idSkipZeros to LaScala* 4 5 Tue May 13 11:32:41 1997 Olaf Bachmann <obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)> 6 7 * claptmpl.cc: changed template initializiation of libfac, so that 8 class.cc and tmpl_inst.h does not need to be included 9 10 Mon May 12 16:48:14 1997 Olaf Bachmann <obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)> 11 12 * misc.cc: Added / to Help_File and Info_File 13 14 Wed May 21 08:56:19 1997 Olaf Bachmann <obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)> 15 16 * tesths.cc (main): made -v option gmp v1.3 clean 17 18 Tue May 20 14:02:42 1997 Olaf Bachmann <obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)> 19 20 * misc.cc: Put #include <factory.h> into #ifdef HAVE_FACTORY brackets 21 22 * hannes: ipshell.cc: fixed a bug in iiExport (multiple exports in rings) 23 subexpr.cc: implemented sleftv::Copy for ring/qring 24 syz1.cc: added missing idSkipZeros to LaScala* 25 26 Wed May 14 16:40:19 1997 Olaf Bachmann <obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)> 27 28 * Makefile.in: changed mpcheck.data so that the brain-dead sed on 29 the suns does not mess up the output on files with long lines 4 30 5 31 Tue May 13 11:32:41 1997 Olaf Bachmann <obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)> -
Singular/Makefile.in
r670667 rdc32d42 45 45 CFLAGS = @CFLAGS@ 46 46 CXXFLAGS = @CXXFLAGS@ 47 CXXNOOPTFLAGS = @CXXNOOPTFLAGS@ 47 48 CXXTEMPLFLAGS = @CXXTEMPLFLAGS@ 48 49 CPPFLAGS = -I${srcdir} @CPPFLAGS@ … … 161 162 tesths.cc iparith.o mpsr_Tok.o ${OBJS} ${LDFLAGS} ${LIBS} 162 163 163 iparith.o mpsr_Tok.o : iparith.inc 164 iparith.o mpsr_Tok.o : iparith.inc mpsr_Tok.inc 164 165 165 166 claptmpl.o: claptmpl.cc mod2.h 166 167 ${CXX} ${CXXFLAGS} ${CPPFLAGS} ${DEFS} -c $< 168 169 weight.o: weight.cc mod2.h 170 ${CXX} ${CXXNOOPTFLAGS} ${CPPFLAGS} ${DEFS} -c $< 167 171 168 iparith.inc : iparith.cc ipconv.cc tok.h mpsr_Tok.cc grammar.h172 iparith.inc mpsr_Tok.inc : iparith.cc ipconv.cc tok.h mpsr_Tok.cc grammar.h 169 173 ${CXX} ${CXXFLAGS} ${CPPFLAGS} ${DEFS} -DGENTABLE -o gentable \ 170 174 iparith.cc tesths.cc mpsr_Tok.cc ${OBJS} ${LDFLAGS} ${LIBS} -
Singular/claptmpl.cc
r670667 rdc32d42 3 3 * Computer Algebra System SINGULAR * 4 4 ****************************************/ 5 // $Id: claptmpl.cc,v 1. 7 1997-05-20 08:52:02 SingularExp $5 // $Id: claptmpl.cc,v 1.8 1997-05-21 13:05:09 obachman Exp $ 6 6 /* 7 7 * ABSTRACT - instantiation of all templates … … 54 54 55 55 #ifdef HAVE_LIBFAC_P 56 #include <templates/tmpl_inst.h> 57 #include <templates/class.cc> 56 #include <factor.h> 57 58 // class.h: 59 template <class T> 60 class Substitution { 61 private: 62 T _factor; 63 T _exp; 64 public: 65 Substitution() : _factor(1), _exp(0) {} 66 Substitution( const Substitution<T> & f ) : _factor(f._factor), _exp(f._exp) {} 67 Substitution( const T & f, const T & e ) : _factor(f), _exp(e) {} 68 Substitution( const T & f ) : _factor(f), _exp(1) {} 69 ~Substitution() {} 70 Substitution<T>& operator= ( const Substitution<T>& ); 71 Substitution<T>& operator= ( const T& ); 72 T factor() const { return _factor; } 73 T exp() const { return _exp; } 74 friend int operator== ( const Substitution<T>&, const Substitution<T>& ); 75 }; 76 77 // class.cc 78 template <class T> 79 Substitution<T>& Substitution<T>::operator= ( const Substitution<T>& f ) 80 { 81 if ( this != &f ) { 82 _factor = f._factor; 83 _exp = f._exp; 84 } 85 return *this; 86 } 87 88 template <class T> 89 Substitution<T>& Substitution<T>::operator= ( const T & f ) 90 { 91 _factor = f; 92 _exp = 1; 93 return *this; 94 } 95 96 template <class T> 97 int operator== ( const Substitution<T> &f1, const Substitution<T> &f2 ) 98 { 99 return (f1.exp() == f2.exp()) && (f1.factor() == f2.factor()); 100 } 58 101 59 102 template class List<int>; … … 66 109 template class Array<Variable>; 67 110 template class Array<int>; 111 typedef Substitution<CanonicalForm> SForm ; 68 112 template class List<SForm>; 69 113 template class ListIterator<SForm>; -
Singular/configure
r670667 rdc32d42 3154 3154 3155 3155 3156 echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6 3157 if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then 3158 echo $ac_n "(cached) $ac_c" 1>&6 3159 else 3160 cat > conftest.$ac_ext <<EOF 3161 #line 3162 "configure" 3162 #include "confdefs.h" 3163 #ifdef _AIX 3164 yes 3165 #endif 3166 3167 EOF 3168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3169 egrep "yes" >/dev/null 2>&1; then 3170 rm -rf conftest* 3171 ac_cv_is_aix=yes 3172 else 3173 rm -rf conftest* 3174 ac_cv_is_aix=no 3175 fi 3176 rm -f conftest* 3177 3178 fi 3179 3180 if test "$ac_cv_is_aix" = yes; then 3181 echo "$ac_t""yes" 1>&6 3182 else 3183 echo "$ac_t""no" 1>&6 3184 fi 3185 3186 3156 3187 if test ${GXX} = yes; then 3157 3188 CXXFLAGS="-O3 -w -fomit-frame-pointer" 3158 3189 CXXTEMPLFLAGS="-fno-implicit-templates" 3190 if test "$ac_cv_is_aix" = yes; then 3191 CXXNOOPTFLAGS="-O -w -fomit-frame-pointer" 3192 else 3193 CXXNOOPTFLAGS=$CXXFLAGS 3194 fi 3159 3195 else 3160 3196 CXXTEMPFLAGS="" 3161 fi 3197 CXXNOOPTFLAGS=$CXXFLAGS 3198 fi 3199 3162 3200 3163 3201 … … 3297 3335 s%@ALLOCA@%$ALLOCA%g 3298 3336 s%@CXXTEMPLFLAGS@%$CXXTEMPLFLAGS%g 3337 s%@CXXNOOPTFLAGS@%$CXXNOOPTFLAGS%g 3299 3338 3300 3339 CEOF -
Singular/configure.in
r670667 rdc32d42 394 394 dnl Last, but not least, customize CFLAGS 395 395 dnl 396 AC_MSG_CHECKING(whether _AIX is defined) 397 AC_CACHE_VAL(ac_cv_is_aix, 398 AC_EGREP_CPP(yes, 399 [#ifdef _AIX 400 yes 401 #endif 402 ], ac_cv_is_aix=yes, ac_cv_is_aix=no, 1)) 403 if test "$ac_cv_is_aix" = yes; then 404 AC_MSG_RESULT(yes) 405 else 406 AC_MSG_RESULT(no) 407 fi 408 409 396 410 if test ${GXX} = yes; then 397 411 CXXFLAGS="-O3 -w -fomit-frame-pointer" 398 412 CXXTEMPLFLAGS="-fno-implicit-templates" 413 if test "$ac_cv_is_aix" = yes; then 414 CXXNOOPTFLAGS="-O -w -fomit-frame-pointer" 415 else 416 CXXNOOPTFLAGS=$CXXFLAGS 417 fi 399 418 else 400 419 CXXTEMPFLAGS="" 420 CXXNOOPTFLAGS=$CXXFLAGS 401 421 fi 402 422 AC_SUBST(CXXTEMPLFLAGS) 423 AC_SUBST(CXXNOOPTFLAGS) 403 424 404 425 if test ${GCC} = yes; then -
Singular/ideals.cc
r670667 rdc32d42 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ideals.cc,v 1. 6 1997-05-02 15:10:13 SingularExp $ */4 /* $Id: ideals.cc,v 1.7 1997-05-21 13:05:12 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT - all basic methods to manipulate ideals … … 2920 2920 if (idIs0(arg)) return idInit(1,arg->rank); 2921 2921 2922 int i,j,k =0,pC;2922 int i,j,k,pC; 2923 2923 poly p,q; 2924 2924 int rg=arg->rank; 2925 ideal res = id Init(IDELEMS(arg),rg);2925 ideal res = idCopy(arg); 2926 2926 intvec *indexMap=new intvec(rg+1); 2927 2927 intvec *toKill=new intvec(rg+1); 2928 2928 2929 for (i=indexMap->length()-1;i>0;i--) 2930 (*indexMap)[i] = i; 2931 for (j=IDELEMS(arg)-1;j>=0;j--) 2932 { 2933 if (arg->m[j]!=NULL) 2934 { 2935 if ((pIsConstantComp(arg->m[j])) && (pNext(arg->m[j])==NULL)) 2936 { 2937 pC = pGetComp(arg->m[j]); 2929 loop 2930 { 2931 k = 0; 2932 for (i=indexMap->length()-1;i>0;i--) 2933 { 2934 (*indexMap)[i] = i; 2935 (*toKill)[i] = 0; 2936 } 2937 for (j=IDELEMS(res)-1;j>=0;j--) 2938 { 2939 if ((res->m[j]!=NULL) && (pIsConstantComp(res->m[j])) && 2940 (pNext(res->m[j])==NULL)) 2941 { 2942 pC = pGetComp(res->m[j]); 2938 2943 if ((*toKill)[pC]==0) 2939 2944 { … … 2943 2948 (*indexMap)[i]--; 2944 2949 } 2945 } 2946 else 2947 { 2948 res->m[k] = pCopy(arg->m[j]); 2950 pDelete(&(res->m[j])); 2949 2951 k++; 2950 2952 } 2951 2953 } 2952 }2953 if (rg>0)2954 {2955 res->rank=rg;2956 for (j=IDELEMS(res)-1;j>=0;j--)2957 {2958 while ((res->m[j]!=NULL) && ((*toKill)[pGetComp(res->m[j])]==1))2959 pDelete1(&res->m[j]);2960 p = res->m[j];2961 while ((p!=NULL) && (pNext(p)!=NULL))2962 {2963 pSetComp(p,(*indexMap)[pGetComp(p)]);2964 while ((pNext(p)!=NULL) && ((*toKill)[pGetComp(pNext(p))]==1))2965 pDelete1(&pNext(p));2966 pIter(p);2967 }2968 if (p!=NULL) pSetComp(p,(*indexMap)[pGetComp(p)]);2969 }2970 2954 idSkipZeroes(res); 2971 } 2972 else 2973 { 2974 idDelete(&res); 2975 res=idFreeModule(1); 2955 if (k==0) break; 2956 if (rg>0) 2957 { 2958 res->rank=rg; 2959 for (j=IDELEMS(res)-1;j>=0;j--) 2960 { 2961 while ((res->m[j]!=NULL) && ((*toKill)[pGetComp(res->m[j])]==1)) 2962 pDelete1(&res->m[j]); 2963 p = res->m[j]; 2964 while ((p!=NULL) && (pNext(p)!=NULL)) 2965 { 2966 pSetComp(p,(*indexMap)[pGetComp(p)]); 2967 while ((pNext(p)!=NULL) && ((*toKill)[pGetComp(pNext(p))]==1)) 2968 pDelete1(&pNext(p)); 2969 pIter(p); 2970 } 2971 if (p!=NULL) pSetComp(p,(*indexMap)[pGetComp(p)]); 2972 } 2973 idSkipZeroes(res); 2974 } 2975 else 2976 { 2977 idDelete(&res); 2978 res=idFreeModule(1); 2979 break; 2980 } 2976 2981 } 2977 2982 delete toKill; -
Singular/kutil.cc
r670667 rdc32d42 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kutil.cc,v 1. 4 1997-04-08 16:49:21 SingularExp $ */4 /* $Id: kutil.cc,v 1.5 1997-05-21 13:05:13 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: kernel: utils for std … … 3351 3351 strat->posInT = posInT0; 3352 3352 } 3353 if (TEST_OPT_NOTREGULARITY) strat->posInL =posInLSpecial;3353 //if (strat->minim>0) strat->posInL =posInLSpecial; 3354 3354 } 3355 3355 else … … 3366 3366 } 3367 3367 } 3368 if (strat->minim>0) strat->posInL =posInLSpecial; 3368 3369 // for further tests only 3369 3370 if ((BTEST1(11)) || (BTEST1(12))) -
Singular/misc.cc
r670667 rdc32d42 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: misc.cc,v 1.1 3 1997-05-20 08:52:10 SingularExp $ */4 /* $Id: misc.cc,v 1.14 1997-05-21 13:05:15 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: … … 33 33 #include "intvec.h" 34 34 #define SI_DONT_HAVE_GLOBAL_VARS 35 36 #ifdef HAVE_FACTORY 35 37 #include <factory.h> 38 #endif 36 39 37 40 /*0 implementation*/ … … 180 183 #define HELP_NOT_FOUND 2 181 184 #ifndef macintosh 182 #define Index_File SINGULAR_INFODIR " singular.hlp"183 #define Help_File SINGULAR_INFODIR " singular.hlp"185 #define Index_File SINGULAR_INFODIR "/singular.hlp" 186 #define Help_File SINGULAR_INFODIR "/singular.hlp" 184 187 #else 185 188 #define Index_File "singular.hlp" -
Singular/mpsr_Tok.cc
r670667 rdc32d42 3 3 ****************************************/ 4 4 5 /* $Id: mpsr_Tok.cc,v 1. 8 1997-05-02 22:09:29obachman Exp $ */5 /* $Id: mpsr_Tok.cc,v 1.9 1997-05-21 13:05:15 obachman Exp $ */ 6 6 7 7 /*************************************************************** … … 567 567 #endif // GENTABLE 568 568 569 #else // NOT HAVE_MPSR 570 571 #ifdef GENTABLE 572 573 // simply touch mpsr_Tok.inc so that Make does not get confused 574 #ifndef macintosh 575 extern "C" int system(char *); 576 #else 577 #include <stdio.h> 578 #endif 579 580 void mpsr_ttGen() 581 { 582 #ifndef macintosh 583 system("touch mpsr_Tok.inc"); 584 #else 585 FILE fd = fopen("mpsr_Tok.inc", "w"); 586 close(fd); 587 #endif 588 } 589 #endif 590 569 591 #endif // HAVE_MPSR -
Singular/tesths.cc
r670667 rdc32d42 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: tesths.cc,v 1.1 4 1997-05-20 08:52:11 SingularExp $ */4 /* $Id: tesths.cc,v 1.15 1997-05-21 13:05:16 obachman Exp $ */ 5 5 6 6 /* … … 59 59 extern ttGen1(); 60 60 extern ttGen2(); 61 #ifdef HAVE_MPSR62 61 extern mpsr_ttGen(); // For initialization of (CMD, MP_COP) tables 63 62 mpsr_ttGen(); 64 #endif65 63 ttGen1(); 66 64 ttGen2(); … … 153 151 #endif 154 152 #ifdef HAVE_GMP 153 #if defined (__GNU_MP_VERSION) && defined (__GNU_MP_VERSION_MINOR) 155 154 printf("\tGMP(%d.%d),\n",__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR); 155 #else 156 printf("\tGMP(1.3),\n"); 157 #endif 156 158 #endif 157 159 #ifdef HAVE_DBM -
configure
r670667 rdc32d42 874 874 fi 875 875 876 echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6 877 if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then 878 echo $ac_n "(cached) $ac_c" 1>&6 879 else 880 cat > conftest.$ac_ext <<EOF 881 #line 882 "configure" 882 #include "confdefs.h" 883 #ifdef _AIX 884 yes 885 #endif 886 887 EOF 888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 889 egrep "yes" >/dev/null 2>&1; then 890 rm -rf conftest* 891 ac_cv_is_aix=yes 892 else 893 rm -rf conftest* 894 ac_cv_is_aix=no 895 fi 896 rm -f conftest* 897 898 fi 899 900 if test "$ac_cv_is_aix" = yes; then 901 echo "$ac_t""yes" 1>&6 902 else 903 echo "$ac_t""no" 1>&6 904 fi 876 905 877 906 … … 884 913 LIBS="-lm $LIBS" 885 914 cat > conftest.$ac_ext <<EOF 886 #line 887"configure"915 #line 916 "configure" 887 916 #include "confdefs.h" 888 917 /* Override any gcc2 internal prototype to avoid an error. */ … … 894 923 ; return 0; } 895 924 EOF 896 if { (eval echo configure: 897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then925 if { (eval echo configure:926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 897 926 rm -rf conftest* 898 927 eval "ac_cv_lib_$ac_lib_var=yes" … … 926 955 LIBS="-lgmp $LIBS" 927 956 cat > conftest.$ac_ext <<EOF 928 #line 9 29"configure"957 #line 958 "configure" 929 958 #include "confdefs.h" 930 959 /* Override any gcc2 internal prototype to avoid an error. */ … … 936 965 ; return 0; } 937 966 EOF 938 if { (eval echo configure:9 39: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then967 if { (eval echo configure:968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 939 968 rm -rf conftest* 940 969 eval "ac_cv_lib_$ac_lib_var=yes" … … 968 997 LIBS="-lMP $LIBS" 969 998 cat > conftest.$ac_ext <<EOF 970 #line 971"configure"999 #line 1000 "configure" 971 1000 #include "confdefs.h" 972 1001 /* Override any gcc2 internal prototype to avoid an error. */ … … 978 1007 ; return 0; } 979 1008 EOF 980 if { (eval echo configure: 981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1009 if { (eval echo configure:1010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 981 1010 rm -rf conftest* 982 1011 eval "ac_cv_lib_$ac_lib_var=yes" … … 1010 1039 LIBS="-lMPT $LIBS" 1011 1040 cat > conftest.$ac_ext <<EOF 1012 #line 10 13"configure"1041 #line 1042 "configure" 1013 1042 #include "confdefs.h" 1014 1043 /* Override any gcc2 internal prototype to avoid an error. */ … … 1020 1049 ; return 0; } 1021 1050 EOF 1022 if { (eval echo configure:10 23: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1051 if { (eval echo configure:1052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1023 1052 rm -rf conftest* 1024 1053 eval "ac_cv_lib_$ac_lib_var=yes" … … 1052 1081 LIBS="-lsingcf $LIBS" 1053 1082 cat > conftest.$ac_ext <<EOF 1054 #line 10 55"configure"1083 #line 1084 "configure" 1055 1084 #include "confdefs.h" 1056 1085 /* Override any gcc2 internal prototype to avoid an error. */ … … 1062 1091 ; return 0; } 1063 1092 EOF 1064 if { (eval echo configure:10 65: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1093 if { (eval echo configure:1094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1065 1094 rm -rf conftest* 1066 1095 eval "ac_cv_lib_$ac_lib_var=yes" … … 1094 1123 LIBS="-lsingfac $LIBS" 1095 1124 cat > conftest.$ac_ext <<EOF 1096 #line 1 097"configure"1125 #line 1126 "configure" 1097 1126 #include "confdefs.h" 1098 1127 /* Override any gcc2 internal prototype to avoid an error. */ … … 1104 1133 ; return 0; } 1105 1134 EOF 1106 if { (eval echo configure:11 07: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1135 if { (eval echo configure:1136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1107 1136 rm -rf conftest* 1108 1137 eval "ac_cv_lib_$ac_lib_var=yes" … … 1137 1166 else 1138 1167 cat > conftest.$ac_ext <<EOF 1139 #line 11 40"configure"1168 #line 1169 "configure" 1140 1169 #include "confdefs.h" 1141 1170 #include <$ac_hdr> 1142 1171 EOF 1143 1172 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1144 { (eval echo configure:11 45: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1173 { (eval echo configure:1174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1145 1174 ac_err=`grep -v '^ *+' conftest.out` 1146 1175 if test -z "$ac_err"; then … … 1169 1198 if test "$ac_cv_lib_gmp_mpz_init" = yes && \ 1170 1199 test "$ac_cv_header_gmp_h" = yes; then 1171 if echo $target_os | egrep aix; then1172 cat > conftest.$ac_ext <<EOF1173 #line 1174 "configure"1174 #include "confdefs.h"1175 \1176 #include <gmp.h>1177 #if defined(__GNU_MP_VERSION) && __GNU_MP_VERSION == 21178 no1179 #else1180 yes1181 #endif1182 1183 EOF1184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |1185 egrep "yes" >/dev/null 2>&1; then1186 rm -rf conftest*1187 ac_gmp_ok=yes1188 else1189 rm -rf conftest*1190 echo "configure: warning: Found gmp lib version>2 which is broken under AIX: Can not use it" 1>&21191 fi1192 rm -f conftest*1193 1194 else1195 1200 ac_gmp_ok=yes 1196 fi1197 1201 fi 1198 1202 … … 1256 1260 fi 1257 1261 if test "$enable_gmp" = yes && test -d gmp; then 1258 echo "$ac_t""yes" 1>&6 1259 CONFIG_SUBDIRS="gmp" 1260 ac_configure_args="$ac_configure_args --enable-gmp" 1262 if test "$ac_cv_is_aix" = yes && test "$GCC" = yes; then 1263 echo "$ac_t""no" 1>&6 1264 echo "configure: warning: Building gmp v2 with gcc results in a gmp lib with bugs" 1>&2 1265 echo "configure: warning: Install gmp v2 with another compiler first or use gmp v1.3" 1>&2 1266 echo "configure: warning: For the time being gmp is neither configured/built nor used" 1>&2 1267 enable_gmp=no 1268 ac_configure_args="$ac_configure_args --disable-gmp" 1269 else 1270 echo "$ac_t""yes" 1>&6 1271 CONFIG_SUBDIRS="gmp" 1272 ac_configure_args="$ac_configure_args --enable-gmp" 1273 fi 1261 1274 else 1262 1275 echo "$ac_t""no" 1>&6 … … 1277 1290 fi 1278 1291 if test "$enable_MP" = yes && test -d MP; then 1279 echo "$ac_t""yes" 1>&6 1280 CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP" 1281 ac_configure_args="$ac_configure_args --enable-MP" 1292 if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then 1293 echo "$ac_t""yes" 1>&6 1294 CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP" 1295 ac_configure_args="$ac_configure_args --enable-MP" 1296 else 1297 echo "$ac_t""no" 1>&6 1298 echo "configure: warning: Can not build MP for Singular without having gmp" 1>&2 1299 enable_MP=no 1300 ac_configure_args="$ac_configure_args --disable-MP" 1301 fi 1282 1302 else 1283 1303 echo "$ac_t""no" 1>&6 … … 1298 1318 fi 1299 1319 if test "$enable_factory" = yes && test -d factory; then 1320 if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then 1300 1321 echo "$ac_t""yes" 1>&6 1301 1322 CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory" 1302 1323 ac_configure_args="$ac_configure_args --enable-factory" 1324 else 1325 echo "$ac_t""no" 1>&6 1326 echo "configure: warning: Can not build factory without having gmp" 1>&2 1327 enable_factory=no 1328 ac_configure_args="$ac_configure_args --disable-factory" 1329 fi 1303 1330 else 1304 1331 echo "$ac_t""no" 1>&6 … … 1319 1346 fi 1320 1347 if test "$enable_libfac" = yes && test -d libfac; then 1348 if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then 1321 1349 echo "$ac_t""yes" 1>&6 1322 1350 CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac" 1323 1351 ac_configure_args="$ac_configure_args --enable-libfac" 1352 else 1353 echo "$ac_t""no" 1>&6 1354 echo "configure: warning: Can not build libfac without factory" 1>&2 1355 enable_libfac=no 1356 ac_configure_args="$ac_configure_args --disable-libfac" 1357 fi 1324 1358 else 1325 1359 echo "$ac_t""no" 1>&6 … … 1333 1367 echo $ac_n "checking whether to configure and build Singular""... $ac_c" 1>&6 1334 1368 if test "$enable_Singular" != yes && test "$enable_Singular" != no; then 1335 if test "$with_Singular" != no && test "$ac_Singular_ok" != yes; then1369 if test "$with_Singular" != no; then 1336 1370 enable_Singular=yes 1337 1371 else … … 1353 1387 1354 1388 1355 echo $ac_n "checking whether to use gmp""... $ac_c" 1>&6 1356 if test "$with_gmp" != no; then 1357 if test "$ac_gmp_ok" != yes; then 1358 if test "$enable_gmp" = yes; then 1359 if echo $target_os | egrep aix; then 1360 ac_with_gmp=no 1361 ac_aix_warn=yes 1362 else 1363 ac_with_gmp=yes 1364 fi 1365 else 1366 ac_with_gmp=no 1367 fi 1368 else 1369 ac_with_gmp=yes 1370 fi 1371 if test "$ac_with_gmp"=yes; then 1372 if test "$with_gmp" != yes; then 1373 with_gmp=yes 1374 ac_configure_args="$ac_configure_args --with-gmp" 1375 fi 1389 echo $ac_n "checking whether to use with gmp""... $ac_c" 1>&6 1390 if test "$with_gmp" != no && test "$with_gmp" != yes; then 1391 if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then 1392 with_gmp=yes 1376 1393 else 1377 1394 with_gmp=no 1378 ac_configure_args="$ac_configure_args --without-gmp"1379 fi1380 fi 1381 if test "$with_gmp" != no; then1395 fi 1396 ac_configure_args="$ac_configure_args --with-gmp=$with_gmp" 1397 fi 1398 if test "$with_gmp" = yes; then 1382 1399 echo "$ac_t""yes" 1>&6 1383 1400 else 1384 1401 echo "$ac_t""no" 1>&6 1385 1402 fi 1386 if test "$ac_aix_warn" = yes; then 1387 echo "configure: warning: gmp version 2 has a bug under AIX" 1>&2 1388 fi 1389 1390 echo $ac_n "checking whether to use MP""... $ac_c" 1>&6 1391 if test "$with_MP" != no; then 1392 if test "$ac_MP_ok" != yes; then 1393 if test "$enable_MP" = yes; then 1394 if test "$with_gmp" != yes; then 1395 ac_with_MP=no 1396 ac_gmp_warn=yes 1397 else 1398 ac_with_MP=yes 1399 fi 1400 else 1401 ac_with_MP=no 1402 fi 1403 else 1404 ac_with_MP=yes 1405 fi 1406 if test "$ac_with_MP"=yes; then 1407 if test "$with_MP" != yes; then 1408 with_MP=yes 1409 ac_configure_args="$ac_configure_args --with-MP" 1410 fi 1403 1404 echo $ac_n "checking whether to use with MP""... $ac_c" 1>&6 1405 if test "$with_MP" != no && test "$with_MP" != yes; then 1406 if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then 1407 with_MP=yes 1411 1408 else 1412 1409 with_MP=no 1413 ac_configure_args="$ac_configure_args --without-MP"1414 fi1415 fi 1416 if test "$with_MP" != no; then1410 fi 1411 ac_configure_args="$ac_configure_args --with-MP=$with_MP" 1412 fi 1413 if test "$with_MP" = yes; then 1417 1414 echo "$ac_t""yes" 1>&6 1418 1415 else 1419 1416 echo "$ac_t""no" 1>&6 1420 1417 fi 1421 if test "$ac_gmp_warn" = yes; then 1422 echo "configure: warning: Need gmp to use MP" 1>&2 1423 fi 1424 1425 echo $ac_n "checking whether to use factory""... $ac_c" 1>&6 1426 if test "$with_factory" != no; then 1427 if test "$ac_factory_ok" != yes; then 1428 if test "$enable_factory" = yes; then 1429 if test "$with_gmp" != yes; then 1430 ac_with_factory=no 1431 ac_gmp_warn=yes 1432 else 1433 ac_with_factory=yes 1434 fi 1435 else 1436 ac_with_factory=no 1437 fi 1438 else 1439 ac_with_factory=yes 1440 fi 1441 if test "$ac_with_factory"=yes; then 1442 if test "$with_factory" != yes; then 1443 with_factory=yes 1444 ac_configure_args="$ac_configure_args --with-factory" 1445 fi 1418 1419 echo $ac_n "checking whether to use with factory""... $ac_c" 1>&6 1420 if test "$with_factory" != no && test "$with_factory" != yes; then 1421 if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then 1422 with_factory=yes 1446 1423 else 1447 1424 with_factory=no 1448 ac_configure_args="$ac_configure_args --without-factory"1449 fi1450 fi 1451 if test "$with_factory" != no; then1425 fi 1426 ac_configure_args="$ac_configure_args --with-factory=$with_factory" 1427 fi 1428 if test "$with_factory" = yes; then 1452 1429 echo "$ac_t""yes" 1>&6 1453 1430 else 1454 1431 echo "$ac_t""no" 1>&6 1455 1432 fi 1456 if test "$ac_gmp_warn" = yes; then 1457 echo "configure: warning: Need gmp to use factory" 1>&2 1458 fi 1459 1460 echo $ac_n "checking whether to use libfac""... $ac_c" 1>&6 1461 if test "$with_libfac" != no; then 1462 if test "$ac_libfac_ok" != yes; then 1463 if test "$enable_libfac" = yes; then 1464 if test "$with_gmp" != yes || test "$with_factory" != yes; then 1465 ac_with_libfac=no 1466 ac_gmp_warn=yes 1467 else 1468 ac_with_libfac=yes 1469 fi 1470 else 1471 ac_with_libfac=no 1472 fi 1473 else 1474 ac_with_libfac=yes 1475 fi 1476 if test "$ac_with_libfac"=yes; then 1477 if test "$with_libfac" != yes; then 1478 with_libfac=yes 1479 ac_configure_args="$ac_configure_args --with-libfac" 1480 fi 1433 1434 echo $ac_n "checking whether to use with libfac""... $ac_c" 1>&6 1435 if test "$with_libfac" != no && test "$with_libfac" != yes; then 1436 if test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then 1437 with_libfac=yes 1481 1438 else 1482 1439 with_libfac=no 1483 ac_configure_args="$ac_configure_args --without-libfac"1484 fi1485 fi 1486 if test "$with_libfac" != no; then1440 fi 1441 ac_configure_args="$ac_configure_args --with-libfac=$with_libfac" 1442 fi 1443 if test "$with_libfac" = yes; then 1487 1444 echo "$ac_t""yes" 1>&6 1488 1445 else 1489 1446 echo "$ac_t""no" 1>&6 1490 1447 fi 1491 if test "$ac_gmp_warn" = yes; then 1492 echo "configure: warning: Need gmp and factory to use libfac" 1>&2 1493 fi 1494 1495 echo $ac_n "checking whether to build with Singular""... $ac_c" 1>&6 1496 if test "$with_Singular" != no; then 1448 1449 echo $ac_n "checking whether to use with Singular""... $ac_c" 1>&6 1450 if test "$with_Singular" != no && test "$with_Singular" != yes; then 1497 1451 if test "$enable_Singular" = yes; then 1498 ac_with_Singular=yes 1499 else 1500 ac_with_Singular=no 1501 fi 1502 if test "$ac_with_Singular"=yes; then 1503 if test "$with_Singular" != yes; then 1504 with_Singular=yes 1505 ac_configure_args="$ac_configure_args --with-Singular" 1506 fi 1452 with_Singular=yes 1507 1453 else 1508 1454 with_Singular=no 1509 ac_configure_args="$ac_configure_args --without-Singular" 1510 fi 1511 fi 1455 fi 1456 ac_configure_args="$ac_configure_args --with-Singular=$with_Singular" 1457 fi 1458 1512 1459 if test "$with_Singular" != no; then 1513 1460 echo "$ac_t""yes" 1>&6 … … 1868 1815 done 1869 1816 fi 1817 -
configure.in
r670667 rdc32d42 43 43 fi 44 44 45 AC_MSG_CHECKING(whether _AIX is defined) 46 AC_CACHE_VAL(ac_cv_is_aix, 47 AC_EGREP_CPP(yes, 48 [#ifdef _AIX 49 yes 50 #endif 51 ], ac_cv_is_aix=yes, ac_cv_is_aix=no, 1)) 52 if test "$ac_cv_is_aix" = yes; then 53 AC_MSG_RESULT(yes) 54 else 55 AC_MSG_RESULT(no) 56 fi 45 57 46 58 … … 59 71 if test "$ac_cv_lib_gmp_mpz_init" = yes && \ 60 72 test "$ac_cv_header_gmp_h" = yes; then 61 if echo $target_os | egrep aix; then62 AC_EGREP_CPP(yes,\63 [#include <gmp.h>64 #if defined(__GNU_MP_VERSION) && __GNU_MP_VERSION == 265 no66 #else67 yes68 #endif69 ],70 ac_gmp_ok=yes,71 AC_MSG_WARN(Found gmp lib version>2 which is broken under AIX: Can not use it))72 else73 73 ac_gmp_ok=yes 74 fi75 74 fi 76 75 … … 122 121 fi 123 122 if test "$enable_gmp" = yes && test -d gmp; then 124 AC_MSG_RESULT(yes) 125 CONFIG_SUBDIRS="gmp" 126 ac_configure_args="$ac_configure_args --enable-gmp" 123 if test "$ac_cv_is_aix" = yes && test "$GCC" = yes; then 124 AC_MSG_RESULT(no) 125 AC_MSG_WARN(Building gmp v2 with gcc results in a gmp lib with bugs) 126 AC_MSG_WARN(Install gmp v2 with another compiler first or use gmp v1.3) 127 AC_MSG_WARN(For the time being gmp is neither configured/built nor used) 128 enable_gmp=no 129 ac_configure_args="$ac_configure_args --disable-gmp" 130 else 131 AC_MSG_RESULT(yes) 132 CONFIG_SUBDIRS="gmp" 133 ac_configure_args="$ac_configure_args --enable-gmp" 134 fi 127 135 else 128 136 AC_MSG_RESULT(no) … … 143 151 fi 144 152 if test "$enable_MP" = yes && test -d MP; then 145 AC_MSG_RESULT(yes) 146 CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP" 147 ac_configure_args="$ac_configure_args --enable-MP" 153 if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then 154 AC_MSG_RESULT(yes) 155 CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP" 156 ac_configure_args="$ac_configure_args --enable-MP" 157 else 158 AC_MSG_RESULT(no) 159 AC_MSG_WARN(Can not build MP for Singular without having gmp) 160 enable_MP=no 161 ac_configure_args="$ac_configure_args --disable-MP" 162 fi 148 163 else 149 164 AC_MSG_RESULT(no) … … 164 179 fi 165 180 if test "$enable_factory" = yes && test -d factory; then 181 if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then 166 182 AC_MSG_RESULT(yes) 167 183 CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory" 168 184 ac_configure_args="$ac_configure_args --enable-factory" 185 else 186 AC_MSG_RESULT(no) 187 AC_MSG_WARN(Can not build factory without having gmp) 188 enable_factory=no 189 ac_configure_args="$ac_configure_args --disable-factory" 190 fi 169 191 else 170 192 AC_MSG_RESULT(no) … … 185 207 fi 186 208 if test "$enable_libfac" = yes && test -d libfac; then 209 if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then 187 210 AC_MSG_RESULT(yes) 188 211 CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac" 189 212 ac_configure_args="$ac_configure_args --enable-libfac" 213 else 214 AC_MSG_RESULT(no) 215 AC_MSG_WARN(Can not build libfac without factory) 216 enable_libfac=no 217 ac_configure_args="$ac_configure_args --disable-libfac" 218 fi 190 219 else 191 220 AC_MSG_RESULT(no) … … 199 228 AC_MSG_CHECKING(whether to configure and build Singular) 200 229 if test "$enable_Singular" != yes && test "$enable_Singular" != no; then 201 if test "$with_Singular" != no && test "$ac_Singular_ok" != yes; then230 if test "$with_Singular" != no; then 202 231 enable_Singular=yes 203 232 else … … 222 251 dnl Check whether or not to use various packages 223 252 dnl 224 AC_MSG_CHECKING(whether to use gmp) 225 if test "$with_gmp" != no; then 226 if test "$ac_gmp_ok" != yes; then 227 if test "$enable_gmp" = yes; then 228 if echo $target_os | egrep aix; then 229 ac_with_gmp=no 230 ac_aix_warn=yes 231 else 232 ac_with_gmp=yes 233 fi 234 else 235 ac_with_gmp=no 236 fi 237 else 238 ac_with_gmp=yes 239 fi 240 if test "$ac_with_gmp"=yes; then 241 if test "$with_gmp" != yes; then 242 with_gmp=yes 243 ac_configure_args="$ac_configure_args --with-gmp" 244 fi 253 AC_MSG_CHECKING(whether to use with gmp) 254 if test "$with_gmp" != no && test "$with_gmp" != yes; then 255 if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then 256 with_gmp=yes 245 257 else 246 258 with_gmp=no 247 ac_configure_args="$ac_configure_args --without-gmp" 248 fi 249 fi 250 if test "$with_gmp" != no; then 251 AC_MSG_RESULT(yes) 252 else 253 AC_MSG_RESULT(no) 254 fi 255 if test "$ac_aix_warn" = yes; then 256 AC_MSG_WARN(gmp version 2 has a bug under AIX) 257 fi 258 259 AC_MSG_CHECKING(whether to use MP) 260 if test "$with_MP" != no; then 261 if test "$ac_MP_ok" != yes; then 262 if test "$enable_MP" = yes; then 263 if test "$with_gmp" != yes; then 264 ac_with_MP=no 265 ac_gmp_warn=yes 266 else 267 ac_with_MP=yes 268 fi 269 else 270 ac_with_MP=no 271 fi 272 else 273 ac_with_MP=yes 274 fi 275 if test "$ac_with_MP"=yes; then 276 if test "$with_MP" != yes; then 277 with_MP=yes 278 ac_configure_args="$ac_configure_args --with-MP" 279 fi 259 fi 260 ac_configure_args="$ac_configure_args --with-gmp=$with_gmp" 261 fi 262 if test "$with_gmp" = yes; then 263 AC_MSG_RESULT(yes) 264 else 265 AC_MSG_RESULT(no) 266 fi 267 268 AC_MSG_CHECKING(whether to use with MP) 269 if test "$with_MP" != no && test "$with_MP" != yes; then 270 if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then 271 with_MP=yes 280 272 else 281 273 with_MP=no 282 ac_configure_args="$ac_configure_args --without-MP" 283 fi 284 fi 285 if test "$with_MP" != no; then 286 AC_MSG_RESULT(yes) 287 else 288 AC_MSG_RESULT(no) 289 fi 290 if test "$ac_gmp_warn" = yes; then 291 AC_MSG_WARN(Need gmp to use MP) 292 fi 293 294 AC_MSG_CHECKING(whether to use factory) 295 if test "$with_factory" != no; then 296 if test "$ac_factory_ok" != yes; then 297 if test "$enable_factory" = yes; then 298 if test "$with_gmp" != yes; then 299 ac_with_factory=no 300 ac_gmp_warn=yes 301 else 302 ac_with_factory=yes 303 fi 304 else 305 ac_with_factory=no 306 fi 307 else 308 ac_with_factory=yes 309 fi 310 if test "$ac_with_factory"=yes; then 311 if test "$with_factory" != yes; then 312 with_factory=yes 313 ac_configure_args="$ac_configure_args --with-factory" 314 fi 274 fi 275 ac_configure_args="$ac_configure_args --with-MP=$with_MP" 276 fi 277 if test "$with_MP" = yes; then 278 AC_MSG_RESULT(yes) 279 else 280 AC_MSG_RESULT(no) 281 fi 282 283 AC_MSG_CHECKING(whether to use with factory) 284 if test "$with_factory" != no && test "$with_factory" != yes; then 285 if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then 286 with_factory=yes 315 287 else 316 288 with_factory=no 317 ac_configure_args="$ac_configure_args --without-factory" 318 fi 319 fi 320 if test "$with_factory" != no; then 321 AC_MSG_RESULT(yes) 322 else 323 AC_MSG_RESULT(no) 324 fi 325 if test "$ac_gmp_warn" = yes; then 326 AC_MSG_WARN(Need gmp to use factory) 327 fi 328 329 AC_MSG_CHECKING(whether to use libfac) 330 if test "$with_libfac" != no; then 331 if test "$ac_libfac_ok" != yes; then 332 if test "$enable_libfac" = yes; then 333 if test "$with_gmp" != yes || test "$with_factory" != yes; then 334 ac_with_libfac=no 335 ac_gmp_warn=yes 336 else 337 ac_with_libfac=yes 338 fi 339 else 340 ac_with_libfac=no 341 fi 342 else 343 ac_with_libfac=yes 344 fi 345 if test "$ac_with_libfac"=yes; then 346 if test "$with_libfac" != yes; then 347 with_libfac=yes 348 ac_configure_args="$ac_configure_args --with-libfac" 349 fi 289 fi 290 ac_configure_args="$ac_configure_args --with-factory=$with_factory" 291 fi 292 if test "$with_factory" = yes; then 293 AC_MSG_RESULT(yes) 294 else 295 AC_MSG_RESULT(no) 296 fi 297 298 AC_MSG_CHECKING(whether to use with libfac) 299 if test "$with_libfac" != no && test "$with_libfac" != yes; then 300 if test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then 301 with_libfac=yes 350 302 else 351 303 with_libfac=no 352 ac_configure_args="$ac_configure_args --without-libfac" 353 fi 354 fi 355 if test "$with_libfac" != no; then 356 AC_MSG_RESULT(yes) 357 else 358 AC_MSG_RESULT(no) 359 fi 360 if test "$ac_gmp_warn" = yes; then 361 AC_MSG_WARN(Need gmp and factory to use libfac) 362 fi 363 364 AC_MSG_CHECKING(whether to build with Singular) 365 if test "$with_Singular" != no; then 304 fi 305 ac_configure_args="$ac_configure_args --with-libfac=$with_libfac" 306 fi 307 if test "$with_libfac" = yes; then 308 AC_MSG_RESULT(yes) 309 else 310 AC_MSG_RESULT(no) 311 fi 312 313 AC_MSG_CHECKING(whether to use with Singular) 314 if test "$with_Singular" != no && test "$with_Singular" != yes; then 366 315 if test "$enable_Singular" = yes; then 367 ac_with_Singular=yes 368 else 369 ac_with_Singular=no 370 fi 371 if test "$ac_with_Singular"=yes; then 372 if test "$with_Singular" != yes; then 373 with_Singular=yes 374 ac_configure_args="$ac_configure_args --with-Singular" 375 fi 316 with_Singular=yes 376 317 else 377 318 with_Singular=no 378 ac_configure_args="$ac_configure_args --without-Singular" 379 fi 380 fi 319 fi 320 ac_configure_args="$ac_configure_args --with-Singular=$with_Singular" 321 fi 322 381 323 if test "$with_Singular" != no; then 382 324 AC_MSG_RESULT(yes) -
libfac/ChangeLog
r670667 rdc32d42 1 Tue May 13 11:32:11 1997 Olaf Bachmann <obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)> 2 3 * Makefile.in (uninstall): took out template installation 4 (all): added OPTOBJ target so that the dir is created, if necessary 5 6 Tue May 13 20:09:03 1997 Olaf Bachmann <obachman@schlupp.mathematik.uni-kl.de (Olaf Bachmann)> 7 8 * configure.in: Exit with error if factory.h was not found and 9 --enable-factory option was not explicitely given 10 1 11 Tue May 13 11:32:11 1997 Olaf Bachmann <obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)> 2 12 -
libfac/Makefile.in
r670667 rdc32d42 1 # $Id: Makefile.in,v 1. 5 1997-05-13 10:09:17obachman Exp $1 # $Id: Makefile.in,v 1.6 1997-05-21 13:05:34 obachman Exp $ 2 2 ################################################# 3 3 SHELL = /bin/sh … … 84 84 ## 85 85 86 87 all: OPTOBJ ${TARGETNAME} 88 89 OPTOBJ: 90 ${MKINSTALLDIRS} OPTOBJ 91 86 92 .SUFFIXES: .cc .h .o 87 88 all: ${TARGETNAME}89 93 90 94 OPTOBJ/%.o: %.cc -
libfac/configure
r670667 rdc32d42 794 794 fi 795 795 796 ac_safe=`echo "factory.h" | tr './\055' '___'` 797 echo $ac_n "checking for factory.h""... $ac_c" 1>&6 796 for ac_hdr in factory.h 797 do 798 ac_safe=`echo "$ac_hdr" | tr './\055' '___'` 799 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 798 800 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 799 801 echo $ac_n "(cached) $ac_c" 1>&6 800 802 else 801 803 cat > conftest.$ac_ext <<EOF 802 #line 80 3"configure"804 #line 805 "configure" 803 805 #include "confdefs.h" 804 #include < factory.h>806 #include <$ac_hdr> 805 807 EOF 806 808 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 807 { (eval echo configure:8 08: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }809 { (eval echo configure:810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 808 810 ac_err=`grep -v '^ *+' conftest.out` 809 811 if test -z "$ac_err"; then … … 819 821 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 820 822 echo "$ac_t""yes" 1>&6 821 : 823 ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` 824 cat >> confdefs.h <<EOF 825 #define $ac_tr_hdr 1 826 EOF 827 822 828 else 823 829 echo "$ac_t""no" 1>&6 824 echo "configure: warning: factory.h not found!" 1>&2 825 fi 826 830 fi 831 done 832 833 834 if test "$ac_cv_header_factory_h" != yes; then 835 if test "$enable_factory" != yes; then 836 { echo "configure: error: Need factory.h to built libfac" 1>&2; exit 1; } 837 else 838 echo "configure: warning: Make sure to _install_ factory.h befor building libfac" 1>&2 839 fi 840 fi 827 841 828 842 … … 833 847 else 834 848 cat > conftest.$ac_ext <<EOF 835 #line 8 36"configure"849 #line 850 "configure" 836 850 #include "confdefs.h" 837 851 … … 883 897 ; return 0; } 884 898 EOF 885 if { (eval echo configure: 886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then899 if { (eval echo configure:900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 886 900 rm -rf conftest* 887 901 ac_cv_c_const=yes … … 909 923 for ac_kw in inline __inline__ __inline; do 910 924 cat > conftest.$ac_ext <<EOF 911 #line 9 12"configure"925 #line 926 "configure" 912 926 #include "confdefs.h" 913 927 … … 917 931 ; return 0; } 918 932 EOF 919 if { (eval echo configure:9 20: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then933 if { (eval echo configure:934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 920 934 rm -rf conftest* 921 935 ac_cv_c_inline=$ac_kw; break -
libfac/configure.in
r670667 rdc32d42 89 89 dnl Checks for header files. 90 90 dnl 91 AC_CHECK_HEADER(factory.h,,AC_MSG_WARN(factory.h not found!)) 91 AC_CHECK_HEADERS(factory.h) 92 93 if test "$ac_cv_header_factory_h" != yes; then 94 if test "$enable_factory" != yes; then 95 AC_MSG_ERROR(Need factory.h to built libfac) 96 else 97 AC_MSG_WARN(Make sure to _install_ factory.h befor building libfac) 98 fi 99 fi 92 100 93 101 dnl
Note: See TracChangeset
for help on using the changeset viewer.