ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/ac-tools/configure.in
(Generate patch)

Comparing trunk/ac-tools/configure.in (file contents):
Revision 313 by tim, Fri Feb 11 22:35:51 2005 UTC vs.
Revision 397 by gezelter, Fri Mar 4 15:29:03 2005 UTC

# Line 128 | Line 128 | AC_TRY_COMPILE([#include <sys/systemcfg.h>],
128              [Define if you have the _system_configuration variable.])],
129    [AC_MSG_RESULT([no])])
130  
131
132 dnl undef HAVE__SYSTEM_CONFIGURATION
133
134
131   dnl check for system getopt
132   adl_FUNC_GETOPT_LONG
133  
# Line 160 | Line 156 | fi
156    exit 1
157   fi
158  
159 + AC_PATH_PROG(PS, ps)
160 + AC_CACHE_CHECK([for POSIX or BSD ps syntax], ac_cv_prog_ps_syntax, [
161 +        if $PS ax -o rss > /dev/null 2>&1; then
162 +                ac_cv_prog_ps_ax=yes
163 +        else
164 +                ac_cv_prog_ps_ax=no
165 +        fi
166 +        if $PS -ef -o rss > /dev/null 2>&1; then
167 +                ac_cv_prog_ps_ef=yes
168 +        else
169 +                ac_cv_prog_ps_ef=no
170 +        fi
171 +        if test "$ac_cv_prog_ps_ax" = yes; then
172 +                ac_cv_prog_ps_syntax=BSD
173 +        else
174 +                if test "$ac_cv_prog_ps_ef" = yes; then
175 +                        ac_cv_prog_ps_syntax=POSIX
176 +                else
177 +                        AC_MSG_ERROR(Could not determine ps syntax)
178 +                fi
179 +        fi
180 + ])
181  
182 + AC_DEFINE_UNQUOTED(PSCOMMAND, $PS, [Path to ps program])
183 +
184 + if test "$ac_cv_prog_ps_syntax" = BSD; then
185 +  AC_DEFINE(PSTYPE_IS_BSD, 1)
186 + else
187 +   if test "$ac_cv_prog_ps_syntax" = POSIX; then
188 +       AC_DEFINE(PSTYPE_IS_POSIX, 1)
189 +   else
190 +       AC_MSG_ERROR(Unknown ps syntax type!)
191 +   fi
192 + fi
193 +
194   AC_ARG_WITH(mpi,
195          [AC_HELP_STRING([--with-mpi=<prefix>],
196                  [compile with MPI installed in <prefix> [default=no]])],
# Line 180 | Line 210 | AC_SUBST(USE_MPI)
210   fi
211   AC_SUBST(USE_MPI)
212  
213 < AC_ARG_WITH(sprng,
214 <        [AC_HELP_STRING([--with-sprng=<prefix>],
215 <                [compile with SPRNG installed in <prefix> [default=/usr/local]])],
216 <        with_sprng=$withval,
217 <        with_sprng="/usr/local")
213 > dnl AC_ARG_WITH(sprng,
214 > dnl     [AC_HELP_STRING([--with-sprng=<prefix>],
215 > dnl             [compile with SPRNG installed in <prefix> [default=/usr/local]])],
216 > dnl     with_sprng=$withval,
217 > dnl     with_sprng="/usr/local")
218 > dnl
219 > dnl case "x$with_sprng" in
220 > dnl        xyes | "x")  USE_SPRNG=yes;;
221 > dnl        xno) USE_SPRNG=no ;;
222 > dnl        *) SPRNG="$with_sprng"; USE_SPRNG=yes ;;
223 > dnl esac
224 > dnl if test "$USE_SPRNG" = "yes" -a -z "$with_sprng"; then
225 > dnl        SPRNG="/usr/local"
226 > dnl fi
227 > dnl if test "$USE_SPRNG" = "yes"; then
228 > dnl         ACX_SPRNG
229 > dnl fi
230 > dnl AC_SUBST(USE_SPRNG)
231  
232 < case "x$with_sprng" in
190 <        xyes | "x")  USE_SPRNG=yes;;
191 <        xno) USE_SPRNG=no ;;
192 <        *) SPRNG="$with_sprng"; USE_SPRNG=yes ;;
193 < esac
194 < if test "$USE_SPRNG" = "yes" -a -z "$with_sprng"; then
195 <        SPRNG="/usr/local"
196 < fi
197 < if test "$USE_SPRNG" = "yes"; then
198 <        ACX_SPRNG
199 < fi
200 < AC_SUBST(USE_SPRNG)
232 > dnl CHECK_MKL
233  
202
203 CHECK_MKL
204
234   BB_ENABLE_DOXYGEN
235  
236   AC_EXEEXT

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines