Salome HOME
Initial version
[plugins/ghs3dplugin.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 if expr a : '\(a\)' >/dev/null 2>&1; then
11   as_expr=expr
12 else
13   as_expr=false
14 fi
15
16
17 ## --------------------- ##
18 ## M4sh Initialization.  ##
19 ## --------------------- ##
20
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23   emulate sh
24   NULLCMD=:
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26   set -o posix
27 fi
28
29 # NLS nuisances.
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32   as_unset=unset
33 else
34   as_unset=false
35 fi
36
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38     { $as_unset LANG || test "${LANG+set}" != set; } ||
39       { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42       { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45       { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48       { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51       { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54       { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57       { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60       { LC_MESSAGES=C; export LC_MESSAGES; }
61
62
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66          X"$0" : 'X\(//\)$' \| \
67          X"$0" : 'X\(/\)$' \| \
68          .     : '\(.\)' 2>/dev/null ||
69 echo X/"$0" |
70     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71           /^X\/\(\/\/\)$/{ s//\1/; q; }
72           /^X\/\(\/\).*/{ s//\1/; q; }
73           s/.*/./; q'`
74
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85   echo "#! /bin/sh" >conftest.sh
86   echo  "exit 0"   >>conftest.sh
87   chmod +x conftest.sh
88   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89     PATH_SEPARATOR=';'
90   else
91     PATH_SEPARATOR=:
92   fi
93   rm -f conftest.sh
94 fi
95
96
97   as_lineno_1=$LINENO
98   as_lineno_2=$LINENO
99   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100   test "x$as_lineno_1" != "x$as_lineno_2" &&
101   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
102   # Find who we are.  Look in the path if we contain no path at all
103   # relative or not.
104   case $0 in
105     *[\\/]* ) as_myself=$0 ;;
106     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
108 do
109   IFS=$as_save_IFS
110   test -z "$as_dir" && as_dir=.
111   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
113
114        ;;
115   esac
116   # We did not find ourselves, most probably we were run as `sh COMMAND'
117   # in which case we are not to be found in the path.
118   if test "x$as_myself" = x; then
119     as_myself=$0
120   fi
121   if test ! -f "$as_myself"; then
122     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123    { (exit 1); exit 1; }; }
124   fi
125   case $CONFIG_SHELL in
126   '')
127     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129 do
130   IFS=$as_save_IFS
131   test -z "$as_dir" && as_dir=.
132   for as_base in sh bash ksh sh5; do
133          case $as_dir in
134          /*)
135            if ("$as_dir/$as_base" -c '
136   as_lineno_1=$LINENO
137   as_lineno_2=$LINENO
138   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139   test "x$as_lineno_1" != "x$as_lineno_2" &&
140   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
141              CONFIG_SHELL=$as_dir/$as_base
142              export CONFIG_SHELL
143              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144            fi;;
145          esac
146        done
147 done
148 ;;
149   esac
150
151   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152   # uniformly replaced by the line number.  The first 'sed' inserts a
153   # line-number line before each line; the second 'sed' does the real
154   # work.  The second script uses 'N' to pair each line-number line
155   # with the numbered line, and appends trailing '-' during
156   # substitution so that $LINENO is not a special case at line end.
157   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
159   sed '=' <$as_myself |
160     sed '
161       N
162       s,$,-,
163       : loop
164       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165       t loop
166       s,-$,,
167       s,^['$as_cr_digits']*\n,,
168     ' >$as_me.lineno &&
169   chmod +x $as_me.lineno ||
170     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171    { (exit 1); exit 1; }; }
172
173   # Don't try to exec as it changes $[0], causing all sort of problems
174   # (the dirname of $[0] is not the place where we might find the
175   # original and so on.  Autoconf is especially sensible to this).
176   . ./$as_me.lineno
177   # Exit status is that of the last command.
178   exit
179 }
180
181
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183   *c*,-n*) ECHO_N= ECHO_C='
184 ' ECHO_T='      ' ;;
185   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
187 esac
188
189 if expr a : '\(a\)' >/dev/null 2>&1; then
190   as_expr=expr
191 else
192   as_expr=false
193 fi
194
195 rm -f conf$$ conf$$.exe conf$$.file
196 echo >conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198   # We could just check for DJGPP; but this test a) works b) is more generic
199   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200   if test -f conf$$.exe; then
201     # Don't use ln at all; we don't have any links
202     as_ln_s='cp -p'
203   else
204     as_ln_s='ln -s'
205   fi
206 elif ln conf$$.file conf$$ 2>/dev/null; then
207   as_ln_s=ln
208 else
209   as_ln_s='cp -p'
210 fi
211 rm -f conf$$ conf$$.exe conf$$.file
212
213 as_executable_p="test -f"
214
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220
221
222 # IFS
223 # We need space, tab and new line, in precisely that order.
224 as_nl='
225 '
226 IFS="   $as_nl"
227
228 # CDPATH.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
231
232 # Name of the host.
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237 exec 6>&1
238
239 #
240 # Initializations.
241 #
242 ac_default_prefix=/usr/local
243 cross_compiling=no
244 subdirs=
245 MFLAGS=
246 MAKEFLAGS=
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete.  It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
253
254 # Identity of this package.
255 PACKAGE_NAME=
256 PACKAGE_TARNAME=
257 PACKAGE_VERSION=
258 PACKAGE_STRING=
259 PACKAGE_BUGREPORT=
260
261 ac_unique_file="src"
262 # Factoring default headers for most tests.
263 ac_includes_default="\
264 #include <stdio.h>
265 #if HAVE_SYS_TYPES_H
266 # include <sys/types.h>
267 #endif
268 #if HAVE_SYS_STAT_H
269 # include <sys/stat.h>
270 #endif
271 #if STDC_HEADERS
272 # include <stdlib.h>
273 # include <stddef.h>
274 #else
275 # if HAVE_STDLIB_H
276 #  include <stdlib.h>
277 # endif
278 #endif
279 #if HAVE_STRING_H
280 # if !STDC_HEADERS && HAVE_MEMORY_H
281 #  include <memory.h>
282 # endif
283 # include <string.h>
284 #endif
285 #if HAVE_STRINGS_H
286 # include <strings.h>
287 #endif
288 #if HAVE_INTTYPES_H
289 # include <inttypes.h>
290 #else
291 # if HAVE_STDINT_H
292 #  include <stdint.h>
293 # endif
294 #endif
295 #if HAVE_UNISTD_H
296 # include <unistd.h>
297 #endif"
298
299
300 # Initialize some variables set by options.
301 ac_init_help=
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
305 cache_file=/dev/null
306 exec_prefix=NONE
307 no_create=
308 no_recursion=
309 prefix=NONE
310 program_prefix=NONE
311 program_suffix=NONE
312 program_transform_name=s,x,x,
313 silent=
314 site=
315 srcdir=
316 verbose=
317 x_includes=NONE
318 x_libraries=NONE
319
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
337
338 ac_prev=
339 for ac_option
340 do
341   # If the previous option needs an argument, assign it.
342   if test -n "$ac_prev"; then
343     eval "$ac_prev=\$ac_option"
344     ac_prev=
345     continue
346   fi
347
348   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
349
350   # Accept the important Cygnus configure options, so we can diagnose typos.
351
352   case $ac_option in
353
354   -bindir | --bindir | --bindi | --bind | --bin | --bi)
355     ac_prev=bindir ;;
356   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357     bindir=$ac_optarg ;;
358
359   -build | --build | --buil | --bui | --bu)
360     ac_prev=build_alias ;;
361   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362     build_alias=$ac_optarg ;;
363
364   -cache-file | --cache-file | --cache-fil | --cache-fi \
365   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366     ac_prev=cache_file ;;
367   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369     cache_file=$ac_optarg ;;
370
371   --config-cache | -C)
372     cache_file=config.cache ;;
373
374   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375     ac_prev=datadir ;;
376   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377   | --da=*)
378     datadir=$ac_optarg ;;
379
380   -disable-* | --disable-*)
381     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382     # Reject names that are not valid shell variable names.
383     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385    { (exit 1); exit 1; }; }
386     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387     eval "enable_$ac_feature=no" ;;
388
389   -enable-* | --enable-*)
390     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391     # Reject names that are not valid shell variable names.
392     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394    { (exit 1); exit 1; }; }
395     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396     case $ac_option in
397       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398       *) ac_optarg=yes ;;
399     esac
400     eval "enable_$ac_feature='$ac_optarg'" ;;
401
402   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404   | --exec | --exe | --ex)
405     ac_prev=exec_prefix ;;
406   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408   | --exec=* | --exe=* | --ex=*)
409     exec_prefix=$ac_optarg ;;
410
411   -gas | --gas | --ga | --g)
412     # Obsolete; use --with-gas.
413     with_gas=yes ;;
414
415   -help | --help | --hel | --he | -h)
416     ac_init_help=long ;;
417   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418     ac_init_help=recursive ;;
419   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420     ac_init_help=short ;;
421
422   -host | --host | --hos | --ho)
423     ac_prev=host_alias ;;
424   -host=* | --host=* | --hos=* | --ho=*)
425     host_alias=$ac_optarg ;;
426
427   -includedir | --includedir | --includedi | --included | --include \
428   | --includ | --inclu | --incl | --inc)
429     ac_prev=includedir ;;
430   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431   | --includ=* | --inclu=* | --incl=* | --inc=*)
432     includedir=$ac_optarg ;;
433
434   -infodir | --infodir | --infodi | --infod | --info | --inf)
435     ac_prev=infodir ;;
436   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437     infodir=$ac_optarg ;;
438
439   -libdir | --libdir | --libdi | --libd)
440     ac_prev=libdir ;;
441   -libdir=* | --libdir=* | --libdi=* | --libd=*)
442     libdir=$ac_optarg ;;
443
444   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445   | --libexe | --libex | --libe)
446     ac_prev=libexecdir ;;
447   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448   | --libexe=* | --libex=* | --libe=*)
449     libexecdir=$ac_optarg ;;
450
451   -localstatedir | --localstatedir | --localstatedi | --localstated \
452   | --localstate | --localstat | --localsta | --localst \
453   | --locals | --local | --loca | --loc | --lo)
454     ac_prev=localstatedir ;;
455   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458     localstatedir=$ac_optarg ;;
459
460   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461     ac_prev=mandir ;;
462   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463     mandir=$ac_optarg ;;
464
465   -nfp | --nfp | --nf)
466     # Obsolete; use --without-fp.
467     with_fp=no ;;
468
469   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470   | --no-cr | --no-c | -n)
471     no_create=yes ;;
472
473   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475     no_recursion=yes ;;
476
477   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479   | --oldin | --oldi | --old | --ol | --o)
480     ac_prev=oldincludedir ;;
481   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484     oldincludedir=$ac_optarg ;;
485
486   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487     ac_prev=prefix ;;
488   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489     prefix=$ac_optarg ;;
490
491   -program-prefix | --program-prefix | --program-prefi | --program-pref \
492   | --program-pre | --program-pr | --program-p)
493     ac_prev=program_prefix ;;
494   -program-prefix=* | --program-prefix=* | --program-prefi=* \
495   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496     program_prefix=$ac_optarg ;;
497
498   -program-suffix | --program-suffix | --program-suffi | --program-suff \
499   | --program-suf | --program-su | --program-s)
500     ac_prev=program_suffix ;;
501   -program-suffix=* | --program-suffix=* | --program-suffi=* \
502   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503     program_suffix=$ac_optarg ;;
504
505   -program-transform-name | --program-transform-name \
506   | --program-transform-nam | --program-transform-na \
507   | --program-transform-n | --program-transform- \
508   | --program-transform | --program-transfor \
509   | --program-transfo | --program-transf \
510   | --program-trans | --program-tran \
511   | --progr-tra | --program-tr | --program-t)
512     ac_prev=program_transform_name ;;
513   -program-transform-name=* | --program-transform-name=* \
514   | --program-transform-nam=* | --program-transform-na=* \
515   | --program-transform-n=* | --program-transform-=* \
516   | --program-transform=* | --program-transfor=* \
517   | --program-transfo=* | --program-transf=* \
518   | --program-trans=* | --program-tran=* \
519   | --progr-tra=* | --program-tr=* | --program-t=*)
520     program_transform_name=$ac_optarg ;;
521
522   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523   | -silent | --silent | --silen | --sile | --sil)
524     silent=yes ;;
525
526   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527     ac_prev=sbindir ;;
528   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529   | --sbi=* | --sb=*)
530     sbindir=$ac_optarg ;;
531
532   -sharedstatedir | --sharedstatedir | --sharedstatedi \
533   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534   | --sharedst | --shareds | --shared | --share | --shar \
535   | --sha | --sh)
536     ac_prev=sharedstatedir ;;
537   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540   | --sha=* | --sh=*)
541     sharedstatedir=$ac_optarg ;;
542
543   -site | --site | --sit)
544     ac_prev=site ;;
545   -site=* | --site=* | --sit=*)
546     site=$ac_optarg ;;
547
548   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549     ac_prev=srcdir ;;
550   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551     srcdir=$ac_optarg ;;
552
553   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554   | --syscon | --sysco | --sysc | --sys | --sy)
555     ac_prev=sysconfdir ;;
556   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558     sysconfdir=$ac_optarg ;;
559
560   -target | --target | --targe | --targ | --tar | --ta | --t)
561     ac_prev=target_alias ;;
562   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563     target_alias=$ac_optarg ;;
564
565   -v | -verbose | --verbose | --verbos | --verbo | --verb)
566     verbose=yes ;;
567
568   -version | --version | --versio | --versi | --vers | -V)
569     ac_init_version=: ;;
570
571   -with-* | --with-*)
572     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573     # Reject names that are not valid shell variable names.
574     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575       { echo "$as_me: error: invalid package name: $ac_package" >&2
576    { (exit 1); exit 1; }; }
577     ac_package=`echo $ac_package| sed 's/-/_/g'`
578     case $ac_option in
579       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580       *) ac_optarg=yes ;;
581     esac
582     eval "with_$ac_package='$ac_optarg'" ;;
583
584   -without-* | --without-*)
585     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586     # Reject names that are not valid shell variable names.
587     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588       { echo "$as_me: error: invalid package name: $ac_package" >&2
589    { (exit 1); exit 1; }; }
590     ac_package=`echo $ac_package | sed 's/-/_/g'`
591     eval "with_$ac_package=no" ;;
592
593   --x)
594     # Obsolete; use --with-x.
595     with_x=yes ;;
596
597   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598   | --x-incl | --x-inc | --x-in | --x-i)
599     ac_prev=x_includes ;;
600   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602     x_includes=$ac_optarg ;;
603
604   -x-libraries | --x-libraries | --x-librarie | --x-librari \
605   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606     ac_prev=x_libraries ;;
607   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609     x_libraries=$ac_optarg ;;
610
611   -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613    { (exit 1); exit 1; }; }
614     ;;
615
616   *=*)
617     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618     # Reject names that are not valid shell variable names.
619     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621    { (exit 1); exit 1; }; }
622     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623     eval "$ac_envvar='$ac_optarg'"
624     export $ac_envvar ;;
625
626   *)
627     # FIXME: should be removed in autoconf 3.0.
628     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
632     ;;
633
634   esac
635 done
636
637 if test -n "$ac_prev"; then
638   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639   { echo "$as_me: error: missing argument to $ac_option" >&2
640    { (exit 1); exit 1; }; }
641 fi
642
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
645 do
646   eval ac_val=$`echo $ac_var`
647   case $ac_val in
648     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650    { (exit 1); exit 1; }; };;
651   esac
652 done
653
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656               localstatedir libdir includedir oldincludedir infodir mandir
657 do
658   eval ac_val=$`echo $ac_var`
659   case $ac_val in
660     [\\/$]* | ?:[\\/]* ) ;;
661     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662    { (exit 1); exit 1; }; };;
663   esac
664 done
665
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
669 build=$build_alias
670 host=$host_alias
671 target=$target_alias
672
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675   if test "x$build_alias" = x; then
676     cross_compiling=maybe
677     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678     If a cross compiler is detected then cross compile mode will be used." >&2
679   elif test "x$build_alias" != "x$host_alias"; then
680     cross_compiling=yes
681   fi
682 fi
683
684 ac_tool_prefix=
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
686
687 test "$silent" = yes && exec 6>/dev/null
688
689
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692   ac_srcdir_defaulted=yes
693   # Try the directory containing this script, then its parent.
694   ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696          X"$0" : 'X\(//\)[^/]' \| \
697          X"$0" : 'X\(//\)$' \| \
698          X"$0" : 'X\(/\)' \| \
699          .     : '\(.\)' 2>/dev/null ||
700 echo X"$0" |
701     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703           /^X\(\/\/\)$/{ s//\1/; q; }
704           /^X\(\/\).*/{ s//\1/; q; }
705           s/.*/./; q'`
706   srcdir=$ac_confdir
707   if test ! -r $srcdir/$ac_unique_file; then
708     srcdir=..
709   fi
710 else
711   ac_srcdir_defaulted=no
712 fi
713 if test ! -r $srcdir/$ac_unique_file; then
714   if test "$ac_srcdir_defaulted" = yes; then
715     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716    { (exit 1); exit 1; }; }
717   else
718     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719    { (exit 1); exit 1; }; }
720   fi
721 fi
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
736 ac_env_CC_value=$CC
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CXX_set=${CXX+set}
752 ac_env_CXX_value=$CXX
753 ac_cv_env_CXX_set=${CXX+set}
754 ac_cv_env_CXX_value=$CXX
755 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
756 ac_env_CXXFLAGS_value=$CXXFLAGS
757 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
758 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
759 ac_env_CXXCPP_set=${CXXCPP+set}
760 ac_env_CXXCPP_value=$CXXCPP
761 ac_cv_env_CXXCPP_set=${CXXCPP+set}
762 ac_cv_env_CXXCPP_value=$CXXCPP
763 ac_env_CPP_set=${CPP+set}
764 ac_env_CPP_value=$CPP
765 ac_cv_env_CPP_set=${CPP+set}
766 ac_cv_env_CPP_value=$CPP
767
768 #
769 # Report the --help message.
770 #
771 if test "$ac_init_help" = "long"; then
772   # Omit some internal or obsolete options to make the list less imposing.
773   # This message is too long to be a string in the A/UX 3.1 sh.
774   cat <<_ACEOF
775 \`configure' configures this package to adapt to many kinds of systems.
776
777 Usage: $0 [OPTION]... [VAR=VALUE]...
778
779 To assign environment variables (e.g., CC, CFLAGS...), specify them as
780 VAR=VALUE.  See below for descriptions of some of the useful variables.
781
782 Defaults for the options are specified in brackets.
783
784 Configuration:
785   -h, --help              display this help and exit
786       --help=short        display options specific to this package
787       --help=recursive    display the short help of all the included packages
788   -V, --version           display version information and exit
789   -q, --quiet, --silent   do not print \`checking...' messages
790       --cache-file=FILE   cache test results in FILE [disabled]
791   -C, --config-cache      alias for \`--cache-file=config.cache'
792   -n, --no-create         do not create output files
793       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
794
795 _ACEOF
796
797   cat <<_ACEOF
798 Installation directories:
799   --prefix=PREFIX         install architecture-independent files in PREFIX
800                           [$ac_default_prefix]
801   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
802                           [PREFIX]
803
804 By default, \`make install' will install all the files in
805 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
806 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
807 for instance \`--prefix=\$HOME'.
808
809 For better control, use the options below.
810
811 Fine tuning of the installation directories:
812   --bindir=DIR           user executables [EPREFIX/bin]
813   --sbindir=DIR          system admin executables [EPREFIX/sbin]
814   --libexecdir=DIR       program executables [EPREFIX/libexec]
815   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
816   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
817   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
818   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
819   --libdir=DIR           object code libraries [EPREFIX/lib]
820   --includedir=DIR       C header files [PREFIX/include]
821   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
822   --infodir=DIR          info documentation [PREFIX/info]
823   --mandir=DIR           man documentation [PREFIX/man]
824 _ACEOF
825
826   cat <<\_ACEOF
827
828 X features:
829   --x-includes=DIR    X include files are in DIR
830   --x-libraries=DIR   X library files are in DIR
831
832 System types:
833   --build=BUILD     configure for building on BUILD [guessed]
834   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
835   --target=TARGET   configure for building compilers for TARGET [HOST]
836 _ACEOF
837 fi
838
839 if test -n "$ac_init_help"; then
840
841   cat <<\_ACEOF
842
843 Optional Features:
844   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
845   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
846   --enable-debug=PKGS  build without debug information default=yes
847   --enable-production=PKGS  build without debug information default=no
848   --enable-static=PKGS  build static libraries default=no
849   --enable-shared=PKGS  build shared libraries default=yes
850   --enable-fast-install=PKGS  optimize for fast installation default=yes
851   --disable-libtool-lock  avoid locking (might break parallel builds)
852
853 Optional Packages:
854   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
855   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
856   --with-gnu-ld           assume the C compiler uses GNU ld default=no
857 --with-mpich=DIR root directory path of MPICH installation
858   --with-python=DIR root directory path of python installation
859   --with-python-site=DIR          Use DIR for installing platform independent
860                                   Python site-packages
861   --with-python-site-exec=DIR     Use DIR for installing platform dependent
862                                   Python site-packages
863   --with-swig=EXEC swig executable
864   --with-opengl=DIR root directory path of OpenGL installation
865   --with-x                use the X Window System
866   --with-hdf5=DIR                 root directory path to hdf5 installation
867   --with-med2=DIR                 root directory path to med2 installation
868   --with-kernel=DIR               root directory path of KERNEL build or installation
869   --with-geom=DIR root directory path of GEOM installation
870   --with-smesh=DIR root directory path of SMESH installation
871   --with-ghs3d=DIR root directory path of GHS33D installation
872
873 Some influential environment variables:
874   CC          C compiler command
875   CFLAGS      C compiler flags
876   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
877               nonstandard directory <lib dir>
878   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
879               headers in a nonstandard directory <include dir>
880   CXX         C++ compiler command
881   CXXFLAGS    C++ compiler flags
882   CXXCPP      C++ preprocessor
883   CPP         C preprocessor
884
885 Use these variables to override the choices made by `configure' or to help
886 it to find libraries and programs with nonstandard names/locations.
887
888 _ACEOF
889 fi
890
891 if test "$ac_init_help" = "recursive"; then
892   # If there are subdirs, report their specific --help.
893   ac_popdir=`pwd`
894   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
895     test -d $ac_dir || continue
896     ac_builddir=.
897
898 if test "$ac_dir" != .; then
899   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
900   # A "../" for each directory in $ac_dir_suffix.
901   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
902 else
903   ac_dir_suffix= ac_top_builddir=
904 fi
905
906 case $srcdir in
907   .)  # No --srcdir option.  We are building in place.
908     ac_srcdir=.
909     if test -z "$ac_top_builddir"; then
910        ac_top_srcdir=.
911     else
912        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
913     fi ;;
914   [\\/]* | ?:[\\/]* )  # Absolute path.
915     ac_srcdir=$srcdir$ac_dir_suffix;
916     ac_top_srcdir=$srcdir ;;
917   *) # Relative path.
918     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
919     ac_top_srcdir=$ac_top_builddir$srcdir ;;
920 esac
921 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
922 # absolute.
923 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
924 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
925 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
926 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
927
928     cd $ac_dir
929     # Check for guested configure; otherwise get Cygnus style configure.
930     if test -f $ac_srcdir/configure.gnu; then
931       echo
932       $SHELL $ac_srcdir/configure.gnu  --help=recursive
933     elif test -f $ac_srcdir/configure; then
934       echo
935       $SHELL $ac_srcdir/configure  --help=recursive
936     elif test -f $ac_srcdir/configure.ac ||
937            test -f $ac_srcdir/configure.in; then
938       echo
939       $ac_configure --help
940     else
941       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
942     fi
943     cd $ac_popdir
944   done
945 fi
946
947 test -n "$ac_init_help" && exit 0
948 if $ac_init_version; then
949   cat <<\_ACEOF
950
951 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
952 Free Software Foundation, Inc.
953 This configure script is free software; the Free Software Foundation
954 gives unlimited permission to copy, distribute and modify it.
955 _ACEOF
956   exit 0
957 fi
958 exec 5>config.log
959 cat >&5 <<_ACEOF
960 This file contains any messages produced by compilers while
961 running configure, to aid debugging if configure makes a mistake.
962
963 It was created by $as_me, which was
964 generated by GNU Autoconf 2.53.  Invocation command line was
965
966   $ $0 $@
967
968 _ACEOF
969 {
970 cat <<_ASUNAME
971 ## --------- ##
972 ## Platform. ##
973 ## --------- ##
974
975 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
976 uname -m = `(uname -m) 2>/dev/null || echo unknown`
977 uname -r = `(uname -r) 2>/dev/null || echo unknown`
978 uname -s = `(uname -s) 2>/dev/null || echo unknown`
979 uname -v = `(uname -v) 2>/dev/null || echo unknown`
980
981 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
982 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
983
984 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
985 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
986 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
987 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
988 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
989 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
990 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
991
992 _ASUNAME
993
994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
995 for as_dir in $PATH
996 do
997   IFS=$as_save_IFS
998   test -z "$as_dir" && as_dir=.
999   echo "PATH: $as_dir"
1000 done
1001
1002 } >&5
1003
1004 cat >&5 <<_ACEOF
1005
1006
1007 ## ----------- ##
1008 ## Core tests. ##
1009 ## ----------- ##
1010
1011 _ACEOF
1012
1013
1014 # Keep a trace of the command line.
1015 # Strip out --no-create and --no-recursion so they do not pile up.
1016 # Also quote any args containing shell meta-characters.
1017 ac_configure_args=
1018 ac_sep=
1019 for ac_arg
1020 do
1021   case $ac_arg in
1022   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023   | --no-cr | --no-c | -n ) continue ;;
1024   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1026     continue ;;
1027   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1028     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1029   esac
1030   case " $ac_configure_args " in
1031     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1032     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1033        ac_sep=" " ;;
1034   esac
1035   # Get rid of the leading space.
1036 done
1037
1038 # When interrupted or exit'd, cleanup temporary files, and complete
1039 # config.log.  We remove comments because anyway the quotes in there
1040 # would cause problems or look ugly.
1041 # WARNING: Be sure not to use single quotes in there, as some shells,
1042 # such as our DU 5.0 friend, will then `close' the trap.
1043 trap 'exit_status=$?
1044   # Save into config.log some information that might help in debugging.
1045   {
1046     echo
1047     cat <<\_ASBOX
1048 ## ---------------- ##
1049 ## Cache variables. ##
1050 ## ---------------- ##
1051 _ASBOX
1052     echo
1053     # The following way of writing the cache mishandles newlines in values,
1054 {
1055   (set) 2>&1 |
1056     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1057     *ac_space=\ *)
1058       sed -n \
1059         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1060           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1061       ;;
1062     *)
1063       sed -n \
1064         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1065       ;;
1066     esac;
1067 }
1068     echo
1069     if test -s confdefs.h; then
1070       cat <<\_ASBOX
1071 ## ----------- ##
1072 ## confdefs.h. ##
1073 ## ----------- ##
1074 _ASBOX
1075       echo
1076       sed "/^$/d" confdefs.h
1077       echo
1078     fi
1079     test "$ac_signal" != 0 &&
1080       echo "$as_me: caught signal $ac_signal"
1081     echo "$as_me: exit $exit_status"
1082   } >&5
1083   rm -f core core.* *.core &&
1084   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1085     exit $exit_status
1086      ' 0
1087 for ac_signal in 1 2 13 15; do
1088   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1089 done
1090 ac_signal=0
1091
1092 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1093 rm -rf conftest* confdefs.h
1094 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1095 echo >confdefs.h
1096
1097 # Predefined preprocessor variables.
1098
1099 cat >>confdefs.h <<_ACEOF
1100 #define PACKAGE_NAME "$PACKAGE_NAME"
1101 _ACEOF
1102
1103
1104 cat >>confdefs.h <<_ACEOF
1105 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1106 _ACEOF
1107
1108
1109 cat >>confdefs.h <<_ACEOF
1110 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1111 _ACEOF
1112
1113
1114 cat >>confdefs.h <<_ACEOF
1115 #define PACKAGE_STRING "$PACKAGE_STRING"
1116 _ACEOF
1117
1118
1119 cat >>confdefs.h <<_ACEOF
1120 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1121 _ACEOF
1122
1123
1124 # Let the site file select an alternate cache file if it wants to.
1125 # Prefer explicitly selected file to automatically selected ones.
1126 if test -z "$CONFIG_SITE"; then
1127   if test "x$prefix" != xNONE; then
1128     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1129   else
1130     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1131   fi
1132 fi
1133 for ac_site_file in $CONFIG_SITE; do
1134   if test -r "$ac_site_file"; then
1135     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1136 echo "$as_me: loading site script $ac_site_file" >&6;}
1137     sed 's/^/| /' "$ac_site_file" >&5
1138     . "$ac_site_file"
1139   fi
1140 done
1141
1142 if test -r "$cache_file"; then
1143   # Some versions of bash will fail to source /dev/null (special
1144   # files actually), so we avoid doing that.
1145   if test -f "$cache_file"; then
1146     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1147 echo "$as_me: loading cache $cache_file" >&6;}
1148     case $cache_file in
1149       [\\/]* | ?:[\\/]* ) . $cache_file;;
1150       *)                      . ./$cache_file;;
1151     esac
1152   fi
1153 else
1154   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1155 echo "$as_me: creating cache $cache_file" >&6;}
1156   >$cache_file
1157 fi
1158
1159 # Check that the precious variables saved in the cache have kept the same
1160 # value.
1161 ac_cache_corrupted=false
1162 for ac_var in `(set) 2>&1 |
1163                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1164   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1165   eval ac_new_set=\$ac_env_${ac_var}_set
1166   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1167   eval ac_new_val="\$ac_env_${ac_var}_value"
1168   case $ac_old_set,$ac_new_set in
1169     set,)
1170       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1171 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1172       ac_cache_corrupted=: ;;
1173     ,set)
1174       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1175 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1176       ac_cache_corrupted=: ;;
1177     ,);;
1178     *)
1179       if test "x$ac_old_val" != "x$ac_new_val"; then
1180         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1181 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1182         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1183 echo "$as_me:   former value:  $ac_old_val" >&2;}
1184         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1185 echo "$as_me:   current value: $ac_new_val" >&2;}
1186         ac_cache_corrupted=:
1187       fi;;
1188   esac
1189   # Pass precious variables to config.status.
1190   if test "$ac_new_set" = set; then
1191     case $ac_new_val in
1192     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1193       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1194     *) ac_arg=$ac_var=$ac_new_val ;;
1195     esac
1196     case " $ac_configure_args " in
1197       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1198       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1199     esac
1200   fi
1201 done
1202 if $ac_cache_corrupted; then
1203   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1204 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1205   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1206 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1207    { (exit 1); exit 1; }; }
1208 fi
1209
1210 ac_ext=c
1211 ac_cpp='$CPP $CPPFLAGS'
1212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233 ac_aux_dir=
1234 for ac_dir in ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files $srcdir/${KERNEL_ROOT_DIR}/salome_adm/unix/config_files; do
1235   if test -f $ac_dir/install-sh; then
1236     ac_aux_dir=$ac_dir
1237     ac_install_sh="$ac_aux_dir/install-sh -c"
1238     break
1239   elif test -f $ac_dir/install.sh; then
1240     ac_aux_dir=$ac_dir
1241     ac_install_sh="$ac_aux_dir/install.sh -c"
1242     break
1243   elif test -f $ac_dir/shtool; then
1244     ac_aux_dir=$ac_dir
1245     ac_install_sh="$ac_aux_dir/shtool install -c"
1246     break
1247   fi
1248 done
1249 if test -z "$ac_aux_dir"; then
1250   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files $srcdir/${KERNEL_ROOT_DIR}/salome_adm/unix/config_files" >&5
1251 echo "$as_me: error: cannot find install-sh or install.sh in ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files $srcdir/${KERNEL_ROOT_DIR}/salome_adm/unix/config_files" >&2;}
1252    { (exit 1); exit 1; }; }
1253 fi
1254 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1255 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1256 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1257
1258 # Make sure we can run config.sub.
1259 $ac_config_sub sun4 >/dev/null 2>&1 ||
1260   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1261 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1262    { (exit 1); exit 1; }; }
1263
1264 echo "$as_me:$LINENO: checking build system type" >&5
1265 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1266 if test "${ac_cv_build+set}" = set; then
1267   echo $ECHO_N "(cached) $ECHO_C" >&6
1268 else
1269   ac_cv_build_alias=$build_alias
1270 test -z "$ac_cv_build_alias" &&
1271   ac_cv_build_alias=`$ac_config_guess`
1272 test -z "$ac_cv_build_alias" &&
1273   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1274 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1275    { (exit 1); exit 1; }; }
1276 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1277   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1278 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1279    { (exit 1); exit 1; }; }
1280
1281 fi
1282 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1283 echo "${ECHO_T}$ac_cv_build" >&6
1284 build=$ac_cv_build
1285 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1286 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1287 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1288
1289
1290 echo "$as_me:$LINENO: checking host system type" >&5
1291 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1292 if test "${ac_cv_host+set}" = set; then
1293   echo $ECHO_N "(cached) $ECHO_C" >&6
1294 else
1295   ac_cv_host_alias=$host_alias
1296 test -z "$ac_cv_host_alias" &&
1297   ac_cv_host_alias=$ac_cv_build_alias
1298 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1299   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1300 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1301    { (exit 1); exit 1; }; }
1302
1303 fi
1304 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1305 echo "${ECHO_T}$ac_cv_host" >&6
1306 host=$ac_cv_host
1307 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1308 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1309 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1310
1311
1312
1313 PACKAGE=salome
1314
1315
1316 VERSION=0.0.1
1317
1318
1319
1320 ROOT_BUILDDIR=`pwd`
1321 ROOT_SRCDIR=`echo $0 | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
1322 cd $ROOT_SRCDIR
1323 ROOT_SRCDIR=`pwd`
1324 cd $ROOT_BUILDDIR
1325
1326
1327
1328
1329 echo
1330 echo Source root directory : $ROOT_SRCDIR
1331 echo Build  root directory : $ROOT_BUILDDIR
1332 echo
1333 echo
1334
1335 if test -z "$AR"; then
1336    for ac_prog in ar xar
1337 do
1338   # Extract the first word of "$ac_prog", so it can be a program name with args.
1339 set dummy $ac_prog; ac_word=$2
1340 echo "$as_me:$LINENO: checking for $ac_word" >&5
1341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1342 if test "${ac_cv_prog_AR+set}" = set; then
1343   echo $ECHO_N "(cached) $ECHO_C" >&6
1344 else
1345   if test -n "$AR"; then
1346   ac_cv_prog_AR="$AR" # Let the user override the test.
1347 else
1348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1349 for as_dir in $PATH
1350 do
1351   IFS=$as_save_IFS
1352   test -z "$as_dir" && as_dir=.
1353   for ac_exec_ext in '' $ac_executable_extensions; do
1354   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1355     ac_cv_prog_AR="$ac_prog"
1356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1357     break 2
1358   fi
1359 done
1360 done
1361
1362 fi
1363 fi
1364 AR=$ac_cv_prog_AR
1365 if test -n "$AR"; then
1366   echo "$as_me:$LINENO: result: $AR" >&5
1367 echo "${ECHO_T}$AR" >&6
1368 else
1369   echo "$as_me:$LINENO: result: no" >&5
1370 echo "${ECHO_T}no" >&6
1371 fi
1372
1373   test -n "$AR" && break
1374 done
1375 test -n "$AR" || AR=":"
1376
1377 fi
1378
1379
1380 export AR
1381
1382 echo
1383 echo ---------------------------------------------
1384 echo testing make
1385 echo ---------------------------------------------
1386 echo
1387
1388 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1389 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1390 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1391 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1392   echo $ECHO_N "(cached) $ECHO_C" >&6
1393 else
1394   cat >conftest.make <<\_ACEOF
1395 all:
1396         @echo 'ac_maketemp="${MAKE}"'
1397 _ACEOF
1398 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1399 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1400 if test -n "$ac_maketemp"; then
1401   eval ac_cv_prog_make_${ac_make}_set=yes
1402 else
1403   eval ac_cv_prog_make_${ac_make}_set=no
1404 fi
1405 rm -f conftest.make
1406 fi
1407 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1408   echo "$as_me:$LINENO: result: yes" >&5
1409 echo "${ECHO_T}yes" >&6
1410   SET_MAKE=
1411 else
1412   echo "$as_me:$LINENO: result: no" >&5
1413 echo "${ECHO_T}no" >&6
1414   SET_MAKE="MAKE=${MAKE-make}"
1415 fi
1416
1417 # Find a good install program.  We prefer a C program (faster),
1418 # so one script is as good as another.  But avoid the broken or
1419 # incompatible versions:
1420 # SysV /etc/install, /usr/sbin/install
1421 # SunOS /usr/etc/install
1422 # IRIX /sbin/install
1423 # AIX /bin/install
1424 # AmigaOS /C/install, which installs bootblocks on floppy discs
1425 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1426 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1427 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1428 # ./install, which can be erroneously created by make from ./install.sh.
1429 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1430 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1431 if test -z "$INSTALL"; then
1432 if test "${ac_cv_path_install+set}" = set; then
1433   echo $ECHO_N "(cached) $ECHO_C" >&6
1434 else
1435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1436 for as_dir in $PATH
1437 do
1438   IFS=$as_save_IFS
1439   test -z "$as_dir" && as_dir=.
1440   # Account for people who put trailing slashes in PATH elements.
1441 case $as_dir/ in
1442   ./ | .// | /cC/* | \
1443   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1444   /usr/ucb/* ) ;;
1445   *)
1446     # OSF1 and SCO ODT 3.0 have their own names for install.
1447     # Don't use installbsd from OSF since it installs stuff as root
1448     # by default.
1449     for ac_prog in ginstall scoinst install; do
1450       for ac_exec_ext in '' $ac_executable_extensions; do
1451         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1452           if test $ac_prog = install &&
1453             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1454             # AIX install.  It has an incompatible calling convention.
1455             :
1456           elif test $ac_prog = install &&
1457             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1458             # program-specific install script used by HP pwplus--don't use.
1459             :
1460           else
1461             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1462             break 3
1463           fi
1464         fi
1465       done
1466     done
1467     ;;
1468 esac
1469 done
1470
1471
1472 fi
1473   if test "${ac_cv_path_install+set}" = set; then
1474     INSTALL=$ac_cv_path_install
1475   else
1476     # As a last resort, use the slow shell script.  We don't cache a
1477     # path for INSTALL within a source directory, because that will
1478     # break other packages using the cache if that directory is
1479     # removed, or if the path is relative.
1480     INSTALL=$ac_install_sh
1481   fi
1482 fi
1483 echo "$as_me:$LINENO: result: $INSTALL" >&5
1484 echo "${ECHO_T}$INSTALL" >&6
1485
1486 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1487 # It thinks the first close brace ends the variable substitution.
1488 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1489
1490 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1491
1492 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1493
1494
1495 # Check whether --enable-debug or --disable-debug was given.
1496 if test "${enable_debug+set}" = set; then
1497   enableval="$enable_debug"
1498   p=${PACKAGE-default}
1499 case "$enableval" in
1500 yes) enable_debug=yes ;;
1501 no) enable_debug=no ;;
1502 *)
1503   enable_debug=no
1504   # Look at the argument we got.  We use all the common list separators.
1505   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1506   for pkg in $enableval; do
1507     if test "X$pkg" = "X$p"; then
1508       enable_debug=yes
1509     fi
1510   done
1511   IFS="$ac_save_ifs"
1512   ;;
1513 esac
1514 else
1515   enable_debug=yes
1516 fi;
1517 if test "X$enable_debug" = "Xyes"; then
1518   CFLAGS="$CFLAGS -g -D_DEBUG_ "
1519   CXXFLAGS="$CXXFLAGS -g -D_DEBUG_ -Wno-deprecated "
1520 fi
1521
1522 # Check whether --enable-production or --disable-production was given.
1523 if test "${enable_production+set}" = set; then
1524   enableval="$enable_production"
1525   p=${PACKAGE-default}
1526 case "$enableval" in
1527 yes) enable_production=yes ;;
1528 no) enable_production=no ;;
1529 *)
1530   enable_production=no
1531   # Look at the argument we got.  We use all the common list separators.
1532   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1533   for pkg in $enableval; do
1534     if test "X$pkg" = "X$p"; then
1535       enable_production=yes
1536     fi
1537   done
1538   IFS="$ac_save_ifs"
1539   ;;
1540 esac
1541 else
1542   enable_production=no
1543 fi;
1544 if test "X$enable_production" = "Xyes"; then
1545   CFLAGS="$CFLAGS -O"
1546   CXXFLAGS="$CXXFLAGS -O -Wno-deprecated "
1547 fi
1548
1549
1550 echo ---------------------------------------------
1551 echo testing libtool
1552 echo ---------------------------------------------
1553
1554 # Check whether --enable-static or --disable-static was given.
1555 if test "${enable_static+set}" = set; then
1556   enableval="$enable_static"
1557   p=${PACKAGE-default}
1558 case "$enableval" in
1559 yes) enable_static=yes ;;
1560 no) enable_static=no ;;
1561 *)
1562   enable_static=no
1563   # Look at the argument we got.  We use all the common list separators.
1564   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1565   for pkg in $enableval; do
1566     if test "X$pkg" = "X$p"; then
1567       enable_static=yes
1568     fi
1569   done
1570   IFS="$ac_save_ifs"
1571   ;;
1572 esac
1573 else
1574   enable_static=no
1575 fi;
1576
1577
1578 # Check whether --enable-shared or --disable-shared was given.
1579 if test "${enable_shared+set}" = set; then
1580   enableval="$enable_shared"
1581   p=${PACKAGE-default}
1582 case "$enableval" in
1583 yes) enable_shared=yes ;;
1584 no) enable_shared=no ;;
1585 *)
1586   enable_shared=no
1587   # Look at the argument we got.  We use all the common list separators.
1588   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1589   for pkg in $enableval; do
1590     if test "X$pkg" = "X$p"; then
1591       enable_shared=yes
1592     fi
1593   done
1594   IFS="$ac_save_ifs"
1595   ;;
1596 esac
1597 else
1598   enable_shared=yes
1599 fi;
1600 # Check whether --enable-fast-install or --disable-fast-install was given.
1601 if test "${enable_fast_install+set}" = set; then
1602   enableval="$enable_fast_install"
1603   p=${PACKAGE-default}
1604 case "$enableval" in
1605 yes) enable_fast_install=yes ;;
1606 no) enable_fast_install=no ;;
1607 *)
1608   enable_fast_install=no
1609   # Look at the argument we got.  We use all the common list separators.
1610   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1611   for pkg in $enableval; do
1612     if test "X$pkg" = "X$p"; then
1613       enable_fast_install=yes
1614     fi
1615   done
1616   IFS="$ac_save_ifs"
1617   ;;
1618 esac
1619 else
1620   enable_fast_install=yes
1621 fi;
1622 if test -n "$ac_tool_prefix"; then
1623   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1624 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1625 echo "$as_me:$LINENO: checking for $ac_word" >&5
1626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1627 if test "${ac_cv_prog_RANLIB+set}" = set; then
1628   echo $ECHO_N "(cached) $ECHO_C" >&6
1629 else
1630   if test -n "$RANLIB"; then
1631   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1632 else
1633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634 for as_dir in $PATH
1635 do
1636   IFS=$as_save_IFS
1637   test -z "$as_dir" && as_dir=.
1638   for ac_exec_ext in '' $ac_executable_extensions; do
1639   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1640     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1642     break 2
1643   fi
1644 done
1645 done
1646
1647 fi
1648 fi
1649 RANLIB=$ac_cv_prog_RANLIB
1650 if test -n "$RANLIB"; then
1651   echo "$as_me:$LINENO: result: $RANLIB" >&5
1652 echo "${ECHO_T}$RANLIB" >&6
1653 else
1654   echo "$as_me:$LINENO: result: no" >&5
1655 echo "${ECHO_T}no" >&6
1656 fi
1657
1658 fi
1659 if test -z "$ac_cv_prog_RANLIB"; then
1660   ac_ct_RANLIB=$RANLIB
1661   # Extract the first word of "ranlib", so it can be a program name with args.
1662 set dummy ranlib; ac_word=$2
1663 echo "$as_me:$LINENO: checking for $ac_word" >&5
1664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1665 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1666   echo $ECHO_N "(cached) $ECHO_C" >&6
1667 else
1668   if test -n "$ac_ct_RANLIB"; then
1669   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1670 else
1671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672 for as_dir in $PATH
1673 do
1674   IFS=$as_save_IFS
1675   test -z "$as_dir" && as_dir=.
1676   for ac_exec_ext in '' $ac_executable_extensions; do
1677   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1678     ac_cv_prog_ac_ct_RANLIB="ranlib"
1679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1680     break 2
1681   fi
1682 done
1683 done
1684
1685   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1686 fi
1687 fi
1688 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1689 if test -n "$ac_ct_RANLIB"; then
1690   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1691 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1692 else
1693   echo "$as_me:$LINENO: result: no" >&5
1694 echo "${ECHO_T}no" >&6
1695 fi
1696
1697   RANLIB=$ac_ct_RANLIB
1698 else
1699   RANLIB="$ac_cv_prog_RANLIB"
1700 fi
1701
1702 ac_ext=c
1703 ac_cpp='$CPP $CPPFLAGS'
1704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1707 if test -n "$ac_tool_prefix"; then
1708   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1709 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1710 echo "$as_me:$LINENO: checking for $ac_word" >&5
1711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1712 if test "${ac_cv_prog_CC+set}" = set; then
1713   echo $ECHO_N "(cached) $ECHO_C" >&6
1714 else
1715   if test -n "$CC"; then
1716   ac_cv_prog_CC="$CC" # Let the user override the test.
1717 else
1718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 for as_dir in $PATH
1720 do
1721   IFS=$as_save_IFS
1722   test -z "$as_dir" && as_dir=.
1723   for ac_exec_ext in '' $ac_executable_extensions; do
1724   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1725     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1727     break 2
1728   fi
1729 done
1730 done
1731
1732 fi
1733 fi
1734 CC=$ac_cv_prog_CC
1735 if test -n "$CC"; then
1736   echo "$as_me:$LINENO: result: $CC" >&5
1737 echo "${ECHO_T}$CC" >&6
1738 else
1739   echo "$as_me:$LINENO: result: no" >&5
1740 echo "${ECHO_T}no" >&6
1741 fi
1742
1743 fi
1744 if test -z "$ac_cv_prog_CC"; then
1745   ac_ct_CC=$CC
1746   # Extract the first word of "gcc", so it can be a program name with args.
1747 set dummy gcc; ac_word=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1751   echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753   if test -n "$ac_ct_CC"; then
1754   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1755 else
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 for as_dir in $PATH
1758 do
1759   IFS=$as_save_IFS
1760   test -z "$as_dir" && as_dir=.
1761   for ac_exec_ext in '' $ac_executable_extensions; do
1762   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763     ac_cv_prog_ac_ct_CC="gcc"
1764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765     break 2
1766   fi
1767 done
1768 done
1769
1770 fi
1771 fi
1772 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1773 if test -n "$ac_ct_CC"; then
1774   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1775 echo "${ECHO_T}$ac_ct_CC" >&6
1776 else
1777   echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1779 fi
1780
1781   CC=$ac_ct_CC
1782 else
1783   CC="$ac_cv_prog_CC"
1784 fi
1785
1786 if test -z "$CC"; then
1787   if test -n "$ac_tool_prefix"; then
1788   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1789 set dummy ${ac_tool_prefix}cc; ac_word=$2
1790 echo "$as_me:$LINENO: checking for $ac_word" >&5
1791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1792 if test "${ac_cv_prog_CC+set}" = set; then
1793   echo $ECHO_N "(cached) $ECHO_C" >&6
1794 else
1795   if test -n "$CC"; then
1796   ac_cv_prog_CC="$CC" # Let the user override the test.
1797 else
1798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799 for as_dir in $PATH
1800 do
1801   IFS=$as_save_IFS
1802   test -z "$as_dir" && as_dir=.
1803   for ac_exec_ext in '' $ac_executable_extensions; do
1804   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1805     ac_cv_prog_CC="${ac_tool_prefix}cc"
1806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1807     break 2
1808   fi
1809 done
1810 done
1811
1812 fi
1813 fi
1814 CC=$ac_cv_prog_CC
1815 if test -n "$CC"; then
1816   echo "$as_me:$LINENO: result: $CC" >&5
1817 echo "${ECHO_T}$CC" >&6
1818 else
1819   echo "$as_me:$LINENO: result: no" >&5
1820 echo "${ECHO_T}no" >&6
1821 fi
1822
1823 fi
1824 if test -z "$ac_cv_prog_CC"; then
1825   ac_ct_CC=$CC
1826   # Extract the first word of "cc", so it can be a program name with args.
1827 set dummy cc; ac_word=$2
1828 echo "$as_me:$LINENO: checking for $ac_word" >&5
1829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1831   echo $ECHO_N "(cached) $ECHO_C" >&6
1832 else
1833   if test -n "$ac_ct_CC"; then
1834   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1835 else
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837 for as_dir in $PATH
1838 do
1839   IFS=$as_save_IFS
1840   test -z "$as_dir" && as_dir=.
1841   for ac_exec_ext in '' $ac_executable_extensions; do
1842   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843     ac_cv_prog_ac_ct_CC="cc"
1844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1845     break 2
1846   fi
1847 done
1848 done
1849
1850 fi
1851 fi
1852 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1853 if test -n "$ac_ct_CC"; then
1854   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1855 echo "${ECHO_T}$ac_ct_CC" >&6
1856 else
1857   echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1859 fi
1860
1861   CC=$ac_ct_CC
1862 else
1863   CC="$ac_cv_prog_CC"
1864 fi
1865
1866 fi
1867 if test -z "$CC"; then
1868   # Extract the first word of "cc", so it can be a program name with args.
1869 set dummy cc; ac_word=$2
1870 echo "$as_me:$LINENO: checking for $ac_word" >&5
1871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1872 if test "${ac_cv_prog_CC+set}" = set; then
1873   echo $ECHO_N "(cached) $ECHO_C" >&6
1874 else
1875   if test -n "$CC"; then
1876   ac_cv_prog_CC="$CC" # Let the user override the test.
1877 else
1878   ac_prog_rejected=no
1879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1880 for as_dir in $PATH
1881 do
1882   IFS=$as_save_IFS
1883   test -z "$as_dir" && as_dir=.
1884   for ac_exec_ext in '' $ac_executable_extensions; do
1885   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1886     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1887        ac_prog_rejected=yes
1888        continue
1889      fi
1890     ac_cv_prog_CC="cc"
1891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892     break 2
1893   fi
1894 done
1895 done
1896
1897 if test $ac_prog_rejected = yes; then
1898   # We found a bogon in the path, so make sure we never use it.
1899   set dummy $ac_cv_prog_CC
1900   shift
1901   if test $# != 0; then
1902     # We chose a different compiler from the bogus one.
1903     # However, it has the same basename, so the bogon will be chosen
1904     # first if we set CC to just the basename; use the full file name.
1905     shift
1906     set dummy "$as_dir/$ac_word" ${1+"$@"}
1907     shift
1908     ac_cv_prog_CC="$@"
1909   fi
1910 fi
1911 fi
1912 fi
1913 CC=$ac_cv_prog_CC
1914 if test -n "$CC"; then
1915   echo "$as_me:$LINENO: result: $CC" >&5
1916 echo "${ECHO_T}$CC" >&6
1917 else
1918   echo "$as_me:$LINENO: result: no" >&5
1919 echo "${ECHO_T}no" >&6
1920 fi
1921
1922 fi
1923 if test -z "$CC"; then
1924   if test -n "$ac_tool_prefix"; then
1925   for ac_prog in cl
1926   do
1927     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1928 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1929 echo "$as_me:$LINENO: checking for $ac_word" >&5
1930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1931 if test "${ac_cv_prog_CC+set}" = set; then
1932   echo $ECHO_N "(cached) $ECHO_C" >&6
1933 else
1934   if test -n "$CC"; then
1935   ac_cv_prog_CC="$CC" # Let the user override the test.
1936 else
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 for as_dir in $PATH
1939 do
1940   IFS=$as_save_IFS
1941   test -z "$as_dir" && as_dir=.
1942   for ac_exec_ext in '' $ac_executable_extensions; do
1943   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1946     break 2
1947   fi
1948 done
1949 done
1950
1951 fi
1952 fi
1953 CC=$ac_cv_prog_CC
1954 if test -n "$CC"; then
1955   echo "$as_me:$LINENO: result: $CC" >&5
1956 echo "${ECHO_T}$CC" >&6
1957 else
1958   echo "$as_me:$LINENO: result: no" >&5
1959 echo "${ECHO_T}no" >&6
1960 fi
1961
1962     test -n "$CC" && break
1963   done
1964 fi
1965 if test -z "$CC"; then
1966   ac_ct_CC=$CC
1967   for ac_prog in cl
1968 do
1969   # Extract the first word of "$ac_prog", so it can be a program name with args.
1970 set dummy $ac_prog; ac_word=$2
1971 echo "$as_me:$LINENO: checking for $ac_word" >&5
1972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1973 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1974   echo $ECHO_N "(cached) $ECHO_C" >&6
1975 else
1976   if test -n "$ac_ct_CC"; then
1977   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1978 else
1979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980 for as_dir in $PATH
1981 do
1982   IFS=$as_save_IFS
1983   test -z "$as_dir" && as_dir=.
1984   for ac_exec_ext in '' $ac_executable_extensions; do
1985   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1986     ac_cv_prog_ac_ct_CC="$ac_prog"
1987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1988     break 2
1989   fi
1990 done
1991 done
1992
1993 fi
1994 fi
1995 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1996 if test -n "$ac_ct_CC"; then
1997   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1998 echo "${ECHO_T}$ac_ct_CC" >&6
1999 else
2000   echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6
2002 fi
2003
2004   test -n "$ac_ct_CC" && break
2005 done
2006
2007   CC=$ac_ct_CC
2008 fi
2009
2010 fi
2011
2012
2013 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2014 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2015    { (exit 1); exit 1; }; }
2016
2017 # Provide some information about the compiler.
2018 echo "$as_me:$LINENO:" \
2019      "checking for C compiler version" >&5
2020 ac_compiler=`set X $ac_compile; echo $2`
2021 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2022   (eval $ac_compiler --version </dev/null >&5) 2>&5
2023   ac_status=$?
2024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025   (exit $ac_status); }
2026 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2027   (eval $ac_compiler -v </dev/null >&5) 2>&5
2028   ac_status=$?
2029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030   (exit $ac_status); }
2031 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2032   (eval $ac_compiler -V </dev/null >&5) 2>&5
2033   ac_status=$?
2034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035   (exit $ac_status); }
2036
2037 cat >conftest.$ac_ext <<_ACEOF
2038 #line $LINENO "configure"
2039 #include "confdefs.h"
2040
2041 #ifdef F77_DUMMY_MAIN
2042 #  ifdef __cplusplus
2043      extern "C"
2044 #  endif
2045    int F77_DUMMY_MAIN() { return 1; }
2046 #endif
2047 int
2048 main ()
2049 {
2050
2051   ;
2052   return 0;
2053 }
2054 _ACEOF
2055 ac_clean_files_save=$ac_clean_files
2056 ac_clean_files="$ac_clean_files a.out a.exe"
2057 # Try to create an executable without -o first, disregard a.out.
2058 # It will help us diagnose broken compilers, and finding out an intuition
2059 # of exeext.
2060 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2061 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2062 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2063 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2064   (eval $ac_link_default) 2>&5
2065   ac_status=$?
2066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067   (exit $ac_status); }; then
2068   # Find the output, starting from the most likely.  This scheme is
2069 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2070 # resort.
2071
2072 # Be careful to initialize this variable, since it used to be cached.
2073 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2074 ac_cv_exeext=
2075 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2076                 ls a.out conftest 2>/dev/null;
2077                 ls a.* conftest.* 2>/dev/null`; do
2078   case $ac_file in
2079     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2080     a.out ) # We found the default executable, but exeext='' is most
2081             # certainly right.
2082             break;;
2083     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2084           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2085           export ac_cv_exeext
2086           break;;
2087     * ) break;;
2088   esac
2089 done
2090 else
2091   echo "$as_me: failed program was:" >&5
2092 cat conftest.$ac_ext >&5
2093 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2094 echo "$as_me: error: C compiler cannot create executables" >&2;}
2095    { (exit 77); exit 77; }; }
2096 fi
2097
2098 ac_exeext=$ac_cv_exeext
2099 echo "$as_me:$LINENO: result: $ac_file" >&5
2100 echo "${ECHO_T}$ac_file" >&6
2101
2102 # Check the compiler produces executables we can run.  If not, either
2103 # the compiler is broken, or we cross compile.
2104 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2105 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2106 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2107 # If not cross compiling, check that we can run a simple program.
2108 if test "$cross_compiling" != yes; then
2109   if { ac_try='./$ac_file'
2110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111   (eval $ac_try) 2>&5
2112   ac_status=$?
2113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114   (exit $ac_status); }; }; then
2115     cross_compiling=no
2116   else
2117     if test "$cross_compiling" = maybe; then
2118         cross_compiling=yes
2119     else
2120         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2121 If you meant to cross compile, use \`--host'." >&5
2122 echo "$as_me: error: cannot run C compiled programs.
2123 If you meant to cross compile, use \`--host'." >&2;}
2124    { (exit 1); exit 1; }; }
2125     fi
2126   fi
2127 fi
2128 echo "$as_me:$LINENO: result: yes" >&5
2129 echo "${ECHO_T}yes" >&6
2130
2131 rm -f a.out a.exe conftest$ac_cv_exeext
2132 ac_clean_files=$ac_clean_files_save
2133 # Check the compiler produces executables we can run.  If not, either
2134 # the compiler is broken, or we cross compile.
2135 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2136 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2137 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2138 echo "${ECHO_T}$cross_compiling" >&6
2139
2140 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2141 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2143   (eval $ac_link) 2>&5
2144   ac_status=$?
2145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146   (exit $ac_status); }; then
2147   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2148 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2149 # work properly (i.e., refer to `conftest.exe'), while it won't with
2150 # `rm'.
2151 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2152   case $ac_file in
2153     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2154     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2155           export ac_cv_exeext
2156           break;;
2157     * ) break;;
2158   esac
2159 done
2160 else
2161   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2162 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2163    { (exit 1); exit 1; }; }
2164 fi
2165
2166 rm -f conftest$ac_cv_exeext
2167 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2168 echo "${ECHO_T}$ac_cv_exeext" >&6
2169
2170 rm -f conftest.$ac_ext
2171 EXEEXT=$ac_cv_exeext
2172 ac_exeext=$EXEEXT
2173 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2174 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2175 if test "${ac_cv_objext+set}" = set; then
2176   echo $ECHO_N "(cached) $ECHO_C" >&6
2177 else
2178   cat >conftest.$ac_ext <<_ACEOF
2179 #line $LINENO "configure"
2180 #include "confdefs.h"
2181
2182 #ifdef F77_DUMMY_MAIN
2183 #  ifdef __cplusplus
2184      extern "C"
2185 #  endif
2186    int F77_DUMMY_MAIN() { return 1; }
2187 #endif
2188 int
2189 main ()
2190 {
2191
2192   ;
2193   return 0;
2194 }
2195 _ACEOF
2196 rm -f conftest.o conftest.obj
2197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2198   (eval $ac_compile) 2>&5
2199   ac_status=$?
2200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201   (exit $ac_status); }; then
2202   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2203   case $ac_file in
2204     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2205     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2206        break;;
2207   esac
2208 done
2209 else
2210   echo "$as_me: failed program was:" >&5
2211 cat conftest.$ac_ext >&5
2212 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2213 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2214    { (exit 1); exit 1; }; }
2215 fi
2216
2217 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2218 fi
2219 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2220 echo "${ECHO_T}$ac_cv_objext" >&6
2221 OBJEXT=$ac_cv_objext
2222 ac_objext=$OBJEXT
2223 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2224 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2225 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2226   echo $ECHO_N "(cached) $ECHO_C" >&6
2227 else
2228   cat >conftest.$ac_ext <<_ACEOF
2229 #line $LINENO "configure"
2230 #include "confdefs.h"
2231
2232 #ifdef F77_DUMMY_MAIN
2233 #  ifdef __cplusplus
2234      extern "C"
2235 #  endif
2236    int F77_DUMMY_MAIN() { return 1; }
2237 #endif
2238 int
2239 main ()
2240 {
2241 #ifndef __GNUC__
2242        choke me
2243 #endif
2244
2245   ;
2246   return 0;
2247 }
2248 _ACEOF
2249 rm -f conftest.$ac_objext
2250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2251   (eval $ac_compile) 2>&5
2252   ac_status=$?
2253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254   (exit $ac_status); } &&
2255          { ac_try='test -s conftest.$ac_objext'
2256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257   (eval $ac_try) 2>&5
2258   ac_status=$?
2259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260   (exit $ac_status); }; }; then
2261   ac_compiler_gnu=yes
2262 else
2263   echo "$as_me: failed program was:" >&5
2264 cat conftest.$ac_ext >&5
2265 ac_compiler_gnu=no
2266 fi
2267 rm -f conftest.$ac_objext conftest.$ac_ext
2268 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2269
2270 fi
2271 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2272 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2273 GCC=`test $ac_compiler_gnu = yes && echo yes`
2274 ac_test_CFLAGS=${CFLAGS+set}
2275 ac_save_CFLAGS=$CFLAGS
2276 CFLAGS="-g"
2277 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2278 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2279 if test "${ac_cv_prog_cc_g+set}" = set; then
2280   echo $ECHO_N "(cached) $ECHO_C" >&6
2281 else
2282   cat >conftest.$ac_ext <<_ACEOF
2283 #line $LINENO "configure"
2284 #include "confdefs.h"
2285
2286 #ifdef F77_DUMMY_MAIN
2287 #  ifdef __cplusplus
2288      extern "C"
2289 #  endif
2290    int F77_DUMMY_MAIN() { return 1; }
2291 #endif
2292 int
2293 main ()
2294 {
2295
2296   ;
2297   return 0;
2298 }
2299 _ACEOF
2300 rm -f conftest.$ac_objext
2301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2302   (eval $ac_compile) 2>&5
2303   ac_status=$?
2304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305   (exit $ac_status); } &&
2306          { ac_try='test -s conftest.$ac_objext'
2307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308   (eval $ac_try) 2>&5
2309   ac_status=$?
2310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311   (exit $ac_status); }; }; then
2312   ac_cv_prog_cc_g=yes
2313 else
2314   echo "$as_me: failed program was:" >&5
2315 cat conftest.$ac_ext >&5
2316 ac_cv_prog_cc_g=no
2317 fi
2318 rm -f conftest.$ac_objext conftest.$ac_ext
2319 fi
2320 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2321 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2322 if test "$ac_test_CFLAGS" = set; then
2323   CFLAGS=$ac_save_CFLAGS
2324 elif test $ac_cv_prog_cc_g = yes; then
2325   if test "$GCC" = yes; then
2326     CFLAGS="-g -O2"
2327   else
2328     CFLAGS="-g"
2329   fi
2330 else
2331   if test "$GCC" = yes; then
2332     CFLAGS="-O2"
2333   else
2334     CFLAGS=
2335   fi
2336 fi
2337 # Some people use a C++ compiler to compile C.  Since we use `exit',
2338 # in C++ we need to declare it.  In case someone uses the same compiler
2339 # for both compiling C and C++ we need to have the C++ compiler decide
2340 # the declaration of exit, since it's the most demanding environment.
2341 cat >conftest.$ac_ext <<_ACEOF
2342 #ifndef __cplusplus
2343   choke me
2344 #endif
2345 _ACEOF
2346 rm -f conftest.$ac_objext
2347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2348   (eval $ac_compile) 2>&5
2349   ac_status=$?
2350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351   (exit $ac_status); } &&
2352          { ac_try='test -s conftest.$ac_objext'
2353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354   (eval $ac_try) 2>&5
2355   ac_status=$?
2356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357   (exit $ac_status); }; }; then
2358   for ac_declaration in \
2359    ''\
2360    '#include <stdlib.h>' \
2361    'extern "C" void std::exit (int) throw (); using std::exit;' \
2362    'extern "C" void std::exit (int); using std::exit;' \
2363    'extern "C" void exit (int) throw ();' \
2364    'extern "C" void exit (int);' \
2365    'void exit (int);'
2366 do
2367   cat >conftest.$ac_ext <<_ACEOF
2368 #line $LINENO "configure"
2369 #include "confdefs.h"
2370 #include <stdlib.h>
2371 $ac_declaration
2372 #ifdef F77_DUMMY_MAIN
2373 #  ifdef __cplusplus
2374      extern "C"
2375 #  endif
2376    int F77_DUMMY_MAIN() { return 1; }
2377 #endif
2378 int
2379 main ()
2380 {
2381 exit (42);
2382   ;
2383   return 0;
2384 }
2385 _ACEOF
2386 rm -f conftest.$ac_objext
2387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2388   (eval $ac_compile) 2>&5
2389   ac_status=$?
2390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391   (exit $ac_status); } &&
2392          { ac_try='test -s conftest.$ac_objext'
2393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394   (eval $ac_try) 2>&5
2395   ac_status=$?
2396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397   (exit $ac_status); }; }; then
2398   :
2399 else
2400   echo "$as_me: failed program was:" >&5
2401 cat conftest.$ac_ext >&5
2402 continue
2403 fi
2404 rm -f conftest.$ac_objext conftest.$ac_ext
2405   cat >conftest.$ac_ext <<_ACEOF
2406 #line $LINENO "configure"
2407 #include "confdefs.h"
2408 $ac_declaration
2409 #ifdef F77_DUMMY_MAIN
2410 #  ifdef __cplusplus
2411      extern "C"
2412 #  endif
2413    int F77_DUMMY_MAIN() { return 1; }
2414 #endif
2415 int
2416 main ()
2417 {
2418 exit (42);
2419   ;
2420   return 0;
2421 }
2422 _ACEOF
2423 rm -f conftest.$ac_objext
2424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2425   (eval $ac_compile) 2>&5
2426   ac_status=$?
2427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428   (exit $ac_status); } &&
2429          { ac_try='test -s conftest.$ac_objext'
2430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431   (eval $ac_try) 2>&5
2432   ac_status=$?
2433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434   (exit $ac_status); }; }; then
2435   break
2436 else
2437   echo "$as_me: failed program was:" >&5
2438 cat conftest.$ac_ext >&5
2439 fi
2440 rm -f conftest.$ac_objext conftest.$ac_ext
2441 done
2442 rm -f conftest*
2443 if test -n "$ac_declaration"; then
2444   echo '#ifdef __cplusplus' >>confdefs.h
2445   echo $ac_declaration      >>confdefs.h
2446   echo '#endif'             >>confdefs.h
2447 fi
2448
2449 else
2450   echo "$as_me: failed program was:" >&5
2451 cat conftest.$ac_ext >&5
2452 fi
2453 rm -f conftest.$ac_objext conftest.$ac_ext
2454 ac_ext=c
2455 ac_cpp='$CPP $CPPFLAGS'
2456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2459
2460
2461 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2462 if test "${with_gnu_ld+set}" = set; then
2463   withval="$with_gnu_ld"
2464   test "$withval" = no || with_gnu_ld=yes
2465 else
2466   with_gnu_ld=no
2467 fi;
2468 ac_prog=ld
2469 if test "$ac_cv_c_compiler_gnu" = yes; then
2470   # Check if gcc -print-prog-name=ld gives a path.
2471   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2472 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2473   ac_prog=`($CC -print-prog-name=ld) 2>&5`
2474   case "$ac_prog" in
2475     # Accept absolute paths.
2476     [\\/]* | [A-Za-z]:[\\/]*)
2477       re_direlt='/[^/][^/]*/\.\./'
2478       # Canonicalize the path of ld
2479       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2480       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2481         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2482       done
2483       test -z "$LD" && LD="$ac_prog"
2484       ;;
2485   "")
2486     # If it fails, then pretend we aren't using GCC.
2487     ac_prog=ld
2488     ;;
2489   *)
2490     # If it is relative, then search for the first ld in PATH.
2491     with_gnu_ld=unknown
2492     ;;
2493   esac
2494 elif test "$with_gnu_ld" = yes; then
2495   echo "$as_me:$LINENO: checking for GNU ld" >&5
2496 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2497 else
2498   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2499 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2500 fi
2501 if test "${ac_cv_path_LD+set}" = set; then
2502   echo $ECHO_N "(cached) $ECHO_C" >&6
2503 else
2504   if test -z "$LD"; then
2505   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2506   for ac_dir in $PATH; do
2507     test -z "$ac_dir" && ac_dir=.
2508     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2509       ac_cv_path_LD="$ac_dir/$ac_prog"
2510       # Check to see if the program is GNU ld.  I'd rather use --version,
2511       # but apparently some GNU ld's only accept -v.
2512       # Break only if it was the GNU/non-GNU ld that we prefer.
2513       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2514         test "$with_gnu_ld" != no && break
2515       else
2516         test "$with_gnu_ld" != yes && break
2517       fi
2518     fi
2519   done
2520   IFS="$ac_save_ifs"
2521 else
2522   ac_cv_path_LD="$LD" # Let the user override the test with a path.
2523 fi
2524 fi
2525
2526 LD="$ac_cv_path_LD"
2527 if test -n "$LD"; then
2528   echo "$as_me:$LINENO: result: $LD" >&5
2529 echo "${ECHO_T}$LD" >&6
2530 else
2531   echo "$as_me:$LINENO: result: no" >&5
2532 echo "${ECHO_T}no" >&6
2533 fi
2534 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2535 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2536    { (exit 1); exit 1; }; }
2537 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2538 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2539 if test "${ac_cv_prog_gnu_ld+set}" = set; then
2540   echo $ECHO_N "(cached) $ECHO_C" >&6
2541 else
2542   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2543 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2544   ac_cv_prog_gnu_ld=yes
2545 else
2546   ac_cv_prog_gnu_ld=no
2547 fi
2548 fi
2549 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
2550 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
2551
2552
2553 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2554 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2555 if test "${ac_cv_path_NM+set}" = set; then
2556   echo $ECHO_N "(cached) $ECHO_C" >&6
2557 else
2558   if test -n "$NM"; then
2559   # Let the user override the test.
2560   ac_cv_path_NM="$NM"
2561 else
2562   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2563   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2564     test -z "$ac_dir" && ac_dir=.
2565     if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2566       # Check to see if the nm accepts a BSD-compat flag.
2567       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2568       #   nm: unknown option "B" ignored
2569       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2570         ac_cv_path_NM="$ac_dir/nm -B"
2571         break
2572       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2573         ac_cv_path_NM="$ac_dir/nm -p"
2574         break
2575       else
2576         ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2577         continue # so that we can try to find one that supports BSD flags
2578       fi
2579     fi
2580   done
2581   IFS="$ac_save_ifs"
2582   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2583 fi
2584 fi
2585
2586 NM="$ac_cv_path_NM"
2587 echo "$as_me:$LINENO: result: $NM" >&5
2588 echo "${ECHO_T}$NM" >&6
2589
2590 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2591 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2592 LN_S=$as_ln_s
2593 if test "$LN_S" = "ln -s"; then
2594   echo "$as_me:$LINENO: result: yes" >&5
2595 echo "${ECHO_T}yes" >&6
2596 else
2597   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2598 echo "${ECHO_T}no, using $LN_S" >&6
2599 fi
2600
2601
2602
2603 case "$target" in
2604 NONE) lt_target="$host" ;;
2605 *) lt_target="$target" ;;
2606 esac
2607
2608 # Check for any special flags to pass to ltconfig.
2609 #
2610 # the following will cause an existing older ltconfig to fail, so
2611 # we ignore this at the expense of the cache file... Checking this
2612 # will just take longer ... bummer!
2613 #libtool_flags="--cache-file=$cache_file"
2614 #
2615 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2616 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2617 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2618 test "$ac_cv_c_compiler_gnu" = yes && libtool_flags="$libtool_flags --with-gcc"
2619 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2620
2621
2622 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2623 if test "${enable_libtool_lock+set}" = set; then
2624   enableval="$enable_libtool_lock"
2625
2626 fi;
2627 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2628 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2629
2630 # Some flags need to be propagated to the compiler or linker for good
2631 # libtool support.
2632 case "$lt_target" in
2633 *-*-irix6*)
2634   # Find out which ABI we are using.
2635   echo '#line 2635 "configure"' > conftest.$ac_ext
2636   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2637   (eval $ac_compile) 2>&5
2638   ac_status=$?
2639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640   (exit $ac_status); }; then
2641     case "`/usr/bin/file conftest.o`" in
2642     *32-bit*)
2643       LD="${LD-ld} -32"
2644       ;;
2645     *N32*)
2646       LD="${LD-ld} -n32"
2647       ;;
2648     *64-bit*)
2649       LD="${LD-ld} -64"
2650       ;;
2651     esac
2652   fi
2653   rm -rf conftest*
2654   ;;
2655
2656 *-*-sco3.2v5*)
2657   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2658   SAVE_CFLAGS="$CFLAGS"
2659   CFLAGS="$CFLAGS -belf"
2660   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
2661 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
2662 if test "${lt_cv_cc_needs_belf+set}" = set; then
2663   echo $ECHO_N "(cached) $ECHO_C" >&6
2664 else
2665   cat >conftest.$ac_ext <<_ACEOF
2666 #line $LINENO "configure"
2667 #include "confdefs.h"
2668
2669 #ifdef F77_DUMMY_MAIN
2670 #  ifdef __cplusplus
2671      extern "C"
2672 #  endif
2673    int F77_DUMMY_MAIN() { return 1; }
2674 #endif
2675 int
2676 main ()
2677 {
2678
2679   ;
2680   return 0;
2681 }
2682 _ACEOF
2683 rm -f conftest.$ac_objext conftest$ac_exeext
2684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2685   (eval $ac_link) 2>&5
2686   ac_status=$?
2687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688   (exit $ac_status); } &&
2689          { ac_try='test -s conftest$ac_exeext'
2690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2691   (eval $ac_try) 2>&5
2692   ac_status=$?
2693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694   (exit $ac_status); }; }; then
2695   lt_cv_cc_needs_belf=yes
2696 else
2697   echo "$as_me: failed program was:" >&5
2698 cat conftest.$ac_ext >&5
2699 lt_cv_cc_needs_belf=no
2700 fi
2701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2702 fi
2703 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
2704 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
2705   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2706     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2707     CFLAGS="$SAVE_CFLAGS"
2708   fi
2709   ;;
2710
2711
2712 esac
2713
2714
2715 # Save cache, so that ltconfig can load it
2716 cat >confcache <<\_ACEOF
2717 # This file is a shell script that caches the results of configure
2718 # tests run on this system so they can be shared between configure
2719 # scripts and configure runs, see configure's option --config-cache.
2720 # It is not useful on other systems.  If it contains results you don't
2721 # want to keep, you may remove or edit it.
2722 #
2723 # config.status only pays attention to the cache file if you give it
2724 # the --recheck option to rerun configure.
2725 #
2726 # `ac_cv_env_foo' variables (set or unset) will be overriden when
2727 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2728 # following values.
2729
2730 _ACEOF
2731
2732 # The following way of writing the cache mishandles newlines in values,
2733 # but we know of no workaround that is simple, portable, and efficient.
2734 # So, don't put newlines in cache variables' values.
2735 # Ultrix sh set writes to stderr and can't be redirected directly,
2736 # and sets the high bit in the cache file unless we assign to the vars.
2737 {
2738   (set) 2>&1 |
2739     case `(ac_space=' '; set | grep ac_space) 2>&1` in
2740     *ac_space=\ *)
2741       # `set' does not quote correctly, so add quotes (double-quote
2742       # substitution turns \\\\ into \\, and sed turns \\ into \).
2743       sed -n \
2744         "s/'/'\\\\''/g;
2745           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2746       ;;
2747     *)
2748       # `set' quotes correctly as required by POSIX, so do not add quotes.
2749       sed -n \
2750         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2751       ;;
2752     esac;
2753 } |
2754   sed '
2755      t clear
2756      : clear
2757      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2758      t end
2759      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2760      : end' >>confcache
2761 if cmp -s $cache_file confcache; then :; else
2762   if test -w $cache_file; then
2763     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2764     cat confcache >$cache_file
2765   else
2766     echo "not updating unwritable cache $cache_file"
2767   fi
2768 fi
2769 rm -f confcache
2770
2771 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2772 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2773 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2774 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
2775 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
2776 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2777 $libtool_flags $ac_aux_dir/ltmain.sh $lt_target \
2778 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
2779 echo "$as_me: error: libtool configure failed" >&2;}
2780    { (exit 1); exit 1; }; }
2781
2782 # Reload cache, that may have been modified by ltconfig
2783 if test -r "$cache_file"; then
2784   # Some versions of bash will fail to source /dev/null (special
2785   # files actually), so we avoid doing that.
2786   if test -f "$cache_file"; then
2787     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2788 echo "$as_me: loading cache $cache_file" >&6;}
2789     case $cache_file in
2790       [\\/]* | ?:[\\/]* ) . $cache_file;;
2791       *)                      . ./$cache_file;;
2792     esac
2793   fi
2794 else
2795   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2796 echo "$as_me: creating cache $cache_file" >&6;}
2797   >$cache_file
2798 fi
2799
2800
2801 # This can be used to rebuild libtool when needed
2802 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2803
2804 # Always use our own libtool.
2805 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2806
2807 # Redirect the config.log output again, so that the ltconfig log is not
2808 # clobbered by the next message.
2809 exec 5>>./config.log
2810
2811
2812 case "$INSTALL" in
2813    *install-sh*)
2814       INSTALL='\${KERNEL_ROOT_DIR}'/salome_adm/unix/config_files/install-sh
2815       ;;
2816 esac
2817
2818 echo
2819 echo ---------------------------------------------
2820 echo testing C/C++
2821 echo ---------------------------------------------
2822 echo
2823
2824 cc_ok=no
2825 ac_ext=cc
2826 ac_cpp='$CXXCPP $CPPFLAGS'
2827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2830 if test -n "$ac_tool_prefix"; then
2831   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2832   do
2833     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2834 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2835 echo "$as_me:$LINENO: checking for $ac_word" >&5
2836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2837 if test "${ac_cv_prog_CXX+set}" = set; then
2838   echo $ECHO_N "(cached) $ECHO_C" >&6
2839 else
2840   if test -n "$CXX"; then
2841   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2842 else
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 for as_dir in $PATH
2845 do
2846   IFS=$as_save_IFS
2847   test -z "$as_dir" && as_dir=.
2848   for ac_exec_ext in '' $ac_executable_extensions; do
2849   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2852     break 2
2853   fi
2854 done
2855 done
2856
2857 fi
2858 fi
2859 CXX=$ac_cv_prog_CXX
2860 if test -n "$CXX"; then
2861   echo "$as_me:$LINENO: result: $CXX" >&5
2862 echo "${ECHO_T}$CXX" >&6
2863 else
2864   echo "$as_me:$LINENO: result: no" >&5
2865 echo "${ECHO_T}no" >&6
2866 fi
2867
2868     test -n "$CXX" && break
2869   done
2870 fi
2871 if test -z "$CXX"; then
2872   ac_ct_CXX=$CXX
2873   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2874 do
2875   # Extract the first word of "$ac_prog", so it can be a program name with args.
2876 set dummy $ac_prog; ac_word=$2
2877 echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2879 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2880   echo $ECHO_N "(cached) $ECHO_C" >&6
2881 else
2882   if test -n "$ac_ct_CXX"; then
2883   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888   IFS=$as_save_IFS
2889   test -z "$as_dir" && as_dir=.
2890   for ac_exec_ext in '' $ac_executable_extensions; do
2891   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892     ac_cv_prog_ac_ct_CXX="$ac_prog"
2893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894     break 2
2895   fi
2896 done
2897 done
2898
2899 fi
2900 fi
2901 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2902 if test -n "$ac_ct_CXX"; then
2903   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2904 echo "${ECHO_T}$ac_ct_CXX" >&6
2905 else
2906   echo "$as_me:$LINENO: result: no" >&5
2907 echo "${ECHO_T}no" >&6
2908 fi
2909
2910   test -n "$ac_ct_CXX" && break
2911 done
2912 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2913
2914   CXX=$ac_ct_CXX
2915 fi
2916
2917
2918 # Provide some information about the compiler.
2919 echo "$as_me:$LINENO:" \
2920      "checking for C++ compiler version" >&5
2921 ac_compiler=`set X $ac_compile; echo $2`
2922 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2923   (eval $ac_compiler --version </dev/null >&5) 2>&5
2924   ac_status=$?
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); }
2927 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2928   (eval $ac_compiler -v </dev/null >&5) 2>&5
2929   ac_status=$?
2930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931   (exit $ac_status); }
2932 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2933   (eval $ac_compiler -V </dev/null >&5) 2>&5
2934   ac_status=$?
2935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936   (exit $ac_status); }
2937
2938 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2939 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2940 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2941   echo $ECHO_N "(cached) $ECHO_C" >&6
2942 else
2943   cat >conftest.$ac_ext <<_ACEOF
2944 #line $LINENO "configure"
2945 #include "confdefs.h"
2946
2947 #ifdef F77_DUMMY_MAIN
2948 #  ifdef __cplusplus
2949      extern "C"
2950 #  endif
2951    int F77_DUMMY_MAIN() { return 1; }
2952 #endif
2953 int
2954 main ()
2955 {
2956 #ifndef __GNUC__
2957        choke me
2958 #endif
2959
2960   ;
2961   return 0;
2962 }
2963 _ACEOF
2964 rm -f conftest.$ac_objext
2965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2966   (eval $ac_compile) 2>&5
2967   ac_status=$?
2968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969   (exit $ac_status); } &&
2970          { ac_try='test -s conftest.$ac_objext'
2971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2972   (eval $ac_try) 2>&5
2973   ac_status=$?
2974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975   (exit $ac_status); }; }; then
2976   ac_compiler_gnu=yes
2977 else
2978   echo "$as_me: failed program was:" >&5
2979 cat conftest.$ac_ext >&5
2980 ac_compiler_gnu=no
2981 fi
2982 rm -f conftest.$ac_objext conftest.$ac_ext
2983 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2984
2985 fi
2986 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2987 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2988 GXX=`test $ac_compiler_gnu = yes && echo yes`
2989 ac_test_CXXFLAGS=${CXXFLAGS+set}
2990 ac_save_CXXFLAGS=$CXXFLAGS
2991 CXXFLAGS="-g"
2992 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2993 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2994 if test "${ac_cv_prog_cxx_g+set}" = set; then
2995   echo $ECHO_N "(cached) $ECHO_C" >&6
2996 else
2997   cat >conftest.$ac_ext <<_ACEOF
2998 #line $LINENO "configure"
2999 #include "confdefs.h"
3000
3001 #ifdef F77_DUMMY_MAIN
3002 #  ifdef __cplusplus
3003      extern "C"
3004 #  endif
3005    int F77_DUMMY_MAIN() { return 1; }
3006 #endif
3007 int
3008 main ()
3009 {
3010
3011   ;
3012   return 0;
3013 }
3014 _ACEOF
3015 rm -f conftest.$ac_objext
3016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3017   (eval $ac_compile) 2>&5
3018   ac_status=$?
3019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020   (exit $ac_status); } &&
3021          { ac_try='test -s conftest.$ac_objext'
3022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023   (eval $ac_try) 2>&5
3024   ac_status=$?
3025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026   (exit $ac_status); }; }; then
3027   ac_cv_prog_cxx_g=yes
3028 else
3029   echo "$as_me: failed program was:" >&5
3030 cat conftest.$ac_ext >&5
3031 ac_cv_prog_cxx_g=no
3032 fi
3033 rm -f conftest.$ac_objext conftest.$ac_ext
3034 fi
3035 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3036 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3037 if test "$ac_test_CXXFLAGS" = set; then
3038   CXXFLAGS=$ac_save_CXXFLAGS
3039 elif test $ac_cv_prog_cxx_g = yes; then
3040   if test "$GXX" = yes; then
3041     CXXFLAGS="-g -O2"
3042   else
3043     CXXFLAGS="-g"
3044   fi
3045 else
3046   if test "$GXX" = yes; then
3047     CXXFLAGS="-O2"
3048   else
3049     CXXFLAGS=
3050   fi
3051 fi
3052 for ac_declaration in \
3053    ''\
3054    '#include <stdlib.h>' \
3055    'extern "C" void std::exit (int) throw (); using std::exit;' \
3056    'extern "C" void std::exit (int); using std::exit;' \
3057    'extern "C" void exit (int) throw ();' \
3058    'extern "C" void exit (int);' \
3059    'void exit (int);'
3060 do
3061   cat >conftest.$ac_ext <<_ACEOF
3062 #line $LINENO "configure"
3063 #include "confdefs.h"
3064 #include <stdlib.h>
3065 $ac_declaration
3066 #ifdef F77_DUMMY_MAIN
3067 #  ifdef __cplusplus
3068      extern "C"
3069 #  endif
3070    int F77_DUMMY_MAIN() { return 1; }
3071 #endif
3072 int
3073 main ()
3074 {
3075 exit (42);
3076   ;
3077   return 0;
3078 }
3079 _ACEOF
3080 rm -f conftest.$ac_objext
3081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3082   (eval $ac_compile) 2>&5
3083   ac_status=$?
3084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085   (exit $ac_status); } &&
3086          { ac_try='test -s conftest.$ac_objext'
3087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088   (eval $ac_try) 2>&5
3089   ac_status=$?
3090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091   (exit $ac_status); }; }; then
3092   :
3093 else
3094   echo "$as_me: failed program was:" >&5
3095 cat conftest.$ac_ext >&5
3096 continue
3097 fi
3098 rm -f conftest.$ac_objext conftest.$ac_ext
3099   cat >conftest.$ac_ext <<_ACEOF
3100 #line $LINENO "configure"
3101 #include "confdefs.h"
3102 $ac_declaration
3103 #ifdef F77_DUMMY_MAIN
3104 #  ifdef __cplusplus
3105      extern "C"
3106 #  endif
3107    int F77_DUMMY_MAIN() { return 1; }
3108 #endif
3109 int
3110 main ()
3111 {
3112 exit (42);
3113   ;
3114   return 0;
3115 }
3116 _ACEOF
3117 rm -f conftest.$ac_objext
3118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3119   (eval $ac_compile) 2>&5
3120   ac_status=$?
3121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122   (exit $ac_status); } &&
3123          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3129   break
3130 else
3131   echo "$as_me: failed program was:" >&5
3132 cat conftest.$ac_ext >&5
3133 fi
3134 rm -f conftest.$ac_objext conftest.$ac_ext
3135 done
3136 rm -f conftest*
3137 if test -n "$ac_declaration"; then
3138   echo '#ifdef __cplusplus' >>confdefs.h
3139   echo $ac_declaration      >>confdefs.h
3140   echo '#endif'             >>confdefs.h
3141 fi
3142
3143 ac_ext=c
3144 ac_cpp='$CPP $CPPFLAGS'
3145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3148
3149 echo "$as_me:$LINENO: checking which flag for dependency information generation" >&5
3150 echo $ECHO_N "checking which flag for dependency information generation... $ECHO_C" >&6
3151 if test "${ac_cv_depend_flag+set}" = set; then
3152   echo $ECHO_N "(cached) $ECHO_C" >&6
3153 else
3154
3155
3156  ac_ext=c
3157 ac_cpp='$CPP $CPPFLAGS'
3158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3161
3162  echo "conftest.o: conftest.c" > conftest.verif
3163  echo "int  main() { return 0; }" > conftest.c
3164
3165  C_DEPEND_FLAG=
3166  for ac_C_DEPEND_FLAG in -xM -MM -M ; do
3167
3168     rm -f conftest.d conftest.err
3169     ${CC-cc} ${ac_C_DEPEND_FLAG} -c conftest.c 1> conftest.d 2> conftest.err
3170     if test -f conftest.u ; then
3171        mv conftest.u conftest.d
3172     fi
3173
3174     rm -f conftest
3175     diff -b -B conftest.d conftest.verif > conftest
3176     if test ! -s conftest ; then
3177        C_DEPEND_FLAG=${ac_C_DEPEND_FLAG}
3178        break
3179     fi
3180  done
3181
3182  rm -f conftest.d conftest.err
3183  ${CC-cc} ${C_DEPEND_FLAG} -MG -c conftest.c 1> conftest.d 2> conftest.err
3184  if test -f conftest.u ; then
3185     mv conftest.u conftest.d
3186  fi
3187  rm -f conftest
3188  diff -b -B conftest.d conftest.verif > conftest
3189  if test ! -s conftest ; then
3190     C_DEPEND_FLAG=${C_DEPEND_FLAG}" -MG"
3191  fi
3192
3193  rm -f conftest*
3194  if test "x${C_DEPEND_FLAG}" = "x" ; then
3195     echo "cannot determine flag (C language)"
3196     exit
3197  fi
3198
3199  echo -n " C : " ${C_DEPEND_FLAG}
3200
3201  ac_ext=cc
3202 ac_cpp='$CXXCPP $CPPFLAGS'
3203 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3206
3207  echo "conftest.o: conftest.cxx" > conftest.verif
3208  echo "int  main() { return 0; }" > conftest.cxx
3209
3210  CXX_DEPEND_FLAG=
3211  for ac_CXX_DEPEND_FLAG in -xM -MM -M ; do
3212
3213     rm -f conftest.d conftest.err
3214     ${CXX-c++} ${ac_CXX_DEPEND_FLAG} -c conftest.cxx 1> conftest.d 2> conftest.err
3215     if test -f conftest.u ; then
3216        mv conftest.u conftest.d
3217     fi
3218
3219     rm -f conftest
3220     diff -b -B conftest.d conftest.verif > conftest
3221     if test ! -s conftest ; then
3222        CXX_DEPEND_FLAG=${ac_CXX_DEPEND_FLAG}
3223        break
3224     fi
3225  done
3226
3227  rm -f conftest.d conftest.err
3228  ${CXX-c++} ${CXX_DEPEND_FLAG} -MG -c conftest.cxx 1> conftest.d 2> conftest.err
3229  if test -f conftest.u ; then
3230     mv conftest.u conftest.d
3231  fi
3232  rm -f conftest
3233  diff -b -B conftest.d conftest.verif > conftest
3234  if test ! -s conftest ; then
3235     CXX_DEPEND_FLAG=${CXX_DEPEND_FLAG}" -MG"
3236  fi
3237
3238
3239  rm -f conftest*
3240  if test "x${CXX_DEPEND_FLAG}" = "x" ; then
3241     echo "cannot determine flag (C++ language)"
3242     exit
3243  fi
3244
3245  echo -n " C++ : " ${CXX_DEPEND_FLAG}
3246  ac_ext=c
3247 ac_cpp='$CPP $CPPFLAGS'
3248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3251
3252
3253
3254
3255
3256 fi
3257 echo "$as_me:$LINENO: result: $ac_cv_depend_flag" >&5
3258 echo "${ECHO_T}$ac_cv_depend_flag" >&6
3259
3260 # AC_CC_WARNINGS([ansi])
3261 cc_ok=yes
3262
3263
3264 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
3265 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
3266 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
3267   echo $ECHO_N "(cached) $ECHO_C" >&6
3268 else
3269   ac_check_lib_save_LIBS=$LIBS
3270 LIBS="-ldl  $LIBS"
3271 cat >conftest.$ac_ext <<_ACEOF
3272 #line $LINENO "configure"
3273 #include "confdefs.h"
3274
3275 /* Override any gcc2 internal prototype to avoid an error.  */
3276 #ifdef __cplusplus
3277 extern "C"
3278 #endif
3279 /* We use char because int might match the return type of a gcc2
3280    builtin and then its argument prototype would still apply.  */
3281 char dlopen ();
3282 #ifdef F77_DUMMY_MAIN
3283 #  ifdef __cplusplus
3284      extern "C"
3285 #  endif
3286    int F77_DUMMY_MAIN() { return 1; }
3287 #endif
3288 int
3289 main ()
3290 {
3291 dlopen ();
3292   ;
3293   return 0;
3294 }
3295 _ACEOF
3296 rm -f conftest.$ac_objext conftest$ac_exeext
3297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3298   (eval $ac_link) 2>&5
3299   ac_status=$?
3300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301   (exit $ac_status); } &&
3302          { ac_try='test -s conftest$ac_exeext'
3303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3304   (eval $ac_try) 2>&5
3305   ac_status=$?
3306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307   (exit $ac_status); }; }; then
3308   ac_cv_lib_dl_dlopen=yes
3309 else
3310   echo "$as_me: failed program was:" >&5
3311 cat conftest.$ac_ext >&5
3312 ac_cv_lib_dl_dlopen=no
3313 fi
3314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3315 LIBS=$ac_check_lib_save_LIBS
3316 fi
3317 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
3318 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
3319 if test $ac_cv_lib_dl_dlopen = yes; then
3320   cat >>confdefs.h <<_ACEOF
3321 #define HAVE_LIBDL 1
3322 _ACEOF
3323
3324   LIBS="-ldl $LIBS"
3325
3326 fi
3327
3328
3329
3330 echo "$as_me:$LINENO: checking for ceil in -lm" >&5
3331 echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6
3332 if test "${ac_cv_lib_m_ceil+set}" = set; then
3333   echo $ECHO_N "(cached) $ECHO_C" >&6
3334 else
3335   ac_check_lib_save_LIBS=$LIBS
3336 LIBS="-lm  $LIBS"
3337 cat >conftest.$ac_ext <<_ACEOF
3338 #line $LINENO "configure"
3339 #include "confdefs.h"
3340
3341 /* Override any gcc2 internal prototype to avoid an error.  */
3342 #ifdef __cplusplus
3343 extern "C"
3344 #endif
3345 /* We use char because int might match the return type of a gcc2
3346    builtin and then its argument prototype would still apply.  */
3347 char ceil ();
3348 #ifdef F77_DUMMY_MAIN
3349 #  ifdef __cplusplus
3350      extern "C"
3351 #  endif
3352    int F77_DUMMY_MAIN() { return 1; }
3353 #endif
3354 int
3355 main ()
3356 {
3357 ceil ();
3358   ;
3359   return 0;
3360 }
3361 _ACEOF
3362 rm -f conftest.$ac_objext conftest$ac_exeext
3363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3364   (eval $ac_link) 2>&5
3365   ac_status=$?
3366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367   (exit $ac_status); } &&
3368          { ac_try='test -s conftest$ac_exeext'
3369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370   (eval $ac_try) 2>&5
3371   ac_status=$?
3372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373   (exit $ac_status); }; }; then
3374   ac_cv_lib_m_ceil=yes
3375 else
3376   echo "$as_me: failed program was:" >&5
3377 cat conftest.$ac_ext >&5
3378 ac_cv_lib_m_ceil=no
3379 fi
3380 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3381 LIBS=$ac_check_lib_save_LIBS
3382 fi
3383 echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5
3384 echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6
3385 if test $ac_cv_lib_m_ceil = yes; then
3386   cat >>confdefs.h <<_ACEOF
3387 #define HAVE_LIBM 1
3388 _ACEOF
3389
3390   LIBS="-lm $LIBS"
3391
3392 fi
3393
3394
3395
3396
3397 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
3398 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
3399 if test "${ac_cv_cxx_namespaces+set}" = set; then
3400   echo $ECHO_N "(cached) $ECHO_C" >&6
3401 else
3402
3403
3404  ac_ext=cc
3405 ac_cpp='$CXXCPP $CPPFLAGS'
3406 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3409
3410  cat >conftest.$ac_ext <<_ACEOF
3411 #line $LINENO "configure"
3412 #include "confdefs.h"
3413 namespace Outer { namespace Inner { int i = 0; }}
3414 #ifdef F77_DUMMY_MAIN
3415 #  ifdef __cplusplus
3416      extern "C"
3417 #  endif
3418    int F77_DUMMY_MAIN() { return 1; }
3419 #endif
3420 int
3421 main ()
3422 {
3423 using namespace Outer::Inner; return i;
3424   ;
3425   return 0;
3426 }
3427 _ACEOF
3428 rm -f conftest.$ac_objext
3429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3430   (eval $ac_compile) 2>&5
3431   ac_status=$?
3432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433   (exit $ac_status); } &&
3434          { ac_try='test -s conftest.$ac_objext'
3435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436   (eval $ac_try) 2>&5
3437   ac_status=$?
3438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439   (exit $ac_status); }; }; then
3440   ac_cv_cxx_namespaces=yes
3441 else
3442   echo "$as_me: failed program was:" >&5
3443 cat conftest.$ac_ext >&5
3444 ac_cv_cxx_namespaces=no
3445 fi
3446 rm -f conftest.$ac_objext conftest.$ac_ext
3447  ac_ext=c
3448 ac_cpp='$CPP $CPPFLAGS'
3449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3452
3453
3454 fi
3455 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
3456 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
3457 if test "$ac_cv_cxx_namespaces" = yes; then
3458
3459 cat >>confdefs.h <<\_ACEOF
3460 #define HAVE_NAMESPACES
3461 _ACEOF
3462
3463 fi
3464
3465 echo "$as_me:$LINENO: checking whether the compiler has stringstream" >&5
3466 echo $ECHO_N "checking whether the compiler has stringstream... $ECHO_C" >&6
3467 if test "${HAVE_SSTREAM+set}" = set; then
3468   echo $ECHO_N "(cached) $ECHO_C" >&6
3469 else
3470
3471
3472
3473  ac_ext=cc
3474 ac_cpp='$CXXCPP $CPPFLAGS'
3475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3478
3479  cat >conftest.$ac_ext <<_ACEOF
3480 #line $LINENO "configure"
3481 #include "confdefs.h"
3482 #include <sstream>
3483 #ifdef HAVE_NAMESPACES
3484 using namespace std;
3485 #endif
3486 #ifdef F77_DUMMY_MAIN
3487 #  ifdef __cplusplus
3488      extern "C"
3489 #  endif
3490    int F77_DUMMY_MAIN() { return 1; }
3491 #endif
3492 int
3493 main ()
3494 {
3495 stringstream message; message << "Hello"; return 0;
3496   ;
3497   return 0;
3498 }
3499 _ACEOF
3500 rm -f conftest.$ac_objext
3501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3502   (eval $ac_compile) 2>&5
3503   ac_status=$?
3504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505   (exit $ac_status); } &&
3506          { ac_try='test -s conftest.$ac_objext'
3507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508   (eval $ac_try) 2>&5
3509   ac_status=$?
3510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511   (exit $ac_status); }; }; then
3512   HAVE_SSTREAM=yes
3513 else
3514   echo "$as_me: failed program was:" >&5
3515 cat conftest.$ac_ext >&5
3516 HAVE_SSTREAM=no
3517 fi
3518 rm -f conftest.$ac_objext conftest.$ac_ext
3519  ac_ext=c
3520 ac_cpp='$CPP $CPPFLAGS'
3521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3524
3525
3526 fi
3527 echo "$as_me:$LINENO: result: $HAVE_SSTREAM" >&5
3528 echo "${ECHO_T}$HAVE_SSTREAM" >&6
3529
3530
3531
3532 echo
3533 echo ---------------------------------------------
3534 echo BOOST Library
3535 echo ---------------------------------------------
3536 echo
3537
3538 ac_ext=cc
3539 ac_cpp='$CXXCPP $CPPFLAGS'
3540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3543 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3544 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3545 if test -z "$CXXCPP"; then
3546   if test "${ac_cv_prog_CXXCPP+set}" = set; then
3547   echo $ECHO_N "(cached) $ECHO_C" >&6
3548 else
3549       # Double quotes because CXXCPP needs to be expanded
3550     for CXXCPP in "$CXX -E" "/lib/cpp"
3551     do
3552       ac_preproc_ok=false
3553 for ac_cxx_preproc_warn_flag in '' yes
3554 do
3555   # Use a header file that comes with gcc, so configuring glibc
3556   # with a fresh cross-compiler works.
3557   # On the NeXT, cc -E runs the code through the compiler's parser,
3558   # not just through cpp. "Syntax error" is here to catch this case.
3559   cat >conftest.$ac_ext <<_ACEOF
3560 #line $LINENO "configure"
3561 #include "confdefs.h"
3562 #include <assert.h>
3563                      Syntax error
3564 _ACEOF
3565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3566   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3567   ac_status=$?
3568   egrep -v '^ *\+' conftest.er1 >conftest.err
3569   rm -f conftest.er1
3570   cat conftest.err >&5
3571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572   (exit $ac_status); } >/dev/null; then
3573   if test -s conftest.err; then
3574     ac_cpp_err=$ac_cxx_preproc_warn_flag
3575   else
3576     ac_cpp_err=
3577   fi
3578 else
3579   ac_cpp_err=yes
3580 fi
3581 if test -z "$ac_cpp_err"; then
3582   :
3583 else
3584   echo "$as_me: failed program was:" >&5
3585   cat conftest.$ac_ext >&5
3586   # Broken: fails on valid input.
3587 continue
3588 fi
3589 rm -f conftest.err conftest.$ac_ext
3590
3591   # OK, works on sane cases.  Now check whether non-existent headers
3592   # can be detected and how.
3593   cat >conftest.$ac_ext <<_ACEOF
3594 #line $LINENO "configure"
3595 #include "confdefs.h"
3596 #include <ac_nonexistent.h>
3597 _ACEOF
3598 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3599   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3600   ac_status=$?
3601   egrep -v '^ *\+' conftest.er1 >conftest.err
3602   rm -f conftest.er1
3603   cat conftest.err >&5
3604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605   (exit $ac_status); } >/dev/null; then
3606   if test -s conftest.err; then
3607     ac_cpp_err=$ac_cxx_preproc_warn_flag
3608   else
3609     ac_cpp_err=
3610   fi
3611 else
3612   ac_cpp_err=yes
3613 fi
3614 if test -z "$ac_cpp_err"; then
3615   # Broken: success on invalid input.
3616 continue
3617 else
3618   echo "$as_me: failed program was:" >&5
3619   cat conftest.$ac_ext >&5
3620   # Passes both tests.
3621 ac_preproc_ok=:
3622 break
3623 fi
3624 rm -f conftest.err conftest.$ac_ext
3625
3626 done
3627 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3628 rm -f conftest.err conftest.$ac_ext
3629 if $ac_preproc_ok; then
3630   break
3631 fi
3632
3633     done
3634     ac_cv_prog_CXXCPP=$CXXCPP
3635
3636 fi
3637   CXXCPP=$ac_cv_prog_CXXCPP
3638 else
3639   ac_cv_prog_CXXCPP=$CXXCPP
3640 fi
3641 echo "$as_me:$LINENO: result: $CXXCPP" >&5
3642 echo "${ECHO_T}$CXXCPP" >&6
3643 ac_preproc_ok=false
3644 for ac_cxx_preproc_warn_flag in '' yes
3645 do
3646   # Use a header file that comes with gcc, so configuring glibc
3647   # with a fresh cross-compiler works.
3648   # On the NeXT, cc -E runs the code through the compiler's parser,
3649   # not just through cpp. "Syntax error" is here to catch this case.
3650   cat >conftest.$ac_ext <<_ACEOF
3651 #line $LINENO "configure"
3652 #include "confdefs.h"
3653 #include <assert.h>
3654                      Syntax error
3655 _ACEOF
3656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3657   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3658   ac_status=$?
3659   egrep -v '^ *\+' conftest.er1 >conftest.err
3660   rm -f conftest.er1
3661   cat conftest.err >&5
3662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663   (exit $ac_status); } >/dev/null; then
3664   if test -s conftest.err; then
3665     ac_cpp_err=$ac_cxx_preproc_warn_flag
3666   else
3667     ac_cpp_err=
3668   fi
3669 else
3670   ac_cpp_err=yes
3671 fi
3672 if test -z "$ac_cpp_err"; then
3673   :
3674 else
3675   echo "$as_me: failed program was:" >&5
3676   cat conftest.$ac_ext >&5
3677   # Broken: fails on valid input.
3678 continue
3679 fi
3680 rm -f conftest.err conftest.$ac_ext
3681
3682   # OK, works on sane cases.  Now check whether non-existent headers
3683   # can be detected and how.
3684   cat >conftest.$ac_ext <<_ACEOF
3685 #line $LINENO "configure"
3686 #include "confdefs.h"
3687 #include <ac_nonexistent.h>
3688 _ACEOF
3689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3690   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3691   ac_status=$?
3692   egrep -v '^ *\+' conftest.er1 >conftest.err
3693   rm -f conftest.er1
3694   cat conftest.err >&5
3695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696   (exit $ac_status); } >/dev/null; then
3697   if test -s conftest.err; then
3698     ac_cpp_err=$ac_cxx_preproc_warn_flag
3699   else
3700     ac_cpp_err=
3701   fi
3702 else
3703   ac_cpp_err=yes
3704 fi
3705 if test -z "$ac_cpp_err"; then
3706   # Broken: success on invalid input.
3707 continue
3708 else
3709   echo "$as_me: failed program was:" >&5
3710   cat conftest.$ac_ext >&5
3711   # Passes both tests.
3712 ac_preproc_ok=:
3713 break
3714 fi
3715 rm -f conftest.err conftest.$ac_ext
3716
3717 done
3718 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3719 rm -f conftest.err conftest.$ac_ext
3720 if $ac_preproc_ok; then
3721   :
3722 else
3723   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
3724 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
3725    { (exit 1); exit 1; }; }
3726 fi
3727
3728 ac_ext=cc
3729 ac_cpp='$CXXCPP $CPPFLAGS'
3730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3733
3734
3735 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3736 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3737 if test "${ac_cv_header_stdc+set}" = set; then
3738   echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740   cat >conftest.$ac_ext <<_ACEOF
3741 #line $LINENO "configure"
3742 #include "confdefs.h"
3743 #include <stdlib.h>
3744 #include <stdarg.h>
3745 #include <string.h>
3746 #include <float.h>
3747
3748 _ACEOF
3749 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3750   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3751   ac_status=$?
3752   egrep -v '^ *\+' conftest.er1 >conftest.err
3753   rm -f conftest.er1
3754   cat conftest.err >&5
3755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756   (exit $ac_status); } >/dev/null; then
3757   if test -s conftest.err; then
3758     ac_cpp_err=$ac_cxx_preproc_warn_flag
3759   else
3760     ac_cpp_err=
3761   fi
3762 else
3763   ac_cpp_err=yes
3764 fi
3765 if test -z "$ac_cpp_err"; then
3766   ac_cv_header_stdc=yes
3767 else
3768   echo "$as_me: failed program was:" >&5
3769   cat conftest.$ac_ext >&5
3770   ac_cv_header_stdc=no
3771 fi
3772 rm -f conftest.err conftest.$ac_ext
3773
3774 if test $ac_cv_header_stdc = yes; then
3775   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3776   cat >conftest.$ac_ext <<_ACEOF
3777 #line $LINENO "configure"
3778 #include "confdefs.h"
3779 #include <string.h>
3780
3781 _ACEOF
3782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3783   egrep "memchr" >/dev/null 2>&1; then
3784   :
3785 else
3786   ac_cv_header_stdc=no
3787 fi
3788 rm -f conftest*
3789
3790 fi
3791
3792 if test $ac_cv_header_stdc = yes; then
3793   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3794   cat >conftest.$ac_ext <<_ACEOF
3795 #line $LINENO "configure"
3796 #include "confdefs.h"
3797 #include <stdlib.h>
3798
3799 _ACEOF
3800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3801   egrep "free" >/dev/null 2>&1; then
3802   :
3803 else
3804   ac_cv_header_stdc=no
3805 fi
3806 rm -f conftest*
3807
3808 fi
3809
3810 if test $ac_cv_header_stdc = yes; then
3811   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3812   if test "$cross_compiling" = yes; then
3813   :
3814 else
3815   cat >conftest.$ac_ext <<_ACEOF
3816 #line $LINENO "configure"
3817 #include "confdefs.h"
3818 #include <ctype.h>
3819 #if ((' ' & 0x0FF) == 0x020)
3820 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3821 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3822 #else
3823 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3824                      || ('j' <= (c) && (c) <= 'r') \
3825                      || ('s' <= (c) && (c) <= 'z'))
3826 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3827 #endif
3828
3829 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3830 int
3831 main ()
3832 {
3833   int i;
3834   for (i = 0; i < 256; i++)
3835     if (XOR (islower (i), ISLOWER (i))
3836         || toupper (i) != TOUPPER (i))
3837       exit(2);
3838   exit (0);
3839 }
3840 _ACEOF
3841 rm -f conftest$ac_exeext
3842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3843   (eval $ac_link) 2>&5
3844   ac_status=$?
3845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848   (eval $ac_try) 2>&5
3849   ac_status=$?
3850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851   (exit $ac_status); }; }; then
3852   :
3853 else
3854   echo "$as_me: program exited with status $ac_status" >&5
3855 echo "$as_me: failed program was:" >&5
3856 cat conftest.$ac_ext >&5
3857 ( exit $ac_status )
3858 ac_cv_header_stdc=no
3859 fi
3860 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3861 fi
3862 fi
3863 fi
3864 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3865 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3866 if test $ac_cv_header_stdc = yes; then
3867
3868 cat >>confdefs.h <<\_ACEOF
3869 #define STDC_HEADERS 1
3870 _ACEOF
3871
3872 fi
3873
3874 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3885                   inttypes.h stdint.h unistd.h
3886 do
3887 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3888 echo "$as_me:$LINENO: checking for $ac_header" >&5
3889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3891   echo $ECHO_N "(cached) $ECHO_C" >&6
3892 else
3893   cat >conftest.$ac_ext <<_ACEOF
3894 #line $LINENO "configure"
3895 #include "confdefs.h"
3896 $ac_includes_default
3897
3898 #include <$ac_header>
3899 _ACEOF
3900 rm -f conftest.$ac_objext
3901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3902   (eval $ac_compile) 2>&5
3903   ac_status=$?
3904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905   (exit $ac_status); } &&
3906          { ac_try='test -s conftest.$ac_objext'
3907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3908   (eval $ac_try) 2>&5
3909   ac_status=$?
3910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911   (exit $ac_status); }; }; then
3912   eval "$as_ac_Header=yes"
3913 else
3914   echo "$as_me: failed program was:" >&5
3915 cat conftest.$ac_ext >&5
3916 eval "$as_ac_Header=no"
3917 fi
3918 rm -f conftest.$ac_objext conftest.$ac_ext
3919 fi
3920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3923   cat >>confdefs.h <<_ACEOF
3924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3925 _ACEOF
3926
3927 fi
3928
3929 done
3930
3931
3932
3933
3934 { echo "$as_me:$LINENO: checking for BOOST Library..." >&5
3935 echo "$as_me: checking for BOOST Library..." >&6;}
3936
3937
3938
3939 ac_ext=cc
3940 ac_cpp='$CXXCPP $CPPFLAGS'
3941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3944
3945
3946
3947 BOOST_CPPFLAGS=""
3948 boost_ok=no
3949
3950 if test -z ${BOOSTDIR}; then
3951   { echo "$as_me:$LINENO: WARNING: You must provide BOOSTDIR variable" >&5
3952 echo "$as_me: WARNING: You must provide BOOSTDIR variable" >&2;}
3953 else
3954   echo "$as_me:$LINENO: result: \$BOOSTDIR = ${BOOSTDIR}" >&5
3955 echo "${ECHO_T}\$BOOSTDIR = ${BOOSTDIR}" >&6
3956   { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp header file..." >&5
3957 echo "$as_me: checking for boost/shared_ptr.hpp header file..." >&6;}
3958     CPPFLAGS_old="${CPPFLAGS}"
3959   BOOST_CPPFLAGS="-ftemplate-depth-32 -I${BOOSTDIR}"
3960   CPPFLAGS="${CPPFLAGS} ${BOOST_CPPFLAGS}"
3961
3962   if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
3963   echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
3964 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6
3965 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
3966   echo $ECHO_N "(cached) $ECHO_C" >&6
3967 fi
3968 echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
3969 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6
3970 else
3971   # Is the header compilable?
3972 echo "$as_me:$LINENO: checking boost/shared_ptr.hpp usability" >&5
3973 echo $ECHO_N "checking boost/shared_ptr.hpp usability... $ECHO_C" >&6
3974 cat >conftest.$ac_ext <<_ACEOF
3975 #line $LINENO "configure"
3976 #include "confdefs.h"
3977 $ac_includes_default
3978 #include <boost/shared_ptr.hpp>
3979 _ACEOF
3980 rm -f conftest.$ac_objext
3981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3982   (eval $ac_compile) 2>&5
3983   ac_status=$?
3984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985   (exit $ac_status); } &&
3986          { ac_try='test -s conftest.$ac_objext'
3987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988   (eval $ac_try) 2>&5
3989   ac_status=$?
3990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991   (exit $ac_status); }; }; then
3992   ac_header_compiler=yes
3993 else
3994   echo "$as_me: failed program was:" >&5
3995 cat conftest.$ac_ext >&5
3996 ac_header_compiler=no
3997 fi
3998 rm -f conftest.$ac_objext conftest.$ac_ext
3999 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4000 echo "${ECHO_T}$ac_header_compiler" >&6
4001
4002 # Is the header present?
4003 echo "$as_me:$LINENO: checking boost/shared_ptr.hpp presence" >&5
4004 echo $ECHO_N "checking boost/shared_ptr.hpp presence... $ECHO_C" >&6
4005 cat >conftest.$ac_ext <<_ACEOF
4006 #line $LINENO "configure"
4007 #include "confdefs.h"
4008 #include <boost/shared_ptr.hpp>
4009 _ACEOF
4010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4011   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4012   ac_status=$?
4013   egrep -v '^ *\+' conftest.er1 >conftest.err
4014   rm -f conftest.er1
4015   cat conftest.err >&5
4016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017   (exit $ac_status); } >/dev/null; then
4018   if test -s conftest.err; then
4019     ac_cpp_err=$ac_cxx_preproc_warn_flag
4020   else
4021     ac_cpp_err=
4022   fi
4023 else
4024   ac_cpp_err=yes
4025 fi
4026 if test -z "$ac_cpp_err"; then
4027   ac_header_preproc=yes
4028 else
4029   echo "$as_me: failed program was:" >&5
4030   cat conftest.$ac_ext >&5
4031   ac_header_preproc=no
4032 fi
4033 rm -f conftest.err conftest.$ac_ext
4034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4035 echo "${ECHO_T}$ac_header_preproc" >&6
4036
4037 # So?  What about this header?
4038 case $ac_header_compiler:$ac_header_preproc in
4039   yes:no )
4040     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
4041 echo "$as_me: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
4042     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&5
4043 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&2;};;
4044   no:yes )
4045     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&5
4046 echo "$as_me: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&2;}
4047     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: check for missing prerequisite headers?" >&5
4048 echo "$as_me: WARNING: boost/shared_ptr.hpp: check for missing prerequisite headers?" >&2;}
4049     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&5
4050 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&2;};;
4051 esac
4052 echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
4053 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6
4054 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
4055   echo $ECHO_N "(cached) $ECHO_C" >&6
4056 else
4057   ac_cv_header_boost_shared_ptr_hpp=$ac_header_preproc
4058 fi
4059 echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
4060 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6
4061
4062 fi
4063 if test $ac_cv_header_boost_shared_ptr_hpp = yes; then
4064   boost_ok=yes
4065 else
4066   boost_ok=no
4067 fi
4068
4069
4070
4071   CPPFLAGS="${CPPFLAGS_old}"
4072   boost_ok=yes
4073 fi
4074
4075 ac_ext=c
4076 ac_cpp='$CPP $CPPFLAGS'
4077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4080
4081
4082
4083
4084
4085 ac_ext=c
4086 ac_cpp='$CPP $CPPFLAGS'
4087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4090 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4091 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4092 # On Suns, sometimes $CPP names a directory.
4093 if test -n "$CPP" && test -d "$CPP"; then
4094   CPP=
4095 fi
4096 if test -z "$CPP"; then
4097   if test "${ac_cv_prog_CPP+set}" = set; then
4098   echo $ECHO_N "(cached) $ECHO_C" >&6
4099 else
4100       # Double quotes because CPP needs to be expanded
4101     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4102     do
4103       ac_preproc_ok=false
4104 for ac_c_preproc_warn_flag in '' yes
4105 do
4106   # Use a header file that comes with gcc, so configuring glibc
4107   # with a fresh cross-compiler works.
4108   # On the NeXT, cc -E runs the code through the compiler's parser,
4109   # not just through cpp. "Syntax error" is here to catch this case.
4110   cat >conftest.$ac_ext <<_ACEOF
4111 #line $LINENO "configure"
4112 #include "confdefs.h"
4113 #include <assert.h>
4114                      Syntax error
4115 _ACEOF
4116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4117   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4118   ac_status=$?
4119   egrep -v '^ *\+' conftest.er1 >conftest.err
4120   rm -f conftest.er1
4121   cat conftest.err >&5
4122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123   (exit $ac_status); } >/dev/null; then
4124   if test -s conftest.err; then
4125     ac_cpp_err=$ac_c_preproc_warn_flag
4126   else
4127     ac_cpp_err=
4128   fi
4129 else
4130   ac_cpp_err=yes
4131 fi
4132 if test -z "$ac_cpp_err"; then
4133   :
4134 else
4135   echo "$as_me: failed program was:" >&5
4136   cat conftest.$ac_ext >&5
4137   # Broken: fails on valid input.
4138 continue
4139 fi
4140 rm -f conftest.err conftest.$ac_ext
4141
4142   # OK, works on sane cases.  Now check whether non-existent headers
4143   # can be detected and how.
4144   cat >conftest.$ac_ext <<_ACEOF
4145 #line $LINENO "configure"
4146 #include "confdefs.h"
4147 #include <ac_nonexistent.h>
4148 _ACEOF
4149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4150   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4151   ac_status=$?
4152   egrep -v '^ *\+' conftest.er1 >conftest.err
4153   rm -f conftest.er1
4154   cat conftest.err >&5
4155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156   (exit $ac_status); } >/dev/null; then
4157   if test -s conftest.err; then
4158     ac_cpp_err=$ac_c_preproc_warn_flag
4159   else
4160     ac_cpp_err=
4161   fi
4162 else
4163   ac_cpp_err=yes
4164 fi
4165 if test -z "$ac_cpp_err"; then
4166   # Broken: success on invalid input.
4167 continue
4168 else
4169   echo "$as_me: failed program was:" >&5
4170   cat conftest.$ac_ext >&5
4171   # Passes both tests.
4172 ac_preproc_ok=:
4173 break
4174 fi
4175 rm -f conftest.err conftest.$ac_ext
4176
4177 done
4178 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4179 rm -f conftest.err conftest.$ac_ext
4180 if $ac_preproc_ok; then
4181   break
4182 fi
4183
4184     done
4185     ac_cv_prog_CPP=$CPP
4186
4187 fi
4188   CPP=$ac_cv_prog_CPP
4189 else
4190   ac_cv_prog_CPP=$CPP
4191 fi
4192 echo "$as_me:$LINENO: result: $CPP" >&5
4193 echo "${ECHO_T}$CPP" >&6
4194 ac_preproc_ok=false
4195 for ac_c_preproc_warn_flag in '' yes
4196 do
4197   # Use a header file that comes with gcc, so configuring glibc
4198   # with a fresh cross-compiler works.
4199   # On the NeXT, cc -E runs the code through the compiler's parser,
4200   # not just through cpp. "Syntax error" is here to catch this case.
4201   cat >conftest.$ac_ext <<_ACEOF
4202 #line $LINENO "configure"
4203 #include "confdefs.h"
4204 #include <assert.h>
4205                      Syntax error
4206 _ACEOF
4207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4208   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4209   ac_status=$?
4210   egrep -v '^ *\+' conftest.er1 >conftest.err
4211   rm -f conftest.er1
4212   cat conftest.err >&5
4213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214   (exit $ac_status); } >/dev/null; then
4215   if test -s conftest.err; then
4216     ac_cpp_err=$ac_c_preproc_warn_flag
4217   else
4218     ac_cpp_err=
4219   fi
4220 else
4221   ac_cpp_err=yes
4222 fi
4223 if test -z "$ac_cpp_err"; then
4224   :
4225 else
4226   echo "$as_me: failed program was:" >&5
4227   cat conftest.$ac_ext >&5
4228   # Broken: fails on valid input.
4229 continue
4230 fi
4231 rm -f conftest.err conftest.$ac_ext
4232
4233   # OK, works on sane cases.  Now check whether non-existent headers
4234   # can be detected and how.
4235   cat >conftest.$ac_ext <<_ACEOF
4236 #line $LINENO "configure"
4237 #include "confdefs.h"
4238 #include <ac_nonexistent.h>
4239 _ACEOF
4240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4241   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4242   ac_status=$?
4243   egrep -v '^ *\+' conftest.er1 >conftest.err
4244   rm -f conftest.er1
4245   cat conftest.err >&5
4246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247   (exit $ac_status); } >/dev/null; then
4248   if test -s conftest.err; then
4249     ac_cpp_err=$ac_c_preproc_warn_flag
4250   else
4251     ac_cpp_err=
4252   fi
4253 else
4254   ac_cpp_err=yes
4255 fi
4256 if test -z "$ac_cpp_err"; then
4257   # Broken: success on invalid input.
4258 continue
4259 else
4260   echo "$as_me: failed program was:" >&5
4261   cat conftest.$ac_ext >&5
4262   # Passes both tests.
4263 ac_preproc_ok=:
4264 break
4265 fi
4266 rm -f conftest.err conftest.$ac_ext
4267
4268 done
4269 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4270 rm -f conftest.err conftest.$ac_ext
4271 if $ac_preproc_ok; then
4272   :
4273 else
4274   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
4275 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
4276    { (exit 1); exit 1; }; }
4277 fi
4278
4279 ac_ext=c
4280 ac_cpp='$CPP $CPPFLAGS'
4281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4284
4285
4286
4287
4288
4289
4290 # Check whether --with-mpich or --without-mpich was given.
4291 if test "${with_mpich+set}" = set; then
4292   withval="$with_mpich"
4293   WITHMPICH="yes"
4294 else
4295   WITHMPICH="no"
4296 fi;
4297
4298 MPICH_INCLUDES=""
4299 MPICH_LIBS=""
4300 if test "$WITHMPICH" = yes; then
4301
4302   echo
4303   echo ---------------------------------------------
4304   echo testing mpich
4305   echo ---------------------------------------------
4306   echo
4307   MPICH_HOME=$withval
4308
4309   if test "$MPICH_HOME"; then
4310     MPICH_INCLUDES="-I$MPICH_HOME/include"
4311     MPICH_LIBS="-L$MPICH_HOME/lib"
4312   fi
4313
4314   CPPFLAGS_old="$CPPFLAGS"
4315   CPPFLAGS="$MPICH_INCLUDES $CPPFLAGS"
4316   if test "${ac_cv_header_mpi_h+set}" = set; then
4317   echo "$as_me:$LINENO: checking for mpi.h" >&5
4318 echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6
4319 if test "${ac_cv_header_mpi_h+set}" = set; then
4320   echo $ECHO_N "(cached) $ECHO_C" >&6
4321 fi
4322 echo "$as_me:$LINENO: result: $ac_cv_header_mpi_h" >&5
4323 echo "${ECHO_T}$ac_cv_header_mpi_h" >&6
4324 else
4325   # Is the header compilable?
4326 echo "$as_me:$LINENO: checking mpi.h usability" >&5
4327 echo $ECHO_N "checking mpi.h usability... $ECHO_C" >&6
4328 cat >conftest.$ac_ext <<_ACEOF
4329 #line $LINENO "configure"
4330 #include "confdefs.h"
4331 $ac_includes_default
4332 #include <mpi.h>
4333 _ACEOF
4334 rm -f conftest.$ac_objext
4335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4336   (eval $ac_compile) 2>&5
4337   ac_status=$?
4338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339   (exit $ac_status); } &&
4340          { ac_try='test -s conftest.$ac_objext'
4341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342   (eval $ac_try) 2>&5
4343   ac_status=$?
4344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345   (exit $ac_status); }; }; then
4346   ac_header_compiler=yes
4347 else
4348   echo "$as_me: failed program was:" >&5
4349 cat conftest.$ac_ext >&5
4350 ac_header_compiler=no
4351 fi
4352 rm -f conftest.$ac_objext conftest.$ac_ext
4353 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4354 echo "${ECHO_T}$ac_header_compiler" >&6
4355
4356 # Is the header present?
4357 echo "$as_me:$LINENO: checking mpi.h presence" >&5
4358 echo $ECHO_N "checking mpi.h presence... $ECHO_C" >&6
4359 cat >conftest.$ac_ext <<_ACEOF
4360 #line $LINENO "configure"
4361 #include "confdefs.h"
4362 #include <mpi.h>
4363 _ACEOF
4364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4365   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4366   ac_status=$?
4367   egrep -v '^ *\+' conftest.er1 >conftest.err
4368   rm -f conftest.er1
4369   cat conftest.err >&5
4370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371   (exit $ac_status); } >/dev/null; then
4372   if test -s conftest.err; then
4373     ac_cpp_err=$ac_c_preproc_warn_flag
4374   else
4375     ac_cpp_err=
4376   fi
4377 else
4378   ac_cpp_err=yes
4379 fi
4380 if test -z "$ac_cpp_err"; then
4381   ac_header_preproc=yes
4382 else
4383   echo "$as_me: failed program was:" >&5
4384   cat conftest.$ac_ext >&5
4385   ac_header_preproc=no
4386 fi
4387 rm -f conftest.err conftest.$ac_ext
4388 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4389 echo "${ECHO_T}$ac_header_preproc" >&6
4390
4391 # So?  What about this header?
4392 case $ac_header_compiler:$ac_header_preproc in
4393   yes:no )
4394     { echo "$as_me:$LINENO: WARNING: mpi.h: accepted by the compiler, rejected by the preprocessor!" >&5
4395 echo "$as_me: WARNING: mpi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4396     { echo "$as_me:$LINENO: WARNING: mpi.h: proceeding with the preprocessor's result" >&5
4397 echo "$as_me: WARNING: mpi.h: proceeding with the preprocessor's result" >&2;};;
4398   no:yes )
4399     { echo "$as_me:$LINENO: WARNING: mpi.h: present but cannot be compiled" >&5
4400 echo "$as_me: WARNING: mpi.h: present but cannot be compiled" >&2;}
4401     { echo "$as_me:$LINENO: WARNING: mpi.h: check for missing prerequisite headers?" >&5
4402 echo "$as_me: WARNING: mpi.h: check for missing prerequisite headers?" >&2;}
4403     { echo "$as_me:$LINENO: WARNING: mpi.h: proceeding with the preprocessor's result" >&5
4404 echo "$as_me: WARNING: mpi.h: proceeding with the preprocessor's result" >&2;};;
4405 esac
4406 echo "$as_me:$LINENO: checking for mpi.h" >&5
4407 echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6
4408 if test "${ac_cv_header_mpi_h+set}" = set; then
4409   echo $ECHO_N "(cached) $ECHO_C" >&6
4410 else
4411   ac_cv_header_mpi_h=$ac_header_preproc
4412 fi
4413 echo "$as_me:$LINENO: result: $ac_cv_header_mpi_h" >&5
4414 echo "${ECHO_T}$ac_cv_header_mpi_h" >&6
4415
4416 fi
4417 if test $ac_cv_header_mpi_h = yes; then
4418   WITHMPICH="yes"
4419 else
4420   WITHMPICH="no"
4421 fi
4422
4423
4424   CPPFLAGS="$CPPFLAGS_old"
4425
4426   if test "$WITHMPICH" = "yes";then
4427     LDFLAGS_old="$LDFLAGS"
4428     LDFLAGS="$MPICH_LIBS $LDFLAGS"
4429     echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
4430 echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
4431 if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
4432   echo $ECHO_N "(cached) $ECHO_C" >&6
4433 else
4434   ac_check_lib_save_LIBS=$LIBS
4435 LIBS="-lmpich  $LIBS"
4436 cat >conftest.$ac_ext <<_ACEOF
4437 #line $LINENO "configure"
4438 #include "confdefs.h"
4439
4440 /* Override any gcc2 internal prototype to avoid an error.  */
4441 #ifdef __cplusplus
4442 extern "C"
4443 #endif
4444 /* We use char because int might match the return type of a gcc2
4445    builtin and then its argument prototype would still apply.  */
4446 char MPI_Init ();
4447 #ifdef F77_DUMMY_MAIN
4448 #  ifdef __cplusplus
4449      extern "C"
4450 #  endif
4451    int F77_DUMMY_MAIN() { return 1; }
4452 #endif
4453 int
4454 main ()
4455 {
4456 MPI_Init ();
4457   ;
4458   return 0;
4459 }
4460 _ACEOF
4461 rm -f conftest.$ac_objext conftest$ac_exeext
4462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4463   (eval $ac_link) 2>&5
4464   ac_status=$?
4465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466   (exit $ac_status); } &&
4467          { ac_try='test -s conftest$ac_exeext'
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   ac_cv_lib_mpich_MPI_Init=yes
4474 else
4475   echo "$as_me: failed program was:" >&5
4476 cat conftest.$ac_ext >&5
4477 ac_cv_lib_mpich_MPI_Init=no
4478 fi
4479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4480 LIBS=$ac_check_lib_save_LIBS
4481 fi
4482 echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
4483 echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
4484 if test $ac_cv_lib_mpich_MPI_Init = yes; then
4485   echo "$as_me:$LINENO: checking for PMPI_Init in -lpmpich" >&5
4486 echo $ECHO_N "checking for PMPI_Init in -lpmpich... $ECHO_C" >&6
4487 if test "${ac_cv_lib_pmpich_PMPI_Init+set}" = set; then
4488   echo $ECHO_N "(cached) $ECHO_C" >&6
4489 else
4490   ac_check_lib_save_LIBS=$LIBS
4491 LIBS="-lpmpich  $LIBS"
4492 cat >conftest.$ac_ext <<_ACEOF
4493 #line $LINENO "configure"
4494 #include "confdefs.h"
4495
4496 /* Override any gcc2 internal prototype to avoid an error.  */
4497 #ifdef __cplusplus
4498 extern "C"
4499 #endif
4500 /* We use char because int might match the return type of a gcc2
4501    builtin and then its argument prototype would still apply.  */
4502 char PMPI_Init ();
4503 #ifdef F77_DUMMY_MAIN
4504 #  ifdef __cplusplus
4505      extern "C"
4506 #  endif
4507    int F77_DUMMY_MAIN() { return 1; }
4508 #endif
4509 int
4510 main ()
4511 {
4512 PMPI_Init ();
4513   ;
4514   return 0;
4515 }
4516 _ACEOF
4517 rm -f conftest.$ac_objext conftest$ac_exeext
4518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4519   (eval $ac_link) 2>&5
4520   ac_status=$?
4521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522   (exit $ac_status); } &&
4523          { ac_try='test -s conftest$ac_exeext'
4524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525   (eval $ac_try) 2>&5
4526   ac_status=$?
4527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528   (exit $ac_status); }; }; then
4529   ac_cv_lib_pmpich_PMPI_Init=yes
4530 else
4531   echo "$as_me: failed program was:" >&5
4532 cat conftest.$ac_ext >&5
4533 ac_cv_lib_pmpich_PMPI_Init=no
4534 fi
4535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4536 LIBS=$ac_check_lib_save_LIBS
4537 fi
4538 echo "$as_me:$LINENO: result: $ac_cv_lib_pmpich_PMPI_Init" >&5
4539 echo "${ECHO_T}$ac_cv_lib_pmpich_PMPI_Init" >&6
4540 if test $ac_cv_lib_pmpich_PMPI_Init = yes; then
4541   WITHMPICH="yes"
4542 else
4543   WITHMPICH="no"
4544 fi
4545
4546 else
4547   WITHMPICH="no"
4548 fi
4549
4550     LDFLAGS="$LDFLAGS_old"
4551   fi
4552
4553   MPICH_LIBS="$MPICH_LIBS -lpmpich -lmpich"
4554
4555 fi
4556
4557
4558
4559
4560
4561
4562 echo
4563 echo ---------------------------------------------
4564 echo testing LEX \& YACC
4565 echo ---------------------------------------------
4566 echo
4567
4568 lex_yacc_ok=no
4569 for ac_prog in 'bison -y' byacc
4570 do
4571   # Extract the first word of "$ac_prog", so it can be a program name with args.
4572 set dummy $ac_prog; ac_word=$2
4573 echo "$as_me:$LINENO: checking for $ac_word" >&5
4574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4575 if test "${ac_cv_prog_YACC+set}" = set; then
4576   echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578   if test -n "$YACC"; then
4579   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4580 else
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 for as_dir in $PATH
4583 do
4584   IFS=$as_save_IFS
4585   test -z "$as_dir" && as_dir=.
4586   for ac_exec_ext in '' $ac_executable_extensions; do
4587   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4588     ac_cv_prog_YACC="$ac_prog"
4589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4590     break 2
4591   fi
4592 done
4593 done
4594
4595 fi
4596 fi
4597 YACC=$ac_cv_prog_YACC
4598 if test -n "$YACC"; then
4599   echo "$as_me:$LINENO: result: $YACC" >&5
4600 echo "${ECHO_T}$YACC" >&6
4601 else
4602   echo "$as_me:$LINENO: result: no" >&5
4603 echo "${ECHO_T}no" >&6
4604 fi
4605
4606   test -n "$YACC" && break
4607 done
4608 test -n "$YACC" || YACC="yacc"
4609
4610 for ac_prog in flex lex
4611 do
4612   # Extract the first word of "$ac_prog", so it can be a program name with args.
4613 set dummy $ac_prog; ac_word=$2
4614 echo "$as_me:$LINENO: checking for $ac_word" >&5
4615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4616 if test "${ac_cv_prog_LEX+set}" = set; then
4617   echo $ECHO_N "(cached) $ECHO_C" >&6
4618 else
4619   if test -n "$LEX"; then
4620   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4621 else
4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623 for as_dir in $PATH
4624 do
4625   IFS=$as_save_IFS
4626   test -z "$as_dir" && as_dir=.
4627   for ac_exec_ext in '' $ac_executable_extensions; do
4628   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4629     ac_cv_prog_LEX="$ac_prog"
4630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4631     break 2
4632   fi
4633 done
4634 done
4635
4636 fi
4637 fi
4638 LEX=$ac_cv_prog_LEX
4639 if test -n "$LEX"; then
4640   echo "$as_me:$LINENO: result: $LEX" >&5
4641 echo "${ECHO_T}$LEX" >&6
4642 else
4643   echo "$as_me:$LINENO: result: no" >&5
4644 echo "${ECHO_T}no" >&6
4645 fi
4646
4647   test -n "$LEX" && break
4648 done
4649 test -n "$LEX" || LEX=":"
4650
4651 if test -z "$LEXLIB"
4652 then
4653   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4654 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4655 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4656   echo $ECHO_N "(cached) $ECHO_C" >&6
4657 else
4658   ac_check_lib_save_LIBS=$LIBS
4659 LIBS="-lfl  $LIBS"
4660 cat >conftest.$ac_ext <<_ACEOF
4661 #line $LINENO "configure"
4662 #include "confdefs.h"
4663
4664 /* Override any gcc2 internal prototype to avoid an error.  */
4665 #ifdef __cplusplus
4666 extern "C"
4667 #endif
4668 /* We use char because int might match the return type of a gcc2
4669    builtin and then its argument prototype would still apply.  */
4670 char yywrap ();
4671 #ifdef F77_DUMMY_MAIN
4672 #  ifdef __cplusplus
4673      extern "C"
4674 #  endif
4675    int F77_DUMMY_MAIN() { return 1; }
4676 #endif
4677 int
4678 main ()
4679 {
4680 yywrap ();
4681   ;
4682   return 0;
4683 }
4684 _ACEOF
4685 rm -f conftest.$ac_objext conftest$ac_exeext
4686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4687   (eval $ac_link) 2>&5
4688   ac_status=$?
4689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690   (exit $ac_status); } &&
4691          { ac_try='test -s conftest$ac_exeext'
4692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693   (eval $ac_try) 2>&5
4694   ac_status=$?
4695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696   (exit $ac_status); }; }; then
4697   ac_cv_lib_fl_yywrap=yes
4698 else
4699   echo "$as_me: failed program was:" >&5
4700 cat conftest.$ac_ext >&5
4701 ac_cv_lib_fl_yywrap=no
4702 fi
4703 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4704 LIBS=$ac_check_lib_save_LIBS
4705 fi
4706 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4707 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4708 if test $ac_cv_lib_fl_yywrap = yes; then
4709   LEXLIB="-lfl"
4710 else
4711   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4712 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4713 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4714   echo $ECHO_N "(cached) $ECHO_C" >&6
4715 else
4716   ac_check_lib_save_LIBS=$LIBS
4717 LIBS="-ll  $LIBS"
4718 cat >conftest.$ac_ext <<_ACEOF
4719 #line $LINENO "configure"
4720 #include "confdefs.h"
4721
4722 /* Override any gcc2 internal prototype to avoid an error.  */
4723 #ifdef __cplusplus
4724 extern "C"
4725 #endif
4726 /* We use char because int might match the return type of a gcc2
4727    builtin and then its argument prototype would still apply.  */
4728 char yywrap ();
4729 #ifdef F77_DUMMY_MAIN
4730 #  ifdef __cplusplus
4731      extern "C"
4732 #  endif
4733    int F77_DUMMY_MAIN() { return 1; }
4734 #endif
4735 int
4736 main ()
4737 {
4738 yywrap ();
4739   ;
4740   return 0;
4741 }
4742 _ACEOF
4743 rm -f conftest.$ac_objext conftest$ac_exeext
4744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4745   (eval $ac_link) 2>&5
4746   ac_status=$?
4747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748   (exit $ac_status); } &&
4749          { ac_try='test -s conftest$ac_exeext'
4750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751   (eval $ac_try) 2>&5
4752   ac_status=$?
4753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754   (exit $ac_status); }; }; then
4755   ac_cv_lib_l_yywrap=yes
4756 else
4757   echo "$as_me: failed program was:" >&5
4758 cat conftest.$ac_ext >&5
4759 ac_cv_lib_l_yywrap=no
4760 fi
4761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4762 LIBS=$ac_check_lib_save_LIBS
4763 fi
4764 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4765 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4766 if test $ac_cv_lib_l_yywrap = yes; then
4767   LEXLIB="-ll"
4768 fi
4769
4770 fi
4771
4772 fi
4773
4774 if test "x$LEX" != "x:"; then
4775   echo "$as_me:$LINENO: checking lex output file root" >&5
4776 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4777 if test "${ac_cv_prog_lex_root+set}" = set; then
4778   echo $ECHO_N "(cached) $ECHO_C" >&6
4779 else
4780   # The minimal lex program is just a single line: %%.  But some broken lexes
4781 # (Solaris, I think it was) want two %% lines, so accommodate them.
4782 cat >conftest.l <<_ACEOF
4783 %%
4784 %%
4785 _ACEOF
4786 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4787   (eval $LEX conftest.l) 2>&5
4788   ac_status=$?
4789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790   (exit $ac_status); }
4791 if test -f lex.yy.c; then
4792   ac_cv_prog_lex_root=lex.yy
4793 elif test -f lexyy.c; then
4794   ac_cv_prog_lex_root=lexyy
4795 else
4796   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4797 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4798    { (exit 1); exit 1; }; }
4799 fi
4800 fi
4801 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4802 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4803 rm -f conftest.l
4804 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4805
4806 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4807 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4808 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4809   echo $ECHO_N "(cached) $ECHO_C" >&6
4810 else
4811   # POSIX says lex can declare yytext either as a pointer or an array; the
4812 # default is implementation-dependent. Figure out which it is, since
4813 # not all implementations provide the %pointer and %array declarations.
4814 ac_cv_prog_lex_yytext_pointer=no
4815 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4816 ac_save_LIBS=$LIBS
4817 LIBS="$LIBS $LEXLIB"
4818 cat >conftest.$ac_ext <<_ACEOF
4819 `cat $LEX_OUTPUT_ROOT.c`
4820 _ACEOF
4821 rm -f conftest.$ac_objext conftest$ac_exeext
4822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4823   (eval $ac_link) 2>&5
4824   ac_status=$?
4825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826   (exit $ac_status); } &&
4827          { ac_try='test -s conftest$ac_exeext'
4828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4829   (eval $ac_try) 2>&5
4830   ac_status=$?
4831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832   (exit $ac_status); }; }; then
4833   ac_cv_prog_lex_yytext_pointer=yes
4834 else
4835   echo "$as_me: failed program was:" >&5
4836 cat conftest.$ac_ext >&5
4837 fi
4838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4839 LIBS=$ac_save_LIBS
4840 rm -f "${LEX_OUTPUT_ROOT}.c"
4841
4842 fi
4843 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4844 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4845 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4846
4847 cat >>confdefs.h <<\_ACEOF
4848 #define YYTEXT_POINTER 1
4849 _ACEOF
4850
4851 fi
4852
4853 fi
4854 lex_yacc_ok=yes
4855
4856 echo
4857 echo ---------------------------------------------
4858 echo testing python
4859 echo ---------------------------------------------
4860 echo
4861
4862
4863
4864 # Check whether --with-python or --without-python was given.
4865 if test "${with_python+set}" = set; then
4866   withval="$with_python"
4867   PYTHON="$withval/bin/python"
4868     echo "$as_me:$LINENO: result: \"select python distribution in $withval\"" >&5
4869 echo "${ECHO_T}\"select python distribution in $withval\"" >&6
4870
4871 else
4872
4873     # Extract the first word of "python", so it can be a program name with args.
4874 set dummy python; ac_word=$2
4875 echo "$as_me:$LINENO: checking for $ac_word" >&5
4876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4877 if test "${ac_cv_path_PYTHON+set}" = set; then
4878   echo $ECHO_N "(cached) $ECHO_C" >&6
4879 else
4880   case $PYTHON in
4881   [\\/]* | ?:[\\/]*)
4882   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4883   ;;
4884   *)
4885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 for as_dir in $PATH
4887 do
4888   IFS=$as_save_IFS
4889   test -z "$as_dir" && as_dir=.
4890   for ac_exec_ext in '' $ac_executable_extensions; do
4891   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4892     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4894     break 2
4895   fi
4896 done
4897 done
4898
4899   ;;
4900 esac
4901 fi
4902 PYTHON=$ac_cv_path_PYTHON
4903
4904 if test -n "$PYTHON"; then
4905   echo "$as_me:$LINENO: result: $PYTHON" >&5
4906 echo "${ECHO_T}$PYTHON" >&6
4907 else
4908   echo "$as_me:$LINENO: result: no" >&5
4909 echo "${ECHO_T}no" >&6
4910 fi
4911
4912
4913 fi;
4914
4915   { echo "$as_me:$LINENO: checking local Python configuration..." >&5
4916 echo "$as_me: checking local Python configuration..." >&6;}
4917   PYTHON_PREFIX=`echo $PYTHON | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
4918   PYTHON_PREFIX=`echo $PYTHON_PREFIX | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
4919   PYTHONHOME=$PYTHON_PREFIX
4920
4921
4922
4923
4924     PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[:3]"`
4925
4926
4927   PY_MAKEFILE=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config/Makefile
4928   if test ! -f "$PY_MAKEFILE"; then
4929      { { echo "$as_me:$LINENO: error: *** Couldn't find ${PY_MAKEFILE}.  Maybe you are
4930 *** missing the development portion of the python installation" >&5
4931 echo "$as_me: error: *** Couldn't find ${PY_MAKEFILE}.  Maybe you are
4932 *** missing the development portion of the python installation" >&2;}
4933    { (exit 1); exit 1; }; }
4934   fi
4935
4936
4937
4938
4939   PYTHON_INCLUDES=-I$PYTHON_PREFIX/include/python$PYTHON_VERSION
4940   PYTHON_LIBS="-L${PYTHON_PREFIX}/lib/python${PYTHON_VERSION}/config -lpython${PYTHON_VERSION}"
4941   PYTHON_LIB=$PYTHON_LIBS
4942   PYTHON_LIBA=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config/libpython$PYTHON_VERSION.a
4943
4944
4945
4946   PYTHON_PLATFORM=`$PYTHON -c "import sys; print sys.platform"`
4947
4948
4949
4950 # Check whether --with-python-site or --without-python-site was given.
4951 if test "${with_python_site+set}" = set; then
4952   withval="$with_python_site"
4953
4954
4955 PYTHON_SITE="$withval"
4956 python_site_given=yes
4957 else
4958   PYTHON_SITE=$prefix"/lib/python"$PYTHON_VERSION/site-packages
4959 python_site_given=no
4960 fi;
4961
4962
4963   PYTHON_SITE_PACKAGE=$PYTHON_SITE/$PACKAGE
4964
4965
4966
4967
4968
4969 # Check whether --with-python-site-exec or --without-python-site-exec was given.
4970 if test "${with_python_site_exec+set}" = set; then
4971   withval="$with_python_site_exec"
4972   PYTHON_SITE_EXEC="$withval"
4973 else
4974   if test "$python_site_given" = yes; then
4975   PYTHON_SITE_EXEC=$PYTHON_SITE
4976 else
4977   PYTHON_SITE_EXEC=$PYTHON_EXEC_PREFIX"/lib/python"$PYTHON_VERSION/site-packages
4978 fi
4979 fi;
4980
4981     PYTHON_SITE_INSTALL=$PYTHON_SITE_PACKAGE
4982
4983
4984
4985   pythondir=$PYTHON_PREFIX"/lib/python"$PYTHON_VERSION/
4986
4987
4988  echo "$as_me:$LINENO: checking if we need libdb" >&5
4989 echo $ECHO_N "checking if we need libdb... $ECHO_C" >&6
4990  PY_NEEDOPENDB=`nm $PYTHON_LIBA | grep dbopen | grep U`
4991   if test "x$PY_NEEDOPENDB" != "x"; then
4992      PYTHON_LIBS="$PYTHON_LIBS -ldb"
4993      echo "$as_me:$LINENO: result: yes" >&5
4994 echo "${ECHO_T}yes" >&6
4995   else
4996      echo "$as_me:$LINENO: result: no" >&5
4997 echo "${ECHO_T}no" >&6
4998   fi
4999
5000  echo "$as_me:$LINENO: checking if we need libdl" >&5
5001 echo $ECHO_N "checking if we need libdl... $ECHO_C" >&6
5002   PY_NEEDOPENDL=`nm $PYTHON_LIBA | grep dlopen | grep U`
5003   if test "x$PY_NEEDOPENDL" != "x"; then
5004      PYTHON_LIBS="$PYTHON_LIBS -ldl"
5005      echo "$as_me:$LINENO: result: yes" >&5
5006 echo "${ECHO_T}yes" >&6
5007   else
5008      echo "$as_me:$LINENO: result: no" >&5
5009 echo "${ECHO_T}no" >&6
5010   fi
5011
5012  echo "$as_me:$LINENO: checking if we need libutil" >&5
5013 echo $ECHO_N "checking if we need libutil... $ECHO_C" >&6
5014   PY_NEEDOPENPTY=`nm $PYTHON_LIBA | grep openpty | grep U`
5015   if test "x$PY_NEEDOPENPTY" != "x"; then
5016      PYTHON_LIBS="$PYTHON_LIBS -lutil"
5017      echo "$as_me:$LINENO: result: yes" >&5
5018 echo "${ECHO_T}yes" >&6
5019   else
5020      echo "$as_me:$LINENO: result: no" >&5
5021 echo "${ECHO_T}no" >&6
5022   fi
5023
5024  echo "$as_me:$LINENO: checking if we need tcltk" >&5
5025 echo $ECHO_N "checking if we need tcltk... $ECHO_C" >&6
5026   PY_NEEDTCLTK=`nm $PYTHON_LIBA | grep Tcl_Init | grep U`
5027   if test "x$PY_NEEDTCLTK" != "x"; then
5028      PYTHON_LIBS="$PYTHON_LIBS -ltcl -ltk"
5029      echo "$as_me:$LINENO: result: yes" >&5
5030 echo "${ECHO_T}yes" >&6
5031   else
5032      echo "$as_me:$LINENO: result: no" >&5
5033 echo "${ECHO_T}no" >&6
5034   fi
5035
5036   python_ok=yes
5037   echo "$as_me:$LINENO: result: looks good" >&5
5038 echo "${ECHO_T}looks good" >&6
5039
5040
5041
5042 echo
5043 echo ---------------------------------------------
5044 echo testing swig
5045 echo ---------------------------------------------
5046 echo
5047
5048
5049
5050 swig_ok=yes
5051
5052
5053 # Check whether --with-swig or --without-swig was given.
5054 if test "${with_swig+set}" = set; then
5055   withval="$with_swig"
5056   SWIG="$withval"
5057       echo "$as_me:$LINENO: result: \"select $withval as swig executable\"" >&5
5058 echo "${ECHO_T}\"select $withval as swig executable\"" >&6
5059
5060 else
5061
5062       # Extract the first word of "swig", so it can be a program name with args.
5063 set dummy swig; ac_word=$2
5064 echo "$as_me:$LINENO: checking for $ac_word" >&5
5065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5066 if test "${ac_cv_path_SWIG+set}" = set; then
5067   echo $ECHO_N "(cached) $ECHO_C" >&6
5068 else
5069   case $SWIG in
5070   [\\/]* | ?:[\\/]*)
5071   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
5072   ;;
5073   *)
5074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH
5076 do
5077   IFS=$as_save_IFS
5078   test -z "$as_dir" && as_dir=.
5079   for ac_exec_ext in '' $ac_executable_extensions; do
5080   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5081     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
5082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5083     break 2
5084   fi
5085 done
5086 done
5087
5088   ;;
5089 esac
5090 fi
5091 SWIG=$ac_cv_path_SWIG
5092
5093 if test -n "$SWIG"; then
5094   echo "$as_me:$LINENO: result: $SWIG" >&5
5095 echo "${ECHO_T}$SWIG" >&6
5096 else
5097   echo "$as_me:$LINENO: result: no" >&5
5098 echo "${ECHO_T}no" >&6
5099 fi
5100
5101
5102 fi;
5103
5104 if test "x$SWIG" = "x"
5105 then
5106     swig_ok=no
5107     echo "$as_me:$LINENO: result: swig not in PATH variable" >&5
5108 echo "${ECHO_T}swig not in PATH variable" >&6
5109 fi
5110
5111 if  test "x$swig_ok" = "xyes"
5112 then
5113    echo "$as_me:$LINENO: checking python wrapper generation with swig" >&5
5114 echo $ECHO_N "checking python wrapper generation with swig... $ECHO_C" >&6
5115    cat > conftest.h << EOF
5116 int f(double);
5117 EOF
5118
5119    $SWIG -module conftest -python conftest.h >/dev/null 2>&1
5120    if test -f conftest_wrap.c
5121    then
5122       SWIG_FLAGS="-c++ -python -shadow"
5123    else
5124       swig_ok=no
5125    fi
5126    rm -f conftest*
5127    echo "$as_me:$LINENO: result: $swig_ok" >&5
5128 echo "${ECHO_T}$swig_ok" >&6
5129 fi
5130
5131
5132
5133
5134 echo "$as_me:$LINENO: result: for swig: $swig_ok" >&5
5135 echo "${ECHO_T}for swig: $swig_ok" >&6
5136
5137
5138
5139 echo
5140 echo ---------------------------------------------
5141 echo testing threads
5142 echo ---------------------------------------------
5143 echo
5144
5145 echo "$as_me:$LINENO: checking target system type" >&5
5146 echo $ECHO_N "checking target system type... $ECHO_C" >&6
5147 if test "${ac_cv_target+set}" = set; then
5148   echo $ECHO_N "(cached) $ECHO_C" >&6
5149 else
5150   ac_cv_target_alias=$target_alias
5151 test "x$ac_cv_target_alias" = "x" &&
5152   ac_cv_target_alias=$ac_cv_host_alias
5153 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
5154   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
5155 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
5156    { (exit 1); exit 1; }; }
5157
5158 fi
5159 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
5160 echo "${ECHO_T}$ac_cv_target" >&6
5161 target=$ac_cv_target
5162 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5163 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5164 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5165
5166
5167 # The aliases save the names the user supplied, while $host etc.
5168 # will get canonicalized.
5169 test -n "$target_alias" &&
5170   test "$program_prefix$program_suffix$program_transform_name" = \
5171     NONENONEs,x,x, &&
5172   program_prefix=${target_alias}-
5173
5174 if test "${ac_cv_header_pthread_h+set}" = set; then
5175   echo "$as_me:$LINENO: checking for pthread.h" >&5
5176 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5177 if test "${ac_cv_header_pthread_h+set}" = set; then
5178   echo $ECHO_N "(cached) $ECHO_C" >&6
5179 fi
5180 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5181 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5182 else
5183   # Is the header compilable?
5184 echo "$as_me:$LINENO: checking pthread.h usability" >&5
5185 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
5186 cat >conftest.$ac_ext <<_ACEOF
5187 #line $LINENO "configure"
5188 #include "confdefs.h"
5189 $ac_includes_default
5190 #include <pthread.h>
5191 _ACEOF
5192 rm -f conftest.$ac_objext
5193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5194   (eval $ac_compile) 2>&5
5195   ac_status=$?
5196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197   (exit $ac_status); } &&
5198          { ac_try='test -s conftest.$ac_objext'
5199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200   (eval $ac_try) 2>&5
5201   ac_status=$?
5202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203   (exit $ac_status); }; }; then
5204   ac_header_compiler=yes
5205 else
5206   echo "$as_me: failed program was:" >&5
5207 cat conftest.$ac_ext >&5
5208 ac_header_compiler=no
5209 fi
5210 rm -f conftest.$ac_objext conftest.$ac_ext
5211 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5212 echo "${ECHO_T}$ac_header_compiler" >&6
5213
5214 # Is the header present?
5215 echo "$as_me:$LINENO: checking pthread.h presence" >&5
5216 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
5217 cat >conftest.$ac_ext <<_ACEOF
5218 #line $LINENO "configure"
5219 #include "confdefs.h"
5220 #include <pthread.h>
5221 _ACEOF
5222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5223   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5224   ac_status=$?
5225   egrep -v '^ *\+' conftest.er1 >conftest.err
5226   rm -f conftest.er1
5227   cat conftest.err >&5
5228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229   (exit $ac_status); } >/dev/null; then
5230   if test -s conftest.err; then
5231     ac_cpp_err=$ac_c_preproc_warn_flag
5232   else
5233     ac_cpp_err=
5234   fi
5235 else
5236   ac_cpp_err=yes
5237 fi
5238 if test -z "$ac_cpp_err"; then
5239   ac_header_preproc=yes
5240 else
5241   echo "$as_me: failed program was:" >&5
5242   cat conftest.$ac_ext >&5
5243   ac_header_preproc=no
5244 fi
5245 rm -f conftest.err conftest.$ac_ext
5246 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5247 echo "${ECHO_T}$ac_header_preproc" >&6
5248
5249 # So?  What about this header?
5250 case $ac_header_compiler:$ac_header_preproc in
5251   yes:no )
5252     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
5253 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5254     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
5255 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
5256   no:yes )
5257     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
5258 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
5259     { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
5260 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
5261     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
5262 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
5263 esac
5264 echo "$as_me:$LINENO: checking for pthread.h" >&5
5265 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5266 if test "${ac_cv_header_pthread_h+set}" = set; then
5267   echo $ECHO_N "(cached) $ECHO_C" >&6
5268 else
5269   ac_cv_header_pthread_h=$ac_header_preproc
5270 fi
5271 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5272 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5273
5274 fi
5275 if test $ac_cv_header_pthread_h = yes; then
5276   cat >>confdefs.h <<\_ACEOF
5277 #define HAVE_PTHREAD_H 1
5278 _ACEOF
5279
5280 fi
5281
5282
5283 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
5284 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
5285 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
5286   echo $ECHO_N "(cached) $ECHO_C" >&6
5287 else
5288   ac_check_lib_save_LIBS=$LIBS
5289 LIBS="-lposix4  $LIBS"
5290 cat >conftest.$ac_ext <<_ACEOF
5291 #line $LINENO "configure"
5292 #include "confdefs.h"
5293
5294 /* Override any gcc2 internal prototype to avoid an error.  */
5295 #ifdef __cplusplus
5296 extern "C"
5297 #endif
5298 /* We use char because int might match the return type of a gcc2
5299    builtin and then its argument prototype would still apply.  */
5300 char nanosleep ();
5301 #ifdef F77_DUMMY_MAIN
5302 #  ifdef __cplusplus
5303      extern "C"
5304 #  endif
5305    int F77_DUMMY_MAIN() { return 1; }
5306 #endif
5307 int
5308 main ()
5309 {
5310 nanosleep ();
5311   ;
5312   return 0;
5313 }
5314 _ACEOF
5315 rm -f conftest.$ac_objext conftest$ac_exeext
5316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5317   (eval $ac_link) 2>&5
5318   ac_status=$?
5319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320   (exit $ac_status); } &&
5321          { ac_try='test -s conftest$ac_exeext'
5322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5323   (eval $ac_try) 2>&5
5324   ac_status=$?
5325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326   (exit $ac_status); }; }; then
5327   ac_cv_lib_posix4_nanosleep=yes
5328 else
5329   echo "$as_me: failed program was:" >&5
5330 cat conftest.$ac_ext >&5
5331 ac_cv_lib_posix4_nanosleep=no
5332 fi
5333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5334 LIBS=$ac_check_lib_save_LIBS
5335 fi
5336 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
5337 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
5338 if test $ac_cv_lib_posix4_nanosleep = yes; then
5339   LIBS_PTHREADS="-lposix4"
5340 else
5341   LIBS_PTHREADS=""
5342 fi
5343
5344 echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
5345 echo $ECHO_N "checking for pthread_mutex_lock in -lpthread... $ECHO_C" >&6
5346 if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
5347   echo $ECHO_N "(cached) $ECHO_C" >&6
5348 else
5349   ac_check_lib_save_LIBS=$LIBS
5350 LIBS="-lpthread  $LIBS"
5351 cat >conftest.$ac_ext <<_ACEOF
5352 #line $LINENO "configure"
5353 #include "confdefs.h"
5354
5355 /* Override any gcc2 internal prototype to avoid an error.  */
5356 #ifdef __cplusplus
5357 extern "C"
5358 #endif
5359 /* We use char because int might match the return type of a gcc2
5360    builtin and then its argument prototype would still apply.  */
5361 char pthread_mutex_lock ();
5362 #ifdef F77_DUMMY_MAIN
5363 #  ifdef __cplusplus
5364      extern "C"
5365 #  endif
5366    int F77_DUMMY_MAIN() { return 1; }
5367 #endif
5368 int
5369 main ()
5370 {
5371 pthread_mutex_lock ();
5372   ;
5373   return 0;
5374 }
5375 _ACEOF
5376 rm -f conftest.$ac_objext conftest$ac_exeext
5377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5378   (eval $ac_link) 2>&5
5379   ac_status=$?
5380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381   (exit $ac_status); } &&
5382          { ac_try='test -s conftest$ac_exeext'
5383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384   (eval $ac_try) 2>&5
5385   ac_status=$?
5386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387   (exit $ac_status); }; }; then
5388   ac_cv_lib_pthread_pthread_mutex_lock=yes
5389 else
5390   echo "$as_me: failed program was:" >&5
5391 cat conftest.$ac_ext >&5
5392 ac_cv_lib_pthread_pthread_mutex_lock=no
5393 fi
5394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5395 LIBS=$ac_check_lib_save_LIBS
5396 fi
5397 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
5398 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_lock" >&6
5399 if test $ac_cv_lib_pthread_pthread_mutex_lock = yes; then
5400   LIBS_PTHREADS="-lpthread $LIBS_PTHREADS"
5401 fi
5402
5403 echo "$as_me:$LINENO: checking parameters for using pthreads" >&5
5404 echo $ECHO_N "checking parameters for using pthreads... $ECHO_C" >&6
5405 case $build_os in
5406   freebsd*)
5407     CFLAGS_PTHREADS="-pthread"
5408     CXXFLAGS_PTHREADS="-pthread"
5409     ;;
5410   *)
5411     ;;
5412 esac
5413 echo "$as_me:$LINENO: result: \"flags: $CFLAGS_PTHREADS\;libs: $LIBS_PTHREADS\"" >&5
5414 echo "${ECHO_T}\"flags: $CFLAGS_PTHREADS\;libs: $LIBS_PTHREADS\"" >&6
5415 threads_ok=yes
5416
5417
5418
5419
5420 if test -z "$enable_pthreads_done"
5421 then
5422  CFLAGS="$CFLAGS $CFLAGS_PTHREADS"
5423  CXXFLAGS="$CXXFLAGS $CXXFLAGS_PTHREADS"
5424  LIBS="$LIBS $LIBS_PTHREADS"
5425 fi
5426 enable_pthreads_done=yes
5427
5428
5429 echo
5430 echo ---------------------------------------------
5431 echo testing omniORB
5432 echo ---------------------------------------------
5433 echo
5434
5435
5436
5437 { echo "$as_me:$LINENO: checking for omniORB..." >&5
5438 echo "$as_me: checking for omniORB..." >&6;}
5439 omniORB_ok=yes
5440
5441 if test "x$PYTHON" = "x"
5442 then
5443
5444
5445 # Check whether --with-python or --without-python was given.
5446 if test "${with_python+set}" = set; then
5447   withval="$with_python"
5448   PYTHON="$withval/bin/python"
5449     echo "$as_me:$LINENO: result: \"select python distribution in $withval\"" >&5
5450 echo "${ECHO_T}\"select python distribution in $withval\"" >&6
5451
5452 else
5453
5454     # Extract the first word of "python", so it can be a program name with args.
5455 set dummy python; ac_word=$2
5456 echo "$as_me:$LINENO: checking for $ac_word" >&5
5457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5458 if test "${ac_cv_path_PYTHON+set}" = set; then
5459   echo $ECHO_N "(cached) $ECHO_C" >&6
5460 else
5461   case $PYTHON in
5462   [\\/]* | ?:[\\/]*)
5463   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5464   ;;
5465   *)
5466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 for as_dir in $PATH
5468 do
5469   IFS=$as_save_IFS
5470   test -z "$as_dir" && as_dir=.
5471   for ac_exec_ext in '' $ac_executable_extensions; do
5472   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5473     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5475     break 2
5476   fi
5477 done
5478 done
5479
5480   ;;
5481 esac
5482 fi
5483 PYTHON=$ac_cv_path_PYTHON
5484
5485 if test -n "$PYTHON"; then
5486   echo "$as_me:$LINENO: result: $PYTHON" >&5
5487 echo "${ECHO_T}$PYTHON" >&6
5488 else
5489   echo "$as_me:$LINENO: result: no" >&5
5490 echo "${ECHO_T}no" >&6
5491 fi
5492
5493
5494 fi;
5495
5496   { echo "$as_me:$LINENO: checking local Python configuration..." >&5
5497 echo "$as_me: checking local Python configuration..." >&6;}
5498   PYTHON_PREFIX=`echo $PYTHON | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
5499   PYTHON_PREFIX=`echo $PYTHON_PREFIX | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
5500   PYTHONHOME=$PYTHON_PREFIX
5501
5502
5503
5504
5505     PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[:3]"`
5506
5507
5508   PY_MAKEFILE=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config/Makefile
5509   if test ! -f "$PY_MAKEFILE"; then
5510      { { echo "$as_me:$LINENO: error: *** Couldn't find ${PY_MAKEFILE}.  Maybe you are
5511 *** missing the development portion of the python installation" >&5
5512 echo "$as_me: error: *** Couldn't find ${PY_MAKEFILE}.  Maybe you are
5513 *** missing the development portion of the python installation" >&2;}
5514    { (exit 1); exit 1; }; }
5515   fi
5516
5517
5518
5519
5520   PYTHON_INCLUDES=-I$PYTHON_PREFIX/include/python$PYTHON_VERSION
5521   PYTHON_LIBS="-L${PYTHON_PREFIX}/lib/python${PYTHON_VERSION}/config -lpython${PYTHON_VERSION}"
5522   PYTHON_LIB=$PYTHON_LIBS
5523   PYTHON_LIBA=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config/libpython$PYTHON_VERSION.a
5524
5525
5526
5527   PYTHON_PLATFORM=`$PYTHON -c "import sys; print sys.platform"`
5528
5529
5530
5531 # Check whether --with-python-site or --without-python-site was given.
5532 if test "${with_python_site+set}" = set; then
5533   withval="$with_python_site"
5534
5535
5536 PYTHON_SITE="$withval"
5537 python_site_given=yes
5538 else
5539   PYTHON_SITE=$prefix"/lib/python"$PYTHON_VERSION/site-packages
5540 python_site_given=no
5541 fi;
5542
5543
5544   PYTHON_SITE_PACKAGE=$PYTHON_SITE/$PACKAGE
5545
5546
5547
5548
5549
5550 # Check whether --with-python-site-exec or --without-python-site-exec was given.
5551 if test "${with_python_site_exec+set}" = set; then
5552   withval="$with_python_site_exec"
5553   PYTHON_SITE_EXEC="$withval"
5554 else
5555   if test "$python_site_given" = yes; then
5556   PYTHON_SITE_EXEC=$PYTHON_SITE
5557 else
5558   PYTHON_SITE_EXEC=$PYTHON_EXEC_PREFIX"/lib/python"$PYTHON_VERSION/site-packages
5559 fi
5560 fi;
5561
5562     PYTHON_SITE_INSTALL=$PYTHON_SITE_PACKAGE
5563
5564
5565
5566   pythondir=$PYTHON_PREFIX"/lib/python"$PYTHON_VERSION/
5567
5568
5569  echo "$as_me:$LINENO: checking if we need libdb" >&5
5570 echo $ECHO_N "checking if we need libdb... $ECHO_C" >&6
5571  PY_NEEDOPENDB=`nm $PYTHON_LIBA | grep dbopen | grep U`
5572   if test "x$PY_NEEDOPENDB" != "x"; then
5573      PYTHON_LIBS="$PYTHON_LIBS -ldb"
5574      echo "$as_me:$LINENO: result: yes" >&5
5575 echo "${ECHO_T}yes" >&6
5576   else
5577      echo "$as_me:$LINENO: result: no" >&5
5578 echo "${ECHO_T}no" >&6
5579   fi
5580
5581  echo "$as_me:$LINENO: checking if we need libdl" >&5
5582 echo $ECHO_N "checking if we need libdl... $ECHO_C" >&6
5583   PY_NEEDOPENDL=`nm $PYTHON_LIBA | grep dlopen | grep U`
5584   if test "x$PY_NEEDOPENDL" != "x"; then
5585      PYTHON_LIBS="$PYTHON_LIBS -ldl"
5586      echo "$as_me:$LINENO: result: yes" >&5
5587 echo "${ECHO_T}yes" >&6
5588   else
5589      echo "$as_me:$LINENO: result: no" >&5
5590 echo "${ECHO_T}no" >&6
5591   fi
5592
5593  echo "$as_me:$LINENO: checking if we need libutil" >&5
5594 echo $ECHO_N "checking if we need libutil... $ECHO_C" >&6
5595   PY_NEEDOPENPTY=`nm $PYTHON_LIBA | grep openpty | grep U`
5596   if test "x$PY_NEEDOPENPTY" != "x"; then
5597      PYTHON_LIBS="$PYTHON_LIBS -lutil"
5598      echo "$as_me:$LINENO: result: yes" >&5
5599 echo "${ECHO_T}yes" >&6
5600   else
5601      echo "$as_me:$LINENO: result: no" >&5
5602 echo "${ECHO_T}no" >&6
5603   fi
5604
5605  echo "$as_me:$LINENO: checking if we need tcltk" >&5
5606 echo $ECHO_N "checking if we need tcltk... $ECHO_C" >&6
5607   PY_NEEDTCLTK=`nm $PYTHON_LIBA | grep Tcl_Init | grep U`
5608   if test "x$PY_NEEDTCLTK" != "x"; then
5609      PYTHON_LIBS="$PYTHON_LIBS -ltcl -ltk"
5610      echo "$as_me:$LINENO: result: yes" >&5
5611 echo "${ECHO_T}yes" >&6
5612   else
5613      echo "$as_me:$LINENO: result: no" >&5
5614 echo "${ECHO_T}no" >&6
5615   fi
5616
5617   python_ok=yes
5618   echo "$as_me:$LINENO: result: looks good" >&5
5619 echo "${ECHO_T}looks good" >&6
5620 fi
5621
5622
5623
5624 ac_ext=cc
5625 ac_cpp='$CXXCPP $CPPFLAGS'
5626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5629
5630
5631 # Extract the first word of "omniidl", so it can be a program name with args.
5632 set dummy omniidl; ac_word=$2
5633 echo "$as_me:$LINENO: checking for $ac_word" >&5
5634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5635 if test "${ac_cv_path_OMNIORB_IDL+set}" = set; then
5636   echo $ECHO_N "(cached) $ECHO_C" >&6
5637 else
5638   case $OMNIORB_IDL in
5639   [\\/]* | ?:[\\/]*)
5640   ac_cv_path_OMNIORB_IDL="$OMNIORB_IDL" # Let the user override the test with a path.
5641   ;;
5642   *)
5643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 for as_dir in $PATH
5645 do
5646   IFS=$as_save_IFS
5647   test -z "$as_dir" && as_dir=.
5648   for ac_exec_ext in '' $ac_executable_extensions; do
5649   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5650     ac_cv_path_OMNIORB_IDL="$as_dir/$ac_word$ac_exec_ext"
5651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5652     break 2
5653   fi
5654 done
5655 done
5656
5657   ;;
5658 esac
5659 fi
5660 OMNIORB_IDL=$ac_cv_path_OMNIORB_IDL
5661
5662 if test -n "$OMNIORB_IDL"; then
5663   echo "$as_me:$LINENO: result: $OMNIORB_IDL" >&5
5664 echo "${ECHO_T}$OMNIORB_IDL" >&6
5665 else
5666   echo "$as_me:$LINENO: result: no" >&5
5667 echo "${ECHO_T}no" >&6
5668 fi
5669
5670 if test "xOMNIORB_IDL" = "x"
5671 then
5672   omniORB_ok=no
5673   echo "$as_me:$LINENO: result: omniORB binaries not in PATH variable" >&5
5674 echo "${ECHO_T}omniORB binaries not in PATH variable" >&6
5675 else
5676   omniORB_ok=yes
5677 fi
5678
5679 if  test "x$omniORB_ok" = "xyes"
5680 then
5681
5682
5683   OMNIORB_BIN=`echo ${OMNIORB_IDL} | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
5684   OMNIORB_LIB=`echo ${OMNIORB_BIN} | sed -e "s,bin,lib,"`
5685
5686   OMNIORB_ROOT=`echo ${OMNIORB_BIN}  | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
5687   OMNIORB_ROOT=`echo ${OMNIORB_ROOT} | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
5688
5689
5690   OMNIORB_INCLUDES="-I$OMNIORB_ROOT/include -I$OMNIORB_ROOT/include/omniORB3 -I$OMNIORB_ROOT/include/COS"
5691
5692
5693
5694
5695
5696 if test -z "$enable_pthreads_done"
5697 then
5698  CFLAGS="$CFLAGS $CFLAGS_PTHREADS"
5699  CXXFLAGS="$CXXFLAGS $CXXFLAGS_PTHREADS"
5700  LIBS="$LIBS $LIBS_PTHREADS"
5701 fi
5702 enable_pthreads_done=yes
5703
5704
5705   OMNIORB_CXXFLAGS=
5706   case $build_cpu in
5707     sparc*)
5708       cat >>confdefs.h <<\_ACEOF
5709 #define __sparc__ 1
5710 _ACEOF
5711
5712       OMNIORB_CXXFLAGS="$OMNIORB_CXXFLAGS -D__sparc__"
5713       ;;
5714    *86*)
5715       cat >>confdefs.h <<\_ACEOF
5716 #define __x86__ 1
5717 _ACEOF
5718
5719       OMNIORB_CXXFLAGS="$OMNIORB_CXXFLAGS -D__x86__"
5720       ;;
5721   esac
5722   case $build_os in
5723     solaris*)
5724       cat >>confdefs.h <<\_ACEOF
5725 #define __sunos__ 1
5726 _ACEOF
5727
5728       __OSVERSION__=5
5729       cat >>confdefs.h <<\_ACEOF
5730 #define __OSVERSION__ 1
5731 _ACEOF
5732
5733       OMNIORB_CXXFLAGS="$OMNIORB_CXXFLAGS -D__sunos__"
5734       ;;
5735    linux*)
5736       cat >>confdefs.h <<\_ACEOF
5737 #define __linux__ 1
5738 _ACEOF
5739
5740       __OSVERSION__=2
5741       cat >>confdefs.h <<\_ACEOF
5742 #define __OSVERSION__ 1
5743 _ACEOF
5744
5745       OMNIORB_CXXFLAGS="$OMNIORB_CXXFLAGS -D__linux__"
5746       ;;
5747   esac
5748
5749
5750   CPPFLAGS_old=$CPPFLAGS
5751   CPPFLAGS="$CPPFLAGS $OMNIORB_CXXFLAGS $OMNIORB_INCLUDES"
5752
5753   ac_ext=cc
5754 ac_cpp='$CXXCPP $CPPFLAGS'
5755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5758
5759   if test "${ac_cv_header_CORBA_h+set}" = set; then
5760   echo "$as_me:$LINENO: checking for CORBA.h" >&5
5761 echo $ECHO_N "checking for CORBA.h... $ECHO_C" >&6
5762 if test "${ac_cv_header_CORBA_h+set}" = set; then
5763   echo $ECHO_N "(cached) $ECHO_C" >&6
5764 fi
5765 echo "$as_me:$LINENO: result: $ac_cv_header_CORBA_h" >&5
5766 echo "${ECHO_T}$ac_cv_header_CORBA_h" >&6
5767 else
5768   # Is the header compilable?
5769 echo "$as_me:$LINENO: checking CORBA.h usability" >&5
5770 echo $ECHO_N "checking CORBA.h usability... $ECHO_C" >&6
5771 cat >conftest.$ac_ext <<_ACEOF
5772 #line $LINENO "configure"
5773 #include "confdefs.h"
5774 $ac_includes_default
5775 #include <CORBA.h>
5776 _ACEOF
5777 rm -f conftest.$ac_objext
5778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5779   (eval $ac_compile) 2>&5
5780   ac_status=$?
5781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782   (exit $ac_status); } &&
5783          { ac_try='test -s conftest.$ac_objext'
5784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5785   (eval $ac_try) 2>&5
5786   ac_status=$?
5787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788   (exit $ac_status); }; }; then
5789   ac_header_compiler=yes
5790 else
5791   echo "$as_me: failed program was:" >&5
5792 cat conftest.$ac_ext >&5
5793 ac_header_compiler=no
5794 fi
5795 rm -f conftest.$ac_objext conftest.$ac_ext
5796 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5797 echo "${ECHO_T}$ac_header_compiler" >&6
5798
5799 # Is the header present?
5800 echo "$as_me:$LINENO: checking CORBA.h presence" >&5
5801 echo $ECHO_N "checking CORBA.h presence... $ECHO_C" >&6
5802 cat >conftest.$ac_ext <<_ACEOF
5803 #line $LINENO "configure"
5804 #include "confdefs.h"
5805 #include <CORBA.h>
5806 _ACEOF
5807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5808   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5809   ac_status=$?
5810   egrep -v '^ *\+' conftest.er1 >conftest.err
5811   rm -f conftest.er1
5812   cat conftest.err >&5
5813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814   (exit $ac_status); } >/dev/null; then
5815   if test -s conftest.err; then
5816     ac_cpp_err=$ac_cxx_preproc_warn_flag
5817   else
5818     ac_cpp_err=
5819   fi
5820 else
5821   ac_cpp_err=yes
5822 fi
5823 if test -z "$ac_cpp_err"; then
5824   ac_header_preproc=yes
5825 else
5826   echo "$as_me: failed program was:" >&5
5827   cat conftest.$ac_ext >&5
5828   ac_header_preproc=no
5829 fi
5830 rm -f conftest.err conftest.$ac_ext
5831 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5832 echo "${ECHO_T}$ac_header_preproc" >&6
5833
5834 # So?  What about this header?
5835 case $ac_header_compiler:$ac_header_preproc in
5836   yes:no )
5837     { echo "$as_me:$LINENO: WARNING: CORBA.h: accepted by the compiler, rejected by the preprocessor!" >&5
5838 echo "$as_me: WARNING: CORBA.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5839     { echo "$as_me:$LINENO: WARNING: CORBA.h: proceeding with the preprocessor's result" >&5
5840 echo "$as_me: WARNING: CORBA.h: proceeding with the preprocessor's result" >&2;};;
5841   no:yes )
5842     { echo "$as_me:$LINENO: WARNING: CORBA.h: present but cannot be compiled" >&5
5843 echo "$as_me: WARNING: CORBA.h: present but cannot be compiled" >&2;}
5844     { echo "$as_me:$LINENO: WARNING: CORBA.h: check for missing prerequisite headers?" >&5
5845 echo "$as_me: WARNING: CORBA.h: check for missing prerequisite headers?" >&2;}
5846     { echo "$as_me:$LINENO: WARNING: CORBA.h: proceeding with the preprocessor's result" >&5
5847 echo "$as_me: WARNING: CORBA.h: proceeding with the preprocessor's result" >&2;};;
5848 esac
5849 echo "$as_me:$LINENO: checking for CORBA.h" >&5
5850 echo $ECHO_N "checking for CORBA.h... $ECHO_C" >&6
5851 if test "${ac_cv_header_CORBA_h+set}" = set; then
5852   echo $ECHO_N "(cached) $ECHO_C" >&6
5853 else
5854   ac_cv_header_CORBA_h=$ac_header_preproc
5855 fi
5856 echo "$as_me:$LINENO: result: $ac_cv_header_CORBA_h" >&5
5857 echo "${ECHO_T}$ac_cv_header_CORBA_h" >&6
5858
5859 fi
5860 if test $ac_cv_header_CORBA_h = yes; then
5861   omniORB_ok="yes"
5862 else
5863   omniORB_ok="no"
5864 fi
5865
5866
5867
5868   CPPFLAGS=$CPPFLAGS_old
5869
5870 fi
5871
5872
5873 if test "x$omniORB_ok" = "xyes"
5874 then
5875   OMNIORB_LDFLAGS="-L$OMNIORB_LIB"
5876
5877   LIBS_old=$LIBS
5878   LIBS="$LIBS $OMNIORB_LDFLAGS -lomnithread"
5879
5880   CXXFLAGS_old=$CXXFLAGS
5881   CXXFLAGS="$CXXFLAGS $OMNIORB_CXXFLAGS $OMNIORB_INCLUDES"
5882
5883   echo "$as_me:$LINENO: checking whether we can link with omnithreads" >&5
5884 echo $ECHO_N "checking whether we can link with omnithreads... $ECHO_C" >&6
5885   if test "${salome_cv_lib_omnithreads+set}" = set; then
5886   echo $ECHO_N "(cached) $ECHO_C" >&6
5887 else
5888
5889     cat >conftest.$ac_ext <<_ACEOF
5890 #line $LINENO "configure"
5891 #include "confdefs.h"
5892 #include <omnithread.h>
5893
5894 #ifdef F77_DUMMY_MAIN
5895 #  ifdef __cplusplus
5896      extern "C"
5897 #  endif
5898    int F77_DUMMY_MAIN() { return 1; }
5899 #endif
5900 int
5901 main ()
5902 {
5903 omni_mutex my_mutex
5904   ;
5905   return 0;
5906 }
5907 _ACEOF
5908 rm -f conftest.$ac_objext conftest$ac_exeext
5909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5910   (eval $ac_link) 2>&5
5911   ac_status=$?
5912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913   (exit $ac_status); } &&
5914          { ac_try='test -s conftest$ac_exeext'
5915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916   (eval $ac_try) 2>&5
5917   ac_status=$?
5918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919   (exit $ac_status); }; }; then
5920   eval "salome_cv_lib_omnithreads=yes"
5921 else
5922   echo "$as_me: failed program was:" >&5
5923 cat conftest.$ac_ext >&5
5924 eval "salome_cv_lib_omnithreads=no"
5925 fi
5926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5927
5928 fi
5929
5930
5931   omniORB_ok="$salome_cv_lib_omnithreads"
5932   if  test "x$omniORB_ok" = "xno"
5933   then
5934     echo "$as_me:$LINENO: result: omnithreads not found" >&5
5935 echo "${ECHO_T}omnithreads not found" >&6
5936   else
5937     echo "$as_me:$LINENO: result: yes" >&5
5938 echo "${ECHO_T}yes" >&6
5939   fi
5940
5941   LIBS=$LIBS_old
5942   CXXFLAGS=$CXXFLAGS_old
5943 fi
5944
5945
5946 if test "x$omniORB_ok" = "xyes"
5947 then
5948
5949   echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5950 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
5951 if test "${ac_cv_lib_socket_socket+set}" = set; then
5952   echo $ECHO_N "(cached) $ECHO_C" >&6
5953 else
5954   ac_check_lib_save_LIBS=$LIBS
5955 LIBS="-lsocket  $LIBS"
5956 cat >conftest.$ac_ext <<_ACEOF
5957 #line $LINENO "configure"
5958 #include "confdefs.h"
5959
5960 /* Override any gcc2 internal prototype to avoid an error.  */
5961 #ifdef __cplusplus
5962 extern "C"
5963 #endif
5964 /* We use char because int might match the return type of a gcc2
5965    builtin and then its argument prototype would still apply.  */
5966 char socket ();
5967 #ifdef F77_DUMMY_MAIN
5968 #  ifdef __cplusplus
5969      extern "C"
5970 #  endif
5971    int F77_DUMMY_MAIN() { return 1; }
5972 #endif
5973 int
5974 main ()
5975 {
5976 socket ();
5977   ;
5978   return 0;
5979 }
5980 _ACEOF
5981 rm -f conftest.$ac_objext conftest$ac_exeext
5982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5983   (eval $ac_link) 2>&5
5984   ac_status=$?
5985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986   (exit $ac_status); } &&
5987          { ac_try='test -s conftest$ac_exeext'
5988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5989   (eval $ac_try) 2>&5
5990   ac_status=$?
5991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992   (exit $ac_status); }; }; then
5993   ac_cv_lib_socket_socket=yes
5994 else
5995   echo "$as_me: failed program was:" >&5
5996 cat conftest.$ac_ext >&5
5997 ac_cv_lib_socket_socket=no
5998 fi
5999 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6000 LIBS=$ac_check_lib_save_LIBS
6001 fi
6002 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6003 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
6004 if test $ac_cv_lib_socket_socket = yes; then
6005   LIBS="-lsocket $LIBS"
6006 fi
6007
6008   echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6009 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6010 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6011   echo $ECHO_N "(cached) $ECHO_C" >&6
6012 else
6013   ac_check_lib_save_LIBS=$LIBS
6014 LIBS="-lnsl  $LIBS"
6015 cat >conftest.$ac_ext <<_ACEOF
6016 #line $LINENO "configure"
6017 #include "confdefs.h"
6018
6019 /* Override any gcc2 internal prototype to avoid an error.  */
6020 #ifdef __cplusplus
6021 extern "C"
6022 #endif
6023 /* We use char because int might match the return type of a gcc2
6024    builtin and then its argument prototype would still apply.  */
6025 char gethostbyname ();
6026 #ifdef F77_DUMMY_MAIN
6027 #  ifdef __cplusplus
6028      extern "C"
6029 #  endif
6030    int F77_DUMMY_MAIN() { return 1; }
6031 #endif
6032 int
6033 main ()
6034 {
6035 gethostbyname ();
6036   ;
6037   return 0;
6038 }
6039 _ACEOF
6040 rm -f conftest.$ac_objext conftest$ac_exeext
6041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6042   (eval $ac_link) 2>&5
6043   ac_status=$?
6044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045   (exit $ac_status); } &&
6046          { ac_try='test -s conftest$ac_exeext'
6047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048   (eval $ac_try) 2>&5
6049   ac_status=$?
6050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051   (exit $ac_status); }; }; then
6052   ac_cv_lib_nsl_gethostbyname=yes
6053 else
6054   echo "$as_me: failed program was:" >&5
6055 cat conftest.$ac_ext >&5
6056 ac_cv_lib_nsl_gethostbyname=no
6057 fi
6058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6059 LIBS=$ac_check_lib_save_LIBS
6060 fi
6061 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6062 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6063 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6064   LIBS="-lnsl $LIBS"
6065 fi
6066
6067
6068   LIBS_old=$LIBS
6069   OMNIORB_LIBS="$OMNIORB_LDFLAGS -lomniORB3 -ltcpwrapGK -lomniDynamic3 -lomnithread -lCOS3 -lCOSDynamic3"
6070
6071
6072   LIBS="$OMNIORB_LIBS $LIBS"
6073   CXXFLAGS_old=$CXXFLAGS
6074   CXXFLAGS="$CXXFLAGS $OMNIORB_CXXFLAGS $OMNIORB_INCLUDES"
6075
6076   echo "$as_me:$LINENO: checking whether we can link with omniORB3" >&5
6077 echo $ECHO_N "checking whether we can link with omniORB3... $ECHO_C" >&6
6078   if test "${salome_cv_lib_omniorb3+set}" = set; then
6079   echo $ECHO_N "(cached) $ECHO_C" >&6
6080 else
6081
6082     cat >conftest.$ac_ext <<_ACEOF
6083 #line $LINENO "configure"
6084 #include "confdefs.h"
6085 #include <CORBA.h>
6086
6087 #ifdef F77_DUMMY_MAIN
6088 #  ifdef __cplusplus
6089      extern "C"
6090 #  endif
6091    int F77_DUMMY_MAIN() { return 1; }
6092 #endif
6093 int
6094 main ()
6095 {
6096 CORBA::ORB_var orb
6097   ;
6098   return 0;
6099 }
6100 _ACEOF
6101 rm -f conftest.$ac_objext conftest$ac_exeext
6102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6103   (eval $ac_link) 2>&5
6104   ac_status=$?
6105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106   (exit $ac_status); } &&
6107          { ac_try='test -s conftest$ac_exeext'
6108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6109   (eval $ac_try) 2>&5
6110   ac_status=$?
6111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112   (exit $ac_status); }; }; then
6113   eval "salome_cv_lib_omniorb3=yes"
6114 else
6115   echo "$as_me: failed program was:" >&5
6116 cat conftest.$ac_ext >&5
6117 eval "salome_cv_lib_omniorb3=no"
6118 fi
6119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6120
6121 fi
6122
6123   omniORB_ok="$salome_cv_lib_omniorb3"
6124
6125   omniORB_ok=yes
6126   if test "x$omniORB_ok" = "xno"
6127   then
6128     echo "$as_me:$LINENO: result: omniORB library linking failed" >&5
6129 echo "${ECHO_T}omniORB library linking failed" >&6
6130     omniORB_ok=no
6131   else
6132     echo "$as_me:$LINENO: result: yes" >&5
6133 echo "${ECHO_T}yes" >&6
6134   fi
6135   LIBS="$LIBS_old"
6136   CXXFLAGS=$CXXFLAGS_old
6137 fi
6138
6139
6140 if test "x$omniORB_ok" = "xyes"
6141 then
6142
6143   OMNIORB_IDLCXXFLAGS="-I$OMNIORB_ROOT/idl"
6144   OMNIORB_IDLPYFLAGS="-bpython -I$OMNIORB_ROOT/idl"
6145
6146
6147
6148   OMNIORB_IDL_CLN_H=.hh
6149   OMNIORB_IDL_CLN_CXX=SK.cc
6150   OMNIORB_IDL_CLN_OBJ=SK.o
6151
6152
6153
6154
6155   OMNIORB_IDL_SRV_H=.hh
6156   OMNIORB_IDL_SRV_CXX=SK.cc
6157   OMNIORB_IDL_SRV_OBJ=SK.o
6158
6159
6160
6161
6162   OMNIORB_IDL_TIE_H=
6163   OMNIORB_IDL_TIE_CXX=
6164
6165
6166
6167   cat >>confdefs.h <<\_ACEOF
6168 #define OMNIORB 1
6169 _ACEOF
6170
6171
6172   CORBA_HAVE_POA=1
6173   cat >>confdefs.h <<\_ACEOF
6174 #define CORBA_HAVE_POA 1
6175 _ACEOF
6176
6177
6178   CORBA_ORB_INIT_HAVE_3_ARGS=1
6179   cat >>confdefs.h <<\_ACEOF
6180 #define CORBA_ORB_INIT_HAVE_3_ARGS 1
6181 _ACEOF
6182
6183   CORBA_ORB_INIT_THIRD_ARG='"omniORB3"'
6184   cat >>confdefs.h <<\_ACEOF
6185 #define CORBA_ORB_INIT_THIRD_ARG "omniORB3"
6186 _ACEOF
6187
6188
6189 fi
6190
6191 omniORBpy_ok=no
6192 if  test "x$omniORB_ok" = "xyes"
6193 then
6194   echo "$as_me:$LINENO: checking omniORBpy (CORBA.py file available)" >&5
6195 echo $ECHO_N "checking omniORBpy (CORBA.py file available)... $ECHO_C" >&6
6196   if test -f ${OMNIORB_ROOT}/lib/python/CORBA.py
6197   then
6198     omniORBpy_ok=yes
6199     PYTHONPATH=${OMNIORB_ROOT}/lib/python:${OMNIORB_LIB}:${PYTHON_PREFIX}/lib/python${PYTHON_VERSION}:${PYTHONPATH}
6200
6201     echo "$as_me:$LINENO: result: yes" >&5
6202 echo "${ECHO_T}yes" >&6
6203   fi
6204 fi
6205
6206 ac_ext=c
6207 ac_cpp='$CPP $CPPFLAGS'
6208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6211
6212
6213 echo "$as_me:$LINENO: result: for omniORBpy: $omniORBpy_ok" >&5
6214 echo "${ECHO_T}for omniORBpy: $omniORBpy_ok" >&6
6215 echo "$as_me:$LINENO: result: for omniORB: $omniORB_ok" >&5
6216 echo "${ECHO_T}for omniORB: $omniORB_ok" >&6
6217
6218 # Save cache
6219 cat >confcache <<\_ACEOF
6220 # This file is a shell script that caches the results of configure
6221 # tests run on this system so they can be shared between configure
6222 # scripts and configure runs, see configure's option --config-cache.
6223 # It is not useful on other systems.  If it contains results you don't
6224 # want to keep, you may remove or edit it.
6225 #
6226 # config.status only pays attention to the cache file if you give it
6227 # the --recheck option to rerun configure.
6228 #
6229 # `ac_cv_env_foo' variables (set or unset) will be overriden when
6230 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6231 # following values.
6232
6233 _ACEOF
6234
6235 # The following way of writing the cache mishandles newlines in values,
6236 # but we know of no workaround that is simple, portable, and efficient.
6237 # So, don't put newlines in cache variables' values.
6238 # Ultrix sh set writes to stderr and can't be redirected directly,
6239 # and sets the high bit in the cache file unless we assign to the vars.
6240 {
6241   (set) 2>&1 |
6242     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6243     *ac_space=\ *)
6244       # `set' does not quote correctly, so add quotes (double-quote
6245       # substitution turns \\\\ into \\, and sed turns \\ into \).
6246       sed -n \
6247         "s/'/'\\\\''/g;
6248           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6249       ;;
6250     *)
6251       # `set' quotes correctly as required by POSIX, so do not add quotes.
6252       sed -n \
6253         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6254       ;;
6255     esac;
6256 } |
6257   sed '
6258      t clear
6259      : clear
6260      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6261      t end
6262      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6263      : end' >>confcache
6264 if cmp -s $cache_file confcache; then :; else
6265   if test -w $cache_file; then
6266     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6267     cat confcache >$cache_file
6268   else
6269     echo "not updating unwritable cache $cache_file"
6270   fi
6271 fi
6272 rm -f confcache
6273
6274
6275
6276
6277
6278 echo
6279 echo ---------------------------------------------
6280 echo default ORB : omniORB
6281 echo ---------------------------------------------
6282 echo
6283
6284 DEFAULT_ORB=omniORB
6285
6286
6287 if test x"$DEFAULT_ORB" = x"omniORB"
6288 then
6289
6290   #  Contient le nom de l'ORB
6291   ORB=omniorb
6292
6293   echo "$as_me:$LINENO: result: default orb : omniORB" >&5
6294 echo "${ECHO_T}default orb : omniORB" >&6
6295   IDL=$OMNIORB_IDL
6296
6297
6298   CORBA_ROOT=$OMNIORB_ROOT
6299   CORBA_INCLUDES=$OMNIORB_INCLUDES
6300   CORBA_CXXFLAGS=$OMNIORB_CXXFLAGS
6301   CORBA_LIBS=$OMNIORB_LIBS
6302   IDLCXXFLAGS=$OMNIORB_IDLCXXFLAGS
6303   IDLPYFLAGS=$OMNIORB_IDLPYFLAGS
6304
6305
6306
6307
6308
6309
6310
6311
6312   IDL_CLN_H=$OMNIORB_IDL_CLN_H
6313   IDL_CLN_CXX=$OMNIORB_IDL_CLN_CXX
6314   IDL_CLN_OBJ=$OMNIORB_IDL_CLN_OBJ
6315
6316
6317
6318
6319
6320   IDL_SRV_H=$OMNIORB_IDL_SRV_H
6321   IDL_SRV_CXX=$OMNIORB_IDL_SRV_CXX
6322   IDL_SRV_OBJ=$OMNIORB_IDL_SRV_OBJ
6323
6324
6325
6326
6327
6328 else
6329     echo "$as_me:$LINENO: result: $DEFAULT_ORB unknown orb" >&5
6330 echo "${ECHO_T}$DEFAULT_ORB unknown orb" >&6
6331
6332 fi
6333
6334
6335
6336
6337 corba=make_$ORB
6338 CORBA=adm_local/unix/$corba
6339
6340 echo
6341 echo ---------------------------------------------
6342 echo testing openGL
6343 echo ---------------------------------------------
6344 echo
6345
6346
6347
6348 # Check whether --with-opengl or --without-opengl was given.
6349 if test "${with_opengl+set}" = set; then
6350   withval="$with_opengl"
6351
6352       opengl_dir="$withval"
6353       local_opengl=yes
6354
6355 else
6356
6357       dirs="/usr/lib /usr/local/lib /opt/graphics/OpenGL/lib /usr/openwin/lib /usr/X11R6/lib"
6358
6359 fi;
6360 { echo "$as_me:$LINENO: checking for OpenGL..." >&5
6361 echo "$as_me: checking for OpenGL..." >&6;}
6362
6363
6364
6365
6366 OGL_INCLUDES=""
6367 OGL_LIBS=""
6368
6369 OpenGL_ok=no
6370
6371
6372 # by default
6373
6374 if test "x$local_opengl" = "xyes" ; then
6375    if test -f "${opengl_dir}/include/GL/gl.h" ; then
6376       OpenGL_ok=yes
6377       OGL_INCLUDES="-I${opengl_dir}/include"
6378       OGL_LIBS="-L${opengl_dir}/lib"
6379       echo "$as_me:$LINENO: result: select OpenGL distribution in ${opengl_dir}" >&5
6380 echo "${ECHO_T}select OpenGL distribution in ${opengl_dir}" >&6
6381    else
6382       echo "$as_me:$LINENO: result: no gl.h header file in ${opengl_dir}/include/GL" >&5
6383 echo "${ECHO_T}no gl.h header file in ${opengl_dir}/include/GL" >&6
6384    fi
6385 fi
6386
6387 if  test "x$OpenGL_ok" = "xno"
6388 then
6389
6390 for ac_header in GL/gl.h
6391 do
6392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6394   echo "$as_me:$LINENO: checking for $ac_header" >&5
6395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6397   echo $ECHO_N "(cached) $ECHO_C" >&6
6398 fi
6399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6401 else
6402   # Is the header compilable?
6403 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6405 cat >conftest.$ac_ext <<_ACEOF
6406 #line $LINENO "configure"
6407 #include "confdefs.h"
6408 $ac_includes_default
6409 #include <$ac_header>
6410 _ACEOF
6411 rm -f conftest.$ac_objext
6412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6413   (eval $ac_compile) 2>&5
6414   ac_status=$?
6415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416   (exit $ac_status); } &&
6417          { ac_try='test -s conftest.$ac_objext'
6418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419   (eval $ac_try) 2>&5
6420   ac_status=$?
6421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422   (exit $ac_status); }; }; then
6423   ac_header_compiler=yes
6424 else
6425   echo "$as_me: failed program was:" >&5
6426 cat conftest.$ac_ext >&5
6427 ac_header_compiler=no
6428 fi
6429 rm -f conftest.$ac_objext conftest.$ac_ext
6430 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6431 echo "${ECHO_T}$ac_header_compiler" >&6
6432
6433 # Is the header present?
6434 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6436 cat >conftest.$ac_ext <<_ACEOF
6437 #line $LINENO "configure"
6438 #include "confdefs.h"
6439 #include <$ac_header>
6440 _ACEOF
6441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6442   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6443   ac_status=$?
6444   egrep -v '^ *\+' conftest.er1 >conftest.err
6445   rm -f conftest.er1
6446   cat conftest.err >&5
6447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448   (exit $ac_status); } >/dev/null; then
6449   if test -s conftest.err; then
6450     ac_cpp_err=$ac_c_preproc_warn_flag
6451   else
6452     ac_cpp_err=
6453   fi
6454 else
6455   ac_cpp_err=yes
6456 fi
6457 if test -z "$ac_cpp_err"; then
6458   ac_header_preproc=yes
6459 else
6460   echo "$as_me: failed program was:" >&5
6461   cat conftest.$ac_ext >&5
6462   ac_header_preproc=no
6463 fi
6464 rm -f conftest.err conftest.$ac_ext
6465 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6466 echo "${ECHO_T}$ac_header_preproc" >&6
6467
6468 # So?  What about this header?
6469 case $ac_header_compiler:$ac_header_preproc in
6470   yes:no )
6471     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6473     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6475   no:yes )
6476     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6477 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6478     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6479 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6480     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6482 esac
6483 echo "$as_me:$LINENO: checking for $ac_header" >&5
6484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6486   echo $ECHO_N "(cached) $ECHO_C" >&6
6487 else
6488   eval "$as_ac_Header=$ac_header_preproc"
6489 fi
6490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6492
6493 fi
6494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6495   cat >>confdefs.h <<_ACEOF
6496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6497 _ACEOF
6498  OpenGL_ok=yes
6499 fi
6500
6501 done
6502
6503 fi
6504
6505 if  test "x$OpenGL_ok" = "xno"
6506 then
6507 # under SunOS ?
6508
6509 for ac_header in /usr/openwin/share/include/GL/glxmd.h
6510 do
6511 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6513   echo "$as_me:$LINENO: checking for $ac_header" >&5
6514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6516   echo $ECHO_N "(cached) $ECHO_C" >&6
6517 fi
6518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6520 else
6521   # Is the header compilable?
6522 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6523 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6524 cat >conftest.$ac_ext <<_ACEOF
6525 #line $LINENO "configure"
6526 #include "confdefs.h"
6527 $ac_includes_default
6528 #include <$ac_header>
6529 _ACEOF
6530 rm -f conftest.$ac_objext
6531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6532   (eval $ac_compile) 2>&5
6533   ac_status=$?
6534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535   (exit $ac_status); } &&
6536          { ac_try='test -s conftest.$ac_objext'
6537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538   (eval $ac_try) 2>&5
6539   ac_status=$?
6540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541   (exit $ac_status); }; }; then
6542   ac_header_compiler=yes
6543 else
6544   echo "$as_me: failed program was:" >&5
6545 cat conftest.$ac_ext >&5
6546 ac_header_compiler=no
6547 fi
6548 rm -f conftest.$ac_objext conftest.$ac_ext
6549 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6550 echo "${ECHO_T}$ac_header_compiler" >&6
6551
6552 # Is the header present?
6553 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6555 cat >conftest.$ac_ext <<_ACEOF
6556 #line $LINENO "configure"
6557 #include "confdefs.h"
6558 #include <$ac_header>
6559 _ACEOF
6560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6561   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6562   ac_status=$?
6563   egrep -v '^ *\+' conftest.er1 >conftest.err
6564   rm -f conftest.er1
6565   cat conftest.err >&5
6566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567   (exit $ac_status); } >/dev/null; then
6568   if test -s conftest.err; then
6569     ac_cpp_err=$ac_c_preproc_warn_flag
6570   else
6571     ac_cpp_err=
6572   fi
6573 else
6574   ac_cpp_err=yes
6575 fi
6576 if test -z "$ac_cpp_err"; then
6577   ac_header_preproc=yes
6578 else
6579   echo "$as_me: failed program was:" >&5
6580   cat conftest.$ac_ext >&5
6581   ac_header_preproc=no
6582 fi
6583 rm -f conftest.err conftest.$ac_ext
6584 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6585 echo "${ECHO_T}$ac_header_preproc" >&6
6586
6587 # So?  What about this header?
6588 case $ac_header_compiler:$ac_header_preproc in
6589   yes:no )
6590     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6591 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6592     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6594   no:yes )
6595     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6597     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6598 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6599     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6601 esac
6602 echo "$as_me:$LINENO: checking for $ac_header" >&5
6603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6605   echo $ECHO_N "(cached) $ECHO_C" >&6
6606 else
6607   eval "$as_ac_Header=$ac_header_preproc"
6608 fi
6609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6611
6612 fi
6613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6614   cat >>confdefs.h <<_ACEOF
6615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6616 _ACEOF
6617  OpenGL_ok=yes
6618                   OGL_INCLUDES="-I/usr/openwin/share/include/"
6619 fi
6620
6621 done
6622
6623 fi
6624
6625 if  test "x$OpenGL_ok" = "xno"
6626 then
6627 # under IRIX ?
6628
6629 for ac_header in /opt/graphics/OpenGL/include/GL/glxmd.h
6630 do
6631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6633   echo "$as_me:$LINENO: checking for $ac_header" >&5
6634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6636   echo $ECHO_N "(cached) $ECHO_C" >&6
6637 fi
6638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6640 else
6641   # Is the header compilable?
6642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6644 cat >conftest.$ac_ext <<_ACEOF
6645 #line $LINENO "configure"
6646 #include "confdefs.h"
6647 $ac_includes_default
6648 #include <$ac_header>
6649 _ACEOF
6650 rm -f conftest.$ac_objext
6651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6652   (eval $ac_compile) 2>&5
6653   ac_status=$?
6654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655   (exit $ac_status); } &&
6656          { ac_try='test -s conftest.$ac_objext'
6657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658   (eval $ac_try) 2>&5
6659   ac_status=$?
6660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661   (exit $ac_status); }; }; then
6662   ac_header_compiler=yes
6663 else
6664   echo "$as_me: failed program was:" >&5
6665 cat conftest.$ac_ext >&5
6666 ac_header_compiler=no
6667 fi
6668 rm -f conftest.$ac_objext conftest.$ac_ext
6669 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6670 echo "${ECHO_T}$ac_header_compiler" >&6
6671
6672 # Is the header present?
6673 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6674 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6675 cat >conftest.$ac_ext <<_ACEOF
6676 #line $LINENO "configure"
6677 #include "confdefs.h"
6678 #include <$ac_header>
6679 _ACEOF
6680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6681   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6682   ac_status=$?
6683   egrep -v '^ *\+' conftest.er1 >conftest.err
6684   rm -f conftest.er1
6685   cat conftest.err >&5
6686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687   (exit $ac_status); } >/dev/null; then
6688   if test -s conftest.err; then
6689     ac_cpp_err=$ac_c_preproc_warn_flag
6690   else
6691     ac_cpp_err=
6692   fi
6693 else
6694   ac_cpp_err=yes
6695 fi
6696 if test -z "$ac_cpp_err"; then
6697   ac_header_preproc=yes
6698 else
6699   echo "$as_me: failed program was:" >&5
6700   cat conftest.$ac_ext >&5
6701   ac_header_preproc=no
6702 fi
6703 rm -f conftest.err conftest.$ac_ext
6704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6705 echo "${ECHO_T}$ac_header_preproc" >&6
6706
6707 # So?  What about this header?
6708 case $ac_header_compiler:$ac_header_preproc in
6709   yes:no )
6710     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6712     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6714   no:yes )
6715     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6717     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6718 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6719     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6720 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6721 esac
6722 echo "$as_me:$LINENO: checking for $ac_header" >&5
6723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6725   echo $ECHO_N "(cached) $ECHO_C" >&6
6726 else
6727   eval "$as_ac_Header=$ac_header_preproc"
6728 fi
6729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6731
6732 fi
6733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6734   cat >>confdefs.h <<_ACEOF
6735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6736 _ACEOF
6737  OpenGL_ok=yes
6738                   OGL_INCLUDES="-I/opt/graphics/OpenGL/include"
6739 fi
6740
6741 done
6742
6743 fi
6744 if  test "x$OpenGL_ok" = "xno"
6745 then
6746 # some linux OpenGL servers hide the includes in /usr/X11R6/include/GL
6747
6748 for ac_header in /usr/X11R6/include/GL/gl.h
6749 do
6750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6752   echo "$as_me:$LINENO: checking for $ac_header" >&5
6753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6755   echo $ECHO_N "(cached) $ECHO_C" >&6
6756 fi
6757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6759 else
6760   # Is the header compilable?
6761 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6762 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6763 cat >conftest.$ac_ext <<_ACEOF
6764 #line $LINENO "configure"
6765 #include "confdefs.h"
6766 $ac_includes_default
6767 #include <$ac_header>
6768 _ACEOF
6769 rm -f conftest.$ac_objext
6770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6771   (eval $ac_compile) 2>&5
6772   ac_status=$?
6773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774   (exit $ac_status); } &&
6775          { ac_try='test -s conftest.$ac_objext'
6776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777   (eval $ac_try) 2>&5
6778   ac_status=$?
6779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780   (exit $ac_status); }; }; then
6781   ac_header_compiler=yes
6782 else
6783   echo "$as_me: failed program was:" >&5
6784 cat conftest.$ac_ext >&5
6785 ac_header_compiler=no
6786 fi
6787 rm -f conftest.$ac_objext conftest.$ac_ext
6788 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6789 echo "${ECHO_T}$ac_header_compiler" >&6
6790
6791 # Is the header present?
6792 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6794 cat >conftest.$ac_ext <<_ACEOF
6795 #line $LINENO "configure"
6796 #include "confdefs.h"
6797 #include <$ac_header>
6798 _ACEOF
6799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6800   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6801   ac_status=$?
6802   egrep -v '^ *\+' conftest.er1 >conftest.err
6803   rm -f conftest.er1
6804   cat conftest.err >&5
6805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806   (exit $ac_status); } >/dev/null; then
6807   if test -s conftest.err; then
6808     ac_cpp_err=$ac_c_preproc_warn_flag
6809   else
6810     ac_cpp_err=
6811   fi
6812 else
6813   ac_cpp_err=yes
6814 fi
6815 if test -z "$ac_cpp_err"; then
6816   ac_header_preproc=yes
6817 else
6818   echo "$as_me: failed program was:" >&5
6819   cat conftest.$ac_ext >&5
6820   ac_header_preproc=no
6821 fi
6822 rm -f conftest.err conftest.$ac_ext
6823 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6824 echo "${ECHO_T}$ac_header_preproc" >&6
6825
6826 # So?  What about this header?
6827 case $ac_header_compiler:$ac_header_preproc in
6828   yes:no )
6829     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6830 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6831     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6833   no:yes )
6834     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6835 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6836     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6837 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6838     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6839 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6840 esac
6841 echo "$as_me:$LINENO: checking for $ac_header" >&5
6842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6844   echo $ECHO_N "(cached) $ECHO_C" >&6
6845 else
6846   eval "$as_ac_Header=$ac_header_preproc"
6847 fi
6848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6849 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6850
6851 fi
6852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6853   cat >>confdefs.h <<_ACEOF
6854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6855 _ACEOF
6856  OpenGL_ok=yes
6857                   OGL_INCLUDES="-I/usr/X11R6/include"
6858 fi
6859
6860 done
6861
6862 fi
6863
6864 if  test "x$OpenGL_ok" = "xyes"
6865 then
6866   { echo "$as_me:$LINENO: checking for OpenGL library..." >&5
6867 echo "$as_me: checking for OpenGL library..." >&6;}
6868   OpenGL_ok=no
6869   for i in $dirs; do
6870     if test -r "$i/libGL.so"; then
6871       OGL_LIBS="-L$i"
6872       break
6873     fi
6874 # under IRIX ?
6875     if test -r "$i/libGL.sl"; then
6876       OGL_LIBS="-L$i"
6877       break
6878     fi
6879   done
6880   LDFLAGS_old="$LDFLAGS"
6881   LDFLAGS="$LDFLAGS $OGL_LIBS"
6882   echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
6883 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6
6884 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
6885   echo $ECHO_N "(cached) $ECHO_C" >&6
6886 else
6887   ac_check_lib_save_LIBS=$LIBS
6888 LIBS="-lGL  $LIBS"
6889 cat >conftest.$ac_ext <<_ACEOF
6890 #line $LINENO "configure"
6891 #include "confdefs.h"
6892
6893 /* Override any gcc2 internal prototype to avoid an error.  */
6894 #ifdef __cplusplus
6895 extern "C"
6896 #endif
6897 /* We use char because int might match the return type of a gcc2
6898    builtin and then its argument prototype would still apply.  */
6899 char glBegin ();
6900 #ifdef F77_DUMMY_MAIN
6901 #  ifdef __cplusplus
6902      extern "C"
6903 #  endif
6904    int F77_DUMMY_MAIN() { return 1; }
6905 #endif
6906 int
6907 main ()
6908 {
6909 glBegin ();
6910   ;
6911   return 0;
6912 }
6913 _ACEOF
6914 rm -f conftest.$ac_objext conftest$ac_exeext
6915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6916   (eval $ac_link) 2>&5
6917   ac_status=$?
6918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919   (exit $ac_status); } &&
6920          { ac_try='test -s conftest$ac_exeext'
6921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6922   (eval $ac_try) 2>&5
6923   ac_status=$?
6924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925   (exit $ac_status); }; }; then
6926   ac_cv_lib_GL_glBegin=yes
6927 else
6928   echo "$as_me: failed program was:" >&5
6929 cat conftest.$ac_ext >&5
6930 ac_cv_lib_GL_glBegin=no
6931 fi
6932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6933 LIBS=$ac_check_lib_save_LIBS
6934 fi
6935 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
6936 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6
6937 if test $ac_cv_lib_GL_glBegin = yes; then
6938   OpenGL_ok=yes
6939 else
6940   OpenGL_ok=no
6941 fi
6942
6943   LDFLAGS="$LDFLAGS_old"
6944 fi
6945
6946 if test "x$OpenGL_ok" = "xyes" ; then
6947   OGL_LIBS="$OGL_LIBS -lGL"
6948 fi
6949
6950
6951 OpenGLU_ok=no
6952 LDFLAGS_old="$LDFLAGS"
6953 LDFLAGS="$LDFLAGS $OGL_LIBS"
6954 echo "$as_me:$LINENO: checking for gluBeginSurface in -lGLU" >&5
6955 echo $ECHO_N "checking for gluBeginSurface in -lGLU... $ECHO_C" >&6
6956 if test "${ac_cv_lib_GLU_gluBeginSurface+set}" = set; then
6957   echo $ECHO_N "(cached) $ECHO_C" >&6
6958 else
6959   ac_check_lib_save_LIBS=$LIBS
6960 LIBS="-lGLU  $LIBS"
6961 cat >conftest.$ac_ext <<_ACEOF
6962 #line $LINENO "configure"
6963 #include "confdefs.h"
6964
6965 /* Override any gcc2 internal prototype to avoid an error.  */
6966 #ifdef __cplusplus
6967 extern "C"
6968 #endif
6969 /* We use char because int might match the return type of a gcc2
6970    builtin and then its argument prototype would still apply.  */
6971 char gluBeginSurface ();
6972 #ifdef F77_DUMMY_MAIN
6973 #  ifdef __cplusplus
6974      extern "C"
6975 #  endif
6976    int F77_DUMMY_MAIN() { return 1; }
6977 #endif
6978 int
6979 main ()
6980 {
6981 gluBeginSurface ();
6982   ;
6983   return 0;
6984 }
6985 _ACEOF
6986 rm -f conftest.$ac_objext conftest$ac_exeext
6987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6988   (eval $ac_link) 2>&5
6989   ac_status=$?
6990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991   (exit $ac_status); } &&
6992          { ac_try='test -s conftest$ac_exeext'
6993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6994   (eval $ac_try) 2>&5
6995   ac_status=$?
6996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997   (exit $ac_status); }; }; then
6998   ac_cv_lib_GLU_gluBeginSurface=yes
6999 else
7000   echo "$as_me: failed program was:" >&5
7001 cat conftest.$ac_ext >&5
7002 ac_cv_lib_GLU_gluBeginSurface=no
7003 fi
7004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7005 LIBS=$ac_check_lib_save_LIBS
7006 fi
7007 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluBeginSurface" >&5
7008 echo "${ECHO_T}$ac_cv_lib_GLU_gluBeginSurface" >&6
7009 if test $ac_cv_lib_GLU_gluBeginSurface = yes; then
7010   OpenGLU_ok=yes
7011 else
7012   OpenGLU_ok=no
7013 fi
7014
7015 LDFLAGS="$LDFLAGS_old"
7016
7017 if test "x$OpenGLU_ok" = "xyes" ; then
7018   OGL_LIBS="$OGL_LIBS -lGLU"
7019 fi
7020
7021 # Save cache
7022 cat >confcache <<\_ACEOF
7023 # This file is a shell script that caches the results of configure
7024 # tests run on this system so they can be shared between configure
7025 # scripts and configure runs, see configure's option --config-cache.
7026 # It is not useful on other systems.  If it contains results you don't
7027 # want to keep, you may remove or edit it.
7028 #
7029 # config.status only pays attention to the cache file if you give it
7030 # the --recheck option to rerun configure.
7031 #
7032 # `ac_cv_env_foo' variables (set or unset) will be overriden when
7033 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7034 # following values.
7035
7036 _ACEOF
7037
7038 # The following way of writing the cache mishandles newlines in values,
7039 # but we know of no workaround that is simple, portable, and efficient.
7040 # So, don't put newlines in cache variables' values.
7041 # Ultrix sh set writes to stderr and can't be redirected directly,
7042 # and sets the high bit in the cache file unless we assign to the vars.
7043 {
7044   (set) 2>&1 |
7045     case `(ac_space=' '; set | grep ac_space) 2>&1` in
7046     *ac_space=\ *)
7047       # `set' does not quote correctly, so add quotes (double-quote
7048       # substitution turns \\\\ into \\, and sed turns \\ into \).
7049       sed -n \
7050         "s/'/'\\\\''/g;
7051           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7052       ;;
7053     *)
7054       # `set' quotes correctly as required by POSIX, so do not add quotes.
7055       sed -n \
7056         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7057       ;;
7058     esac;
7059 } |
7060   sed '
7061      t clear
7062      : clear
7063      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7064      t end
7065      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7066      : end' >>confcache
7067 if cmp -s $cache_file confcache; then :; else
7068   if test -w $cache_file; then
7069     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7070     cat confcache >$cache_file
7071   else
7072     echo "not updating unwritable cache $cache_file"
7073   fi
7074 fi
7075 rm -f confcache
7076
7077
7078
7079 echo
7080 echo ---------------------------------------------
7081 echo testing QT
7082 echo ---------------------------------------------
7083 echo
7084
7085
7086
7087 { echo "$as_me:$LINENO: checking for QT..." >&5
7088 echo "$as_me: checking for QT..." >&6;}
7089 qt_ok=yes
7090
7091
7092
7093 ac_ext=cc
7094 ac_cpp='$CXXCPP $CPPFLAGS'
7095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7098
7099
7100 if test "x$QTDIR" = "x"
7101 then
7102    echo "$as_me:$LINENO: result: please define QTDIR variable" >&5
7103 echo "${ECHO_T}please define QTDIR variable" >&6
7104    qt_ok=no
7105 fi
7106
7107 if  test "x$qt_ok" = "xyes"
7108 then
7109   if test -f ${QTDIR}/bin/moc
7110   then
7111     MOC=${QTDIR}/bin/moc
7112   else
7113     # Extract the first word of "moc", so it can be a program name with args.
7114 set dummy moc; ac_word=$2
7115 echo "$as_me:$LINENO: checking for $ac_word" >&5
7116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7117 if test "${ac_cv_path_MOC+set}" = set; then
7118   echo $ECHO_N "(cached) $ECHO_C" >&6
7119 else
7120   case $MOC in
7121   [\\/]* | ?:[\\/]*)
7122   ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
7123   ;;
7124   *)
7125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 for as_dir in $PATH
7127 do
7128   IFS=$as_save_IFS
7129   test -z "$as_dir" && as_dir=.
7130   for ac_exec_ext in '' $ac_executable_extensions; do
7131   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7132     ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
7133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7134     break 2
7135   fi
7136 done
7137 done
7138
7139   ;;
7140 esac
7141 fi
7142 MOC=$ac_cv_path_MOC
7143
7144 if test -n "$MOC"; then
7145   echo "$as_me:$LINENO: result: $MOC" >&5
7146 echo "${ECHO_T}$MOC" >&6
7147 else
7148   echo "$as_me:$LINENO: result: no" >&5
7149 echo "${ECHO_T}no" >&6
7150 fi
7151
7152   fi
7153   if test "x$MOC" = "x"
7154   then
7155     qt_ok=no
7156     echo "$as_me:$LINENO: result: moc qt-compiler not in PATH variable" >&5
7157 echo "${ECHO_T}moc qt-compiler not in PATH variable" >&6
7158   else
7159     qt_ok=yes
7160     echo "$as_me:$LINENO: result: moc found" >&5
7161 echo "${ECHO_T}moc found" >&6
7162   fi
7163 fi
7164
7165 if  test "x$qt_ok" = "xyes"
7166 then
7167   if test -f ${QTDIR}/bin/uic
7168   then
7169     UIC=${QTDIR}/bin/uic
7170   else
7171     # Extract the first word of "uic", so it can be a program name with args.
7172 set dummy uic; ac_word=$2
7173 echo "$as_me:$LINENO: checking for $ac_word" >&5
7174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7175 if test "${ac_cv_path_UIC+set}" = set; then
7176   echo $ECHO_N "(cached) $ECHO_C" >&6
7177 else
7178   case $UIC in
7179   [\\/]* | ?:[\\/]*)
7180   ac_cv_path_UIC="$UIC" # Let the user override the test with a path.
7181   ;;
7182   *)
7183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 for as_dir in $PATH
7185 do
7186   IFS=$as_save_IFS
7187   test -z "$as_dir" && as_dir=.
7188   for ac_exec_ext in '' $ac_executable_extensions; do
7189   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7190     ac_cv_path_UIC="$as_dir/$ac_word$ac_exec_ext"
7191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7192     break 2
7193   fi
7194 done
7195 done
7196
7197   ;;
7198 esac
7199 fi
7200 UIC=$ac_cv_path_UIC
7201
7202 if test -n "$UIC"; then
7203   echo "$as_me:$LINENO: result: $UIC" >&5
7204 echo "${ECHO_T}$UIC" >&6
7205 else
7206   echo "$as_me:$LINENO: result: no" >&5
7207 echo "${ECHO_T}no" >&6
7208 fi
7209
7210   fi
7211   if test "x$UIC" = "x"
7212   then
7213     qt_ok=no
7214     echo "$as_me:$LINENO: result: uic qt-interface compiler not in PATH variable" >&5
7215 echo "${ECHO_T}uic qt-interface compiler not in PATH variable" >&6
7216   else
7217     qt_ok=yes
7218     echo "$as_me:$LINENO: result: uic found" >&5
7219 echo "${ECHO_T}uic found" >&6
7220   fi
7221 fi
7222
7223
7224 QT_ROOT=$QTDIR
7225
7226 if  test "x$qt_ok" = "xyes"
7227 then
7228   echo "$as_me:$LINENO: checking include of qt headers" >&5
7229 echo $ECHO_N "checking include of qt headers... $ECHO_C" >&6
7230
7231   CPPFLAGS_old=$CPPFLAGS
7232   CPPFLAGS="$CPPFLAGS -I$QTDIR/include"
7233
7234   ac_ext=cc
7235 ac_cpp='$CXXCPP $CPPFLAGS'
7236 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7237 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7238 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7239
7240   if test "${ac_cv_header_qaction_h+set}" = set; then
7241   echo "$as_me:$LINENO: checking for qaction.h" >&5
7242 echo $ECHO_N "checking for qaction.h... $ECHO_C" >&6
7243 if test "${ac_cv_header_qaction_h+set}" = set; then
7244   echo $ECHO_N "(cached) $ECHO_C" >&6
7245 fi
7246 echo "$as_me:$LINENO: result: $ac_cv_header_qaction_h" >&5
7247 echo "${ECHO_T}$ac_cv_header_qaction_h" >&6
7248 else
7249   # Is the header compilable?
7250 echo "$as_me:$LINENO: checking qaction.h usability" >&5
7251 echo $ECHO_N "checking qaction.h usability... $ECHO_C" >&6
7252 cat >conftest.$ac_ext <<_ACEOF
7253 #line $LINENO "configure"
7254 #include "confdefs.h"
7255 $ac_includes_default
7256 #include <qaction.h>
7257 _ACEOF
7258 rm -f conftest.$ac_objext
7259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7260   (eval $ac_compile) 2>&5
7261   ac_status=$?
7262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263   (exit $ac_status); } &&
7264          { ac_try='test -s conftest.$ac_objext'
7265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7266   (eval $ac_try) 2>&5
7267   ac_status=$?
7268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269   (exit $ac_status); }; }; then
7270   ac_header_compiler=yes
7271 else
7272   echo "$as_me: failed program was:" >&5
7273 cat conftest.$ac_ext >&5
7274 ac_header_compiler=no
7275 fi
7276 rm -f conftest.$ac_objext conftest.$ac_ext
7277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7278 echo "${ECHO_T}$ac_header_compiler" >&6
7279
7280 # Is the header present?
7281 echo "$as_me:$LINENO: checking qaction.h presence" >&5
7282 echo $ECHO_N "checking qaction.h presence... $ECHO_C" >&6
7283 cat >conftest.$ac_ext <<_ACEOF
7284 #line $LINENO "configure"
7285 #include "confdefs.h"
7286 #include <qaction.h>
7287 _ACEOF
7288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7289   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7290   ac_status=$?
7291   egrep -v '^ *\+' conftest.er1 >conftest.err
7292   rm -f conftest.er1
7293   cat conftest.err >&5
7294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295   (exit $ac_status); } >/dev/null; then
7296   if test -s conftest.err; then
7297     ac_cpp_err=$ac_cxx_preproc_warn_flag
7298   else
7299     ac_cpp_err=
7300   fi
7301 else
7302   ac_cpp_err=yes
7303 fi
7304 if test -z "$ac_cpp_err"; then
7305   ac_header_preproc=yes
7306 else
7307   echo "$as_me: failed program was:" >&5
7308   cat conftest.$ac_ext >&5
7309   ac_header_preproc=no
7310 fi
7311 rm -f conftest.err conftest.$ac_ext
7312 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7313 echo "${ECHO_T}$ac_header_preproc" >&6
7314
7315 # So?  What about this header?
7316 case $ac_header_compiler:$ac_header_preproc in
7317   yes:no )
7318     { echo "$as_me:$LINENO: WARNING: qaction.h: accepted by the compiler, rejected by the preprocessor!" >&5
7319 echo "$as_me: WARNING: qaction.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7320     { echo "$as_me:$LINENO: WARNING: qaction.h: proceeding with the preprocessor's result" >&5
7321 echo "$as_me: WARNING: qaction.h: proceeding with the preprocessor's result" >&2;};;
7322   no:yes )
7323     { echo "$as_me:$LINENO: WARNING: qaction.h: present but cannot be compiled" >&5
7324 echo "$as_me: WARNING: qaction.h: present but cannot be compiled" >&2;}
7325     { echo "$as_me:$LINENO: WARNING: qaction.h: check for missing prerequisite headers?" >&5
7326 echo "$as_me: WARNING: qaction.h: check for missing prerequisite headers?" >&2;}
7327     { echo "$as_me:$LINENO: WARNING: qaction.h: proceeding with the preprocessor's result" >&5
7328 echo "$as_me: WARNING: qaction.h: proceeding with the preprocessor's result" >&2;};;
7329 esac
7330 echo "$as_me:$LINENO: checking for qaction.h" >&5
7331 echo $ECHO_N "checking for qaction.h... $ECHO_C" >&6
7332 if test "${ac_cv_header_qaction_h+set}" = set; then
7333   echo $ECHO_N "(cached) $ECHO_C" >&6
7334 else
7335   ac_cv_header_qaction_h=$ac_header_preproc
7336 fi
7337 echo "$as_me:$LINENO: result: $ac_cv_header_qaction_h" >&5
7338 echo "${ECHO_T}$ac_cv_header_qaction_h" >&6
7339
7340 fi
7341 if test $ac_cv_header_qaction_h = yes; then
7342   qt_ok=yes
7343 else
7344   qt_ok=no
7345 fi
7346
7347
7348
7349   CPPFLAGS=$CPPFLAGS_old
7350
7351   if  test "x$qt_ok" = "xno"
7352   then
7353     echo "$as_me:$LINENO: result: qt headers not found" >&5
7354 echo "${ECHO_T}qt headers not found" >&6
7355     echo "$as_me:$LINENO: result: QTDIR environment variable may be wrong" >&5
7356 echo "${ECHO_T}QTDIR environment variable may be wrong" >&6
7357   else
7358     echo "$as_me:$LINENO: result: yes" >&5
7359 echo "${ECHO_T}yes" >&6
7360        QT_INCLUDES="-I${QT_ROOT}/include -DQT_THREAD_SUPPORT"
7361     QT_MT_INCLUDES="-I${QT_ROOT}/include -DQT_THREAD_SUPPORT"
7362   fi
7363 fi
7364
7365 if  test "x$qt_ok" = "xyes"
7366 then
7367   echo "$as_me:$LINENO: checking linking qt library" >&5
7368 echo $ECHO_N "checking linking qt library... $ECHO_C" >&6
7369   LIBS_old=$LIBS
7370   LIBS="$LIBS -L$QTDIR/lib -lqt-mt $OGL_LIBS"
7371
7372   CXXFLAGS_old=$CXXFLAGS
7373   CXXFLAGS="$CXXFLAGS -I$QTDIR/include"
7374
7375   if test "${salome_cv_lib_qt+set}" = set; then
7376   echo $ECHO_N "(cached) $ECHO_C" >&6
7377 else
7378
7379     cat >conftest.$ac_ext <<_ACEOF
7380 #line $LINENO "configure"
7381 #include "confdefs.h"
7382 #include <qapplication.h>
7383
7384 #ifdef F77_DUMMY_MAIN
7385 #  ifdef __cplusplus
7386      extern "C"
7387 #  endif
7388    int F77_DUMMY_MAIN() { return 1; }
7389 #endif
7390 int
7391 main ()
7392 {
7393 int n;
7394     char **s;
7395     QApplication a(n, s);
7396     a.exec();
7397   ;
7398   return 0;
7399 }
7400 _ACEOF
7401 rm -f conftest.$ac_objext conftest$ac_exeext
7402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7403   (eval $ac_link) 2>&5
7404   ac_status=$?
7405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406   (exit $ac_status); } &&
7407          { ac_try='test -s conftest$ac_exeext'
7408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7409   (eval $ac_try) 2>&5
7410   ac_status=$?
7411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412   (exit $ac_status); }; }; then
7413   eval "salome_cv_lib_qt=yes"
7414 else
7415   echo "$as_me: failed program was:" >&5
7416 cat conftest.$ac_ext >&5
7417 eval "salome_cv_lib_qt=no"
7418 fi
7419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7420
7421 fi
7422
7423   qt_ok="$salome_cv_lib_qt"
7424
7425   if  test "x$qt_ok" = "xno"
7426   then
7427     echo "$as_me:$LINENO: result: unable to link with qt library" >&5
7428 echo "${ECHO_T}unable to link with qt library" >&6
7429     echo "$as_me:$LINENO: result: QTDIR environment variable may be wrong" >&5
7430 echo "${ECHO_T}QTDIR environment variable may be wrong" >&6
7431   else
7432     echo "$as_me:$LINENO: result: yes" >&5
7433 echo "${ECHO_T}yes" >&6
7434        QT_LIBS="-L$QTDIR/lib -lqt-mt"
7435     QT_MT_LIBS="-L$QTDIR/lib -lqt-mt"
7436   fi
7437
7438   LIBS=$LIBS_old
7439   CXXFLAGS=$CXXFLAGS_old
7440
7441 fi
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451 ac_ext=c
7452 ac_cpp='$CPP $CPPFLAGS'
7453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7456
7457
7458 echo "$as_me:$LINENO: result: for qt: $qt_ok" >&5
7459 echo "${ECHO_T}for qt: $qt_ok" >&6
7460
7461 # Save cache
7462 cat >confcache <<\_ACEOF
7463 # This file is a shell script that caches the results of configure
7464 # tests run on this system so they can be shared between configure
7465 # scripts and configure runs, see configure's option --config-cache.
7466 # It is not useful on other systems.  If it contains results you don't
7467 # want to keep, you may remove or edit it.
7468 #
7469 # config.status only pays attention to the cache file if you give it
7470 # the --recheck option to rerun configure.
7471 #
7472 # `ac_cv_env_foo' variables (set or unset) will be overriden when
7473 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7474 # following values.
7475
7476 _ACEOF
7477
7478 # The following way of writing the cache mishandles newlines in values,
7479 # but we know of no workaround that is simple, portable, and efficient.
7480 # So, don't put newlines in cache variables' values.
7481 # Ultrix sh set writes to stderr and can't be redirected directly,
7482 # and sets the high bit in the cache file unless we assign to the vars.
7483 {
7484   (set) 2>&1 |
7485     case `(ac_space=' '; set | grep ac_space) 2>&1` in
7486     *ac_space=\ *)
7487       # `set' does not quote correctly, so add quotes (double-quote
7488       # substitution turns \\\\ into \\, and sed turns \\ into \).
7489       sed -n \
7490         "s/'/'\\\\''/g;
7491           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7492       ;;
7493     *)
7494       # `set' quotes correctly as required by POSIX, so do not add quotes.
7495       sed -n \
7496         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7497       ;;
7498     esac;
7499 } |
7500   sed '
7501      t clear
7502      : clear
7503      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7504      t end
7505      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7506      : end' >>confcache
7507 if cmp -s $cache_file confcache; then :; else
7508   if test -w $cache_file; then
7509     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7510     cat confcache >$cache_file
7511   else
7512     echo "not updating unwritable cache $cache_file"
7513   fi
7514 fi
7515 rm -f confcache
7516
7517
7518
7519 echo
7520 echo ---------------------------------------------
7521 echo testing VTK
7522 echo ---------------------------------------------
7523 echo
7524
7525
7526
7527 { echo "$as_me:$LINENO: checking for VTK..." >&5
7528 echo "$as_me: checking for VTK..." >&6;}
7529
7530
7531
7532 ac_ext=cc
7533 ac_cpp='$CXXCPP $CPPFLAGS'
7534 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7535 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7536 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7537
7538
7539
7540
7541
7542
7543 VTK_INCLUDES=""
7544 VTK_LIBS=""
7545 VTKPY_MODULES=""
7546
7547 vtk_ok=no
7548
7549 echo "$as_me:$LINENO: checking for X" >&5
7550 echo $ECHO_N "checking for X... $ECHO_C" >&6
7551
7552
7553 # Check whether --with-x or --without-x was given.
7554 if test "${with_x+set}" = set; then
7555   withval="$with_x"
7556
7557 fi;
7558 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7559 if test "x$with_x" = xno; then
7560   # The user explicitly disabled X.
7561   have_x=disabled
7562 else
7563   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7564     # Both variables are already set.
7565     have_x=yes
7566   else
7567     if test "${ac_cv_have_x+set}" = set; then
7568   echo $ECHO_N "(cached) $ECHO_C" >&6
7569 else
7570   # One or both of the vars are not set, and there is no cached value.
7571 ac_x_includes=no ac_x_libraries=no
7572 rm -fr conftest.dir
7573 if mkdir conftest.dir; then
7574   cd conftest.dir
7575   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7576   cat >Imakefile <<'_ACEOF'
7577 acfindx:
7578         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7579 _ACEOF
7580   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7581     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7582     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7583     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7584     for ac_extension in a so sl; do
7585       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7586          test -f $ac_im_libdir/libX11.$ac_extension; then
7587         ac_im_usrlibdir=$ac_im_libdir; break
7588       fi
7589     done
7590     # Screen out bogus values from the imake configuration.  They are
7591     # bogus both because they are the default anyway, and because
7592     # using them would break gcc on systems where it needs fixed includes.
7593     case $ac_im_incroot in
7594         /usr/include) ;;
7595         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7596     esac
7597     case $ac_im_usrlibdir in
7598         /usr/lib | /lib) ;;
7599         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7600     esac
7601   fi
7602   cd ..
7603   rm -fr conftest.dir
7604 fi
7605
7606 # Standard set of common directories for X headers.
7607 # Check X11 before X11Rn because it is often a symlink to the current release.
7608 ac_x_header_dirs='
7609 /usr/X11/include
7610 /usr/X11R6/include
7611 /usr/X11R5/include
7612 /usr/X11R4/include
7613
7614 /usr/include/X11
7615 /usr/include/X11R6
7616 /usr/include/X11R5
7617 /usr/include/X11R4
7618
7619 /usr/local/X11/include
7620 /usr/local/X11R6/include
7621 /usr/local/X11R5/include
7622 /usr/local/X11R4/include
7623
7624 /usr/local/include/X11
7625 /usr/local/include/X11R6
7626 /usr/local/include/X11R5
7627 /usr/local/include/X11R4
7628
7629 /usr/X386/include
7630 /usr/x386/include
7631 /usr/XFree86/include/X11
7632
7633 /usr/include
7634 /usr/local/include
7635 /usr/unsupported/include
7636 /usr/athena/include
7637 /usr/local/x11r5/include
7638 /usr/lpp/Xamples/include
7639
7640 /usr/openwin/include
7641 /usr/openwin/share/include'
7642
7643 if test "$ac_x_includes" = no; then
7644   # Guess where to find include files, by looking for Intrinsic.h.
7645   # First, try using that file with no special directory specified.
7646   cat >conftest.$ac_ext <<_ACEOF
7647 #line $LINENO "configure"
7648 #include "confdefs.h"
7649 #include <X11/Intrinsic.h>
7650 _ACEOF
7651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7652   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7653   ac_status=$?
7654   egrep -v '^ *\+' conftest.er1 >conftest.err
7655   rm -f conftest.er1
7656   cat conftest.err >&5
7657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658   (exit $ac_status); } >/dev/null; then
7659   if test -s conftest.err; then
7660     ac_cpp_err=$ac_cxx_preproc_warn_flag
7661   else
7662     ac_cpp_err=
7663   fi
7664 else
7665   ac_cpp_err=yes
7666 fi
7667 if test -z "$ac_cpp_err"; then
7668   # We can compile using X headers with no special include directory.
7669 ac_x_includes=
7670 else
7671   echo "$as_me: failed program was:" >&5
7672   cat conftest.$ac_ext >&5
7673   for ac_dir in $ac_x_header_dirs; do
7674   if test -r "$ac_dir/X11/Intrinsic.h"; then
7675     ac_x_includes=$ac_dir
7676     break
7677   fi
7678 done
7679 fi
7680 rm -f conftest.err conftest.$ac_ext
7681 fi # $ac_x_includes = no
7682
7683 if test "$ac_x_libraries" = no; then
7684   # Check for the libraries.
7685   # See if we find them without any special options.
7686   # Don't add to $LIBS permanently.
7687   ac_save_LIBS=$LIBS
7688   LIBS="-lXt $LIBS"
7689   cat >conftest.$ac_ext <<_ACEOF
7690 #line $LINENO "configure"
7691 #include "confdefs.h"
7692 #include <X11/Intrinsic.h>
7693 #ifdef F77_DUMMY_MAIN
7694 #  ifdef __cplusplus
7695      extern "C"
7696 #  endif
7697    int F77_DUMMY_MAIN() { return 1; }
7698 #endif
7699 int
7700 main ()
7701 {
7702 XtMalloc (0)
7703   ;
7704   return 0;
7705 }
7706 _ACEOF
7707 rm -f conftest.$ac_objext conftest$ac_exeext
7708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7709   (eval $ac_link) 2>&5
7710   ac_status=$?
7711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712   (exit $ac_status); } &&
7713          { ac_try='test -s conftest$ac_exeext'
7714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715   (eval $ac_try) 2>&5
7716   ac_status=$?
7717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718   (exit $ac_status); }; }; then
7719   LIBS=$ac_save_LIBS
7720 # We can link X programs with no special library path.
7721 ac_x_libraries=
7722 else
7723   echo "$as_me: failed program was:" >&5
7724 cat conftest.$ac_ext >&5
7725 LIBS=$ac_save_LIBS
7726 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7727 do
7728   # Don't even attempt the hair of trying to link an X program!
7729   for ac_extension in a so sl; do
7730     if test -r $ac_dir/libXt.$ac_extension; then
7731       ac_x_libraries=$ac_dir
7732       break 2
7733     fi
7734   done
7735 done
7736 fi
7737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7738 fi # $ac_x_libraries = no
7739
7740 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7741   # Didn't find X anywhere.  Cache the known absence of X.
7742   ac_cv_have_x="have_x=no"
7743 else
7744   # Record where we found X for the cache.
7745   ac_cv_have_x="have_x=yes \
7746                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7747 fi
7748 fi
7749
7750   fi
7751   eval "$ac_cv_have_x"
7752 fi # $with_x != no
7753
7754 if test "$have_x" != yes; then
7755   echo "$as_me:$LINENO: result: $have_x" >&5
7756 echo "${ECHO_T}$have_x" >&6
7757   no_x=yes
7758 else
7759   # If each of the values was on the command line, it overrides each guess.
7760   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7761   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7762   # Update the cache value to reflect the command line values.
7763   ac_cv_have_x="have_x=yes \
7764                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7765   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7766 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7767 fi
7768
7769
7770 if test "x$OpenGL_ok" != "xyes"
7771 then
7772    { echo "$as_me:$LINENO: WARNING: vtk needs OpenGL correct configuration" >&5
7773 echo "$as_me: WARNING: vtk needs OpenGL correct configuration" >&2;}
7774 fi
7775
7776
7777 LOCAL_INCLUDES="$OGL_INCLUDES"
7778 LOCAL_LIBS="-lvtkCommon -lvtkGraphics -lvtkImaging -lvtkFiltering -lvtkIO -lvtkRendering -lvtkHybrid $OGL_LIBS -L$x_libraries -lX11 -lXt"
7779 TRY_LINK_LIBS="-lvtkCommon $OGL_LIBS -L$x_libraries -lX11 -lXt"
7780
7781 if test -z $VTKHOME
7782 then
7783    { echo "$as_me:$LINENO: WARNING: undefined VTKHOME variable which specify where vtk was compiled" >&5
7784 echo "$as_me: WARNING: undefined VTKHOME variable which specify where vtk was compiled" >&2;}
7785 else
7786    LOCAL_INCLUDES="-I$VTKHOME/include/vtk $LOCAL_INCLUDES"
7787    LOCAL_LIBS="-L$VTKHOME/lib/vtk $LOCAL_LIBS"
7788    TRY_LINK_LIBS="-L$VTKHOME/lib/vtk $TRY_LINK_LIBS"
7789 fi
7790
7791 CPPFLAGS_old="$CPPFLAGS"
7792 CPPFLAGS="$CPPFLAGS $LOCAL_INCLUDES -Wno-deprecated"
7793
7794 if test "${ac_cv_header_vtkPlane_h+set}" = set; then
7795   echo "$as_me:$LINENO: checking for vtkPlane.h" >&5
7796 echo $ECHO_N "checking for vtkPlane.h... $ECHO_C" >&6
7797 if test "${ac_cv_header_vtkPlane_h+set}" = set; then
7798   echo $ECHO_N "(cached) $ECHO_C" >&6
7799 fi
7800 echo "$as_me:$LINENO: result: $ac_cv_header_vtkPlane_h" >&5
7801 echo "${ECHO_T}$ac_cv_header_vtkPlane_h" >&6
7802 else
7803   # Is the header compilable?
7804 echo "$as_me:$LINENO: checking vtkPlane.h usability" >&5
7805 echo $ECHO_N "checking vtkPlane.h usability... $ECHO_C" >&6
7806 cat >conftest.$ac_ext <<_ACEOF
7807 #line $LINENO "configure"
7808 #include "confdefs.h"
7809 $ac_includes_default
7810 #include <vtkPlane.h>
7811 _ACEOF
7812 rm -f conftest.$ac_objext
7813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7814   (eval $ac_compile) 2>&5
7815   ac_status=$?
7816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817   (exit $ac_status); } &&
7818          { ac_try='test -s conftest.$ac_objext'
7819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7820   (eval $ac_try) 2>&5
7821   ac_status=$?
7822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823   (exit $ac_status); }; }; then
7824   ac_header_compiler=yes
7825 else
7826   echo "$as_me: failed program was:" >&5
7827 cat conftest.$ac_ext >&5
7828 ac_header_compiler=no
7829 fi
7830 rm -f conftest.$ac_objext conftest.$ac_ext
7831 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7832 echo "${ECHO_T}$ac_header_compiler" >&6
7833
7834 # Is the header present?
7835 echo "$as_me:$LINENO: checking vtkPlane.h presence" >&5
7836 echo $ECHO_N "checking vtkPlane.h presence... $ECHO_C" >&6
7837 cat >conftest.$ac_ext <<_ACEOF
7838 #line $LINENO "configure"
7839 #include "confdefs.h"
7840 #include <vtkPlane.h>
7841 _ACEOF
7842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7843   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7844   ac_status=$?
7845   egrep -v '^ *\+' conftest.er1 >conftest.err
7846   rm -f conftest.er1
7847   cat conftest.err >&5
7848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849   (exit $ac_status); } >/dev/null; then
7850   if test -s conftest.err; then
7851     ac_cpp_err=$ac_cxx_preproc_warn_flag
7852   else
7853     ac_cpp_err=
7854   fi
7855 else
7856   ac_cpp_err=yes
7857 fi
7858 if test -z "$ac_cpp_err"; then
7859   ac_header_preproc=yes
7860 else
7861   echo "$as_me: failed program was:" >&5
7862   cat conftest.$ac_ext >&5
7863   ac_header_preproc=no
7864 fi
7865 rm -f conftest.err conftest.$ac_ext
7866 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7867 echo "${ECHO_T}$ac_header_preproc" >&6
7868
7869 # So?  What about this header?
7870 case $ac_header_compiler:$ac_header_preproc in
7871   yes:no )
7872     { echo "$as_me:$LINENO: WARNING: vtkPlane.h: accepted by the compiler, rejected by the preprocessor!" >&5
7873 echo "$as_me: WARNING: vtkPlane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7874     { echo "$as_me:$LINENO: WARNING: vtkPlane.h: proceeding with the preprocessor's result" >&5
7875 echo "$as_me: WARNING: vtkPlane.h: proceeding with the preprocessor's result" >&2;};;
7876   no:yes )
7877     { echo "$as_me:$LINENO: WARNING: vtkPlane.h: present but cannot be compiled" >&5
7878 echo "$as_me: WARNING: vtkPlane.h: present but cannot be compiled" >&2;}
7879     { echo "$as_me:$LINENO: WARNING: vtkPlane.h: check for missing prerequisite headers?" >&5
7880 echo "$as_me: WARNING: vtkPlane.h: check for missing prerequisite headers?" >&2;}
7881     { echo "$as_me:$LINENO: WARNING: vtkPlane.h: proceeding with the preprocessor's result" >&5
7882 echo "$as_me: WARNING: vtkPlane.h: proceeding with the preprocessor's result" >&2;};;
7883 esac
7884 echo "$as_me:$LINENO: checking for vtkPlane.h" >&5
7885 echo $ECHO_N "checking for vtkPlane.h... $ECHO_C" >&6
7886 if test "${ac_cv_header_vtkPlane_h+set}" = set; then
7887   echo $ECHO_N "(cached) $ECHO_C" >&6
7888 else
7889   ac_cv_header_vtkPlane_h=$ac_header_preproc
7890 fi
7891 echo "$as_me:$LINENO: result: $ac_cv_header_vtkPlane_h" >&5
7892 echo "${ECHO_T}$ac_cv_header_vtkPlane_h" >&6
7893
7894 fi
7895 if test $ac_cv_header_vtkPlane_h = yes; then
7896   vtk_ok="yes"
7897 else
7898   vtk_ok="no"
7899 fi
7900
7901
7902
7903  CPPFLAGS="$CPPFLAGS_old"
7904
7905  if  test "x$vtk_ok" = "xyes"
7906  then
7907    VTK_INCLUDES="$LOCAL_INCLUDES"
7908
7909
7910    echo "$as_me:$LINENO: checking linking VTK library" >&5
7911 echo $ECHO_N "checking linking VTK library... $ECHO_C" >&6
7912
7913   LIBS_old="$LIBS"
7914 #  LIBS="$LIBS $TRY_LINK_LIBS"
7915   LIBS="$LIBS $LOCAL_LIBS"
7916   CPPFLAGS_old="$CPPFLAGS"
7917   CPPFLAGS="$CPPFLAGS $VTK_INCLUDES -Wno-deprecated"
7918
7919
7920    if test "${salome_cv_lib_vtk+set}" = set; then
7921   echo $ECHO_N "(cached) $ECHO_C" >&6
7922 else
7923
7924      cat >conftest.$ac_ext <<_ACEOF
7925 #line $LINENO "configure"
7926 #include "confdefs.h"
7927 #include "vtkPlane.h"
7928
7929 #ifdef F77_DUMMY_MAIN
7930 #  ifdef __cplusplus
7931      extern "C"
7932 #  endif
7933    int F77_DUMMY_MAIN() { return 1; }
7934 #endif
7935 int
7936 main ()
7937 {
7938 vtkPlane *p = vtkPlane::New();
7939   ;
7940   return 0;
7941 }
7942 _ACEOF
7943 rm -f conftest.$ac_objext conftest$ac_exeext
7944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7945   (eval $ac_link) 2>&5
7946   ac_status=$?
7947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948   (exit $ac_status); } &&
7949          { ac_try='test -s conftest$ac_exeext'
7950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951   (eval $ac_try) 2>&5
7952   ac_status=$?
7953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954   (exit $ac_status); }; }; then
7955   eval "salome_cv_lib_vtk=yes"
7956 else
7957   echo "$as_me: failed program was:" >&5
7958 cat conftest.$ac_ext >&5
7959 eval "salome_cv_lib_vtk=no"
7960 fi
7961 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7962
7963 fi
7964
7965   vtk_ok="$salome_cv_lib_vtk"
7966   LIBS="$LIBS_old"
7967   CPPFLAGS="$CPPFLAGS_old"
7968
7969 fi
7970
7971 if  test "x$vtk_ok" = "xno"
7972 then
7973   echo "$as_me:$LINENO: result: \"no\"" >&5
7974 echo "${ECHO_T}\"no\"" >&6
7975   { echo "$as_me:$LINENO: WARNING: unable to link with vtk library" >&5
7976 echo "$as_me: WARNING: unable to link with vtk library" >&2;}
7977 else
7978   echo "$as_me:$LINENO: result: \"yes\"" >&5
7979 echo "${ECHO_T}\"yes\"" >&6
7980   VTK_LIBS="$LOCAL_LIBS"
7981   VTK_MT_LIBS="$LOCAL_LIBS"
7982 fi
7983
7984 echo "$as_me:$LINENO: result: \"for vtk: $vtk_ok\"" >&5
7985 echo "${ECHO_T}\"for vtk: $vtk_ok\"" >&6
7986
7987 ac_ext=c
7988 ac_cpp='$CPP $CPPFLAGS'
7989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7992
7993
7994 # Save cache
7995 cat >confcache <<\_ACEOF
7996 # This file is a shell script that caches the results of configure
7997 # tests run on this system so they can be shared between configure
7998 # scripts and configure runs, see configure's option --config-cache.
7999 # It is not useful on other systems.  If it contains results you don't
8000 # want to keep, you may remove or edit it.
8001 #
8002 # config.status only pays attention to the cache file if you give it
8003 # the --recheck option to rerun configure.
8004 #
8005 # `ac_cv_env_foo' variables (set or unset) will be overriden when
8006 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8007 # following values.
8008
8009 _ACEOF
8010
8011 # The following way of writing the cache mishandles newlines in values,
8012 # but we know of no workaround that is simple, portable, and efficient.
8013 # So, don't put newlines in cache variables' values.
8014 # Ultrix sh set writes to stderr and can't be redirected directly,
8015 # and sets the high bit in the cache file unless we assign to the vars.
8016 {
8017   (set) 2>&1 |
8018     case `(ac_space=' '; set | grep ac_space) 2>&1` in
8019     *ac_space=\ *)
8020       # `set' does not quote correctly, so add quotes (double-quote
8021       # substitution turns \\\\ into \\, and sed turns \\ into \).
8022       sed -n \
8023         "s/'/'\\\\''/g;
8024           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8025       ;;
8026     *)
8027       # `set' quotes correctly as required by POSIX, so do not add quotes.
8028       sed -n \
8029         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8030       ;;
8031     esac;
8032 } |
8033   sed '
8034      t clear
8035      : clear
8036      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8037      t end
8038      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8039      : end' >>confcache
8040 if cmp -s $cache_file confcache; then :; else
8041   if test -w $cache_file; then
8042     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8043     cat confcache >$cache_file
8044   else
8045     echo "not updating unwritable cache $cache_file"
8046   fi
8047 fi
8048 rm -f confcache
8049
8050
8051
8052 echo
8053 echo ---------------------------------------------
8054 echo testing HDF5
8055 echo ---------------------------------------------
8056 echo
8057
8058
8059
8060 { echo "$as_me:$LINENO: checking for HDF5..." >&5
8061 echo "$as_me: checking for HDF5..." >&6;}
8062
8063
8064 # Check whether --with-hdf5 or --without-hdf5 was given.
8065 if test "${with_hdf5+set}" = set; then
8066   withval="$with_hdf5"
8067   HDF5HOME="$withval"
8068       echo "$as_me:$LINENO: result: \"select $withval as path to hdf5\"" >&5
8069 echo "${ECHO_T}\"select $withval as path to hdf5\"" >&6
8070
8071 fi;
8072
8073
8074
8075
8076
8077 HDF5_INCLUDES=""
8078 HDF5_LIBS=""
8079 HDF5_MT_LIBS=""
8080
8081 hdf5_ok=no
8082
8083 LOCAL_INCLUDES=""
8084 LOCAL_LIBS=""
8085
8086 if test -z $HDF5HOME
8087 then
8088    { echo "$as_me:$LINENO: WARNING: undefined HDF5HOME variable which specify hdf5 installation directory" >&5
8089 echo "$as_me: WARNING: undefined HDF5HOME variable which specify hdf5 installation directory" >&2;}
8090 else
8091    LOCAL_INCLUDES="-I$HDF5HOME/include"
8092    LOCAL_LIBS="-L$HDF5HOME/lib"
8093 fi
8094
8095
8096 CPPFLAGS_old="$CPPFLAGS"
8097 CPPFLAGS="$CPPFLAGS $LOCAL_INCLUDES"
8098 if test "${ac_cv_header_hdf5_h+set}" = set; then
8099   echo "$as_me:$LINENO: checking for hdf5.h" >&5
8100 echo $ECHO_N "checking for hdf5.h... $ECHO_C" >&6
8101 if test "${ac_cv_header_hdf5_h+set}" = set; then
8102   echo $ECHO_N "(cached) $ECHO_C" >&6
8103 fi
8104 echo "$as_me:$LINENO: result: $ac_cv_header_hdf5_h" >&5
8105 echo "${ECHO_T}$ac_cv_header_hdf5_h" >&6
8106 else
8107   # Is the header compilable?
8108 echo "$as_me:$LINENO: checking hdf5.h usability" >&5
8109 echo $ECHO_N "checking hdf5.h usability... $ECHO_C" >&6
8110 cat >conftest.$ac_ext <<_ACEOF
8111 #line $LINENO "configure"
8112 #include "confdefs.h"
8113 $ac_includes_default
8114 #include <hdf5.h>
8115 _ACEOF
8116 rm -f conftest.$ac_objext
8117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8118   (eval $ac_compile) 2>&5
8119   ac_status=$?
8120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121   (exit $ac_status); } &&
8122          { ac_try='test -s conftest.$ac_objext'
8123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124   (eval $ac_try) 2>&5
8125   ac_status=$?
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); }; }; then
8128   ac_header_compiler=yes
8129 else
8130   echo "$as_me: failed program was:" >&5
8131 cat conftest.$ac_ext >&5
8132 ac_header_compiler=no
8133 fi
8134 rm -f conftest.$ac_objext conftest.$ac_ext
8135 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8136 echo "${ECHO_T}$ac_header_compiler" >&6
8137
8138 # Is the header present?
8139 echo "$as_me:$LINENO: checking hdf5.h presence" >&5
8140 echo $ECHO_N "checking hdf5.h presence... $ECHO_C" >&6
8141 cat >conftest.$ac_ext <<_ACEOF
8142 #line $LINENO "configure"
8143 #include "confdefs.h"
8144 #include <hdf5.h>
8145 _ACEOF
8146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8147   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8148   ac_status=$?
8149   egrep -v '^ *\+' conftest.er1 >conftest.err
8150   rm -f conftest.er1
8151   cat conftest.err >&5
8152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153   (exit $ac_status); } >/dev/null; then
8154   if test -s conftest.err; then
8155     ac_cpp_err=$ac_c_preproc_warn_flag
8156   else
8157     ac_cpp_err=
8158   fi
8159 else
8160   ac_cpp_err=yes
8161 fi
8162 if test -z "$ac_cpp_err"; then
8163   ac_header_preproc=yes
8164 else
8165   echo "$as_me: failed program was:" >&5
8166   cat conftest.$ac_ext >&5
8167   ac_header_preproc=no
8168 fi
8169 rm -f conftest.err conftest.$ac_ext
8170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8171 echo "${ECHO_T}$ac_header_preproc" >&6
8172
8173 # So?  What about this header?
8174 case $ac_header_compiler:$ac_header_preproc in
8175   yes:no )
8176     { echo "$as_me:$LINENO: WARNING: hdf5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8177 echo "$as_me: WARNING: hdf5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8178     { echo "$as_me:$LINENO: WARNING: hdf5.h: proceeding with the preprocessor's result" >&5
8179 echo "$as_me: WARNING: hdf5.h: proceeding with the preprocessor's result" >&2;};;
8180   no:yes )
8181     { echo "$as_me:$LINENO: WARNING: hdf5.h: present but cannot be compiled" >&5
8182 echo "$as_me: WARNING: hdf5.h: present but cannot be compiled" >&2;}
8183     { echo "$as_me:$LINENO: WARNING: hdf5.h: check for missing prerequisite headers?" >&5
8184 echo "$as_me: WARNING: hdf5.h: check for missing prerequisite headers?" >&2;}
8185     { echo "$as_me:$LINENO: WARNING: hdf5.h: proceeding with the preprocessor's result" >&5
8186 echo "$as_me: WARNING: hdf5.h: proceeding with the preprocessor's result" >&2;};;
8187 esac
8188 echo "$as_me:$LINENO: checking for hdf5.h" >&5
8189 echo $ECHO_N "checking for hdf5.h... $ECHO_C" >&6
8190 if test "${ac_cv_header_hdf5_h+set}" = set; then
8191   echo $ECHO_N "(cached) $ECHO_C" >&6
8192 else
8193   ac_cv_header_hdf5_h=$ac_header_preproc
8194 fi
8195 echo "$as_me:$LINENO: result: $ac_cv_header_hdf5_h" >&5
8196 echo "${ECHO_T}$ac_cv_header_hdf5_h" >&6
8197
8198 fi
8199 if test $ac_cv_header_hdf5_h = yes; then
8200   hdf5_ok=yes
8201 else
8202   hdf5_ok=no
8203 fi
8204
8205
8206 CPPFLAGS="$CPPFLAGS_old"
8207
8208
8209 if  test "x$hdf5_ok" = "xyes"
8210 then
8211
8212
8213   LIBS_old="$LIBS"
8214   LIBS="$LIBS $LOCAL_LIBS"
8215   echo "$as_me:$LINENO: checking for H5open in -lhdf5" >&5
8216 echo $ECHO_N "checking for H5open in -lhdf5... $ECHO_C" >&6
8217 if test "${ac_cv_lib_hdf5_H5open+set}" = set; then
8218   echo $ECHO_N "(cached) $ECHO_C" >&6
8219 else
8220   ac_check_lib_save_LIBS=$LIBS
8221 LIBS="-lhdf5  $LIBS"
8222 cat >conftest.$ac_ext <<_ACEOF
8223 #line $LINENO "configure"
8224 #include "confdefs.h"
8225
8226 /* Override any gcc2 internal prototype to avoid an error.  */
8227 #ifdef __cplusplus
8228 extern "C"
8229 #endif
8230 /* We use char because int might match the return type of a gcc2
8231    builtin and then its argument prototype would still apply.  */
8232 char H5open ();
8233 #ifdef F77_DUMMY_MAIN
8234 #  ifdef __cplusplus
8235      extern "C"
8236 #  endif
8237    int F77_DUMMY_MAIN() { return 1; }
8238 #endif
8239 int
8240 main ()
8241 {
8242 H5open ();
8243   ;
8244   return 0;
8245 }
8246 _ACEOF
8247 rm -f conftest.$ac_objext conftest$ac_exeext
8248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8249   (eval $ac_link) 2>&5
8250   ac_status=$?
8251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252   (exit $ac_status); } &&
8253          { ac_try='test -s conftest$ac_exeext'
8254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8255   (eval $ac_try) 2>&5
8256   ac_status=$?
8257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258   (exit $ac_status); }; }; then
8259   ac_cv_lib_hdf5_H5open=yes
8260 else
8261   echo "$as_me: failed program was:" >&5
8262 cat conftest.$ac_ext >&5
8263 ac_cv_lib_hdf5_H5open=no
8264 fi
8265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8266 LIBS=$ac_check_lib_save_LIBS
8267 fi
8268 echo "$as_me:$LINENO: result: $ac_cv_lib_hdf5_H5open" >&5
8269 echo "${ECHO_T}$ac_cv_lib_hdf5_H5open" >&6
8270 if test $ac_cv_lib_hdf5_H5open = yes; then
8271   hdf5_ok=yes
8272 else
8273   hdf5_ok=no
8274 fi
8275
8276   LIBS="$LIBS_old"
8277
8278 fi
8279
8280 if  test "x$hdf5_ok" = "xyes"
8281 then
8282   HDF5_INCLUDES="$LOCAL_INCLUDES"
8283   HDF5_LIBS="$LOCAL_LIBS -lhdf5"
8284   HDF5_MT_LIBS="$LOCAL_LIBS -lhdf5"
8285 fi
8286
8287 echo "$as_me:$LINENO: result: for hdf5: $hdf5_ok" >&5
8288 echo "${ECHO_T}for hdf5: $hdf5_ok" >&6
8289
8290
8291
8292 echo
8293 echo ---------------------------------------------
8294 echo testing MED2
8295 echo ---------------------------------------------
8296 echo
8297
8298
8299
8300 { echo "$as_me:$LINENO: checking for MED2..." >&5
8301 echo "$as_me: checking for MED2..." >&6;}
8302
8303
8304 # Check whether --with-med2 or --without-med2 was given.
8305 if test "${with_med2+set}" = set; then
8306   withval="$with_med2"
8307   MED2HOME="$withval"
8308       echo "$as_me:$LINENO: result: \"select $withval as path to med2\"" >&5
8309 echo "${ECHO_T}\"select $withval as path to med2\"" >&6
8310
8311 fi;
8312
8313
8314
8315
8316
8317 MED2_INCLUDES=""
8318 MED2_LIBS=""
8319 MED2_MT_LIBS=""
8320
8321 med2_ok=no
8322
8323 LOCAL_INCLUDES="$HDF5_INCLUDES"
8324 LOCAL_LIBS="-lmed $HDF5_LIBS"
8325
8326 if test -z $MED2HOME
8327 then
8328    { echo "$as_me:$LINENO: WARNING: undefined MED2HOME variable which specify med2 installation directory" >&5
8329 echo "$as_me: WARNING: undefined MED2HOME variable which specify med2 installation directory" >&2;}
8330 else
8331    LOCAL_INCLUDES="$LOCAL_INCLUDES -I$MED2HOME/include"
8332    LOCAL_LIBS="-L$MED2HOME/lib $LOCAL_LIBS"
8333 fi
8334
8335
8336 CPPFLAGS_old="$CPPFLAGS"
8337 CPPFLAGS="$CPPFLAGS -DPCLINUX $LOCAL_INCLUDES"
8338 if test "${ac_cv_header_med_h+set}" = set; then
8339   echo "$as_me:$LINENO: checking for med.h" >&5
8340 echo $ECHO_N "checking for med.h... $ECHO_C" >&6
8341 if test "${ac_cv_header_med_h+set}" = set; then
8342   echo $ECHO_N "(cached) $ECHO_C" >&6
8343 fi
8344 echo "$as_me:$LINENO: result: $ac_cv_header_med_h" >&5
8345 echo "${ECHO_T}$ac_cv_header_med_h" >&6
8346 else
8347   # Is the header compilable?
8348 echo "$as_me:$LINENO: checking med.h usability" >&5
8349 echo $ECHO_N "checking med.h usability... $ECHO_C" >&6
8350 cat >conftest.$ac_ext <<_ACEOF
8351 #line $LINENO "configure"
8352 #include "confdefs.h"
8353 $ac_includes_default
8354 #include <med.h>
8355 _ACEOF
8356 rm -f conftest.$ac_objext
8357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8358   (eval $ac_compile) 2>&5
8359   ac_status=$?
8360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361   (exit $ac_status); } &&
8362          { ac_try='test -s conftest.$ac_objext'
8363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8364   (eval $ac_try) 2>&5
8365   ac_status=$?
8366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367   (exit $ac_status); }; }; then
8368   ac_header_compiler=yes
8369 else
8370   echo "$as_me: failed program was:" >&5
8371 cat conftest.$ac_ext >&5
8372 ac_header_compiler=no
8373 fi
8374 rm -f conftest.$ac_objext conftest.$ac_ext
8375 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8376 echo "${ECHO_T}$ac_header_compiler" >&6
8377
8378 # Is the header present?
8379 echo "$as_me:$LINENO: checking med.h presence" >&5
8380 echo $ECHO_N "checking med.h presence... $ECHO_C" >&6
8381 cat >conftest.$ac_ext <<_ACEOF
8382 #line $LINENO "configure"
8383 #include "confdefs.h"
8384 #include <med.h>
8385 _ACEOF
8386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8387   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8388   ac_status=$?
8389   egrep -v '^ *\+' conftest.er1 >conftest.err
8390   rm -f conftest.er1
8391   cat conftest.err >&5
8392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393   (exit $ac_status); } >/dev/null; then
8394   if test -s conftest.err; then
8395     ac_cpp_err=$ac_c_preproc_warn_flag
8396   else
8397     ac_cpp_err=
8398   fi
8399 else
8400   ac_cpp_err=yes
8401 fi
8402 if test -z "$ac_cpp_err"; then
8403   ac_header_preproc=yes
8404 else
8405   echo "$as_me: failed program was:" >&5
8406   cat conftest.$ac_ext >&5
8407   ac_header_preproc=no
8408 fi
8409 rm -f conftest.err conftest.$ac_ext
8410 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8411 echo "${ECHO_T}$ac_header_preproc" >&6
8412
8413 # So?  What about this header?
8414 case $ac_header_compiler:$ac_header_preproc in
8415   yes:no )
8416     { echo "$as_me:$LINENO: WARNING: med.h: accepted by the compiler, rejected by the preprocessor!" >&5
8417 echo "$as_me: WARNING: med.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8418     { echo "$as_me:$LINENO: WARNING: med.h: proceeding with the preprocessor's result" >&5
8419 echo "$as_me: WARNING: med.h: proceeding with the preprocessor's result" >&2;};;
8420   no:yes )
8421     { echo "$as_me:$LINENO: WARNING: med.h: present but cannot be compiled" >&5
8422 echo "$as_me: WARNING: med.h: present but cannot be compiled" >&2;}
8423     { echo "$as_me:$LINENO: WARNING: med.h: check for missing prerequisite headers?" >&5
8424 echo "$as_me: WARNING: med.h: check for missing prerequisite headers?" >&2;}
8425     { echo "$as_me:$LINENO: WARNING: med.h: proceeding with the preprocessor's result" >&5
8426 echo "$as_me: WARNING: med.h: proceeding with the preprocessor's result" >&2;};;
8427 esac
8428 echo "$as_me:$LINENO: checking for med.h" >&5
8429 echo $ECHO_N "checking for med.h... $ECHO_C" >&6
8430 if test "${ac_cv_header_med_h+set}" = set; then
8431   echo $ECHO_N "(cached) $ECHO_C" >&6
8432 else
8433   ac_cv_header_med_h=$ac_header_preproc
8434 fi
8435 echo "$as_me:$LINENO: result: $ac_cv_header_med_h" >&5
8436 echo "${ECHO_T}$ac_cv_header_med_h" >&6
8437
8438 fi
8439 if test $ac_cv_header_med_h = yes; then
8440   med2_ok=yes
8441 else
8442   med2_ok=no
8443 fi
8444
8445
8446 CPPFLAGS="$CPPFLAGS_old"
8447
8448 if  test "x$med2_ok" = "xyes"
8449 then
8450
8451
8452   LIBS_old="$LIBS"
8453   LIBS="$LIBS $LOCAL_LIBS"
8454   echo "$as_me:$LINENO: checking for MEDouvrir in -lmed" >&5
8455 echo $ECHO_N "checking for MEDouvrir in -lmed... $ECHO_C" >&6
8456 if test "${ac_cv_lib_med_MEDouvrir+set}" = set; then
8457   echo $ECHO_N "(cached) $ECHO_C" >&6
8458 else
8459   ac_check_lib_save_LIBS=$LIBS
8460 LIBS="-lmed  $LIBS"
8461 cat >conftest.$ac_ext <<_ACEOF
8462 #line $LINENO "configure"
8463 #include "confdefs.h"
8464
8465 /* Override any gcc2 internal prototype to avoid an error.  */
8466 #ifdef __cplusplus
8467 extern "C"
8468 #endif
8469 /* We use char because int might match the return type of a gcc2
8470    builtin and then its argument prototype would still apply.  */
8471 char MEDouvrir ();
8472 #ifdef F77_DUMMY_MAIN
8473 #  ifdef __cplusplus
8474      extern "C"
8475 #  endif
8476    int F77_DUMMY_MAIN() { return 1; }
8477 #endif
8478 int
8479 main ()
8480 {
8481 MEDouvrir ();
8482   ;
8483   return 0;
8484 }
8485 _ACEOF
8486 rm -f conftest.$ac_objext conftest$ac_exeext
8487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8488   (eval $ac_link) 2>&5
8489   ac_status=$?
8490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491   (exit $ac_status); } &&
8492          { ac_try='test -s conftest$ac_exeext'
8493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494   (eval $ac_try) 2>&5
8495   ac_status=$?
8496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497   (exit $ac_status); }; }; then
8498   ac_cv_lib_med_MEDouvrir=yes
8499 else
8500   echo "$as_me: failed program was:" >&5
8501 cat conftest.$ac_ext >&5
8502 ac_cv_lib_med_MEDouvrir=no
8503 fi
8504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8505 LIBS=$ac_check_lib_save_LIBS
8506 fi
8507 echo "$as_me:$LINENO: result: $ac_cv_lib_med_MEDouvrir" >&5
8508 echo "${ECHO_T}$ac_cv_lib_med_MEDouvrir" >&6
8509 if test $ac_cv_lib_med_MEDouvrir = yes; then
8510   med2_ok=yes
8511 else
8512   med2_ok=no
8513 fi
8514
8515   LIBS="$LIBS_old"
8516
8517 fi
8518
8519 if  test "x$med2_ok" = "xyes"
8520 then
8521   MED2_INCLUDES="-DPCLINUX $LOCAL_INCLUDES"
8522   MED2_LIBS="$LOCAL_LIBS"
8523   MED2_MT_LIBS="$LOCAL_LIBS"
8524 fi
8525
8526 echo "$as_me:$LINENO: result: for med2: $med2_ok" >&5
8527 echo "${ECHO_T}for med2: $med2_ok" >&6
8528
8529
8530
8531 echo
8532 echo ---------------------------------------------
8533 echo Testing OpenCascade
8534 echo ---------------------------------------------
8535 echo
8536
8537
8538
8539 { echo "$as_me:$LINENO: checking for OpenCascade..." >&5
8540 echo "$as_me: checking for OpenCascade..." >&6;}
8541
8542
8543
8544 ac_ext=cc
8545 ac_cpp='$CXXCPP $CPPFLAGS'
8546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562 CAS_CPPFLAGS=""
8563 CAS_CXXFLAGS=""
8564 CAS_LDFLAGS=""
8565 occ_ok=no
8566
8567 case $host_os in
8568    linux*)
8569       casdir=Linux
8570       ;;
8571    freebsd*)
8572       casdir=Linux
8573       ;;
8574    irix5.*)
8575       casdir=Linux
8576       ;;
8577    irix6.*)
8578       casdir=Linux
8579       ;;
8580    osf4.*)
8581       casdir=Linux
8582       ;;
8583    solaris2.*)
8584       casdir=Linux
8585       ;;
8586    *)
8587       casdir=Linux
8588       ;;
8589 esac
8590
8591 if test -z $CASROOT; then
8592   { echo "$as_me:$LINENO: WARNING: You must provide CASROOT variable : see OCC installation manual" >&5
8593 echo "$as_me: WARNING: You must provide CASROOT variable : see OCC installation manual" >&2;}
8594 else
8595   occ_ok=yes
8596   OCC_VERSION_MAJOR=0
8597   ff=$CASROOT/inc/Standard_Version.hxx
8598   if test -f $ff ; then
8599     grep "define OCC_VERSION_MAJOR" $ff > /dev/null
8600     if test $? = 0 ; then
8601       OCC_VERSION_MAJOR=`grep "define OCC_VERSION_MAJOR" $ff | awk '{i=3 ; print $i}'`
8602     fi
8603   fi
8604 fi
8605
8606 if test "x$occ_ok" = "xyes"; then
8607
8608
8609   CPPFLAGS_old="$CPPFLAGS"
8610   CPPFLAGS="$CPPFLAGS -DLIN -DLINTEL -DCSFDB -DNO_CXX_EXCEPTION -DNo_exception -DHAVE_CONFIG_H -DHAVE_LIMITS_H -I$CASROOT/inc -Wno-deprecated -DHAVE_WOK_CONFIG_H"
8611   CXXFLAGS_old="$CXXFLAGS"
8612   CXXFLAGS="$CXXFLAGS -funsigned-char"
8613
8614   if test "${ac_cv_header_Standard_Type_hxx+set}" = set; then
8615   echo "$as_me:$LINENO: checking for Standard_Type.hxx" >&5
8616 echo $ECHO_N "checking for Standard_Type.hxx... $ECHO_C" >&6
8617 if test "${ac_cv_header_Standard_Type_hxx+set}" = set; then
8618   echo $ECHO_N "(cached) $ECHO_C" >&6
8619 fi
8620 echo "$as_me:$LINENO: result: $ac_cv_header_Standard_Type_hxx" >&5
8621 echo "${ECHO_T}$ac_cv_header_Standard_Type_hxx" >&6
8622 else
8623   # Is the header compilable?
8624 echo "$as_me:$LINENO: checking Standard_Type.hxx usability" >&5
8625 echo $ECHO_N "checking Standard_Type.hxx usability... $ECHO_C" >&6
8626 cat >conftest.$ac_ext <<_ACEOF
8627 #line $LINENO "configure"
8628 #include "confdefs.h"
8629 $ac_includes_default
8630 #include <Standard_Type.hxx>
8631 _ACEOF
8632 rm -f conftest.$ac_objext
8633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8634   (eval $ac_compile) 2>&5
8635   ac_status=$?
8636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637   (exit $ac_status); } &&
8638          { ac_try='test -s conftest.$ac_objext'
8639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8640   (eval $ac_try) 2>&5
8641   ac_status=$?
8642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643   (exit $ac_status); }; }; then
8644   ac_header_compiler=yes
8645 else
8646   echo "$as_me: failed program was:" >&5
8647 cat conftest.$ac_ext >&5
8648 ac_header_compiler=no
8649 fi
8650 rm -f conftest.$ac_objext conftest.$ac_ext
8651 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8652 echo "${ECHO_T}$ac_header_compiler" >&6
8653
8654 # Is the header present?
8655 echo "$as_me:$LINENO: checking Standard_Type.hxx presence" >&5
8656 echo $ECHO_N "checking Standard_Type.hxx presence... $ECHO_C" >&6
8657 cat >conftest.$ac_ext <<_ACEOF
8658 #line $LINENO "configure"
8659 #include "confdefs.h"
8660 #include <Standard_Type.hxx>
8661 _ACEOF
8662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8663   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8664   ac_status=$?
8665   egrep -v '^ *\+' conftest.er1 >conftest.err
8666   rm -f conftest.er1
8667   cat conftest.err >&5
8668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669   (exit $ac_status); } >/dev/null; then
8670   if test -s conftest.err; then
8671     ac_cpp_err=$ac_cxx_preproc_warn_flag
8672   else
8673     ac_cpp_err=
8674   fi
8675 else
8676   ac_cpp_err=yes
8677 fi
8678 if test -z "$ac_cpp_err"; then
8679   ac_header_preproc=yes
8680 else
8681   echo "$as_me: failed program was:" >&5
8682   cat conftest.$ac_ext >&5
8683   ac_header_preproc=no
8684 fi
8685 rm -f conftest.err conftest.$ac_ext
8686 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8687 echo "${ECHO_T}$ac_header_preproc" >&6
8688
8689 # So?  What about this header?
8690 case $ac_header_compiler:$ac_header_preproc in
8691   yes:no )
8692     { echo "$as_me:$LINENO: WARNING: Standard_Type.hxx: accepted by the compiler, rejected by the preprocessor!" >&5
8693 echo "$as_me: WARNING: Standard_Type.hxx: accepted by the compiler, rejected by the preprocessor!" >&2;}
8694     { echo "$as_me:$LINENO: WARNING: Standard_Type.hxx: proceeding with the preprocessor's result" >&5
8695 echo "$as_me: WARNING: Standard_Type.hxx: proceeding with the preprocessor's result" >&2;};;
8696   no:yes )
8697     { echo "$as_me:$LINENO: WARNING: Standard_Type.hxx: present but cannot be compiled" >&5
8698 echo "$as_me: WARNING: Standard_Type.hxx: present but cannot be compiled" >&2;}
8699     { echo "$as_me:$LINENO: WARNING: Standard_Type.hxx: check for missing prerequisite headers?" >&5
8700 echo "$as_me: WARNING: Standard_Type.hxx: check for missing prerequisite headers?" >&2;}
8701     { echo "$as_me:$LINENO: WARNING: Standard_Type.hxx: proceeding with the preprocessor's result" >&5
8702 echo "$as_me: WARNING: Standard_Type.hxx: proceeding with the preprocessor's result" >&2;};;
8703 esac
8704 echo "$as_me:$LINENO: checking for Standard_Type.hxx" >&5
8705 echo $ECHO_N "checking for Standard_Type.hxx... $ECHO_C" >&6
8706 if test "${ac_cv_header_Standard_Type_hxx+set}" = set; then
8707   echo $ECHO_N "(cached) $ECHO_C" >&6
8708 else
8709   ac_cv_header_Standard_Type_hxx=$ac_header_preproc
8710 fi
8711 echo "$as_me:$LINENO: result: $ac_cv_header_Standard_Type_hxx" >&5
8712 echo "${ECHO_T}$ac_cv_header_Standard_Type_hxx" >&6
8713
8714 fi
8715 if test $ac_cv_header_Standard_Type_hxx = yes; then
8716   occ_ok=yes
8717 else
8718   occ_ok=no
8719 fi
8720
8721
8722
8723   CPPFLAGS="$CPPFLAGS_old"
8724   CXXFLAGS="$CXXFLAGS_old"
8725 fi
8726
8727 if test "x$occ_ok" = xyes ; then
8728
8729   CAS_CPPFLAGS="-DOCC_VERSION_MAJOR=$OCC_VERSION_MAJOR -DLIN -DLINTEL -DCSFDB -DNO_CXX_EXCEPTION -DNo_exception -DHAVE_CONFIG_H -DHAVE_LIMITS_H -I$CASROOT/inc -DHAVE_WOK_CONFIG_H"
8730   CAS_CXXFLAGS="-funsigned-char"
8731
8732   echo "$as_me:$LINENO: checking for OpenCascade libraries" >&5
8733 echo $ECHO_N "checking for OpenCascade libraries... $ECHO_C" >&6
8734
8735   CPPFLAGS_old="$CPPFLAGS"
8736   CPPFLAGS="$CPPFLAGS $CAS_CPPFLAGS -Wno-deprecated"
8737   CXXFLAGS_old="$CXXFLAGS"
8738   CXXFLAGS="$CXXFLAGS $CAS_CXXFLAGS"
8739   LIBS_old="$LIBS"
8740   LIBS="$LIBS -L$CASROOT/$casdir/lib -lTKernel"
8741   if test "${salome_cv_lib_occ+set}" = set; then
8742   echo $ECHO_N "(cached) $ECHO_C" >&6
8743 else
8744
8745     cat >conftest.$ac_ext <<_ACEOF
8746 #line $LINENO "configure"
8747 #include "confdefs.h"
8748 using namespace std;
8749 #include <Standard_Type.hxx>
8750
8751 #ifdef F77_DUMMY_MAIN
8752 #  ifdef __cplusplus
8753      extern "C"
8754 #  endif
8755    int F77_DUMMY_MAIN() { return 1; }
8756 #endif
8757 int
8758 main ()
8759 {
8760 size_t size;
8761     const Standard_CString aName="toto";
8762     Standard_Type myST(aName) ;
8763     myST.Find(aName);
8764   ;
8765   return 0;
8766 }
8767 _ACEOF
8768 rm -f conftest.$ac_objext conftest$ac_exeext
8769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8770   (eval $ac_link) 2>&5
8771   ac_status=$?
8772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773   (exit $ac_status); } &&
8774          { ac_try='test -s conftest$ac_exeext'
8775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8776   (eval $ac_try) 2>&5
8777   ac_status=$?
8778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779   (exit $ac_status); }; }; then
8780   eval "salome_cv_lib_occ=yes"
8781 else
8782   echo "$as_me: failed program was:" >&5
8783 cat conftest.$ac_ext >&5
8784 eval "salome_cv_lib_occ=no"
8785 fi
8786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8787
8788 fi
8789
8790   occ_ok="$salome_cv_lib_occ"
8791
8792   CPPFLAGS="$CPPFLAGS_old"
8793   CXXFLAGS="$CXXFLAGS_old"
8794   LIBS="$LIBS_old"
8795 fi
8796
8797 if test "x$occ_ok" = xno ; then
8798   echo "$as_me:$LINENO: result: no" >&5
8799 echo "${ECHO_T}no" >&6
8800   { echo "$as_me:$LINENO: WARNING: Opencascade libraries not found" >&5
8801 echo "$as_me: WARNING: Opencascade libraries not found" >&2;}
8802 else
8803   echo "$as_me:$LINENO: result: yes" >&5
8804 echo "${ECHO_T}yes" >&6
8805   CAS_LDPATH="-L$CASROOT/$casdir/lib "
8806   CAS_KERNEL="$CAS_LDPATH -lTKernel -lTKMath"
8807   CAS_OCAF="$CAS_LDPATH -lPTKernel -lTKCAF -lFWOSPlugin -lTKPShape -lTKPCAF -lTKStdSchema -lTKShapeSchema -lPAppStdPlugin -lTKPAppStd -lTKCDF"
8808   CAS_VIEWER="$CAS_LDPATH -lTKOpenGl -lTKV3d -lTKService"
8809 #  CAS_MODELER="-L$CASROOT/$casdir/lib -lTKG2d -lTKG3d -lTKGeomBase -lTKBRep -lTKGeomAlgo -lTKTopAlgo -lTKPrim -lTKBool -lTKHLR -lTKFillet -lTKFeat -lTKOffset"
8810   CAS_MODELER="$CAS_LDPATH -lTKG2d -lTKG3d -lTKGeomBase -lTKBRep -lTKGeomAlgo -lTKTopAlgo -lTKPrim -lTKBool -lTKHLR -lTKFillet -lTKOffset"
8811   CAS_DATAEXCHANGE="$CAS_LDPATH -lTKXSBase -lTKIGES -lTKSTEP -lTKShHealing -lTKShHealingStd"
8812   CAS_LDFLAGS="$CAS_KERNEL $CAS_OCAF $CAS_VIEWER $CAS_MODELER $CAS_DATAEXCHANGE"
8813
8814
8815 fi
8816
8817 ac_ext=c
8818 ac_cpp='$CPP $CPPFLAGS'
8819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8822
8823
8824
8825
8826 echo
8827 echo ---------------------------------------------
8828 echo Testing html generators
8829 echo ---------------------------------------------
8830 echo
8831
8832
8833
8834 #AC_CHECKING(for html generators)
8835 { echo "$as_me:$LINENO: checking for doxygen..." >&5
8836 echo "$as_me: checking for doxygen..." >&6;}
8837
8838 doxygen_ok=yes
8839
8840
8841 # Extract the first word of "doxygen", so it can be a program name with args.
8842 set dummy doxygen; ac_word=$2
8843 echo "$as_me:$LINENO: checking for $ac_word" >&5
8844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8845 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8846   echo $ECHO_N "(cached) $ECHO_C" >&6
8847 else
8848   case $DOXYGEN in
8849   [\\/]* | ?:[\\/]*)
8850   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8851   ;;
8852   *)
8853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8854 for as_dir in $PATH
8855 do
8856   IFS=$as_save_IFS
8857   test -z "$as_dir" && as_dir=.
8858   for ac_exec_ext in '' $ac_executable_extensions; do
8859   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8860     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8862     break 2
8863   fi
8864 done
8865 done
8866
8867   ;;
8868 esac
8869 fi
8870 DOXYGEN=$ac_cv_path_DOXYGEN
8871
8872 if test -n "$DOXYGEN"; then
8873   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8874 echo "${ECHO_T}$DOXYGEN" >&6
8875 else
8876   echo "$as_me:$LINENO: result: no" >&5
8877 echo "${ECHO_T}no" >&6
8878 fi
8879
8880
8881 if test "x$DOXYGEN" = "x"
8882 then
8883   doxygen_ok=no
8884   echo "$as_me:$LINENO: result: no" >&5
8885 echo "${ECHO_T}no" >&6
8886   { echo "$as_me:$LINENO: WARNING: doxygen not found" >&5
8887 echo "$as_me: WARNING: doxygen not found" >&2;}
8888 else
8889     echo "$as_me:$LINENO: result: yes" >&5
8890 echo "${ECHO_T}yes" >&6
8891 fi
8892
8893 { echo "$as_me:$LINENO: checking for graphviz..." >&5
8894 echo "$as_me: checking for graphviz..." >&6;}
8895
8896 graphviz_ok=yes
8897
8898
8899 # Extract the first word of "dot", so it can be a program name with args.
8900 set dummy dot; ac_word=$2
8901 echo "$as_me:$LINENO: checking for $ac_word" >&5
8902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8903 if test "${ac_cv_path_DOT+set}" = set; then
8904   echo $ECHO_N "(cached) $ECHO_C" >&6
8905 else
8906   case $DOT in
8907   [\\/]* | ?:[\\/]*)
8908   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
8909   ;;
8910   *)
8911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8912 for as_dir in $PATH
8913 do
8914   IFS=$as_save_IFS
8915   test -z "$as_dir" && as_dir=.
8916   for ac_exec_ext in '' $ac_executable_extensions; do
8917   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8918     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
8919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8920     break 2
8921   fi
8922 done
8923 done
8924
8925   ;;
8926 esac
8927 fi
8928 DOT=$ac_cv_path_DOT
8929
8930 if test -n "$DOT"; then
8931   echo "$as_me:$LINENO: result: $DOT" >&5
8932 echo "${ECHO_T}$DOT" >&6
8933 else
8934   echo "$as_me:$LINENO: result: no" >&5
8935 echo "${ECHO_T}no" >&6
8936 fi
8937
8938
8939 if test "x$DOT" = "x" ; then
8940   graphviz_ok=no
8941   echo "$as_me:$LINENO: result: no" >&5
8942 echo "${ECHO_T}no" >&6
8943   { echo "$as_me:$LINENO: WARNING: graphviz not found" >&5
8944 echo "$as_me: WARNING: graphviz not found" >&2;}
8945 else
8946   echo "$as_me:$LINENO: result: yes" >&5
8947 echo "${ECHO_T}yes" >&6
8948 fi
8949
8950
8951
8952 echo
8953 echo ---------------------------------------------
8954 echo Testing Kernel
8955 echo ---------------------------------------------
8956 echo
8957
8958
8959
8960 { echo "$as_me:$LINENO: checking for Kernel..." >&5
8961 echo "$as_me: checking for Kernel..." >&6;}
8962
8963 Kernel_ok=no
8964
8965
8966 # Check whether --with-kernel or --without-kernel was given.
8967 if test "${with_kernel+set}" = set; then
8968   withval="$with_kernel"
8969   KERNEL_DIR="$withval"
8970 else
8971   KERNEL_DIR=""
8972 fi;
8973
8974 if test "x$KERNEL_DIR" == "x" ; then
8975
8976 # no --with-kernel-dir option used
8977
8978    if test "x$KERNEL_ROOT_DIR" != "x" ; then
8979
8980     # KERNEL_ROOT_DIR environment variable defined
8981       KERNEL_DIR=$KERNEL_ROOT_DIR
8982
8983    else
8984
8985     # search Kernel binaries in PATH variable
8986       # Extract the first word of "runSalome", so it can be a program name with args.
8987 set dummy runSalome; ac_word=$2
8988 echo "$as_me:$LINENO: checking for $ac_word" >&5
8989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8990 if test "${ac_cv_path_TEMP+set}" = set; then
8991   echo $ECHO_N "(cached) $ECHO_C" >&6
8992 else
8993   case $TEMP in
8994   [\\/]* | ?:[\\/]*)
8995   ac_cv_path_TEMP="$TEMP" # Let the user override the test with a path.
8996   ;;
8997   *)
8998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8999 for as_dir in $PATH
9000 do
9001   IFS=$as_save_IFS
9002   test -z "$as_dir" && as_dir=.
9003   for ac_exec_ext in '' $ac_executable_extensions; do
9004   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9005     ac_cv_path_TEMP="$as_dir/$ac_word$ac_exec_ext"
9006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9007     break 2
9008   fi
9009 done
9010 done
9011
9012   ;;
9013 esac
9014 fi
9015 TEMP=$ac_cv_path_TEMP
9016
9017 if test -n "$TEMP"; then
9018   echo "$as_me:$LINENO: result: $TEMP" >&5
9019 echo "${ECHO_T}$TEMP" >&6
9020 else
9021   echo "$as_me:$LINENO: result: no" >&5
9022 echo "${ECHO_T}no" >&6
9023 fi
9024
9025       if test "x$TEMP" != "x" ; then
9026          KERNEL_BIN_DIR=`dirname $TEMP`
9027          KERNEL_DIR=`dirname $KERNEL_BIN_DIR`
9028       fi
9029
9030    fi
9031 #
9032 fi
9033
9034 if test -f ${KERNEL_DIR}/bin/salome/runSalome ; then
9035    Kernel_ok=yes
9036    echo "$as_me:$LINENO: result: Using Kernel module distribution in ${KERNEL_DIR}" >&5
9037 echo "${ECHO_T}Using Kernel module distribution in ${KERNEL_DIR}" >&6
9038
9039    if test "x$KERNEL_ROOT_DIR" == "x" ; then
9040       KERNEL_ROOT_DIR=${KERNEL_DIR}
9041    fi
9042    if test "x$KERNEL_SITE_DIR" == "x" ; then
9043       KERNEL_SITE_DIR=${KERNEL_ROOT_DIR}
9044    fi
9045
9046
9047
9048 else
9049    { echo "$as_me:$LINENO: WARNING: \"Cannot find compiled Kernel module distribution\"" >&5
9050 echo "$as_me: WARNING: \"Cannot find compiled Kernel module distribution\"" >&2;}
9051 fi
9052
9053 echo "$as_me:$LINENO: result: for Kernel: $Kernel_ok" >&5
9054 echo "${ECHO_T}for Kernel: $Kernel_ok" >&6
9055
9056
9057
9058 echo
9059 echo ---------------------------------------------
9060 echo Testing Geom
9061 echo ---------------------------------------------
9062 echo
9063
9064
9065
9066 { echo "$as_me:$LINENO: checking for Geom..." >&5
9067 echo "$as_me: checking for Geom..." >&6;}
9068
9069 Geom_ok=no
9070
9071
9072 # Check whether --with-geom or --without-geom was given.
9073 if test "${with_geom+set}" = set; then
9074   withval="$with_geom"
9075   GEOM_DIR="$withval"
9076 else
9077   GEOM_DIR=""
9078 fi;
9079
9080 if test "x$GEOM_DIR" == "x" ; then
9081
9082 # no --with-geom-dir option used
9083
9084    if test "x$GEOM_ROOT_DIR" != "x" ; then
9085
9086     # GEOM_ROOT_DIR environment variable defined
9087       GEOM_DIR=$GEOM_ROOT_DIR
9088
9089    else
9090
9091     # search Geom binaries in PATH variable
9092       # Extract the first word of "libGEOM_Swig.py", so it can be a program name with args.
9093 set dummy libGEOM_Swig.py; ac_word=$2
9094 echo "$as_me:$LINENO: checking for $ac_word" >&5
9095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9096 if test "${ac_cv_path_TEMP+set}" = set; then
9097   echo $ECHO_N "(cached) $ECHO_C" >&6
9098 else
9099   case $TEMP in
9100   [\\/]* | ?:[\\/]*)
9101   ac_cv_path_TEMP="$TEMP" # Let the user override the test with a path.
9102   ;;
9103   *)
9104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9105 for as_dir in $PATH
9106 do
9107   IFS=$as_save_IFS
9108   test -z "$as_dir" && as_dir=.
9109   for ac_exec_ext in '' $ac_executable_extensions; do
9110   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9111     ac_cv_path_TEMP="$as_dir/$ac_word$ac_exec_ext"
9112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9113     break 2
9114   fi
9115 done
9116 done
9117
9118   ;;
9119 esac
9120 fi
9121 TEMP=$ac_cv_path_TEMP
9122
9123 if test -n "$TEMP"; then
9124   echo "$as_me:$LINENO: result: $TEMP" >&5
9125 echo "${ECHO_T}$TEMP" >&6
9126 else
9127   echo "$as_me:$LINENO: result: no" >&5
9128 echo "${ECHO_T}no" >&6
9129 fi
9130
9131       if test "x$TEMP" != "x" ; then
9132          GEOM_BIN_DIR=`dirname $TEMP`
9133          GEOM_DIR=`dirname $GEOM_BIN_DIR`
9134       fi
9135
9136    fi
9137 #
9138 fi
9139
9140 if test -f ${GEOM_DIR}/bin/salome/libGEOM_Swig.py ; then
9141    Geom_ok=yes
9142    echo "$as_me:$LINENO: result: Using Geom module distribution in ${GEOM_DIR}" >&5
9143 echo "${ECHO_T}Using Geom module distribution in ${GEOM_DIR}" >&6
9144
9145    if test "x$GEOM_ROOT_DIR" == "x" ; then
9146       GEOM_ROOT_DIR=${GEOM_DIR}
9147    fi
9148
9149
9150 else
9151    { echo "$as_me:$LINENO: WARNING: \"Cannot find compiled Geom module distribution\"" >&5
9152 echo "$as_me: WARNING: \"Cannot find compiled Geom module distribution\"" >&2;}
9153 fi
9154
9155 echo "$as_me:$LINENO: result: for Geom: $Geom_ok" >&5
9156 echo "${ECHO_T}for Geom: $Geom_ok" >&6
9157
9158
9159
9160 # echo
9161 # echo ---------------------------------------------
9162 # echo Testing Med
9163 # echo ---------------------------------------------
9164 # echo
9165 #
9166 # CHECK_MED
9167 #
9168 # echo
9169 # echo ---------------------------------------------
9170 # echo Testing Netgen
9171 # echo ---------------------------------------------
9172 # echo
9173 #
9174 # CHECK_NETGEN
9175 #
9176 echo
9177 echo ---------------------------------------------
9178 echo Testing SMesh
9179 echo ---------------------------------------------
9180 echo
9181
9182
9183
9184 { echo "$as_me:$LINENO: checking for SMesh..." >&5
9185 echo "$as_me: checking for SMesh..." >&6;}
9186
9187 SMesh_ok=no
9188
9189
9190 # Check whether --with-smesh or --without-smesh was given.
9191 if test "${with_smesh+set}" = set; then
9192   withval="$with_smesh"
9193   SMESH_DIR="$withval"
9194 else
9195   SMESH_DIR=""
9196 fi;
9197
9198 if test "x$SMESH_DIR" == "x" ; then
9199
9200 # no --with-smesh option used
9201
9202    if test "x$SMESH_ROOT_DIR" != "x" ; then
9203
9204     # SMESH_ROOT_DIR environment variable defined
9205       SMESH_DIR=$SMESH_ROOT_DIR
9206
9207    else
9208
9209     # search SMESH binaries in PATH variable
9210       # Extract the first word of "libSMESH_Swig.py", so it can be a program name with args.
9211 set dummy libSMESH_Swig.py; ac_word=$2
9212 echo "$as_me:$LINENO: checking for $ac_word" >&5
9213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9214 if test "${ac_cv_path_TEMP+set}" = set; then
9215   echo $ECHO_N "(cached) $ECHO_C" >&6
9216 else
9217   case $TEMP in
9218   [\\/]* | ?:[\\/]*)
9219   ac_cv_path_TEMP="$TEMP" # Let the user override the test with a path.
9220   ;;
9221   *)
9222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9223 for as_dir in $PATH
9224 do
9225   IFS=$as_save_IFS
9226   test -z "$as_dir" && as_dir=.
9227   for ac_exec_ext in '' $ac_executable_extensions; do
9228   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9229     ac_cv_path_TEMP="$as_dir/$ac_word$ac_exec_ext"
9230     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9231     break 2
9232   fi
9233 done
9234 done
9235
9236   ;;
9237 esac
9238 fi
9239 TEMP=$ac_cv_path_TEMP
9240
9241 if test -n "$TEMP"; then
9242   echo "$as_me:$LINENO: result: $TEMP" >&5
9243 echo "${ECHO_T}$TEMP" >&6
9244 else
9245   echo "$as_me:$LINENO: result: no" >&5
9246 echo "${ECHO_T}no" >&6
9247 fi
9248
9249       if test "x$TEMP" != "x" ; then
9250          SMESH_BIN_DIR=`dirname $TEMP`
9251          SMESH_DIR=`dirname $SMESH_BIN_DIR`
9252       fi
9253
9254    fi
9255 #
9256 fi
9257
9258 if test -f ${SMESH_DIR}/bin/salome/libSMESH_Swig.py ; then
9259    SMesh_ok=yes
9260    echo "$as_me:$LINENO: result: Using SMesh module distribution in ${SMESH_DIR}" >&5
9261 echo "${ECHO_T}Using SMesh module distribution in ${SMESH_DIR}" >&6
9262
9263    if test "x$SMESH_ROOT_DIR" == "x" ; then
9264       SMESH_ROOT_DIR=${SMESH_DIR}
9265    fi
9266
9267
9268 else
9269    { echo "$as_me:$LINENO: WARNING: \"Cannot find compiled SMesh module distribution\"" >&5
9270 echo "$as_me: WARNING: \"Cannot find compiled SMesh module distribution\"" >&2;}
9271 fi
9272
9273 echo "$as_me:$LINENO: result: for SMesh: $SMesh_ok" >&5
9274 echo "${ECHO_T}for SMesh: $SMesh_ok" >&6
9275
9276
9277
9278 echo
9279 echo ---------------------------------------------
9280 echo Testing GHS3D
9281 echo ---------------------------------------------
9282 echo
9283
9284
9285
9286
9287 { echo "$as_me:$LINENO: checking for GHS3D executable..." >&5
9288 echo "$as_me: checking for GHS3D executable..." >&6;}
9289
9290
9291
9292
9293
9294 # Check whether --with-ghs3d or --without-ghs3d was given.
9295 if test "${with_ghs3d+set}" = set; then
9296   withval="$with_ghs3d"
9297   GHS3D_HOME=$withval
9298 else
9299   GHS3D_HOME=""
9300 fi;
9301
9302 GHS3D_ok=yes
9303 GHS3D_HOME="/dn05/salome/GHS3D/"
9304 GHS3D="/misc/dn05/salome/GHS3D/ghs3d3.1-1/bin/Linux/ghs3dV3.1-1"
9305
9306 #if test "x$GHS3D_HOME" == "x" ; then
9307 #
9308 #   if test "x$GHS3DHOME" != "x" ; then
9309 #
9310 #    # GHS3DHOME environment variable defined
9311 #      GHS3D_HOME=$GHS3DHOME
9312 #
9313 #   fi
9314 #fi
9315
9316
9317   if test "x$GHS3D_ok" == xno ; then
9318     echo "$as_me:$LINENO: result: no" >&5
9319 echo "${ECHO_T}no" >&6
9320     { echo "$as_me:$LINENO: WARNING: GHS3D libraries not found or not properly installed" >&5
9321 echo "$as_me: WARNING: GHS3D libraries not found or not properly installed" >&2;}
9322   else
9323     echo "$as_me:$LINENO: result: yes" >&5
9324 echo "${ECHO_T}yes" >&6
9325   fi
9326 #fi
9327
9328
9329
9330 echo
9331 echo ---------------------------------------------
9332 echo Summary
9333 echo ---------------------------------------------
9334 echo
9335
9336 echo Configure
9337 variables="cc_ok boost_ok threads_ok omniORB_ok occ_ok doxygen_ok Kernel_ok Geom_ok SMesh_ok GHS3D_ok"
9338
9339 for var in $variables
9340 do
9341    printf "   %10s : " `echo \$var | sed -e "s,_ok,,"`
9342    eval echo \$$var
9343 done
9344
9345 echo
9346 echo "Default ORB   : $DEFAULT_ORB"
9347 echo
9348
9349
9350  COMMENCE=adm_local/unix/make_commence
9351  CONCLUDE=salome_adm/unix/make_conclude
9352  MODULE=salome_adm/unix/make_module
9353
9354  DEPEND=salome_adm/unix/depend
9355
9356 if test "X$GMAKE" = "Xyes"; then
9357     SETX=":"
9358 else
9359     SETX="set -x"
9360 fi
9361
9362 # make other build directories
9363 for rep in \
9364         salome_adm adm_local doc bin/salome include/salome lib/salome share/salome/resources #idl
9365 do
9366 #   if test ! -d $rep ; then
9367 #      eval mkdir $rep
9368 #   fi
9369     $INSTALL -d $rep
9370 done
9371
9372 echo
9373 echo ---------------------------------------------
9374 echo copying resource files, shell scripts, and
9375 echo xml files
9376 echo ---------------------------------------------
9377 echo
9378
9379
9380
9381 #for i in `find $ROOT_SRCDIR -name 'resources' -print`
9382 #do
9383 #  local_res=`echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
9384 #  local_res_dir=`echo $local_res | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
9385 #  mkdir -p $local_res_dir
9386 #  cd $local_res_dir
9387 #  ln -fs $i
9388 #  echo $local_res
9389 #  cd $ROOT_BUILDDIR
9390 #done
9391
9392
9393 #mkdir -p bin/salome
9394 #cd bin/salome
9395 #for i in $ROOT_SRCDIR/bin/*
9396 #do
9397 #  local_bin=`echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
9398 #  case "$local_bin" in
9399 #        *.in | *~)                    ;;
9400 #        ./bin/CVS | ./bin/salome)                    ;;
9401 #        *) /usr/bin/install -C $i .; echo $local_bin ;;
9402 #  esac
9403 #done
9404 #cd $ROOT_BUILDDIR
9405
9406  ENVSCRIPT=salome_adm/unix/envScript
9407
9408
9409 #cd lib
9410 #for i in `find $ROOT_SRCDIR -name "*.xml" -print`
9411 #do
9412 #  ln -fs $i
9413 #  echo `echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
9414 #done
9415 #cd $ROOT_BUILDDIR
9416
9417
9418 echo
9419 echo ---------------------------------------------
9420 echo generating Makefiles and configure files
9421 echo ---------------------------------------------
9422 echo
9423
9424 ac_config_commands="$ac_config_commands default-1"
9425
9426
9427 ## do not delete this line
9428
9429 ln -fs ${KERNEL_ROOT_DIR}/salome_adm ${ROOT_SRCDIR}/salome_adm
9430
9431 ac_config_files="$ac_config_files ./salome_adm/unix/SALOMEconfig.h ./salome_adm/unix/F77config.h ./salome_adm/unix/sstream ./salome_adm/unix/depend ./adm_local/unix/make_omniorb ./salome_adm/unix/envScript ./adm_local/unix/make_commence ./salome_adm/unix/make_conclude ./salome_adm/unix/make_module ./Makefile ./idl/Makefile ./src/Makefile"
9432 cat >confcache <<\_ACEOF
9433 # This file is a shell script that caches the results of configure
9434 # tests run on this system so they can be shared between configure
9435 # scripts and configure runs, see configure's option --config-cache.
9436 # It is not useful on other systems.  If it contains results you don't
9437 # want to keep, you may remove or edit it.
9438 #
9439 # config.status only pays attention to the cache file if you give it
9440 # the --recheck option to rerun configure.
9441 #
9442 # `ac_cv_env_foo' variables (set or unset) will be overriden when
9443 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9444 # following values.
9445
9446 _ACEOF
9447
9448 # The following way of writing the cache mishandles newlines in values,
9449 # but we know of no workaround that is simple, portable, and efficient.
9450 # So, don't put newlines in cache variables' values.
9451 # Ultrix sh set writes to stderr and can't be redirected directly,
9452 # and sets the high bit in the cache file unless we assign to the vars.
9453 {
9454   (set) 2>&1 |
9455     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9456     *ac_space=\ *)
9457       # `set' does not quote correctly, so add quotes (double-quote
9458       # substitution turns \\\\ into \\, and sed turns \\ into \).
9459       sed -n \
9460         "s/'/'\\\\''/g;
9461           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9462       ;;
9463     *)
9464       # `set' quotes correctly as required by POSIX, so do not add quotes.
9465       sed -n \
9466         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9467       ;;
9468     esac;
9469 } |
9470   sed '
9471      t clear
9472      : clear
9473      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9474      t end
9475      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9476      : end' >>confcache
9477 if cmp -s $cache_file confcache; then :; else
9478   if test -w $cache_file; then
9479     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9480     cat confcache >$cache_file
9481   else
9482     echo "not updating unwritable cache $cache_file"
9483   fi
9484 fi
9485 rm -f confcache
9486
9487 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9488 # Let make expand exec_prefix.
9489 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9490
9491 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9492 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9493 # trailing colons and then remove the whole line if VPATH becomes empty
9494 # (actually we leave an empty line to preserve line numbers).
9495 if test "x$srcdir" = x.; then
9496   ac_vpsub='/^[         ]*VPATH[        ]*=/{
9497 s/:*\$(srcdir):*/:/;
9498 s/:*\${srcdir}:*/:/;
9499 s/:*@srcdir@:*/:/;
9500 s/^\([^=]*=[    ]*\):*/\1/;
9501 s/:*$//;
9502 s/^[^=]*=[      ]*$//;
9503 }'
9504 fi
9505
9506 # Transform confdefs.h into DEFS.
9507 # Protect against shell expansion while executing Makefile rules.
9508 # Protect against Makefile macro expansion.
9509 #
9510 # If the first sed substitution is executed (which looks for macros that
9511 # take arguments), then we branch to the quote section.  Otherwise,
9512 # look for a macro that doesn't take arguments.
9513 cat >confdef2opt.sed <<\_ACEOF
9514 t clear
9515 : clear
9516 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
9517 t quote
9518 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
9519 t quote
9520 d
9521 : quote
9522 s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
9523 s,\[,\\&,g
9524 s,\],\\&,g
9525 s,\$,$$,g
9526 p
9527 _ACEOF
9528 # We use echo to avoid assuming a particular line-breaking character.
9529 # The extra dot is to prevent the shell from consuming trailing
9530 # line-breaks from the sub-command output.  A line-break within
9531 # single-quotes doesn't work because, if this script is created in a
9532 # platform that uses two characters for line-breaks (e.g., DOS), tr
9533 # would break.
9534 ac_LF_and_DOT=`echo; echo .`
9535 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
9536 rm -f confdef2opt.sed
9537
9538
9539
9540 : ${CONFIG_STATUS=./config.status}
9541 ac_clean_files_save=$ac_clean_files
9542 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9543 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9544 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9545 cat >$CONFIG_STATUS <<_ACEOF
9546 #! $SHELL
9547 # Generated by $as_me.
9548 # Run this file to recreate the current configuration.
9549 # Compiler output produced by configure, useful for debugging
9550 # configure, is in config.log if it exists.
9551
9552 debug=false
9553 SHELL=\${CONFIG_SHELL-$SHELL}
9554 _ACEOF
9555
9556 cat >>$CONFIG_STATUS <<\_ACEOF
9557
9558 ## --------------------- ##
9559 ## M4sh Initialization.  ##
9560 ## --------------------- ##
9561
9562 # Be Bourne compatible
9563 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9564   emulate sh
9565   NULLCMD=:
9566 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9567   set -o posix
9568 fi
9569
9570 # NLS nuisances.
9571 # Support unset when possible.
9572 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9573   as_unset=unset
9574 else
9575   as_unset=false
9576 fi
9577
9578 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
9579     { $as_unset LANG || test "${LANG+set}" != set; } ||
9580       { LANG=C; export LANG; }
9581 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
9582     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
9583       { LC_ALL=C; export LC_ALL; }
9584 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
9585     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
9586       { LC_TIME=C; export LC_TIME; }
9587 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
9588     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
9589       { LC_CTYPE=C; export LC_CTYPE; }
9590 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
9591     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
9592       { LANGUAGE=C; export LANGUAGE; }
9593 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
9594     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
9595       { LC_COLLATE=C; export LC_COLLATE; }
9596 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
9597     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
9598       { LC_NUMERIC=C; export LC_NUMERIC; }
9599 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
9600     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
9601       { LC_MESSAGES=C; export LC_MESSAGES; }
9602
9603
9604 # Name of the executable.
9605 as_me=`(basename "$0") 2>/dev/null ||
9606 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9607          X"$0" : 'X\(//\)$' \| \
9608          X"$0" : 'X\(/\)$' \| \
9609          .     : '\(.\)' 2>/dev/null ||
9610 echo X/"$0" |
9611     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9612           /^X\/\(\/\/\)$/{ s//\1/; q; }
9613           /^X\/\(\/\).*/{ s//\1/; q; }
9614           s/.*/./; q'`
9615
9616 # PATH needs CR, and LINENO needs CR and PATH.
9617 # Avoid depending upon Character Ranges.
9618 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9619 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9620 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9621 as_cr_digits='0123456789'
9622 as_cr_alnum=$as_cr_Letters$as_cr_digits
9623
9624 # The user is always right.
9625 if test "${PATH_SEPARATOR+set}" != set; then
9626   echo "#! /bin/sh" >conftest.sh
9627   echo  "exit 0"   >>conftest.sh
9628   chmod +x conftest.sh
9629   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
9630     PATH_SEPARATOR=';'
9631   else
9632     PATH_SEPARATOR=:
9633   fi
9634   rm -f conftest.sh
9635 fi
9636
9637
9638   as_lineno_1=$LINENO
9639   as_lineno_2=$LINENO
9640   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9641   test "x$as_lineno_1" != "x$as_lineno_2" &&
9642   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9643   # Find who we are.  Look in the path if we contain no path at all
9644   # relative or not.
9645   case $0 in
9646     *[\\/]* ) as_myself=$0 ;;
9647     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9648 for as_dir in $PATH
9649 do
9650   IFS=$as_save_IFS
9651   test -z "$as_dir" && as_dir=.
9652   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9653 done
9654
9655        ;;
9656   esac
9657   # We did not find ourselves, most probably we were run as `sh COMMAND'
9658   # in which case we are not to be found in the path.
9659   if test "x$as_myself" = x; then
9660     as_myself=$0
9661   fi
9662   if test ! -f "$as_myself"; then
9663     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9664 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9665    { (exit 1); exit 1; }; }
9666   fi
9667   case $CONFIG_SHELL in
9668   '')
9669     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9670 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9671 do
9672   IFS=$as_save_IFS
9673   test -z "$as_dir" && as_dir=.
9674   for as_base in sh bash ksh sh5; do
9675          case $as_dir in
9676          /*)
9677            if ("$as_dir/$as_base" -c '
9678   as_lineno_1=$LINENO
9679   as_lineno_2=$LINENO
9680   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9681   test "x$as_lineno_1" != "x$as_lineno_2" &&
9682   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9683              CONFIG_SHELL=$as_dir/$as_base
9684              export CONFIG_SHELL
9685              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9686            fi;;
9687          esac
9688        done
9689 done
9690 ;;
9691   esac
9692
9693   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9694   # uniformly replaced by the line number.  The first 'sed' inserts a
9695   # line-number line before each line; the second 'sed' does the real
9696   # work.  The second script uses 'N' to pair each line-number line
9697   # with the numbered line, and appends trailing '-' during
9698   # substitution so that $LINENO is not a special case at line end.
9699   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9700   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9701   sed '=' <$as_myself |
9702     sed '
9703       N
9704       s,$,-,
9705       : loop
9706       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9707       t loop
9708       s,-$,,
9709       s,^['$as_cr_digits']*\n,,
9710     ' >$as_me.lineno &&
9711   chmod +x $as_me.lineno ||
9712     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9713 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9714    { (exit 1); exit 1; }; }
9715
9716   # Don't try to exec as it changes $[0], causing all sort of problems
9717   # (the dirname of $[0] is not the place where we might find the
9718   # original and so on.  Autoconf is especially sensible to this).
9719   . ./$as_me.lineno
9720   # Exit status is that of the last command.
9721   exit
9722 }
9723
9724
9725 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9726   *c*,-n*) ECHO_N= ECHO_C='
9727 ' ECHO_T='      ' ;;
9728   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9729   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9730 esac
9731
9732 if expr a : '\(a\)' >/dev/null 2>&1; then
9733   as_expr=expr
9734 else
9735   as_expr=false
9736 fi
9737
9738 rm -f conf$$ conf$$.exe conf$$.file
9739 echo >conf$$.file
9740 if ln -s conf$$.file conf$$ 2>/dev/null; then
9741   # We could just check for DJGPP; but this test a) works b) is more generic
9742   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9743   if test -f conf$$.exe; then
9744     # Don't use ln at all; we don't have any links
9745     as_ln_s='cp -p'
9746   else
9747     as_ln_s='ln -s'
9748   fi
9749 elif ln conf$$.file conf$$ 2>/dev/null; then
9750   as_ln_s=ln
9751 else
9752   as_ln_s='cp -p'
9753 fi
9754 rm -f conf$$ conf$$.exe conf$$.file
9755
9756 as_executable_p="test -f"
9757
9758 # Sed expression to map a string onto a valid CPP name.
9759 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9760
9761 # Sed expression to map a string onto a valid variable name.
9762 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9763
9764
9765 # IFS
9766 # We need space, tab and new line, in precisely that order.
9767 as_nl='
9768 '
9769 IFS="   $as_nl"
9770
9771 # CDPATH.
9772 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
9773
9774 exec 6>&1
9775
9776 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9777 # report actual input values of CONFIG_FILES etc. instead of their
9778 # values after options handling.  Logging --version etc. is OK.
9779 exec 5>>config.log
9780 {
9781   echo
9782   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9783 ## Running $as_me. ##
9784 _ASBOX
9785 } >&5
9786 cat >&5 <<_CSEOF
9787
9788 This file was extended by $as_me, which was
9789 generated by GNU Autoconf 2.53.  Invocation command line was
9790
9791   CONFIG_FILES    = $CONFIG_FILES
9792   CONFIG_HEADERS  = $CONFIG_HEADERS
9793   CONFIG_LINKS    = $CONFIG_LINKS
9794   CONFIG_COMMANDS = $CONFIG_COMMANDS
9795   $ $0 $@
9796
9797 _CSEOF
9798 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9799 echo >&5
9800 _ACEOF
9801
9802 # Files that config.status was made for.
9803 if test -n "$ac_config_files"; then
9804   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9805 fi
9806
9807 if test -n "$ac_config_headers"; then
9808   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9809 fi
9810
9811 if test -n "$ac_config_links"; then
9812   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9813 fi
9814
9815 if test -n "$ac_config_commands"; then
9816   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9817 fi
9818
9819 cat >>$CONFIG_STATUS <<\_ACEOF
9820
9821 ac_cs_usage="\
9822 \`$as_me' instantiates files from templates according to the
9823 current configuration.
9824
9825 Usage: $0 [OPTIONS] [FILE]...
9826
9827   -h, --help       print this help, then exit
9828   -V, --version    print version number, then exit
9829   -d, --debug      don't remove temporary files
9830       --recheck    update $as_me by reconfiguring in the same conditions
9831   --file=FILE[:TEMPLATE]
9832                    instantiate the configuration file FILE
9833
9834 Configuration files:
9835 $config_files
9836
9837 Configuration commands:
9838 $config_commands
9839
9840 Report bugs to <bug-autoconf@gnu.org>."
9841 _ACEOF
9842
9843 cat >>$CONFIG_STATUS <<_ACEOF
9844 ac_cs_version="\\
9845 config.status
9846 configured by $0, generated by GNU Autoconf 2.53,
9847   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9848
9849 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9850 Free Software Foundation, Inc.
9851 This config.status script is free software; the Free Software Foundation
9852 gives unlimited permission to copy, distribute and modify it."
9853 srcdir=$srcdir
9854 INSTALL="$INSTALL"
9855 _ACEOF
9856
9857 cat >>$CONFIG_STATUS <<\_ACEOF
9858 # If no file are specified by the user, then we need to provide default
9859 # value.  By we need to know if files were specified by the user.
9860 ac_need_defaults=:
9861 while test $# != 0
9862 do
9863   case $1 in
9864   --*=*)
9865     ac_option=`expr "x$1" : 'x\([^=]*\)='`
9866     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9867     shift
9868     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
9869     shift
9870     ;;
9871   -*);;
9872   *) # This is not an option, so the user has probably given explicit
9873      # arguments.
9874      ac_need_defaults=false;;
9875   esac
9876
9877   case $1 in
9878   # Handling of the options.
9879 _ACEOF
9880 cat >>$CONFIG_STATUS <<_ACEOF
9881   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9882     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
9883     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9884 _ACEOF
9885 cat >>$CONFIG_STATUS <<\_ACEOF
9886   --version | --vers* | -V )
9887     echo "$ac_cs_version"; exit 0 ;;
9888   --he | --h)
9889     # Conflict between --help and --header
9890     { { echo "$as_me:$LINENO: error: ambiguous option: $1
9891 Try \`$0 --help' for more information." >&5
9892 echo "$as_me: error: ambiguous option: $1
9893 Try \`$0 --help' for more information." >&2;}
9894    { (exit 1); exit 1; }; };;
9895   --help | --hel | -h )
9896     echo "$ac_cs_usage"; exit 0 ;;
9897   --debug | --d* | -d )
9898     debug=: ;;
9899   --file | --fil | --fi | --f )
9900     shift
9901     CONFIG_FILES="$CONFIG_FILES $1"
9902     ac_need_defaults=false;;
9903   --header | --heade | --head | --hea )
9904     shift
9905     CONFIG_HEADERS="$CONFIG_HEADERS $1"
9906     ac_need_defaults=false;;
9907
9908   # This is an error.
9909   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9910 Try \`$0 --help' for more information." >&5
9911 echo "$as_me: error: unrecognized option: $1
9912 Try \`$0 --help' for more information." >&2;}
9913    { (exit 1); exit 1; }; } ;;
9914
9915   *) ac_config_targets="$ac_config_targets $1" ;;
9916
9917   esac
9918   shift
9919 done
9920
9921 _ACEOF
9922
9923 cat >>$CONFIG_STATUS <<_ACEOF
9924 #
9925 # INIT-COMMANDS section.
9926 #
9927
9928
9929
9930 _ACEOF
9931
9932
9933
9934 cat >>$CONFIG_STATUS <<\_ACEOF
9935 for ac_config_target in $ac_config_targets
9936 do
9937   case "$ac_config_target" in
9938   # Handling of arguments.
9939   "./salome_adm/unix/SALOMEconfig.h" ) CONFIG_FILES="$CONFIG_FILES ./salome_adm/unix/SALOMEconfig.h" ;;
9940   "./salome_adm/unix/F77config.h" ) CONFIG_FILES="$CONFIG_FILES ./salome_adm/unix/F77config.h" ;;
9941   "./salome_adm/unix/sstream" ) CONFIG_FILES="$CONFIG_FILES ./salome_adm/unix/sstream" ;;
9942   "./salome_adm/unix/depend" ) CONFIG_FILES="$CONFIG_FILES ./salome_adm/unix/depend" ;;
9943   "./adm_local/unix/make_omniorb" ) CONFIG_FILES="$CONFIG_FILES ./adm_local/unix/make_omniorb" ;;
9944   "./salome_adm/unix/envScript" ) CONFIG_FILES="$CONFIG_FILES ./salome_adm/unix/envScript" ;;
9945   "./adm_local/unix/make_commence" ) CONFIG_FILES="$CONFIG_FILES ./adm_local/unix/make_commence" ;;
9946   "./salome_adm/unix/make_conclude" ) CONFIG_FILES="$CONFIG_FILES ./salome_adm/unix/make_conclude" ;;
9947   "./salome_adm/unix/make_module" ) CONFIG_FILES="$CONFIG_FILES ./salome_adm/unix/make_module" ;;
9948   "./Makefile" ) CONFIG_FILES="$CONFIG_FILES ./Makefile" ;;
9949   "./idl/Makefile" ) CONFIG_FILES="$CONFIG_FILES ./idl/Makefile" ;;
9950   "./src/Makefile" ) CONFIG_FILES="$CONFIG_FILES ./src/Makefile" ;;
9951   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9952   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9953 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9954    { (exit 1); exit 1; }; };;
9955   esac
9956 done
9957
9958 # If the user did not use the arguments to specify the items to instantiate,
9959 # then the envvar interface is used.  Set only those that are not.
9960 # We use the long form for the default assignment because of an extremely
9961 # bizarre bug on SunOS 4.1.3.
9962 if $ac_need_defaults; then
9963   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9964   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9965 fi
9966
9967 # Create a temporary directory, and hook for its removal unless debugging.
9968 $debug ||
9969 {
9970   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9971   trap '{ (exit 1); exit 1; }' 1 2 13 15
9972 }
9973
9974 # Create a (secure) tmp directory for tmp files.
9975 : ${TMPDIR=/tmp}
9976 {
9977   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9978   test -n "$tmp" && test -d "$tmp"
9979 }  ||
9980 {
9981   tmp=$TMPDIR/cs$$-$RANDOM
9982   (umask 077 && mkdir $tmp)
9983 } ||
9984 {
9985    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9986    { (exit 1); exit 1; }
9987 }
9988
9989 _ACEOF
9990
9991 cat >>$CONFIG_STATUS <<_ACEOF
9992
9993 #
9994 # CONFIG_FILES section.
9995 #
9996
9997 # No need to generate the scripts if there are no CONFIG_FILES.
9998 # This happens for instance when ./config.status config.h
9999 if test -n "\$CONFIG_FILES"; then
10000   # Protect against being on the right side of a sed subst in config.status.
10001   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10002    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10003 s,@SHELL@,$SHELL,;t t
10004 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10005 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10006 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10007 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10008 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10009 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10010 s,@exec_prefix@,$exec_prefix,;t t
10011 s,@prefix@,$prefix,;t t
10012 s,@program_transform_name@,$program_transform_name,;t t
10013 s,@bindir@,$bindir,;t t
10014 s,@sbindir@,$sbindir,;t t
10015 s,@libexecdir@,$libexecdir,;t t
10016 s,@datadir@,$datadir,;t t
10017 s,@sysconfdir@,$sysconfdir,;t t
10018 s,@sharedstatedir@,$sharedstatedir,;t t
10019 s,@localstatedir@,$localstatedir,;t t
10020 s,@libdir@,$libdir,;t t
10021 s,@includedir@,$includedir,;t t
10022 s,@oldincludedir@,$oldincludedir,;t t
10023 s,@infodir@,$infodir,;t t
10024 s,@mandir@,$mandir,;t t
10025 s,@build_alias@,$build_alias,;t t
10026 s,@host_alias@,$host_alias,;t t
10027 s,@target_alias@,$target_alias,;t t
10028 s,@DEFS@,$DEFS,;t t
10029 s,@ECHO_C@,$ECHO_C,;t t
10030 s,@ECHO_N@,$ECHO_N,;t t
10031 s,@ECHO_T@,$ECHO_T,;t t
10032 s,@LIBS@,$LIBS,;t t
10033 s,@build@,$build,;t t
10034 s,@build_cpu@,$build_cpu,;t t
10035 s,@build_vendor@,$build_vendor,;t t
10036 s,@build_os@,$build_os,;t t
10037 s,@host@,$host,;t t
10038 s,@host_cpu@,$host_cpu,;t t
10039 s,@host_vendor@,$host_vendor,;t t
10040 s,@host_os@,$host_os,;t t
10041 s,@PACKAGE@,$PACKAGE,;t t
10042 s,@VERSION@,$VERSION,;t t
10043 s,@ROOT_SRCDIR@,$ROOT_SRCDIR,;t t
10044 s,@ROOT_BUILDDIR@,$ROOT_BUILDDIR,;t t
10045 s,@AR@,$AR,;t t
10046 s,@SET_MAKE@,$SET_MAKE,;t t
10047 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10048 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10049 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10050 s,@RANLIB@,$RANLIB,;t t
10051 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10052 s,@CC@,$CC,;t t
10053 s,@CFLAGS@,$CFLAGS,;t t
10054 s,@LDFLAGS@,$LDFLAGS,;t t
10055 s,@CPPFLAGS@,$CPPFLAGS,;t t
10056 s,@ac_ct_CC@,$ac_ct_CC,;t t
10057 s,@EXEEXT@,$EXEEXT,;t t
10058 s,@OBJEXT@,$OBJEXT,;t t
10059 s,@LN_S@,$LN_S,;t t
10060 s,@LIBTOOL@,$LIBTOOL,;t t
10061 s,@CXX@,$CXX,;t t
10062 s,@CXXFLAGS@,$CXXFLAGS,;t t
10063 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10064 s,@C_DEPEND_FLAG@,$C_DEPEND_FLAG,;t t
10065 s,@CXX_DEPEND_FLAG@,$CXX_DEPEND_FLAG,;t t
10066 s,@HAVE_SSTREAM@,$HAVE_SSTREAM,;t t
10067 s,@BOOST_CPPFLAGS@,$BOOST_CPPFLAGS,;t t
10068 s,@CXXCPP@,$CXXCPP,;t t
10069 s,@CPP@,$CPP,;t t
10070 s,@MPICH_INCLUDES@,$MPICH_INCLUDES,;t t
10071 s,@MPICH_LIBS@,$MPICH_LIBS,;t t
10072 s,@WITHMPICH@,$WITHMPICH,;t t
10073 s,@YACC@,$YACC,;t t
10074 s,@LEX@,$LEX,;t t
10075 s,@LEXLIB@,$LEXLIB,;t t
10076 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
10077 s,@PYTHON@,$PYTHON,;t t
10078 s,@PYTHON_PREFIX@,$PYTHON_PREFIX,;t t
10079 s,@PYTHONHOME@,$PYTHONHOME,;t t
10080 s,@PYTHON_VERSION@,$PYTHON_VERSION,;t t
10081 s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
10082 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
10083 s,@PYTHON_PLATFORM@,$PYTHON_PLATFORM,;t t
10084 s,@PYTHON_SITE@,$PYTHON_SITE,;t t
10085 s,@PYTHON_SITE_PACKAGE@,$PYTHON_SITE_PACKAGE,;t t
10086 s,@PYTHON_SITE_EXEC@,$PYTHON_SITE_EXEC,;t t
10087 s,@PYTHON_SITE_INSTALL@,$PYTHON_SITE_INSTALL,;t t
10088 s,@pythondir@,$pythondir,;t t
10089 s,@SWIG@,$SWIG,;t t
10090 s,@SWIG_FLAGS@,$SWIG_FLAGS,;t t
10091 s,@target@,$target,;t t
10092 s,@target_cpu@,$target_cpu,;t t
10093 s,@target_vendor@,$target_vendor,;t t
10094 s,@target_os@,$target_os,;t t
10095 s,@OMNIORB_IDL@,$OMNIORB_IDL,;t t
10096 s,@OMNIORB_ROOT@,$OMNIORB_ROOT,;t t
10097 s,@OMNIORB_INCLUDES@,$OMNIORB_INCLUDES,;t t
10098 s,@OMNIORB_CXXFLAGS@,$OMNIORB_CXXFLAGS,;t t
10099 s,@OMNIORB_LIBS@,$OMNIORB_LIBS,;t t
10100 s,@OMNIORB_IDLCXXFLAGS@,$OMNIORB_IDLCXXFLAGS,;t t
10101 s,@OMNIORB_IDLPYFLAGS@,$OMNIORB_IDLPYFLAGS,;t t
10102 s,@OMNIORB_IDL_CLN_H@,$OMNIORB_IDL_CLN_H,;t t
10103 s,@OMNIORB_IDL_CLN_CXX@,$OMNIORB_IDL_CLN_CXX,;t t
10104 s,@OMNIORB_IDL_CLN_OBJ@,$OMNIORB_IDL_CLN_OBJ,;t t
10105 s,@OMNIORB_IDL_SRV_H@,$OMNIORB_IDL_SRV_H,;t t
10106 s,@OMNIORB_IDL_SRV_CXX@,$OMNIORB_IDL_SRV_CXX,;t t
10107 s,@OMNIORB_IDL_SRV_OBJ@,$OMNIORB_IDL_SRV_OBJ,;t t
10108 s,@OMNIORB_IDL_TIE_H@,$OMNIORB_IDL_TIE_H,;t t
10109 s,@OMNIORB_IDL_TIE_CXX@,$OMNIORB_IDL_TIE_CXX,;t t
10110 s,@PYTHONPATH@,$PYTHONPATH,;t t
10111 s,@IDL@,$IDL,;t t
10112 s,@CORBA_ROOT@,$CORBA_ROOT,;t t
10113 s,@CORBA_INCLUDES@,$CORBA_INCLUDES,;t t
10114 s,@CORBA_CXXFLAGS@,$CORBA_CXXFLAGS,;t t
10115 s,@CORBA_LIBS@,$CORBA_LIBS,;t t
10116 s,@IDLCXXFLAGS@,$IDLCXXFLAGS,;t t
10117 s,@IDLPYFLAGS@,$IDLPYFLAGS,;t t
10118 s,@IDL_CLN_H@,$IDL_CLN_H,;t t
10119 s,@IDL_CLN_CXX@,$IDL_CLN_CXX,;t t
10120 s,@IDL_CLN_OBJ@,$IDL_CLN_OBJ,;t t
10121 s,@IDL_SRV_H@,$IDL_SRV_H,;t t
10122 s,@IDL_SRV_CXX@,$IDL_SRV_CXX,;t t
10123 s,@IDL_SRV_OBJ@,$IDL_SRV_OBJ,;t t
10124 /@CORBA@/r $CORBA
10125 s,@CORBA@,,;t t
10126 s,@OGL_INCLUDES@,$OGL_INCLUDES,;t t
10127 s,@OGL_LIBS@,$OGL_LIBS,;t t
10128 s,@MOC@,$MOC,;t t
10129 s,@UIC@,$UIC,;t t
10130 s,@QTDIR@,$QTDIR,;t t
10131 s,@QT_ROOT@,$QT_ROOT,;t t
10132 s,@QT_INCLUDES@,$QT_INCLUDES,;t t
10133 s,@QT_LIBS@,$QT_LIBS,;t t
10134 s,@QT_MT_LIBS@,$QT_MT_LIBS,;t t
10135 s,@VTK_INCLUDES@,$VTK_INCLUDES,;t t
10136 s,@VTK_LIBS@,$VTK_LIBS,;t t
10137 s,@VTKPY_MODULES@,$VTKPY_MODULES,;t t
10138 s,@HDF5_INCLUDES@,$HDF5_INCLUDES,;t t
10139 s,@HDF5_LIBS@,$HDF5_LIBS,;t t
10140 s,@HDF5_MT_LIBS@,$HDF5_MT_LIBS,;t t
10141 s,@MED2_INCLUDES@,$MED2_INCLUDES,;t t
10142 s,@MED2_LIBS@,$MED2_LIBS,;t t
10143 s,@MED2_MT_LIBS@,$MED2_MT_LIBS,;t t
10144 s,@CAS_CPPFLAGS@,$CAS_CPPFLAGS,;t t
10145 s,@CAS_CXXFLAGS@,$CAS_CXXFLAGS,;t t
10146 s,@CAS_KERNEL@,$CAS_KERNEL,;t t
10147 s,@CAS_VIEWER@,$CAS_VIEWER,;t t
10148 s,@CAS_MODELER@,$CAS_MODELER,;t t
10149 s,@CAS_OCAF@,$CAS_OCAF,;t t
10150 s,@CAS_DATAEXCHANGE@,$CAS_DATAEXCHANGE,;t t
10151 s,@CAS_LDFLAGS@,$CAS_LDFLAGS,;t t
10152 s,@CAS_LDPATH@,$CAS_LDPATH,;t t
10153 s,@DOXYGEN@,$DOXYGEN,;t t
10154 s,@DOT@,$DOT,;t t
10155 s,@TEMP@,$TEMP,;t t
10156 s,@KERNEL_ROOT_DIR@,$KERNEL_ROOT_DIR,;t t
10157 s,@KERNEL_SITE_DIR@,$KERNEL_SITE_DIR,;t t
10158 s,@GEOM_ROOT_DIR@,$GEOM_ROOT_DIR,;t t
10159 s,@SMESH_ROOT_DIR@,$SMESH_ROOT_DIR,;t t
10160 /@COMMENCE@/r $COMMENCE
10161 s,@COMMENCE@,,;t t
10162 /@CONCLUDE@/r $CONCLUDE
10163 s,@CONCLUDE@,,;t t
10164 /@MODULE@/r $MODULE
10165 s,@MODULE@,,;t t
10166 /@DEPEND@/r $DEPEND
10167 s,@DEPEND@,,;t t
10168 s,@SETX@,$SETX,;t t
10169 /@ENVSCRIPT@/r $ENVSCRIPT
10170 s,@ENVSCRIPT@,,;t t
10171 CEOF
10172
10173 _ACEOF
10174
10175   cat >>$CONFIG_STATUS <<\_ACEOF
10176   # Split the substitutions into bite-sized pieces for seds with
10177   # small command number limits, like on Digital OSF/1 and HP-UX.
10178   ac_max_sed_lines=48
10179   ac_sed_frag=1 # Number of current file.
10180   ac_beg=1 # First line for current file.
10181   ac_end=$ac_max_sed_lines # Line after last line for current file.
10182   ac_more_lines=:
10183   ac_sed_cmds=
10184   while $ac_more_lines; do
10185     if test $ac_beg -gt 1; then
10186       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10187     else
10188       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10189     fi
10190     if test ! -s $tmp/subs.frag; then
10191       ac_more_lines=false
10192     else
10193       # The purpose of the label and of the branching condition is to
10194       # speed up the sed processing (if there are no `@' at all, there
10195       # is no need to browse any of the substitutions).
10196       # These are the two extra sed commands mentioned above.
10197       (echo ':t
10198   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10199       if test -z "$ac_sed_cmds"; then
10200         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10201       else
10202         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10203       fi
10204       ac_sed_frag=`expr $ac_sed_frag + 1`
10205       ac_beg=$ac_end
10206       ac_end=`expr $ac_end + $ac_max_sed_lines`
10207     fi
10208   done
10209   if test -z "$ac_sed_cmds"; then
10210     ac_sed_cmds=cat
10211   fi
10212 fi # test -n "$CONFIG_FILES"
10213
10214 _ACEOF
10215 cat >>$CONFIG_STATUS <<\_ACEOF
10216 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10217   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10218   case $ac_file in
10219   - | *:- | *:-:* ) # input from stdin
10220         cat >$tmp/stdin
10221         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10222         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10223   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10224         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10225   * )   ac_file_in=$ac_file.in ;;
10226   esac
10227
10228   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10229   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10230 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10231          X"$ac_file" : 'X\(//\)[^/]' \| \
10232          X"$ac_file" : 'X\(//\)$' \| \
10233          X"$ac_file" : 'X\(/\)' \| \
10234          .     : '\(.\)' 2>/dev/null ||
10235 echo X"$ac_file" |
10236     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10237           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10238           /^X\(\/\/\)$/{ s//\1/; q; }
10239           /^X\(\/\).*/{ s//\1/; q; }
10240           s/.*/./; q'`
10241   { case "$ac_dir" in
10242   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10243   *)                      as_incr_dir=.;;
10244 esac
10245 as_dummy="$ac_dir"
10246 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10247   case $as_mkdir_dir in
10248     # Skip DOS drivespec
10249     ?:) as_incr_dir=$as_mkdir_dir ;;
10250     *)
10251       as_incr_dir=$as_incr_dir/$as_mkdir_dir
10252       test -d "$as_incr_dir" ||
10253         mkdir "$as_incr_dir" ||
10254         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
10255 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10256    { (exit 1); exit 1; }; }
10257     ;;
10258   esac
10259 done; }
10260
10261   ac_builddir=.
10262
10263 if test "$ac_dir" != .; then
10264   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10265   # A "../" for each directory in $ac_dir_suffix.
10266   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10267 else
10268   ac_dir_suffix= ac_top_builddir=
10269 fi
10270
10271 case $srcdir in
10272   .)  # No --srcdir option.  We are building in place.
10273     ac_srcdir=.
10274     if test -z "$ac_top_builddir"; then
10275        ac_top_srcdir=.
10276     else
10277        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10278     fi ;;
10279   [\\/]* | ?:[\\/]* )  # Absolute path.
10280     ac_srcdir=$srcdir$ac_dir_suffix;
10281     ac_top_srcdir=$srcdir ;;
10282   *) # Relative path.
10283     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10284     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10285 esac
10286 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10287 # absolute.
10288 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10289 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10290 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10291 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10292
10293
10294   case $INSTALL in
10295   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10296   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10297   esac
10298
10299   if test x"$ac_file" != x-; then
10300     { echo "$as_me:$LINENO: creating $ac_file" >&5
10301 echo "$as_me: creating $ac_file" >&6;}
10302     rm -f "$ac_file"
10303   fi
10304   # Let's still pretend it is `configure' which instantiates (i.e., don't
10305   # use $as_me), people would be surprised to read:
10306   #    /* config.h.  Generated by config.status.  */
10307   if test x"$ac_file" = x-; then
10308     configure_input=
10309   else
10310     configure_input="$ac_file.  "
10311   fi
10312   configure_input=$configure_input"Generated from `echo $ac_file_in |
10313                                      sed 's,.*/,,'` by configure."
10314
10315   # First look for the input files in the build tree, otherwise in the
10316   # src tree.
10317   ac_file_inputs=`IFS=:
10318     for f in $ac_file_in; do
10319       case $f in
10320       -) echo $tmp/stdin ;;
10321       [\\/$]*)
10322          # Absolute (can't be DOS-style, as IFS=:)
10323          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10324 echo "$as_me: error: cannot find input file: $f" >&2;}
10325    { (exit 1); exit 1; }; }
10326          echo $f;;
10327       *) # Relative
10328          if test -f "$f"; then
10329            # Build tree
10330            echo $f
10331          elif test -f "$srcdir/$f"; then
10332            # Source tree
10333            echo $srcdir/$f
10334          else
10335            # /dev/null tree
10336            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10337 echo "$as_me: error: cannot find input file: $f" >&2;}
10338    { (exit 1); exit 1; }; }
10339          fi;;
10340       esac
10341     done` || { (exit 1); exit 1; }
10342 _ACEOF
10343 cat >>$CONFIG_STATUS <<_ACEOF
10344   sed "$ac_vpsub
10345 $extrasub
10346 _ACEOF
10347 cat >>$CONFIG_STATUS <<\_ACEOF
10348 :t
10349 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10350 s,@configure_input@,$configure_input,;t t
10351 s,@srcdir@,$ac_srcdir,;t t
10352 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10353 s,@top_srcdir@,$ac_top_srcdir,;t t
10354 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10355 s,@builddir@,$ac_builddir,;t t
10356 s,@abs_builddir@,$ac_abs_builddir,;t t
10357 s,@top_builddir@,$ac_top_builddir,;t t
10358 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10359 s,@INSTALL@,$ac_INSTALL,;t t
10360 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10361   rm -f $tmp/stdin
10362   if test x"$ac_file" != x-; then
10363     mv $tmp/out $ac_file
10364   else
10365     cat $tmp/out
10366     rm -f $tmp/out
10367   fi
10368
10369 done
10370 _ACEOF
10371 cat >>$CONFIG_STATUS <<\_ACEOF
10372
10373 #
10374 # CONFIG_COMMANDS section.
10375 #
10376 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10377   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10378   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10379   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10380 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10381          X"$ac_dest" : 'X\(//\)[^/]' \| \
10382          X"$ac_dest" : 'X\(//\)$' \| \
10383          X"$ac_dest" : 'X\(/\)' \| \
10384          .     : '\(.\)' 2>/dev/null ||
10385 echo X"$ac_dest" |
10386     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10387           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10388           /^X\(\/\/\)$/{ s//\1/; q; }
10389           /^X\(\/\).*/{ s//\1/; q; }
10390           s/.*/./; q'`
10391   ac_builddir=.
10392
10393 if test "$ac_dir" != .; then
10394   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10395   # A "../" for each directory in $ac_dir_suffix.
10396   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10397 else
10398   ac_dir_suffix= ac_top_builddir=
10399 fi
10400
10401 case $srcdir in
10402   .)  # No --srcdir option.  We are building in place.
10403     ac_srcdir=.
10404     if test -z "$ac_top_builddir"; then
10405        ac_top_srcdir=.
10406     else
10407        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10408     fi ;;
10409   [\\/]* | ?:[\\/]* )  # Absolute path.
10410     ac_srcdir=$srcdir$ac_dir_suffix;
10411     ac_top_srcdir=$srcdir ;;
10412   *) # Relative path.
10413     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10414     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10415 esac
10416 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10417 # absolute.
10418 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10419 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10420 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10421 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10422
10423
10424   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10425 echo "$as_me: executing $ac_dest commands" >&6;}
10426   case $ac_dest in
10427     default-1 )  \
10428         chmod +x ./bin/* \
10429  ;;
10430   esac
10431 done
10432 _ACEOF
10433
10434 cat >>$CONFIG_STATUS <<\_ACEOF
10435
10436 { (exit 0); exit 0; }
10437 _ACEOF
10438 chmod +x $CONFIG_STATUS
10439 ac_clean_files=$ac_clean_files_save
10440
10441
10442 # configure is writing to config.log, and then calls config.status.
10443 # config.status does its own redirection, appending to config.log.
10444 # Unfortunately, on DOS this fails, as config.log is still kept open
10445 # by configure, so config.status won't be able to write to it; its
10446 # output is simply discarded.  So we exec the FD to /dev/null,
10447 # effectively closing config.log, so it can be properly (re)opened and
10448 # appended to by config.status.  When coming back to configure, we
10449 # need to make the FD available again.
10450 if test "$no_create" != yes; then
10451   ac_cs_success=:
10452   exec 5>/dev/null
10453   $SHELL $CONFIG_STATUS || ac_cs_success=false
10454   exec 5>>config.log
10455   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10456   # would make configure fail if this is the last instruction.
10457   $ac_cs_success || { (exit 1); exit 1; }
10458 fi
10459
10460