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