]> rtime.felk.cvut.cz Git - orte.git/blob - configure
ORTE kconfig hack
[orte.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for orte 0.2.0.
4 #
5 # Report bugs to <petr.smolik@wo.cz>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete.  It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='orte'
271 PACKAGE_TARNAME='orte'
272 PACKAGE_VERSION='0.2.0'
273 PACKAGE_STRING='orte 0.2.0'
274 PACKAGE_BUGREPORT='petr.smolik@wo.cz'
275
276 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LINUX_DIR LINUX_ARCH LINUX_AFLAGS LINUX_LDFLAGS LINUX_ARFLAGS LINUX_CROSS_COMPILE LINUX_KERNELRELEASE LINUX_CFLAGS LINUX_CC LINUX_LD LINUX_AS LINUX_MODULE_EXT CONFIG_ORTE_KERNEL CONFIG_ORTE_KERNEL_TRUE CONFIG_ORTE_KERNEL_FALSE CONFIG_RTHAL_TRUE CONFIG_RTHAL_FALSE RTAI_CFLAGS CONFIG_RTLINUX_TRUE CONFIG_RTLINUX_FALSE RTLINUX_CFLAGS RTLINUX_CC CONFIG_ORTE_RT USE_RTAI_TRUE USE_RTAI_FALSE USE_RTLINUX_TRUE USE_RTLINUX_FALSE CONFIG_ORTE_RT_TRUE CONFIG_ORTE_RT_FALSE ORTE_MAJOR_VERSION ORTE_MINOR_VERSION ORTE_MICRO_VERSION ORTE_VERSION CONFIG_ORTE_WIN_TRUE CONFIG_ORTE_WIN_FALSE CONFIG_ORTE_UNIX_TRUE CONFIG_ORTE_UNIX_FALSE moduledir modulePROGRAMS_INSTALL CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE RANLIB ac_ct_RANLIB CPP EGREP INCLUDES LIBOBJS LTLIBOBJS'
277 ac_subst_files=''
278
279 # Initialize some variables set by options.
280 ac_init_help=
281 ac_init_version=false
282 # The variables have the same names as the options, with
283 # dashes changed to underlines.
284 cache_file=/dev/null
285 exec_prefix=NONE
286 no_create=
287 no_recursion=
288 prefix=NONE
289 program_prefix=NONE
290 program_suffix=NONE
291 program_transform_name=s,x,x,
292 silent=
293 site=
294 srcdir=
295 verbose=
296 x_includes=NONE
297 x_libraries=NONE
298
299 # Installation directory options.
300 # These are left unexpanded so users can "make install exec_prefix=/foo"
301 # and all the variables that are supposed to be based on exec_prefix
302 # by default will actually change.
303 # Use braces instead of parens because sh, perl, etc. also accept them.
304 bindir='${exec_prefix}/bin'
305 sbindir='${exec_prefix}/sbin'
306 libexecdir='${exec_prefix}/libexec'
307 datadir='${prefix}/share'
308 sysconfdir='${prefix}/etc'
309 sharedstatedir='${prefix}/com'
310 localstatedir='${prefix}/var'
311 libdir='${exec_prefix}/lib'
312 includedir='${prefix}/include'
313 oldincludedir='/usr/include'
314 infodir='${prefix}/info'
315 mandir='${prefix}/man'
316
317 ac_prev=
318 for ac_option
319 do
320   # If the previous option needs an argument, assign it.
321   if test -n "$ac_prev"; then
322     eval "$ac_prev=\$ac_option"
323     ac_prev=
324     continue
325   fi
326
327   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328
329   # Accept the important Cygnus configure options, so we can diagnose typos.
330
331   case $ac_option in
332
333   -bindir | --bindir | --bindi | --bind | --bin | --bi)
334     ac_prev=bindir ;;
335   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
336     bindir=$ac_optarg ;;
337
338   -build | --build | --buil | --bui | --bu)
339     ac_prev=build_alias ;;
340   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341     build_alias=$ac_optarg ;;
342
343   -cache-file | --cache-file | --cache-fil | --cache-fi \
344   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345     ac_prev=cache_file ;;
346   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
348     cache_file=$ac_optarg ;;
349
350   --config-cache | -C)
351     cache_file=config.cache ;;
352
353   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354     ac_prev=datadir ;;
355   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356   | --da=*)
357     datadir=$ac_optarg ;;
358
359   -disable-* | --disable-*)
360     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
361     # Reject names that are not valid shell variable names.
362     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
363       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364    { (exit 1); exit 1; }; }
365     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366     eval "enable_$ac_feature=no" ;;
367
368   -enable-* | --enable-*)
369     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
370     # Reject names that are not valid shell variable names.
371     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
372       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373    { (exit 1); exit 1; }; }
374     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375     case $ac_option in
376       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
377       *) ac_optarg=yes ;;
378     esac
379     eval "enable_$ac_feature='$ac_optarg'" ;;
380
381   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383   | --exec | --exe | --ex)
384     ac_prev=exec_prefix ;;
385   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387   | --exec=* | --exe=* | --ex=*)
388     exec_prefix=$ac_optarg ;;
389
390   -gas | --gas | --ga | --g)
391     # Obsolete; use --with-gas.
392     with_gas=yes ;;
393
394   -help | --help | --hel | --he | -h)
395     ac_init_help=long ;;
396   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397     ac_init_help=recursive ;;
398   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399     ac_init_help=short ;;
400
401   -host | --host | --hos | --ho)
402     ac_prev=host_alias ;;
403   -host=* | --host=* | --hos=* | --ho=*)
404     host_alias=$ac_optarg ;;
405
406   -includedir | --includedir | --includedi | --included | --include \
407   | --includ | --inclu | --incl | --inc)
408     ac_prev=includedir ;;
409   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410   | --includ=* | --inclu=* | --incl=* | --inc=*)
411     includedir=$ac_optarg ;;
412
413   -infodir | --infodir | --infodi | --infod | --info | --inf)
414     ac_prev=infodir ;;
415   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416     infodir=$ac_optarg ;;
417
418   -libdir | --libdir | --libdi | --libd)
419     ac_prev=libdir ;;
420   -libdir=* | --libdir=* | --libdi=* | --libd=*)
421     libdir=$ac_optarg ;;
422
423   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424   | --libexe | --libex | --libe)
425     ac_prev=libexecdir ;;
426   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427   | --libexe=* | --libex=* | --libe=*)
428     libexecdir=$ac_optarg ;;
429
430   -localstatedir | --localstatedir | --localstatedi | --localstated \
431   | --localstate | --localstat | --localsta | --localst \
432   | --locals | --local | --loca | --loc | --lo)
433     ac_prev=localstatedir ;;
434   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
435   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
437     localstatedir=$ac_optarg ;;
438
439   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440     ac_prev=mandir ;;
441   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
442     mandir=$ac_optarg ;;
443
444   -nfp | --nfp | --nf)
445     # Obsolete; use --without-fp.
446     with_fp=no ;;
447
448   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449   | --no-cr | --no-c | -n)
450     no_create=yes ;;
451
452   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
454     no_recursion=yes ;;
455
456   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458   | --oldin | --oldi | --old | --ol | --o)
459     ac_prev=oldincludedir ;;
460   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
463     oldincludedir=$ac_optarg ;;
464
465   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466     ac_prev=prefix ;;
467   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
468     prefix=$ac_optarg ;;
469
470   -program-prefix | --program-prefix | --program-prefi | --program-pref \
471   | --program-pre | --program-pr | --program-p)
472     ac_prev=program_prefix ;;
473   -program-prefix=* | --program-prefix=* | --program-prefi=* \
474   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
475     program_prefix=$ac_optarg ;;
476
477   -program-suffix | --program-suffix | --program-suffi | --program-suff \
478   | --program-suf | --program-su | --program-s)
479     ac_prev=program_suffix ;;
480   -program-suffix=* | --program-suffix=* | --program-suffi=* \
481   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
482     program_suffix=$ac_optarg ;;
483
484   -program-transform-name | --program-transform-name \
485   | --program-transform-nam | --program-transform-na \
486   | --program-transform-n | --program-transform- \
487   | --program-transform | --program-transfor \
488   | --program-transfo | --program-transf \
489   | --program-trans | --program-tran \
490   | --progr-tra | --program-tr | --program-t)
491     ac_prev=program_transform_name ;;
492   -program-transform-name=* | --program-transform-name=* \
493   | --program-transform-nam=* | --program-transform-na=* \
494   | --program-transform-n=* | --program-transform-=* \
495   | --program-transform=* | --program-transfor=* \
496   | --program-transfo=* | --program-transf=* \
497   | --program-trans=* | --program-tran=* \
498   | --progr-tra=* | --program-tr=* | --program-t=*)
499     program_transform_name=$ac_optarg ;;
500
501   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502   | -silent | --silent | --silen | --sile | --sil)
503     silent=yes ;;
504
505   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506     ac_prev=sbindir ;;
507   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508   | --sbi=* | --sb=*)
509     sbindir=$ac_optarg ;;
510
511   -sharedstatedir | --sharedstatedir | --sharedstatedi \
512   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513   | --sharedst | --shareds | --shared | --share | --shar \
514   | --sha | --sh)
515     ac_prev=sharedstatedir ;;
516   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519   | --sha=* | --sh=*)
520     sharedstatedir=$ac_optarg ;;
521
522   -site | --site | --sit)
523     ac_prev=site ;;
524   -site=* | --site=* | --sit=*)
525     site=$ac_optarg ;;
526
527   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528     ac_prev=srcdir ;;
529   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
530     srcdir=$ac_optarg ;;
531
532   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533   | --syscon | --sysco | --sysc | --sys | --sy)
534     ac_prev=sysconfdir ;;
535   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
537     sysconfdir=$ac_optarg ;;
538
539   -target | --target | --targe | --targ | --tar | --ta | --t)
540     ac_prev=target_alias ;;
541   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
542     target_alias=$ac_optarg ;;
543
544   -v | -verbose | --verbose | --verbos | --verbo | --verb)
545     verbose=yes ;;
546
547   -version | --version | --versio | --versi | --vers | -V)
548     ac_init_version=: ;;
549
550   -with-* | --with-*)
551     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
552     # Reject names that are not valid shell variable names.
553     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554       { echo "$as_me: error: invalid package name: $ac_package" >&2
555    { (exit 1); exit 1; }; }
556     ac_package=`echo $ac_package| sed 's/-/_/g'`
557     case $ac_option in
558       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
559       *) ac_optarg=yes ;;
560     esac
561     eval "with_$ac_package='$ac_optarg'" ;;
562
563   -without-* | --without-*)
564     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
565     # Reject names that are not valid shell variable names.
566     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567       { echo "$as_me: error: invalid package name: $ac_package" >&2
568    { (exit 1); exit 1; }; }
569     ac_package=`echo $ac_package | sed 's/-/_/g'`
570     eval "with_$ac_package=no" ;;
571
572   --x)
573     # Obsolete; use --with-x.
574     with_x=yes ;;
575
576   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577   | --x-incl | --x-inc | --x-in | --x-i)
578     ac_prev=x_includes ;;
579   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
581     x_includes=$ac_optarg ;;
582
583   -x-libraries | --x-libraries | --x-librarie | --x-librari \
584   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585     ac_prev=x_libraries ;;
586   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
588     x_libraries=$ac_optarg ;;
589
590   -*) { echo "$as_me: error: unrecognized option: $ac_option
591 Try \`$0 --help' for more information." >&2
592    { (exit 1); exit 1; }; }
593     ;;
594
595   *=*)
596     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597     # Reject names that are not valid shell variable names.
598     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600    { (exit 1); exit 1; }; }
601     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602     eval "$ac_envvar='$ac_optarg'"
603     export $ac_envvar ;;
604
605   *)
606     # FIXME: should be removed in autoconf 3.0.
607     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
611     ;;
612
613   esac
614 done
615
616 if test -n "$ac_prev"; then
617   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618   { echo "$as_me: error: missing argument to $ac_option" >&2
619    { (exit 1); exit 1; }; }
620 fi
621
622 # Be sure to have absolute paths.
623 for ac_var in exec_prefix prefix
624 do
625   eval ac_val=$`echo $ac_var`
626   case $ac_val in
627     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629    { (exit 1); exit 1; }; };;
630   esac
631 done
632
633 # Be sure to have absolute paths.
634 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635               localstatedir libdir includedir oldincludedir infodir mandir
636 do
637   eval ac_val=$`echo $ac_var`
638   case $ac_val in
639     [\\/$]* | ?:[\\/]* ) ;;
640     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641    { (exit 1); exit 1; }; };;
642   esac
643 done
644
645 # There might be people who depend on the old broken behavior: `$host'
646 # used to hold the argument of --host etc.
647 # FIXME: To remove some day.
648 build=$build_alias
649 host=$host_alias
650 target=$target_alias
651
652 # FIXME: To remove some day.
653 if test "x$host_alias" != x; then
654   if test "x$build_alias" = x; then
655     cross_compiling=maybe
656     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657     If a cross compiler is detected then cross compile mode will be used." >&2
658   elif test "x$build_alias" != "x$host_alias"; then
659     cross_compiling=yes
660   fi
661 fi
662
663 ac_tool_prefix=
664 test -n "$host_alias" && ac_tool_prefix=$host_alias-
665
666 test "$silent" = yes && exec 6>/dev/null
667
668
669 # Find the source files, if location was not specified.
670 if test -z "$srcdir"; then
671   ac_srcdir_defaulted=yes
672   # Try the directory containing this script, then its parent.
673   ac_confdir=`(dirname "$0") 2>/dev/null ||
674 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675          X"$0" : 'X\(//\)[^/]' \| \
676          X"$0" : 'X\(//\)$' \| \
677          X"$0" : 'X\(/\)' \| \
678          .     : '\(.\)' 2>/dev/null ||
679 echo X"$0" |
680     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682           /^X\(\/\/\)$/{ s//\1/; q; }
683           /^X\(\/\).*/{ s//\1/; q; }
684           s/.*/./; q'`
685   srcdir=$ac_confdir
686   if test ! -r $srcdir/$ac_unique_file; then
687     srcdir=..
688   fi
689 else
690   ac_srcdir_defaulted=no
691 fi
692 if test ! -r $srcdir/$ac_unique_file; then
693   if test "$ac_srcdir_defaulted" = yes; then
694     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695    { (exit 1); exit 1; }; }
696   else
697     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698    { (exit 1); exit 1; }; }
699   fi
700 fi
701 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
703    { (exit 1); exit 1; }; }
704 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705 ac_env_build_alias_set=${build_alias+set}
706 ac_env_build_alias_value=$build_alias
707 ac_cv_env_build_alias_set=${build_alias+set}
708 ac_cv_env_build_alias_value=$build_alias
709 ac_env_host_alias_set=${host_alias+set}
710 ac_env_host_alias_value=$host_alias
711 ac_cv_env_host_alias_set=${host_alias+set}
712 ac_cv_env_host_alias_value=$host_alias
713 ac_env_target_alias_set=${target_alias+set}
714 ac_env_target_alias_value=$target_alias
715 ac_cv_env_target_alias_set=${target_alias+set}
716 ac_cv_env_target_alias_value=$target_alias
717 ac_env_CC_set=${CC+set}
718 ac_env_CC_value=$CC
719 ac_cv_env_CC_set=${CC+set}
720 ac_cv_env_CC_value=$CC
721 ac_env_CFLAGS_set=${CFLAGS+set}
722 ac_env_CFLAGS_value=$CFLAGS
723 ac_cv_env_CFLAGS_set=${CFLAGS+set}
724 ac_cv_env_CFLAGS_value=$CFLAGS
725 ac_env_LDFLAGS_set=${LDFLAGS+set}
726 ac_env_LDFLAGS_value=$LDFLAGS
727 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
728 ac_cv_env_LDFLAGS_value=$LDFLAGS
729 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
730 ac_env_CPPFLAGS_value=$CPPFLAGS
731 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
732 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
733 ac_env_CPP_set=${CPP+set}
734 ac_env_CPP_value=$CPP
735 ac_cv_env_CPP_set=${CPP+set}
736 ac_cv_env_CPP_value=$CPP
737
738 #
739 # Report the --help message.
740 #
741 if test "$ac_init_help" = "long"; then
742   # Omit some internal or obsolete options to make the list less imposing.
743   # This message is too long to be a string in the A/UX 3.1 sh.
744   cat <<_ACEOF
745 \`configure' configures orte 0.2.0 to adapt to many kinds of systems.
746
747 Usage: $0 [OPTION]... [VAR=VALUE]...
748
749 To assign environment variables (e.g., CC, CFLAGS...), specify them as
750 VAR=VALUE.  See below for descriptions of some of the useful variables.
751
752 Defaults for the options are specified in brackets.
753
754 Configuration:
755   -h, --help              display this help and exit
756       --help=short        display options specific to this package
757       --help=recursive    display the short help of all the included packages
758   -V, --version           display version information and exit
759   -q, --quiet, --silent   do not print \`checking...' messages
760       --cache-file=FILE   cache test results in FILE [disabled]
761   -C, --config-cache      alias for \`--cache-file=config.cache'
762   -n, --no-create         do not create output files
763       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
764
765 _ACEOF
766
767   cat <<_ACEOF
768 Installation directories:
769   --prefix=PREFIX         install architecture-independent files in PREFIX
770                           [$ac_default_prefix]
771   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
772                           [PREFIX]
773
774 By default, \`make install' will install all the files in
775 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
776 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
777 for instance \`--prefix=\$HOME'.
778
779 For better control, use the options below.
780
781 Fine tuning of the installation directories:
782   --bindir=DIR           user executables [EPREFIX/bin]
783   --sbindir=DIR          system admin executables [EPREFIX/sbin]
784   --libexecdir=DIR       program executables [EPREFIX/libexec]
785   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
786   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
787   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
788   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
789   --libdir=DIR           object code libraries [EPREFIX/lib]
790   --includedir=DIR       C header files [PREFIX/include]
791   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
792   --infodir=DIR          info documentation [PREFIX/info]
793   --mandir=DIR           man documentation [PREFIX/man]
794 _ACEOF
795
796   cat <<\_ACEOF
797
798 Program names:
799   --program-prefix=PREFIX            prepend PREFIX to installed program names
800   --program-suffix=SUFFIX            append SUFFIX to installed program names
801   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
802
803 System types:
804   --build=BUILD     configure for building on BUILD [guessed]
805   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
806   --target=TARGET   configure for building compilers for TARGET [HOST]
807 _ACEOF
808 fi
809
810 if test -n "$ac_init_help"; then
811   case $ac_init_help in
812      short | recursive ) echo "Configuration of orte 0.2.0:";;
813    esac
814   cat <<\_ACEOF
815
816 Optional Features:
817   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
818   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
819   --enable-maintainer-mode enable make rules and dependencies not useful
820                           (and sometimes confusing) to the casual installer
821   --disable-dependency-tracking Speeds up one-time builds
822   --enable-dependency-tracking  Do not reject slow dependency extractors
823
824 Optional Packages:
825   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
826   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
827   --with-linuxdir=DIR     specify path to Linux source directory
828   --with-rtaidir=DIR      specify path to RTAI source directory
829   --with-rtlinuxdir=DIR   specify path to RTLinux source directory
830   --with-rtlinuxudpdir=DIR
831                           specify path to RTLinux UDP source directory
832
833 Some influential environment variables:
834   CC          C compiler command
835   CFLAGS      C compiler flags
836   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
837               nonstandard directory <lib dir>
838   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
839               headers in a nonstandard directory <include dir>
840   CPP         C preprocessor
841
842 Use these variables to override the choices made by `configure' or to help
843 it to find libraries and programs with nonstandard names/locations.
844
845 Report bugs to <petr.smolik@wo.cz>.
846 _ACEOF
847 fi
848
849 if test "$ac_init_help" = "recursive"; then
850   # If there are subdirs, report their specific --help.
851   ac_popdir=`pwd`
852   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
853     test -d $ac_dir || continue
854     ac_builddir=.
855
856 if test "$ac_dir" != .; then
857   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
858   # A "../" for each directory in $ac_dir_suffix.
859   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
860 else
861   ac_dir_suffix= ac_top_builddir=
862 fi
863
864 case $srcdir in
865   .)  # No --srcdir option.  We are building in place.
866     ac_srcdir=.
867     if test -z "$ac_top_builddir"; then
868        ac_top_srcdir=.
869     else
870        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
871     fi ;;
872   [\\/]* | ?:[\\/]* )  # Absolute path.
873     ac_srcdir=$srcdir$ac_dir_suffix;
874     ac_top_srcdir=$srcdir ;;
875   *) # Relative path.
876     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
877     ac_top_srcdir=$ac_top_builddir$srcdir ;;
878 esac
879
880 # Do not use `cd foo && pwd` to compute absolute paths, because
881 # the directories may not exist.
882 case `pwd` in
883 .) ac_abs_builddir="$ac_dir";;
884 *)
885   case "$ac_dir" in
886   .) ac_abs_builddir=`pwd`;;
887   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
888   *) ac_abs_builddir=`pwd`/"$ac_dir";;
889   esac;;
890 esac
891 case $ac_abs_builddir in
892 .) ac_abs_top_builddir=${ac_top_builddir}.;;
893 *)
894   case ${ac_top_builddir}. in
895   .) ac_abs_top_builddir=$ac_abs_builddir;;
896   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
897   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
898   esac;;
899 esac
900 case $ac_abs_builddir in
901 .) ac_abs_srcdir=$ac_srcdir;;
902 *)
903   case $ac_srcdir in
904   .) ac_abs_srcdir=$ac_abs_builddir;;
905   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
906   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
907   esac;;
908 esac
909 case $ac_abs_builddir in
910 .) ac_abs_top_srcdir=$ac_top_srcdir;;
911 *)
912   case $ac_top_srcdir in
913   .) ac_abs_top_srcdir=$ac_abs_builddir;;
914   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
915   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
916   esac;;
917 esac
918
919     cd $ac_dir
920     # Check for guested configure; otherwise get Cygnus style configure.
921     if test -f $ac_srcdir/configure.gnu; then
922       echo
923       $SHELL $ac_srcdir/configure.gnu  --help=recursive
924     elif test -f $ac_srcdir/configure; then
925       echo
926       $SHELL $ac_srcdir/configure  --help=recursive
927     elif test -f $ac_srcdir/configure.ac ||
928            test -f $ac_srcdir/configure.in; then
929       echo
930       $ac_configure --help
931     else
932       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
933     fi
934     cd $ac_popdir
935   done
936 fi
937
938 test -n "$ac_init_help" && exit 0
939 if $ac_init_version; then
940   cat <<\_ACEOF
941 orte configure 0.2.0
942 generated by GNU Autoconf 2.59
943
944 Copyright (C) 2003 Free Software Foundation, Inc.
945 This configure script is free software; the Free Software Foundation
946 gives unlimited permission to copy, distribute and modify it.
947 _ACEOF
948   exit 0
949 fi
950 exec 5>config.log
951 cat >&5 <<_ACEOF
952 This file contains any messages produced by compilers while
953 running configure, to aid debugging if configure makes a mistake.
954
955 It was created by orte $as_me 0.2.0, which was
956 generated by GNU Autoconf 2.59.  Invocation command line was
957
958   $ $0 $@
959
960 _ACEOF
961 {
962 cat <<_ASUNAME
963 ## --------- ##
964 ## Platform. ##
965 ## --------- ##
966
967 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
968 uname -m = `(uname -m) 2>/dev/null || echo unknown`
969 uname -r = `(uname -r) 2>/dev/null || echo unknown`
970 uname -s = `(uname -s) 2>/dev/null || echo unknown`
971 uname -v = `(uname -v) 2>/dev/null || echo unknown`
972
973 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
974 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
975
976 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
977 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
978 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
979 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
980 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
981 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
982 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
983
984 _ASUNAME
985
986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
987 for as_dir in $PATH
988 do
989   IFS=$as_save_IFS
990   test -z "$as_dir" && as_dir=.
991   echo "PATH: $as_dir"
992 done
993
994 } >&5
995
996 cat >&5 <<_ACEOF
997
998
999 ## ----------- ##
1000 ## Core tests. ##
1001 ## ----------- ##
1002
1003 _ACEOF
1004
1005
1006 # Keep a trace of the command line.
1007 # Strip out --no-create and --no-recursion so they do not pile up.
1008 # Strip out --silent because we don't want to record it for future runs.
1009 # Also quote any args containing shell meta-characters.
1010 # Make two passes to allow for proper duplicate-argument suppression.
1011 ac_configure_args=
1012 ac_configure_args0=
1013 ac_configure_args1=
1014 ac_sep=
1015 ac_must_keep_next=false
1016 for ac_pass in 1 2
1017 do
1018   for ac_arg
1019   do
1020     case $ac_arg in
1021     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1022     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1023     | -silent | --silent | --silen | --sile | --sil)
1024       continue ;;
1025     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1026       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1027     esac
1028     case $ac_pass in
1029     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1030     2)
1031       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1032       if test $ac_must_keep_next = true; then
1033         ac_must_keep_next=false # Got value, back to normal.
1034       else
1035         case $ac_arg in
1036           *=* | --config-cache | -C | -disable-* | --disable-* \
1037           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1038           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1039           | -with-* | --with-* | -without-* | --without-* | --x)
1040             case "$ac_configure_args0 " in
1041               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1042             esac
1043             ;;
1044           -* ) ac_must_keep_next=true ;;
1045         esac
1046       fi
1047       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1048       # Get rid of the leading space.
1049       ac_sep=" "
1050       ;;
1051     esac
1052   done
1053 done
1054 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1055 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1056
1057 # When interrupted or exit'd, cleanup temporary files, and complete
1058 # config.log.  We remove comments because anyway the quotes in there
1059 # would cause problems or look ugly.
1060 # WARNING: Be sure not to use single quotes in there, as some shells,
1061 # such as our DU 5.0 friend, will then `close' the trap.
1062 trap 'exit_status=$?
1063   # Save into config.log some information that might help in debugging.
1064   {
1065     echo
1066
1067     cat <<\_ASBOX
1068 ## ---------------- ##
1069 ## Cache variables. ##
1070 ## ---------------- ##
1071 _ASBOX
1072     echo
1073     # The following way of writing the cache mishandles newlines in values,
1074 {
1075   (set) 2>&1 |
1076     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1077     *ac_space=\ *)
1078       sed -n \
1079         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1080           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1081       ;;
1082     *)
1083       sed -n \
1084         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1085       ;;
1086     esac;
1087 }
1088     echo
1089
1090     cat <<\_ASBOX
1091 ## ----------------- ##
1092 ## Output variables. ##
1093 ## ----------------- ##
1094 _ASBOX
1095     echo
1096     for ac_var in $ac_subst_vars
1097     do
1098       eval ac_val=$`echo $ac_var`
1099       echo "$ac_var='"'"'$ac_val'"'"'"
1100     done | sort
1101     echo
1102
1103     if test -n "$ac_subst_files"; then
1104       cat <<\_ASBOX
1105 ## ------------- ##
1106 ## Output files. ##
1107 ## ------------- ##
1108 _ASBOX
1109       echo
1110       for ac_var in $ac_subst_files
1111       do
1112         eval ac_val=$`echo $ac_var`
1113         echo "$ac_var='"'"'$ac_val'"'"'"
1114       done | sort
1115       echo
1116     fi
1117
1118     if test -s confdefs.h; then
1119       cat <<\_ASBOX
1120 ## ----------- ##
1121 ## confdefs.h. ##
1122 ## ----------- ##
1123 _ASBOX
1124       echo
1125       sed "/^$/d" confdefs.h | sort
1126       echo
1127     fi
1128     test "$ac_signal" != 0 &&
1129       echo "$as_me: caught signal $ac_signal"
1130     echo "$as_me: exit $exit_status"
1131   } >&5
1132   rm -f core *.core &&
1133   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1134     exit $exit_status
1135      ' 0
1136 for ac_signal in 1 2 13 15; do
1137   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1138 done
1139 ac_signal=0
1140
1141 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1142 rm -rf conftest* confdefs.h
1143 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1144 echo >confdefs.h
1145
1146 # Predefined preprocessor variables.
1147
1148 cat >>confdefs.h <<_ACEOF
1149 #define PACKAGE_NAME "$PACKAGE_NAME"
1150 _ACEOF
1151
1152
1153 cat >>confdefs.h <<_ACEOF
1154 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1155 _ACEOF
1156
1157
1158 cat >>confdefs.h <<_ACEOF
1159 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1160 _ACEOF
1161
1162
1163 cat >>confdefs.h <<_ACEOF
1164 #define PACKAGE_STRING "$PACKAGE_STRING"
1165 _ACEOF
1166
1167
1168 cat >>confdefs.h <<_ACEOF
1169 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1170 _ACEOF
1171
1172
1173 # Let the site file select an alternate cache file if it wants to.
1174 # Prefer explicitly selected file to automatically selected ones.
1175 if test -z "$CONFIG_SITE"; then
1176   if test "x$prefix" != xNONE; then
1177     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1178   else
1179     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1180   fi
1181 fi
1182 for ac_site_file in $CONFIG_SITE; do
1183   if test -r "$ac_site_file"; then
1184     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1185 echo "$as_me: loading site script $ac_site_file" >&6;}
1186     sed 's/^/| /' "$ac_site_file" >&5
1187     . "$ac_site_file"
1188   fi
1189 done
1190
1191 if test -r "$cache_file"; then
1192   # Some versions of bash will fail to source /dev/null (special
1193   # files actually), so we avoid doing that.
1194   if test -f "$cache_file"; then
1195     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1196 echo "$as_me: loading cache $cache_file" >&6;}
1197     case $cache_file in
1198       [\\/]* | ?:[\\/]* ) . $cache_file;;
1199       *)                      . ./$cache_file;;
1200     esac
1201   fi
1202 else
1203   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1204 echo "$as_me: creating cache $cache_file" >&6;}
1205   >$cache_file
1206 fi
1207
1208 # Check that the precious variables saved in the cache have kept the same
1209 # value.
1210 ac_cache_corrupted=false
1211 for ac_var in `(set) 2>&1 |
1212                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1213   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1214   eval ac_new_set=\$ac_env_${ac_var}_set
1215   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1216   eval ac_new_val="\$ac_env_${ac_var}_value"
1217   case $ac_old_set,$ac_new_set in
1218     set,)
1219       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1220 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1221       ac_cache_corrupted=: ;;
1222     ,set)
1223       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1224 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1225       ac_cache_corrupted=: ;;
1226     ,);;
1227     *)
1228       if test "x$ac_old_val" != "x$ac_new_val"; then
1229         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1230 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1231         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1232 echo "$as_me:   former value:  $ac_old_val" >&2;}
1233         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1234 echo "$as_me:   current value: $ac_new_val" >&2;}
1235         ac_cache_corrupted=:
1236       fi;;
1237   esac
1238   # Pass precious variables to config.status.
1239   if test "$ac_new_set" = set; then
1240     case $ac_new_val in
1241     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1242       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1243     *) ac_arg=$ac_var=$ac_new_val ;;
1244     esac
1245     case " $ac_configure_args " in
1246       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1247       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1248     esac
1249   fi
1250 done
1251 if $ac_cache_corrupted; then
1252   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1253 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1254   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1255 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1256    { (exit 1); exit 1; }; }
1257 fi
1258
1259 ac_ext=c
1260 ac_cpp='$CPP $CPPFLAGS'
1261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291 ac_aux_dir=
1292 for ac_dir in admin $srcdir/admin; do
1293   if test -f $ac_dir/install-sh; then
1294     ac_aux_dir=$ac_dir
1295     ac_install_sh="$ac_aux_dir/install-sh -c"
1296     break
1297   elif test -f $ac_dir/install.sh; then
1298     ac_aux_dir=$ac_dir
1299     ac_install_sh="$ac_aux_dir/install.sh -c"
1300     break
1301   elif test -f $ac_dir/shtool; then
1302     ac_aux_dir=$ac_dir
1303     ac_install_sh="$ac_aux_dir/shtool install -c"
1304     break
1305   fi
1306 done
1307 if test -z "$ac_aux_dir"; then
1308   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&5
1309 echo "$as_me: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&2;}
1310    { (exit 1); exit 1; }; }
1311 fi
1312 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1313 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1314 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1315
1316
1317 #Check for CPU / vendor / OS
1318 # Make sure we can run config.sub.
1319 $ac_config_sub sun4 >/dev/null 2>&1 ||
1320   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1321 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1322    { (exit 1); exit 1; }; }
1323
1324 echo "$as_me:$LINENO: checking build system type" >&5
1325 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1326 if test "${ac_cv_build+set}" = set; then
1327   echo $ECHO_N "(cached) $ECHO_C" >&6
1328 else
1329   ac_cv_build_alias=$build_alias
1330 test -z "$ac_cv_build_alias" &&
1331   ac_cv_build_alias=`$ac_config_guess`
1332 test -z "$ac_cv_build_alias" &&
1333   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1334 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1335    { (exit 1); exit 1; }; }
1336 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1337   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1338 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1339    { (exit 1); exit 1; }; }
1340
1341 fi
1342 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1343 echo "${ECHO_T}$ac_cv_build" >&6
1344 build=$ac_cv_build
1345 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1346 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1347 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1348
1349
1350 echo "$as_me:$LINENO: checking host system type" >&5
1351 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1352 if test "${ac_cv_host+set}" = set; then
1353   echo $ECHO_N "(cached) $ECHO_C" >&6
1354 else
1355   ac_cv_host_alias=$host_alias
1356 test -z "$ac_cv_host_alias" &&
1357   ac_cv_host_alias=$ac_cv_build_alias
1358 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1359   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1360 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1361    { (exit 1); exit 1; }; }
1362
1363 fi
1364 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1365 echo "${ECHO_T}$ac_cv_host" >&6
1366 host=$ac_cv_host
1367 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1368 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1369 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1370
1371
1372 echo "$as_me:$LINENO: checking target system type" >&5
1373 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1374 if test "${ac_cv_target+set}" = set; then
1375   echo $ECHO_N "(cached) $ECHO_C" >&6
1376 else
1377   ac_cv_target_alias=$target_alias
1378 test "x$ac_cv_target_alias" = "x" &&
1379   ac_cv_target_alias=$ac_cv_host_alias
1380 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1381   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1382 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1383    { (exit 1); exit 1; }; }
1384
1385 fi
1386 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1387 echo "${ECHO_T}$ac_cv_target" >&6
1388 target=$ac_cv_target
1389 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1390 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1391 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1392
1393
1394 # The aliases save the names the user supplied, while $host etc.
1395 # will get canonicalized.
1396 test -n "$target_alias" &&
1397   test "$program_prefix$program_suffix$program_transform_name" = \
1398     NONENONEs,x,x, &&
1399   program_prefix=${target_alias}-
1400 # Add the stamp file to the list of files AC keeps track of,
1401 # along with our hook.
1402           ac_config_headers="$ac_config_headers orte/include/config.h"
1403
1404
1405
1406 am__api_version="1.6"
1407 # Find a good install program.  We prefer a C program (faster),
1408 # so one script is as good as another.  But avoid the broken or
1409 # incompatible versions:
1410 # SysV /etc/install, /usr/sbin/install
1411 # SunOS /usr/etc/install
1412 # IRIX /sbin/install
1413 # AIX /bin/install
1414 # AmigaOS /C/install, which installs bootblocks on floppy discs
1415 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1416 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1417 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1418 # OS/2's system install, which has a completely different semantic
1419 # ./install, which can be erroneously created by make from ./install.sh.
1420 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1421 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1422 if test -z "$INSTALL"; then
1423 if test "${ac_cv_path_install+set}" = set; then
1424   echo $ECHO_N "(cached) $ECHO_C" >&6
1425 else
1426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1427 for as_dir in $PATH
1428 do
1429   IFS=$as_save_IFS
1430   test -z "$as_dir" && as_dir=.
1431   # Account for people who put trailing slashes in PATH elements.
1432 case $as_dir/ in
1433   ./ | .// | /cC/* | \
1434   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1435   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1436   /usr/ucb/* ) ;;
1437   *)
1438     # OSF1 and SCO ODT 3.0 have their own names for install.
1439     # Don't use installbsd from OSF since it installs stuff as root
1440     # by default.
1441     for ac_prog in ginstall scoinst install; do
1442       for ac_exec_ext in '' $ac_executable_extensions; do
1443         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1444           if test $ac_prog = install &&
1445             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1446             # AIX install.  It has an incompatible calling convention.
1447             :
1448           elif test $ac_prog = install &&
1449             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1450             # program-specific install script used by HP pwplus--don't use.
1451             :
1452           else
1453             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1454             break 3
1455           fi
1456         fi
1457       done
1458     done
1459     ;;
1460 esac
1461 done
1462
1463
1464 fi
1465   if test "${ac_cv_path_install+set}" = set; then
1466     INSTALL=$ac_cv_path_install
1467   else
1468     # As a last resort, use the slow shell script.  We don't cache a
1469     # path for INSTALL within a source directory, because that will
1470     # break other packages using the cache if that directory is
1471     # removed, or if the path is relative.
1472     INSTALL=$ac_install_sh
1473   fi
1474 fi
1475 echo "$as_me:$LINENO: result: $INSTALL" >&5
1476 echo "${ECHO_T}$INSTALL" >&6
1477
1478 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1479 # It thinks the first close brace ends the variable substitution.
1480 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1481
1482 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1483
1484 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1485
1486 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1487 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1488 # Just in case
1489 sleep 1
1490 echo timestamp > conftest.file
1491 # Do `set' in a subshell so we don't clobber the current shell's
1492 # arguments.  Must try -L first in case configure is actually a
1493 # symlink; some systems play weird games with the mod time of symlinks
1494 # (eg FreeBSD returns the mod time of the symlink's containing
1495 # directory).
1496 if (
1497    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1498    if test "$*" = "X"; then
1499       # -L didn't work.
1500       set X `ls -t $srcdir/configure conftest.file`
1501    fi
1502    rm -f conftest.file
1503    if test "$*" != "X $srcdir/configure conftest.file" \
1504       && test "$*" != "X conftest.file $srcdir/configure"; then
1505
1506       # If neither matched, then we have a broken ls.  This can happen
1507       # if, for instance, CONFIG_SHELL is bash and it inherits a
1508       # broken ls alias from the environment.  This has actually
1509       # happened.  Such a system could not be considered "sane".
1510       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1511 alias in your environment" >&5
1512 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1513 alias in your environment" >&2;}
1514    { (exit 1); exit 1; }; }
1515    fi
1516
1517    test "$2" = conftest.file
1518    )
1519 then
1520    # Ok.
1521    :
1522 else
1523    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1524 Check your system clock" >&5
1525 echo "$as_me: error: newly created file is older than distributed files!
1526 Check your system clock" >&2;}
1527    { (exit 1); exit 1; }; }
1528 fi
1529 echo "$as_me:$LINENO: result: yes" >&5
1530 echo "${ECHO_T}yes" >&6
1531 test "$program_prefix" != NONE &&
1532   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1533 # Use a double $ so make ignores it.
1534 test "$program_suffix" != NONE &&
1535   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1536 # Double any \ or $.  echo might interpret backslashes.
1537 # By default was `s,x,x', remove it if useless.
1538 cat <<\_ACEOF >conftest.sed
1539 s/[\\$]/&&/g;s/;s,x,x,$//
1540 _ACEOF
1541 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1542 rm conftest.sed
1543
1544
1545 # expand $ac_aux_dir to an absolute path
1546 am_aux_dir=`cd $ac_aux_dir && pwd`
1547
1548 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1549 # Use eval to expand $SHELL
1550 if eval "$MISSING --run true"; then
1551   am_missing_run="$MISSING --run "
1552 else
1553   am_missing_run=
1554   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1555 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1556 fi
1557
1558 for ac_prog in gawk mawk nawk awk
1559 do
1560   # Extract the first word of "$ac_prog", so it can be a program name with args.
1561 set dummy $ac_prog; ac_word=$2
1562 echo "$as_me:$LINENO: checking for $ac_word" >&5
1563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1564 if test "${ac_cv_prog_AWK+set}" = set; then
1565   echo $ECHO_N "(cached) $ECHO_C" >&6
1566 else
1567   if test -n "$AWK"; then
1568   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1569 else
1570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1571 for as_dir in $PATH
1572 do
1573   IFS=$as_save_IFS
1574   test -z "$as_dir" && as_dir=.
1575   for ac_exec_ext in '' $ac_executable_extensions; do
1576   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1577     ac_cv_prog_AWK="$ac_prog"
1578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1579     break 2
1580   fi
1581 done
1582 done
1583
1584 fi
1585 fi
1586 AWK=$ac_cv_prog_AWK
1587 if test -n "$AWK"; then
1588   echo "$as_me:$LINENO: result: $AWK" >&5
1589 echo "${ECHO_T}$AWK" >&6
1590 else
1591   echo "$as_me:$LINENO: result: no" >&5
1592 echo "${ECHO_T}no" >&6
1593 fi
1594
1595   test -n "$AWK" && break
1596 done
1597
1598 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1599 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1600 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1601 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1602   echo $ECHO_N "(cached) $ECHO_C" >&6
1603 else
1604   cat >conftest.make <<\_ACEOF
1605 all:
1606         @echo 'ac_maketemp="$(MAKE)"'
1607 _ACEOF
1608 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1609 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1610 if test -n "$ac_maketemp"; then
1611   eval ac_cv_prog_make_${ac_make}_set=yes
1612 else
1613   eval ac_cv_prog_make_${ac_make}_set=no
1614 fi
1615 rm -f conftest.make
1616 fi
1617 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1618   echo "$as_me:$LINENO: result: yes" >&5
1619 echo "${ECHO_T}yes" >&6
1620   SET_MAKE=
1621 else
1622   echo "$as_me:$LINENO: result: no" >&5
1623 echo "${ECHO_T}no" >&6
1624   SET_MAKE="MAKE=${MAKE-make}"
1625 fi
1626
1627  # test to see if srcdir already configured
1628 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1629    test -f $srcdir/config.status; then
1630   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1631 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1632    { (exit 1); exit 1; }; }
1633 fi
1634
1635 # Define the identity of the package.
1636  PACKAGE=orte
1637  VERSION=0.2.0
1638
1639
1640 cat >>confdefs.h <<_ACEOF
1641 #define PACKAGE "$PACKAGE"
1642 _ACEOF
1643
1644
1645 cat >>confdefs.h <<_ACEOF
1646 #define VERSION "$VERSION"
1647 _ACEOF
1648
1649 # Some tools Automake needs.
1650
1651 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1652
1653
1654 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1655
1656
1657 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1658
1659
1660 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1661
1662
1663 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1664
1665
1666 AMTAR=${AMTAR-"${am_missing_run}tar"}
1667
1668 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1669
1670 # Installed binaries are usually stripped using `strip' when the user
1671 # run `make install-strip'.  However `strip' might not be the right
1672 # tool to use in cross-compilation environments, therefore Automake
1673 # will honor the `STRIP' environment variable to overrule this program.
1674 if test "$cross_compiling" != no; then
1675   if test -n "$ac_tool_prefix"; then
1676   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1677 set dummy ${ac_tool_prefix}strip; ac_word=$2
1678 echo "$as_me:$LINENO: checking for $ac_word" >&5
1679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1680 if test "${ac_cv_prog_STRIP+set}" = set; then
1681   echo $ECHO_N "(cached) $ECHO_C" >&6
1682 else
1683   if test -n "$STRIP"; then
1684   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1685 else
1686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1687 for as_dir in $PATH
1688 do
1689   IFS=$as_save_IFS
1690   test -z "$as_dir" && as_dir=.
1691   for ac_exec_ext in '' $ac_executable_extensions; do
1692   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1693     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1695     break 2
1696   fi
1697 done
1698 done
1699
1700 fi
1701 fi
1702 STRIP=$ac_cv_prog_STRIP
1703 if test -n "$STRIP"; then
1704   echo "$as_me:$LINENO: result: $STRIP" >&5
1705 echo "${ECHO_T}$STRIP" >&6
1706 else
1707   echo "$as_me:$LINENO: result: no" >&5
1708 echo "${ECHO_T}no" >&6
1709 fi
1710
1711 fi
1712 if test -z "$ac_cv_prog_STRIP"; then
1713   ac_ct_STRIP=$STRIP
1714   # Extract the first word of "strip", so it can be a program name with args.
1715 set dummy strip; ac_word=$2
1716 echo "$as_me:$LINENO: checking for $ac_word" >&5
1717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1718 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1719   echo $ECHO_N "(cached) $ECHO_C" >&6
1720 else
1721   if test -n "$ac_ct_STRIP"; then
1722   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1723 else
1724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1725 for as_dir in $PATH
1726 do
1727   IFS=$as_save_IFS
1728   test -z "$as_dir" && as_dir=.
1729   for ac_exec_ext in '' $ac_executable_extensions; do
1730   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1731     ac_cv_prog_ac_ct_STRIP="strip"
1732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1733     break 2
1734   fi
1735 done
1736 done
1737
1738   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1739 fi
1740 fi
1741 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1742 if test -n "$ac_ct_STRIP"; then
1743   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1744 echo "${ECHO_T}$ac_ct_STRIP" >&6
1745 else
1746   echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1748 fi
1749
1750   STRIP=$ac_ct_STRIP
1751 else
1752   STRIP="$ac_cv_prog_STRIP"
1753 fi
1754
1755 fi
1756 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1757
1758 # We need awk for the "check" target.  The system "awk" is bad on
1759 # some platforms.
1760
1761
1762
1763 # Activate maintainer mode
1764 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1765 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1766     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1767 if test "${enable_maintainer_mode+set}" = set; then
1768   enableval="$enable_maintainer_mode"
1769   USE_MAINTAINER_MODE=$enableval
1770 else
1771   USE_MAINTAINER_MODE=no
1772 fi;
1773   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1774 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1775
1776
1777 if test $USE_MAINTAINER_MODE = yes; then
1778   MAINTAINER_MODE_TRUE=
1779   MAINTAINER_MODE_FALSE='#'
1780 else
1781   MAINTAINER_MODE_TRUE='#'
1782   MAINTAINER_MODE_FALSE=
1783 fi
1784
1785   MAINT=$MAINTAINER_MODE_TRUE
1786
1787
1788
1789
1790
1791
1792
1793 # Check whether --with-linuxdir or --without-linuxdir was given.
1794 if test "${with_linuxdir+set}" = set; then
1795   withval="$with_linuxdir"
1796   LINUX_DIR="${withval}"
1797 else
1798   LINUX_DIR=default
1799 fi;
1800
1801
1802
1803
1804
1805         echo "$as_me:$LINENO: checking Linux version" >&5
1806 echo $ECHO_N "checking Linux version... $ECHO_C" >&6
1807
1808         if test "${LINUX_DIR}" != "default" ; then
1809
1810           if [ ! -f "${LINUX_DIR}/.config" ];then
1811             { { echo "$as_me:$LINENO: error:
1812             The kernel source tree at ${LINUX_DIR} is not configured.
1813             Fix before continuing." >&5
1814 echo "$as_me: error:
1815             The kernel source tree at ${LINUX_DIR} is not configured.
1816             Fix before continuing." >&2;}
1817    { (exit 1); exit 1; }; }
1818           fi
1819
1820           if [ ! -f "${LINUX_DIR}/include/linux/version.h" ];then
1821             { { echo "$as_me:$LINENO: error: The header file include/linux/version.h does not exist.
1822             For 2.6 kernels, it can be generated by running 'make prepare' in
1823             the kernel source directory." >&5
1824 echo "$as_me: error: The header file include/linux/version.h does not exist.
1825             For 2.6 kernels, it can be generated by running 'make prepare' in
1826             the kernel source directory." >&2;}
1827    { (exit 1); exit 1; }; }
1828           fi
1829
1830           LINUX_VERSION=$(grep UTS_RELEASE ${LINUX_DIR}/include/linux/version.h | \
1831             sed 's/[^"]*"\(.*\)\{1\}"/\1/')
1832
1833           echo "$as_me:$LINENO: result: $LINUX_VERSION" >&5
1834 echo "${ECHO_T}$LINUX_VERSION" >&6
1835
1836           LINUX_VERSION_MAJOR=$(echo ${LINUX_VERSION} | cut -d. -f1)
1837           LINUX_VERSION_MINOR=$(echo ${LINUX_VERSION} | cut -d. -f2)
1838
1839           case $LINUX_VERSION_MAJOR.$LINUX_VERSION_MINOR in
1840             2.6)
1841
1842         echo "$as_me:$LINENO: checking for Linux CFLAGS" >&5
1843 echo $ECHO_N "checking for Linux CFLAGS... $ECHO_C" >&6
1844
1845         tmpdir="`pwd`/tmp-noicrwa"
1846
1847         rm -rf ${tmpdir}
1848         mkdir ${tmpdir}
1849
1850         cat >${tmpdir}/Makefile <<EOF
1851 obj-m += fake.o
1852
1853 \$(obj)/fake.c: flags
1854         touch \$(obj)/fake.c
1855
1856 .PHONY: flags
1857 flags:
1858         echo LINUX_ARCH=\"\$(ARCH)\" >>\$(obj)/flags
1859         echo LINUX_AFLAGS=\"\$(AFLAGS)\" | sed 's_Iinclude_I"\$(LINUXDIR)/include"_g'>>\$(obj)/flags
1860         echo LINUX_LDFLAGS=\"\" >>\$(obj)/flags
1861         echo LINUX_ARFLAGS=\"\$(ARFLAGS)\" >>\$(obj)/flags
1862         echo LINUX_CROSS_COMPILE=\"\$(CROSS_COMPILE)\" >>\$(obj)/flags
1863         echo LINUX_KERNELRELEASE=\"\$(KERNELRELEASE)\" >>\$(obj)/flags
1864         echo LINUX_CFLAGS=\"\$(CFLAGS)\" | sed 's_Iinclude_I"\$(LINUXDIR)/include"_g'>>\$(obj)/flags
1865         echo LINUX_CC=\"\$(CC)\" >>\$(obj)/flags
1866         echo LINUX_LD=\"\$(LD) \$(LDFLAGS)\" >>\$(obj)/flags
1867         echo LINUX_AS=\"\$(AS)\" >>\$(obj)/flags
1868 EOF
1869
1870         echo ${MAKE-make} -C ${LINUX_DIR} V=1 SUBDIRS=${tmpdir} LINUXDIR=${LINUX_DIR} MODVERDIR=${tmpdir} modules >&5 2>&5
1871         ${MAKE-make} -C ${LINUX_DIR} V=1 SUBDIRS=${tmpdir} LINUXDIR=${LINUX_DIR} MODVERDIR=${tmpdir} modules >&5 2>&5
1872         . ${tmpdir}/flags
1873         rm -rf ${tmpdir}
1874
1875         LINUX_MODULE_EXT=".ko"
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889         echo "$as_me:$LINENO: result: ok" >&5
1890 echo "${ECHO_T}ok" >&6
1891
1892                 ;;
1893             2.[01234])
1894
1895         echo "$as_me:$LINENO: checking for Linux CFLAGS" >&5
1896 echo $ECHO_N "checking for Linux CFLAGS... $ECHO_C" >&6
1897
1898         if [ ! -f "${LINUX_DIR}/.hdepend" ];then
1899                 { { echo "$as_me:$LINENO: error:
1900 You need to run 'make dep' on the kernel source before continuing." >&5
1901 echo "$as_me: error:
1902 You need to run 'make dep' on the kernel source before continuing." >&2;}
1903    { (exit 1); exit 1; }; }
1904         fi
1905
1906         tmpdir="`pwd`/tmp-noicrwa"
1907
1908         rm -rf ${tmpdir}
1909         mkdir ${tmpdir}
1910
1911         cat >${tmpdir}/Makefile <<EOF
1912
1913 .PHONY: modules
1914 modules:
1915         echo LINUX_ARCH=\"\$(ARCH)\" >>flags
1916         echo LINUX_AFLAGS=\"\$(AFLAGS)\" | sed 's_Iinclude_I\"\$(LINUXDIR)/include\"_g'>>flags
1917         echo LINUX_LDFLAGS=\"\" >>flags
1918         echo LINUX_ARFLAGS=\"\$(ARFLAGS)\" >>flags
1919         echo LINUX_CROSS_COMPILE=\"\$(CROSS_COMPILE)\" >>flags
1920         echo LINUX_KERNELRELEASE=\"\$(KERNELRELEASE)\" >>flags
1921         echo LINUX_CFLAGS=\"\$(CFLAGS)\" | sed 's_Iinclude_I\"\$(LINUXDIR)/include\"_g'>>flags
1922         echo LINUX_CC=\"\$(CC)\" >>flags
1923         echo LINUX_LD=\"\$(LD) \$(LDFLAGS)\" >>flags
1924         echo LINUX_AS=\"\$(AS)\" >>flags
1925 EOF
1926
1927         echo ${MAKE-make} -C ${LINUX_DIR} SUBDIRS=${tmpdir} modules >&5 2>&5
1928         ${MAKE-make} -C ${LINUX_DIR} SUBDIRS=${tmpdir} modules >&5 2>&5
1929         . ${tmpdir}/flags
1930         rm -rf ${tmpdir}
1931
1932         LINUX_MODULE_EXT=".o"
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946         echo "$as_me:$LINENO: result: ok" >&5
1947 echo "${ECHO_T}ok" >&6
1948
1949                 ;;
1950             *)
1951                 { { echo "$as_me:$LINENO: error: Unknown Linux major.minor $LINUX_VERSION_MAJOR.$LINUX_VERSION_MINOR" >&5
1952 echo "$as_me: error: Unknown Linux major.minor $LINUX_VERSION_MAJOR.$LINUX_VERSION_MINOR" >&2;}
1953    { (exit 1); exit 1; }; }
1954                 ;;
1955           esac
1956
1957           CONFIG_ORTE_KERNEL=yes
1958
1959 cat >>confdefs.h <<\_ACEOF
1960 #define CONFIG_ORTE_KERNEL 1
1961 _ACEOF
1962
1963
1964         else
1965           echo "$as_me:$LINENO: result: \"none\"" >&5
1966 echo "${ECHO_T}\"none\"" >&6
1967
1968           CONFIG_ORTE_KERNEL=no
1969
1970         fi
1971
1972
1973
1974
1975 if test ${CONFIG_ORTE_KERNEL} == "yes"; then
1976   CONFIG_ORTE_KERNEL_TRUE=
1977   CONFIG_ORTE_KERNEL_FALSE='#'
1978 else
1979   CONFIG_ORTE_KERNEL_TRUE='#'
1980   CONFIG_ORTE_KERNEL_FALSE=
1981 fi
1982
1983
1984
1985
1986
1987 # Check whether --with-rtaidir or --without-rtaidir was given.
1988 if test "${with_rtaidir+set}" = set; then
1989   withval="$with_rtaidir"
1990   RTAI_DIR="${withval}"
1991 else
1992   RTAI_DIR=/usr/src/rtai
1993 fi;
1994
1995
1996
1997         echo "$as_me:$LINENO: checking Linux config option CONFIG_RTHAL" >&5
1998 echo $ECHO_N "checking Linux config option CONFIG_RTHAL... $ECHO_C" >&6
1999
2000         if grep '^CONFIG_RTHAL=y$' ${LINUX_DIR}/.config >/dev/null 2>/dev/null; then
2001                 result=yes
2002                 CONFIG_RTHAL=yes
2003         else if grep '^CONFIG_RTHAL=m$' ${LINUX_DIR}/.config >/dev/null 2>/dev/null; then
2004                 result=module
2005                 CONFIG_RTHAL=module
2006         else
2007                 result=no
2008                 CONFIG_RTHAL=no
2009         fi
2010         fi
2011
2012         echo "$as_me:$LINENO: result: $result" >&5
2013 echo "${ECHO_T}$result" >&6
2014
2015
2016
2017
2018 if test "${CONFIG_RTHAL}" = yes -o "${CONFIG_RTHAL}" = module; then
2019   CONFIG_RTHAL_TRUE=
2020   CONFIG_RTHAL_FALSE='#'
2021 else
2022   CONFIG_RTHAL_TRUE='#'
2023   CONFIG_RTHAL_FALSE=
2024 fi
2025
2026
2027
2028         if test "${CONFIG_RTHAL}" != "no" ; then
2029                 echo "$as_me:$LINENO: checking RTAI directory ${RTAI_DIR}" >&5
2030 echo $ECHO_N "checking RTAI directory ${RTAI_DIR}... $ECHO_C" >&6
2031                 if [ -d ${RTAI_DIR}/include ] ; then
2032                         RTAI_CFLAGS="-I${RTAI_DIR}/include"
2033                 else
2034                         if  -d ${RTAI_DIR}/rtai-core/include  ; then
2035                                 RTAI_CFLAGS="-I${RTAI_DIR}/rtai-core/include"
2036                         else
2037                                 { { echo "$as_me:$LINENO: error: incorrect RTAI directory?" >&5
2038 echo "$as_me: error: incorrect RTAI directory?" >&2;}
2039    { (exit 1); exit 1; }; }
2040                         fi
2041                 fi
2042                 USE_RTAI=yes
2043                 RT_GCCLIB_DIR=`gcc -print-search-dirs | sed -n -e 's/^install: \(.*\)$/\1/p'`
2044                 RTAI_CFLAGS="${RTAI_CFLAGS} -I${RT_GCCLIB_DIR}/include -nostdinc"
2045                 echo "$as_me:$LINENO: result: found" >&5
2046 echo "${ECHO_T}found" >&6
2047
2048 cat >>confdefs.h <<\_ACEOF
2049 #define CONFIG_ORTE_RTAI 1
2050 _ACEOF
2051
2052         else
2053                 USE_RTAI=no
2054         fi
2055
2056
2057
2058
2059
2060 # Check whether --with-rtlinuxdir or --without-rtlinuxdir was given.
2061 if test "${with_rtlinuxdir+set}" = set; then
2062   withval="$with_rtlinuxdir"
2063   RTLINUX_DIR="${withval}"
2064 else
2065   RTLINUX_DIR=/usr/src/rtlinux
2066 fi;
2067
2068
2069 # Check whether --with-rtlinuxudpdir or --without-rtlinuxudpdir was given.
2070 if test "${with_rtlinuxudpdir+set}" = set; then
2071   withval="$with_rtlinuxudpdir"
2072   RTLINUXUDP_DIR="${withval}"
2073 else
2074   RTLINUXUDP_DIR="${RTLINUX_DIR}"
2075 fi;
2076
2077
2078
2079         echo "$as_me:$LINENO: checking Linux config option CONFIG_RTLINUX" >&5
2080 echo $ECHO_N "checking Linux config option CONFIG_RTLINUX... $ECHO_C" >&6
2081
2082         if grep '^CONFIG_RTLINUX=y$' ${LINUX_DIR}/.config >/dev/null 2>/dev/null; then
2083                 result=yes
2084                 CONFIG_RTLINUX=yes
2085         else if grep '^CONFIG_RTLINUX=m$' ${LINUX_DIR}/.config >/dev/null 2>/dev/null; then
2086                 result=module
2087                 CONFIG_RTLINUX=module
2088         else
2089                 result=no
2090                 CONFIG_RTLINUX=no
2091         fi
2092         fi
2093
2094         echo "$as_me:$LINENO: result: $result" >&5
2095 echo "${ECHO_T}$result" >&6
2096
2097
2098
2099
2100 if test "${CONFIG_RTLINUX}" = yes -o "${CONFIG_RTLINUX}" = module; then
2101   CONFIG_RTLINUX_TRUE=
2102   CONFIG_RTLINUX_FALSE='#'
2103 else
2104   CONFIG_RTLINUX_TRUE='#'
2105   CONFIG_RTLINUX_FALSE=
2106 fi
2107
2108
2109
2110         if test "${CONFIG_RTLINUX}" != "no" ; then
2111                 echo "$as_me:$LINENO: checking RTLinux directory ${RTLINUX_DIR} for rtl.mk" >&5
2112 echo $ECHO_N "checking RTLinux directory ${RTLINUX_DIR} for rtl.mk... $ECHO_C" >&6
2113                 if [ -d ${RTLINUX_DIR}/include ] ; then
2114                         RTLINUX_CFLAGS=`sed -n -e 's/^CFLAGS *=\(.*\)$/\1/p' ${RTLINUX_DIR}/rtl.mk`
2115                         RTLINUX_CC=`sed -n -e 's/^CC *=\(.*\)$/\1/p' ${RTLINUX_DIR}/rtl.mk`
2116                 else
2117                         { { echo "$as_me:$LINENO: error: incorrect RTLinux directory?" >&5
2118 echo "$as_me: error: incorrect RTLinux directory?" >&2;}
2119    { (exit 1); exit 1; }; }
2120                 fi
2121                 echo "$as_me:$LINENO: result: found" >&5
2122 echo "${ECHO_T}found" >&6
2123
2124 cat >>confdefs.h <<\_ACEOF
2125 #define CONFIG_ORTE_RTL 1
2126 _ACEOF
2127
2128                 echo "$as_me:$LINENO: checking RTLinux for UDP" >&5
2129 echo $ECHO_N "checking RTLinux for UDP... $ECHO_C" >&6
2130                 if [ ! -e "${RTLINUXUDP_DIR}/include/udp.h" -o \
2131                       ! -e "${RTLINUXUDP_DIR}/include/nic.h" -o \
2132                       ! -e "${RTLINUXUDP_DIR}/include/ip.h" -o \
2133                       ! -e "${RTLINUXUDP_DIR}/include/ethernet.h" -o \
2134                       ! -e "${RTLINUXUDP_DIR}/include/nictab.h" ] ; then
2135                         { { echo "$as_me:$LINENO: error: incorrect RTLinux UDP directory!!!" >&5
2136 echo "$as_me: error: incorrect RTLinux UDP directory!!!" >&2;}
2137    { (exit 1); exit 1; }; }
2138                 fi
2139                 RT_GCCLIB_DIR=`${RTLINUX_CC} -print-search-dirs | sed -n -e 's/^install: \(.*\)$/\1/p'`
2140                 RTLINUX_CFLAGS="${RTLINUX_CFLAGS} -I${RTLINUXUDP_DIR}/include -I${RT_GCCLIB_DIR}/include -nostdinc"
2141                 echo "$as_me:$LINENO: result: found" >&5
2142 echo "${ECHO_T}found" >&6
2143                 USE_RTLINUX=yes
2144         else
2145                 USE_RTLINUX=no
2146         fi
2147
2148
2149
2150         if test ${USE_RTAI} == "yes" -o ${USE_RTLINUX} == "yes" ; then
2151
2152 cat >>confdefs.h <<\_ACEOF
2153 #define CONFIG_ORTE_RT 1
2154 _ACEOF
2155
2156                 CONFIG_ORTE_RT="yes"
2157         fi
2158
2159
2160
2161 if test ${USE_RTAI} == "yes"; then
2162   USE_RTAI_TRUE=
2163   USE_RTAI_FALSE='#'
2164 else
2165   USE_RTAI_TRUE='#'
2166   USE_RTAI_FALSE=
2167 fi
2168
2169
2170
2171 if test ${USE_RTLINUX} == "yes"; then
2172   USE_RTLINUX_TRUE=
2173   USE_RTLINUX_FALSE='#'
2174 else
2175   USE_RTLINUX_TRUE='#'
2176   USE_RTLINUX_FALSE=
2177 fi
2178
2179
2180
2181 if test ${USE_RTAI} == "yes" -o ${USE_RTLINUX} == "yes"; then
2182   CONFIG_ORTE_RT_TRUE=
2183   CONFIG_ORTE_RT_FALSE='#'
2184 else
2185   CONFIG_ORTE_RT_TRUE='#'
2186   CONFIG_ORTE_RT_FALSE=
2187 fi
2188
2189
2190
2191
2192 ###############################
2193 # Package info
2194 ORTE_MAJOR_VERSION=0
2195 ORTE_MINOR_VERSION=2
2196 ORTE_MICRO_VERSION=0
2197 ORTE_VERSION=$ORTE_MAJOR_VERSION.$ORTE_MINOR_VERSION.$ORTE_MICRO_VERSION
2198
2199
2200
2201
2202
2203
2204 ###############################
2205 # target
2206 WIN='no'
2207 UNIX='no'
2208 case "$target" in
2209   *-cygwin* | *-mingw*)
2210     CFLAGS="$CFLAGS"
2211     WIN='yes'
2212
2213 cat >>confdefs.h <<\_ACEOF
2214 #define CONFIG_ORTE_WIN 1
2215 _ACEOF
2216
2217     ;;
2218   *)
2219     # Assume Unix.
2220     if test -z ${CONFIG_ORTE_RT} -a ${CONFIG_ORTE_KERNEL} ; then
2221       UNIX='yes'
2222
2223 cat >>confdefs.h <<\_ACEOF
2224 #define CONFIG_ORTE_UNIX 1
2225 _ACEOF
2226
2227     fi
2228     ;;
2229 esac
2230
2231
2232 if test x$WIN = xyes; then
2233   CONFIG_ORTE_WIN_TRUE=
2234   CONFIG_ORTE_WIN_FALSE='#'
2235 else
2236   CONFIG_ORTE_WIN_TRUE='#'
2237   CONFIG_ORTE_WIN_FALSE=
2238 fi
2239
2240
2241
2242 if test x$UNIX = xyes; then
2243   CONFIG_ORTE_UNIX_TRUE=
2244   CONFIG_ORTE_UNIX_FALSE='#'
2245 else
2246   CONFIG_ORTE_UNIX_TRUE='#'
2247   CONFIG_ORTE_UNIX_FALSE=
2248 fi
2249
2250
2251 ###############################
2252 # modules
2253 moduledir="\$(libdir)/modules/\$(LINUX_KERNELRELEASE)/orte"
2254 modulePROGRAMS_INSTALL="\$(top_builddir)/modtool --install"
2255 modulePROGRAMS_UNINSTALL="\$(top_builddir)/modtool --uninstall"
2256
2257
2258
2259 ###############################
2260 # CFLAGS
2261 CFLAGS="$CFLAGS -Wall"
2262 if test ${USE_RTLINUX} == 'yes' ; then
2263   CFLAGS="$CFLAGS $RTLINUX_CFLAGS"
2264   CC="$RTLINUX_CC"
2265 else
2266   if test ${USE_RTAI} == 'yes' ; then
2267     CFLAGS="$CFLAGS $RTAI_CFLAGS $LINUX_CFLAGS"
2268   else
2269     if test -n ${CONFIG_ORTE_KERNEL} ; then
2270       CFLAGS="$CFLAGS $LINUX_CFLAGS"
2271     fi
2272   fi
2273 fi
2274
2275 ###############################
2276 # Checks for programs.
2277 ac_ext=c
2278 ac_cpp='$CPP $CPPFLAGS'
2279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2282 if test -n "$ac_tool_prefix"; then
2283   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2284 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2285 echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2287 if test "${ac_cv_prog_CC+set}" = set; then
2288   echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290   if test -n "$CC"; then
2291   ac_cv_prog_CC="$CC" # Let the user override the test.
2292 else
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2295 do
2296   IFS=$as_save_IFS
2297   test -z "$as_dir" && as_dir=.
2298   for ac_exec_ext in '' $ac_executable_extensions; do
2299   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2300     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302     break 2
2303   fi
2304 done
2305 done
2306
2307 fi
2308 fi
2309 CC=$ac_cv_prog_CC
2310 if test -n "$CC"; then
2311   echo "$as_me:$LINENO: result: $CC" >&5
2312 echo "${ECHO_T}$CC" >&6
2313 else
2314   echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}no" >&6
2316 fi
2317
2318 fi
2319 if test -z "$ac_cv_prog_CC"; then
2320   ac_ct_CC=$CC
2321   # Extract the first word of "gcc", so it can be a program name with args.
2322 set dummy gcc; ac_word=$2
2323 echo "$as_me:$LINENO: checking for $ac_word" >&5
2324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2325 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2326   echo $ECHO_N "(cached) $ECHO_C" >&6
2327 else
2328   if test -n "$ac_ct_CC"; then
2329   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2330 else
2331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332 for as_dir in $PATH
2333 do
2334   IFS=$as_save_IFS
2335   test -z "$as_dir" && as_dir=.
2336   for ac_exec_ext in '' $ac_executable_extensions; do
2337   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2338     ac_cv_prog_ac_ct_CC="gcc"
2339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2340     break 2
2341   fi
2342 done
2343 done
2344
2345 fi
2346 fi
2347 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2348 if test -n "$ac_ct_CC"; then
2349   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2350 echo "${ECHO_T}$ac_ct_CC" >&6
2351 else
2352   echo "$as_me:$LINENO: result: no" >&5
2353 echo "${ECHO_T}no" >&6
2354 fi
2355
2356   CC=$ac_ct_CC
2357 else
2358   CC="$ac_cv_prog_CC"
2359 fi
2360
2361 if test -z "$CC"; then
2362   if test -n "$ac_tool_prefix"; then
2363   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2364 set dummy ${ac_tool_prefix}cc; ac_word=$2
2365 echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2367 if test "${ac_cv_prog_CC+set}" = set; then
2368   echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370   if test -n "$CC"; then
2371   ac_cv_prog_CC="$CC" # Let the user override the test.
2372 else
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 for as_dir in $PATH
2375 do
2376   IFS=$as_save_IFS
2377   test -z "$as_dir" && as_dir=.
2378   for ac_exec_ext in '' $ac_executable_extensions; do
2379   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2380     ac_cv_prog_CC="${ac_tool_prefix}cc"
2381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382     break 2
2383   fi
2384 done
2385 done
2386
2387 fi
2388 fi
2389 CC=$ac_cv_prog_CC
2390 if test -n "$CC"; then
2391   echo "$as_me:$LINENO: result: $CC" >&5
2392 echo "${ECHO_T}$CC" >&6
2393 else
2394   echo "$as_me:$LINENO: result: no" >&5
2395 echo "${ECHO_T}no" >&6
2396 fi
2397
2398 fi
2399 if test -z "$ac_cv_prog_CC"; then
2400   ac_ct_CC=$CC
2401   # Extract the first word of "cc", so it can be a program name with args.
2402 set dummy cc; ac_word=$2
2403 echo "$as_me:$LINENO: checking for $ac_word" >&5
2404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2405 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2406   echo $ECHO_N "(cached) $ECHO_C" >&6
2407 else
2408   if test -n "$ac_ct_CC"; then
2409   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2410 else
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 for as_dir in $PATH
2413 do
2414   IFS=$as_save_IFS
2415   test -z "$as_dir" && as_dir=.
2416   for ac_exec_ext in '' $ac_executable_extensions; do
2417   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2418     ac_cv_prog_ac_ct_CC="cc"
2419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2420     break 2
2421   fi
2422 done
2423 done
2424
2425 fi
2426 fi
2427 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2428 if test -n "$ac_ct_CC"; then
2429   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2430 echo "${ECHO_T}$ac_ct_CC" >&6
2431 else
2432   echo "$as_me:$LINENO: result: no" >&5
2433 echo "${ECHO_T}no" >&6
2434 fi
2435
2436   CC=$ac_ct_CC
2437 else
2438   CC="$ac_cv_prog_CC"
2439 fi
2440
2441 fi
2442 if test -z "$CC"; then
2443   # Extract the first word of "cc", so it can be a program name with args.
2444 set dummy cc; ac_word=$2
2445 echo "$as_me:$LINENO: checking for $ac_word" >&5
2446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2447 if test "${ac_cv_prog_CC+set}" = set; then
2448   echo $ECHO_N "(cached) $ECHO_C" >&6
2449 else
2450   if test -n "$CC"; then
2451   ac_cv_prog_CC="$CC" # Let the user override the test.
2452 else
2453   ac_prog_rejected=no
2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455 for as_dir in $PATH
2456 do
2457   IFS=$as_save_IFS
2458   test -z "$as_dir" && as_dir=.
2459   for ac_exec_ext in '' $ac_executable_extensions; do
2460   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2461     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2462        ac_prog_rejected=yes
2463        continue
2464      fi
2465     ac_cv_prog_CC="cc"
2466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2467     break 2
2468   fi
2469 done
2470 done
2471
2472 if test $ac_prog_rejected = yes; then
2473   # We found a bogon in the path, so make sure we never use it.
2474   set dummy $ac_cv_prog_CC
2475   shift
2476   if test $# != 0; then
2477     # We chose a different compiler from the bogus one.
2478     # However, it has the same basename, so the bogon will be chosen
2479     # first if we set CC to just the basename; use the full file name.
2480     shift
2481     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2482   fi
2483 fi
2484 fi
2485 fi
2486 CC=$ac_cv_prog_CC
2487 if test -n "$CC"; then
2488   echo "$as_me:$LINENO: result: $CC" >&5
2489 echo "${ECHO_T}$CC" >&6
2490 else
2491   echo "$as_me:$LINENO: result: no" >&5
2492 echo "${ECHO_T}no" >&6
2493 fi
2494
2495 fi
2496 if test -z "$CC"; then
2497   if test -n "$ac_tool_prefix"; then
2498   for ac_prog in cl
2499   do
2500     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2501 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2502 echo "$as_me:$LINENO: checking for $ac_word" >&5
2503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2504 if test "${ac_cv_prog_CC+set}" = set; then
2505   echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507   if test -n "$CC"; then
2508   ac_cv_prog_CC="$CC" # Let the user override the test.
2509 else
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 for as_dir in $PATH
2512 do
2513   IFS=$as_save_IFS
2514   test -z "$as_dir" && as_dir=.
2515   for ac_exec_ext in '' $ac_executable_extensions; do
2516   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2517     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2519     break 2
2520   fi
2521 done
2522 done
2523
2524 fi
2525 fi
2526 CC=$ac_cv_prog_CC
2527 if test -n "$CC"; then
2528   echo "$as_me:$LINENO: result: $CC" >&5
2529 echo "${ECHO_T}$CC" >&6
2530 else
2531   echo "$as_me:$LINENO: result: no" >&5
2532 echo "${ECHO_T}no" >&6
2533 fi
2534
2535     test -n "$CC" && break
2536   done
2537 fi
2538 if test -z "$CC"; then
2539   ac_ct_CC=$CC
2540   for ac_prog in cl
2541 do
2542   # Extract the first word of "$ac_prog", so it can be a program name with args.
2543 set dummy $ac_prog; ac_word=$2
2544 echo "$as_me:$LINENO: checking for $ac_word" >&5
2545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2546 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2547   echo $ECHO_N "(cached) $ECHO_C" >&6
2548 else
2549   if test -n "$ac_ct_CC"; then
2550   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2551 else
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 for as_dir in $PATH
2554 do
2555   IFS=$as_save_IFS
2556   test -z "$as_dir" && as_dir=.
2557   for ac_exec_ext in '' $ac_executable_extensions; do
2558   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2559     ac_cv_prog_ac_ct_CC="$ac_prog"
2560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2561     break 2
2562   fi
2563 done
2564 done
2565
2566 fi
2567 fi
2568 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2569 if test -n "$ac_ct_CC"; then
2570   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2571 echo "${ECHO_T}$ac_ct_CC" >&6
2572 else
2573   echo "$as_me:$LINENO: result: no" >&5
2574 echo "${ECHO_T}no" >&6
2575 fi
2576
2577   test -n "$ac_ct_CC" && break
2578 done
2579
2580   CC=$ac_ct_CC
2581 fi
2582
2583 fi
2584
2585
2586 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2587 See \`config.log' for more details." >&5
2588 echo "$as_me: error: no acceptable C compiler found in \$PATH
2589 See \`config.log' for more details." >&2;}
2590    { (exit 1); exit 1; }; }
2591
2592 # Provide some information about the compiler.
2593 echo "$as_me:$LINENO:" \
2594      "checking for C compiler version" >&5
2595 ac_compiler=`set X $ac_compile; echo $2`
2596 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2597   (eval $ac_compiler --version </dev/null >&5) 2>&5
2598   ac_status=$?
2599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600   (exit $ac_status); }
2601 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2602   (eval $ac_compiler -v </dev/null >&5) 2>&5
2603   ac_status=$?
2604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605   (exit $ac_status); }
2606 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2607   (eval $ac_compiler -V </dev/null >&5) 2>&5
2608   ac_status=$?
2609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610   (exit $ac_status); }
2611
2612 cat >conftest.$ac_ext <<_ACEOF
2613 /* confdefs.h.  */
2614 _ACEOF
2615 cat confdefs.h >>conftest.$ac_ext
2616 cat >>conftest.$ac_ext <<_ACEOF
2617 /* end confdefs.h.  */
2618
2619 int
2620 main ()
2621 {
2622
2623   ;
2624   return 0;
2625 }
2626 _ACEOF
2627 ac_clean_files_save=$ac_clean_files
2628 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2629 # Try to create an executable without -o first, disregard a.out.
2630 # It will help us diagnose broken compilers, and finding out an intuition
2631 # of exeext.
2632 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2633 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2634 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2635 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2636   (eval $ac_link_default) 2>&5
2637   ac_status=$?
2638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639   (exit $ac_status); }; then
2640   # Find the output, starting from the most likely.  This scheme is
2641 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2642 # resort.
2643
2644 # Be careful to initialize this variable, since it used to be cached.
2645 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2646 ac_cv_exeext=
2647 # b.out is created by i960 compilers.
2648 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2649 do
2650   test -f "$ac_file" || continue
2651   case $ac_file in
2652     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2653         ;;
2654     conftest.$ac_ext )
2655         # This is the source file.
2656         ;;
2657     [ab].out )
2658         # We found the default executable, but exeext='' is most
2659         # certainly right.
2660         break;;
2661     *.* )
2662         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2663         # FIXME: I believe we export ac_cv_exeext for Libtool,
2664         # but it would be cool to find out if it's true.  Does anybody
2665         # maintain Libtool? --akim.
2666         export ac_cv_exeext
2667         break;;
2668     * )
2669         break;;
2670   esac
2671 done
2672 else
2673   echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.$ac_ext >&5
2675
2676 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2677 See \`config.log' for more details." >&5
2678 echo "$as_me: error: C compiler cannot create executables
2679 See \`config.log' for more details." >&2;}
2680    { (exit 77); exit 77; }; }
2681 fi
2682
2683 ac_exeext=$ac_cv_exeext
2684 echo "$as_me:$LINENO: result: $ac_file" >&5
2685 echo "${ECHO_T}$ac_file" >&6
2686
2687 # Check the compiler produces executables we can run.  If not, either
2688 # the compiler is broken, or we cross compile.
2689 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2690 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2691 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2692 # If not cross compiling, check that we can run a simple program.
2693 if test "$cross_compiling" != yes; then
2694   if { ac_try='./$ac_file'
2695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696   (eval $ac_try) 2>&5
2697   ac_status=$?
2698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699   (exit $ac_status); }; }; then
2700     cross_compiling=no
2701   else
2702     if test "$cross_compiling" = maybe; then
2703         cross_compiling=yes
2704     else
2705         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2706 If you meant to cross compile, use \`--host'.
2707 See \`config.log' for more details." >&5
2708 echo "$as_me: error: cannot run C compiled programs.
2709 If you meant to cross compile, use \`--host'.
2710 See \`config.log' for more details." >&2;}
2711    { (exit 1); exit 1; }; }
2712     fi
2713   fi
2714 fi
2715 echo "$as_me:$LINENO: result: yes" >&5
2716 echo "${ECHO_T}yes" >&6
2717
2718 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2719 ac_clean_files=$ac_clean_files_save
2720 # Check the compiler produces executables we can run.  If not, either
2721 # the compiler is broken, or we cross compile.
2722 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2723 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2724 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2725 echo "${ECHO_T}$cross_compiling" >&6
2726
2727 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2728 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2730   (eval $ac_link) 2>&5
2731   ac_status=$?
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); }; then
2734   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2735 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2736 # work properly (i.e., refer to `conftest.exe'), while it won't with
2737 # `rm'.
2738 for ac_file in conftest.exe conftest conftest.*; do
2739   test -f "$ac_file" || continue
2740   case $ac_file in
2741     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2742     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2743           export ac_cv_exeext
2744           break;;
2745     * ) break;;
2746   esac
2747 done
2748 else
2749   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2750 See \`config.log' for more details." >&5
2751 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2752 See \`config.log' for more details." >&2;}
2753    { (exit 1); exit 1; }; }
2754 fi
2755
2756 rm -f conftest$ac_cv_exeext
2757 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2758 echo "${ECHO_T}$ac_cv_exeext" >&6
2759
2760 rm -f conftest.$ac_ext
2761 EXEEXT=$ac_cv_exeext
2762 ac_exeext=$EXEEXT
2763 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2764 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2765 if test "${ac_cv_objext+set}" = set; then
2766   echo $ECHO_N "(cached) $ECHO_C" >&6
2767 else
2768   cat >conftest.$ac_ext <<_ACEOF
2769 /* confdefs.h.  */
2770 _ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h.  */
2774
2775 int
2776 main ()
2777 {
2778
2779   ;
2780   return 0;
2781 }
2782 _ACEOF
2783 rm -f conftest.o conftest.obj
2784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785   (eval $ac_compile) 2>&5
2786   ac_status=$?
2787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788   (exit $ac_status); }; then
2789   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2790   case $ac_file in
2791     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2792     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2793        break;;
2794   esac
2795 done
2796 else
2797   echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2799
2800 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2801 See \`config.log' for more details." >&5
2802 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2803 See \`config.log' for more details." >&2;}
2804    { (exit 1); exit 1; }; }
2805 fi
2806
2807 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2808 fi
2809 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2810 echo "${ECHO_T}$ac_cv_objext" >&6
2811 OBJEXT=$ac_cv_objext
2812 ac_objext=$OBJEXT
2813 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2814 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2815 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2816   echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818   cat >conftest.$ac_ext <<_ACEOF
2819 /* confdefs.h.  */
2820 _ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h.  */
2824
2825 int
2826 main ()
2827 {
2828 #ifndef __GNUC__
2829        choke me
2830 #endif
2831
2832   ;
2833   return 0;
2834 }
2835 _ACEOF
2836 rm -f conftest.$ac_objext
2837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2838   (eval $ac_compile) 2>conftest.er1
2839   ac_status=$?
2840   grep -v '^ *+' conftest.er1 >conftest.err
2841   rm -f conftest.er1
2842   cat conftest.err >&5
2843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844   (exit $ac_status); } &&
2845          { ac_try='test -z "$ac_c_werror_flag"
2846                          || test ! -s conftest.err'
2847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848   (eval $ac_try) 2>&5
2849   ac_status=$?
2850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851   (exit $ac_status); }; } &&
2852          { ac_try='test -s conftest.$ac_objext'
2853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854   (eval $ac_try) 2>&5
2855   ac_status=$?
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); }; }; then
2858   ac_compiler_gnu=yes
2859 else
2860   echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2862
2863 ac_compiler_gnu=no
2864 fi
2865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2866 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2867
2868 fi
2869 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2870 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2871 GCC=`test $ac_compiler_gnu = yes && echo yes`
2872 ac_test_CFLAGS=${CFLAGS+set}
2873 ac_save_CFLAGS=$CFLAGS
2874 CFLAGS="-g"
2875 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2876 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2877 if test "${ac_cv_prog_cc_g+set}" = set; then
2878   echo $ECHO_N "(cached) $ECHO_C" >&6
2879 else
2880   cat >conftest.$ac_ext <<_ACEOF
2881 /* confdefs.h.  */
2882 _ACEOF
2883 cat confdefs.h >>conftest.$ac_ext
2884 cat >>conftest.$ac_ext <<_ACEOF
2885 /* end confdefs.h.  */
2886
2887 int
2888 main ()
2889 {
2890
2891   ;
2892   return 0;
2893 }
2894 _ACEOF
2895 rm -f conftest.$ac_objext
2896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2897   (eval $ac_compile) 2>conftest.er1
2898   ac_status=$?
2899   grep -v '^ *+' conftest.er1 >conftest.err
2900   rm -f conftest.er1
2901   cat conftest.err >&5
2902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903   (exit $ac_status); } &&
2904          { ac_try='test -z "$ac_c_werror_flag"
2905                          || test ! -s conftest.err'
2906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2907   (eval $ac_try) 2>&5
2908   ac_status=$?
2909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910   (exit $ac_status); }; } &&
2911          { ac_try='test -s conftest.$ac_objext'
2912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2913   (eval $ac_try) 2>&5
2914   ac_status=$?
2915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916   (exit $ac_status); }; }; then
2917   ac_cv_prog_cc_g=yes
2918 else
2919   echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2921
2922 ac_cv_prog_cc_g=no
2923 fi
2924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2925 fi
2926 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2927 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2928 if test "$ac_test_CFLAGS" = set; then
2929   CFLAGS=$ac_save_CFLAGS
2930 elif test $ac_cv_prog_cc_g = yes; then
2931   if test "$GCC" = yes; then
2932     CFLAGS="-g -O2"
2933   else
2934     CFLAGS="-g"
2935   fi
2936 else
2937   if test "$GCC" = yes; then
2938     CFLAGS="-O2"
2939   else
2940     CFLAGS=
2941   fi
2942 fi
2943 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2944 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2945 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2946   echo $ECHO_N "(cached) $ECHO_C" >&6
2947 else
2948   ac_cv_prog_cc_stdc=no
2949 ac_save_CC=$CC
2950 cat >conftest.$ac_ext <<_ACEOF
2951 /* confdefs.h.  */
2952 _ACEOF
2953 cat confdefs.h >>conftest.$ac_ext
2954 cat >>conftest.$ac_ext <<_ACEOF
2955 /* end confdefs.h.  */
2956 #include <stdarg.h>
2957 #include <stdio.h>
2958 #include <sys/types.h>
2959 #include <sys/stat.h>
2960 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2961 struct buf { int x; };
2962 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2963 static char *e (p, i)
2964      char **p;
2965      int i;
2966 {
2967   return p[i];
2968 }
2969 static char *f (char * (*g) (char **, int), char **p, ...)
2970 {
2971   char *s;
2972   va_list v;
2973   va_start (v,p);
2974   s = g (p, va_arg (v,int));
2975   va_end (v);
2976   return s;
2977 }
2978
2979 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2980    function prototypes and stuff, but not '\xHH' hex character constants.
2981    These don't provoke an error unfortunately, instead are silently treated
2982    as 'x'.  The following induces an error, until -std1 is added to get
2983    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2984    array size at least.  It's necessary to write '\x00'==0 to get something
2985    that's true only with -std1.  */
2986 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2987
2988 int test (int i, double x);
2989 struct s1 {int (*f) (int a);};
2990 struct s2 {int (*f) (double a);};
2991 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2992 int argc;
2993 char **argv;
2994 int
2995 main ()
2996 {
2997 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2998   ;
2999   return 0;
3000 }
3001 _ACEOF
3002 # Don't try gcc -ansi; that turns off useful extensions and
3003 # breaks some systems' header files.
3004 # AIX                   -qlanglvl=ansi
3005 # Ultrix and OSF/1      -std1
3006 # HP-UX 10.20 and later -Ae
3007 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3008 # SVR4                  -Xc -D__EXTENSIONS__
3009 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3010 do
3011   CC="$ac_save_CC $ac_arg"
3012   rm -f conftest.$ac_objext
3013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3014   (eval $ac_compile) 2>conftest.er1
3015   ac_status=$?
3016   grep -v '^ *+' conftest.er1 >conftest.err
3017   rm -f conftest.er1
3018   cat conftest.err >&5
3019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020   (exit $ac_status); } &&
3021          { ac_try='test -z "$ac_c_werror_flag"
3022                          || test ! -s conftest.err'
3023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024   (eval $ac_try) 2>&5
3025   ac_status=$?
3026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027   (exit $ac_status); }; } &&
3028          { ac_try='test -s conftest.$ac_objext'
3029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030   (eval $ac_try) 2>&5
3031   ac_status=$?
3032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033   (exit $ac_status); }; }; then
3034   ac_cv_prog_cc_stdc=$ac_arg
3035 break
3036 else
3037   echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3039
3040 fi
3041 rm -f conftest.err conftest.$ac_objext
3042 done
3043 rm -f conftest.$ac_ext conftest.$ac_objext
3044 CC=$ac_save_CC
3045
3046 fi
3047
3048 case "x$ac_cv_prog_cc_stdc" in
3049   x|xno)
3050     echo "$as_me:$LINENO: result: none needed" >&5
3051 echo "${ECHO_T}none needed" >&6 ;;
3052   *)
3053     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3054 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3055     CC="$CC $ac_cv_prog_cc_stdc" ;;
3056 esac
3057
3058 # Some people use a C++ compiler to compile C.  Since we use `exit',
3059 # in C++ we need to declare it.  In case someone uses the same compiler
3060 # for both compiling C and C++ we need to have the C++ compiler decide
3061 # the declaration of exit, since it's the most demanding environment.
3062 cat >conftest.$ac_ext <<_ACEOF
3063 #ifndef __cplusplus
3064   choke me
3065 #endif
3066 _ACEOF
3067 rm -f conftest.$ac_objext
3068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3069   (eval $ac_compile) 2>conftest.er1
3070   ac_status=$?
3071   grep -v '^ *+' conftest.er1 >conftest.err
3072   rm -f conftest.er1
3073   cat conftest.err >&5
3074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075   (exit $ac_status); } &&
3076          { ac_try='test -z "$ac_c_werror_flag"
3077                          || test ! -s conftest.err'
3078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3079   (eval $ac_try) 2>&5
3080   ac_status=$?
3081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082   (exit $ac_status); }; } &&
3083          { ac_try='test -s conftest.$ac_objext'
3084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085   (eval $ac_try) 2>&5
3086   ac_status=$?
3087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088   (exit $ac_status); }; }; then
3089   for ac_declaration in \
3090    '' \
3091    'extern "C" void std::exit (int) throw (); using std::exit;' \
3092    'extern "C" void std::exit (int); using std::exit;' \
3093    'extern "C" void exit (int) throw ();' \
3094    'extern "C" void exit (int);' \
3095    'void exit (int);'
3096 do
3097   cat >conftest.$ac_ext <<_ACEOF
3098 /* confdefs.h.  */
3099 _ACEOF
3100 cat confdefs.h >>conftest.$ac_ext
3101 cat >>conftest.$ac_ext <<_ACEOF
3102 /* end confdefs.h.  */
3103 $ac_declaration
3104 #include <stdlib.h>
3105 int
3106 main ()
3107 {
3108 exit (42);
3109   ;
3110   return 0;
3111 }
3112 _ACEOF
3113 rm -f conftest.$ac_objext
3114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3115   (eval $ac_compile) 2>conftest.er1
3116   ac_status=$?
3117   grep -v '^ *+' conftest.er1 >conftest.err
3118   rm -f conftest.er1
3119   cat conftest.err >&5
3120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121   (exit $ac_status); } &&
3122          { ac_try='test -z "$ac_c_werror_flag"
3123                          || test ! -s conftest.err'
3124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3125   (eval $ac_try) 2>&5
3126   ac_status=$?
3127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128   (exit $ac_status); }; } &&
3129          { ac_try='test -s conftest.$ac_objext'
3130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3131   (eval $ac_try) 2>&5
3132   ac_status=$?
3133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134   (exit $ac_status); }; }; then
3135   :
3136 else
3137   echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3139
3140 continue
3141 fi
3142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3143   cat >conftest.$ac_ext <<_ACEOF
3144 /* confdefs.h.  */
3145 _ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h.  */
3149 $ac_declaration
3150 int
3151 main ()
3152 {
3153 exit (42);
3154   ;
3155   return 0;
3156 }
3157 _ACEOF
3158 rm -f conftest.$ac_objext
3159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3160   (eval $ac_compile) 2>conftest.er1
3161   ac_status=$?
3162   grep -v '^ *+' conftest.er1 >conftest.err
3163   rm -f conftest.er1
3164   cat conftest.err >&5
3165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166   (exit $ac_status); } &&
3167          { ac_try='test -z "$ac_c_werror_flag"
3168                          || test ! -s conftest.err'
3169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3170   (eval $ac_try) 2>&5
3171   ac_status=$?
3172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173   (exit $ac_status); }; } &&
3174          { ac_try='test -s conftest.$ac_objext'
3175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176   (eval $ac_try) 2>&5
3177   ac_status=$?
3178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179   (exit $ac_status); }; }; then
3180   break
3181 else
3182   echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3184
3185 fi
3186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3187 done
3188 rm -f conftest*
3189 if test -n "$ac_declaration"; then
3190   echo '#ifdef __cplusplus' >>confdefs.h
3191   echo $ac_declaration      >>confdefs.h
3192   echo '#endif'             >>confdefs.h
3193 fi
3194
3195 else
3196   echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3198
3199 fi
3200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3201 ac_ext=c
3202 ac_cpp='$CPP $CPPFLAGS'
3203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3206 rm -f .deps 2>/dev/null
3207 mkdir .deps 2>/dev/null
3208 if test -d .deps; then
3209   DEPDIR=.deps
3210 else
3211   # MS-DOS does not allow filenames that begin with a dot.
3212   DEPDIR=_deps
3213 fi
3214 rmdir .deps 2>/dev/null
3215
3216
3217           ac_config_commands="$ac_config_commands depfiles"
3218
3219
3220 am_make=${MAKE-make}
3221 cat > confinc << 'END'
3222 doit:
3223         @echo done
3224 END
3225 # If we don't find an include directive, just comment out the code.
3226 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3227 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3228 am__include="#"
3229 am__quote=
3230 _am_result=none
3231 # First try GNU make style include.
3232 echo "include confinc" > confmf
3233 # We grep out `Entering directory' and `Leaving directory'
3234 # messages which can occur if `w' ends up in MAKEFLAGS.
3235 # In particular we don't look at `^make:' because GNU make might
3236 # be invoked under some other name (usually "gmake"), in which
3237 # case it prints its new name instead of `make'.
3238 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
3239    am__include=include
3240    am__quote=
3241    _am_result=GNU
3242 fi
3243 # Now try BSD make style include.
3244 if test "$am__include" = "#"; then
3245    echo '.include "confinc"' > confmf
3246    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3247       am__include=.include
3248       am__quote="\""
3249       _am_result=BSD
3250    fi
3251 fi
3252
3253
3254 echo "$as_me:$LINENO: result: $_am_result" >&5
3255 echo "${ECHO_T}$_am_result" >&6
3256 rm -f confinc confmf
3257
3258 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3259 if test "${enable_dependency_tracking+set}" = set; then
3260   enableval="$enable_dependency_tracking"
3261
3262 fi;
3263 if test "x$enable_dependency_tracking" != xno; then
3264   am_depcomp="$ac_aux_dir/depcomp"
3265   AMDEPBACKSLASH='\'
3266 fi
3267
3268
3269 if test "x$enable_dependency_tracking" != xno; then
3270   AMDEP_TRUE=
3271   AMDEP_FALSE='#'
3272 else
3273   AMDEP_TRUE='#'
3274   AMDEP_FALSE=
3275 fi
3276
3277
3278
3279
3280 depcc="$CC"   am_compiler_list=
3281
3282 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3283 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3284 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3285   echo $ECHO_N "(cached) $ECHO_C" >&6
3286 else
3287   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3288   # We make a subdir and do the tests there.  Otherwise we can end up
3289   # making bogus files that we don't know about and never remove.  For
3290   # instance it was reported that on HP-UX the gcc test will end up
3291   # making a dummy file named `D' -- because `-MD' means `put the output
3292   # in D'.
3293   mkdir conftest.dir
3294   # Copy depcomp to subdir because otherwise we won't find it if we're
3295   # using a relative directory.
3296   cp "$am_depcomp" conftest.dir
3297   cd conftest.dir
3298
3299   am_cv_CC_dependencies_compiler_type=none
3300   if test "$am_compiler_list" = ""; then
3301      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3302   fi
3303   for depmode in $am_compiler_list; do
3304     # We need to recreate these files for each test, as the compiler may
3305     # overwrite some of them when testing with obscure command lines.
3306     # This happens at least with the AIX C compiler.
3307     echo '#include "conftest.h"' > conftest.c
3308     echo 'int i;' > conftest.h
3309     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3310
3311     case $depmode in
3312     nosideeffect)
3313       # after this tag, mechanisms are not by side-effect, so they'll
3314       # only be used when explicitly requested
3315       if test "x$enable_dependency_tracking" = xyes; then
3316         continue
3317       else
3318         break
3319       fi
3320       ;;
3321     none) break ;;
3322     esac
3323     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3324     # mode.  It turns out that the SunPro C++ compiler does not properly
3325     # handle `-M -o', and we need to detect this.
3326     if depmode=$depmode \
3327        source=conftest.c object=conftest.o \
3328        depfile=conftest.Po tmpdepfile=conftest.TPo \
3329        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3330        grep conftest.h conftest.Po > /dev/null 2>&1 &&
3331        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3332       am_cv_CC_dependencies_compiler_type=$depmode
3333       break
3334     fi
3335   done
3336
3337   cd ..
3338   rm -rf conftest.dir
3339 else
3340   am_cv_CC_dependencies_compiler_type=none
3341 fi
3342
3343 fi
3344 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3345 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3346 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3347
3348
3349 if test -n "$ac_tool_prefix"; then
3350   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3351 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3352 echo "$as_me:$LINENO: checking for $ac_word" >&5
3353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3354 if test "${ac_cv_prog_RANLIB+set}" = set; then
3355   echo $ECHO_N "(cached) $ECHO_C" >&6
3356 else
3357   if test -n "$RANLIB"; then
3358   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3359 else
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 for as_dir in $PATH
3362 do
3363   IFS=$as_save_IFS
3364   test -z "$as_dir" && as_dir=.
3365   for ac_exec_ext in '' $ac_executable_extensions; do
3366   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3367     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3369     break 2
3370   fi
3371 done
3372 done
3373
3374 fi
3375 fi
3376 RANLIB=$ac_cv_prog_RANLIB
3377 if test -n "$RANLIB"; then
3378   echo "$as_me:$LINENO: result: $RANLIB" >&5
3379 echo "${ECHO_T}$RANLIB" >&6
3380 else
3381   echo "$as_me:$LINENO: result: no" >&5
3382 echo "${ECHO_T}no" >&6
3383 fi
3384
3385 fi
3386 if test -z "$ac_cv_prog_RANLIB"; then
3387   ac_ct_RANLIB=$RANLIB
3388   # Extract the first word of "ranlib", so it can be a program name with args.
3389 set dummy ranlib; ac_word=$2
3390 echo "$as_me:$LINENO: checking for $ac_word" >&5
3391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3392 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3393   echo $ECHO_N "(cached) $ECHO_C" >&6
3394 else
3395   if test -n "$ac_ct_RANLIB"; then
3396   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3397 else
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3400 do
3401   IFS=$as_save_IFS
3402   test -z "$as_dir" && as_dir=.
3403   for ac_exec_ext in '' $ac_executable_extensions; do
3404   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405     ac_cv_prog_ac_ct_RANLIB="ranlib"
3406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3407     break 2
3408   fi
3409 done
3410 done
3411
3412   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3413 fi
3414 fi
3415 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3416 if test -n "$ac_ct_RANLIB"; then
3417   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3418 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3419 else
3420   echo "$as_me:$LINENO: result: no" >&5
3421 echo "${ECHO_T}no" >&6
3422 fi
3423
3424   RANLIB=$ac_ct_RANLIB
3425 else
3426   RANLIB="$ac_cv_prog_RANLIB"
3427 fi
3428
3429
3430 ###############################
3431 # Checks for libraries (not for RT)
3432 if test -z ${CONFIG_ORTE_RT} ; then
3433
3434
3435 echo "$as_me:$LINENO: checking for main in -lws2_32" >&5
3436 echo $ECHO_N "checking for main in -lws2_32... $ECHO_C" >&6
3437 if test "${ac_cv_lib_ws2_32_main+set}" = set; then
3438   echo $ECHO_N "(cached) $ECHO_C" >&6
3439 else
3440   ac_check_lib_save_LIBS=$LIBS
3441 LIBS="-lws2_32  $LIBS"
3442 cat >conftest.$ac_ext <<_ACEOF
3443 /* confdefs.h.  */
3444 _ACEOF
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h.  */
3448
3449
3450 int
3451 main ()
3452 {
3453 main ();
3454   ;
3455   return 0;
3456 }
3457 _ACEOF
3458 rm -f conftest.$ac_objext conftest$ac_exeext
3459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3460   (eval $ac_link) 2>conftest.er1
3461   ac_status=$?
3462   grep -v '^ *+' conftest.er1 >conftest.err
3463   rm -f conftest.er1
3464   cat conftest.err >&5
3465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466   (exit $ac_status); } &&
3467          { ac_try='test -z "$ac_c_werror_flag"
3468                          || test ! -s conftest.err'
3469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470   (eval $ac_try) 2>&5
3471   ac_status=$?
3472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473   (exit $ac_status); }; } &&
3474          { ac_try='test -s conftest$ac_exeext'
3475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476   (eval $ac_try) 2>&5
3477   ac_status=$?
3478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479   (exit $ac_status); }; }; then
3480   ac_cv_lib_ws2_32_main=yes
3481 else
3482   echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3484
3485 ac_cv_lib_ws2_32_main=no
3486 fi
3487 rm -f conftest.err conftest.$ac_objext \
3488       conftest$ac_exeext conftest.$ac_ext
3489 LIBS=$ac_check_lib_save_LIBS
3490 fi
3491 echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_main" >&5
3492 echo "${ECHO_T}$ac_cv_lib_ws2_32_main" >&6
3493 if test $ac_cv_lib_ws2_32_main = yes; then
3494   cat >>confdefs.h <<_ACEOF
3495 #define HAVE_LIBWS2_32 1
3496 _ACEOF
3497
3498   LIBS="-lws2_32 $LIBS"
3499
3500 fi
3501
3502
3503 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
3504 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
3505 if test "${ac_cv_lib_pthread_main+set}" = set; then
3506   echo $ECHO_N "(cached) $ECHO_C" >&6
3507 else
3508   ac_check_lib_save_LIBS=$LIBS
3509 LIBS="-lpthread  $LIBS"
3510 cat >conftest.$ac_ext <<_ACEOF
3511 /* confdefs.h.  */
3512 _ACEOF
3513 cat confdefs.h >>conftest.$ac_ext
3514 cat >>conftest.$ac_ext <<_ACEOF
3515 /* end confdefs.h.  */
3516
3517
3518 int
3519 main ()
3520 {
3521 main ();
3522   ;
3523   return 0;
3524 }
3525 _ACEOF
3526 rm -f conftest.$ac_objext conftest$ac_exeext
3527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3528   (eval $ac_link) 2>conftest.er1
3529   ac_status=$?
3530   grep -v '^ *+' conftest.er1 >conftest.err
3531   rm -f conftest.er1
3532   cat conftest.err >&5
3533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534   (exit $ac_status); } &&
3535          { ac_try='test -z "$ac_c_werror_flag"
3536                          || test ! -s conftest.err'
3537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538   (eval $ac_try) 2>&5
3539   ac_status=$?
3540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541   (exit $ac_status); }; } &&
3542          { ac_try='test -s conftest$ac_exeext'
3543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3544   (eval $ac_try) 2>&5
3545   ac_status=$?
3546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547   (exit $ac_status); }; }; then
3548   ac_cv_lib_pthread_main=yes
3549 else
3550   echo "$as_me: failed program was:" >&5
3551 sed 's/^/| /' conftest.$ac_ext >&5
3552
3553 ac_cv_lib_pthread_main=no
3554 fi
3555 rm -f conftest.err conftest.$ac_objext \
3556       conftest$ac_exeext conftest.$ac_ext
3557 LIBS=$ac_check_lib_save_LIBS
3558 fi
3559 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
3560 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
3561 if test $ac_cv_lib_pthread_main = yes; then
3562   cat >>confdefs.h <<_ACEOF
3563 #define HAVE_LIBPTHREAD 1
3564 _ACEOF
3565
3566   LIBS="-lpthread $LIBS"
3567
3568 fi
3569
3570 fi
3571
3572 ###############################
3573 # enable GNU source
3574
3575
3576
3577 ###############################
3578 # Checks for header files.
3579 # user space
3580 if test ${UNIX} == 'yes' -o ${WIN} == 'yes' ; then
3581     ac_ext=c
3582 ac_cpp='$CPP $CPPFLAGS'
3583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3586 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3587 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3588 # On Suns, sometimes $CPP names a directory.
3589 if test -n "$CPP" && test -d "$CPP"; then
3590   CPP=
3591 fi
3592 if test -z "$CPP"; then
3593   if test "${ac_cv_prog_CPP+set}" = set; then
3594   echo $ECHO_N "(cached) $ECHO_C" >&6
3595 else
3596       # Double quotes because CPP needs to be expanded
3597     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3598     do
3599       ac_preproc_ok=false
3600 for ac_c_preproc_warn_flag in '' yes
3601 do
3602   # Use a header file that comes with gcc, so configuring glibc
3603   # with a fresh cross-compiler works.
3604   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3605   # <limits.h> exists even on freestanding compilers.
3606   # On the NeXT, cc -E runs the code through the compiler's parser,
3607   # not just through cpp. "Syntax error" is here to catch this case.
3608   cat >conftest.$ac_ext <<_ACEOF
3609 /* confdefs.h.  */
3610 _ACEOF
3611 cat confdefs.h >>conftest.$ac_ext
3612 cat >>conftest.$ac_ext <<_ACEOF
3613 /* end confdefs.h.  */
3614 #ifdef __STDC__
3615 # include <limits.h>
3616 #else
3617 # include <assert.h>
3618 #endif
3619                      Syntax error
3620 _ACEOF
3621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3622   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3623   ac_status=$?
3624   grep -v '^ *+' conftest.er1 >conftest.err
3625   rm -f conftest.er1
3626   cat conftest.err >&5
3627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628   (exit $ac_status); } >/dev/null; then
3629   if test -s conftest.err; then
3630     ac_cpp_err=$ac_c_preproc_warn_flag
3631     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3632   else
3633     ac_cpp_err=
3634   fi
3635 else
3636   ac_cpp_err=yes
3637 fi
3638 if test -z "$ac_cpp_err"; then
3639   :
3640 else
3641   echo "$as_me: failed program was:" >&5
3642 sed 's/^/| /' conftest.$ac_ext >&5
3643
3644   # Broken: fails on valid input.
3645 continue
3646 fi
3647 rm -f conftest.err conftest.$ac_ext
3648
3649   # OK, works on sane cases.  Now check whether non-existent headers
3650   # can be detected and how.
3651   cat >conftest.$ac_ext <<_ACEOF
3652 /* confdefs.h.  */
3653 _ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h.  */
3657 #include <ac_nonexistent.h>
3658 _ACEOF
3659 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3660   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3661   ac_status=$?
3662   grep -v '^ *+' conftest.er1 >conftest.err
3663   rm -f conftest.er1
3664   cat conftest.err >&5
3665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666   (exit $ac_status); } >/dev/null; then
3667   if test -s conftest.err; then
3668     ac_cpp_err=$ac_c_preproc_warn_flag
3669     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3670   else
3671     ac_cpp_err=
3672   fi
3673 else
3674   ac_cpp_err=yes
3675 fi
3676 if test -z "$ac_cpp_err"; then
3677   # Broken: success on invalid input.
3678 continue
3679 else
3680   echo "$as_me: failed program was:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3682
3683   # Passes both tests.
3684 ac_preproc_ok=:
3685 break
3686 fi
3687 rm -f conftest.err conftest.$ac_ext
3688
3689 done
3690 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3691 rm -f conftest.err conftest.$ac_ext
3692 if $ac_preproc_ok; then
3693   break
3694 fi
3695
3696     done
3697     ac_cv_prog_CPP=$CPP
3698
3699 fi
3700   CPP=$ac_cv_prog_CPP
3701 else
3702   ac_cv_prog_CPP=$CPP
3703 fi
3704 echo "$as_me:$LINENO: result: $CPP" >&5
3705 echo "${ECHO_T}$CPP" >&6
3706 ac_preproc_ok=false
3707 for ac_c_preproc_warn_flag in '' yes
3708 do
3709   # Use a header file that comes with gcc, so configuring glibc
3710   # with a fresh cross-compiler works.
3711   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3712   # <limits.h> exists even on freestanding compilers.
3713   # On the NeXT, cc -E runs the code through the compiler's parser,
3714   # not just through cpp. "Syntax error" is here to catch this case.
3715   cat >conftest.$ac_ext <<_ACEOF
3716 /* confdefs.h.  */
3717 _ACEOF
3718 cat confdefs.h >>conftest.$ac_ext
3719 cat >>conftest.$ac_ext <<_ACEOF
3720 /* end confdefs.h.  */
3721 #ifdef __STDC__
3722 # include <limits.h>
3723 #else
3724 # include <assert.h>
3725 #endif
3726                      Syntax error
3727 _ACEOF
3728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3729   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3730   ac_status=$?
3731   grep -v '^ *+' conftest.er1 >conftest.err
3732   rm -f conftest.er1
3733   cat conftest.err >&5
3734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735   (exit $ac_status); } >/dev/null; then
3736   if test -s conftest.err; then
3737     ac_cpp_err=$ac_c_preproc_warn_flag
3738     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3739   else
3740     ac_cpp_err=
3741   fi
3742 else
3743   ac_cpp_err=yes
3744 fi
3745 if test -z "$ac_cpp_err"; then
3746   :
3747 else
3748   echo "$as_me: failed program was:" >&5
3749 sed 's/^/| /' conftest.$ac_ext >&5
3750
3751   # Broken: fails on valid input.
3752 continue
3753 fi
3754 rm -f conftest.err conftest.$ac_ext
3755
3756   # OK, works on sane cases.  Now check whether non-existent headers
3757   # can be detected and how.
3758   cat >conftest.$ac_ext <<_ACEOF
3759 /* confdefs.h.  */
3760 _ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h.  */
3764 #include <ac_nonexistent.h>
3765 _ACEOF
3766 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3767   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3768   ac_status=$?
3769   grep -v '^ *+' conftest.er1 >conftest.err
3770   rm -f conftest.er1
3771   cat conftest.err >&5
3772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773   (exit $ac_status); } >/dev/null; then
3774   if test -s conftest.err; then
3775     ac_cpp_err=$ac_c_preproc_warn_flag
3776     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3777   else
3778     ac_cpp_err=
3779   fi
3780 else
3781   ac_cpp_err=yes
3782 fi
3783 if test -z "$ac_cpp_err"; then
3784   # Broken: success on invalid input.
3785 continue
3786 else
3787   echo "$as_me: failed program was:" >&5
3788 sed 's/^/| /' conftest.$ac_ext >&5
3789
3790   # Passes both tests.
3791 ac_preproc_ok=:
3792 break
3793 fi
3794 rm -f conftest.err conftest.$ac_ext
3795
3796 done
3797 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3798 rm -f conftest.err conftest.$ac_ext
3799 if $ac_preproc_ok; then
3800   :
3801 else
3802   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3803 See \`config.log' for more details." >&5
3804 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3805 See \`config.log' for more details." >&2;}
3806    { (exit 1); exit 1; }; }
3807 fi
3808
3809 ac_ext=c
3810 ac_cpp='$CPP $CPPFLAGS'
3811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3814
3815
3816 echo "$as_me:$LINENO: checking for egrep" >&5
3817 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3818 if test "${ac_cv_prog_egrep+set}" = set; then
3819   echo $ECHO_N "(cached) $ECHO_C" >&6
3820 else
3821   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3822     then ac_cv_prog_egrep='grep -E'
3823     else ac_cv_prog_egrep='egrep'
3824     fi
3825 fi
3826 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3827 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3828  EGREP=$ac_cv_prog_egrep
3829
3830
3831 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3832 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3833 if test "${ac_cv_header_stdc+set}" = set; then
3834   echo $ECHO_N "(cached) $ECHO_C" >&6
3835 else
3836   cat >conftest.$ac_ext <<_ACEOF
3837 /* confdefs.h.  */
3838 _ACEOF
3839 cat confdefs.h >>conftest.$ac_ext
3840 cat >>conftest.$ac_ext <<_ACEOF
3841 /* end confdefs.h.  */
3842 #include <stdlib.h>
3843 #include <stdarg.h>
3844 #include <string.h>
3845 #include <float.h>
3846
3847 int
3848 main ()
3849 {
3850
3851   ;
3852   return 0;
3853 }
3854 _ACEOF
3855 rm -f conftest.$ac_objext
3856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3857   (eval $ac_compile) 2>conftest.er1
3858   ac_status=$?
3859   grep -v '^ *+' conftest.er1 >conftest.err
3860   rm -f conftest.er1
3861   cat conftest.err >&5
3862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863   (exit $ac_status); } &&
3864          { ac_try='test -z "$ac_c_werror_flag"
3865                          || test ! -s conftest.err'
3866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867   (eval $ac_try) 2>&5
3868   ac_status=$?
3869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870   (exit $ac_status); }; } &&
3871          { ac_try='test -s conftest.$ac_objext'
3872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873   (eval $ac_try) 2>&5
3874   ac_status=$?
3875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876   (exit $ac_status); }; }; then
3877   ac_cv_header_stdc=yes
3878 else
3879   echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3881
3882 ac_cv_header_stdc=no
3883 fi
3884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3885
3886 if test $ac_cv_header_stdc = yes; then
3887   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3888   cat >conftest.$ac_ext <<_ACEOF
3889 /* confdefs.h.  */
3890 _ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h.  */
3894 #include <string.h>
3895
3896 _ACEOF
3897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3898   $EGREP "memchr" >/dev/null 2>&1; then
3899   :
3900 else
3901   ac_cv_header_stdc=no
3902 fi
3903 rm -f conftest*
3904
3905 fi
3906
3907 if test $ac_cv_header_stdc = yes; then
3908   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3909   cat >conftest.$ac_ext <<_ACEOF
3910 /* confdefs.h.  */
3911 _ACEOF
3912 cat confdefs.h >>conftest.$ac_ext
3913 cat >>conftest.$ac_ext <<_ACEOF
3914 /* end confdefs.h.  */
3915 #include <stdlib.h>
3916
3917 _ACEOF
3918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3919   $EGREP "free" >/dev/null 2>&1; then
3920   :
3921 else
3922   ac_cv_header_stdc=no
3923 fi
3924 rm -f conftest*
3925
3926 fi
3927
3928 if test $ac_cv_header_stdc = yes; then
3929   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3930   if test "$cross_compiling" = yes; then
3931   :
3932 else
3933   cat >conftest.$ac_ext <<_ACEOF
3934 /* confdefs.h.  */
3935 _ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h.  */
3939 #include <ctype.h>
3940 #if ((' ' & 0x0FF) == 0x020)
3941 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3942 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3943 #else
3944 # define ISLOWER(c) \
3945                    (('a' <= (c) && (c) <= 'i') \
3946                      || ('j' <= (c) && (c) <= 'r') \
3947                      || ('s' <= (c) && (c) <= 'z'))
3948 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3949 #endif
3950
3951 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3952 int
3953 main ()
3954 {
3955   int i;
3956   for (i = 0; i < 256; i++)
3957     if (XOR (islower (i), ISLOWER (i))
3958         || toupper (i) != TOUPPER (i))
3959       exit(2);
3960   exit (0);
3961 }
3962 _ACEOF
3963 rm -f conftest$ac_exeext
3964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3965   (eval $ac_link) 2>&5
3966   ac_status=$?
3967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3970   (eval $ac_try) 2>&5
3971   ac_status=$?
3972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973   (exit $ac_status); }; }; then
3974   :
3975 else
3976   echo "$as_me: program exited with status $ac_status" >&5
3977 echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3979
3980 ( exit $ac_status )
3981 ac_cv_header_stdc=no
3982 fi
3983 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3984 fi
3985 fi
3986 fi
3987 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3988 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3989 if test $ac_cv_header_stdc = yes; then
3990
3991 cat >>confdefs.h <<\_ACEOF
3992 #define STDC_HEADERS 1
3993 _ACEOF
3994
3995 fi
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017 for ac_header in \
4018     arpa/inet.h fcntl.h stdio.h netdb.h netinet/in.h stdlib.h \
4019     string.h sys/ioctl.h sys/socket.h sys/time.h unistd.h pthread.h \
4020     stdarg.h sys/types.h net/if.h byteswap.h getopt.h \
4021     ctype.h semaphore.h signal.h
4022 do
4023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4024 echo "$as_me:$LINENO: checking for $ac_header" >&5
4025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4027   echo $ECHO_N "(cached) $ECHO_C" >&6
4028 else
4029   cat >conftest.$ac_ext <<_ACEOF
4030 /* confdefs.h.  */
4031 _ACEOF
4032 cat confdefs.h >>conftest.$ac_ext
4033 cat >>conftest.$ac_ext <<_ACEOF
4034 /* end confdefs.h.  */
4035
4036
4037 #include <$ac_header>
4038 _ACEOF
4039 rm -f conftest.$ac_objext
4040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4041   (eval $ac_compile) 2>conftest.er1
4042   ac_status=$?
4043   grep -v '^ *+' conftest.er1 >conftest.err
4044   rm -f conftest.er1
4045   cat conftest.err >&5
4046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047   (exit $ac_status); } &&
4048          { ac_try='test -z "$ac_c_werror_flag"
4049                          || test ! -s conftest.err'
4050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051   (eval $ac_try) 2>&5
4052   ac_status=$?
4053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054   (exit $ac_status); }; } &&
4055          { ac_try='test -s conftest.$ac_objext'
4056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057   (eval $ac_try) 2>&5
4058   ac_status=$?
4059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060   (exit $ac_status); }; }; then
4061   eval "$as_ac_Header=yes"
4062 else
4063   echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4065
4066 eval "$as_ac_Header=no"
4067 fi
4068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4069 fi
4070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4073   cat >>confdefs.h <<_ACEOF
4074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4075 _ACEOF
4076
4077 fi
4078
4079 done
4080
4081 fi
4082 # win32
4083 if test ${WIN} == 'yes' ; then
4084
4085
4086
4087 for ac_header in \
4088     winsock2.h ws2tcpip.h windows.h
4089 do
4090 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4091 echo "$as_me:$LINENO: checking for $ac_header" >&5
4092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4094   echo $ECHO_N "(cached) $ECHO_C" >&6
4095 else
4096   cat >conftest.$ac_ext <<_ACEOF
4097 /* confdefs.h.  */
4098 _ACEOF
4099 cat confdefs.h >>conftest.$ac_ext
4100 cat >>conftest.$ac_ext <<_ACEOF
4101 /* end confdefs.h.  */
4102
4103
4104 #include <$ac_header>
4105 _ACEOF
4106 rm -f conftest.$ac_objext
4107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4108   (eval $ac_compile) 2>conftest.er1
4109   ac_status=$?
4110   grep -v '^ *+' conftest.er1 >conftest.err
4111   rm -f conftest.er1
4112   cat conftest.err >&5
4113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114   (exit $ac_status); } &&
4115          { ac_try='test -z "$ac_c_werror_flag"
4116                          || test ! -s conftest.err'
4117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118   (eval $ac_try) 2>&5
4119   ac_status=$?
4120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121   (exit $ac_status); }; } &&
4122          { ac_try='test -s conftest.$ac_objext'
4123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124   (eval $ac_try) 2>&5
4125   ac_status=$?
4126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127   (exit $ac_status); }; }; then
4128   eval "$as_ac_Header=yes"
4129 else
4130   echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4132
4133 eval "$as_ac_Header=no"
4134 fi
4135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4136 fi
4137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4138 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4140   cat >>confdefs.h <<_ACEOF
4141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4142 _ACEOF
4143
4144 fi
4145
4146 done
4147
4148 fi
4149 # kernel
4150 if test ${CONFIG_ORTE_KERNEL} == 'yes' ; then
4151
4152
4153
4154
4155
4156
4157
4158
4159 for ac_header in \
4160     asm/byteorder.h linux/ctype.h linux/string.h \
4161     linux/module.h linux/if.h linux/socket.h \
4162     linux/time.h linux/types.h
4163 do
4164 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4165 echo "$as_me:$LINENO: checking for $ac_header" >&5
4166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4168   echo $ECHO_N "(cached) $ECHO_C" >&6
4169 else
4170   cat >conftest.$ac_ext <<_ACEOF
4171 /* confdefs.h.  */
4172 _ACEOF
4173 cat confdefs.h >>conftest.$ac_ext
4174 cat >>conftest.$ac_ext <<_ACEOF
4175 /* end confdefs.h.  */
4176
4177
4178 #include <$ac_header>
4179 _ACEOF
4180 rm -f conftest.$ac_objext
4181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4182   (eval $ac_compile) 2>conftest.er1
4183   ac_status=$?
4184   grep -v '^ *+' conftest.er1 >conftest.err
4185   rm -f conftest.er1
4186   cat conftest.err >&5
4187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188   (exit $ac_status); } &&
4189          { ac_try='test -z "$ac_c_werror_flag"
4190                          || test ! -s conftest.err'
4191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192   (eval $ac_try) 2>&5
4193   ac_status=$?
4194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195   (exit $ac_status); }; } &&
4196          { ac_try='test -s conftest.$ac_objext'
4197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198   (eval $ac_try) 2>&5
4199   ac_status=$?
4200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201   (exit $ac_status); }; }; then
4202   eval "$as_ac_Header=yes"
4203 else
4204   echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4206
4207 eval "$as_ac_Header=no"
4208 fi
4209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4210 fi
4211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4214   cat >>confdefs.h <<_ACEOF
4215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4216 _ACEOF
4217
4218 fi
4219
4220 done
4221
4222
4223 for ac_header in linux/in.h
4224 do
4225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4226 echo "$as_me:$LINENO: checking for $ac_header" >&5
4227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4229   echo $ECHO_N "(cached) $ECHO_C" >&6
4230 else
4231   cat >conftest.$ac_ext <<_ACEOF
4232 /* confdefs.h.  */
4233 _ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h.  */
4237
4238     #ifdef HAVE_LINUX_SOCKET_H
4239       #include <linux/socket.h>
4240     #endif
4241
4242
4243 #include <$ac_header>
4244 _ACEOF
4245 rm -f conftest.$ac_objext
4246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4247   (eval $ac_compile) 2>conftest.er1
4248   ac_status=$?
4249   grep -v '^ *+' conftest.er1 >conftest.err
4250   rm -f conftest.er1
4251   cat conftest.err >&5
4252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253   (exit $ac_status); } &&
4254          { ac_try='test -z "$ac_c_werror_flag"
4255                          || test ! -s conftest.err'
4256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4257   (eval $ac_try) 2>&5
4258   ac_status=$?
4259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260   (exit $ac_status); }; } &&
4261          { ac_try='test -s conftest.$ac_objext'
4262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4263   (eval $ac_try) 2>&5
4264   ac_status=$?
4265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266   (exit $ac_status); }; }; then
4267   eval "$as_ac_Header=yes"
4268 else
4269   echo "$as_me: failed program was:" >&5
4270 sed 's/^/| /' conftest.$ac_ext >&5
4271
4272 eval "$as_ac_Header=no"
4273 fi
4274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4275 fi
4276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4279   cat >>confdefs.h <<_ACEOF
4280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4281 _ACEOF
4282
4283 fi
4284
4285 done
4286
4287 fi
4288 # RTLinux
4289 if test ${USE_RTLINUX} == 'yes' ; then
4290
4291
4292
4293
4294
4295
4296
4297
4298 for ac_header in \
4299     string.h pthread.h semaphore.h \
4300     rtl.h rtl_malloc.h udp.h nic.h time.h
4301 do
4302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4303 echo "$as_me:$LINENO: checking for $ac_header" >&5
4304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4306   echo $ECHO_N "(cached) $ECHO_C" >&6
4307 else
4308   cat >conftest.$ac_ext <<_ACEOF
4309 /* confdefs.h.  */
4310 _ACEOF
4311 cat confdefs.h >>conftest.$ac_ext
4312 cat >>conftest.$ac_ext <<_ACEOF
4313 /* end confdefs.h.  */
4314
4315
4316 #include <$ac_header>
4317 _ACEOF
4318 rm -f conftest.$ac_objext
4319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4320   (eval $ac_compile) 2>conftest.er1
4321   ac_status=$?
4322   grep -v '^ *+' conftest.er1 >conftest.err
4323   rm -f conftest.er1
4324   cat conftest.err >&5
4325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326   (exit $ac_status); } &&
4327          { ac_try='test -z "$ac_c_werror_flag"
4328                          || test ! -s conftest.err'
4329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4330   (eval $ac_try) 2>&5
4331   ac_status=$?
4332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333   (exit $ac_status); }; } &&
4334          { ac_try='test -s conftest.$ac_objext'
4335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4336   (eval $ac_try) 2>&5
4337   ac_status=$?
4338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339   (exit $ac_status); }; }; then
4340   eval "$as_ac_Header=yes"
4341 else
4342   echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4344
4345 eval "$as_ac_Header=no"
4346 fi
4347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4348 fi
4349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4351 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4352   cat >>confdefs.h <<_ACEOF
4353 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4354 _ACEOF
4355
4356 fi
4357
4358 done
4359
4360
4361 for ac_header in nictab.h
4362 do
4363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4364 echo "$as_me:$LINENO: checking for $ac_header" >&5
4365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4367   echo $ECHO_N "(cached) $ECHO_C" >&6
4368 else
4369   cat >conftest.$ac_ext <<_ACEOF
4370 /* confdefs.h.  */
4371 _ACEOF
4372 cat confdefs.h >>conftest.$ac_ext
4373 cat >>conftest.$ac_ext <<_ACEOF
4374 /* end confdefs.h.  */
4375
4376     #ifdef HAVE_UDP_H
4377       #include <udp.h>
4378     #endif
4379     #ifdef HAVE_NIC_H
4380       #include <nic.h>
4381     #endif
4382
4383
4384 #include <$ac_header>
4385 _ACEOF
4386 rm -f conftest.$ac_objext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388   (eval $ac_compile) 2>conftest.er1
4389   ac_status=$?
4390   grep -v '^ *+' conftest.er1 >conftest.err
4391   rm -f conftest.er1
4392   cat conftest.err >&5
4393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394   (exit $ac_status); } &&
4395          { ac_try='test -z "$ac_c_werror_flag"
4396                          || test ! -s conftest.err'
4397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398   (eval $ac_try) 2>&5
4399   ac_status=$?
4400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401   (exit $ac_status); }; } &&
4402          { ac_try='test -s conftest.$ac_objext'
4403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404   (eval $ac_try) 2>&5
4405   ac_status=$?
4406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407   (exit $ac_status); }; }; then
4408   eval "$as_ac_Header=yes"
4409 else
4410   echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4412
4413 eval "$as_ac_Header=no"
4414 fi
4415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4416 fi
4417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4420   cat >>confdefs.h <<_ACEOF
4421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4422 _ACEOF
4423
4424 fi
4425
4426 done
4427
4428 fi
4429 # RTAI
4430 if test ${USE_RTAI} == 'yes' ; then
4431
4432 for ac_header in \
4433     rtnet.h
4434 do
4435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4436 echo "$as_me:$LINENO: checking for $ac_header" >&5
4437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4439   echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441   cat >conftest.$ac_ext <<_ACEOF
4442 /* confdefs.h.  */
4443 _ACEOF
4444 cat confdefs.h >>conftest.$ac_ext
4445 cat >>conftest.$ac_ext <<_ACEOF
4446 /* end confdefs.h.  */
4447
4448
4449 #include <$ac_header>
4450 _ACEOF
4451 rm -f conftest.$ac_objext
4452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4453   (eval $ac_compile) 2>conftest.er1
4454   ac_status=$?
4455   grep -v '^ *+' conftest.er1 >conftest.err
4456   rm -f conftest.er1
4457   cat conftest.err >&5
4458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459   (exit $ac_status); } &&
4460          { ac_try='test -z "$ac_c_werror_flag"
4461                          || test ! -s conftest.err'
4462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4463   (eval $ac_try) 2>&5
4464   ac_status=$?
4465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466   (exit $ac_status); }; } &&
4467          { ac_try='test -s conftest.$ac_objext'
4468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469   (eval $ac_try) 2>&5
4470   ac_status=$?
4471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472   (exit $ac_status); }; }; then
4473   eval "$as_ac_Header=yes"
4474 else
4475   echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4477
4478 eval "$as_ac_Header=no"
4479 fi
4480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4481 fi
4482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4485   cat >>confdefs.h <<_ACEOF
4486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4487 _ACEOF
4488
4489 fi
4490
4491 done
4492
4493 fi
4494
4495 ###############################
4496 # includes
4497 INCLUDES='-I$(top_srcdir)/orte/include'
4498
4499
4500 ###############################
4501 # Checks for typedefs, structures, and compiler characteristics.
4502 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4503 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4504 if test "${ac_cv_c_bigendian+set}" = set; then
4505   echo $ECHO_N "(cached) $ECHO_C" >&6
4506 else
4507   # See if sys/param.h defines the BYTE_ORDER macro.
4508 cat >conftest.$ac_ext <<_ACEOF
4509 /* confdefs.h.  */
4510 _ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h.  */
4514 #include <sys/types.h>
4515 #include <sys/param.h>
4516
4517 int
4518 main ()
4519 {
4520 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4521  bogus endian macros
4522 #endif
4523
4524   ;
4525   return 0;
4526 }
4527 _ACEOF
4528 rm -f conftest.$ac_objext
4529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4530   (eval $ac_compile) 2>conftest.er1
4531   ac_status=$?
4532   grep -v '^ *+' conftest.er1 >conftest.err
4533   rm -f conftest.er1
4534   cat conftest.err >&5
4535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536   (exit $ac_status); } &&
4537          { ac_try='test -z "$ac_c_werror_flag"
4538                          || test ! -s conftest.err'
4539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4540   (eval $ac_try) 2>&5
4541   ac_status=$?
4542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543   (exit $ac_status); }; } &&
4544          { ac_try='test -s conftest.$ac_objext'
4545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546   (eval $ac_try) 2>&5
4547   ac_status=$?
4548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549   (exit $ac_status); }; }; then
4550   # It does; now see whether it defined to BIG_ENDIAN or not.
4551 cat >conftest.$ac_ext <<_ACEOF
4552 /* confdefs.h.  */
4553 _ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h.  */
4557 #include <sys/types.h>
4558 #include <sys/param.h>
4559
4560 int
4561 main ()
4562 {
4563 #if BYTE_ORDER != BIG_ENDIAN
4564  not big endian
4565 #endif
4566
4567   ;
4568   return 0;
4569 }
4570 _ACEOF
4571 rm -f conftest.$ac_objext
4572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4573   (eval $ac_compile) 2>conftest.er1
4574   ac_status=$?
4575   grep -v '^ *+' conftest.er1 >conftest.err
4576   rm -f conftest.er1
4577   cat conftest.err >&5
4578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579   (exit $ac_status); } &&
4580          { ac_try='test -z "$ac_c_werror_flag"
4581                          || test ! -s conftest.err'
4582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583   (eval $ac_try) 2>&5
4584   ac_status=$?
4585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586   (exit $ac_status); }; } &&
4587          { ac_try='test -s conftest.$ac_objext'
4588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4589   (eval $ac_try) 2>&5
4590   ac_status=$?
4591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592   (exit $ac_status); }; }; then
4593   ac_cv_c_bigendian=yes
4594 else
4595   echo "$as_me: failed program was:" >&5
4596 sed 's/^/| /' conftest.$ac_ext >&5
4597
4598 ac_cv_c_bigendian=no
4599 fi
4600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4601 else
4602   echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4604
4605 # It does not; compile a test program.
4606 if test "$cross_compiling" = yes; then
4607   # try to guess the endianness by grepping values into an object file
4608   ac_cv_c_bigendian=unknown
4609   cat >conftest.$ac_ext <<_ACEOF
4610 /* confdefs.h.  */
4611 _ACEOF
4612 cat confdefs.h >>conftest.$ac_ext
4613 cat >>conftest.$ac_ext <<_ACEOF
4614 /* end confdefs.h.  */
4615 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4616 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4617 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4618 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4619 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4620 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4621 int
4622 main ()
4623 {
4624  _ascii (); _ebcdic ();
4625   ;
4626   return 0;
4627 }
4628 _ACEOF
4629 rm -f conftest.$ac_objext
4630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4631   (eval $ac_compile) 2>conftest.er1
4632   ac_status=$?
4633   grep -v '^ *+' conftest.er1 >conftest.err
4634   rm -f conftest.er1
4635   cat conftest.err >&5
4636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637   (exit $ac_status); } &&
4638          { ac_try='test -z "$ac_c_werror_flag"
4639                          || test ! -s conftest.err'
4640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641   (eval $ac_try) 2>&5
4642   ac_status=$?
4643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644   (exit $ac_status); }; } &&
4645          { ac_try='test -s conftest.$ac_objext'
4646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647   (eval $ac_try) 2>&5
4648   ac_status=$?
4649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650   (exit $ac_status); }; }; then
4651   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4652   ac_cv_c_bigendian=yes
4653 fi
4654 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4655   if test "$ac_cv_c_bigendian" = unknown; then
4656     ac_cv_c_bigendian=no
4657   else
4658     # finding both strings is unlikely to happen, but who knows?
4659     ac_cv_c_bigendian=unknown
4660   fi
4661 fi
4662 else
4663   echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4665
4666 fi
4667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4668 else
4669   cat >conftest.$ac_ext <<_ACEOF
4670 /* confdefs.h.  */
4671 _ACEOF
4672 cat confdefs.h >>conftest.$ac_ext
4673 cat >>conftest.$ac_ext <<_ACEOF
4674 /* end confdefs.h.  */
4675 int
4676 main ()
4677 {
4678   /* Are we little or big endian?  From Harbison&Steele.  */
4679   union
4680   {
4681     long l;
4682     char c[sizeof (long)];
4683   } u;
4684   u.l = 1;
4685   exit (u.c[sizeof (long) - 1] == 1);
4686 }
4687 _ACEOF
4688 rm -f conftest$ac_exeext
4689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4690   (eval $ac_link) 2>&5
4691   ac_status=$?
4692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695   (eval $ac_try) 2>&5
4696   ac_status=$?
4697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698   (exit $ac_status); }; }; then
4699   ac_cv_c_bigendian=no
4700 else
4701   echo "$as_me: program exited with status $ac_status" >&5
4702 echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4704
4705 ( exit $ac_status )
4706 ac_cv_c_bigendian=yes
4707 fi
4708 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4709 fi
4710 fi
4711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4712 fi
4713 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4714 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4715 case $ac_cv_c_bigendian in
4716   yes)
4717
4718 cat >>confdefs.h <<\_ACEOF
4719 #define WORDS_BIGENDIAN 1
4720 _ACEOF
4721  ;;
4722   no)
4723      ;;
4724   *)
4725     { { echo "$as_me:$LINENO: error: unknown endianness
4726 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4727 echo "$as_me: error: unknown endianness
4728 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4729    { (exit 1); exit 1; }; } ;;
4730 esac
4731
4732 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4733 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4734 if test "${ac_cv_c_const+set}" = set; then
4735   echo $ECHO_N "(cached) $ECHO_C" >&6
4736 else
4737   cat >conftest.$ac_ext <<_ACEOF
4738 /* confdefs.h.  */
4739 _ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h.  */
4743
4744 int
4745 main ()
4746 {
4747 /* FIXME: Include the comments suggested by Paul. */
4748 #ifndef __cplusplus
4749   /* Ultrix mips cc rejects this.  */
4750   typedef int charset[2];
4751   const charset x;
4752   /* SunOS 4.1.1 cc rejects this.  */
4753   char const *const *ccp;
4754   char **p;
4755   /* NEC SVR4.0.2 mips cc rejects this.  */
4756   struct point {int x, y;};
4757   static struct point const zero = {0,0};
4758   /* AIX XL C 1.02.0.0 rejects this.
4759      It does not let you subtract one const X* pointer from another in
4760      an arm of an if-expression whose if-part is not a constant
4761      expression */
4762   const char *g = "string";
4763   ccp = &g + (g ? g-g : 0);
4764   /* HPUX 7.0 cc rejects these. */
4765   ++ccp;
4766   p = (char**) ccp;
4767   ccp = (char const *const *) p;
4768   { /* SCO 3.2v4 cc rejects this.  */
4769     char *t;
4770     char const *s = 0 ? (char *) 0 : (char const *) 0;
4771
4772     *t++ = 0;
4773   }
4774   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4775     int x[] = {25, 17};
4776     const int *foo = &x[0];
4777     ++foo;
4778   }
4779   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4780     typedef const int *iptr;
4781     iptr p = 0;
4782     ++p;
4783   }
4784   { /* AIX XL C 1.02.0.0 rejects this saying
4785        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4786     struct s { int j; const int *ap[3]; };
4787     struct s *b; b->j = 5;
4788   }
4789   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4790     const int foo = 10;
4791   }
4792 #endif
4793
4794   ;
4795   return 0;
4796 }
4797 _ACEOF
4798 rm -f conftest.$ac_objext
4799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4800   (eval $ac_compile) 2>conftest.er1
4801   ac_status=$?
4802   grep -v '^ *+' conftest.er1 >conftest.err
4803   rm -f conftest.er1
4804   cat conftest.err >&5
4805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806   (exit $ac_status); } &&
4807          { ac_try='test -z "$ac_c_werror_flag"
4808                          || test ! -s conftest.err'
4809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810   (eval $ac_try) 2>&5
4811   ac_status=$?
4812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813   (exit $ac_status); }; } &&
4814          { ac_try='test -s conftest.$ac_objext'
4815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816   (eval $ac_try) 2>&5
4817   ac_status=$?
4818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819   (exit $ac_status); }; }; then
4820   ac_cv_c_const=yes
4821 else
4822   echo "$as_me: failed program was:" >&5
4823 sed 's/^/| /' conftest.$ac_ext >&5
4824
4825 ac_cv_c_const=no
4826 fi
4827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4828 fi
4829 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4830 echo "${ECHO_T}$ac_cv_c_const" >&6
4831 if test $ac_cv_c_const = no; then
4832
4833 cat >>confdefs.h <<\_ACEOF
4834 #define const
4835 _ACEOF
4836
4837 fi
4838
4839 echo "$as_me:$LINENO: checking for inline" >&5
4840 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4841 if test "${ac_cv_c_inline+set}" = set; then
4842   echo $ECHO_N "(cached) $ECHO_C" >&6
4843 else
4844   ac_cv_c_inline=no
4845 for ac_kw in inline __inline__ __inline; do
4846   cat >conftest.$ac_ext <<_ACEOF
4847 /* confdefs.h.  */
4848 _ACEOF
4849 cat confdefs.h >>conftest.$ac_ext
4850 cat >>conftest.$ac_ext <<_ACEOF
4851 /* end confdefs.h.  */
4852 #ifndef __cplusplus
4853 typedef int foo_t;
4854 static $ac_kw foo_t static_foo () {return 0; }
4855 $ac_kw foo_t foo () {return 0; }
4856 #endif
4857
4858 _ACEOF
4859 rm -f conftest.$ac_objext
4860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4861   (eval $ac_compile) 2>conftest.er1
4862   ac_status=$?
4863   grep -v '^ *+' conftest.er1 >conftest.err
4864   rm -f conftest.er1
4865   cat conftest.err >&5
4866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867   (exit $ac_status); } &&
4868          { ac_try='test -z "$ac_c_werror_flag"
4869                          || test ! -s conftest.err'
4870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871   (eval $ac_try) 2>&5
4872   ac_status=$?
4873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874   (exit $ac_status); }; } &&
4875          { ac_try='test -s conftest.$ac_objext'
4876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877   (eval $ac_try) 2>&5
4878   ac_status=$?
4879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880   (exit $ac_status); }; }; then
4881   ac_cv_c_inline=$ac_kw; break
4882 else
4883   echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.$ac_ext >&5
4885
4886 fi
4887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4888 done
4889
4890 fi
4891 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4892 echo "${ECHO_T}$ac_cv_c_inline" >&6
4893
4894
4895 case $ac_cv_c_inline in
4896   inline | yes) ;;
4897   *)
4898     case $ac_cv_c_inline in
4899       no) ac_val=;;
4900       *) ac_val=$ac_cv_c_inline;;
4901     esac
4902     cat >>confdefs.h <<_ACEOF
4903 #ifndef __cplusplus
4904 #define inline $ac_val
4905 #endif
4906 _ACEOF
4907     ;;
4908 esac
4909
4910
4911 ###############################
4912 # Checks for library functions.
4913 if test $ac_cv_c_compiler_gnu = yes; then
4914     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4915 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4916 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4917   echo $ECHO_N "(cached) $ECHO_C" >&6
4918 else
4919     ac_pattern="Autoconf.*'x'"
4920   cat >conftest.$ac_ext <<_ACEOF
4921 /* confdefs.h.  */
4922 _ACEOF
4923 cat confdefs.h >>conftest.$ac_ext
4924 cat >>conftest.$ac_ext <<_ACEOF
4925 /* end confdefs.h.  */
4926 #include <sgtty.h>
4927 Autoconf TIOCGETP
4928 _ACEOF
4929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4930   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4931   ac_cv_prog_gcc_traditional=yes
4932 else
4933   ac_cv_prog_gcc_traditional=no
4934 fi
4935 rm -f conftest*
4936
4937
4938   if test $ac_cv_prog_gcc_traditional = no; then
4939     cat >conftest.$ac_ext <<_ACEOF
4940 /* confdefs.h.  */
4941 _ACEOF
4942 cat confdefs.h >>conftest.$ac_ext
4943 cat >>conftest.$ac_ext <<_ACEOF
4944 /* end confdefs.h.  */
4945 #include <termio.h>
4946 Autoconf TCGETA
4947 _ACEOF
4948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4949   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4950   ac_cv_prog_gcc_traditional=yes
4951 fi
4952 rm -f conftest*
4953
4954   fi
4955 fi
4956 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4957 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4958   if test $ac_cv_prog_gcc_traditional = yes; then
4959     CC="$CC -traditional"
4960   fi
4961 fi
4962
4963 if test -z ${CONFIG_ORTE_RT} ; then
4964
4965
4966 for ac_func in strdup gethostbyname
4967 do
4968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4969 echo "$as_me:$LINENO: checking for $ac_func" >&5
4970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4971 if eval "test \"\${$as_ac_var+set}\" = set"; then
4972   echo $ECHO_N "(cached) $ECHO_C" >&6
4973 else
4974   cat >conftest.$ac_ext <<_ACEOF
4975 /* confdefs.h.  */
4976 _ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h.  */
4980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4981    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4982 #define $ac_func innocuous_$ac_func
4983
4984 /* System header to define __stub macros and hopefully few prototypes,
4985     which can conflict with char $ac_func (); below.
4986     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4987     <limits.h> exists even on freestanding compilers.  */
4988
4989 #ifdef __STDC__
4990 # include <limits.h>
4991 #else
4992 # include <assert.h>
4993 #endif
4994
4995 #undef $ac_func
4996
4997 /* Override any gcc2 internal prototype to avoid an error.  */
4998 #ifdef __cplusplus
4999 extern "C"
5000 {
5001 #endif
5002 /* We use char because int might match the return type of a gcc2
5003    builtin and then its argument prototype would still apply.  */
5004 char $ac_func ();
5005 /* The GNU C library defines this for functions which it implements
5006     to always fail with ENOSYS.  Some functions are actually named
5007     something starting with __ and the normal name is an alias.  */
5008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5009 choke me
5010 #else
5011 char (*f) () = $ac_func;
5012 #endif
5013 #ifdef __cplusplus
5014 }
5015 #endif
5016
5017 int
5018 main ()
5019 {
5020 return f != $ac_func;
5021   ;
5022   return 0;
5023 }
5024 _ACEOF
5025 rm -f conftest.$ac_objext conftest$ac_exeext
5026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5027   (eval $ac_link) 2>conftest.er1
5028   ac_status=$?
5029   grep -v '^ *+' conftest.er1 >conftest.err
5030   rm -f conftest.er1
5031   cat conftest.err >&5
5032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033   (exit $ac_status); } &&
5034          { ac_try='test -z "$ac_c_werror_flag"
5035                          || test ! -s conftest.err'
5036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037   (eval $ac_try) 2>&5
5038   ac_status=$?
5039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040   (exit $ac_status); }; } &&
5041          { ac_try='test -s conftest$ac_exeext'
5042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5043   (eval $ac_try) 2>&5
5044   ac_status=$?
5045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046   (exit $ac_status); }; }; then
5047   eval "$as_ac_var=yes"
5048 else
5049   echo "$as_me: failed program was:" >&5
5050 sed 's/^/| /' conftest.$ac_ext >&5
5051
5052 eval "$as_ac_var=no"
5053 fi
5054 rm -f conftest.err conftest.$ac_objext \
5055       conftest$ac_exeext conftest.$ac_ext
5056 fi
5057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5059 if test `eval echo '${'$as_ac_var'}'` = yes; then
5060   cat >>confdefs.h <<_ACEOF
5061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5062 _ACEOF
5063
5064 fi
5065 done
5066
5067 fi
5068
5069                                                                                                     ac_config_files="$ac_config_files Makefile orte/Makefile orte/liborte/Makefile orte/liborte/rtl/Makefile orte/examples/Makefile orte/examples/hello/Makefile orte/examples/reliable/Makefile orte/examples/ping/Makefile orte/examples/spy/Makefile orte/manager/Makefile"
5070
5071
5072
5073           ac_config_files="$ac_config_files modtool"
5074 cat >confcache <<\_ACEOF
5075 # This file is a shell script that caches the results of configure
5076 # tests run on this system so they can be shared between configure
5077 # scripts and configure runs, see configure's option --config-cache.
5078 # It is not useful on other systems.  If it contains results you don't
5079 # want to keep, you may remove or edit it.
5080 #
5081 # config.status only pays attention to the cache file if you give it
5082 # the --recheck option to rerun configure.
5083 #
5084 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5085 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5086 # following values.
5087
5088 _ACEOF
5089
5090 # The following way of writing the cache mishandles newlines in values,
5091 # but we know of no workaround that is simple, portable, and efficient.
5092 # So, don't put newlines in cache variables' values.
5093 # Ultrix sh set writes to stderr and can't be redirected directly,
5094 # and sets the high bit in the cache file unless we assign to the vars.
5095 {
5096   (set) 2>&1 |
5097     case `(ac_space=' '; set | grep ac_space) 2>&1` in
5098     *ac_space=\ *)
5099       # `set' does not quote correctly, so add quotes (double-quote
5100       # substitution turns \\\\ into \\, and sed turns \\ into \).
5101       sed -n \
5102         "s/'/'\\\\''/g;
5103           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5104       ;;
5105     *)
5106       # `set' quotes correctly as required by POSIX, so do not add quotes.
5107       sed -n \
5108         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5109       ;;
5110     esac;
5111 } |
5112   sed '
5113      t clear
5114      : clear
5115      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5116      t end
5117      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5118      : end' >>confcache
5119 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5120   if test -w $cache_file; then
5121     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5122     cat confcache >$cache_file
5123   else
5124     echo "not updating unwritable cache $cache_file"
5125   fi
5126 fi
5127 rm -f confcache
5128
5129 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5130 # Let make expand exec_prefix.
5131 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5132
5133 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5134 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5135 # trailing colons and then remove the whole line if VPATH becomes empty
5136 # (actually we leave an empty line to preserve line numbers).
5137 if test "x$srcdir" = x.; then
5138   ac_vpsub='/^[  ]*VPATH[        ]*=/{
5139 s/:*\$(srcdir):*/:/;
5140 s/:*\${srcdir}:*/:/;
5141 s/:*@srcdir@:*/:/;
5142 s/^\([^=]*=[     ]*\):*/\1/;
5143 s/:*$//;
5144 s/^[^=]*=[       ]*$//;
5145 }'
5146 fi
5147
5148 DEFS=-DHAVE_CONFIG_H
5149
5150 ac_libobjs=
5151 ac_ltlibobjs=
5152 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5153   # 1. Remove the extension, and $U if already installed.
5154   ac_i=`echo "$ac_i" |
5155          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5156   # 2. Add them.
5157   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5158   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5159 done
5160 LIBOBJS=$ac_libobjs
5161
5162 LTLIBOBJS=$ac_ltlibobjs
5163
5164
5165 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5166   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
5167 Usually this means the macro was only invoked conditionally." >&5
5168 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
5169 Usually this means the macro was only invoked conditionally." >&2;}
5170    { (exit 1); exit 1; }; }
5171 fi
5172 if test -z "${CONFIG_ORTE_KERNEL_TRUE}" && test -z "${CONFIG_ORTE_KERNEL_FALSE}"; then
5173   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_ORTE_KERNEL\" was never defined.
5174 Usually this means the macro was only invoked conditionally." >&5
5175 echo "$as_me: error: conditional \"CONFIG_ORTE_KERNEL\" was never defined.
5176 Usually this means the macro was only invoked conditionally." >&2;}
5177    { (exit 1); exit 1; }; }
5178 fi
5179 if test -z "${CONFIG_RTHAL_TRUE}" && test -z "${CONFIG_RTHAL_FALSE}"; then
5180   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RTHAL\" was never defined.
5181 Usually this means the macro was only invoked conditionally." >&5
5182 echo "$as_me: error: conditional \"CONFIG_RTHAL\" was never defined.
5183 Usually this means the macro was only invoked conditionally." >&2;}
5184    { (exit 1); exit 1; }; }
5185 fi
5186 if test -z "${CONFIG_RTLINUX_TRUE}" && test -z "${CONFIG_RTLINUX_FALSE}"; then
5187   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RTLINUX\" was never defined.
5188 Usually this means the macro was only invoked conditionally." >&5
5189 echo "$as_me: error: conditional \"CONFIG_RTLINUX\" was never defined.
5190 Usually this means the macro was only invoked conditionally." >&2;}
5191    { (exit 1); exit 1; }; }
5192 fi
5193 if test -z "${USE_RTAI_TRUE}" && test -z "${USE_RTAI_FALSE}"; then
5194   { { echo "$as_me:$LINENO: error: conditional \"USE_RTAI\" was never defined.
5195 Usually this means the macro was only invoked conditionally." >&5
5196 echo "$as_me: error: conditional \"USE_RTAI\" was never defined.
5197 Usually this means the macro was only invoked conditionally." >&2;}
5198    { (exit 1); exit 1; }; }
5199 fi
5200 if test -z "${USE_RTLINUX_TRUE}" && test -z "${USE_RTLINUX_FALSE}"; then
5201   { { echo "$as_me:$LINENO: error: conditional \"USE_RTLINUX\" was never defined.
5202 Usually this means the macro was only invoked conditionally." >&5
5203 echo "$as_me: error: conditional \"USE_RTLINUX\" was never defined.
5204 Usually this means the macro was only invoked conditionally." >&2;}
5205    { (exit 1); exit 1; }; }
5206 fi
5207 if test -z "${CONFIG_ORTE_RT_TRUE}" && test -z "${CONFIG_ORTE_RT_FALSE}"; then
5208   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_ORTE_RT\" was never defined.
5209 Usually this means the macro was only invoked conditionally." >&5
5210 echo "$as_me: error: conditional \"CONFIG_ORTE_RT\" was never defined.
5211 Usually this means the macro was only invoked conditionally." >&2;}
5212    { (exit 1); exit 1; }; }
5213 fi
5214 if test -z "${CONFIG_ORTE_WIN_TRUE}" && test -z "${CONFIG_ORTE_WIN_FALSE}"; then
5215   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_ORTE_WIN\" was never defined.
5216 Usually this means the macro was only invoked conditionally." >&5
5217 echo "$as_me: error: conditional \"CONFIG_ORTE_WIN\" was never defined.
5218 Usually this means the macro was only invoked conditionally." >&2;}
5219    { (exit 1); exit 1; }; }
5220 fi
5221 if test -z "${CONFIG_ORTE_UNIX_TRUE}" && test -z "${CONFIG_ORTE_UNIX_FALSE}"; then
5222   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_ORTE_UNIX\" was never defined.
5223 Usually this means the macro was only invoked conditionally." >&5
5224 echo "$as_me: error: conditional \"CONFIG_ORTE_UNIX\" was never defined.
5225 Usually this means the macro was only invoked conditionally." >&2;}
5226    { (exit 1); exit 1; }; }
5227 fi
5228 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5229   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5230 Usually this means the macro was only invoked conditionally." >&5
5231 echo "$as_me: error: conditional \"AMDEP\" was never defined.
5232 Usually this means the macro was only invoked conditionally." >&2;}
5233    { (exit 1); exit 1; }; }
5234 fi
5235
5236 : ${CONFIG_STATUS=./config.status}
5237 ac_clean_files_save=$ac_clean_files
5238 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5239 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5240 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5241 cat >$CONFIG_STATUS <<_ACEOF
5242 #! $SHELL
5243 # Generated by $as_me.
5244 # Run this file to recreate the current configuration.
5245 # Compiler output produced by configure, useful for debugging
5246 # configure, is in config.log if it exists.
5247
5248 debug=false
5249 ac_cs_recheck=false
5250 ac_cs_silent=false
5251 SHELL=\${CONFIG_SHELL-$SHELL}
5252 _ACEOF
5253
5254 cat >>$CONFIG_STATUS <<\_ACEOF
5255 ## --------------------- ##
5256 ## M4sh Initialization.  ##
5257 ## --------------------- ##
5258
5259 # Be Bourne compatible
5260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5261   emulate sh
5262   NULLCMD=:
5263   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5264   # is contrary to our usage.  Disable this feature.
5265   alias -g '${1+"$@"}'='"$@"'
5266 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5267   set -o posix
5268 fi
5269 DUALCASE=1; export DUALCASE # for MKS sh
5270
5271 # Support unset when possible.
5272 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5273   as_unset=unset
5274 else
5275   as_unset=false
5276 fi
5277
5278
5279 # Work around bugs in pre-3.0 UWIN ksh.
5280 $as_unset ENV MAIL MAILPATH
5281 PS1='$ '
5282 PS2='> '
5283 PS4='+ '
5284
5285 # NLS nuisances.
5286 for as_var in \
5287   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5288   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5289   LC_TELEPHONE LC_TIME
5290 do
5291   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5292     eval $as_var=C; export $as_var
5293   else
5294     $as_unset $as_var
5295   fi
5296 done
5297
5298 # Required to use basename.
5299 if expr a : '\(a\)' >/dev/null 2>&1; then
5300   as_expr=expr
5301 else
5302   as_expr=false
5303 fi
5304
5305 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5306   as_basename=basename
5307 else
5308   as_basename=false
5309 fi
5310
5311
5312 # Name of the executable.
5313 as_me=`$as_basename "$0" ||
5314 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5315          X"$0" : 'X\(//\)$' \| \
5316          X"$0" : 'X\(/\)$' \| \
5317          .     : '\(.\)' 2>/dev/null ||
5318 echo X/"$0" |
5319     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5320           /^X\/\(\/\/\)$/{ s//\1/; q; }
5321           /^X\/\(\/\).*/{ s//\1/; q; }
5322           s/.*/./; q'`
5323
5324
5325 # PATH needs CR, and LINENO needs CR and PATH.
5326 # Avoid depending upon Character Ranges.
5327 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5328 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5329 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5330 as_cr_digits='0123456789'
5331 as_cr_alnum=$as_cr_Letters$as_cr_digits
5332
5333 # The user is always right.
5334 if test "${PATH_SEPARATOR+set}" != set; then
5335   echo "#! /bin/sh" >conf$$.sh
5336   echo  "exit 0"   >>conf$$.sh
5337   chmod +x conf$$.sh
5338   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5339     PATH_SEPARATOR=';'
5340   else
5341     PATH_SEPARATOR=:
5342   fi
5343   rm -f conf$$.sh
5344 fi
5345
5346
5347   as_lineno_1=$LINENO
5348   as_lineno_2=$LINENO
5349   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5350   test "x$as_lineno_1" != "x$as_lineno_2" &&
5351   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5352   # Find who we are.  Look in the path if we contain no path at all
5353   # relative or not.
5354   case $0 in
5355     *[\\/]* ) as_myself=$0 ;;
5356     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 for as_dir in $PATH
5358 do
5359   IFS=$as_save_IFS
5360   test -z "$as_dir" && as_dir=.
5361   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5362 done
5363
5364        ;;
5365   esac
5366   # We did not find ourselves, most probably we were run as `sh COMMAND'
5367   # in which case we are not to be found in the path.
5368   if test "x$as_myself" = x; then
5369     as_myself=$0
5370   fi
5371   if test ! -f "$as_myself"; then
5372     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5373 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5374    { (exit 1); exit 1; }; }
5375   fi
5376   case $CONFIG_SHELL in
5377   '')
5378     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5380 do
5381   IFS=$as_save_IFS
5382   test -z "$as_dir" && as_dir=.
5383   for as_base in sh bash ksh sh5; do
5384          case $as_dir in
5385          /*)
5386            if ("$as_dir/$as_base" -c '
5387   as_lineno_1=$LINENO
5388   as_lineno_2=$LINENO
5389   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5390   test "x$as_lineno_1" != "x$as_lineno_2" &&
5391   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5392              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5393              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5394              CONFIG_SHELL=$as_dir/$as_base
5395              export CONFIG_SHELL
5396              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5397            fi;;
5398          esac
5399        done
5400 done
5401 ;;
5402   esac
5403
5404   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5405   # uniformly replaced by the line number.  The first 'sed' inserts a
5406   # line-number line before each line; the second 'sed' does the real
5407   # work.  The second script uses 'N' to pair each line-number line
5408   # with the numbered line, and appends trailing '-' during
5409   # substitution so that $LINENO is not a special case at line end.
5410   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5411   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5412   sed '=' <$as_myself |
5413     sed '
5414       N
5415       s,$,-,
5416       : loop
5417       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5418       t loop
5419       s,-$,,
5420       s,^['$as_cr_digits']*\n,,
5421     ' >$as_me.lineno &&
5422   chmod +x $as_me.lineno ||
5423     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5424 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5425    { (exit 1); exit 1; }; }
5426
5427   # Don't try to exec as it changes $[0], causing all sort of problems
5428   # (the dirname of $[0] is not the place where we might find the
5429   # original and so on.  Autoconf is especially sensible to this).
5430   . ./$as_me.lineno
5431   # Exit status is that of the last command.
5432   exit
5433 }
5434
5435
5436 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5437   *c*,-n*) ECHO_N= ECHO_C='
5438 ' ECHO_T='      ' ;;
5439   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5440   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
5441 esac
5442
5443 if expr a : '\(a\)' >/dev/null 2>&1; then
5444   as_expr=expr
5445 else
5446   as_expr=false
5447 fi
5448
5449 rm -f conf$$ conf$$.exe conf$$.file
5450 echo >conf$$.file
5451 if ln -s conf$$.file conf$$ 2>/dev/null; then
5452   # We could just check for DJGPP; but this test a) works b) is more generic
5453   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5454   if test -f conf$$.exe; then
5455     # Don't use ln at all; we don't have any links
5456     as_ln_s='cp -p'
5457   else
5458     as_ln_s='ln -s'
5459   fi
5460 elif ln conf$$.file conf$$ 2>/dev/null; then
5461   as_ln_s=ln
5462 else
5463   as_ln_s='cp -p'
5464 fi
5465 rm -f conf$$ conf$$.exe conf$$.file
5466
5467 if mkdir -p . 2>/dev/null; then
5468   as_mkdir_p=:
5469 else
5470   test -d ./-p && rmdir ./-p
5471   as_mkdir_p=false
5472 fi
5473
5474 as_executable_p="test -f"
5475
5476 # Sed expression to map a string onto a valid CPP name.
5477 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5478
5479 # Sed expression to map a string onto a valid variable name.
5480 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5481
5482
5483 # IFS
5484 # We need space, tab and new line, in precisely that order.
5485 as_nl='
5486 '
5487 IFS="   $as_nl"
5488
5489 # CDPATH.
5490 $as_unset CDPATH
5491
5492 exec 6>&1
5493
5494 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5495 # report actual input values of CONFIG_FILES etc. instead of their
5496 # values after options handling.  Logging --version etc. is OK.
5497 exec 5>>config.log
5498 {
5499   echo
5500   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5501 ## Running $as_me. ##
5502 _ASBOX
5503 } >&5
5504 cat >&5 <<_CSEOF
5505
5506 This file was extended by orte $as_me 0.2.0, which was
5507 generated by GNU Autoconf 2.59.  Invocation command line was
5508
5509   CONFIG_FILES    = $CONFIG_FILES
5510   CONFIG_HEADERS  = $CONFIG_HEADERS
5511   CONFIG_LINKS    = $CONFIG_LINKS
5512   CONFIG_COMMANDS = $CONFIG_COMMANDS
5513   $ $0 $@
5514
5515 _CSEOF
5516 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5517 echo >&5
5518 _ACEOF
5519
5520 # Files that config.status was made for.
5521 if test -n "$ac_config_files"; then
5522   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5523 fi
5524
5525 if test -n "$ac_config_headers"; then
5526   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5527 fi
5528
5529 if test -n "$ac_config_links"; then
5530   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5531 fi
5532
5533 if test -n "$ac_config_commands"; then
5534   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5535 fi
5536
5537 cat >>$CONFIG_STATUS <<\_ACEOF
5538
5539 ac_cs_usage="\
5540 \`$as_me' instantiates files from templates according to the
5541 current configuration.
5542
5543 Usage: $0 [OPTIONS] [FILE]...
5544
5545   -h, --help       print this help, then exit
5546   -V, --version    print version number, then exit
5547   -q, --quiet      do not print progress messages
5548   -d, --debug      don't remove temporary files
5549       --recheck    update $as_me by reconfiguring in the same conditions
5550   --file=FILE[:TEMPLATE]
5551                    instantiate the configuration file FILE
5552   --header=FILE[:TEMPLATE]
5553                    instantiate the configuration header FILE
5554
5555 Configuration files:
5556 $config_files
5557
5558 Configuration headers:
5559 $config_headers
5560
5561 Configuration commands:
5562 $config_commands
5563
5564 Report bugs to <bug-autoconf@gnu.org>."
5565 _ACEOF
5566
5567 cat >>$CONFIG_STATUS <<_ACEOF
5568 ac_cs_version="\\
5569 orte config.status 0.2.0
5570 configured by $0, generated by GNU Autoconf 2.59,
5571   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5572
5573 Copyright (C) 2003 Free Software Foundation, Inc.
5574 This config.status script is free software; the Free Software Foundation
5575 gives unlimited permission to copy, distribute and modify it."
5576 srcdir=$srcdir
5577 INSTALL="$INSTALL"
5578 _ACEOF
5579
5580 cat >>$CONFIG_STATUS <<\_ACEOF
5581 # If no file are specified by the user, then we need to provide default
5582 # value.  By we need to know if files were specified by the user.
5583 ac_need_defaults=:
5584 while test $# != 0
5585 do
5586   case $1 in
5587   --*=*)
5588     ac_option=`expr "x$1" : 'x\([^=]*\)='`
5589     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5590     ac_shift=:
5591     ;;
5592   -*)
5593     ac_option=$1
5594     ac_optarg=$2
5595     ac_shift=shift
5596     ;;
5597   *) # This is not an option, so the user has probably given explicit
5598      # arguments.
5599      ac_option=$1
5600      ac_need_defaults=false;;
5601   esac
5602
5603   case $ac_option in
5604   # Handling of the options.
5605 _ACEOF
5606 cat >>$CONFIG_STATUS <<\_ACEOF
5607   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5608     ac_cs_recheck=: ;;
5609   --version | --vers* | -V )
5610     echo "$ac_cs_version"; exit 0 ;;
5611   --he | --h)
5612     # Conflict between --help and --header
5613     { { echo "$as_me:$LINENO: error: ambiguous option: $1
5614 Try \`$0 --help' for more information." >&5
5615 echo "$as_me: error: ambiguous option: $1
5616 Try \`$0 --help' for more information." >&2;}
5617    { (exit 1); exit 1; }; };;
5618   --help | --hel | -h )
5619     echo "$ac_cs_usage"; exit 0 ;;
5620   --debug | --d* | -d )
5621     debug=: ;;
5622   --file | --fil | --fi | --f )
5623     $ac_shift
5624     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5625     ac_need_defaults=false;;
5626   --header | --heade | --head | --hea )
5627     $ac_shift
5628     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5629     ac_need_defaults=false;;
5630   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5631   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5632     ac_cs_silent=: ;;
5633
5634   # This is an error.
5635   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5636 Try \`$0 --help' for more information." >&5
5637 echo "$as_me: error: unrecognized option: $1
5638 Try \`$0 --help' for more information." >&2;}
5639    { (exit 1); exit 1; }; } ;;
5640
5641   *) ac_config_targets="$ac_config_targets $1" ;;
5642
5643   esac
5644   shift
5645 done
5646
5647 ac_configure_extra_args=
5648
5649 if $ac_cs_silent; then
5650   exec 6>/dev/null
5651   ac_configure_extra_args="$ac_configure_extra_args --silent"
5652 fi
5653
5654 _ACEOF
5655 cat >>$CONFIG_STATUS <<_ACEOF
5656 if \$ac_cs_recheck; then
5657   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5658   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5659 fi
5660
5661 _ACEOF
5662
5663 cat >>$CONFIG_STATUS <<_ACEOF
5664 #
5665 # INIT-COMMANDS section.
5666 #
5667
5668 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5669
5670 _ACEOF
5671
5672
5673
5674 cat >>$CONFIG_STATUS <<\_ACEOF
5675 for ac_config_target in $ac_config_targets
5676 do
5677   case "$ac_config_target" in
5678   # Handling of arguments.
5679   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5680   "orte/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/Makefile" ;;
5681   "orte/liborte/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/liborte/Makefile" ;;
5682   "orte/liborte/rtl/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/liborte/rtl/Makefile" ;;
5683   "orte/examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/examples/Makefile" ;;
5684   "orte/examples/hello/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/examples/hello/Makefile" ;;
5685   "orte/examples/reliable/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/examples/reliable/Makefile" ;;
5686   "orte/examples/ping/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/examples/ping/Makefile" ;;
5687   "orte/examples/spy/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/examples/spy/Makefile" ;;
5688   "orte/manager/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/manager/Makefile" ;;
5689   "modtool" ) CONFIG_FILES="$CONFIG_FILES modtool" ;;
5690   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5691   "orte/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS orte/include/config.h" ;;
5692   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5693 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5694    { (exit 1); exit 1; }; };;
5695   esac
5696 done
5697
5698 # If the user did not use the arguments to specify the items to instantiate,
5699 # then the envvar interface is used.  Set only those that are not.
5700 # We use the long form for the default assignment because of an extremely
5701 # bizarre bug on SunOS 4.1.3.
5702 if $ac_need_defaults; then
5703   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5704   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5705   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5706 fi
5707
5708 # Have a temporary directory for convenience.  Make it in the build tree
5709 # simply because there is no reason to put it here, and in addition,
5710 # creating and moving files from /tmp can sometimes cause problems.
5711 # Create a temporary directory, and hook for its removal unless debugging.
5712 $debug ||
5713 {
5714   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5715   trap '{ (exit 1); exit 1; }' 1 2 13 15
5716 }
5717
5718 # Create a (secure) tmp directory for tmp files.
5719
5720 {
5721   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5722   test -n "$tmp" && test -d "$tmp"
5723 }  ||
5724 {
5725   tmp=./confstat$$-$RANDOM
5726   (umask 077 && mkdir $tmp)
5727 } ||
5728 {
5729    echo "$me: cannot create a temporary directory in ." >&2
5730    { (exit 1); exit 1; }
5731 }
5732
5733 _ACEOF
5734
5735 cat >>$CONFIG_STATUS <<_ACEOF
5736
5737 #
5738 # CONFIG_FILES section.
5739 #
5740
5741 # No need to generate the scripts if there are no CONFIG_FILES.
5742 # This happens for instance when ./config.status config.h
5743 if test -n "\$CONFIG_FILES"; then
5744   # Protect against being on the right side of a sed subst in config.status.
5745   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5746    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5747 s,@SHELL@,$SHELL,;t t
5748 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5749 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5750 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5751 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5752 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5753 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5754 s,@exec_prefix@,$exec_prefix,;t t
5755 s,@prefix@,$prefix,;t t
5756 s,@program_transform_name@,$program_transform_name,;t t
5757 s,@bindir@,$bindir,;t t
5758 s,@sbindir@,$sbindir,;t t
5759 s,@libexecdir@,$libexecdir,;t t
5760 s,@datadir@,$datadir,;t t
5761 s,@sysconfdir@,$sysconfdir,;t t
5762 s,@sharedstatedir@,$sharedstatedir,;t t
5763 s,@localstatedir@,$localstatedir,;t t
5764 s,@libdir@,$libdir,;t t
5765 s,@includedir@,$includedir,;t t
5766 s,@oldincludedir@,$oldincludedir,;t t
5767 s,@infodir@,$infodir,;t t
5768 s,@mandir@,$mandir,;t t
5769 s,@build_alias@,$build_alias,;t t
5770 s,@host_alias@,$host_alias,;t t
5771 s,@target_alias@,$target_alias,;t t
5772 s,@DEFS@,$DEFS,;t t
5773 s,@ECHO_C@,$ECHO_C,;t t
5774 s,@ECHO_N@,$ECHO_N,;t t
5775 s,@ECHO_T@,$ECHO_T,;t t
5776 s,@LIBS@,$LIBS,;t t
5777 s,@build@,$build,;t t
5778 s,@build_cpu@,$build_cpu,;t t
5779 s,@build_vendor@,$build_vendor,;t t
5780 s,@build_os@,$build_os,;t t
5781 s,@host@,$host,;t t
5782 s,@host_cpu@,$host_cpu,;t t
5783 s,@host_vendor@,$host_vendor,;t t
5784 s,@host_os@,$host_os,;t t
5785 s,@target@,$target,;t t
5786 s,@target_cpu@,$target_cpu,;t t
5787 s,@target_vendor@,$target_vendor,;t t
5788 s,@target_os@,$target_os,;t t
5789 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5790 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5791 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5792 s,@PACKAGE@,$PACKAGE,;t t
5793 s,@VERSION@,$VERSION,;t t
5794 s,@ACLOCAL@,$ACLOCAL,;t t
5795 s,@AUTOCONF@,$AUTOCONF,;t t
5796 s,@AUTOMAKE@,$AUTOMAKE,;t t
5797 s,@AUTOHEADER@,$AUTOHEADER,;t t
5798 s,@MAKEINFO@,$MAKEINFO,;t t
5799 s,@AMTAR@,$AMTAR,;t t
5800 s,@install_sh@,$install_sh,;t t
5801 s,@STRIP@,$STRIP,;t t
5802 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5803 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
5804 s,@AWK@,$AWK,;t t
5805 s,@SET_MAKE@,$SET_MAKE,;t t
5806 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
5807 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
5808 s,@MAINT@,$MAINT,;t t
5809 s,@LINUX_DIR@,$LINUX_DIR,;t t
5810 s,@LINUX_ARCH@,$LINUX_ARCH,;t t
5811 s,@LINUX_AFLAGS@,$LINUX_AFLAGS,;t t
5812 s,@LINUX_LDFLAGS@,$LINUX_LDFLAGS,;t t
5813 s,@LINUX_ARFLAGS@,$LINUX_ARFLAGS,;t t
5814 s,@LINUX_CROSS_COMPILE@,$LINUX_CROSS_COMPILE,;t t
5815 s,@LINUX_KERNELRELEASE@,$LINUX_KERNELRELEASE,;t t
5816 s,@LINUX_CFLAGS@,$LINUX_CFLAGS,;t t
5817 s,@LINUX_CC@,$LINUX_CC,;t t
5818 s,@LINUX_LD@,$LINUX_LD,;t t
5819 s,@LINUX_AS@,$LINUX_AS,;t t
5820 s,@LINUX_MODULE_EXT@,$LINUX_MODULE_EXT,;t t
5821 s,@CONFIG_ORTE_KERNEL@,$CONFIG_ORTE_KERNEL,;t t
5822 s,@CONFIG_ORTE_KERNEL_TRUE@,$CONFIG_ORTE_KERNEL_TRUE,;t t
5823 s,@CONFIG_ORTE_KERNEL_FALSE@,$CONFIG_ORTE_KERNEL_FALSE,;t t
5824 s,@CONFIG_RTHAL_TRUE@,$CONFIG_RTHAL_TRUE,;t t
5825 s,@CONFIG_RTHAL_FALSE@,$CONFIG_RTHAL_FALSE,;t t
5826 s,@RTAI_CFLAGS@,$RTAI_CFLAGS,;t t
5827 s,@CONFIG_RTLINUX_TRUE@,$CONFIG_RTLINUX_TRUE,;t t
5828 s,@CONFIG_RTLINUX_FALSE@,$CONFIG_RTLINUX_FALSE,;t t
5829 s,@RTLINUX_CFLAGS@,$RTLINUX_CFLAGS,;t t
5830 s,@RTLINUX_CC@,$RTLINUX_CC,;t t
5831 s,@CONFIG_ORTE_RT@,$CONFIG_ORTE_RT,;t t
5832 s,@USE_RTAI_TRUE@,$USE_RTAI_TRUE,;t t
5833 s,@USE_RTAI_FALSE@,$USE_RTAI_FALSE,;t t
5834 s,@USE_RTLINUX_TRUE@,$USE_RTLINUX_TRUE,;t t
5835 s,@USE_RTLINUX_FALSE@,$USE_RTLINUX_FALSE,;t t
5836 s,@CONFIG_ORTE_RT_TRUE@,$CONFIG_ORTE_RT_TRUE,;t t
5837 s,@CONFIG_ORTE_RT_FALSE@,$CONFIG_ORTE_RT_FALSE,;t t
5838 s,@ORTE_MAJOR_VERSION@,$ORTE_MAJOR_VERSION,;t t
5839 s,@ORTE_MINOR_VERSION@,$ORTE_MINOR_VERSION,;t t
5840 s,@ORTE_MICRO_VERSION@,$ORTE_MICRO_VERSION,;t t
5841 s,@ORTE_VERSION@,$ORTE_VERSION,;t t
5842 s,@CONFIG_ORTE_WIN_TRUE@,$CONFIG_ORTE_WIN_TRUE,;t t
5843 s,@CONFIG_ORTE_WIN_FALSE@,$CONFIG_ORTE_WIN_FALSE,;t t
5844 s,@CONFIG_ORTE_UNIX_TRUE@,$CONFIG_ORTE_UNIX_TRUE,;t t
5845 s,@CONFIG_ORTE_UNIX_FALSE@,$CONFIG_ORTE_UNIX_FALSE,;t t
5846 s,@moduledir@,$moduledir,;t t
5847 s,@modulePROGRAMS_INSTALL@,$modulePROGRAMS_INSTALL,;t t
5848 s,@CC@,$CC,;t t
5849 s,@CFLAGS@,$CFLAGS,;t t
5850 s,@LDFLAGS@,$LDFLAGS,;t t
5851 s,@CPPFLAGS@,$CPPFLAGS,;t t
5852 s,@ac_ct_CC@,$ac_ct_CC,;t t
5853 s,@EXEEXT@,$EXEEXT,;t t
5854 s,@OBJEXT@,$OBJEXT,;t t
5855 s,@DEPDIR@,$DEPDIR,;t t
5856 s,@am__include@,$am__include,;t t
5857 s,@am__quote@,$am__quote,;t t
5858 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
5859 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
5860 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
5861 s,@CCDEPMODE@,$CCDEPMODE,;t t
5862 s,@RANLIB@,$RANLIB,;t t
5863 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5864 s,@CPP@,$CPP,;t t
5865 s,@EGREP@,$EGREP,;t t
5866 s,@INCLUDES@,$INCLUDES,;t t
5867 s,@LIBOBJS@,$LIBOBJS,;t t
5868 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5869 CEOF
5870
5871 _ACEOF
5872
5873   cat >>$CONFIG_STATUS <<\_ACEOF
5874   # Split the substitutions into bite-sized pieces for seds with
5875   # small command number limits, like on Digital OSF/1 and HP-UX.
5876   ac_max_sed_lines=48
5877   ac_sed_frag=1 # Number of current file.
5878   ac_beg=1 # First line for current file.
5879   ac_end=$ac_max_sed_lines # Line after last line for current file.
5880   ac_more_lines=:
5881   ac_sed_cmds=
5882   while $ac_more_lines; do
5883     if test $ac_beg -gt 1; then
5884       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5885     else
5886       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5887     fi
5888     if test ! -s $tmp/subs.frag; then
5889       ac_more_lines=false
5890     else
5891       # The purpose of the label and of the branching condition is to
5892       # speed up the sed processing (if there are no `@' at all, there
5893       # is no need to browse any of the substitutions).
5894       # These are the two extra sed commands mentioned above.
5895       (echo ':t
5896   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5897       if test -z "$ac_sed_cmds"; then
5898         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5899       else
5900         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5901       fi
5902       ac_sed_frag=`expr $ac_sed_frag + 1`
5903       ac_beg=$ac_end
5904       ac_end=`expr $ac_end + $ac_max_sed_lines`
5905     fi
5906   done
5907   if test -z "$ac_sed_cmds"; then
5908     ac_sed_cmds=cat
5909   fi
5910 fi # test -n "$CONFIG_FILES"
5911
5912 _ACEOF
5913 cat >>$CONFIG_STATUS <<\_ACEOF
5914 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5915   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5916   case $ac_file in
5917   - | *:- | *:-:* ) # input from stdin
5918         cat >$tmp/stdin
5919         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5920         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5921   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5922         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5923   * )   ac_file_in=$ac_file.in ;;
5924   esac
5925
5926   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5927   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5928 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5929          X"$ac_file" : 'X\(//\)[^/]' \| \
5930          X"$ac_file" : 'X\(//\)$' \| \
5931          X"$ac_file" : 'X\(/\)' \| \
5932          .     : '\(.\)' 2>/dev/null ||
5933 echo X"$ac_file" |
5934     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5935           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5936           /^X\(\/\/\)$/{ s//\1/; q; }
5937           /^X\(\/\).*/{ s//\1/; q; }
5938           s/.*/./; q'`
5939   { if $as_mkdir_p; then
5940     mkdir -p "$ac_dir"
5941   else
5942     as_dir="$ac_dir"
5943     as_dirs=
5944     while test ! -d "$as_dir"; do
5945       as_dirs="$as_dir $as_dirs"
5946       as_dir=`(dirname "$as_dir") 2>/dev/null ||
5947 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5948          X"$as_dir" : 'X\(//\)[^/]' \| \
5949          X"$as_dir" : 'X\(//\)$' \| \
5950          X"$as_dir" : 'X\(/\)' \| \
5951          .     : '\(.\)' 2>/dev/null ||
5952 echo X"$as_dir" |
5953     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5954           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5955           /^X\(\/\/\)$/{ s//\1/; q; }
5956           /^X\(\/\).*/{ s//\1/; q; }
5957           s/.*/./; q'`
5958     done
5959     test ! -n "$as_dirs" || mkdir $as_dirs
5960   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5961 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5962    { (exit 1); exit 1; }; }; }
5963
5964   ac_builddir=.
5965
5966 if test "$ac_dir" != .; then
5967   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5968   # A "../" for each directory in $ac_dir_suffix.
5969   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5970 else
5971   ac_dir_suffix= ac_top_builddir=
5972 fi
5973
5974 case $srcdir in
5975   .)  # No --srcdir option.  We are building in place.
5976     ac_srcdir=.
5977     if test -z "$ac_top_builddir"; then
5978        ac_top_srcdir=.
5979     else
5980        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5981     fi ;;
5982   [\\/]* | ?:[\\/]* )  # Absolute path.
5983     ac_srcdir=$srcdir$ac_dir_suffix;
5984     ac_top_srcdir=$srcdir ;;
5985   *) # Relative path.
5986     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5987     ac_top_srcdir=$ac_top_builddir$srcdir ;;
5988 esac
5989
5990 # Do not use `cd foo && pwd` to compute absolute paths, because
5991 # the directories may not exist.
5992 case `pwd` in
5993 .) ac_abs_builddir="$ac_dir";;
5994 *)
5995   case "$ac_dir" in
5996   .) ac_abs_builddir=`pwd`;;
5997   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5998   *) ac_abs_builddir=`pwd`/"$ac_dir";;
5999   esac;;
6000 esac
6001 case $ac_abs_builddir in
6002 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6003 *)
6004   case ${ac_top_builddir}. in
6005   .) ac_abs_top_builddir=$ac_abs_builddir;;
6006   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6007   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6008   esac;;
6009 esac
6010 case $ac_abs_builddir in
6011 .) ac_abs_srcdir=$ac_srcdir;;
6012 *)
6013   case $ac_srcdir in
6014   .) ac_abs_srcdir=$ac_abs_builddir;;
6015   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6016   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6017   esac;;
6018 esac
6019 case $ac_abs_builddir in
6020 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6021 *)
6022   case $ac_top_srcdir in
6023   .) ac_abs_top_srcdir=$ac_abs_builddir;;
6024   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6025   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6026   esac;;
6027 esac
6028
6029
6030   case $INSTALL in
6031   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6032   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6033   esac
6034
6035   if test x"$ac_file" != x-; then
6036     { echo "$as_me:$LINENO: creating $ac_file" >&5
6037 echo "$as_me: creating $ac_file" >&6;}
6038     rm -f "$ac_file"
6039   fi
6040   # Let's still pretend it is `configure' which instantiates (i.e., don't
6041   # use $as_me), people would be surprised to read:
6042   #    /* config.h.  Generated by config.status.  */
6043   if test x"$ac_file" = x-; then
6044     configure_input=
6045   else
6046     configure_input="$ac_file.  "
6047   fi
6048   configure_input=$configure_input"Generated from `echo $ac_file_in |
6049                                      sed 's,.*/,,'` by configure."
6050
6051   # First look for the input files in the build tree, otherwise in the
6052   # src tree.
6053   ac_file_inputs=`IFS=:
6054     for f in $ac_file_in; do
6055       case $f in
6056       -) echo $tmp/stdin ;;
6057       [\\/$]*)
6058          # Absolute (can't be DOS-style, as IFS=:)
6059          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6060 echo "$as_me: error: cannot find input file: $f" >&2;}
6061    { (exit 1); exit 1; }; }
6062          echo "$f";;
6063       *) # Relative
6064          if test -f "$f"; then
6065            # Build tree
6066            echo "$f"
6067          elif test -f "$srcdir/$f"; then
6068            # Source tree
6069            echo "$srcdir/$f"
6070          else
6071            # /dev/null tree
6072            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6073 echo "$as_me: error: cannot find input file: $f" >&2;}
6074    { (exit 1); exit 1; }; }
6075          fi;;
6076       esac
6077     done` || { (exit 1); exit 1; }
6078 _ACEOF
6079 cat >>$CONFIG_STATUS <<_ACEOF
6080   sed "$ac_vpsub
6081 $extrasub
6082 _ACEOF
6083 cat >>$CONFIG_STATUS <<\_ACEOF
6084 :t
6085 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6086 s,@configure_input@,$configure_input,;t t
6087 s,@srcdir@,$ac_srcdir,;t t
6088 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6089 s,@top_srcdir@,$ac_top_srcdir,;t t
6090 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6091 s,@builddir@,$ac_builddir,;t t
6092 s,@abs_builddir@,$ac_abs_builddir,;t t
6093 s,@top_builddir@,$ac_top_builddir,;t t
6094 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6095 s,@INSTALL@,$ac_INSTALL,;t t
6096 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6097   rm -f $tmp/stdin
6098   if test x"$ac_file" != x-; then
6099     mv $tmp/out $ac_file
6100   else
6101     cat $tmp/out
6102     rm -f $tmp/out
6103   fi
6104
6105 done
6106 _ACEOF
6107 cat >>$CONFIG_STATUS <<\_ACEOF
6108
6109 #
6110 # CONFIG_HEADER section.
6111 #
6112
6113 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6114 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6115 #
6116 # ac_d sets the value in "#define NAME VALUE" lines.
6117 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
6118 ac_dB='[         ].*$,\1#\2'
6119 ac_dC=' '
6120 ac_dD=',;t'
6121 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6122 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6123 ac_uB='$,\1#\2define\3'
6124 ac_uC=' '
6125 ac_uD=',;t'
6126
6127 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6128   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6129   case $ac_file in
6130   - | *:- | *:-:* ) # input from stdin
6131         cat >$tmp/stdin
6132         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6133         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6134   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6135         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6136   * )   ac_file_in=$ac_file.in ;;
6137   esac
6138
6139   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6140 echo "$as_me: creating $ac_file" >&6;}
6141
6142   # First look for the input files in the build tree, otherwise in the
6143   # src tree.
6144   ac_file_inputs=`IFS=:
6145     for f in $ac_file_in; do
6146       case $f in
6147       -) echo $tmp/stdin ;;
6148       [\\/$]*)
6149          # Absolute (can't be DOS-style, as IFS=:)
6150          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6151 echo "$as_me: error: cannot find input file: $f" >&2;}
6152    { (exit 1); exit 1; }; }
6153          # Do quote $f, to prevent DOS paths from being IFS'd.
6154          echo "$f";;
6155       *) # Relative
6156          if test -f "$f"; then
6157            # Build tree
6158            echo "$f"
6159          elif test -f "$srcdir/$f"; then
6160            # Source tree
6161            echo "$srcdir/$f"
6162          else
6163            # /dev/null tree
6164            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6165 echo "$as_me: error: cannot find input file: $f" >&2;}
6166    { (exit 1); exit 1; }; }
6167          fi;;
6168       esac
6169     done` || { (exit 1); exit 1; }
6170   # Remove the trailing spaces.
6171   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
6172
6173 _ACEOF
6174
6175 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6176 # `conftest.undefs', that substitutes the proper values into
6177 # config.h.in to produce config.h.  The first handles `#define'
6178 # templates, and the second `#undef' templates.
6179 # And first: Protect against being on the right side of a sed subst in
6180 # config.status.  Protect against being in an unquoted here document
6181 # in config.status.
6182 rm -f conftest.defines conftest.undefs
6183 # Using a here document instead of a string reduces the quoting nightmare.
6184 # Putting comments in sed scripts is not portable.
6185 #
6186 # `end' is used to avoid that the second main sed command (meant for
6187 # 0-ary CPP macros) applies to n-ary macro definitions.
6188 # See the Autoconf documentation for `clear'.
6189 cat >confdef2sed.sed <<\_ACEOF
6190 s/[\\&,]/\\&/g
6191 s,[\\$`],\\&,g
6192 t clear
6193 : clear
6194 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6195 t end
6196 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6197 : end
6198 _ACEOF
6199 # If some macros were called several times there might be several times
6200 # the same #defines, which is useless.  Nevertheless, we may not want to
6201 # sort them, since we want the *last* AC-DEFINE to be honored.
6202 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6203 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6204 rm -f confdef2sed.sed
6205
6206 # This sed command replaces #undef with comments.  This is necessary, for
6207 # example, in the case of _POSIX_SOURCE, which is predefined and required
6208 # on some systems where configure will not decide to define it.
6209 cat >>conftest.undefs <<\_ACEOF
6210 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6211 _ACEOF
6212
6213 # Break up conftest.defines because some shells have a limit on the size
6214 # of here documents, and old seds have small limits too (100 cmds).
6215 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6216 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6217 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6218 echo '  :' >>$CONFIG_STATUS
6219 rm -f conftest.tail
6220 while grep . conftest.defines >/dev/null
6221 do
6222   # Write a limited-size here document to $tmp/defines.sed.
6223   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6224   # Speed up: don't consider the non `#define' lines.
6225   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
6226   # Work around the forget-to-reset-the-flag bug.
6227   echo 't clr' >>$CONFIG_STATUS
6228   echo ': clr' >>$CONFIG_STATUS
6229   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6230   echo 'CEOF
6231   sed -f $tmp/defines.sed $tmp/in >$tmp/out
6232   rm -f $tmp/in
6233   mv $tmp/out $tmp/in
6234 ' >>$CONFIG_STATUS
6235   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6236   rm -f conftest.defines
6237   mv conftest.tail conftest.defines
6238 done
6239 rm -f conftest.defines
6240 echo '  fi # grep' >>$CONFIG_STATUS
6241 echo >>$CONFIG_STATUS
6242
6243 # Break up conftest.undefs because some shells have a limit on the size
6244 # of here documents, and old seds have small limits too (100 cmds).
6245 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
6246 rm -f conftest.tail
6247 while grep . conftest.undefs >/dev/null
6248 do
6249   # Write a limited-size here document to $tmp/undefs.sed.
6250   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6251   # Speed up: don't consider the non `#undef'
6252   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
6253   # Work around the forget-to-reset-the-flag bug.
6254   echo 't clr' >>$CONFIG_STATUS
6255   echo ': clr' >>$CONFIG_STATUS
6256   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6257   echo 'CEOF
6258   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6259   rm -f $tmp/in
6260   mv $tmp/out $tmp/in
6261 ' >>$CONFIG_STATUS
6262   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6263   rm -f conftest.undefs
6264   mv conftest.tail conftest.undefs
6265 done
6266 rm -f conftest.undefs
6267
6268 cat >>$CONFIG_STATUS <<\_ACEOF
6269   # Let's still pretend it is `configure' which instantiates (i.e., don't
6270   # use $as_me), people would be surprised to read:
6271   #    /* config.h.  Generated by config.status.  */
6272   if test x"$ac_file" = x-; then
6273     echo "/* Generated by configure.  */" >$tmp/config.h
6274   else
6275     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
6276   fi
6277   cat $tmp/in >>$tmp/config.h
6278   rm -f $tmp/in
6279   if test x"$ac_file" != x-; then
6280     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6281       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6282 echo "$as_me: $ac_file is unchanged" >&6;}
6283     else
6284       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6285 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6286          X"$ac_file" : 'X\(//\)[^/]' \| \
6287          X"$ac_file" : 'X\(//\)$' \| \
6288          X"$ac_file" : 'X\(/\)' \| \
6289          .     : '\(.\)' 2>/dev/null ||
6290 echo X"$ac_file" |
6291     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6292           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6293           /^X\(\/\/\)$/{ s//\1/; q; }
6294           /^X\(\/\).*/{ s//\1/; q; }
6295           s/.*/./; q'`
6296       { if $as_mkdir_p; then
6297     mkdir -p "$ac_dir"
6298   else
6299     as_dir="$ac_dir"
6300     as_dirs=
6301     while test ! -d "$as_dir"; do
6302       as_dirs="$as_dir $as_dirs"
6303       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6304 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6305          X"$as_dir" : 'X\(//\)[^/]' \| \
6306          X"$as_dir" : 'X\(//\)$' \| \
6307          X"$as_dir" : 'X\(/\)' \| \
6308          .     : '\(.\)' 2>/dev/null ||
6309 echo X"$as_dir" |
6310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6311           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6312           /^X\(\/\/\)$/{ s//\1/; q; }
6313           /^X\(\/\).*/{ s//\1/; q; }
6314           s/.*/./; q'`
6315     done
6316     test ! -n "$as_dirs" || mkdir $as_dirs
6317   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6318 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6319    { (exit 1); exit 1; }; }; }
6320
6321       rm -f $ac_file
6322       mv $tmp/config.h $ac_file
6323     fi
6324   else
6325     cat $tmp/config.h
6326     rm -f $tmp/config.h
6327   fi
6328   # Run the commands associated with the file.
6329   case $ac_file in
6330     orte/include/config.h ) # update the timestamp
6331 echo 'timestamp for orte/include/config.h' >"orte/include/stamp-h1"
6332  ;;
6333   esac
6334 done
6335 _ACEOF
6336 cat >>$CONFIG_STATUS <<\_ACEOF
6337
6338 #
6339 # CONFIG_COMMANDS section.
6340 #
6341 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6342   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6343   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6344   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6345 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6346          X"$ac_dest" : 'X\(//\)[^/]' \| \
6347          X"$ac_dest" : 'X\(//\)$' \| \
6348          X"$ac_dest" : 'X\(/\)' \| \
6349          .     : '\(.\)' 2>/dev/null ||
6350 echo X"$ac_dest" |
6351     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6352           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6353           /^X\(\/\/\)$/{ s//\1/; q; }
6354           /^X\(\/\).*/{ s//\1/; q; }
6355           s/.*/./; q'`
6356   { if $as_mkdir_p; then
6357     mkdir -p "$ac_dir"
6358   else
6359     as_dir="$ac_dir"
6360     as_dirs=
6361     while test ! -d "$as_dir"; do
6362       as_dirs="$as_dir $as_dirs"
6363       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6364 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6365          X"$as_dir" : 'X\(//\)[^/]' \| \
6366          X"$as_dir" : 'X\(//\)$' \| \
6367          X"$as_dir" : 'X\(/\)' \| \
6368          .     : '\(.\)' 2>/dev/null ||
6369 echo X"$as_dir" |
6370     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6371           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6372           /^X\(\/\/\)$/{ s//\1/; q; }
6373           /^X\(\/\).*/{ s//\1/; q; }
6374           s/.*/./; q'`
6375     done
6376     test ! -n "$as_dirs" || mkdir $as_dirs
6377   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6378 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6379    { (exit 1); exit 1; }; }; }
6380
6381   ac_builddir=.
6382
6383 if test "$ac_dir" != .; then
6384   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6385   # A "../" for each directory in $ac_dir_suffix.
6386   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6387 else
6388   ac_dir_suffix= ac_top_builddir=
6389 fi
6390
6391 case $srcdir in
6392   .)  # No --srcdir option.  We are building in place.
6393     ac_srcdir=.
6394     if test -z "$ac_top_builddir"; then
6395        ac_top_srcdir=.
6396     else
6397        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6398     fi ;;
6399   [\\/]* | ?:[\\/]* )  # Absolute path.
6400     ac_srcdir=$srcdir$ac_dir_suffix;
6401     ac_top_srcdir=$srcdir ;;
6402   *) # Relative path.
6403     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6404     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6405 esac
6406
6407 # Do not use `cd foo && pwd` to compute absolute paths, because
6408 # the directories may not exist.
6409 case `pwd` in
6410 .) ac_abs_builddir="$ac_dir";;
6411 *)
6412   case "$ac_dir" in
6413   .) ac_abs_builddir=`pwd`;;
6414   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6415   *) ac_abs_builddir=`pwd`/"$ac_dir";;
6416   esac;;
6417 esac
6418 case $ac_abs_builddir in
6419 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6420 *)
6421   case ${ac_top_builddir}. in
6422   .) ac_abs_top_builddir=$ac_abs_builddir;;
6423   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6424   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6425   esac;;
6426 esac
6427 case $ac_abs_builddir in
6428 .) ac_abs_srcdir=$ac_srcdir;;
6429 *)
6430   case $ac_srcdir in
6431   .) ac_abs_srcdir=$ac_abs_builddir;;
6432   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6433   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6434   esac;;
6435 esac
6436 case $ac_abs_builddir in
6437 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6438 *)
6439   case $ac_top_srcdir in
6440   .) ac_abs_top_srcdir=$ac_abs_builddir;;
6441   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6442   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6443   esac;;
6444 esac
6445
6446
6447   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6448 echo "$as_me: executing $ac_dest commands" >&6;}
6449   case $ac_dest in
6450     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6451   # Strip MF so we end up with the name of the file.
6452   mf=`echo "$mf" | sed -e 's/:.*$//'`
6453   # Check whether this is an Automake generated Makefile or not.
6454   # We used to match only the files named `Makefile.in', but
6455   # some people rename them; so instead we look at the file content.
6456   # Grep'ing the first line is not enough: some people post-process
6457   # each Makefile.in and add a new line on top of each file to say so.
6458   # So let's grep whole file.
6459   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6460     dirpart=`(dirname "$mf") 2>/dev/null ||
6461 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6462          X"$mf" : 'X\(//\)[^/]' \| \
6463          X"$mf" : 'X\(//\)$' \| \
6464          X"$mf" : 'X\(/\)' \| \
6465          .     : '\(.\)' 2>/dev/null ||
6466 echo X"$mf" |
6467     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6468           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6469           /^X\(\/\/\)$/{ s//\1/; q; }
6470           /^X\(\/\).*/{ s//\1/; q; }
6471           s/.*/./; q'`
6472   else
6473     continue
6474   fi
6475   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
6476   # Extract the definition of DEP_FILES from the Makefile without
6477   # running `make'.
6478   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
6479   test -z "$DEPDIR" && continue
6480   # When using ansi2knr, U may be empty or an underscore; expand it
6481   U=`sed -n -e '/^U = / s///p' < "$mf"`
6482   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
6483   # We invoke sed twice because it is the simplest approach to
6484   # changing $(DEPDIR) to its actual value in the expansion.
6485   for file in `sed -n -e '
6486     /^DEP_FILES = .*\\\\$/ {
6487       s/^DEP_FILES = //
6488       :loop
6489         s/\\\\$//
6490         p
6491         n
6492         /\\\\$/ b loop
6493       p
6494     }
6495     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
6496        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6497     # Make sure the directory exists.
6498     test -f "$dirpart/$file" && continue
6499     fdir=`(dirname "$file") 2>/dev/null ||
6500 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6501          X"$file" : 'X\(//\)[^/]' \| \
6502          X"$file" : 'X\(//\)$' \| \
6503          X"$file" : 'X\(/\)' \| \
6504          .     : '\(.\)' 2>/dev/null ||
6505 echo X"$file" |
6506     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6507           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6508           /^X\(\/\/\)$/{ s//\1/; q; }
6509           /^X\(\/\).*/{ s//\1/; q; }
6510           s/.*/./; q'`
6511     { if $as_mkdir_p; then
6512     mkdir -p $dirpart/$fdir
6513   else
6514     as_dir=$dirpart/$fdir
6515     as_dirs=
6516     while test ! -d "$as_dir"; do
6517       as_dirs="$as_dir $as_dirs"
6518       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6519 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6520          X"$as_dir" : 'X\(//\)[^/]' \| \
6521          X"$as_dir" : 'X\(//\)$' \| \
6522          X"$as_dir" : 'X\(/\)' \| \
6523          .     : '\(.\)' 2>/dev/null ||
6524 echo X"$as_dir" |
6525     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6526           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6527           /^X\(\/\/\)$/{ s//\1/; q; }
6528           /^X\(\/\).*/{ s//\1/; q; }
6529           s/.*/./; q'`
6530     done
6531     test ! -n "$as_dirs" || mkdir $as_dirs
6532   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
6533 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
6534    { (exit 1); exit 1; }; }; }
6535
6536     # echo "creating $dirpart/$file"
6537     echo '# dummy' > "$dirpart/$file"
6538   done
6539 done
6540  ;;
6541   esac
6542 done
6543 _ACEOF
6544
6545 cat >>$CONFIG_STATUS <<\_ACEOF
6546
6547 { (exit 0); exit 0; }
6548 _ACEOF
6549 chmod +x $CONFIG_STATUS
6550 ac_clean_files=$ac_clean_files_save
6551
6552
6553 # configure is writing to config.log, and then calls config.status.
6554 # config.status does its own redirection, appending to config.log.
6555 # Unfortunately, on DOS this fails, as config.log is still kept open
6556 # by configure, so config.status won't be able to write to it; its
6557 # output is simply discarded.  So we exec the FD to /dev/null,
6558 # effectively closing config.log, so it can be properly (re)opened and
6559 # appended to by config.status.  When coming back to configure, we
6560 # need to make the FD available again.
6561 if test "$no_create" != yes; then
6562   ac_cs_success=:
6563   ac_config_status_args=
6564   test "$silent" = yes &&
6565     ac_config_status_args="$ac_config_status_args --quiet"
6566   exec 5>/dev/null
6567   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6568   exec 5>>config.log
6569   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6570   # would make configure fail if this is the last instruction.
6571   $ac_cs_success || { (exit 1); exit 1; }
6572 fi
6573
6574 chmod +x modtool
6575
6576
6577 # ======================================================================
6578 #               generate orte/include/orte_config.h
6579 # ======================================================================
6580
6581 { echo "$as_me:$LINENO: creating orte/include/orte_config.h" >&5
6582 echo "$as_me: creating orte/include/orte_config.h" >&6;}
6583 sed -e "s/ PACKAGE/ ORTE_PACKAGE/" -e "s/ VERSION/ ORTE_VERSION/" \
6584     orte/include/config.h >orte/include/orte_config.h.new
6585 if cmp -s orte/include/orte_config.h.new orte/include/orte_config.h; then
6586         rm orte/include/orte_config.h.new
6587         { echo "$as_me:$LINENO: orte/include/orte_config.h is unchanged" >&5
6588 echo "$as_me: orte/include/orte_config.h is unchanged" >&6;}
6589 else
6590         mv orte/include/orte_config.h.new orte/include/orte_config.h
6591 fi
6592
6593 echo \
6594 "------------------------------------------------------------------------
6595 Configuration ORTE:
6596
6597   Source code location:       ${srcdir}
6598   Compiler:                   ${CC}
6599   Compiler flags:             ${CFLAGS}
6600   Host System Type:           ${host}
6601
6602   See config.h for further configuration information.
6603 ------------------------------------------------------------------------"
6604