Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
used host user data to store global index values and remove some clunky
[simgrid.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.182 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for simgrid 3.3-cvs.
5 #
6 # Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in
27   *posix*) set -o posix ;;
28 esac
29
30 fi
31
32
33
34
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45   echo "#! /bin/sh" >conf$$.sh
46   echo  "exit 0"   >>conf$$.sh
47   chmod +x conf$$.sh
48   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49     PATH_SEPARATOR=';'
50   else
51     PATH_SEPARATOR=:
52   fi
53   rm -f conf$$.sh
54 fi
55
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58   as_unset=unset
59 else
60   as_unset=false
61 fi
62
63
64 # IFS
65 # We need space, tab and new line, in precisely that order.  Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
70 '
71 IFS=" ""        $as_nl"
72
73 # Find who we are.  Look in the path if we contain no directory separator.
74 case $0 in
75   *[\\/]* ) as_myself=$0 ;;
76   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
78 do
79   IFS=$as_save_IFS
80   test -z "$as_dir" && as_dir=.
81   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
84
85      ;;
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90   as_myself=$0
91 fi
92 if test ! -f "$as_myself"; then
93   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94   { (exit 1); exit 1; }
95 fi
96
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
104
105 # NLS nuisances.
106 for as_var in \
107   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109   LC_TELEPHONE LC_TIME
110 do
111   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112     eval $as_var=C; export $as_var
113   else
114     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115   fi
116 done
117
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120    test "X`expr 00001 : '.*\(...\)'`" = X001; then
121   as_expr=expr
122 else
123   as_expr=false
124 fi
125
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127   as_basename=basename
128 else
129   as_basename=false
130 fi
131
132
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136          X"$0" : 'X\(//\)$' \| \
137          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139     sed '/^.*\/\([^/][^/]*\)\/*$/{
140             s//\1/
141             q
142           }
143           /^X\/\(\/\/\)$/{
144             s//\1/
145             q
146           }
147           /^X\/\(\/\).*/{
148             s//\1/
149             q
150           }
151           s/.*/./; q'`
152
153 # CDPATH.
154 $as_unset CDPATH
155
156
157 if test "x$CONFIG_SHELL" = x; then
158   if (eval ":") 2>/dev/null; then
159   as_have_required=yes
160 else
161   as_have_required=no
162 fi
163
164   if test $as_have_required = yes &&     (eval ":
165 (as_func_return () {
166   (exit \$1)
167 }
168 as_func_success () {
169   as_func_return 0
170 }
171 as_func_failure () {
172   as_func_return 1
173 }
174 as_func_ret_success () {
175   return 0
176 }
177 as_func_ret_failure () {
178   return 1
179 }
180
181 exitcode=0
182 if as_func_success; then
183   :
184 else
185   exitcode=1
186   echo as_func_success failed.
187 fi
188
189 if as_func_failure; then
190   exitcode=1
191   echo as_func_failure succeeded.
192 fi
193
194 if as_func_ret_success; then
195   :
196 else
197   exitcode=1
198   echo as_func_ret_success failed.
199 fi
200
201 if as_func_ret_failure; then
202   exitcode=1
203   echo as_func_ret_failure succeeded.
204 fi
205
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207   :
208 else
209   exitcode=1
210   echo positional parameters were not saved.
211 fi
212
213 test \$exitcode = 0) || { (exit 1); exit 1; }
214
215 (
216   as_lineno_1=\$LINENO
217   as_lineno_2=\$LINENO
218   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
221   :
222 else
223   as_candidate_shells=
224     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 do
227   IFS=$as_save_IFS
228   test -z "$as_dir" && as_dir=.
229   case $as_dir in
230          /*)
231            for as_base in sh bash ksh sh5; do
232              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233            done;;
234        esac
235 done
236 IFS=$as_save_IFS
237
238
239       for as_shell in $as_candidate_shells $SHELL; do
240          # Try only shells that exist, to save several forks.
241          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242                 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244   emulate sh
245   NULLCMD=:
246   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247   # is contrary to our usage.  Disable this feature.
248   alias -g '${1+"$@"}'='"$@"'
249   setopt NO_GLOB_SUBST
250 else
251   case `(set -o) 2>/dev/null` in
252   *posix*) set -o posix ;;
253 esac
254
255 fi
256
257
258 :
259 _ASEOF
260 }; then
261   CONFIG_SHELL=$as_shell
262                as_have_required=yes
263                if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265   emulate sh
266   NULLCMD=:
267   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268   # is contrary to our usage.  Disable this feature.
269   alias -g '${1+"$@"}'='"$@"'
270   setopt NO_GLOB_SUBST
271 else
272   case `(set -o) 2>/dev/null` in
273   *posix*) set -o posix ;;
274 esac
275
276 fi
277
278
279 :
280 (as_func_return () {
281   (exit $1)
282 }
283 as_func_success () {
284   as_func_return 0
285 }
286 as_func_failure () {
287   as_func_return 1
288 }
289 as_func_ret_success () {
290   return 0
291 }
292 as_func_ret_failure () {
293   return 1
294 }
295
296 exitcode=0
297 if as_func_success; then
298   :
299 else
300   exitcode=1
301   echo as_func_success failed.
302 fi
303
304 if as_func_failure; then
305   exitcode=1
306   echo as_func_failure succeeded.
307 fi
308
309 if as_func_ret_success; then
310   :
311 else
312   exitcode=1
313   echo as_func_ret_success failed.
314 fi
315
316 if as_func_ret_failure; then
317   exitcode=1
318   echo as_func_ret_failure succeeded.
319 fi
320
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
322   :
323 else
324   exitcode=1
325   echo positional parameters were not saved.
326 fi
327
328 test $exitcode = 0) || { (exit 1); exit 1; }
329
330 (
331   as_lineno_1=$LINENO
332   as_lineno_2=$LINENO
333   test "x$as_lineno_1" != "x$as_lineno_2" &&
334   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336 _ASEOF
337 }; then
338   break
339 fi
340
341 fi
342
343       done
344
345       if test "x$CONFIG_SHELL" != x; then
346   for as_var in BASH_ENV ENV
347         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348         done
349         export CONFIG_SHELL
350         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 fi
352
353
354     if test $as_have_required = no; then
355   echo This script requires a shell more modern than all the
356       echo shells that I found on your system.  Please install a
357       echo modern shell, or manually run the script under such a
358       echo shell if you do have one.
359       { (exit 1); exit 1; }
360 fi
361
362
363 fi
364
365 fi
366
367
368
369 (eval "as_func_return () {
370   (exit \$1)
371 }
372 as_func_success () {
373   as_func_return 0
374 }
375 as_func_failure () {
376   as_func_return 1
377 }
378 as_func_ret_success () {
379   return 0
380 }
381 as_func_ret_failure () {
382   return 1
383 }
384
385 exitcode=0
386 if as_func_success; then
387   :
388 else
389   exitcode=1
390   echo as_func_success failed.
391 fi
392
393 if as_func_failure; then
394   exitcode=1
395   echo as_func_failure succeeded.
396 fi
397
398 if as_func_ret_success; then
399   :
400 else
401   exitcode=1
402   echo as_func_ret_success failed.
403 fi
404
405 if as_func_ret_failure; then
406   exitcode=1
407   echo as_func_ret_failure succeeded.
408 fi
409
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411   :
412 else
413   exitcode=1
414   echo positional parameters were not saved.
415 fi
416
417 test \$exitcode = 0") || {
418   echo No shell found that supports shell functions.
419   echo Please tell autoconf@gnu.org about your system,
420   echo including any error possibly output before this
421   echo message
422 }
423
424
425
426   as_lineno_1=$LINENO
427   as_lineno_2=$LINENO
428   test "x$as_lineno_1" != "x$as_lineno_2" &&
429   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432   # uniformly replaced by the line number.  The first 'sed' inserts a
433   # line-number line after each line using $LINENO; the second 'sed'
434   # does the real work.  The second script uses 'N' to pair each
435   # line-number line with the line containing $LINENO, and appends
436   # trailing '-' during substitution so that $LINENO is not a special
437   # case at line end.
438   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439   # scripts with optimization help from Paolo Bonzini.  Blame Lee
440   # E. McMahon (1931-1989) for sed's syntax.  :-)
441   sed -n '
442     p
443     /[$]LINENO/=
444   ' <$as_myself |
445     sed '
446       s/[$]LINENO.*/&-/
447       t lineno
448       b
449       :lineno
450       N
451       :loop
452       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453       t loop
454       s/-\n.*//
455     ' >$as_me.lineno &&
456   chmod +x "$as_me.lineno" ||
457     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458    { (exit 1); exit 1; }; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470   as_dirname=dirname
471 else
472   as_dirname=false
473 fi
474
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478   case `echo 'x\c'` in
479   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
480   *)   ECHO_C='\c';;
481   esac;;
482 *)
483   ECHO_N='-n';;
484 esac
485
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487    test "X`expr 00001 : '.*\(...\)'`" = X001; then
488   as_expr=expr
489 else
490   as_expr=false
491 fi
492
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495   rm -f conf$$.dir/conf$$.file
496 else
497   rm -f conf$$.dir
498   mkdir conf$$.dir
499 fi
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502   as_ln_s='ln -s'
503   # ... but there are two gotchas:
504   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506   # In both cases, we have to default to `cp -p'.
507   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508     as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510   as_ln_s=ln
511 else
512   as_ln_s='cp -p'
513 fi
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
516
517 if mkdir -p . 2>/dev/null; then
518   as_mkdir_p=:
519 else
520   test -d ./-p && rmdir ./-p
521   as_mkdir_p=false
522 fi
523
524 if test -x / >/dev/null 2>&1; then
525   as_test_x='test -x'
526 else
527   if ls -dL / >/dev/null 2>&1; then
528     as_ls_L_option=L
529   else
530     as_ls_L_option=
531   fi
532   as_test_x='
533     eval sh -c '\''
534       if test -d "$1"; then
535         test -d "$1/.";
536       else
537         case $1 in
538         -*)set "./$1";;
539         esac;
540         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541         ???[sx]*):;;*)false;;esac;fi
542     '\'' sh
543   '
544 fi
545 as_executable_p=$as_test_x
546
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555
556 # Check that we are running under the correct shell.
557 SHELL=${CONFIG_SHELL-/bin/sh}
558
559 case X$ECHO in
560 X*--fallback-echo)
561   # Remove one level of quotation (which was required for Make).
562   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
563   ;;
564 esac
565
566 echo=${ECHO-echo}
567 if test "X$1" = X--no-reexec; then
568   # Discard the --no-reexec flag, and continue.
569   shift
570 elif test "X$1" = X--fallback-echo; then
571   # Avoid inline document here, it may be left over
572   :
573 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
574   # Yippee, $echo works!
575   :
576 else
577   # Restart under the correct shell.
578   exec $SHELL "$0" --no-reexec ${1+"$@"}
579 fi
580
581 if test "X$1" = X--fallback-echo; then
582   # used as fallback echo
583   shift
584   cat <<EOF
585 $*
586 EOF
587   exit 0
588 fi
589
590 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 # if CDPATH is set.
592 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593
594 if test -z "$ECHO"; then
595 if test "X${echo_test_string+set}" != Xset; then
596 # find a string as large as possible, as long as the shell can cope with it
597   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
600        echo_test_string=`eval $cmd` &&
601        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
602     then
603       break
604     fi
605   done
606 fi
607
608 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610    test "X$echo_testing_string" = "X$echo_test_string"; then
611   :
612 else
613   # The Solaris, AIX, and Digital Unix default echo programs unquote
614   # backslashes.  This makes it impossible to quote backslashes using
615   #   echo "$something" | sed 's/\\/\\\\/g'
616   #
617   # So, first we look for a working echo in the user's PATH.
618
619   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
620   for dir in $PATH /usr/ucb; do
621     IFS="$lt_save_ifs"
622     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
623        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
624        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
625        test "X$echo_testing_string" = "X$echo_test_string"; then
626       echo="$dir/echo"
627       break
628     fi
629   done
630   IFS="$lt_save_ifs"
631
632   if test "X$echo" = Xecho; then
633     # We didn't find a better echo, so look for alternatives.
634     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
635        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
636        test "X$echo_testing_string" = "X$echo_test_string"; then
637       # This shell has a builtin print -r that does the trick.
638       echo='print -r'
639     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
640          test "X$CONFIG_SHELL" != X/bin/ksh; then
641       # If we have ksh, try running configure again with it.
642       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
643       export ORIGINAL_CONFIG_SHELL
644       CONFIG_SHELL=/bin/ksh
645       export CONFIG_SHELL
646       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647     else
648       # Try using printf.
649       echo='printf %s\n'
650       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
651          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
652          test "X$echo_testing_string" = "X$echo_test_string"; then
653         # Cool, printf works
654         :
655       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656            test "X$echo_testing_string" = 'X\t' &&
657            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658            test "X$echo_testing_string" = "X$echo_test_string"; then
659         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660         export CONFIG_SHELL
661         SHELL="$CONFIG_SHELL"
662         export SHELL
663         echo="$CONFIG_SHELL $0 --fallback-echo"
664       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665            test "X$echo_testing_string" = 'X\t' &&
666            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667            test "X$echo_testing_string" = "X$echo_test_string"; then
668         echo="$CONFIG_SHELL $0 --fallback-echo"
669       else
670         # maybe with a smaller string...
671         prev=:
672
673         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
674           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
675           then
676             break
677           fi
678           prev="$cmd"
679         done
680
681         if test "$prev" != 'sed 50q "$0"'; then
682           echo_test_string=`eval $prev`
683           export echo_test_string
684           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685         else
686           # Oops.  We lost completely, so just stick with echo.
687           echo=echo
688         fi
689       fi
690     fi
691   fi
692 fi
693 fi
694
695 # Copy echo and quote the copy suitably for passing to libtool from
696 # the Makefile, instead of quoting the original, which is used later.
697 ECHO=$echo
698 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
699    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
700 fi
701
702
703
704
705 tagnames=${tagnames+${tagnames},}CXX
706
707 tagnames=${tagnames+${tagnames},}F77
708
709 tagnames=${tagnames+${tagnames},}GCJ
710
711 exec 7<&0 </dev/null 6>&1
712
713 # Name of the host.
714 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
715 # so uname gets run too.
716 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
717
718 #
719 # Initializations.
720 #
721 ac_default_prefix=/usr/local
722 ac_clean_files=
723 ac_config_libobj_dir=.
724 LIBOBJS=
725 cross_compiling=no
726 subdirs=
727 MFLAGS=
728 MAKEFLAGS=
729 SHELL=${CONFIG_SHELL-/bin/sh}
730
731 # Identity of this package.
732 PACKAGE_NAME='simgrid'
733 PACKAGE_TARNAME='simgrid'
734 PACKAGE_VERSION='3.3-cvs'
735 PACKAGE_STRING='simgrid 3.3-cvs'
736 PACKAGE_BUGREPORT='simgrid-devel@lists.gforge.inria.fr'
737
738 ac_unique_file="include/gras.h"
739 # Factoring default headers for most tests.
740 ac_includes_default="\
741 #include <stdio.h>
742 #ifdef HAVE_SYS_TYPES_H
743 # include <sys/types.h>
744 #endif
745 #ifdef HAVE_SYS_STAT_H
746 # include <sys/stat.h>
747 #endif
748 #ifdef STDC_HEADERS
749 # include <stdlib.h>
750 # include <stddef.h>
751 #else
752 # ifdef HAVE_STDLIB_H
753 #  include <stdlib.h>
754 # endif
755 #endif
756 #ifdef HAVE_STRING_H
757 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
758 #  include <memory.h>
759 # endif
760 # include <string.h>
761 #endif
762 #ifdef HAVE_STRINGS_H
763 # include <strings.h>
764 #endif
765 #ifdef HAVE_INTTYPES_H
766 # include <inttypes.h>
767 #endif
768 #ifdef HAVE_STDINT_H
769 # include <stdint.h>
770 #endif
771 #ifdef HAVE_UNISTD_H
772 # include <unistd.h>
773 #endif"
774
775 ac_subst_vars='SHELL
776 PATH_SEPARATOR
777 PACKAGE_NAME
778 PACKAGE_TARNAME
779 PACKAGE_VERSION
780 PACKAGE_STRING
781 PACKAGE_BUGREPORT
782 exec_prefix
783 prefix
784 program_transform_name
785 bindir
786 sbindir
787 libexecdir
788 datarootdir
789 datadir
790 sysconfdir
791 sharedstatedir
792 localstatedir
793 includedir
794 oldincludedir
795 docdir
796 infodir
797 htmldir
798 dvidir
799 pdfdir
800 psdir
801 libdir
802 localedir
803 mandir
804 DEFS
805 ECHO_C
806 ECHO_N
807 ECHO_T
808 LIBS
809 build_alias
810 host_alias
811 target_alias
812 build
813 build_cpu
814 build_vendor
815 build_os
816 host
817 host_cpu
818 host_vendor
819 host_os
820 target
821 target_cpu
822 target_vendor
823 target_os
824 GCJ
825 GCJFLAGS
826 am__leading_dot
827 DEPDIR
828 am__include
829 am__quote
830 AMDEP_TRUE
831 AMDEP_FALSE
832 AMDEPBACKSLASH
833 GCJDEPMODE
834 am__fastdepGCJ_TRUE
835 am__fastdepGCJ_FALSE
836 INSTALL_PROGRAM
837 INSTALL_SCRIPT
838 INSTALL_DATA
839 am__isrc
840 CYGPATH_W
841 PACKAGE
842 VERSION
843 ACLOCAL
844 AUTOCONF
845 AUTOMAKE
846 AUTOHEADER
847 MAKEINFO
848 install_sh
849 STRIP
850 INSTALL_STRIP_PROGRAM
851 mkdir_p
852 AWK
853 SET_MAKE
854 AMTAR
855 am__tar
856 am__untar
857 CC
858 CFLAGS
859 LDFLAGS
860 CPPFLAGS
861 ac_ct_CC
862 EXEEXT
863 OBJEXT
864 CCDEPMODE
865 am__fastdepCC_TRUE
866 am__fastdepCC_FALSE
867 GREP
868 EGREP
869 LN_S
870 ECHO
871 AR
872 RANLIB
873 DLLTOOL
874 AS
875 OBJDUMP
876 CPP
877 CXX
878 CXXFLAGS
879 ac_ct_CXX
880 CXXDEPMODE
881 am__fastdepCXX_TRUE
882 am__fastdepCXX_FALSE
883 CXXCPP
884 LIBTOOL
885 LIBOBJS
886 GRAS_ARCH_32_BITS_TRUE
887 GRAS_ARCH_32_BITS_FALSE
888 IS_WINDOWS_TRUE
889 IS_WINDOWS_FALSE
890 CONTEXT_THREADS_TRUE
891 CONTEXT_THREADS_FALSE
892 PTH_STACK_GROWTH
893 pth_skaddr_makecontext
894 pth_sksize_makecontext
895 HAVE_GTNETS_TRUE
896 HAVE_GTNETS_FALSE
897 HAVE_SDP_TRUE
898 HAVE_SDP_FALSE
899 SIMGRID_DEP
900 SMPI_DEP
901 GRAS_DEP
902 GRAMINE_MODE_TRUE
903 GRAMINE_MODE_FALSE
904 MAINTAINER_MODE_TRUE
905 MAINTAINER_MODE_FALSE
906 MAINT
907 LD_DYNAMIC_FLAGS
908 AM_CPPFLAGS
909 abs_builddir
910 abs_srcdir
911 abs_top_builddir
912 abs_top_srcdir
913 JAVAC
914 JAVA
915 JAR
916 HAVE_JAVA_TRUE
917 HAVE_JAVA_FALSE
918 BASH
919 WARNING
920 LEX
921 LEX_OUTPUT_ROOT
922 LEXLIB
923 FLEXML
924 HAVE_FLEXML_TRUE
925 HAVE_FLEXML_FALSE
926 DOXYGEN
927 ADDR2LINE
928 ac_configure_args
929 MD5SUM
930 build_id
931 LTLIBOBJS'
932 ac_subst_files=''
933       ac_precious_vars='build_alias
934 host_alias
935 target_alias
936 CC
937 CFLAGS
938 LDFLAGS
939 LIBS
940 CPPFLAGS
941 CPP
942 CXX
943 CXXFLAGS
944 CCC
945 CXXCPP'
946
947
948 # Initialize some variables set by options.
949 ac_init_help=
950 ac_init_version=false
951 # The variables have the same names as the options, with
952 # dashes changed to underlines.
953 cache_file=/dev/null
954 exec_prefix=NONE
955 no_create=
956 no_recursion=
957 prefix=NONE
958 program_prefix=NONE
959 program_suffix=NONE
960 program_transform_name=s,x,x,
961 silent=
962 site=
963 srcdir=
964 verbose=
965 x_includes=NONE
966 x_libraries=NONE
967
968 # Installation directory options.
969 # These are left unexpanded so users can "make install exec_prefix=/foo"
970 # and all the variables that are supposed to be based on exec_prefix
971 # by default will actually change.
972 # Use braces instead of parens because sh, perl, etc. also accept them.
973 # (The list follows the same order as the GNU Coding Standards.)
974 bindir='${exec_prefix}/bin'
975 sbindir='${exec_prefix}/sbin'
976 libexecdir='${exec_prefix}/libexec'
977 datarootdir='${prefix}/share'
978 datadir='${datarootdir}'
979 sysconfdir='${prefix}/etc'
980 sharedstatedir='${prefix}/com'
981 localstatedir='${prefix}/var'
982 includedir='${prefix}/include'
983 oldincludedir='/usr/include'
984 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
985 infodir='${datarootdir}/info'
986 htmldir='${docdir}'
987 dvidir='${docdir}'
988 pdfdir='${docdir}'
989 psdir='${docdir}'
990 libdir='${exec_prefix}/lib'
991 localedir='${datarootdir}/locale'
992 mandir='${datarootdir}/man'
993
994 ac_prev=
995 ac_dashdash=
996 for ac_option
997 do
998   # If the previous option needs an argument, assign it.
999   if test -n "$ac_prev"; then
1000     eval $ac_prev=\$ac_option
1001     ac_prev=
1002     continue
1003   fi
1004
1005   case $ac_option in
1006   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1007   *)    ac_optarg=yes ;;
1008   esac
1009
1010   # Accept the important Cygnus configure options, so we can diagnose typos.
1011
1012   case $ac_dashdash$ac_option in
1013   --)
1014     ac_dashdash=yes ;;
1015
1016   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1017     ac_prev=bindir ;;
1018   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1019     bindir=$ac_optarg ;;
1020
1021   -build | --build | --buil | --bui | --bu)
1022     ac_prev=build_alias ;;
1023   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1024     build_alias=$ac_optarg ;;
1025
1026   -cache-file | --cache-file | --cache-fil | --cache-fi \
1027   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1028     ac_prev=cache_file ;;
1029   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1030   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1031     cache_file=$ac_optarg ;;
1032
1033   --config-cache | -C)
1034     cache_file=config.cache ;;
1035
1036   -datadir | --datadir | --datadi | --datad)
1037     ac_prev=datadir ;;
1038   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1039     datadir=$ac_optarg ;;
1040
1041   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1042   | --dataroo | --dataro | --datar)
1043     ac_prev=datarootdir ;;
1044   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1045   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1046     datarootdir=$ac_optarg ;;
1047
1048   -disable-* | --disable-*)
1049     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1050     # Reject names that are not valid shell variable names.
1051     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1052       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1053    { (exit 1); exit 1; }; }
1054     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1055     eval enable_$ac_feature=no ;;
1056
1057   -docdir | --docdir | --docdi | --doc | --do)
1058     ac_prev=docdir ;;
1059   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1060     docdir=$ac_optarg ;;
1061
1062   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1063     ac_prev=dvidir ;;
1064   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1065     dvidir=$ac_optarg ;;
1066
1067   -enable-* | --enable-*)
1068     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1069     # Reject names that are not valid shell variable names.
1070     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1071       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1072    { (exit 1); exit 1; }; }
1073     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1074     eval enable_$ac_feature=\$ac_optarg ;;
1075
1076   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1077   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1078   | --exec | --exe | --ex)
1079     ac_prev=exec_prefix ;;
1080   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1081   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1082   | --exec=* | --exe=* | --ex=*)
1083     exec_prefix=$ac_optarg ;;
1084
1085   -gas | --gas | --ga | --g)
1086     # Obsolete; use --with-gas.
1087     with_gas=yes ;;
1088
1089   -help | --help | --hel | --he | -h)
1090     ac_init_help=long ;;
1091   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1092     ac_init_help=recursive ;;
1093   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1094     ac_init_help=short ;;
1095
1096   -host | --host | --hos | --ho)
1097     ac_prev=host_alias ;;
1098   -host=* | --host=* | --hos=* | --ho=*)
1099     host_alias=$ac_optarg ;;
1100
1101   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1102     ac_prev=htmldir ;;
1103   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1104   | --ht=*)
1105     htmldir=$ac_optarg ;;
1106
1107   -includedir | --includedir | --includedi | --included | --include \
1108   | --includ | --inclu | --incl | --inc)
1109     ac_prev=includedir ;;
1110   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1111   | --includ=* | --inclu=* | --incl=* | --inc=*)
1112     includedir=$ac_optarg ;;
1113
1114   -infodir | --infodir | --infodi | --infod | --info | --inf)
1115     ac_prev=infodir ;;
1116   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1117     infodir=$ac_optarg ;;
1118
1119   -libdir | --libdir | --libdi | --libd)
1120     ac_prev=libdir ;;
1121   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1122     libdir=$ac_optarg ;;
1123
1124   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1125   | --libexe | --libex | --libe)
1126     ac_prev=libexecdir ;;
1127   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1128   | --libexe=* | --libex=* | --libe=*)
1129     libexecdir=$ac_optarg ;;
1130
1131   -localedir | --localedir | --localedi | --localed | --locale)
1132     ac_prev=localedir ;;
1133   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1134     localedir=$ac_optarg ;;
1135
1136   -localstatedir | --localstatedir | --localstatedi | --localstated \
1137   | --localstate | --localstat | --localsta | --localst | --locals)
1138     ac_prev=localstatedir ;;
1139   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1140   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1141     localstatedir=$ac_optarg ;;
1142
1143   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1144     ac_prev=mandir ;;
1145   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1146     mandir=$ac_optarg ;;
1147
1148   -nfp | --nfp | --nf)
1149     # Obsolete; use --without-fp.
1150     with_fp=no ;;
1151
1152   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1153   | --no-cr | --no-c | -n)
1154     no_create=yes ;;
1155
1156   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1157   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1158     no_recursion=yes ;;
1159
1160   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1161   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1162   | --oldin | --oldi | --old | --ol | --o)
1163     ac_prev=oldincludedir ;;
1164   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1165   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1166   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1167     oldincludedir=$ac_optarg ;;
1168
1169   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1170     ac_prev=prefix ;;
1171   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1172     prefix=$ac_optarg ;;
1173
1174   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1175   | --program-pre | --program-pr | --program-p)
1176     ac_prev=program_prefix ;;
1177   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1178   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1179     program_prefix=$ac_optarg ;;
1180
1181   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1182   | --program-suf | --program-su | --program-s)
1183     ac_prev=program_suffix ;;
1184   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1185   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1186     program_suffix=$ac_optarg ;;
1187
1188   -program-transform-name | --program-transform-name \
1189   | --program-transform-nam | --program-transform-na \
1190   | --program-transform-n | --program-transform- \
1191   | --program-transform | --program-transfor \
1192   | --program-transfo | --program-transf \
1193   | --program-trans | --program-tran \
1194   | --progr-tra | --program-tr | --program-t)
1195     ac_prev=program_transform_name ;;
1196   -program-transform-name=* | --program-transform-name=* \
1197   | --program-transform-nam=* | --program-transform-na=* \
1198   | --program-transform-n=* | --program-transform-=* \
1199   | --program-transform=* | --program-transfor=* \
1200   | --program-transfo=* | --program-transf=* \
1201   | --program-trans=* | --program-tran=* \
1202   | --progr-tra=* | --program-tr=* | --program-t=*)
1203     program_transform_name=$ac_optarg ;;
1204
1205   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1206     ac_prev=pdfdir ;;
1207   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1208     pdfdir=$ac_optarg ;;
1209
1210   -psdir | --psdir | --psdi | --psd | --ps)
1211     ac_prev=psdir ;;
1212   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1213     psdir=$ac_optarg ;;
1214
1215   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1216   | -silent | --silent | --silen | --sile | --sil)
1217     silent=yes ;;
1218
1219   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1220     ac_prev=sbindir ;;
1221   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1222   | --sbi=* | --sb=*)
1223     sbindir=$ac_optarg ;;
1224
1225   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1226   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1227   | --sharedst | --shareds | --shared | --share | --shar \
1228   | --sha | --sh)
1229     ac_prev=sharedstatedir ;;
1230   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1231   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1232   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1233   | --sha=* | --sh=*)
1234     sharedstatedir=$ac_optarg ;;
1235
1236   -site | --site | --sit)
1237     ac_prev=site ;;
1238   -site=* | --site=* | --sit=*)
1239     site=$ac_optarg ;;
1240
1241   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1242     ac_prev=srcdir ;;
1243   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1244     srcdir=$ac_optarg ;;
1245
1246   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1247   | --syscon | --sysco | --sysc | --sys | --sy)
1248     ac_prev=sysconfdir ;;
1249   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1250   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1251     sysconfdir=$ac_optarg ;;
1252
1253   -target | --target | --targe | --targ | --tar | --ta | --t)
1254     ac_prev=target_alias ;;
1255   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1256     target_alias=$ac_optarg ;;
1257
1258   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1259     verbose=yes ;;
1260
1261   -version | --version | --versio | --versi | --vers | -V)
1262     ac_init_version=: ;;
1263
1264   -with-* | --with-*)
1265     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1266     # Reject names that are not valid shell variable names.
1267     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268       { echo "$as_me: error: invalid package name: $ac_package" >&2
1269    { (exit 1); exit 1; }; }
1270     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1271     eval with_$ac_package=\$ac_optarg ;;
1272
1273   -without-* | --without-*)
1274     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1275     # Reject names that are not valid shell variable names.
1276     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1277       { echo "$as_me: error: invalid package name: $ac_package" >&2
1278    { (exit 1); exit 1; }; }
1279     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1280     eval with_$ac_package=no ;;
1281
1282   --x)
1283     # Obsolete; use --with-x.
1284     with_x=yes ;;
1285
1286   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1287   | --x-incl | --x-inc | --x-in | --x-i)
1288     ac_prev=x_includes ;;
1289   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1290   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1291     x_includes=$ac_optarg ;;
1292
1293   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1294   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1295     ac_prev=x_libraries ;;
1296   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1297   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1298     x_libraries=$ac_optarg ;;
1299
1300   -*) { echo "$as_me: error: unrecognized option: $ac_option
1301 Try \`$0 --help' for more information." >&2
1302    { (exit 1); exit 1; }; }
1303     ;;
1304
1305   *=*)
1306     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1307     # Reject names that are not valid shell variable names.
1308     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1309       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1310    { (exit 1); exit 1; }; }
1311     eval $ac_envvar=\$ac_optarg
1312     export $ac_envvar ;;
1313
1314   *)
1315     # FIXME: should be removed in autoconf 3.0.
1316     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1317     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1318       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1319     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1320     ;;
1321
1322   esac
1323 done
1324
1325 if test -n "$ac_prev"; then
1326   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1327   { echo "$as_me: error: missing argument to $ac_option" >&2
1328    { (exit 1); exit 1; }; }
1329 fi
1330
1331 # Be sure to have absolute directory names.
1332 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1333                 datadir sysconfdir sharedstatedir localstatedir includedir \
1334                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1335                 libdir localedir mandir
1336 do
1337   eval ac_val=\$$ac_var
1338   case $ac_val in
1339     [\\/$]* | ?:[\\/]* )  continue;;
1340     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1341   esac
1342   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1343    { (exit 1); exit 1; }; }
1344 done
1345
1346 # There might be people who depend on the old broken behavior: `$host'
1347 # used to hold the argument of --host etc.
1348 # FIXME: To remove some day.
1349 build=$build_alias
1350 host=$host_alias
1351 target=$target_alias
1352
1353 # FIXME: To remove some day.
1354 if test "x$host_alias" != x; then
1355   if test "x$build_alias" = x; then
1356     cross_compiling=maybe
1357     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1358     If a cross compiler is detected then cross compile mode will be used." >&2
1359   elif test "x$build_alias" != "x$host_alias"; then
1360     cross_compiling=yes
1361   fi
1362 fi
1363
1364 ac_tool_prefix=
1365 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1366
1367 test "$silent" = yes && exec 6>/dev/null
1368
1369
1370 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1371 ac_ls_di=`ls -di .` &&
1372 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1373   { echo "$as_me: error: Working directory cannot be determined" >&2
1374    { (exit 1); exit 1; }; }
1375 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1376   { echo "$as_me: error: pwd does not report name of working directory" >&2
1377    { (exit 1); exit 1; }; }
1378
1379
1380 # Find the source files, if location was not specified.
1381 if test -z "$srcdir"; then
1382   ac_srcdir_defaulted=yes
1383   # Try the directory containing this script, then the parent directory.
1384   ac_confdir=`$as_dirname -- "$0" ||
1385 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1386          X"$0" : 'X\(//\)[^/]' \| \
1387          X"$0" : 'X\(//\)$' \| \
1388          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1389 echo X"$0" |
1390     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1391             s//\1/
1392             q
1393           }
1394           /^X\(\/\/\)[^/].*/{
1395             s//\1/
1396             q
1397           }
1398           /^X\(\/\/\)$/{
1399             s//\1/
1400             q
1401           }
1402           /^X\(\/\).*/{
1403             s//\1/
1404             q
1405           }
1406           s/.*/./; q'`
1407   srcdir=$ac_confdir
1408   if test ! -r "$srcdir/$ac_unique_file"; then
1409     srcdir=..
1410   fi
1411 else
1412   ac_srcdir_defaulted=no
1413 fi
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1415   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1416   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1417    { (exit 1); exit 1; }; }
1418 fi
1419 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1420 ac_abs_confdir=`(
1421         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1422    { (exit 1); exit 1; }; }
1423         pwd)`
1424 # When building in place, set srcdir=.
1425 if test "$ac_abs_confdir" = "$ac_pwd"; then
1426   srcdir=.
1427 fi
1428 # Remove unnecessary trailing slashes from srcdir.
1429 # Double slashes in file names in object file debugging info
1430 # mess up M-x gdb in Emacs.
1431 case $srcdir in
1432 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1433 esac
1434 for ac_var in $ac_precious_vars; do
1435   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1436   eval ac_env_${ac_var}_value=\$${ac_var}
1437   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1438   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1439 done
1440
1441 #
1442 # Report the --help message.
1443 #
1444 if test "$ac_init_help" = "long"; then
1445   # Omit some internal or obsolete options to make the list less imposing.
1446   # This message is too long to be a string in the A/UX 3.1 sh.
1447   cat <<_ACEOF
1448 \`configure' configures simgrid 3.3-cvs to adapt to many kinds of systems.
1449
1450 Usage: $0 [OPTION]... [VAR=VALUE]...
1451
1452 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1453 VAR=VALUE.  See below for descriptions of some of the useful variables.
1454
1455 Defaults for the options are specified in brackets.
1456
1457 Configuration:
1458   -h, --help              display this help and exit
1459       --help=short        display options specific to this package
1460       --help=recursive    display the short help of all the included packages
1461   -V, --version           display version information and exit
1462   -q, --quiet, --silent   do not print \`checking...' messages
1463       --cache-file=FILE   cache test results in FILE [disabled]
1464   -C, --config-cache      alias for \`--cache-file=config.cache'
1465   -n, --no-create         do not create output files
1466       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1467
1468 Installation directories:
1469   --prefix=PREFIX         install architecture-independent files in PREFIX
1470                           [$ac_default_prefix]
1471   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1472                           [PREFIX]
1473
1474 By default, \`make install' will install all the files in
1475 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1476 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1477 for instance \`--prefix=\$HOME'.
1478
1479 For better control, use the options below.
1480
1481 Fine tuning of the installation directories:
1482   --bindir=DIR           user executables [EPREFIX/bin]
1483   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1484   --libexecdir=DIR       program executables [EPREFIX/libexec]
1485   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1486   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1487   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1488   --libdir=DIR           object code libraries [EPREFIX/lib]
1489   --includedir=DIR       C header files [PREFIX/include]
1490   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1491   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1492   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1493   --infodir=DIR          info documentation [DATAROOTDIR/info]
1494   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1495   --mandir=DIR           man documentation [DATAROOTDIR/man]
1496   --docdir=DIR           documentation root [DATAROOTDIR/doc/simgrid]
1497   --htmldir=DIR          html documentation [DOCDIR]
1498   --dvidir=DIR           dvi documentation [DOCDIR]
1499   --pdfdir=DIR           pdf documentation [DOCDIR]
1500   --psdir=DIR            ps documentation [DOCDIR]
1501 _ACEOF
1502
1503   cat <<\_ACEOF
1504
1505 Program names:
1506   --program-prefix=PREFIX            prepend PREFIX to installed program names
1507   --program-suffix=SUFFIX            append SUFFIX to installed program names
1508   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1509
1510 System types:
1511   --build=BUILD     configure for building on BUILD [guessed]
1512   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1513   --target=TARGET   configure for building compilers for TARGET [HOST]
1514 _ACEOF
1515 fi
1516
1517 if test -n "$ac_init_help"; then
1518   case $ac_init_help in
1519      short | recursive ) echo "Configuration of simgrid 3.3-cvs:";;
1520    esac
1521   cat <<\_ACEOF
1522
1523 Optional Features:
1524   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1525   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1526   --disable-dependency-tracking  speeds up one-time build
1527   --enable-dependency-tracking   do not reject slow dependency extractors
1528   --enable-shared[=PKGS]  build shared libraries [default=yes]
1529   --enable-static[=PKGS]  build static libraries [default=yes]
1530   --enable-fast-install[=PKGS]
1531                           optimize for fast installation [default=yes]
1532   --disable-libtool-lock  avoid locking (might break parallel builds)
1533   --enable-maintainer-mode  enable make rules and dependencies not useful
1534                           (and sometimes confusing) to the casual installer
1535   --enable-compile-warnings
1536                           use compiler warnings (default=no, unless in
1537                           maintainer mode)
1538   --disable-compile-optimizations
1539                           use compiler optimizations (default=yes, unless if
1540                           CFLAGS is explicitly set)
1541   --disable-java          To not compile the Java bindings even if the tools
1542                           are found
1543
1544 Optional Packages:
1545   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1546   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1547   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1548   --with-pic              try to use only PIC/non-PIC objects [default=use
1549                           both]
1550   --with-tags[=TAGS]      include additional configurations [automatic]
1551   --with-pthread   Use pthread instead of ucontext.
1552   --with-pthreads   Use pthread instead of ucontext.
1553   --with-context=ucontext/pthread   Use either (System V) swapcontext or pthread [default=auto].
1554   --with-gtnets           Path to GTNetS installation (default to empty, ie
1555                           not using GTNetS)
1556   --with-csdp             Path to csdp installation (default to empty, i.e.
1557                           not using csdp)
1558
1559 Some influential environment variables:
1560   CC          C compiler command
1561   CFLAGS      C compiler flags
1562   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1563               nonstandard directory <lib dir>
1564   LIBS        libraries to pass to the linker, e.g. -l<library>
1565   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1566               you have headers in a nonstandard directory <include dir>
1567   CPP         C preprocessor
1568   CXX         C++ compiler command
1569   CXXFLAGS    C++ compiler flags
1570   CXXCPP      C++ preprocessor
1571
1572 Use these variables to override the choices made by `configure' or to help
1573 it to find libraries and programs with nonstandard names/locations.
1574
1575 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1576 _ACEOF
1577 ac_status=$?
1578 fi
1579
1580 if test "$ac_init_help" = "recursive"; then
1581   # If there are subdirs, report their specific --help.
1582   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1583     test -d "$ac_dir" || continue
1584     ac_builddir=.
1585
1586 case "$ac_dir" in
1587 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 *)
1589   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1590   # A ".." for each directory in $ac_dir_suffix.
1591   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1592   case $ac_top_builddir_sub in
1593   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1595   esac ;;
1596 esac
1597 ac_abs_top_builddir=$ac_pwd
1598 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1599 # for backward compatibility:
1600 ac_top_builddir=$ac_top_build_prefix
1601
1602 case $srcdir in
1603   .)  # We are building in place.
1604     ac_srcdir=.
1605     ac_top_srcdir=$ac_top_builddir_sub
1606     ac_abs_top_srcdir=$ac_pwd ;;
1607   [\\/]* | ?:[\\/]* )  # Absolute name.
1608     ac_srcdir=$srcdir$ac_dir_suffix;
1609     ac_top_srcdir=$srcdir
1610     ac_abs_top_srcdir=$srcdir ;;
1611   *) # Relative name.
1612     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1613     ac_top_srcdir=$ac_top_build_prefix$srcdir
1614     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1615 esac
1616 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1617
1618     cd "$ac_dir" || { ac_status=$?; continue; }
1619     # Check for guested configure.
1620     if test -f "$ac_srcdir/configure.gnu"; then
1621       echo &&
1622       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1623     elif test -f "$ac_srcdir/configure"; then
1624       echo &&
1625       $SHELL "$ac_srcdir/configure" --help=recursive
1626     else
1627       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1628     fi || ac_status=$?
1629     cd "$ac_pwd" || { ac_status=$?; break; }
1630   done
1631 fi
1632
1633 test -n "$ac_init_help" && exit $ac_status
1634 if $ac_init_version; then
1635   cat <<\_ACEOF
1636 simgrid configure 3.3-cvs
1637 generated by GNU Autoconf 2.61
1638
1639 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1640 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1641 This configure script is free software; the Free Software Foundation
1642 gives unlimited permission to copy, distribute and modify it.
1643 _ACEOF
1644   exit
1645 fi
1646 cat >config.log <<_ACEOF
1647 This file contains any messages produced by compilers while
1648 running configure, to aid debugging if configure makes a mistake.
1649
1650 It was created by simgrid $as_me 3.3-cvs, which was
1651 generated by GNU Autoconf 2.61.  Invocation command line was
1652
1653   $ $0 $@
1654
1655 _ACEOF
1656 exec 5>>config.log
1657 {
1658 cat <<_ASUNAME
1659 ## --------- ##
1660 ## Platform. ##
1661 ## --------- ##
1662
1663 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1664 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1665 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1666 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1667 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1668
1669 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1670 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1671
1672 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1673 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1674 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1675 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1676 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1677 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1678 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1679
1680 _ASUNAME
1681
1682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683 for as_dir in $PATH
1684 do
1685   IFS=$as_save_IFS
1686   test -z "$as_dir" && as_dir=.
1687   echo "PATH: $as_dir"
1688 done
1689 IFS=$as_save_IFS
1690
1691 } >&5
1692
1693 cat >&5 <<_ACEOF
1694
1695
1696 ## ----------- ##
1697 ## Core tests. ##
1698 ## ----------- ##
1699
1700 _ACEOF
1701
1702
1703 # Keep a trace of the command line.
1704 # Strip out --no-create and --no-recursion so they do not pile up.
1705 # Strip out --silent because we don't want to record it for future runs.
1706 # Also quote any args containing shell meta-characters.
1707 # Make two passes to allow for proper duplicate-argument suppression.
1708 ac_configure_args=
1709 ac_configure_args0=
1710 ac_configure_args1=
1711 ac_must_keep_next=false
1712 for ac_pass in 1 2
1713 do
1714   for ac_arg
1715   do
1716     case $ac_arg in
1717     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1718     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1719     | -silent | --silent | --silen | --sile | --sil)
1720       continue ;;
1721     *\'*)
1722       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1723     esac
1724     case $ac_pass in
1725     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1726     2)
1727       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1728       if test $ac_must_keep_next = true; then
1729         ac_must_keep_next=false # Got value, back to normal.
1730       else
1731         case $ac_arg in
1732           *=* | --config-cache | -C | -disable-* | --disable-* \
1733           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1734           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1735           | -with-* | --with-* | -without-* | --without-* | --x)
1736             case "$ac_configure_args0 " in
1737               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1738             esac
1739             ;;
1740           -* ) ac_must_keep_next=true ;;
1741         esac
1742       fi
1743       ac_configure_args="$ac_configure_args '$ac_arg'"
1744       ;;
1745     esac
1746   done
1747 done
1748 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1749 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1750
1751 # When interrupted or exit'd, cleanup temporary files, and complete
1752 # config.log.  We remove comments because anyway the quotes in there
1753 # would cause problems or look ugly.
1754 # WARNING: Use '\'' to represent an apostrophe within the trap.
1755 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1756 trap 'exit_status=$?
1757   # Save into config.log some information that might help in debugging.
1758   {
1759     echo
1760
1761     cat <<\_ASBOX
1762 ## ---------------- ##
1763 ## Cache variables. ##
1764 ## ---------------- ##
1765 _ASBOX
1766     echo
1767     # The following way of writing the cache mishandles newlines in values,
1768 (
1769   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1770     eval ac_val=\$$ac_var
1771     case $ac_val in #(
1772     *${as_nl}*)
1773       case $ac_var in #(
1774       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1775 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1776       esac
1777       case $ac_var in #(
1778       _ | IFS | as_nl) ;; #(
1779       *) $as_unset $ac_var ;;
1780       esac ;;
1781     esac
1782   done
1783   (set) 2>&1 |
1784     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1785     *${as_nl}ac_space=\ *)
1786       sed -n \
1787         "s/'\''/'\''\\\\'\'''\''/g;
1788           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1789       ;; #(
1790     *)
1791       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1792       ;;
1793     esac |
1794     sort
1795 )
1796     echo
1797
1798     cat <<\_ASBOX
1799 ## ----------------- ##
1800 ## Output variables. ##
1801 ## ----------------- ##
1802 _ASBOX
1803     echo
1804     for ac_var in $ac_subst_vars
1805     do
1806       eval ac_val=\$$ac_var
1807       case $ac_val in
1808       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1809       esac
1810       echo "$ac_var='\''$ac_val'\''"
1811     done | sort
1812     echo
1813
1814     if test -n "$ac_subst_files"; then
1815       cat <<\_ASBOX
1816 ## ------------------- ##
1817 ## File substitutions. ##
1818 ## ------------------- ##
1819 _ASBOX
1820       echo
1821       for ac_var in $ac_subst_files
1822       do
1823         eval ac_val=\$$ac_var
1824         case $ac_val in
1825         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1826         esac
1827         echo "$ac_var='\''$ac_val'\''"
1828       done | sort
1829       echo
1830     fi
1831
1832     if test -s confdefs.h; then
1833       cat <<\_ASBOX
1834 ## ----------- ##
1835 ## confdefs.h. ##
1836 ## ----------- ##
1837 _ASBOX
1838       echo
1839       cat confdefs.h
1840       echo
1841     fi
1842     test "$ac_signal" != 0 &&
1843       echo "$as_me: caught signal $ac_signal"
1844     echo "$as_me: exit $exit_status"
1845   } >&5
1846   rm -f core *.core core.conftest.* &&
1847     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1848     exit $exit_status
1849 ' 0
1850 for ac_signal in 1 2 13 15; do
1851   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1852 done
1853 ac_signal=0
1854
1855 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1856 rm -f -r conftest* confdefs.h
1857
1858 # Predefined preprocessor variables.
1859
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_NAME "$PACKAGE_NAME"
1862 _ACEOF
1863
1864
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1867 _ACEOF
1868
1869
1870 cat >>confdefs.h <<_ACEOF
1871 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1872 _ACEOF
1873
1874
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_STRING "$PACKAGE_STRING"
1877 _ACEOF
1878
1879
1880 cat >>confdefs.h <<_ACEOF
1881 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1882 _ACEOF
1883
1884
1885 # Let the site file select an alternate cache file if it wants to.
1886 # Prefer explicitly selected file to automatically selected ones.
1887 if test -n "$CONFIG_SITE"; then
1888   set x "$CONFIG_SITE"
1889 elif test "x$prefix" != xNONE; then
1890   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1891 else
1892   set x "$ac_default_prefix/share/config.site" \
1893         "$ac_default_prefix/etc/config.site"
1894 fi
1895 shift
1896 for ac_site_file
1897 do
1898   if test -r "$ac_site_file"; then
1899     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1900 echo "$as_me: loading site script $ac_site_file" >&6;}
1901     sed 's/^/| /' "$ac_site_file" >&5
1902     . "$ac_site_file"
1903   fi
1904 done
1905
1906 if test -r "$cache_file"; then
1907   # Some versions of bash will fail to source /dev/null (special
1908   # files actually), so we avoid doing that.
1909   if test -f "$cache_file"; then
1910     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1911 echo "$as_me: loading cache $cache_file" >&6;}
1912     case $cache_file in
1913       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1914       *)                      . "./$cache_file";;
1915     esac
1916   fi
1917 else
1918   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1919 echo "$as_me: creating cache $cache_file" >&6;}
1920   >$cache_file
1921 fi
1922
1923 # Check that the precious variables saved in the cache have kept the same
1924 # value.
1925 ac_cache_corrupted=false
1926 for ac_var in $ac_precious_vars; do
1927   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1928   eval ac_new_set=\$ac_env_${ac_var}_set
1929   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1930   eval ac_new_val=\$ac_env_${ac_var}_value
1931   case $ac_old_set,$ac_new_set in
1932     set,)
1933       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1934 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1935       ac_cache_corrupted=: ;;
1936     ,set)
1937       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1938 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1939       ac_cache_corrupted=: ;;
1940     ,);;
1941     *)
1942       if test "x$ac_old_val" != "x$ac_new_val"; then
1943         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1944 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1945         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1946 echo "$as_me:   former value:  $ac_old_val" >&2;}
1947         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1948 echo "$as_me:   current value: $ac_new_val" >&2;}
1949         ac_cache_corrupted=:
1950       fi;;
1951   esac
1952   # Pass precious variables to config.status.
1953   if test "$ac_new_set" = set; then
1954     case $ac_new_val in
1955     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1956     *) ac_arg=$ac_var=$ac_new_val ;;
1957     esac
1958     case " $ac_configure_args " in
1959       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1960       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1961     esac
1962   fi
1963 done
1964 if $ac_cache_corrupted; then
1965   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1966 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1967   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1968 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1969    { (exit 1); exit 1; }; }
1970 fi
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996 ac_ext=c
1997 ac_cpp='$CPP $CPPFLAGS'
1998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2001
2002
2003
2004 ac_config_headers="$ac_config_headers src/gras_config.h"
2005
2006 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
2007
2008
2009 ac_aux_dir=
2010 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2011   if test -f "$ac_dir/install-sh"; then
2012     ac_aux_dir=$ac_dir
2013     ac_install_sh="$ac_aux_dir/install-sh -c"
2014     break
2015   elif test -f "$ac_dir/install.sh"; then
2016     ac_aux_dir=$ac_dir
2017     ac_install_sh="$ac_aux_dir/install.sh -c"
2018     break
2019   elif test -f "$ac_dir/shtool"; then
2020     ac_aux_dir=$ac_dir
2021     ac_install_sh="$ac_aux_dir/shtool install -c"
2022     break
2023   fi
2024 done
2025 if test -z "$ac_aux_dir"; then
2026   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2027 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2028    { (exit 1); exit 1; }; }
2029 fi
2030
2031 # These three variables are undocumented and unsupported,
2032 # and are intended to be withdrawn in a future Autoconf release.
2033 # They can cause serious problems if a builder's source tree is in a directory
2034 # whose full name contains unusual characters.
2035 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2036 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2037 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2038
2039
2040 # Make sure we can run config.sub.
2041 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2042   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2043 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2044    { (exit 1); exit 1; }; }
2045
2046 { echo "$as_me:$LINENO: checking build system type" >&5
2047 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2048 if test "${ac_cv_build+set}" = set; then
2049   echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051   ac_build_alias=$build_alias
2052 test "x$ac_build_alias" = x &&
2053   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2054 test "x$ac_build_alias" = x &&
2055   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2056 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2057    { (exit 1); exit 1; }; }
2058 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2059   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2060 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2061    { (exit 1); exit 1; }; }
2062
2063 fi
2064 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2065 echo "${ECHO_T}$ac_cv_build" >&6; }
2066 case $ac_cv_build in
2067 *-*-*) ;;
2068 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2069 echo "$as_me: error: invalid value of canonical build" >&2;}
2070    { (exit 1); exit 1; }; };;
2071 esac
2072 build=$ac_cv_build
2073 ac_save_IFS=$IFS; IFS='-'
2074 set x $ac_cv_build
2075 shift
2076 build_cpu=$1
2077 build_vendor=$2
2078 shift; shift
2079 # Remember, the first character of IFS is used to create $*,
2080 # except with old shells:
2081 build_os=$*
2082 IFS=$ac_save_IFS
2083 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2084
2085
2086 { echo "$as_me:$LINENO: checking host system type" >&5
2087 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2088 if test "${ac_cv_host+set}" = set; then
2089   echo $ECHO_N "(cached) $ECHO_C" >&6
2090 else
2091   if test "x$host_alias" = x; then
2092   ac_cv_host=$ac_cv_build
2093 else
2094   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2095     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2096 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2097    { (exit 1); exit 1; }; }
2098 fi
2099
2100 fi
2101 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2102 echo "${ECHO_T}$ac_cv_host" >&6; }
2103 case $ac_cv_host in
2104 *-*-*) ;;
2105 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2106 echo "$as_me: error: invalid value of canonical host" >&2;}
2107    { (exit 1); exit 1; }; };;
2108 esac
2109 host=$ac_cv_host
2110 ac_save_IFS=$IFS; IFS='-'
2111 set x $ac_cv_host
2112 shift
2113 host_cpu=$1
2114 host_vendor=$2
2115 shift; shift
2116 # Remember, the first character of IFS is used to create $*,
2117 # except with old shells:
2118 host_os=$*
2119 IFS=$ac_save_IFS
2120 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2121
2122
2123 { echo "$as_me:$LINENO: checking target system type" >&5
2124 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2125 if test "${ac_cv_target+set}" = set; then
2126   echo $ECHO_N "(cached) $ECHO_C" >&6
2127 else
2128   if test "x$target_alias" = x; then
2129   ac_cv_target=$ac_cv_host
2130 else
2131   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2132     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2133 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2134    { (exit 1); exit 1; }; }
2135 fi
2136
2137 fi
2138 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2139 echo "${ECHO_T}$ac_cv_target" >&6; }
2140 case $ac_cv_target in
2141 *-*-*) ;;
2142 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2143 echo "$as_me: error: invalid value of canonical target" >&2;}
2144    { (exit 1); exit 1; }; };;
2145 esac
2146 target=$ac_cv_target
2147 ac_save_IFS=$IFS; IFS='-'
2148 set x $ac_cv_target
2149 shift
2150 target_cpu=$1
2151 target_vendor=$2
2152 shift; shift
2153 # Remember, the first character of IFS is used to create $*,
2154 # except with old shells:
2155 target_os=$*
2156 IFS=$ac_save_IFS
2157 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2158
2159
2160 # The aliases save the names the user supplied, while $host etc.
2161 # will get canonicalized.
2162 test -n "$target_alias" &&
2163   test "$program_prefix$program_suffix$program_transform_name" = \
2164     NONENONEs,x,x, &&
2165   program_prefix=${target_alias}-
2166 ac_ext=c
2167 ac_cpp='$CPP $CPPFLAGS'
2168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2171
2172 rm -rf .tst 2>/dev/null
2173 mkdir .tst 2>/dev/null
2174 if test -d .tst; then
2175   am__leading_dot=.
2176 else
2177   am__leading_dot=_
2178 fi
2179 rmdir .tst 2>/dev/null
2180
2181 DEPDIR="${am__leading_dot}deps"
2182
2183 ac_config_commands="$ac_config_commands depfiles"
2184
2185
2186 am_make=${MAKE-make}
2187 cat > confinc << 'END'
2188 am__doit:
2189         @echo done
2190 .PHONY: am__doit
2191 END
2192 # If we don't find an include directive, just comment out the code.
2193 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2194 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2195 am__include="#"
2196 am__quote=
2197 _am_result=none
2198 # First try GNU make style include.
2199 echo "include confinc" > confmf
2200 # We grep out `Entering directory' and `Leaving directory'
2201 # messages which can occur if `w' ends up in MAKEFLAGS.
2202 # In particular we don't look at `^make:' because GNU make might
2203 # be invoked under some other name (usually "gmake"), in which
2204 # case it prints its new name instead of `make'.
2205 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2206    am__include=include
2207    am__quote=
2208    _am_result=GNU
2209 fi
2210 # Now try BSD make style include.
2211 if test "$am__include" = "#"; then
2212    echo '.include "confinc"' > confmf
2213    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2214       am__include=.include
2215       am__quote="\""
2216       _am_result=BSD
2217    fi
2218 fi
2219
2220
2221 { echo "$as_me:$LINENO: result: $_am_result" >&5
2222 echo "${ECHO_T}$_am_result" >&6; }
2223 rm -f confinc confmf
2224
2225 # Check whether --enable-dependency-tracking was given.
2226 if test "${enable_dependency_tracking+set}" = set; then
2227   enableval=$enable_dependency_tracking;
2228 fi
2229
2230 if test "x$enable_dependency_tracking" != xno; then
2231   am_depcomp="$ac_aux_dir/depcomp"
2232   AMDEPBACKSLASH='\'
2233 fi
2234  if test "x$enable_dependency_tracking" != xno; then
2235   AMDEP_TRUE=
2236   AMDEP_FALSE='#'
2237 else
2238   AMDEP_TRUE='#'
2239   AMDEP_FALSE=
2240 fi
2241
2242
2243
2244 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
2245 do
2246   # Extract the first word of "$ac_prog", so it can be a program name with args.
2247 set dummy $ac_prog; ac_word=$2
2248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2250 if test "${ac_cv_prog_GCJ+set}" = set; then
2251   echo $ECHO_N "(cached) $ECHO_C" >&6
2252 else
2253   if test -n "$GCJ"; then
2254   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
2255 else
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 for as_dir in $PATH
2258 do
2259   IFS=$as_save_IFS
2260   test -z "$as_dir" && as_dir=.
2261   for ac_exec_ext in '' $ac_executable_extensions; do
2262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2263     ac_cv_prog_GCJ="$ac_prog"
2264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2265     break 2
2266   fi
2267 done
2268 done
2269 IFS=$as_save_IFS
2270
2271 fi
2272 fi
2273 GCJ=$ac_cv_prog_GCJ
2274 if test -n "$GCJ"; then
2275   { echo "$as_me:$LINENO: result: $GCJ" >&5
2276 echo "${ECHO_T}$GCJ" >&6; }
2277 else
2278   { echo "$as_me:$LINENO: result: no" >&5
2279 echo "${ECHO_T}no" >&6; }
2280 fi
2281
2282
2283   test -n "$GCJ" && break
2284 done
2285 test -n "$GCJ" || GCJ="gcj"
2286
2287 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
2288 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
2289    { (exit 1); exit 1; }; }
2290 if test "x${GCJFLAGS-unset}" = xunset; then
2291    GCJFLAGS="-g -O2"
2292 fi
2293
2294
2295 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
2296
2297 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2298 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2299 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
2300   echo $ECHO_N "(cached) $ECHO_C" >&6
2301 else
2302   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2303   # We make a subdir and do the tests there.  Otherwise we can end up
2304   # making bogus files that we don't know about and never remove.  For
2305   # instance it was reported that on HP-UX the gcc test will end up
2306   # making a dummy file named `D' -- because `-MD' means `put the output
2307   # in D'.
2308   mkdir conftest.dir
2309   # Copy depcomp to subdir because otherwise we won't find it if we're
2310   # using a relative directory.
2311   cp "$am_depcomp" conftest.dir
2312   cd conftest.dir
2313   # We will build objects and dependencies in a subdirectory because
2314   # it helps to detect inapplicable dependency modes.  For instance
2315   # both Tru64's cc and ICC support -MD to output dependencies as a
2316   # side effect of compilation, but ICC will put the dependencies in
2317   # the current directory while Tru64 will put them in the object
2318   # directory.
2319   mkdir sub
2320
2321   am_cv_GCJ_dependencies_compiler_type=none
2322   if test "$am_compiler_list" = ""; then
2323      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2324   fi
2325   for depmode in $am_compiler_list; do
2326     # Setup a source with many dependencies, because some compilers
2327     # like to wrap large dependency lists on column 80 (with \), and
2328     # we should not choose a depcomp mode which is confused by this.
2329     #
2330     # We need to recreate these files for each test, as the compiler may
2331     # overwrite some of them when testing with obscure command lines.
2332     # This happens at least with the AIX C compiler.
2333     : > sub/conftest.c
2334     for i in 1 2 3 4 5 6; do
2335       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2336       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2337       # Solaris 8's {/usr,}/bin/sh.
2338       touch sub/conftst$i.h
2339     done
2340     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2341
2342     case $depmode in
2343     nosideeffect)
2344       # after this tag, mechanisms are not by side-effect, so they'll
2345       # only be used when explicitly requested
2346       if test "x$enable_dependency_tracking" = xyes; then
2347         continue
2348       else
2349         break
2350       fi
2351       ;;
2352     none) break ;;
2353     esac
2354     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2355     # mode.  It turns out that the SunPro C++ compiler does not properly
2356     # handle `-M -o', and we need to detect this.
2357     if depmode=$depmode \
2358        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2359        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2360        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2361          >/dev/null 2>conftest.err &&
2362        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2363        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2364        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2365        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2366       # icc doesn't choke on unknown options, it will just issue warnings
2367       # or remarks (even with -Werror).  So we grep stderr for any message
2368       # that says an option was ignored or not supported.
2369       # When given -MP, icc 7.0 and 7.1 complain thusly:
2370       #   icc: Command line warning: ignoring option '-M'; no argument required
2371       # The diagnosis changed in icc 8.0:
2372       #   icc: Command line remark: option '-MP' not supported
2373       if (grep 'ignoring option' conftest.err ||
2374           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2375         am_cv_GCJ_dependencies_compiler_type=$depmode
2376         break
2377       fi
2378     fi
2379   done
2380
2381   cd ..
2382   rm -rf conftest.dir
2383 else
2384   am_cv_GCJ_dependencies_compiler_type=none
2385 fi
2386
2387 fi
2388 { echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
2389 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6; }
2390 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
2391
2392  if
2393   test "x$enable_dependency_tracking" != xno \
2394   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
2395   am__fastdepGCJ_TRUE=
2396   am__fastdepGCJ_FALSE='#'
2397 else
2398   am__fastdepGCJ_TRUE='#'
2399   am__fastdepGCJ_FALSE=
2400 fi
2401
2402
2403
2404
2405 am__api_version='1.10'
2406
2407 # Find a good install program.  We prefer a C program (faster),
2408 # so one script is as good as another.  But avoid the broken or
2409 # incompatible versions:
2410 # SysV /etc/install, /usr/sbin/install
2411 # SunOS /usr/etc/install
2412 # IRIX /sbin/install
2413 # AIX /bin/install
2414 # AmigaOS /C/install, which installs bootblocks on floppy discs
2415 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2416 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2417 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2418 # OS/2's system install, which has a completely different semantic
2419 # ./install, which can be erroneously created by make from ./install.sh.
2420 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2421 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2422 if test -z "$INSTALL"; then
2423 if test "${ac_cv_path_install+set}" = set; then
2424   echo $ECHO_N "(cached) $ECHO_C" >&6
2425 else
2426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427 for as_dir in $PATH
2428 do
2429   IFS=$as_save_IFS
2430   test -z "$as_dir" && as_dir=.
2431   # Account for people who put trailing slashes in PATH elements.
2432 case $as_dir/ in
2433   ./ | .// | /cC/* | \
2434   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2435   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2436   /usr/ucb/* ) ;;
2437   *)
2438     # OSF1 and SCO ODT 3.0 have their own names for install.
2439     # Don't use installbsd from OSF since it installs stuff as root
2440     # by default.
2441     for ac_prog in ginstall scoinst install; do
2442       for ac_exec_ext in '' $ac_executable_extensions; do
2443         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2444           if test $ac_prog = install &&
2445             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2446             # AIX install.  It has an incompatible calling convention.
2447             :
2448           elif test $ac_prog = install &&
2449             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2450             # program-specific install script used by HP pwplus--don't use.
2451             :
2452           else
2453             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2454             break 3
2455           fi
2456         fi
2457       done
2458     done
2459     ;;
2460 esac
2461 done
2462 IFS=$as_save_IFS
2463
2464
2465 fi
2466   if test "${ac_cv_path_install+set}" = set; then
2467     INSTALL=$ac_cv_path_install
2468   else
2469     # As a last resort, use the slow shell script.  Don't cache a
2470     # value for INSTALL within a source directory, because that will
2471     # break other packages using the cache if that directory is
2472     # removed, or if the value is a relative name.
2473     INSTALL=$ac_install_sh
2474   fi
2475 fi
2476 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2477 echo "${ECHO_T}$INSTALL" >&6; }
2478
2479 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2480 # It thinks the first close brace ends the variable substitution.
2481 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2482
2483 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2484
2485 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2486
2487 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2488 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2489 # Just in case
2490 sleep 1
2491 echo timestamp > conftest.file
2492 # Do `set' in a subshell so we don't clobber the current shell's
2493 # arguments.  Must try -L first in case configure is actually a
2494 # symlink; some systems play weird games with the mod time of symlinks
2495 # (eg FreeBSD returns the mod time of the symlink's containing
2496 # directory).
2497 if (
2498    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2499    if test "$*" = "X"; then
2500       # -L didn't work.
2501       set X `ls -t $srcdir/configure conftest.file`
2502    fi
2503    rm -f conftest.file
2504    if test "$*" != "X $srcdir/configure conftest.file" \
2505       && test "$*" != "X conftest.file $srcdir/configure"; then
2506
2507       # If neither matched, then we have a broken ls.  This can happen
2508       # if, for instance, CONFIG_SHELL is bash and it inherits a
2509       # broken ls alias from the environment.  This has actually
2510       # happened.  Such a system could not be considered "sane".
2511       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2512 alias in your environment" >&5
2513 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2514 alias in your environment" >&2;}
2515    { (exit 1); exit 1; }; }
2516    fi
2517
2518    test "$2" = conftest.file
2519    )
2520 then
2521    # Ok.
2522    :
2523 else
2524    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2525 Check your system clock" >&5
2526 echo "$as_me: error: newly created file is older than distributed files!
2527 Check your system clock" >&2;}
2528    { (exit 1); exit 1; }; }
2529 fi
2530 { echo "$as_me:$LINENO: result: yes" >&5
2531 echo "${ECHO_T}yes" >&6; }
2532 test "$program_prefix" != NONE &&
2533   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2534 # Use a double $ so make ignores it.
2535 test "$program_suffix" != NONE &&
2536   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2537 # Double any \ or $.  echo might interpret backslashes.
2538 # By default was `s,x,x', remove it if useless.
2539 cat <<\_ACEOF >conftest.sed
2540 s/[\\$]/&&/g;s/;s,x,x,$//
2541 _ACEOF
2542 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2543 rm -f conftest.sed
2544
2545 # expand $ac_aux_dir to an absolute path
2546 am_aux_dir=`cd $ac_aux_dir && pwd`
2547
2548 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2549 # Use eval to expand $SHELL
2550 if eval "$MISSING --run true"; then
2551   am_missing_run="$MISSING --run "
2552 else
2553   am_missing_run=
2554   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2555 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2556 fi
2557
2558 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2559 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2560 if test -z "$MKDIR_P"; then
2561   if test "${ac_cv_path_mkdir+set}" = set; then
2562   echo $ECHO_N "(cached) $ECHO_C" >&6
2563 else
2564   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2566 do
2567   IFS=$as_save_IFS
2568   test -z "$as_dir" && as_dir=.
2569   for ac_prog in mkdir gmkdir; do
2570          for ac_exec_ext in '' $ac_executable_extensions; do
2571            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2572            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2573              'mkdir (GNU coreutils) '* | \
2574              'mkdir (coreutils) '* | \
2575              'mkdir (fileutils) '4.1*)
2576                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2577                break 3;;
2578            esac
2579          done
2580        done
2581 done
2582 IFS=$as_save_IFS
2583
2584 fi
2585
2586   if test "${ac_cv_path_mkdir+set}" = set; then
2587     MKDIR_P="$ac_cv_path_mkdir -p"
2588   else
2589     # As a last resort, use the slow shell script.  Don't cache a
2590     # value for MKDIR_P within a source directory, because that will
2591     # break other packages using the cache if that directory is
2592     # removed, or if the value is a relative name.
2593     test -d ./--version && rmdir ./--version
2594     MKDIR_P="$ac_install_sh -d"
2595   fi
2596 fi
2597 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2598 echo "${ECHO_T}$MKDIR_P" >&6; }
2599
2600 mkdir_p="$MKDIR_P"
2601 case $mkdir_p in
2602   [\\/$]* | ?:[\\/]*) ;;
2603   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2604 esac
2605
2606 for ac_prog in gawk mawk nawk awk
2607 do
2608   # Extract the first word of "$ac_prog", so it can be a program name with args.
2609 set dummy $ac_prog; ac_word=$2
2610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2612 if test "${ac_cv_prog_AWK+set}" = set; then
2613   echo $ECHO_N "(cached) $ECHO_C" >&6
2614 else
2615   if test -n "$AWK"; then
2616   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2617 else
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619 for as_dir in $PATH
2620 do
2621   IFS=$as_save_IFS
2622   test -z "$as_dir" && as_dir=.
2623   for ac_exec_ext in '' $ac_executable_extensions; do
2624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2625     ac_cv_prog_AWK="$ac_prog"
2626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2627     break 2
2628   fi
2629 done
2630 done
2631 IFS=$as_save_IFS
2632
2633 fi
2634 fi
2635 AWK=$ac_cv_prog_AWK
2636 if test -n "$AWK"; then
2637   { echo "$as_me:$LINENO: result: $AWK" >&5
2638 echo "${ECHO_T}$AWK" >&6; }
2639 else
2640   { echo "$as_me:$LINENO: result: no" >&5
2641 echo "${ECHO_T}no" >&6; }
2642 fi
2643
2644
2645   test -n "$AWK" && break
2646 done
2647
2648 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2649 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2650 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2651 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2652   echo $ECHO_N "(cached) $ECHO_C" >&6
2653 else
2654   cat >conftest.make <<\_ACEOF
2655 SHELL = /bin/sh
2656 all:
2657         @echo '@@@%%%=$(MAKE)=@@@%%%'
2658 _ACEOF
2659 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2660 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2661   *@@@%%%=?*=@@@%%%*)
2662     eval ac_cv_prog_make_${ac_make}_set=yes;;
2663   *)
2664     eval ac_cv_prog_make_${ac_make}_set=no;;
2665 esac
2666 rm -f conftest.make
2667 fi
2668 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2669   { echo "$as_me:$LINENO: result: yes" >&5
2670 echo "${ECHO_T}yes" >&6; }
2671   SET_MAKE=
2672 else
2673   { echo "$as_me:$LINENO: result: no" >&5
2674 echo "${ECHO_T}no" >&6; }
2675   SET_MAKE="MAKE=${MAKE-make}"
2676 fi
2677
2678 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2679   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2680   # is not polluted with repeated "-I."
2681   am__isrc=' -I$(srcdir)'
2682   # test to see if srcdir already configured
2683   if test -f $srcdir/config.status; then
2684     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2685 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2686    { (exit 1); exit 1; }; }
2687   fi
2688 fi
2689
2690 # test whether we have cygpath
2691 if test -z "$CYGPATH_W"; then
2692   if (cygpath --version) >/dev/null 2>/dev/null; then
2693     CYGPATH_W='cygpath -w'
2694   else
2695     CYGPATH_W=echo
2696   fi
2697 fi
2698
2699
2700 # Define the identity of the package.
2701  PACKAGE='simgrid'
2702  VERSION='3.3-cvs'
2703
2704
2705 cat >>confdefs.h <<_ACEOF
2706 #define PACKAGE "$PACKAGE"
2707 _ACEOF
2708
2709
2710 cat >>confdefs.h <<_ACEOF
2711 #define VERSION "$VERSION"
2712 _ACEOF
2713
2714 # Some tools Automake needs.
2715
2716 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2717
2718
2719 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2720
2721
2722 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2723
2724
2725 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2726
2727
2728 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2729
2730 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2731
2732 # Installed binaries are usually stripped using `strip' when the user
2733 # run `make install-strip'.  However `strip' might not be the right
2734 # tool to use in cross-compilation environments, therefore Automake
2735 # will honor the `STRIP' environment variable to overrule this program.
2736 if test "$cross_compiling" != no; then
2737   if test -n "$ac_tool_prefix"; then
2738   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2739 set dummy ${ac_tool_prefix}strip; ac_word=$2
2740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2742 if test "${ac_cv_prog_STRIP+set}" = set; then
2743   echo $ECHO_N "(cached) $ECHO_C" >&6
2744 else
2745   if test -n "$STRIP"; then
2746   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2747 else
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 for as_dir in $PATH
2750 do
2751   IFS=$as_save_IFS
2752   test -z "$as_dir" && as_dir=.
2753   for ac_exec_ext in '' $ac_executable_extensions; do
2754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2755     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2757     break 2
2758   fi
2759 done
2760 done
2761 IFS=$as_save_IFS
2762
2763 fi
2764 fi
2765 STRIP=$ac_cv_prog_STRIP
2766 if test -n "$STRIP"; then
2767   { echo "$as_me:$LINENO: result: $STRIP" >&5
2768 echo "${ECHO_T}$STRIP" >&6; }
2769 else
2770   { echo "$as_me:$LINENO: result: no" >&5
2771 echo "${ECHO_T}no" >&6; }
2772 fi
2773
2774
2775 fi
2776 if test -z "$ac_cv_prog_STRIP"; then
2777   ac_ct_STRIP=$STRIP
2778   # Extract the first word of "strip", so it can be a program name with args.
2779 set dummy strip; ac_word=$2
2780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2782 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2783   echo $ECHO_N "(cached) $ECHO_C" >&6
2784 else
2785   if test -n "$ac_ct_STRIP"; then
2786   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2787 else
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2790 do
2791   IFS=$as_save_IFS
2792   test -z "$as_dir" && as_dir=.
2793   for ac_exec_ext in '' $ac_executable_extensions; do
2794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2795     ac_cv_prog_ac_ct_STRIP="strip"
2796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2797     break 2
2798   fi
2799 done
2800 done
2801 IFS=$as_save_IFS
2802
2803 fi
2804 fi
2805 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2806 if test -n "$ac_ct_STRIP"; then
2807   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2808 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2809 else
2810   { echo "$as_me:$LINENO: result: no" >&5
2811 echo "${ECHO_T}no" >&6; }
2812 fi
2813
2814   if test "x$ac_ct_STRIP" = x; then
2815     STRIP=":"
2816   else
2817     case $cross_compiling:$ac_tool_warned in
2818 yes:)
2819 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2820 whose name does not start with the host triplet.  If you think this
2821 configuration is useful to you, please write to autoconf@gnu.org." >&5
2822 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2823 whose name does not start with the host triplet.  If you think this
2824 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2825 ac_tool_warned=yes ;;
2826 esac
2827     STRIP=$ac_ct_STRIP
2828   fi
2829 else
2830   STRIP="$ac_cv_prog_STRIP"
2831 fi
2832
2833 fi
2834 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2835
2836 # We need awk for the "check" target.  The system "awk" is bad on
2837 # some platforms.
2838 # Always define AMTAR for backward compatibility.
2839
2840 AMTAR=${AMTAR-"${am_missing_run}tar"}
2841
2842 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2843
2844
2845
2846
2847
2848
2849 ACLOCAL="$ACLOCAL -I acmacro"
2850
2851
2852
2853
2854
2855
2856 # Check whether --enable-shared was given.
2857 if test "${enable_shared+set}" = set; then
2858   enableval=$enable_shared; p=${PACKAGE-default}
2859     case $enableval in
2860     yes) enable_shared=yes ;;
2861     no) enable_shared=no ;;
2862     *)
2863       enable_shared=no
2864       # Look at the argument we got.  We use all the common list separators.
2865       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2866       for pkg in $enableval; do
2867         IFS="$lt_save_ifs"
2868         if test "X$pkg" = "X$p"; then
2869           enable_shared=yes
2870         fi
2871       done
2872       IFS="$lt_save_ifs"
2873       ;;
2874     esac
2875 else
2876   enable_shared=yes
2877 fi
2878
2879
2880 # Check whether --enable-static was given.
2881 if test "${enable_static+set}" = set; then
2882   enableval=$enable_static; p=${PACKAGE-default}
2883     case $enableval in
2884     yes) enable_static=yes ;;
2885     no) enable_static=no ;;
2886     *)
2887      enable_static=no
2888       # Look at the argument we got.  We use all the common list separators.
2889       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2890       for pkg in $enableval; do
2891         IFS="$lt_save_ifs"
2892         if test "X$pkg" = "X$p"; then
2893           enable_static=yes
2894         fi
2895       done
2896       IFS="$lt_save_ifs"
2897       ;;
2898     esac
2899 else
2900   enable_static=yes
2901 fi
2902
2903
2904 # Check whether --enable-fast-install was given.
2905 if test "${enable_fast_install+set}" = set; then
2906   enableval=$enable_fast_install; p=${PACKAGE-default}
2907     case $enableval in
2908     yes) enable_fast_install=yes ;;
2909     no) enable_fast_install=no ;;
2910     *)
2911       enable_fast_install=no
2912       # Look at the argument we got.  We use all the common list separators.
2913       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2914       for pkg in $enableval; do
2915         IFS="$lt_save_ifs"
2916         if test "X$pkg" = "X$p"; then
2917           enable_fast_install=yes
2918         fi
2919       done
2920       IFS="$lt_save_ifs"
2921       ;;
2922     esac
2923 else
2924   enable_fast_install=yes
2925 fi
2926
2927
2928 ac_ext=c
2929 ac_cpp='$CPP $CPPFLAGS'
2930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2933 if test -n "$ac_tool_prefix"; then
2934   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2935 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2938 if test "${ac_cv_prog_CC+set}" = set; then
2939   echo $ECHO_N "(cached) $ECHO_C" >&6
2940 else
2941   if test -n "$CC"; then
2942   ac_cv_prog_CC="$CC" # Let the user override the test.
2943 else
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 for as_dir in $PATH
2946 do
2947   IFS=$as_save_IFS
2948   test -z "$as_dir" && as_dir=.
2949   for ac_exec_ext in '' $ac_executable_extensions; do
2950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2951     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2953     break 2
2954   fi
2955 done
2956 done
2957 IFS=$as_save_IFS
2958
2959 fi
2960 fi
2961 CC=$ac_cv_prog_CC
2962 if test -n "$CC"; then
2963   { echo "$as_me:$LINENO: result: $CC" >&5
2964 echo "${ECHO_T}$CC" >&6; }
2965 else
2966   { echo "$as_me:$LINENO: result: no" >&5
2967 echo "${ECHO_T}no" >&6; }
2968 fi
2969
2970
2971 fi
2972 if test -z "$ac_cv_prog_CC"; then
2973   ac_ct_CC=$CC
2974   # Extract the first word of "gcc", so it can be a program name with args.
2975 set dummy gcc; ac_word=$2
2976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2978 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2979   echo $ECHO_N "(cached) $ECHO_C" >&6
2980 else
2981   if test -n "$ac_ct_CC"; then
2982   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2983 else
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 for as_dir in $PATH
2986 do
2987   IFS=$as_save_IFS
2988   test -z "$as_dir" && as_dir=.
2989   for ac_exec_ext in '' $ac_executable_extensions; do
2990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2991     ac_cv_prog_ac_ct_CC="gcc"
2992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2993     break 2
2994   fi
2995 done
2996 done
2997 IFS=$as_save_IFS
2998
2999 fi
3000 fi
3001 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3002 if test -n "$ac_ct_CC"; then
3003   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3004 echo "${ECHO_T}$ac_ct_CC" >&6; }
3005 else
3006   { echo "$as_me:$LINENO: result: no" >&5
3007 echo "${ECHO_T}no" >&6; }
3008 fi
3009
3010   if test "x$ac_ct_CC" = x; then
3011     CC=""
3012   else
3013     case $cross_compiling:$ac_tool_warned in
3014 yes:)
3015 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3016 whose name does not start with the host triplet.  If you think this
3017 configuration is useful to you, please write to autoconf@gnu.org." >&5
3018 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3019 whose name does not start with the host triplet.  If you think this
3020 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3021 ac_tool_warned=yes ;;
3022 esac
3023     CC=$ac_ct_CC
3024   fi
3025 else
3026   CC="$ac_cv_prog_CC"
3027 fi
3028
3029 if test -z "$CC"; then
3030           if test -n "$ac_tool_prefix"; then
3031     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3032 set dummy ${ac_tool_prefix}cc; ac_word=$2
3033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3035 if test "${ac_cv_prog_CC+set}" = set; then
3036   echo $ECHO_N "(cached) $ECHO_C" >&6
3037 else
3038   if test -n "$CC"; then
3039   ac_cv_prog_CC="$CC" # Let the user override the test.
3040 else
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 for as_dir in $PATH
3043 do
3044   IFS=$as_save_IFS
3045   test -z "$as_dir" && as_dir=.
3046   for ac_exec_ext in '' $ac_executable_extensions; do
3047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3048     ac_cv_prog_CC="${ac_tool_prefix}cc"
3049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3050     break 2
3051   fi
3052 done
3053 done
3054 IFS=$as_save_IFS
3055
3056 fi
3057 fi
3058 CC=$ac_cv_prog_CC
3059 if test -n "$CC"; then
3060   { echo "$as_me:$LINENO: result: $CC" >&5
3061 echo "${ECHO_T}$CC" >&6; }
3062 else
3063   { echo "$as_me:$LINENO: result: no" >&5
3064 echo "${ECHO_T}no" >&6; }
3065 fi
3066
3067
3068   fi
3069 fi
3070 if test -z "$CC"; then
3071   # Extract the first word of "cc", so it can be a program name with args.
3072 set dummy cc; ac_word=$2
3073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3075 if test "${ac_cv_prog_CC+set}" = set; then
3076   echo $ECHO_N "(cached) $ECHO_C" >&6
3077 else
3078   if test -n "$CC"; then
3079   ac_cv_prog_CC="$CC" # Let the user override the test.
3080 else
3081   ac_prog_rejected=no
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 for as_dir in $PATH
3084 do
3085   IFS=$as_save_IFS
3086   test -z "$as_dir" && as_dir=.
3087   for ac_exec_ext in '' $ac_executable_extensions; do
3088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3089     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3090        ac_prog_rejected=yes
3091        continue
3092      fi
3093     ac_cv_prog_CC="cc"
3094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3095     break 2
3096   fi
3097 done
3098 done
3099 IFS=$as_save_IFS
3100
3101 if test $ac_prog_rejected = yes; then
3102   # We found a bogon in the path, so make sure we never use it.
3103   set dummy $ac_cv_prog_CC
3104   shift
3105   if test $# != 0; then
3106     # We chose a different compiler from the bogus one.
3107     # However, it has the same basename, so the bogon will be chosen
3108     # first if we set CC to just the basename; use the full file name.
3109     shift
3110     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3111   fi
3112 fi
3113 fi
3114 fi
3115 CC=$ac_cv_prog_CC
3116 if test -n "$CC"; then
3117   { echo "$as_me:$LINENO: result: $CC" >&5
3118 echo "${ECHO_T}$CC" >&6; }
3119 else
3120   { echo "$as_me:$LINENO: result: no" >&5
3121 echo "${ECHO_T}no" >&6; }
3122 fi
3123
3124
3125 fi
3126 if test -z "$CC"; then
3127   if test -n "$ac_tool_prefix"; then
3128   for ac_prog in cl.exe
3129   do
3130     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3134 if test "${ac_cv_prog_CC+set}" = set; then
3135   echo $ECHO_N "(cached) $ECHO_C" >&6
3136 else
3137   if test -n "$CC"; then
3138   ac_cv_prog_CC="$CC" # Let the user override the test.
3139 else
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH
3142 do
3143   IFS=$as_save_IFS
3144   test -z "$as_dir" && as_dir=.
3145   for ac_exec_ext in '' $ac_executable_extensions; do
3146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3149     break 2
3150   fi
3151 done
3152 done
3153 IFS=$as_save_IFS
3154
3155 fi
3156 fi
3157 CC=$ac_cv_prog_CC
3158 if test -n "$CC"; then
3159   { echo "$as_me:$LINENO: result: $CC" >&5
3160 echo "${ECHO_T}$CC" >&6; }
3161 else
3162   { echo "$as_me:$LINENO: result: no" >&5
3163 echo "${ECHO_T}no" >&6; }
3164 fi
3165
3166
3167     test -n "$CC" && break
3168   done
3169 fi
3170 if test -z "$CC"; then
3171   ac_ct_CC=$CC
3172   for ac_prog in cl.exe
3173 do
3174   # Extract the first word of "$ac_prog", so it can be a program name with args.
3175 set dummy $ac_prog; ac_word=$2
3176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3178 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3179   echo $ECHO_N "(cached) $ECHO_C" >&6
3180 else
3181   if test -n "$ac_ct_CC"; then
3182   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3183 else
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 for as_dir in $PATH
3186 do
3187   IFS=$as_save_IFS
3188   test -z "$as_dir" && as_dir=.
3189   for ac_exec_ext in '' $ac_executable_extensions; do
3190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3191     ac_cv_prog_ac_ct_CC="$ac_prog"
3192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3193     break 2
3194   fi
3195 done
3196 done
3197 IFS=$as_save_IFS
3198
3199 fi
3200 fi
3201 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3202 if test -n "$ac_ct_CC"; then
3203   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3204 echo "${ECHO_T}$ac_ct_CC" >&6; }
3205 else
3206   { echo "$as_me:$LINENO: result: no" >&5
3207 echo "${ECHO_T}no" >&6; }
3208 fi
3209
3210
3211   test -n "$ac_ct_CC" && break
3212 done
3213
3214   if test "x$ac_ct_CC" = x; then
3215     CC=""
3216   else
3217     case $cross_compiling:$ac_tool_warned in
3218 yes:)
3219 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3220 whose name does not start with the host triplet.  If you think this
3221 configuration is useful to you, please write to autoconf@gnu.org." >&5
3222 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3223 whose name does not start with the host triplet.  If you think this
3224 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3225 ac_tool_warned=yes ;;
3226 esac
3227     CC=$ac_ct_CC
3228   fi
3229 fi
3230
3231 fi
3232
3233
3234 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3235 See \`config.log' for more details." >&5
3236 echo "$as_me: error: no acceptable C compiler found in \$PATH
3237 See \`config.log' for more details." >&2;}
3238    { (exit 1); exit 1; }; }
3239
3240 # Provide some information about the compiler.
3241 echo "$as_me:$LINENO: checking for C compiler version" >&5
3242 ac_compiler=`set X $ac_compile; echo $2`
3243 { (ac_try="$ac_compiler --version >&5"
3244 case "(($ac_try" in
3245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246   *) ac_try_echo=$ac_try;;
3247 esac
3248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249   (eval "$ac_compiler --version >&5") 2>&5
3250   ac_status=$?
3251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252   (exit $ac_status); }
3253 { (ac_try="$ac_compiler -v >&5"
3254 case "(($ac_try" in
3255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256   *) ac_try_echo=$ac_try;;
3257 esac
3258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3259   (eval "$ac_compiler -v >&5") 2>&5
3260   ac_status=$?
3261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262   (exit $ac_status); }
3263 { (ac_try="$ac_compiler -V >&5"
3264 case "(($ac_try" in
3265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266   *) ac_try_echo=$ac_try;;
3267 esac
3268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3269   (eval "$ac_compiler -V >&5") 2>&5
3270   ac_status=$?
3271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272   (exit $ac_status); }
3273
3274 cat >conftest.$ac_ext <<_ACEOF
3275 /* confdefs.h.  */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h.  */
3280
3281 int
3282 main ()
3283 {
3284
3285   ;
3286   return 0;
3287 }
3288 _ACEOF
3289 ac_clean_files_save=$ac_clean_files
3290 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3291 # Try to create an executable without -o first, disregard a.out.
3292 # It will help us diagnose broken compilers, and finding out an intuition
3293 # of exeext.
3294 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3295 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3296 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3297 #
3298 # List of possible output files, starting from the most likely.
3299 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3300 # only as a last resort.  b.out is created by i960 compilers.
3301 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3302 #
3303 # The IRIX 6 linker writes into existing files which may not be
3304 # executable, retaining their permissions.  Remove them first so a
3305 # subsequent execution test works.
3306 ac_rmfiles=
3307 for ac_file in $ac_files
3308 do
3309   case $ac_file in
3310     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3311     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3312   esac
3313 done
3314 rm -f $ac_rmfiles
3315
3316 if { (ac_try="$ac_link_default"
3317 case "(($ac_try" in
3318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319   *) ac_try_echo=$ac_try;;
3320 esac
3321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3322   (eval "$ac_link_default") 2>&5
3323   ac_status=$?
3324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325   (exit $ac_status); }; then
3326   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3327 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3328 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3329 # so that the user can short-circuit this test for compilers unknown to
3330 # Autoconf.
3331 for ac_file in $ac_files ''
3332 do
3333   test -f "$ac_file" || continue
3334   case $ac_file in
3335     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3336         ;;
3337     [ab].out )
3338         # We found the default executable, but exeext='' is most
3339         # certainly right.
3340         break;;
3341     *.* )
3342         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3343         then :; else
3344            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3345         fi
3346         # We set ac_cv_exeext here because the later test for it is not
3347         # safe: cross compilers may not add the suffix if given an `-o'
3348         # argument, so we may need to know it at that point already.
3349         # Even if this section looks crufty: it has the advantage of
3350         # actually working.
3351         break;;
3352     * )
3353         break;;
3354   esac
3355 done
3356 test "$ac_cv_exeext" = no && ac_cv_exeext=
3357
3358 else
3359   ac_file=''
3360 fi
3361
3362 { echo "$as_me:$LINENO: result: $ac_file" >&5
3363 echo "${ECHO_T}$ac_file" >&6; }
3364 if test -z "$ac_file"; then
3365   echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3367
3368 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3369 See \`config.log' for more details." >&5
3370 echo "$as_me: error: C compiler cannot create executables
3371 See \`config.log' for more details." >&2;}
3372    { (exit 77); exit 77; }; }
3373 fi
3374
3375 ac_exeext=$ac_cv_exeext
3376
3377 # Check that the compiler produces executables we can run.  If not, either
3378 # the compiler is broken, or we cross compile.
3379 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3380 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3381 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3382 # If not cross compiling, check that we can run a simple program.
3383 if test "$cross_compiling" != yes; then
3384   if { ac_try='./$ac_file'
3385   { (case "(($ac_try" in
3386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387   *) ac_try_echo=$ac_try;;
3388 esac
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390   (eval "$ac_try") 2>&5
3391   ac_status=$?
3392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393   (exit $ac_status); }; }; then
3394     cross_compiling=no
3395   else
3396     if test "$cross_compiling" = maybe; then
3397         cross_compiling=yes
3398     else
3399         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3400 If you meant to cross compile, use \`--host'.
3401 See \`config.log' for more details." >&5
3402 echo "$as_me: error: cannot run C compiled programs.
3403 If you meant to cross compile, use \`--host'.
3404 See \`config.log' for more details." >&2;}
3405    { (exit 1); exit 1; }; }
3406     fi
3407   fi
3408 fi
3409 { echo "$as_me:$LINENO: result: yes" >&5
3410 echo "${ECHO_T}yes" >&6; }
3411
3412 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3413 ac_clean_files=$ac_clean_files_save
3414 # Check that the compiler produces executables we can run.  If not, either
3415 # the compiler is broken, or we cross compile.
3416 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3417 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3418 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3419 echo "${ECHO_T}$cross_compiling" >&6; }
3420
3421 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3422 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3423 if { (ac_try="$ac_link"
3424 case "(($ac_try" in
3425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426   *) ac_try_echo=$ac_try;;
3427 esac
3428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3429   (eval "$ac_link") 2>&5
3430   ac_status=$?
3431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432   (exit $ac_status); }; then
3433   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3434 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3435 # work properly (i.e., refer to `conftest.exe'), while it won't with
3436 # `rm'.
3437 for ac_file in conftest.exe conftest conftest.*; do
3438   test -f "$ac_file" || continue
3439   case $ac_file in
3440     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3441     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3442           break;;
3443     * ) break;;
3444   esac
3445 done
3446 else
3447   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3448 See \`config.log' for more details." >&5
3449 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3450 See \`config.log' for more details." >&2;}
3451    { (exit 1); exit 1; }; }
3452 fi
3453
3454 rm -f conftest$ac_cv_exeext
3455 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3456 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3457
3458 rm -f conftest.$ac_ext
3459 EXEEXT=$ac_cv_exeext
3460 ac_exeext=$EXEEXT
3461 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3462 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3463 if test "${ac_cv_objext+set}" = set; then
3464   echo $ECHO_N "(cached) $ECHO_C" >&6
3465 else
3466   cat >conftest.$ac_ext <<_ACEOF
3467 /* confdefs.h.  */
3468 _ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h.  */
3472
3473 int
3474 main ()
3475 {
3476
3477   ;
3478   return 0;
3479 }
3480 _ACEOF
3481 rm -f conftest.o conftest.obj
3482 if { (ac_try="$ac_compile"
3483 case "(($ac_try" in
3484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485   *) ac_try_echo=$ac_try;;
3486 esac
3487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488   (eval "$ac_compile") 2>&5
3489   ac_status=$?
3490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491   (exit $ac_status); }; then
3492   for ac_file in conftest.o conftest.obj conftest.*; do
3493   test -f "$ac_file" || continue;
3494   case $ac_file in
3495     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3496     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3497        break;;
3498   esac
3499 done
3500 else
3501   echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3503
3504 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3505 See \`config.log' for more details." >&5
3506 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3507 See \`config.log' for more details." >&2;}
3508    { (exit 1); exit 1; }; }
3509 fi
3510
3511 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3512 fi
3513 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3514 echo "${ECHO_T}$ac_cv_objext" >&6; }
3515 OBJEXT=$ac_cv_objext
3516 ac_objext=$OBJEXT
3517 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3518 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3519 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3520   echo $ECHO_N "(cached) $ECHO_C" >&6
3521 else
3522   cat >conftest.$ac_ext <<_ACEOF
3523 /* confdefs.h.  */
3524 _ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h.  */
3528
3529 int
3530 main ()
3531 {
3532 #ifndef __GNUC__
3533        choke me
3534 #endif
3535
3536   ;
3537   return 0;
3538 }
3539 _ACEOF
3540 rm -f conftest.$ac_objext
3541 if { (ac_try="$ac_compile"
3542 case "(($ac_try" in
3543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544   *) ac_try_echo=$ac_try;;
3545 esac
3546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3547   (eval "$ac_compile") 2>conftest.er1
3548   ac_status=$?
3549   grep -v '^ *+' conftest.er1 >conftest.err
3550   rm -f conftest.er1
3551   cat conftest.err >&5
3552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553   (exit $ac_status); } && {
3554          test -z "$ac_c_werror_flag" ||
3555          test ! -s conftest.err
3556        } && test -s conftest.$ac_objext; then
3557   ac_compiler_gnu=yes
3558 else
3559   echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3561
3562         ac_compiler_gnu=no
3563 fi
3564
3565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3567
3568 fi
3569 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3570 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3571 GCC=`test $ac_compiler_gnu = yes && echo yes`
3572 ac_test_CFLAGS=${CFLAGS+set}
3573 ac_save_CFLAGS=$CFLAGS
3574 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3575 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3576 if test "${ac_cv_prog_cc_g+set}" = set; then
3577   echo $ECHO_N "(cached) $ECHO_C" >&6
3578 else
3579   ac_save_c_werror_flag=$ac_c_werror_flag
3580    ac_c_werror_flag=yes
3581    ac_cv_prog_cc_g=no
3582    CFLAGS="-g"
3583    cat >conftest.$ac_ext <<_ACEOF
3584 /* confdefs.h.  */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h.  */
3589
3590 int
3591 main ()
3592 {
3593
3594   ;
3595   return 0;
3596 }
3597 _ACEOF
3598 rm -f conftest.$ac_objext
3599 if { (ac_try="$ac_compile"
3600 case "(($ac_try" in
3601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602   *) ac_try_echo=$ac_try;;
3603 esac
3604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3605   (eval "$ac_compile") 2>conftest.er1
3606   ac_status=$?
3607   grep -v '^ *+' conftest.er1 >conftest.err
3608   rm -f conftest.er1
3609   cat conftest.err >&5
3610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611   (exit $ac_status); } && {
3612          test -z "$ac_c_werror_flag" ||
3613          test ! -s conftest.err
3614        } && test -s conftest.$ac_objext; then
3615   ac_cv_prog_cc_g=yes
3616 else
3617   echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3619
3620         CFLAGS=""
3621       cat >conftest.$ac_ext <<_ACEOF
3622 /* confdefs.h.  */
3623 _ACEOF
3624 cat confdefs.h >>conftest.$ac_ext
3625 cat >>conftest.$ac_ext <<_ACEOF
3626 /* end confdefs.h.  */
3627
3628 int
3629 main ()
3630 {
3631
3632   ;
3633   return 0;
3634 }
3635 _ACEOF
3636 rm -f conftest.$ac_objext
3637 if { (ac_try="$ac_compile"
3638 case "(($ac_try" in
3639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640   *) ac_try_echo=$ac_try;;
3641 esac
3642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3643   (eval "$ac_compile") 2>conftest.er1
3644   ac_status=$?
3645   grep -v '^ *+' conftest.er1 >conftest.err
3646   rm -f conftest.er1
3647   cat conftest.err >&5
3648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649   (exit $ac_status); } && {
3650          test -z "$ac_c_werror_flag" ||
3651          test ! -s conftest.err
3652        } && test -s conftest.$ac_objext; then
3653   :
3654 else
3655   echo "$as_me: failed program was:" >&5
3656 sed 's/^/| /' conftest.$ac_ext >&5
3657
3658         ac_c_werror_flag=$ac_save_c_werror_flag
3659          CFLAGS="-g"
3660          cat >conftest.$ac_ext <<_ACEOF
3661 /* confdefs.h.  */
3662 _ACEOF
3663 cat confdefs.h >>conftest.$ac_ext
3664 cat >>conftest.$ac_ext <<_ACEOF
3665 /* end confdefs.h.  */
3666
3667 int
3668 main ()
3669 {
3670
3671   ;
3672   return 0;
3673 }
3674 _ACEOF
3675 rm -f conftest.$ac_objext
3676 if { (ac_try="$ac_compile"
3677 case "(($ac_try" in
3678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679   *) ac_try_echo=$ac_try;;
3680 esac
3681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3682   (eval "$ac_compile") 2>conftest.er1
3683   ac_status=$?
3684   grep -v '^ *+' conftest.er1 >conftest.err
3685   rm -f conftest.er1
3686   cat conftest.err >&5
3687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688   (exit $ac_status); } && {
3689          test -z "$ac_c_werror_flag" ||
3690          test ! -s conftest.err
3691        } && test -s conftest.$ac_objext; then
3692   ac_cv_prog_cc_g=yes
3693 else
3694   echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3696
3697
3698 fi
3699
3700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3701 fi
3702
3703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3704 fi
3705
3706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3707    ac_c_werror_flag=$ac_save_c_werror_flag
3708 fi
3709 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3710 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3711 if test "$ac_test_CFLAGS" = set; then
3712   CFLAGS=$ac_save_CFLAGS
3713 elif test $ac_cv_prog_cc_g = yes; then
3714   if test "$GCC" = yes; then
3715     CFLAGS="-g -O2"
3716   else
3717     CFLAGS="-g"
3718   fi
3719 else
3720   if test "$GCC" = yes; then
3721     CFLAGS="-O2"
3722   else
3723     CFLAGS=
3724   fi
3725 fi
3726 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3727 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3728 if test "${ac_cv_prog_cc_c89+set}" = set; then
3729   echo $ECHO_N "(cached) $ECHO_C" >&6
3730 else
3731   ac_cv_prog_cc_c89=no
3732 ac_save_CC=$CC
3733 cat >conftest.$ac_ext <<_ACEOF
3734 /* confdefs.h.  */
3735 _ACEOF
3736 cat confdefs.h >>conftest.$ac_ext
3737 cat >>conftest.$ac_ext <<_ACEOF
3738 /* end confdefs.h.  */
3739 #include <stdarg.h>
3740 #include <stdio.h>
3741 #include <sys/types.h>
3742 #include <sys/stat.h>
3743 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3744 struct buf { int x; };
3745 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3746 static char *e (p, i)
3747      char **p;
3748      int i;
3749 {
3750   return p[i];
3751 }
3752 static char *f (char * (*g) (char **, int), char **p, ...)
3753 {
3754   char *s;
3755   va_list v;
3756   va_start (v,p);
3757   s = g (p, va_arg (v,int));
3758   va_end (v);
3759   return s;
3760 }
3761
3762 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3763    function prototypes and stuff, but not '\xHH' hex character constants.
3764    These don't provoke an error unfortunately, instead are silently treated
3765    as 'x'.  The following induces an error, until -std is added to get
3766    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3767    array size at least.  It's necessary to write '\x00'==0 to get something
3768    that's true only with -std.  */
3769 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3770
3771 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3772    inside strings and character constants.  */
3773 #define FOO(x) 'x'
3774 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3775
3776 int test (int i, double x);
3777 struct s1 {int (*f) (int a);};
3778 struct s2 {int (*f) (double a);};
3779 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3780 int argc;
3781 char **argv;
3782 int
3783 main ()
3784 {
3785 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3786   ;
3787   return 0;
3788 }
3789 _ACEOF
3790 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3791         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3792 do
3793   CC="$ac_save_CC $ac_arg"
3794   rm -f conftest.$ac_objext
3795 if { (ac_try="$ac_compile"
3796 case "(($ac_try" in
3797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798   *) ac_try_echo=$ac_try;;
3799 esac
3800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3801   (eval "$ac_compile") 2>conftest.er1
3802   ac_status=$?
3803   grep -v '^ *+' conftest.er1 >conftest.err
3804   rm -f conftest.er1
3805   cat conftest.err >&5
3806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807   (exit $ac_status); } && {
3808          test -z "$ac_c_werror_flag" ||
3809          test ! -s conftest.err
3810        } && test -s conftest.$ac_objext; then
3811   ac_cv_prog_cc_c89=$ac_arg
3812 else
3813   echo "$as_me: failed program was:" >&5
3814 sed 's/^/| /' conftest.$ac_ext >&5
3815
3816
3817 fi
3818
3819 rm -f core conftest.err conftest.$ac_objext
3820   test "x$ac_cv_prog_cc_c89" != "xno" && break
3821 done
3822 rm -f conftest.$ac_ext
3823 CC=$ac_save_CC
3824
3825 fi
3826 # AC_CACHE_VAL
3827 case "x$ac_cv_prog_cc_c89" in
3828   x)
3829     { echo "$as_me:$LINENO: result: none needed" >&5
3830 echo "${ECHO_T}none needed" >&6; } ;;
3831   xno)
3832     { echo "$as_me:$LINENO: result: unsupported" >&5
3833 echo "${ECHO_T}unsupported" >&6; } ;;
3834   *)
3835     CC="$CC $ac_cv_prog_cc_c89"
3836     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3837 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3838 esac
3839
3840
3841 ac_ext=c
3842 ac_cpp='$CPP $CPPFLAGS'
3843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3846
3847 depcc="$CC"   am_compiler_list=
3848
3849 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3850 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3851 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3852   echo $ECHO_N "(cached) $ECHO_C" >&6
3853 else
3854   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3855   # We make a subdir and do the tests there.  Otherwise we can end up
3856   # making bogus files that we don't know about and never remove.  For
3857   # instance it was reported that on HP-UX the gcc test will end up
3858   # making a dummy file named `D' -- because `-MD' means `put the output
3859   # in D'.
3860   mkdir conftest.dir
3861   # Copy depcomp to subdir because otherwise we won't find it if we're
3862   # using a relative directory.
3863   cp "$am_depcomp" conftest.dir
3864   cd conftest.dir
3865   # We will build objects and dependencies in a subdirectory because
3866   # it helps to detect inapplicable dependency modes.  For instance
3867   # both Tru64's cc and ICC support -MD to output dependencies as a
3868   # side effect of compilation, but ICC will put the dependencies in
3869   # the current directory while Tru64 will put them in the object
3870   # directory.
3871   mkdir sub
3872
3873   am_cv_CC_dependencies_compiler_type=none
3874   if test "$am_compiler_list" = ""; then
3875      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3876   fi
3877   for depmode in $am_compiler_list; do
3878     # Setup a source with many dependencies, because some compilers
3879     # like to wrap large dependency lists on column 80 (with \), and
3880     # we should not choose a depcomp mode which is confused by this.
3881     #
3882     # We need to recreate these files for each test, as the compiler may
3883     # overwrite some of them when testing with obscure command lines.
3884     # This happens at least with the AIX C compiler.
3885     : > sub/conftest.c
3886     for i in 1 2 3 4 5 6; do
3887       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3888       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3889       # Solaris 8's {/usr,}/bin/sh.
3890       touch sub/conftst$i.h
3891     done
3892     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3893
3894     case $depmode in
3895     nosideeffect)
3896       # after this tag, mechanisms are not by side-effect, so they'll
3897       # only be used when explicitly requested
3898       if test "x$enable_dependency_tracking" = xyes; then
3899         continue
3900       else
3901         break
3902       fi
3903       ;;
3904     none) break ;;
3905     esac
3906     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3907     # mode.  It turns out that the SunPro C++ compiler does not properly
3908     # handle `-M -o', and we need to detect this.
3909     if depmode=$depmode \
3910        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3911        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3912        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3913          >/dev/null 2>conftest.err &&
3914        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3915        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3916        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3917        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3918       # icc doesn't choke on unknown options, it will just issue warnings
3919       # or remarks (even with -Werror).  So we grep stderr for any message
3920       # that says an option was ignored or not supported.
3921       # When given -MP, icc 7.0 and 7.1 complain thusly:
3922       #   icc: Command line warning: ignoring option '-M'; no argument required
3923       # The diagnosis changed in icc 8.0:
3924       #   icc: Command line remark: option '-MP' not supported
3925       if (grep 'ignoring option' conftest.err ||
3926           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3927         am_cv_CC_dependencies_compiler_type=$depmode
3928         break
3929       fi
3930     fi
3931   done
3932
3933   cd ..
3934   rm -rf conftest.dir
3935 else
3936   am_cv_CC_dependencies_compiler_type=none
3937 fi
3938
3939 fi
3940 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3941 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3942 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3943
3944  if
3945   test "x$enable_dependency_tracking" != xno \
3946   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3947   am__fastdepCC_TRUE=
3948   am__fastdepCC_FALSE='#'
3949 else
3950   am__fastdepCC_TRUE='#'
3951   am__fastdepCC_FALSE=
3952 fi
3953
3954
3955 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3956 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3957 if test "${lt_cv_path_SED+set}" = set; then
3958   echo $ECHO_N "(cached) $ECHO_C" >&6
3959 else
3960   # Loop through the user's path and test for sed and gsed.
3961 # Then use that list of sed's as ones to test for truncation.
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 for as_dir in $PATH
3964 do
3965   IFS=$as_save_IFS
3966   test -z "$as_dir" && as_dir=.
3967   for lt_ac_prog in sed gsed; do
3968     for ac_exec_ext in '' $ac_executable_extensions; do
3969       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3970         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3971       fi
3972     done
3973   done
3974 done
3975 lt_ac_max=0
3976 lt_ac_count=0
3977 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3978 # along with /bin/sed that truncates output.
3979 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3980   test ! -f $lt_ac_sed && continue
3981   cat /dev/null > conftest.in
3982   lt_ac_count=0
3983   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3984   # Check for GNU sed and select it if it is found.
3985   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3986     lt_cv_path_SED=$lt_ac_sed
3987     break
3988   fi
3989   while true; do
3990     cat conftest.in conftest.in >conftest.tmp
3991     mv conftest.tmp conftest.in
3992     cp conftest.in conftest.nl
3993     echo >>conftest.nl
3994     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3995     cmp -s conftest.out conftest.nl || break
3996     # 10000 chars as input seems more than enough
3997     test $lt_ac_count -gt 10 && break
3998     lt_ac_count=`expr $lt_ac_count + 1`
3999     if test $lt_ac_count -gt $lt_ac_max; then
4000       lt_ac_max=$lt_ac_count
4001       lt_cv_path_SED=$lt_ac_sed
4002     fi
4003   done
4004 done
4005
4006 fi
4007
4008 SED=$lt_cv_path_SED
4009 { echo "$as_me:$LINENO: result: $SED" >&5
4010 echo "${ECHO_T}$SED" >&6; }
4011
4012 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4013 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4014 if test "${ac_cv_path_GREP+set}" = set; then
4015   echo $ECHO_N "(cached) $ECHO_C" >&6
4016 else
4017   # Extract the first word of "grep ggrep" to use in msg output
4018 if test -z "$GREP"; then
4019 set dummy grep ggrep; ac_prog_name=$2
4020 if test "${ac_cv_path_GREP+set}" = set; then
4021   echo $ECHO_N "(cached) $ECHO_C" >&6
4022 else
4023   ac_path_GREP_found=false
4024 # Loop through the user's path and test for each of PROGNAME-LIST
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4027 do
4028   IFS=$as_save_IFS
4029   test -z "$as_dir" && as_dir=.
4030   for ac_prog in grep ggrep; do
4031   for ac_exec_ext in '' $ac_executable_extensions; do
4032     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4033     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4034     # Check for GNU ac_path_GREP and select it if it is found.
4035   # Check for GNU $ac_path_GREP
4036 case `"$ac_path_GREP" --version 2>&1` in
4037 *GNU*)
4038   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4039 *)
4040   ac_count=0
4041   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4042   while :
4043   do
4044     cat "conftest.in" "conftest.in" >"conftest.tmp"
4045     mv "conftest.tmp" "conftest.in"
4046     cp "conftest.in" "conftest.nl"
4047     echo 'GREP' >> "conftest.nl"
4048     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4049     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4050     ac_count=`expr $ac_count + 1`
4051     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4052       # Best one so far, save it but keep looking for a better one
4053       ac_cv_path_GREP="$ac_path_GREP"
4054       ac_path_GREP_max=$ac_count
4055     fi
4056     # 10*(2^10) chars as input seems more than enough
4057     test $ac_count -gt 10 && break
4058   done
4059   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4060 esac
4061
4062
4063     $ac_path_GREP_found && break 3
4064   done
4065 done
4066
4067 done
4068 IFS=$as_save_IFS
4069
4070
4071 fi
4072
4073 GREP="$ac_cv_path_GREP"
4074 if test -z "$GREP"; then
4075   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4076 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4077    { (exit 1); exit 1; }; }
4078 fi
4079
4080 else
4081   ac_cv_path_GREP=$GREP
4082 fi
4083
4084
4085 fi
4086 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4087 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4088  GREP="$ac_cv_path_GREP"
4089
4090
4091 { echo "$as_me:$LINENO: checking for egrep" >&5
4092 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4093 if test "${ac_cv_path_EGREP+set}" = set; then
4094   echo $ECHO_N "(cached) $ECHO_C" >&6
4095 else
4096   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4097    then ac_cv_path_EGREP="$GREP -E"
4098    else
4099      # Extract the first word of "egrep" to use in msg output
4100 if test -z "$EGREP"; then
4101 set dummy egrep; ac_prog_name=$2
4102 if test "${ac_cv_path_EGREP+set}" = set; then
4103   echo $ECHO_N "(cached) $ECHO_C" >&6
4104 else
4105   ac_path_EGREP_found=false
4106 # Loop through the user's path and test for each of PROGNAME-LIST
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4109 do
4110   IFS=$as_save_IFS
4111   test -z "$as_dir" && as_dir=.
4112   for ac_prog in egrep; do
4113   for ac_exec_ext in '' $ac_executable_extensions; do
4114     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4115     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4116     # Check for GNU ac_path_EGREP and select it if it is found.
4117   # Check for GNU $ac_path_EGREP
4118 case `"$ac_path_EGREP" --version 2>&1` in
4119 *GNU*)
4120   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4121 *)
4122   ac_count=0
4123   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4124   while :
4125   do
4126     cat "conftest.in" "conftest.in" >"conftest.tmp"
4127     mv "conftest.tmp" "conftest.in"
4128     cp "conftest.in" "conftest.nl"
4129     echo 'EGREP' >> "conftest.nl"
4130     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4131     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4132     ac_count=`expr $ac_count + 1`
4133     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4134       # Best one so far, save it but keep looking for a better one
4135       ac_cv_path_EGREP="$ac_path_EGREP"
4136       ac_path_EGREP_max=$ac_count
4137     fi
4138     # 10*(2^10) chars as input seems more than enough
4139     test $ac_count -gt 10 && break
4140   done
4141   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4142 esac
4143
4144
4145     $ac_path_EGREP_found && break 3
4146   done
4147 done
4148
4149 done
4150 IFS=$as_save_IFS
4151
4152
4153 fi
4154
4155 EGREP="$ac_cv_path_EGREP"
4156 if test -z "$EGREP"; then
4157   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4158 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4159    { (exit 1); exit 1; }; }
4160 fi
4161
4162 else
4163   ac_cv_path_EGREP=$EGREP
4164 fi
4165
4166
4167    fi
4168 fi
4169 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4170 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4171  EGREP="$ac_cv_path_EGREP"
4172
4173
4174
4175 # Check whether --with-gnu-ld was given.
4176 if test "${with_gnu_ld+set}" = set; then
4177   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4178 else
4179   with_gnu_ld=no
4180 fi
4181
4182 ac_prog=ld
4183 if test "$GCC" = yes; then
4184   # Check if gcc -print-prog-name=ld gives a path.
4185   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4186 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4187   case $host in
4188   *-*-mingw*)
4189     # gcc leaves a trailing carriage return which upsets mingw
4190     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4191   *)
4192     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4193   esac
4194   case $ac_prog in
4195     # Accept absolute paths.
4196     [\\/]* | ?:[\\/]*)
4197       re_direlt='/[^/][^/]*/\.\./'
4198       # Canonicalize the pathname of ld
4199       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4200       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4201         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4202       done
4203       test -z "$LD" && LD="$ac_prog"
4204       ;;
4205   "")
4206     # If it fails, then pretend we aren't using GCC.
4207     ac_prog=ld
4208     ;;
4209   *)
4210     # If it is relative, then search for the first ld in PATH.
4211     with_gnu_ld=unknown
4212     ;;
4213   esac
4214 elif test "$with_gnu_ld" = yes; then
4215   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4216 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4217 else
4218   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4219 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4220 fi
4221 if test "${lt_cv_path_LD+set}" = set; then
4222   echo $ECHO_N "(cached) $ECHO_C" >&6
4223 else
4224   if test -z "$LD"; then
4225   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4226   for ac_dir in $PATH; do
4227     IFS="$lt_save_ifs"
4228     test -z "$ac_dir" && ac_dir=.
4229     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4230       lt_cv_path_LD="$ac_dir/$ac_prog"
4231       # Check to see if the program is GNU ld.  I'd rather use --version,
4232       # but apparently some variants of GNU ld only accept -v.
4233       # Break only if it was the GNU/non-GNU ld that we prefer.
4234       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4235       *GNU* | *'with BFD'*)
4236         test "$with_gnu_ld" != no && break
4237         ;;
4238       *)
4239         test "$with_gnu_ld" != yes && break
4240         ;;
4241       esac
4242     fi
4243   done
4244   IFS="$lt_save_ifs"
4245 else
4246   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4247 fi
4248 fi
4249
4250 LD="$lt_cv_path_LD"
4251 if test -n "$LD"; then
4252   { echo "$as_me:$LINENO: result: $LD" >&5
4253 echo "${ECHO_T}$LD" >&6; }
4254 else
4255   { echo "$as_me:$LINENO: result: no" >&5
4256 echo "${ECHO_T}no" >&6; }
4257 fi
4258 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4259 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4260    { (exit 1); exit 1; }; }
4261 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4262 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4263 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4264   echo $ECHO_N "(cached) $ECHO_C" >&6
4265 else
4266   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4267 case `$LD -v 2>&1 </dev/null` in
4268 *GNU* | *'with BFD'*)
4269   lt_cv_prog_gnu_ld=yes
4270   ;;
4271 *)
4272   lt_cv_prog_gnu_ld=no
4273   ;;
4274 esac
4275 fi
4276 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4277 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4278 with_gnu_ld=$lt_cv_prog_gnu_ld
4279
4280
4281 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4282 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4283 if test "${lt_cv_ld_reload_flag+set}" = set; then
4284   echo $ECHO_N "(cached) $ECHO_C" >&6
4285 else
4286   lt_cv_ld_reload_flag='-r'
4287 fi
4288 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4289 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4290 reload_flag=$lt_cv_ld_reload_flag
4291 case $reload_flag in
4292 "" | " "*) ;;
4293 *) reload_flag=" $reload_flag" ;;
4294 esac
4295 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4296 case $host_os in
4297   darwin*)
4298     if test "$GCC" = yes; then
4299       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4300     else
4301       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4302     fi
4303     ;;
4304 esac
4305
4306 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4307 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4308 if test "${lt_cv_path_NM+set}" = set; then
4309   echo $ECHO_N "(cached) $ECHO_C" >&6
4310 else
4311   if test -n "$NM"; then
4312   # Let the user override the test.
4313   lt_cv_path_NM="$NM"
4314 else
4315   lt_nm_to_check="${ac_tool_prefix}nm"
4316   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4317     lt_nm_to_check="$lt_nm_to_check nm"
4318   fi
4319   for lt_tmp_nm in $lt_nm_to_check; do
4320     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4321     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4322       IFS="$lt_save_ifs"
4323       test -z "$ac_dir" && ac_dir=.
4324       tmp_nm="$ac_dir/$lt_tmp_nm"
4325       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4326         # Check to see if the nm accepts a BSD-compat flag.
4327         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4328         #   nm: unknown option "B" ignored
4329         # Tru64's nm complains that /dev/null is an invalid object file
4330         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4331         */dev/null* | *'Invalid file or object type'*)
4332           lt_cv_path_NM="$tmp_nm -B"
4333           break
4334           ;;
4335         *)
4336           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4337           */dev/null*)
4338             lt_cv_path_NM="$tmp_nm -p"
4339             break
4340             ;;
4341           *)
4342             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4343             continue # so that we can try to find one that supports BSD flags
4344             ;;
4345           esac
4346           ;;
4347         esac
4348       fi
4349     done
4350     IFS="$lt_save_ifs"
4351   done
4352   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4353 fi
4354 fi
4355 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4356 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4357 NM="$lt_cv_path_NM"
4358
4359 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4360 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4361 LN_S=$as_ln_s
4362 if test "$LN_S" = "ln -s"; then
4363   { echo "$as_me:$LINENO: result: yes" >&5
4364 echo "${ECHO_T}yes" >&6; }
4365 else
4366   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4367 echo "${ECHO_T}no, using $LN_S" >&6; }
4368 fi
4369
4370 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4371 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4372 if test "${lt_cv_deplibs_check_method+set}" = set; then
4373   echo $ECHO_N "(cached) $ECHO_C" >&6
4374 else
4375   lt_cv_file_magic_cmd='$MAGIC_CMD'
4376 lt_cv_file_magic_test_file=
4377 lt_cv_deplibs_check_method='unknown'
4378 # Need to set the preceding variable on all platforms that support
4379 # interlibrary dependencies.
4380 # 'none' -- dependencies not supported.
4381 # `unknown' -- same as none, but documents that we really don't know.
4382 # 'pass_all' -- all dependencies passed with no checks.
4383 # 'test_compile' -- check by making test program.
4384 # 'file_magic [[regex]]' -- check by looking for files in library path
4385 # which responds to the $file_magic_cmd with a given extended regex.
4386 # If you have `file' or equivalent on your system and you're not sure
4387 # whether `pass_all' will *always* work, you probably want this one.
4388
4389 case $host_os in
4390 aix4* | aix5*)
4391   lt_cv_deplibs_check_method=pass_all
4392   ;;
4393
4394 beos*)
4395   lt_cv_deplibs_check_method=pass_all
4396   ;;
4397
4398 bsdi[45]*)
4399   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4400   lt_cv_file_magic_cmd='/usr/bin/file -L'
4401   lt_cv_file_magic_test_file=/shlib/libc.so
4402   ;;
4403
4404 cygwin*)
4405   # func_win32_libid is a shell function defined in ltmain.sh
4406   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4407   lt_cv_file_magic_cmd='func_win32_libid'
4408   ;;
4409
4410 mingw* | pw32*)
4411   # Base MSYS/MinGW do not provide the 'file' command needed by
4412   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4413   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4414   lt_cv_file_magic_cmd='$OBJDUMP -f'
4415   ;;
4416
4417 darwin* | rhapsody*)
4418   lt_cv_deplibs_check_method=pass_all
4419   ;;
4420
4421 freebsd* | dragonfly*)
4422   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4423     case $host_cpu in
4424     i*86 )
4425       # Not sure whether the presence of OpenBSD here was a mistake.
4426       # Let's accept both of them until this is cleared up.
4427       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4428       lt_cv_file_magic_cmd=/usr/bin/file
4429       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4430       ;;
4431     esac
4432   else
4433     lt_cv_deplibs_check_method=pass_all
4434   fi
4435   ;;
4436
4437 gnu*)
4438   lt_cv_deplibs_check_method=pass_all
4439   ;;
4440
4441 hpux10.20* | hpux11*)
4442   lt_cv_file_magic_cmd=/usr/bin/file
4443   case $host_cpu in
4444   ia64*)
4445     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4446     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4447     ;;
4448   hppa*64*)
4449     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4450     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4451     ;;
4452   *)
4453     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4454     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4455     ;;
4456   esac
4457   ;;
4458
4459 interix3*)
4460   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4461   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4462   ;;
4463
4464 irix5* | irix6* | nonstopux*)
4465   case $LD in
4466   *-32|*"-32 ") libmagic=32-bit;;
4467   *-n32|*"-n32 ") libmagic=N32;;
4468   *-64|*"-64 ") libmagic=64-bit;;
4469   *) libmagic=never-match;;
4470   esac
4471   lt_cv_deplibs_check_method=pass_all
4472   ;;
4473
4474 # This must be Linux ELF.
4475 linux* | k*bsd*-gnu)
4476   lt_cv_deplibs_check_method=pass_all
4477   ;;
4478
4479 netbsd* | netbsdelf*-gnu)
4480   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4481     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4482   else
4483     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4484   fi
4485   ;;
4486
4487 newos6*)
4488   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4489   lt_cv_file_magic_cmd=/usr/bin/file
4490   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4491   ;;
4492
4493 nto-qnx*)
4494   lt_cv_deplibs_check_method=unknown
4495   ;;
4496
4497 openbsd*)
4498   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4499     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4500   else
4501     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4502   fi
4503   ;;
4504
4505 osf3* | osf4* | osf5*)
4506   lt_cv_deplibs_check_method=pass_all
4507   ;;
4508
4509 solaris*)
4510   lt_cv_deplibs_check_method=pass_all
4511   ;;
4512
4513 sysv4 | sysv4.3*)
4514   case $host_vendor in
4515   motorola)
4516     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]'
4517     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4518     ;;
4519   ncr)
4520     lt_cv_deplibs_check_method=pass_all
4521     ;;
4522   sequent)
4523     lt_cv_file_magic_cmd='/bin/file'
4524     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4525     ;;
4526   sni)
4527     lt_cv_file_magic_cmd='/bin/file'
4528     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4529     lt_cv_file_magic_test_file=/lib/libc.so
4530     ;;
4531   siemens)
4532     lt_cv_deplibs_check_method=pass_all
4533     ;;
4534   pc)
4535     lt_cv_deplibs_check_method=pass_all
4536     ;;
4537   esac
4538   ;;
4539
4540 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4541   lt_cv_deplibs_check_method=pass_all
4542   ;;
4543 esac
4544
4545 fi
4546 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4547 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4548 file_magic_cmd=$lt_cv_file_magic_cmd
4549 deplibs_check_method=$lt_cv_deplibs_check_method
4550 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4551
4552
4553
4554
4555 # If no C compiler was specified, use CC.
4556 LTCC=${LTCC-"$CC"}
4557
4558 # If no C compiler flags were specified, use CFLAGS.
4559 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4560
4561 # Allow CC to be a program name with arguments.
4562 compiler=$CC
4563
4564
4565 # Check whether --enable-libtool-lock was given.
4566 if test "${enable_libtool_lock+set}" = set; then
4567   enableval=$enable_libtool_lock;
4568 fi
4569
4570 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4571
4572 # Some flags need to be propagated to the compiler or linker for good
4573 # libtool support.
4574 case $host in
4575 ia64-*-hpux*)
4576   # Find out which ABI we are using.
4577   echo 'int i;' > conftest.$ac_ext
4578   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4579   (eval $ac_compile) 2>&5
4580   ac_status=$?
4581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582   (exit $ac_status); }; then
4583     case `/usr/bin/file conftest.$ac_objext` in
4584     *ELF-32*)
4585       HPUX_IA64_MODE="32"
4586       ;;
4587     *ELF-64*)
4588       HPUX_IA64_MODE="64"
4589       ;;
4590     esac
4591   fi
4592   rm -rf conftest*
4593   ;;
4594 *-*-irix6*)
4595   # Find out which ABI we are using.
4596   echo '#line 4596 "configure"' > conftest.$ac_ext
4597   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4598   (eval $ac_compile) 2>&5
4599   ac_status=$?
4600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601   (exit $ac_status); }; then
4602    if test "$lt_cv_prog_gnu_ld" = yes; then
4603     case `/usr/bin/file conftest.$ac_objext` in
4604     *32-bit*)
4605       LD="${LD-ld} -melf32bsmip"
4606       ;;
4607     *N32*)
4608       LD="${LD-ld} -melf32bmipn32"
4609       ;;
4610     *64-bit*)
4611       LD="${LD-ld} -melf64bmip"
4612       ;;
4613     esac
4614    else
4615     case `/usr/bin/file conftest.$ac_objext` in
4616     *32-bit*)
4617       LD="${LD-ld} -32"
4618       ;;
4619     *N32*)
4620       LD="${LD-ld} -n32"
4621       ;;
4622     *64-bit*)
4623       LD="${LD-ld} -64"
4624       ;;
4625     esac
4626    fi
4627   fi
4628   rm -rf conftest*
4629   ;;
4630
4631 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4632   # Find out which ABI we are using.
4633   echo 'int i;' > conftest.$ac_ext
4634   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4635   (eval $ac_compile) 2>&5
4636   ac_status=$?
4637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638   (exit $ac_status); }; then
4639     case `/usr/bin/file conftest.o` in
4640     *32-bit*)
4641       case $host in
4642         x86_64-*linux*)
4643           LD="${LD-ld} -m elf_i386"
4644           ;;
4645         ppc64-*linux*|powerpc64-*linux*)
4646           LD="${LD-ld} -m elf32ppclinux"
4647           ;;
4648         s390x-*linux*)
4649           LD="${LD-ld} -m elf_s390"
4650           ;;
4651         sparc64-*linux*)
4652           LD="${LD-ld} -m elf32_sparc"
4653           ;;
4654       esac
4655       ;;
4656     *64-bit*)
4657       case $host in
4658         x86_64-*linux*)
4659           LD="${LD-ld} -m elf_x86_64"
4660           ;;
4661         ppc*-*linux*|powerpc*-*linux*)
4662           LD="${LD-ld} -m elf64ppc"
4663           ;;
4664         s390*-*linux*)
4665           LD="${LD-ld} -m elf64_s390"
4666           ;;
4667         sparc*-*linux*)
4668           LD="${LD-ld} -m elf64_sparc"
4669           ;;
4670       esac
4671       ;;
4672     esac
4673   fi
4674   rm -rf conftest*
4675   ;;
4676
4677 *-*-sco3.2v5*)
4678   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4679   SAVE_CFLAGS="$CFLAGS"
4680   CFLAGS="$CFLAGS -belf"
4681   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4682 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4683 if test "${lt_cv_cc_needs_belf+set}" = set; then
4684   echo $ECHO_N "(cached) $ECHO_C" >&6
4685 else
4686   ac_ext=c
4687 ac_cpp='$CPP $CPPFLAGS'
4688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4691
4692      cat >conftest.$ac_ext <<_ACEOF
4693 /* confdefs.h.  */
4694 _ACEOF
4695 cat confdefs.h >>conftest.$ac_ext
4696 cat >>conftest.$ac_ext <<_ACEOF
4697 /* end confdefs.h.  */
4698
4699 int
4700 main ()
4701 {
4702
4703   ;
4704   return 0;
4705 }
4706 _ACEOF
4707 rm -f conftest.$ac_objext conftest$ac_exeext
4708 if { (ac_try="$ac_link"
4709 case "(($ac_try" in
4710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4711   *) ac_try_echo=$ac_try;;
4712 esac
4713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4714   (eval "$ac_link") 2>conftest.er1
4715   ac_status=$?
4716   grep -v '^ *+' conftest.er1 >conftest.err
4717   rm -f conftest.er1
4718   cat conftest.err >&5
4719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720   (exit $ac_status); } && {
4721          test -z "$ac_c_werror_flag" ||
4722          test ! -s conftest.err
4723        } && test -s conftest$ac_exeext &&
4724        $as_test_x conftest$ac_exeext; then
4725   lt_cv_cc_needs_belf=yes
4726 else
4727   echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4729
4730         lt_cv_cc_needs_belf=no
4731 fi
4732
4733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4734       conftest$ac_exeext conftest.$ac_ext
4735      ac_ext=c
4736 ac_cpp='$CPP $CPPFLAGS'
4737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4740
4741 fi
4742 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4743 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4744   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4745     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4746     CFLAGS="$SAVE_CFLAGS"
4747   fi
4748   ;;
4749 sparc*-*solaris*)
4750   # Find out which ABI we are using.
4751   echo 'int i;' > conftest.$ac_ext
4752   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4753   (eval $ac_compile) 2>&5
4754   ac_status=$?
4755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756   (exit $ac_status); }; then
4757     case `/usr/bin/file conftest.o` in
4758     *64-bit*)
4759       case $lt_cv_prog_gnu_ld in
4760       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4761       *)    LD="${LD-ld} -64" ;;
4762       esac
4763       ;;
4764     esac
4765   fi
4766   rm -rf conftest*
4767   ;;
4768
4769 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4770   if test -n "$ac_tool_prefix"; then
4771   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4772 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4775 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4776   echo $ECHO_N "(cached) $ECHO_C" >&6
4777 else
4778   if test -n "$DLLTOOL"; then
4779   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4780 else
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 for as_dir in $PATH
4783 do
4784   IFS=$as_save_IFS
4785   test -z "$as_dir" && as_dir=.
4786   for ac_exec_ext in '' $ac_executable_extensions; do
4787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4788     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4790     break 2
4791   fi
4792 done
4793 done
4794 IFS=$as_save_IFS
4795
4796 fi
4797 fi
4798 DLLTOOL=$ac_cv_prog_DLLTOOL
4799 if test -n "$DLLTOOL"; then
4800   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4801 echo "${ECHO_T}$DLLTOOL" >&6; }
4802 else
4803   { echo "$as_me:$LINENO: result: no" >&5
4804 echo "${ECHO_T}no" >&6; }
4805 fi
4806
4807
4808 fi
4809 if test -z "$ac_cv_prog_DLLTOOL"; then
4810   ac_ct_DLLTOOL=$DLLTOOL
4811   # Extract the first word of "dlltool", so it can be a program name with args.
4812 set dummy dlltool; ac_word=$2
4813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4815 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4816   echo $ECHO_N "(cached) $ECHO_C" >&6
4817 else
4818   if test -n "$ac_ct_DLLTOOL"; then
4819   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4820 else
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH
4823 do
4824   IFS=$as_save_IFS
4825   test -z "$as_dir" && as_dir=.
4826   for ac_exec_ext in '' $ac_executable_extensions; do
4827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4828     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4830     break 2
4831   fi
4832 done
4833 done
4834 IFS=$as_save_IFS
4835
4836 fi
4837 fi
4838 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4839 if test -n "$ac_ct_DLLTOOL"; then
4840   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4841 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4842 else
4843   { echo "$as_me:$LINENO: result: no" >&5
4844 echo "${ECHO_T}no" >&6; }
4845 fi
4846
4847   if test "x$ac_ct_DLLTOOL" = x; then
4848     DLLTOOL="false"
4849   else
4850     case $cross_compiling:$ac_tool_warned in
4851 yes:)
4852 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4853 whose name does not start with the host triplet.  If you think this
4854 configuration is useful to you, please write to autoconf@gnu.org." >&5
4855 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4856 whose name does not start with the host triplet.  If you think this
4857 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4858 ac_tool_warned=yes ;;
4859 esac
4860     DLLTOOL=$ac_ct_DLLTOOL
4861   fi
4862 else
4863   DLLTOOL="$ac_cv_prog_DLLTOOL"
4864 fi
4865
4866   if test -n "$ac_tool_prefix"; then
4867   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4868 set dummy ${ac_tool_prefix}as; ac_word=$2
4869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4871 if test "${ac_cv_prog_AS+set}" = set; then
4872   echo $ECHO_N "(cached) $ECHO_C" >&6
4873 else
4874   if test -n "$AS"; then
4875   ac_cv_prog_AS="$AS" # Let the user override the test.
4876 else
4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 for as_dir in $PATH
4879 do
4880   IFS=$as_save_IFS
4881   test -z "$as_dir" && as_dir=.
4882   for ac_exec_ext in '' $ac_executable_extensions; do
4883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4884     ac_cv_prog_AS="${ac_tool_prefix}as"
4885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4886     break 2
4887   fi
4888 done
4889 done
4890 IFS=$as_save_IFS
4891
4892 fi
4893 fi
4894 AS=$ac_cv_prog_AS
4895 if test -n "$AS"; then
4896   { echo "$as_me:$LINENO: result: $AS" >&5
4897 echo "${ECHO_T}$AS" >&6; }
4898 else
4899   { echo "$as_me:$LINENO: result: no" >&5
4900 echo "${ECHO_T}no" >&6; }
4901 fi
4902
4903
4904 fi
4905 if test -z "$ac_cv_prog_AS"; then
4906   ac_ct_AS=$AS
4907   # Extract the first word of "as", so it can be a program name with args.
4908 set dummy as; ac_word=$2
4909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4911 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4912   echo $ECHO_N "(cached) $ECHO_C" >&6
4913 else
4914   if test -n "$ac_ct_AS"; then
4915   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4916 else
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 for as_dir in $PATH
4919 do
4920   IFS=$as_save_IFS
4921   test -z "$as_dir" && as_dir=.
4922   for ac_exec_ext in '' $ac_executable_extensions; do
4923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4924     ac_cv_prog_ac_ct_AS="as"
4925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4926     break 2
4927   fi
4928 done
4929 done
4930 IFS=$as_save_IFS
4931
4932 fi
4933 fi
4934 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4935 if test -n "$ac_ct_AS"; then
4936   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4937 echo "${ECHO_T}$ac_ct_AS" >&6; }
4938 else
4939   { echo "$as_me:$LINENO: result: no" >&5
4940 echo "${ECHO_T}no" >&6; }
4941 fi
4942
4943   if test "x$ac_ct_AS" = x; then
4944     AS="false"
4945   else
4946     case $cross_compiling:$ac_tool_warned in
4947 yes:)
4948 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4949 whose name does not start with the host triplet.  If you think this
4950 configuration is useful to you, please write to autoconf@gnu.org." >&5
4951 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4952 whose name does not start with the host triplet.  If you think this
4953 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4954 ac_tool_warned=yes ;;
4955 esac
4956     AS=$ac_ct_AS
4957   fi
4958 else
4959   AS="$ac_cv_prog_AS"
4960 fi
4961
4962   if test -n "$ac_tool_prefix"; then
4963   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4964 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4967 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4968   echo $ECHO_N "(cached) $ECHO_C" >&6
4969 else
4970   if test -n "$OBJDUMP"; then
4971   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4972 else
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974 for as_dir in $PATH
4975 do
4976   IFS=$as_save_IFS
4977   test -z "$as_dir" && as_dir=.
4978   for ac_exec_ext in '' $ac_executable_extensions; do
4979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4980     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4982     break 2
4983   fi
4984 done
4985 done
4986 IFS=$as_save_IFS
4987
4988 fi
4989 fi
4990 OBJDUMP=$ac_cv_prog_OBJDUMP
4991 if test -n "$OBJDUMP"; then
4992   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4993 echo "${ECHO_T}$OBJDUMP" >&6; }
4994 else
4995   { echo "$as_me:$LINENO: result: no" >&5
4996 echo "${ECHO_T}no" >&6; }
4997 fi
4998
4999
5000 fi
5001 if test -z "$ac_cv_prog_OBJDUMP"; then
5002   ac_ct_OBJDUMP=$OBJDUMP
5003   # Extract the first word of "objdump", so it can be a program name with args.
5004 set dummy objdump; ac_word=$2
5005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5007 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5008   echo $ECHO_N "(cached) $ECHO_C" >&6
5009 else
5010   if test -n "$ac_ct_OBJDUMP"; then
5011   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5012 else
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014 for as_dir in $PATH
5015 do
5016   IFS=$as_save_IFS
5017   test -z "$as_dir" && as_dir=.
5018   for ac_exec_ext in '' $ac_executable_extensions; do
5019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5020     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5022     break 2
5023   fi
5024 done
5025 done
5026 IFS=$as_save_IFS
5027
5028 fi
5029 fi
5030 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5031 if test -n "$ac_ct_OBJDUMP"; then
5032   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5033 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5034 else
5035   { echo "$as_me:$LINENO: result: no" >&5
5036 echo "${ECHO_T}no" >&6; }
5037 fi
5038
5039   if test "x$ac_ct_OBJDUMP" = x; then
5040     OBJDUMP="false"
5041   else
5042     case $cross_compiling:$ac_tool_warned in
5043 yes:)
5044 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5045 whose name does not start with the host triplet.  If you think this
5046 configuration is useful to you, please write to autoconf@gnu.org." >&5
5047 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5048 whose name does not start with the host triplet.  If you think this
5049 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5050 ac_tool_warned=yes ;;
5051 esac
5052     OBJDUMP=$ac_ct_OBJDUMP
5053   fi
5054 else
5055   OBJDUMP="$ac_cv_prog_OBJDUMP"
5056 fi
5057
5058   ;;
5059
5060 esac
5061
5062 need_locks="$enable_libtool_lock"
5063
5064
5065 ac_ext=c
5066 ac_cpp='$CPP $CPPFLAGS'
5067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5070 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5071 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5072 # On Suns, sometimes $CPP names a directory.
5073 if test -n "$CPP" && test -d "$CPP"; then
5074   CPP=
5075 fi
5076 if test -z "$CPP"; then
5077   if test "${ac_cv_prog_CPP+set}" = set; then
5078   echo $ECHO_N "(cached) $ECHO_C" >&6
5079 else
5080       # Double quotes because CPP needs to be expanded
5081     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5082     do
5083       ac_preproc_ok=false
5084 for ac_c_preproc_warn_flag in '' yes
5085 do
5086   # Use a header file that comes with gcc, so configuring glibc
5087   # with a fresh cross-compiler works.
5088   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5089   # <limits.h> exists even on freestanding compilers.
5090   # On the NeXT, cc -E runs the code through the compiler's parser,
5091   # not just through cpp. "Syntax error" is here to catch this case.
5092   cat >conftest.$ac_ext <<_ACEOF
5093 /* confdefs.h.  */
5094 _ACEOF
5095 cat confdefs.h >>conftest.$ac_ext
5096 cat >>conftest.$ac_ext <<_ACEOF
5097 /* end confdefs.h.  */
5098 #ifdef __STDC__
5099 # include <limits.h>
5100 #else
5101 # include <assert.h>
5102 #endif
5103                      Syntax error
5104 _ACEOF
5105 if { (ac_try="$ac_cpp conftest.$ac_ext"
5106 case "(($ac_try" in
5107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108   *) ac_try_echo=$ac_try;;
5109 esac
5110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5111   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5112   ac_status=$?
5113   grep -v '^ *+' conftest.er1 >conftest.err
5114   rm -f conftest.er1
5115   cat conftest.err >&5
5116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117   (exit $ac_status); } >/dev/null && {
5118          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5119          test ! -s conftest.err
5120        }; then
5121   :
5122 else
5123   echo "$as_me: failed program was:" >&5
5124 sed 's/^/| /' conftest.$ac_ext >&5
5125
5126   # Broken: fails on valid input.
5127 continue
5128 fi
5129
5130 rm -f conftest.err conftest.$ac_ext
5131
5132   # OK, works on sane cases.  Now check whether nonexistent headers
5133   # can be detected and how.
5134   cat >conftest.$ac_ext <<_ACEOF
5135 /* confdefs.h.  */
5136 _ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h.  */
5140 #include <ac_nonexistent.h>
5141 _ACEOF
5142 if { (ac_try="$ac_cpp conftest.$ac_ext"
5143 case "(($ac_try" in
5144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5145   *) ac_try_echo=$ac_try;;
5146 esac
5147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5148   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5149   ac_status=$?
5150   grep -v '^ *+' conftest.er1 >conftest.err
5151   rm -f conftest.er1
5152   cat conftest.err >&5
5153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154   (exit $ac_status); } >/dev/null && {
5155          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5156          test ! -s conftest.err
5157        }; then
5158   # Broken: success on invalid input.
5159 continue
5160 else
5161   echo "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.$ac_ext >&5
5163
5164   # Passes both tests.
5165 ac_preproc_ok=:
5166 break
5167 fi
5168
5169 rm -f conftest.err conftest.$ac_ext
5170
5171 done
5172 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5173 rm -f conftest.err conftest.$ac_ext
5174 if $ac_preproc_ok; then
5175   break
5176 fi
5177
5178     done
5179     ac_cv_prog_CPP=$CPP
5180
5181 fi
5182   CPP=$ac_cv_prog_CPP
5183 else
5184   ac_cv_prog_CPP=$CPP
5185 fi
5186 { echo "$as_me:$LINENO: result: $CPP" >&5
5187 echo "${ECHO_T}$CPP" >&6; }
5188 ac_preproc_ok=false
5189 for ac_c_preproc_warn_flag in '' yes
5190 do
5191   # Use a header file that comes with gcc, so configuring glibc
5192   # with a fresh cross-compiler works.
5193   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5194   # <limits.h> exists even on freestanding compilers.
5195   # On the NeXT, cc -E runs the code through the compiler's parser,
5196   # not just through cpp. "Syntax error" is here to catch this case.
5197   cat >conftest.$ac_ext <<_ACEOF
5198 /* confdefs.h.  */
5199 _ACEOF
5200 cat confdefs.h >>conftest.$ac_ext
5201 cat >>conftest.$ac_ext <<_ACEOF
5202 /* end confdefs.h.  */
5203 #ifdef __STDC__
5204 # include <limits.h>
5205 #else
5206 # include <assert.h>
5207 #endif
5208                      Syntax error
5209 _ACEOF
5210 if { (ac_try="$ac_cpp conftest.$ac_ext"
5211 case "(($ac_try" in
5212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5213   *) ac_try_echo=$ac_try;;
5214 esac
5215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5216   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5217   ac_status=$?
5218   grep -v '^ *+' conftest.er1 >conftest.err
5219   rm -f conftest.er1
5220   cat conftest.err >&5
5221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222   (exit $ac_status); } >/dev/null && {
5223          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5224          test ! -s conftest.err
5225        }; then
5226   :
5227 else
5228   echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.$ac_ext >&5
5230
5231   # Broken: fails on valid input.
5232 continue
5233 fi
5234
5235 rm -f conftest.err conftest.$ac_ext
5236
5237   # OK, works on sane cases.  Now check whether nonexistent headers
5238   # can be detected and how.
5239   cat >conftest.$ac_ext <<_ACEOF
5240 /* confdefs.h.  */
5241 _ACEOF
5242 cat confdefs.h >>conftest.$ac_ext
5243 cat >>conftest.$ac_ext <<_ACEOF
5244 /* end confdefs.h.  */
5245 #include <ac_nonexistent.h>
5246 _ACEOF
5247 if { (ac_try="$ac_cpp conftest.$ac_ext"
5248 case "(($ac_try" in
5249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5250   *) ac_try_echo=$ac_try;;
5251 esac
5252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5253   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5254   ac_status=$?
5255   grep -v '^ *+' conftest.er1 >conftest.err
5256   rm -f conftest.er1
5257   cat conftest.err >&5
5258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259   (exit $ac_status); } >/dev/null && {
5260          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5261          test ! -s conftest.err
5262        }; then
5263   # Broken: success on invalid input.
5264 continue
5265 else
5266   echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.$ac_ext >&5
5268
5269   # Passes both tests.
5270 ac_preproc_ok=:
5271 break
5272 fi
5273
5274 rm -f conftest.err conftest.$ac_ext
5275
5276 done
5277 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5278 rm -f conftest.err conftest.$ac_ext
5279 if $ac_preproc_ok; then
5280   :
5281 else
5282   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5283 See \`config.log' for more details." >&5
5284 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5285 See \`config.log' for more details." >&2;}
5286    { (exit 1); exit 1; }; }
5287 fi
5288
5289 ac_ext=c
5290 ac_cpp='$CPP $CPPFLAGS'
5291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5294
5295
5296 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5297 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5298 if test "${ac_cv_header_stdc+set}" = set; then
5299   echo $ECHO_N "(cached) $ECHO_C" >&6
5300 else
5301   cat >conftest.$ac_ext <<_ACEOF
5302 /* confdefs.h.  */
5303 _ACEOF
5304 cat confdefs.h >>conftest.$ac_ext
5305 cat >>conftest.$ac_ext <<_ACEOF
5306 /* end confdefs.h.  */
5307 #include <stdlib.h>
5308 #include <stdarg.h>
5309 #include <string.h>
5310 #include <float.h>
5311
5312 int
5313 main ()
5314 {
5315
5316   ;
5317   return 0;
5318 }
5319 _ACEOF
5320 rm -f conftest.$ac_objext
5321 if { (ac_try="$ac_compile"
5322 case "(($ac_try" in
5323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5324   *) ac_try_echo=$ac_try;;
5325 esac
5326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5327   (eval "$ac_compile") 2>conftest.er1
5328   ac_status=$?
5329   grep -v '^ *+' conftest.er1 >conftest.err
5330   rm -f conftest.er1
5331   cat conftest.err >&5
5332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333   (exit $ac_status); } && {
5334          test -z "$ac_c_werror_flag" ||
5335          test ! -s conftest.err
5336        } && test -s conftest.$ac_objext; then
5337   ac_cv_header_stdc=yes
5338 else
5339   echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5341
5342         ac_cv_header_stdc=no
5343 fi
5344
5345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5346
5347 if test $ac_cv_header_stdc = yes; then
5348   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5349   cat >conftest.$ac_ext <<_ACEOF
5350 /* confdefs.h.  */
5351 _ACEOF
5352 cat confdefs.h >>conftest.$ac_ext
5353 cat >>conftest.$ac_ext <<_ACEOF
5354 /* end confdefs.h.  */
5355 #include <string.h>
5356
5357 _ACEOF
5358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5359   $EGREP "memchr" >/dev/null 2>&1; then
5360   :
5361 else
5362   ac_cv_header_stdc=no
5363 fi
5364 rm -f conftest*
5365
5366 fi
5367
5368 if test $ac_cv_header_stdc = yes; then
5369   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5370   cat >conftest.$ac_ext <<_ACEOF
5371 /* confdefs.h.  */
5372 _ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h.  */
5376 #include <stdlib.h>
5377
5378 _ACEOF
5379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5380   $EGREP "free" >/dev/null 2>&1; then
5381   :
5382 else
5383   ac_cv_header_stdc=no
5384 fi
5385 rm -f conftest*
5386
5387 fi
5388
5389 if test $ac_cv_header_stdc = yes; then
5390   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5391   if test "$cross_compiling" = yes; then
5392   :
5393 else
5394   cat >conftest.$ac_ext <<_ACEOF
5395 /* confdefs.h.  */
5396 _ACEOF
5397 cat confdefs.h >>conftest.$ac_ext
5398 cat >>conftest.$ac_ext <<_ACEOF
5399 /* end confdefs.h.  */
5400 #include <ctype.h>
5401 #include <stdlib.h>
5402 #if ((' ' & 0x0FF) == 0x020)
5403 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5404 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5405 #else
5406 # define ISLOWER(c) \
5407                    (('a' <= (c) && (c) <= 'i') \
5408                      || ('j' <= (c) && (c) <= 'r') \
5409                      || ('s' <= (c) && (c) <= 'z'))
5410 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5411 #endif
5412
5413 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5414 int
5415 main ()
5416 {
5417   int i;
5418   for (i = 0; i < 256; i++)
5419     if (XOR (islower (i), ISLOWER (i))
5420         || toupper (i) != TOUPPER (i))
5421       return 2;
5422   return 0;
5423 }
5424 _ACEOF
5425 rm -f conftest$ac_exeext
5426 if { (ac_try="$ac_link"
5427 case "(($ac_try" in
5428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5429   *) ac_try_echo=$ac_try;;
5430 esac
5431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5432   (eval "$ac_link") 2>&5
5433   ac_status=$?
5434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5436   { (case "(($ac_try" in
5437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438   *) ac_try_echo=$ac_try;;
5439 esac
5440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5441   (eval "$ac_try") 2>&5
5442   ac_status=$?
5443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444   (exit $ac_status); }; }; then
5445   :
5446 else
5447   echo "$as_me: program exited with status $ac_status" >&5
5448 echo "$as_me: failed program was:" >&5
5449 sed 's/^/| /' conftest.$ac_ext >&5
5450
5451 ( exit $ac_status )
5452 ac_cv_header_stdc=no
5453 fi
5454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5455 fi
5456
5457
5458 fi
5459 fi
5460 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5461 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5462 if test $ac_cv_header_stdc = yes; then
5463
5464 cat >>confdefs.h <<\_ACEOF
5465 #define STDC_HEADERS 1
5466 _ACEOF
5467
5468 fi
5469
5470 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5481                   inttypes.h stdint.h unistd.h
5482 do
5483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5484 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5487   echo $ECHO_N "(cached) $ECHO_C" >&6
5488 else
5489   cat >conftest.$ac_ext <<_ACEOF
5490 /* confdefs.h.  */
5491 _ACEOF
5492 cat confdefs.h >>conftest.$ac_ext
5493 cat >>conftest.$ac_ext <<_ACEOF
5494 /* end confdefs.h.  */
5495 $ac_includes_default
5496
5497 #include <$ac_header>
5498 _ACEOF
5499 rm -f conftest.$ac_objext
5500 if { (ac_try="$ac_compile"
5501 case "(($ac_try" in
5502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5503   *) ac_try_echo=$ac_try;;
5504 esac
5505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5506   (eval "$ac_compile") 2>conftest.er1
5507   ac_status=$?
5508   grep -v '^ *+' conftest.er1 >conftest.err
5509   rm -f conftest.er1
5510   cat conftest.err >&5
5511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512   (exit $ac_status); } && {
5513          test -z "$ac_c_werror_flag" ||
5514          test ! -s conftest.err
5515        } && test -s conftest.$ac_objext; then
5516   eval "$as_ac_Header=yes"
5517 else
5518   echo "$as_me: failed program was:" >&5
5519 sed 's/^/| /' conftest.$ac_ext >&5
5520
5521         eval "$as_ac_Header=no"
5522 fi
5523
5524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5525 fi
5526 ac_res=`eval echo '${'$as_ac_Header'}'`
5527                { echo "$as_me:$LINENO: result: $ac_res" >&5
5528 echo "${ECHO_T}$ac_res" >&6; }
5529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5530   cat >>confdefs.h <<_ACEOF
5531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5532 _ACEOF
5533
5534 fi
5535
5536 done
5537
5538
5539
5540 for ac_header in dlfcn.h
5541 do
5542 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5544   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5547   echo $ECHO_N "(cached) $ECHO_C" >&6
5548 fi
5549 ac_res=`eval echo '${'$as_ac_Header'}'`
5550                { echo "$as_me:$LINENO: result: $ac_res" >&5
5551 echo "${ECHO_T}$ac_res" >&6; }
5552 else
5553   # Is the header compilable?
5554 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5555 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5556 cat >conftest.$ac_ext <<_ACEOF
5557 /* confdefs.h.  */
5558 _ACEOF
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h.  */
5562 $ac_includes_default
5563 #include <$ac_header>
5564 _ACEOF
5565 rm -f conftest.$ac_objext
5566 if { (ac_try="$ac_compile"
5567 case "(($ac_try" in
5568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569   *) ac_try_echo=$ac_try;;
5570 esac
5571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5572   (eval "$ac_compile") 2>conftest.er1
5573   ac_status=$?
5574   grep -v '^ *+' conftest.er1 >conftest.err
5575   rm -f conftest.er1
5576   cat conftest.err >&5
5577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578   (exit $ac_status); } && {
5579          test -z "$ac_c_werror_flag" ||
5580          test ! -s conftest.err
5581        } && test -s conftest.$ac_objext; then
5582   ac_header_compiler=yes
5583 else
5584   echo "$as_me: failed program was:" >&5
5585 sed 's/^/| /' conftest.$ac_ext >&5
5586
5587         ac_header_compiler=no
5588 fi
5589
5590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5592 echo "${ECHO_T}$ac_header_compiler" >&6; }
5593
5594 # Is the header present?
5595 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5596 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5597 cat >conftest.$ac_ext <<_ACEOF
5598 /* confdefs.h.  */
5599 _ACEOF
5600 cat confdefs.h >>conftest.$ac_ext
5601 cat >>conftest.$ac_ext <<_ACEOF
5602 /* end confdefs.h.  */
5603 #include <$ac_header>
5604 _ACEOF
5605 if { (ac_try="$ac_cpp conftest.$ac_ext"
5606 case "(($ac_try" in
5607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5608   *) ac_try_echo=$ac_try;;
5609 esac
5610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5611   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5612   ac_status=$?
5613   grep -v '^ *+' conftest.er1 >conftest.err
5614   rm -f conftest.er1
5615   cat conftest.err >&5
5616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617   (exit $ac_status); } >/dev/null && {
5618          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5619          test ! -s conftest.err
5620        }; then
5621   ac_header_preproc=yes
5622 else
5623   echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.$ac_ext >&5
5625
5626   ac_header_preproc=no
5627 fi
5628
5629 rm -f conftest.err conftest.$ac_ext
5630 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5631 echo "${ECHO_T}$ac_header_preproc" >&6; }
5632
5633 # So?  What about this header?
5634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5635   yes:no: )
5636     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5637 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5638     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5639 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5640     ac_header_preproc=yes
5641     ;;
5642   no:yes:* )
5643     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5644 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5645     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5646 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5647     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5648 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5649     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5650 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5651     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5652 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5653     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5654 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5655     ( cat <<\_ASBOX
5656 ## -------------------------------------------------- ##
5657 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
5658 ## -------------------------------------------------- ##
5659 _ASBOX
5660      ) | sed "s/^/$as_me: WARNING:     /" >&2
5661     ;;
5662 esac
5663 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5666   echo $ECHO_N "(cached) $ECHO_C" >&6
5667 else
5668   eval "$as_ac_Header=\$ac_header_preproc"
5669 fi
5670 ac_res=`eval echo '${'$as_ac_Header'}'`
5671                { echo "$as_me:$LINENO: result: $ac_res" >&5
5672 echo "${ECHO_T}$ac_res" >&6; }
5673
5674 fi
5675 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5676   cat >>confdefs.h <<_ACEOF
5677 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5678 _ACEOF
5679
5680 fi
5681
5682 done
5683
5684 ac_ext=cpp
5685 ac_cpp='$CXXCPP $CPPFLAGS'
5686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5689 if test -z "$CXX"; then
5690   if test -n "$CCC"; then
5691     CXX=$CCC
5692   else
5693     if test -n "$ac_tool_prefix"; then
5694   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5695   do
5696     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5697 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5700 if test "${ac_cv_prog_CXX+set}" = set; then
5701   echo $ECHO_N "(cached) $ECHO_C" >&6
5702 else
5703   if test -n "$CXX"; then
5704   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5705 else
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 for as_dir in $PATH
5708 do
5709   IFS=$as_save_IFS
5710   test -z "$as_dir" && as_dir=.
5711   for ac_exec_ext in '' $ac_executable_extensions; do
5712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5713     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5715     break 2
5716   fi
5717 done
5718 done
5719 IFS=$as_save_IFS
5720
5721 fi
5722 fi
5723 CXX=$ac_cv_prog_CXX
5724 if test -n "$CXX"; then
5725   { echo "$as_me:$LINENO: result: $CXX" >&5
5726 echo "${ECHO_T}$CXX" >&6; }
5727 else
5728   { echo "$as_me:$LINENO: result: no" >&5
5729 echo "${ECHO_T}no" >&6; }
5730 fi
5731
5732
5733     test -n "$CXX" && break
5734   done
5735 fi
5736 if test -z "$CXX"; then
5737   ac_ct_CXX=$CXX
5738   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5739 do
5740   # Extract the first word of "$ac_prog", so it can be a program name with args.
5741 set dummy $ac_prog; ac_word=$2
5742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5744 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5745   echo $ECHO_N "(cached) $ECHO_C" >&6
5746 else
5747   if test -n "$ac_ct_CXX"; then
5748   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5749 else
5750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751 for as_dir in $PATH
5752 do
5753   IFS=$as_save_IFS
5754   test -z "$as_dir" && as_dir=.
5755   for ac_exec_ext in '' $ac_executable_extensions; do
5756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5757     ac_cv_prog_ac_ct_CXX="$ac_prog"
5758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5759     break 2
5760   fi
5761 done
5762 done
5763 IFS=$as_save_IFS
5764
5765 fi
5766 fi
5767 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5768 if test -n "$ac_ct_CXX"; then
5769   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5770 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5771 else
5772   { echo "$as_me:$LINENO: result: no" >&5
5773 echo "${ECHO_T}no" >&6; }
5774 fi
5775
5776
5777   test -n "$ac_ct_CXX" && break
5778 done
5779
5780   if test "x$ac_ct_CXX" = x; then
5781     CXX="g++"
5782   else
5783     case $cross_compiling:$ac_tool_warned in
5784 yes:)
5785 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5786 whose name does not start with the host triplet.  If you think this
5787 configuration is useful to you, please write to autoconf@gnu.org." >&5
5788 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5789 whose name does not start with the host triplet.  If you think this
5790 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5791 ac_tool_warned=yes ;;
5792 esac
5793     CXX=$ac_ct_CXX
5794   fi
5795 fi
5796
5797   fi
5798 fi
5799 # Provide some information about the compiler.
5800 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5801 ac_compiler=`set X $ac_compile; echo $2`
5802 { (ac_try="$ac_compiler --version >&5"
5803 case "(($ac_try" in
5804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805   *) ac_try_echo=$ac_try;;
5806 esac
5807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808   (eval "$ac_compiler --version >&5") 2>&5
5809   ac_status=$?
5810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811   (exit $ac_status); }
5812 { (ac_try="$ac_compiler -v >&5"
5813 case "(($ac_try" in
5814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5815   *) ac_try_echo=$ac_try;;
5816 esac
5817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5818   (eval "$ac_compiler -v >&5") 2>&5
5819   ac_status=$?
5820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821   (exit $ac_status); }
5822 { (ac_try="$ac_compiler -V >&5"
5823 case "(($ac_try" in
5824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5825   *) ac_try_echo=$ac_try;;
5826 esac
5827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5828   (eval "$ac_compiler -V >&5") 2>&5
5829   ac_status=$?
5830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831   (exit $ac_status); }
5832
5833 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5834 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5835 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5836   echo $ECHO_N "(cached) $ECHO_C" >&6
5837 else
5838   cat >conftest.$ac_ext <<_ACEOF
5839 /* confdefs.h.  */
5840 _ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h.  */
5844
5845 int
5846 main ()
5847 {
5848 #ifndef __GNUC__
5849        choke me
5850 #endif
5851
5852   ;
5853   return 0;
5854 }
5855 _ACEOF
5856 rm -f conftest.$ac_objext
5857 if { (ac_try="$ac_compile"
5858 case "(($ac_try" in
5859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5860   *) ac_try_echo=$ac_try;;
5861 esac
5862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5863   (eval "$ac_compile") 2>conftest.er1
5864   ac_status=$?
5865   grep -v '^ *+' conftest.er1 >conftest.err
5866   rm -f conftest.er1
5867   cat conftest.err >&5
5868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869   (exit $ac_status); } && {
5870          test -z "$ac_cxx_werror_flag" ||
5871          test ! -s conftest.err
5872        } && test -s conftest.$ac_objext; then
5873   ac_compiler_gnu=yes
5874 else
5875   echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.$ac_ext >&5
5877
5878         ac_compiler_gnu=no
5879 fi
5880
5881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5882 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5883
5884 fi
5885 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5886 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5887 GXX=`test $ac_compiler_gnu = yes && echo yes`
5888 ac_test_CXXFLAGS=${CXXFLAGS+set}
5889 ac_save_CXXFLAGS=$CXXFLAGS
5890 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5891 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5892 if test "${ac_cv_prog_cxx_g+set}" = set; then
5893   echo $ECHO_N "(cached) $ECHO_C" >&6
5894 else
5895   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5896    ac_cxx_werror_flag=yes
5897    ac_cv_prog_cxx_g=no
5898    CXXFLAGS="-g"
5899    cat >conftest.$ac_ext <<_ACEOF
5900 /* confdefs.h.  */
5901 _ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h.  */
5905
5906 int
5907 main ()
5908 {
5909
5910   ;
5911   return 0;
5912 }
5913 _ACEOF
5914 rm -f conftest.$ac_objext
5915 if { (ac_try="$ac_compile"
5916 case "(($ac_try" in
5917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5918   *) ac_try_echo=$ac_try;;
5919 esac
5920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5921   (eval "$ac_compile") 2>conftest.er1
5922   ac_status=$?
5923   grep -v '^ *+' conftest.er1 >conftest.err
5924   rm -f conftest.er1
5925   cat conftest.err >&5
5926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927   (exit $ac_status); } && {
5928          test -z "$ac_cxx_werror_flag" ||
5929          test ! -s conftest.err
5930        } && test -s conftest.$ac_objext; then
5931   ac_cv_prog_cxx_g=yes
5932 else
5933   echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5935
5936         CXXFLAGS=""
5937       cat >conftest.$ac_ext <<_ACEOF
5938 /* confdefs.h.  */
5939 _ACEOF
5940 cat confdefs.h >>conftest.$ac_ext
5941 cat >>conftest.$ac_ext <<_ACEOF
5942 /* end confdefs.h.  */
5943
5944 int
5945 main ()
5946 {
5947
5948   ;
5949   return 0;
5950 }
5951 _ACEOF
5952 rm -f conftest.$ac_objext
5953 if { (ac_try="$ac_compile"
5954 case "(($ac_try" in
5955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956   *) ac_try_echo=$ac_try;;
5957 esac
5958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959   (eval "$ac_compile") 2>conftest.er1
5960   ac_status=$?
5961   grep -v '^ *+' conftest.er1 >conftest.err
5962   rm -f conftest.er1
5963   cat conftest.err >&5
5964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965   (exit $ac_status); } && {
5966          test -z "$ac_cxx_werror_flag" ||
5967          test ! -s conftest.err
5968        } && test -s conftest.$ac_objext; then
5969   :
5970 else
5971   echo "$as_me: failed program was:" >&5
5972 sed 's/^/| /' conftest.$ac_ext >&5
5973
5974         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5975          CXXFLAGS="-g"
5976          cat >conftest.$ac_ext <<_ACEOF
5977 /* confdefs.h.  */
5978 _ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h.  */
5982
5983 int
5984 main ()
5985 {
5986
5987   ;
5988   return 0;
5989 }
5990 _ACEOF
5991 rm -f conftest.$ac_objext
5992 if { (ac_try="$ac_compile"
5993 case "(($ac_try" in
5994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995   *) ac_try_echo=$ac_try;;
5996 esac
5997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998   (eval "$ac_compile") 2>conftest.er1
5999   ac_status=$?
6000   grep -v '^ *+' conftest.er1 >conftest.err
6001   rm -f conftest.er1
6002   cat conftest.err >&5
6003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004   (exit $ac_status); } && {
6005          test -z "$ac_cxx_werror_flag" ||
6006          test ! -s conftest.err
6007        } && test -s conftest.$ac_objext; then
6008   ac_cv_prog_cxx_g=yes
6009 else
6010   echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6012
6013
6014 fi
6015
6016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6017 fi
6018
6019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6020 fi
6021
6022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6023    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6024 fi
6025 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6026 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6027 if test "$ac_test_CXXFLAGS" = set; then
6028   CXXFLAGS=$ac_save_CXXFLAGS
6029 elif test $ac_cv_prog_cxx_g = yes; then
6030   if test "$GXX" = yes; then
6031     CXXFLAGS="-g -O2"
6032   else
6033     CXXFLAGS="-g"
6034   fi
6035 else
6036   if test "$GXX" = yes; then
6037     CXXFLAGS="-O2"
6038   else
6039     CXXFLAGS=
6040   fi
6041 fi
6042 ac_ext=cpp
6043 ac_cpp='$CXXCPP $CPPFLAGS'
6044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6047
6048 depcc="$CXX"  am_compiler_list=
6049
6050 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6051 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6052 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6053   echo $ECHO_N "(cached) $ECHO_C" >&6
6054 else
6055   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6056   # We make a subdir and do the tests there.  Otherwise we can end up
6057   # making bogus files that we don't know about and never remove.  For
6058   # instance it was reported that on HP-UX the gcc test will end up
6059   # making a dummy file named `D' -- because `-MD' means `put the output
6060   # in D'.
6061   mkdir conftest.dir
6062   # Copy depcomp to subdir because otherwise we won't find it if we're
6063   # using a relative directory.
6064   cp "$am_depcomp" conftest.dir
6065   cd conftest.dir
6066   # We will build objects and dependencies in a subdirectory because
6067   # it helps to detect inapplicable dependency modes.  For instance
6068   # both Tru64's cc and ICC support -MD to output dependencies as a
6069   # side effect of compilation, but ICC will put the dependencies in
6070   # the current directory while Tru64 will put them in the object
6071   # directory.
6072   mkdir sub
6073
6074   am_cv_CXX_dependencies_compiler_type=none
6075   if test "$am_compiler_list" = ""; then
6076      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6077   fi
6078   for depmode in $am_compiler_list; do
6079     # Setup a source with many dependencies, because some compilers
6080     # like to wrap large dependency lists on column 80 (with \), and
6081     # we should not choose a depcomp mode which is confused by this.
6082     #
6083     # We need to recreate these files for each test, as the compiler may
6084     # overwrite some of them when testing with obscure command lines.
6085     # This happens at least with the AIX C compiler.
6086     : > sub/conftest.c
6087     for i in 1 2 3 4 5 6; do
6088       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6089       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6090       # Solaris 8's {/usr,}/bin/sh.
6091       touch sub/conftst$i.h
6092     done
6093     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6094
6095     case $depmode in
6096     nosideeffect)
6097       # after this tag, mechanisms are not by side-effect, so they'll
6098       # only be used when explicitly requested
6099       if test "x$enable_dependency_tracking" = xyes; then
6100         continue
6101       else
6102         break
6103       fi
6104       ;;
6105     none) break ;;
6106     esac
6107     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6108     # mode.  It turns out that the SunPro C++ compiler does not properly
6109     # handle `-M -o', and we need to detect this.
6110     if depmode=$depmode \
6111        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6112        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6113        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6114          >/dev/null 2>conftest.err &&
6115        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6116        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6117        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6118        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6119       # icc doesn't choke on unknown options, it will just issue warnings
6120       # or remarks (even with -Werror).  So we grep stderr for any message
6121       # that says an option was ignored or not supported.
6122       # When given -MP, icc 7.0 and 7.1 complain thusly:
6123       #   icc: Command line warning: ignoring option '-M'; no argument required
6124       # The diagnosis changed in icc 8.0:
6125       #   icc: Command line remark: option '-MP' not supported
6126       if (grep 'ignoring option' conftest.err ||
6127           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6128         am_cv_CXX_dependencies_compiler_type=$depmode
6129         break
6130       fi
6131     fi
6132   done
6133
6134   cd ..
6135   rm -rf conftest.dir
6136 else
6137   am_cv_CXX_dependencies_compiler_type=none
6138 fi
6139
6140 fi
6141 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6142 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6143 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6144
6145  if
6146   test "x$enable_dependency_tracking" != xno \
6147   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6148   am__fastdepCXX_TRUE=
6149   am__fastdepCXX_FALSE='#'
6150 else
6151   am__fastdepCXX_TRUE='#'
6152   am__fastdepCXX_FALSE=
6153 fi
6154
6155
6156
6157
6158 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6159     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6160     (test "X$CXX" != "Xg++"))) ; then
6161   ac_ext=cpp
6162 ac_cpp='$CXXCPP $CPPFLAGS'
6163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6166 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6167 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6168 if test -z "$CXXCPP"; then
6169   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6170   echo $ECHO_N "(cached) $ECHO_C" >&6
6171 else
6172       # Double quotes because CXXCPP needs to be expanded
6173     for CXXCPP in "$CXX -E" "/lib/cpp"
6174     do
6175       ac_preproc_ok=false
6176 for ac_cxx_preproc_warn_flag in '' yes
6177 do
6178   # Use a header file that comes with gcc, so configuring glibc
6179   # with a fresh cross-compiler works.
6180   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6181   # <limits.h> exists even on freestanding compilers.
6182   # On the NeXT, cc -E runs the code through the compiler's parser,
6183   # not just through cpp. "Syntax error" is here to catch this case.
6184   cat >conftest.$ac_ext <<_ACEOF
6185 /* confdefs.h.  */
6186 _ACEOF
6187 cat confdefs.h >>conftest.$ac_ext
6188 cat >>conftest.$ac_ext <<_ACEOF
6189 /* end confdefs.h.  */
6190 #ifdef __STDC__
6191 # include <limits.h>
6192 #else
6193 # include <assert.h>
6194 #endif
6195                      Syntax error
6196 _ACEOF
6197 if { (ac_try="$ac_cpp conftest.$ac_ext"
6198 case "(($ac_try" in
6199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6200   *) ac_try_echo=$ac_try;;
6201 esac
6202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6203   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6204   ac_status=$?
6205   grep -v '^ *+' conftest.er1 >conftest.err
6206   rm -f conftest.er1
6207   cat conftest.err >&5
6208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209   (exit $ac_status); } >/dev/null && {
6210          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6211          test ! -s conftest.err
6212        }; then
6213   :
6214 else
6215   echo "$as_me: failed program was:" >&5
6216 sed 's/^/| /' conftest.$ac_ext >&5
6217
6218   # Broken: fails on valid input.
6219 continue
6220 fi
6221
6222 rm -f conftest.err conftest.$ac_ext
6223
6224   # OK, works on sane cases.  Now check whether nonexistent headers
6225   # can be detected and how.
6226   cat >conftest.$ac_ext <<_ACEOF
6227 /* confdefs.h.  */
6228 _ACEOF
6229 cat confdefs.h >>conftest.$ac_ext
6230 cat >>conftest.$ac_ext <<_ACEOF
6231 /* end confdefs.h.  */
6232 #include <ac_nonexistent.h>
6233 _ACEOF
6234 if { (ac_try="$ac_cpp conftest.$ac_ext"
6235 case "(($ac_try" in
6236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6237   *) ac_try_echo=$ac_try;;
6238 esac
6239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6240   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6241   ac_status=$?
6242   grep -v '^ *+' conftest.er1 >conftest.err
6243   rm -f conftest.er1
6244   cat conftest.err >&5
6245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246   (exit $ac_status); } >/dev/null && {
6247          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6248          test ! -s conftest.err
6249        }; then
6250   # Broken: success on invalid input.
6251 continue
6252 else
6253   echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6255
6256   # Passes both tests.
6257 ac_preproc_ok=:
6258 break
6259 fi
6260
6261 rm -f conftest.err conftest.$ac_ext
6262
6263 done
6264 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6265 rm -f conftest.err conftest.$ac_ext
6266 if $ac_preproc_ok; then
6267   break
6268 fi
6269
6270     done
6271     ac_cv_prog_CXXCPP=$CXXCPP
6272
6273 fi
6274   CXXCPP=$ac_cv_prog_CXXCPP
6275 else
6276   ac_cv_prog_CXXCPP=$CXXCPP
6277 fi
6278 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6279 echo "${ECHO_T}$CXXCPP" >&6; }
6280 ac_preproc_ok=false
6281 for ac_cxx_preproc_warn_flag in '' yes
6282 do
6283   # Use a header file that comes with gcc, so configuring glibc
6284   # with a fresh cross-compiler works.
6285   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6286   # <limits.h> exists even on freestanding compilers.
6287   # On the NeXT, cc -E runs the code through the compiler's parser,
6288   # not just through cpp. "Syntax error" is here to catch this case.
6289   cat >conftest.$ac_ext <<_ACEOF
6290 /* confdefs.h.  */
6291 _ACEOF
6292 cat confdefs.h >>conftest.$ac_ext
6293 cat >>conftest.$ac_ext <<_ACEOF
6294 /* end confdefs.h.  */
6295 #ifdef __STDC__
6296 # include <limits.h>
6297 #else
6298 # include <assert.h>
6299 #endif
6300                      Syntax error
6301 _ACEOF
6302 if { (ac_try="$ac_cpp conftest.$ac_ext"
6303 case "(($ac_try" in
6304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6305   *) ac_try_echo=$ac_try;;
6306 esac
6307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6308   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6309   ac_status=$?
6310   grep -v '^ *+' conftest.er1 >conftest.err
6311   rm -f conftest.er1
6312   cat conftest.err >&5
6313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314   (exit $ac_status); } >/dev/null && {
6315          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6316          test ! -s conftest.err
6317        }; then
6318   :
6319 else
6320   echo "$as_me: failed program was:" >&5
6321 sed 's/^/| /' conftest.$ac_ext >&5
6322
6323   # Broken: fails on valid input.
6324 continue
6325 fi
6326
6327 rm -f conftest.err conftest.$ac_ext
6328
6329   # OK, works on sane cases.  Now check whether nonexistent headers
6330   # can be detected and how.
6331   cat >conftest.$ac_ext <<_ACEOF
6332 /* confdefs.h.  */
6333 _ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h.  */
6337 #include <ac_nonexistent.h>
6338 _ACEOF
6339 if { (ac_try="$ac_cpp conftest.$ac_ext"
6340 case "(($ac_try" in
6341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342   *) ac_try_echo=$ac_try;;
6343 esac
6344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6345   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6346   ac_status=$?
6347   grep -v '^ *+' conftest.er1 >conftest.err
6348   rm -f conftest.er1
6349   cat conftest.err >&5
6350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351   (exit $ac_status); } >/dev/null && {
6352          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6353          test ! -s conftest.err
6354        }; then
6355   # Broken: success on invalid input.
6356 continue
6357 else
6358   echo "$as_me: failed program was:" >&5
6359 sed 's/^/| /' conftest.$ac_ext >&5
6360
6361   # Passes both tests.
6362 ac_preproc_ok=:
6363 break
6364 fi
6365
6366 rm -f conftest.err conftest.$ac_ext
6367
6368 done
6369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6370 rm -f conftest.err conftest.$ac_ext
6371 if $ac_preproc_ok; then
6372   :
6373 else
6374   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6375 See \`config.log' for more details." >&5
6376 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6377 See \`config.log' for more details." >&2;}
6378    { (exit 1); exit 1; }; }
6379 fi
6380
6381 ac_ext=cpp
6382 ac_cpp='$CXXCPP $CPPFLAGS'
6383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6386
6387 fi
6388
6389
6390
6391
6392
6393 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6394
6395 # find the maximum length of command line arguments
6396 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6397 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6398 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6399   echo $ECHO_N "(cached) $ECHO_C" >&6
6400 else
6401     i=0
6402   teststring="ABCD"
6403
6404   case $build_os in
6405   msdosdjgpp*)
6406     # On DJGPP, this test can blow up pretty badly due to problems in libc
6407     # (any single argument exceeding 2000 bytes causes a buffer overrun
6408     # during glob expansion).  Even if it were fixed, the result of this
6409     # check would be larger than it should be.
6410     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6411     ;;
6412
6413   gnu*)
6414     # Under GNU Hurd, this test is not required because there is
6415     # no limit to the length of command line arguments.
6416     # Libtool will interpret -1 as no limit whatsoever
6417     lt_cv_sys_max_cmd_len=-1;
6418     ;;
6419
6420   cygwin* | mingw*)
6421     # On Win9x/ME, this test blows up -- it succeeds, but takes
6422     # about 5 minutes as the teststring grows exponentially.
6423     # Worse, since 9x/ME are not pre-emptively multitasking,
6424     # you end up with a "frozen" computer, even though with patience
6425     # the test eventually succeeds (with a max line length of 256k).
6426     # Instead, let's just punt: use the minimum linelength reported by
6427     # all of the supported platforms: 8192 (on NT/2K/XP).
6428     lt_cv_sys_max_cmd_len=8192;
6429     ;;
6430
6431   amigaos*)
6432     # On AmigaOS with pdksh, this test takes hours, literally.
6433     # So we just punt and use a minimum line length of 8192.
6434     lt_cv_sys_max_cmd_len=8192;
6435     ;;
6436
6437   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6438     # This has been around since 386BSD, at least.  Likely further.
6439     if test -x /sbin/sysctl; then
6440       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6441     elif test -x /usr/sbin/sysctl; then
6442       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6443     else
6444       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6445     fi
6446     # And add a safety zone
6447     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6448     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6449     ;;
6450
6451   interix*)
6452     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6453     lt_cv_sys_max_cmd_len=196608
6454     ;;
6455
6456   osf*)
6457     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6458     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6459     # nice to cause kernel panics so lets avoid the loop below.
6460     # First set a reasonable default.
6461     lt_cv_sys_max_cmd_len=16384
6462     #
6463     if test -x /sbin/sysconfig; then
6464       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6465         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6466       esac
6467     fi
6468     ;;
6469   sco3.2v5*)
6470     lt_cv_sys_max_cmd_len=102400
6471     ;;
6472   sysv5* | sco5v6* | sysv4.2uw2*)
6473     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6474     if test -n "$kargmax"; then
6475       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6476     else
6477       lt_cv_sys_max_cmd_len=32768
6478     fi
6479     ;;
6480   *)
6481     # If test is not a shell built-in, we'll probably end up computing a
6482     # maximum length that is only half of the actual maximum length, but
6483     # we can't tell.
6484     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6485     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6486                = "XX$teststring") >/dev/null 2>&1 &&
6487             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6488             lt_cv_sys_max_cmd_len=$new_result &&
6489             test $i != 17 # 1/2 MB should be enough
6490     do
6491       i=`expr $i + 1`
6492       teststring=$teststring$teststring
6493     done
6494     teststring=
6495     # Add a significant safety factor because C++ compilers can tack on massive
6496     # amounts of additional arguments before passing them to the linker.
6497     # It appears as though 1/2 is a usable value.
6498     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6499     ;;
6500   esac
6501
6502 fi
6503
6504 if test -n $lt_cv_sys_max_cmd_len ; then
6505   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6506 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6507 else
6508   { echo "$as_me:$LINENO: result: none" >&5
6509 echo "${ECHO_T}none" >&6; }
6510 fi
6511
6512
6513
6514
6515 # Check for command to grab the raw symbol name followed by C symbol from nm.
6516 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6517 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6518 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6519   echo $ECHO_N "(cached) $ECHO_C" >&6
6520 else
6521
6522 # These are sane defaults that work on at least a few old systems.
6523 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6524
6525 # Character class describing NM global symbol codes.
6526 symcode='[BCDEGRST]'
6527
6528 # Regexp to match symbols that can be accessed directly from C.
6529 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6530
6531 # Transform an extracted symbol line into a proper C declaration
6532 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6533
6534 # Transform an extracted symbol line into symbol name and symbol address
6535 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6536
6537 # Define system-specific variables.
6538 case $host_os in
6539 aix*)
6540   symcode='[BCDT]'
6541   ;;
6542 cygwin* | mingw* | pw32*)
6543   symcode='[ABCDGISTW]'
6544   ;;
6545 hpux*) # Its linker distinguishes data from code symbols
6546   if test "$host_cpu" = ia64; then
6547     symcode='[ABCDEGRST]'
6548   fi
6549   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6550   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6551   ;;
6552 linux* | k*bsd*-gnu)
6553   if test "$host_cpu" = ia64; then
6554     symcode='[ABCDGIRSTW]'
6555     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6556     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6557   fi
6558   ;;
6559 irix* | nonstopux*)
6560   symcode='[BCDEGRST]'
6561   ;;
6562 osf*)
6563   symcode='[BCDEGQRST]'
6564   ;;
6565 solaris*)
6566   symcode='[BDRT]'
6567   ;;
6568 sco3.2v5*)
6569   symcode='[DT]'
6570   ;;
6571 sysv4.2uw2*)
6572   symcode='[DT]'
6573   ;;
6574 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6575   symcode='[ABDT]'
6576   ;;
6577 sysv4)
6578   symcode='[DFNSTU]'
6579   ;;
6580 esac
6581
6582 # Handle CRLF in mingw tool chain
6583 opt_cr=
6584 case $build_os in
6585 mingw*)
6586   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6587   ;;
6588 esac
6589
6590 # If we're using GNU nm, then use its standard symbol codes.
6591 case `$NM -V 2>&1` in
6592 *GNU* | *'with BFD'*)
6593   symcode='[ABCDGIRSTW]' ;;
6594 esac
6595
6596 # Try without a prefix undercore, then with it.
6597 for ac_symprfx in "" "_"; do
6598
6599   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6600   symxfrm="\\1 $ac_symprfx\\2 \\2"
6601
6602   # Write the raw and C identifiers.
6603   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6604
6605   # Check to see that the pipe works correctly.
6606   pipe_works=no
6607
6608   rm -f conftest*
6609   cat > conftest.$ac_ext <<EOF
6610 #ifdef __cplusplus
6611 extern "C" {
6612 #endif
6613 char nm_test_var;
6614 void nm_test_func(){}
6615 #ifdef __cplusplus
6616 }
6617 #endif
6618 int main(){nm_test_var='a';nm_test_func();return(0);}
6619 EOF
6620
6621   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6622   (eval $ac_compile) 2>&5
6623   ac_status=$?
6624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625   (exit $ac_status); }; then
6626     # Now try to grab the symbols.
6627     nlist=conftest.nm
6628     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6629   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6630   ac_status=$?
6631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632   (exit $ac_status); } && test -s "$nlist"; then
6633       # Try sorting and uniquifying the output.
6634       if sort "$nlist" | uniq > "$nlist"T; then
6635         mv -f "$nlist"T "$nlist"
6636       else
6637         rm -f "$nlist"T
6638       fi
6639
6640       # Make sure that we snagged all the symbols we need.
6641       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6642         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6643           cat <<EOF > conftest.$ac_ext
6644 #ifdef __cplusplus
6645 extern "C" {
6646 #endif
6647
6648 EOF
6649           # Now generate the symbol file.
6650           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6651
6652           cat <<EOF >> conftest.$ac_ext
6653 #if defined (__STDC__) && __STDC__
6654 # define lt_ptr_t void *
6655 #else
6656 # define lt_ptr_t char *
6657 # define const
6658 #endif
6659
6660 /* The mapping between symbol names and symbols. */
6661 const struct {
6662   const char *name;
6663   lt_ptr_t address;
6664 }
6665 lt_preloaded_symbols[] =
6666 {
6667 EOF
6668           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6669           cat <<\EOF >> conftest.$ac_ext
6670   {0, (lt_ptr_t) 0}
6671 };
6672
6673 #ifdef __cplusplus
6674 }
6675 #endif
6676 EOF
6677           # Now try linking the two files.
6678           mv conftest.$ac_objext conftstm.$ac_objext
6679           lt_save_LIBS="$LIBS"
6680           lt_save_CFLAGS="$CFLAGS"
6681           LIBS="conftstm.$ac_objext"
6682           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6683           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6684   (eval $ac_link) 2>&5
6685   ac_status=$?
6686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6688             pipe_works=yes
6689           fi
6690           LIBS="$lt_save_LIBS"
6691           CFLAGS="$lt_save_CFLAGS"
6692         else
6693           echo "cannot find nm_test_func in $nlist" >&5
6694         fi
6695       else
6696         echo "cannot find nm_test_var in $nlist" >&5
6697       fi
6698     else
6699       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6700     fi
6701   else
6702     echo "$progname: failed program was:" >&5
6703     cat conftest.$ac_ext >&5
6704   fi
6705   rm -f conftest* conftst*
6706
6707   # Do not use the global_symbol_pipe unless it works.
6708   if test "$pipe_works" = yes; then
6709     break
6710   else
6711     lt_cv_sys_global_symbol_pipe=
6712   fi
6713 done
6714
6715 fi
6716
6717 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6718   lt_cv_sys_global_symbol_to_cdecl=
6719 fi
6720 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6721   { echo "$as_me:$LINENO: result: failed" >&5
6722 echo "${ECHO_T}failed" >&6; }
6723 else
6724   { echo "$as_me:$LINENO: result: ok" >&5
6725 echo "${ECHO_T}ok" >&6; }
6726 fi
6727
6728 { echo "$as_me:$LINENO: checking for objdir" >&5
6729 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6730 if test "${lt_cv_objdir+set}" = set; then
6731   echo $ECHO_N "(cached) $ECHO_C" >&6
6732 else
6733   rm -f .libs 2>/dev/null
6734 mkdir .libs 2>/dev/null
6735 if test -d .libs; then
6736   lt_cv_objdir=.libs
6737 else
6738   # MS-DOS does not allow filenames that begin with a dot.
6739   lt_cv_objdir=_libs
6740 fi
6741 rmdir .libs 2>/dev/null
6742 fi
6743 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6744 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6745 objdir=$lt_cv_objdir
6746
6747
6748
6749
6750
6751 case $host_os in
6752 aix3*)
6753   # AIX sometimes has problems with the GCC collect2 program.  For some
6754   # reason, if we set the COLLECT_NAMES environment variable, the problems
6755   # vanish in a puff of smoke.
6756   if test "X${COLLECT_NAMES+set}" != Xset; then
6757     COLLECT_NAMES=
6758     export COLLECT_NAMES
6759   fi
6760   ;;
6761 esac
6762
6763 # Sed substitution that helps us do robust quoting.  It backslashifies
6764 # metacharacters that are still active within double-quoted strings.
6765 Xsed='sed -e 1s/^X//'
6766 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6767
6768 # Same as above, but do not quote variable references.
6769 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6770
6771 # Sed substitution to delay expansion of an escaped shell variable in a
6772 # double_quote_subst'ed string.
6773 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6774
6775 # Sed substitution to avoid accidental globbing in evaled expressions
6776 no_glob_subst='s/\*/\\\*/g'
6777
6778 # Constants:
6779 rm="rm -f"
6780
6781 # Global variables:
6782 default_ofile=libtool
6783 can_build_shared=yes
6784
6785 # All known linkers require a `.a' archive for static linking (except MSVC,
6786 # which needs '.lib').
6787 libext=a
6788 ltmain="$ac_aux_dir/ltmain.sh"
6789 ofile="$default_ofile"
6790 with_gnu_ld="$lt_cv_prog_gnu_ld"
6791
6792 if test -n "$ac_tool_prefix"; then
6793   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6794 set dummy ${ac_tool_prefix}ar; ac_word=$2
6795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6797 if test "${ac_cv_prog_AR+set}" = set; then
6798   echo $ECHO_N "(cached) $ECHO_C" >&6
6799 else
6800   if test -n "$AR"; then
6801   ac_cv_prog_AR="$AR" # Let the user override the test.
6802 else
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 for as_dir in $PATH
6805 do
6806   IFS=$as_save_IFS
6807   test -z "$as_dir" && as_dir=.
6808   for ac_exec_ext in '' $ac_executable_extensions; do
6809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6810     ac_cv_prog_AR="${ac_tool_prefix}ar"
6811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6812     break 2
6813   fi
6814 done
6815 done
6816 IFS=$as_save_IFS
6817
6818 fi
6819 fi
6820 AR=$ac_cv_prog_AR
6821 if test -n "$AR"; then
6822   { echo "$as_me:$LINENO: result: $AR" >&5
6823 echo "${ECHO_T}$AR" >&6; }
6824 else
6825   { echo "$as_me:$LINENO: result: no" >&5
6826 echo "${ECHO_T}no" >&6; }
6827 fi
6828
6829
6830 fi
6831 if test -z "$ac_cv_prog_AR"; then
6832   ac_ct_AR=$AR
6833   # Extract the first word of "ar", so it can be a program name with args.
6834 set dummy ar; ac_word=$2
6835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6837 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6838   echo $ECHO_N "(cached) $ECHO_C" >&6
6839 else
6840   if test -n "$ac_ct_AR"; then
6841   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6842 else
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in $PATH
6845 do
6846   IFS=$as_save_IFS
6847   test -z "$as_dir" && as_dir=.
6848   for ac_exec_ext in '' $ac_executable_extensions; do
6849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6850     ac_cv_prog_ac_ct_AR="ar"
6851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6852     break 2
6853   fi
6854 done
6855 done
6856 IFS=$as_save_IFS
6857
6858 fi
6859 fi
6860 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6861 if test -n "$ac_ct_AR"; then
6862   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6863 echo "${ECHO_T}$ac_ct_AR" >&6; }
6864 else
6865   { echo "$as_me:$LINENO: result: no" >&5
6866 echo "${ECHO_T}no" >&6; }
6867 fi
6868
6869   if test "x$ac_ct_AR" = x; then
6870     AR="false"
6871   else
6872     case $cross_compiling:$ac_tool_warned in
6873 yes:)
6874 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6875 whose name does not start with the host triplet.  If you think this
6876 configuration is useful to you, please write to autoconf@gnu.org." >&5
6877 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6878 whose name does not start with the host triplet.  If you think this
6879 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6880 ac_tool_warned=yes ;;
6881 esac
6882     AR=$ac_ct_AR
6883   fi
6884 else
6885   AR="$ac_cv_prog_AR"
6886 fi
6887
6888 if test -n "$ac_tool_prefix"; then
6889   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6890 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6893 if test "${ac_cv_prog_RANLIB+set}" = set; then
6894   echo $ECHO_N "(cached) $ECHO_C" >&6
6895 else
6896   if test -n "$RANLIB"; then
6897   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6898 else
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 for as_dir in $PATH
6901 do
6902   IFS=$as_save_IFS
6903   test -z "$as_dir" && as_dir=.
6904   for ac_exec_ext in '' $ac_executable_extensions; do
6905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6906     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6908     break 2
6909   fi
6910 done
6911 done
6912 IFS=$as_save_IFS
6913
6914 fi
6915 fi
6916 RANLIB=$ac_cv_prog_RANLIB
6917 if test -n "$RANLIB"; then
6918   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6919 echo "${ECHO_T}$RANLIB" >&6; }
6920 else
6921   { echo "$as_me:$LINENO: result: no" >&5
6922 echo "${ECHO_T}no" >&6; }
6923 fi
6924
6925
6926 fi
6927 if test -z "$ac_cv_prog_RANLIB"; then
6928   ac_ct_RANLIB=$RANLIB
6929   # Extract the first word of "ranlib", so it can be a program name with args.
6930 set dummy ranlib; ac_word=$2
6931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6933 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6934   echo $ECHO_N "(cached) $ECHO_C" >&6
6935 else
6936   if test -n "$ac_ct_RANLIB"; then
6937   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6938 else
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 for as_dir in $PATH
6941 do
6942   IFS=$as_save_IFS
6943   test -z "$as_dir" && as_dir=.
6944   for ac_exec_ext in '' $ac_executable_extensions; do
6945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6946     ac_cv_prog_ac_ct_RANLIB="ranlib"
6947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6948     break 2
6949   fi
6950 done
6951 done
6952 IFS=$as_save_IFS
6953
6954 fi
6955 fi
6956 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6957 if test -n "$ac_ct_RANLIB"; then
6958   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6959 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6960 else
6961   { echo "$as_me:$LINENO: result: no" >&5
6962 echo "${ECHO_T}no" >&6; }
6963 fi
6964
6965   if test "x$ac_ct_RANLIB" = x; then
6966     RANLIB=":"
6967   else
6968     case $cross_compiling:$ac_tool_warned in
6969 yes:)
6970 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6971 whose name does not start with the host triplet.  If you think this
6972 configuration is useful to you, please write to autoconf@gnu.org." >&5
6973 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6974 whose name does not start with the host triplet.  If you think this
6975 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6976 ac_tool_warned=yes ;;
6977 esac
6978     RANLIB=$ac_ct_RANLIB
6979   fi
6980 else
6981   RANLIB="$ac_cv_prog_RANLIB"
6982 fi
6983
6984 if test -n "$ac_tool_prefix"; then
6985   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6986 set dummy ${ac_tool_prefix}strip; ac_word=$2
6987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6989 if test "${ac_cv_prog_STRIP+set}" = set; then
6990   echo $ECHO_N "(cached) $ECHO_C" >&6
6991 else
6992   if test -n "$STRIP"; then
6993   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6994 else
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 for as_dir in $PATH
6997 do
6998   IFS=$as_save_IFS
6999   test -z "$as_dir" && as_dir=.
7000   for ac_exec_ext in '' $ac_executable_extensions; do
7001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7002     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7004     break 2
7005   fi
7006 done
7007 done
7008 IFS=$as_save_IFS
7009
7010 fi
7011 fi
7012 STRIP=$ac_cv_prog_STRIP
7013 if test -n "$STRIP"; then
7014   { echo "$as_me:$LINENO: result: $STRIP" >&5
7015 echo "${ECHO_T}$STRIP" >&6; }
7016 else
7017   { echo "$as_me:$LINENO: result: no" >&5
7018 echo "${ECHO_T}no" >&6; }
7019 fi
7020
7021
7022 fi
7023 if test -z "$ac_cv_prog_STRIP"; then
7024   ac_ct_STRIP=$STRIP
7025   # Extract the first word of "strip", so it can be a program name with args.
7026 set dummy strip; ac_word=$2
7027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7029 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7030   echo $ECHO_N "(cached) $ECHO_C" >&6
7031 else
7032   if test -n "$ac_ct_STRIP"; then
7033   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7034 else
7035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036 for as_dir in $PATH
7037 do
7038   IFS=$as_save_IFS
7039   test -z "$as_dir" && as_dir=.
7040   for ac_exec_ext in '' $ac_executable_extensions; do
7041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7042     ac_cv_prog_ac_ct_STRIP="strip"
7043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7044     break 2
7045   fi
7046 done
7047 done
7048 IFS=$as_save_IFS
7049
7050 fi
7051 fi
7052 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7053 if test -n "$ac_ct_STRIP"; then
7054   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7055 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7056 else
7057   { echo "$as_me:$LINENO: result: no" >&5
7058 echo "${ECHO_T}no" >&6; }
7059 fi
7060
7061   if test "x$ac_ct_STRIP" = x; then
7062     STRIP=":"
7063   else
7064     case $cross_compiling:$ac_tool_warned in
7065 yes:)
7066 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7067 whose name does not start with the host triplet.  If you think this
7068 configuration is useful to you, please write to autoconf@gnu.org." >&5
7069 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7070 whose name does not start with the host triplet.  If you think this
7071 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7072 ac_tool_warned=yes ;;
7073 esac
7074     STRIP=$ac_ct_STRIP
7075   fi
7076 else
7077   STRIP="$ac_cv_prog_STRIP"
7078 fi
7079
7080
7081 old_CC="$CC"
7082 old_CFLAGS="$CFLAGS"
7083
7084 # Set sane defaults for various variables
7085 test -z "$AR" && AR=ar
7086 test -z "$AR_FLAGS" && AR_FLAGS=cru
7087 test -z "$AS" && AS=as
7088 test -z "$CC" && CC=cc
7089 test -z "$LTCC" && LTCC=$CC
7090 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7091 test -z "$DLLTOOL" && DLLTOOL=dlltool
7092 test -z "$LD" && LD=ld
7093 test -z "$LN_S" && LN_S="ln -s"
7094 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7095 test -z "$NM" && NM=nm
7096 test -z "$SED" && SED=sed
7097 test -z "$OBJDUMP" && OBJDUMP=objdump
7098 test -z "$RANLIB" && RANLIB=:
7099 test -z "$STRIP" && STRIP=:
7100 test -z "$ac_objext" && ac_objext=o
7101
7102 # Determine commands to create old-style static archives.
7103 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7104 old_postinstall_cmds='chmod 644 $oldlib'
7105 old_postuninstall_cmds=
7106
7107 if test -n "$RANLIB"; then
7108   case $host_os in
7109   openbsd*)
7110     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7111     ;;
7112   *)
7113     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7114     ;;
7115   esac
7116   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7117 fi
7118
7119 for cc_temp in $compiler""; do
7120   case $cc_temp in
7121     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7122     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7123     \-*) ;;
7124     *) break;;
7125   esac
7126 done
7127 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7128
7129
7130 # Only perform the check for file, if the check method requires it
7131 case $deplibs_check_method in
7132 file_magic*)
7133   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7134     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7135 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7136 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7137   echo $ECHO_N "(cached) $ECHO_C" >&6
7138 else
7139   case $MAGIC_CMD in
7140 [\\/*] |  ?:[\\/]*)
7141   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7142   ;;
7143 *)
7144   lt_save_MAGIC_CMD="$MAGIC_CMD"
7145   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7146   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7147   for ac_dir in $ac_dummy; do
7148     IFS="$lt_save_ifs"
7149     test -z "$ac_dir" && ac_dir=.
7150     if test -f $ac_dir/${ac_tool_prefix}file; then
7151       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7152       if test -n "$file_magic_test_file"; then
7153         case $deplibs_check_method in
7154         "file_magic "*)
7155           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7156           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7157           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7158             $EGREP "$file_magic_regex" > /dev/null; then
7159             :
7160           else
7161             cat <<EOF 1>&2
7162
7163 *** Warning: the command libtool uses to detect shared libraries,
7164 *** $file_magic_cmd, produces output that libtool cannot recognize.
7165 *** The result is that libtool may fail to recognize shared libraries
7166 *** as such.  This will affect the creation of libtool libraries that
7167 *** depend on shared libraries, but programs linked with such libtool
7168 *** libraries will work regardless of this problem.  Nevertheless, you
7169 *** may want to report the problem to your system manager and/or to
7170 *** bug-libtool@gnu.org
7171
7172 EOF
7173           fi ;;
7174         esac
7175       fi
7176       break
7177     fi
7178   done
7179   IFS="$lt_save_ifs"
7180   MAGIC_CMD="$lt_save_MAGIC_CMD"
7181   ;;
7182 esac
7183 fi
7184
7185 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7186 if test -n "$MAGIC_CMD"; then
7187   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7188 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7189 else
7190   { echo "$as_me:$LINENO: result: no" >&5
7191 echo "${ECHO_T}no" >&6; }
7192 fi
7193
7194 if test -z "$lt_cv_path_MAGIC_CMD"; then
7195   if test -n "$ac_tool_prefix"; then
7196     { echo "$as_me:$LINENO: checking for file" >&5
7197 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7198 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7199   echo $ECHO_N "(cached) $ECHO_C" >&6
7200 else
7201   case $MAGIC_CMD in
7202 [\\/*] |  ?:[\\/]*)
7203   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7204   ;;
7205 *)
7206   lt_save_MAGIC_CMD="$MAGIC_CMD"
7207   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7208   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7209   for ac_dir in $ac_dummy; do
7210     IFS="$lt_save_ifs"
7211     test -z "$ac_dir" && ac_dir=.
7212     if test -f $ac_dir/file; then
7213       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7214       if test -n "$file_magic_test_file"; then
7215         case $deplibs_check_method in
7216         "file_magic "*)
7217           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7218           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7219           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7220             $EGREP "$file_magic_regex" > /dev/null; then
7221             :
7222           else
7223             cat <<EOF 1>&2
7224
7225 *** Warning: the command libtool uses to detect shared libraries,
7226 *** $file_magic_cmd, produces output that libtool cannot recognize.
7227 *** The result is that libtool may fail to recognize shared libraries
7228 *** as such.  This will affect the creation of libtool libraries that
7229 *** depend on shared libraries, but programs linked with such libtool
7230 *** libraries will work regardless of this problem.  Nevertheless, you
7231 *** may want to report the problem to your system manager and/or to
7232 *** bug-libtool@gnu.org
7233
7234 EOF
7235           fi ;;
7236         esac
7237       fi
7238       break
7239     fi
7240   done
7241   IFS="$lt_save_ifs"
7242   MAGIC_CMD="$lt_save_MAGIC_CMD"
7243   ;;
7244 esac
7245 fi
7246
7247 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7248 if test -n "$MAGIC_CMD"; then
7249   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7250 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7251 else
7252   { echo "$as_me:$LINENO: result: no" >&5
7253 echo "${ECHO_T}no" >&6; }
7254 fi
7255
7256   else
7257     MAGIC_CMD=:
7258   fi
7259 fi
7260
7261   fi
7262   ;;
7263 esac
7264
7265 enable_dlopen=no
7266 enable_win32_dll=yes
7267
7268 # Check whether --enable-libtool-lock was given.
7269 if test "${enable_libtool_lock+set}" = set; then
7270   enableval=$enable_libtool_lock;
7271 fi
7272
7273 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7274
7275
7276 # Check whether --with-pic was given.
7277 if test "${with_pic+set}" = set; then
7278   withval=$with_pic; pic_mode="$withval"
7279 else
7280   pic_mode=default
7281 fi
7282
7283 test -z "$pic_mode" && pic_mode=default
7284
7285 # Use C for the default configuration in the libtool script
7286 tagname=
7287 lt_save_CC="$CC"
7288 ac_ext=c
7289 ac_cpp='$CPP $CPPFLAGS'
7290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7293
7294
7295 # Source file extension for C test sources.
7296 ac_ext=c
7297
7298 # Object file extension for compiled C test sources.
7299 objext=o
7300 objext=$objext
7301
7302 # Code to be used in simple compile tests
7303 lt_simple_compile_test_code="int some_variable = 0;\n"
7304
7305 # Code to be used in simple link tests
7306 lt_simple_link_test_code='int main(){return(0);}\n'
7307
7308
7309 # If no C compiler was specified, use CC.
7310 LTCC=${LTCC-"$CC"}
7311
7312 # If no C compiler flags were specified, use CFLAGS.
7313 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7314
7315 # Allow CC to be a program name with arguments.
7316 compiler=$CC
7317
7318
7319 # save warnings/boilerplate of simple test code
7320 ac_outfile=conftest.$ac_objext
7321 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7322 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7323 _lt_compiler_boilerplate=`cat conftest.err`
7324 $rm conftest*
7325
7326 ac_outfile=conftest.$ac_objext
7327 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7328 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7329 _lt_linker_boilerplate=`cat conftest.err`
7330 $rm conftest*
7331
7332
7333
7334 lt_prog_compiler_no_builtin_flag=
7335
7336 if test "$GCC" = yes; then
7337   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7338
7339
7340 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7341 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7342 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7343   echo $ECHO_N "(cached) $ECHO_C" >&6
7344 else
7345   lt_cv_prog_compiler_rtti_exceptions=no
7346   ac_outfile=conftest.$ac_objext
7347    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7348    lt_compiler_flag="-fno-rtti -fno-exceptions"
7349    # Insert the option either (1) after the last *FLAGS variable, or
7350    # (2) before a word containing "conftest.", or (3) at the end.
7351    # Note that $ac_compile itself does not contain backslashes and begins
7352    # with a dollar sign (not a hyphen), so the echo should work correctly.
7353    # The option is referenced via a variable to avoid confusing sed.
7354    lt_compile=`echo "$ac_compile" | $SED \
7355    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7356    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7357    -e 's:$: $lt_compiler_flag:'`
7358    (eval echo "\"\$as_me:7358: $lt_compile\"" >&5)
7359    (eval "$lt_compile" 2>conftest.err)
7360    ac_status=$?
7361    cat conftest.err >&5
7362    echo "$as_me:7362: \$? = $ac_status" >&5
7363    if (exit $ac_status) && test -s "$ac_outfile"; then
7364      # The compiler can only warn and ignore the option if not recognized
7365      # So say no if there are warnings other than the usual output.
7366      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7367      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7368      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7369        lt_cv_prog_compiler_rtti_exceptions=yes
7370      fi
7371    fi
7372    $rm conftest*
7373
7374 fi
7375 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7376 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7377
7378 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7379     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7380 else
7381     :
7382 fi
7383
7384 fi
7385
7386 lt_prog_compiler_wl=
7387 lt_prog_compiler_pic=
7388 lt_prog_compiler_static=
7389
7390 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7391 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7392
7393   if test "$GCC" = yes; then
7394     lt_prog_compiler_wl='-Wl,'
7395     lt_prog_compiler_static='-static'
7396
7397     case $host_os in
7398       aix*)
7399       # All AIX code is PIC.
7400       if test "$host_cpu" = ia64; then
7401         # AIX 5 now supports IA64 processor
7402         lt_prog_compiler_static='-Bstatic'
7403       fi
7404       ;;
7405
7406     amigaos*)
7407       # FIXME: we need at least 68020 code to build shared libraries, but
7408       # adding the `-m68020' flag to GCC prevents building anything better,
7409       # like `-m68040'.
7410       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7411       ;;
7412
7413     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7414       # PIC is the default for these OSes.
7415       ;;
7416
7417     mingw* | pw32* | os2*)
7418       # This hack is so that the source file can tell whether it is being
7419       # built for inclusion in a dll (and should export symbols for example).
7420       lt_prog_compiler_pic='-DDLL_EXPORT'
7421       ;;
7422
7423     darwin* | rhapsody*)
7424       # PIC is the default on this platform
7425       # Common symbols not allowed in MH_DYLIB files
7426       lt_prog_compiler_pic='-fno-common'
7427       ;;
7428
7429     interix3*)
7430       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7431       # Instead, we relocate shared libraries at runtime.
7432       ;;
7433
7434     msdosdjgpp*)
7435       # Just because we use GCC doesn't mean we suddenly get shared libraries
7436       # on systems that don't support them.
7437       lt_prog_compiler_can_build_shared=no
7438       enable_shared=no
7439       ;;
7440
7441     sysv4*MP*)
7442       if test -d /usr/nec; then
7443         lt_prog_compiler_pic=-Kconform_pic
7444       fi
7445       ;;
7446
7447     hpux*)
7448       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7449       # not for PA HP-UX.
7450       case $host_cpu in
7451       hppa*64*|ia64*)
7452         # +Z the default
7453         ;;
7454       *)
7455         lt_prog_compiler_pic='-fPIC'
7456         ;;
7457       esac
7458       ;;
7459
7460     *)
7461       lt_prog_compiler_pic='-fPIC'
7462       ;;
7463     esac
7464   else
7465     # PORTME Check for flag to pass linker flags through the system compiler.
7466     case $host_os in
7467     aix*)
7468       lt_prog_compiler_wl='-Wl,'
7469       if test "$host_cpu" = ia64; then
7470         # AIX 5 now supports IA64 processor
7471         lt_prog_compiler_static='-Bstatic'
7472       else
7473         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7474       fi
7475       ;;
7476       darwin*)
7477         # PIC is the default on this platform
7478         # Common symbols not allowed in MH_DYLIB files
7479        case $cc_basename in
7480          xlc*)
7481          lt_prog_compiler_pic='-qnocommon'
7482          lt_prog_compiler_wl='-Wl,'
7483          ;;
7484        esac
7485        ;;
7486
7487     mingw* | pw32* | os2*)
7488       # This hack is so that the source file can tell whether it is being
7489       # built for inclusion in a dll (and should export symbols for example).
7490       lt_prog_compiler_pic='-DDLL_EXPORT'
7491       ;;
7492
7493     hpux9* | hpux10* | hpux11*)
7494       lt_prog_compiler_wl='-Wl,'
7495       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7496       # not for PA HP-UX.
7497       case $host_cpu in
7498       hppa*64*|ia64*)
7499         # +Z the default
7500         ;;
7501       *)
7502         lt_prog_compiler_pic='+Z'
7503         ;;
7504       esac
7505       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7506       lt_prog_compiler_static='${wl}-a ${wl}archive'
7507       ;;
7508
7509     irix5* | irix6* | nonstopux*)
7510       lt_prog_compiler_wl='-Wl,'
7511       # PIC (with -KPIC) is the default.
7512       lt_prog_compiler_static='-non_shared'
7513       ;;
7514
7515     newsos6)
7516       lt_prog_compiler_pic='-KPIC'
7517       lt_prog_compiler_static='-Bstatic'
7518       ;;
7519
7520     linux* | k*bsd*-gnu)
7521       case $cc_basename in
7522       icc* | ecc*)
7523         lt_prog_compiler_wl='-Wl,'
7524         lt_prog_compiler_pic='-KPIC'
7525         lt_prog_compiler_static='-static'
7526         ;;
7527       pgcc* | pgf77* | pgf90* | pgf95*)
7528         # Portland Group compilers (*not* the Pentium gcc compiler,
7529         # which looks to be a dead project)
7530         lt_prog_compiler_wl='-Wl,'
7531         lt_prog_compiler_pic='-fpic'
7532         lt_prog_compiler_static='-Bstatic'
7533         ;;
7534       ccc*)
7535         lt_prog_compiler_wl='-Wl,'
7536         # All Alpha code is PIC.
7537         lt_prog_compiler_static='-non_shared'
7538         ;;
7539       esac
7540       ;;
7541
7542     osf3* | osf4* | osf5*)
7543       lt_prog_compiler_wl='-Wl,'
7544       # All OSF/1 code is PIC.
7545       lt_prog_compiler_static='-non_shared'
7546       ;;
7547
7548     solaris*)
7549       lt_prog_compiler_pic='-KPIC'
7550       lt_prog_compiler_static='-Bstatic'
7551       case $cc_basename in
7552       f77* | f90* | f95*)
7553         lt_prog_compiler_wl='-Qoption ld ';;
7554       *)
7555         lt_prog_compiler_wl='-Wl,';;
7556       esac
7557       ;;
7558
7559     sunos4*)
7560       lt_prog_compiler_wl='-Qoption ld '
7561       lt_prog_compiler_pic='-PIC'
7562       lt_prog_compiler_static='-Bstatic'
7563       ;;
7564
7565     sysv4 | sysv4.2uw2* | sysv4.3*)
7566       lt_prog_compiler_wl='-Wl,'
7567       lt_prog_compiler_pic='-KPIC'
7568       lt_prog_compiler_static='-Bstatic'
7569       ;;
7570
7571     sysv4*MP*)
7572       if test -d /usr/nec ;then
7573         lt_prog_compiler_pic='-Kconform_pic'
7574         lt_prog_compiler_static='-Bstatic'
7575       fi
7576       ;;
7577
7578     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7579       lt_prog_compiler_wl='-Wl,'
7580       lt_prog_compiler_pic='-KPIC'
7581       lt_prog_compiler_static='-Bstatic'
7582       ;;
7583
7584     unicos*)
7585       lt_prog_compiler_wl='-Wl,'
7586       lt_prog_compiler_can_build_shared=no
7587       ;;
7588
7589     uts4*)
7590       lt_prog_compiler_pic='-pic'
7591       lt_prog_compiler_static='-Bstatic'
7592       ;;
7593
7594     *)
7595       lt_prog_compiler_can_build_shared=no
7596       ;;
7597     esac
7598   fi
7599
7600 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7601 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7602
7603 #
7604 # Check to make sure the PIC flag actually works.
7605 #
7606 if test -n "$lt_prog_compiler_pic"; then
7607
7608 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7609 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7610 if test "${lt_prog_compiler_pic_works+set}" = set; then
7611   echo $ECHO_N "(cached) $ECHO_C" >&6
7612 else
7613   lt_prog_compiler_pic_works=no
7614   ac_outfile=conftest.$ac_objext
7615    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7616    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7617    # Insert the option either (1) after the last *FLAGS variable, or
7618    # (2) before a word containing "conftest.", or (3) at the end.
7619    # Note that $ac_compile itself does not contain backslashes and begins
7620    # with a dollar sign (not a hyphen), so the echo should work correctly.
7621    # The option is referenced via a variable to avoid confusing sed.
7622    lt_compile=`echo "$ac_compile" | $SED \
7623    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7624    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7625    -e 's:$: $lt_compiler_flag:'`
7626    (eval echo "\"\$as_me:7626: $lt_compile\"" >&5)
7627    (eval "$lt_compile" 2>conftest.err)
7628    ac_status=$?
7629    cat conftest.err >&5
7630    echo "$as_me:7630: \$? = $ac_status" >&5
7631    if (exit $ac_status) && test -s "$ac_outfile"; then
7632      # The compiler can only warn and ignore the option if not recognized
7633      # So say no if there are warnings other than the usual output.
7634      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7635      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7636      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7637        lt_prog_compiler_pic_works=yes
7638      fi
7639    fi
7640    $rm conftest*
7641
7642 fi
7643 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7644 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7645
7646 if test x"$lt_prog_compiler_pic_works" = xyes; then
7647     case $lt_prog_compiler_pic in
7648      "" | " "*) ;;
7649      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7650      esac
7651 else
7652     lt_prog_compiler_pic=
7653      lt_prog_compiler_can_build_shared=no
7654 fi
7655
7656 fi
7657 case $host_os in
7658   # For platforms which do not support PIC, -DPIC is meaningless:
7659   *djgpp*)
7660     lt_prog_compiler_pic=
7661     ;;
7662   *)
7663     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7664     ;;
7665 esac
7666
7667 #
7668 # Check to make sure the static flag actually works.
7669 #
7670 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7671 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7672 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7673 if test "${lt_prog_compiler_static_works+set}" = set; then
7674   echo $ECHO_N "(cached) $ECHO_C" >&6
7675 else
7676   lt_prog_compiler_static_works=no
7677    save_LDFLAGS="$LDFLAGS"
7678    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7679    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7680    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7681      # The linker can only warn and ignore the option if not recognized
7682      # So say no if there are warnings
7683      if test -s conftest.err; then
7684        # Append any errors to the config.log.
7685        cat conftest.err 1>&5
7686        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7687        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7688        if diff conftest.exp conftest.er2 >/dev/null; then
7689          lt_prog_compiler_static_works=yes
7690        fi
7691      else
7692        lt_prog_compiler_static_works=yes
7693      fi
7694    fi
7695    $rm conftest*
7696    LDFLAGS="$save_LDFLAGS"
7697
7698 fi
7699 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7700 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7701
7702 if test x"$lt_prog_compiler_static_works" = xyes; then
7703     :
7704 else
7705     lt_prog_compiler_static=
7706 fi
7707
7708
7709 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7710 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7711 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7712   echo $ECHO_N "(cached) $ECHO_C" >&6
7713 else
7714   lt_cv_prog_compiler_c_o=no
7715    $rm -r conftest 2>/dev/null
7716    mkdir conftest
7717    cd conftest
7718    mkdir out
7719    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7720
7721    lt_compiler_flag="-o out/conftest2.$ac_objext"
7722    # Insert the option either (1) after the last *FLAGS variable, or
7723    # (2) before a word containing "conftest.", or (3) at the end.
7724    # Note that $ac_compile itself does not contain backslashes and begins
7725    # with a dollar sign (not a hyphen), so the echo should work correctly.
7726    lt_compile=`echo "$ac_compile" | $SED \
7727    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7728    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7729    -e 's:$: $lt_compiler_flag:'`
7730    (eval echo "\"\$as_me:7730: $lt_compile\"" >&5)
7731    (eval "$lt_compile" 2>out/conftest.err)
7732    ac_status=$?
7733    cat out/conftest.err >&5
7734    echo "$as_me:7734: \$? = $ac_status" >&5
7735    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7736    then
7737      # The compiler can only warn and ignore the option if not recognized
7738      # So say no if there are warnings
7739      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7740      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7741      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7742        lt_cv_prog_compiler_c_o=yes
7743      fi
7744    fi
7745    chmod u+w . 2>&5
7746    $rm conftest*
7747    # SGI C++ compiler will create directory out/ii_files/ for
7748    # template instantiation
7749    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7750    $rm out/* && rmdir out
7751    cd ..
7752    rmdir conftest
7753    $rm conftest*
7754
7755 fi
7756 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7757 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7758
7759
7760 hard_links="nottested"
7761 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7762   # do not overwrite the value of need_locks provided by the user
7763   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7764 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7765   hard_links=yes
7766   $rm conftest*
7767   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7768   touch conftest.a
7769   ln conftest.a conftest.b 2>&5 || hard_links=no
7770   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7771   { echo "$as_me:$LINENO: result: $hard_links" >&5
7772 echo "${ECHO_T}$hard_links" >&6; }
7773   if test "$hard_links" = no; then
7774     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7775 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7776     need_locks=warn
7777   fi
7778 else
7779   need_locks=no
7780 fi
7781
7782 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7783 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7784
7785   runpath_var=
7786   allow_undefined_flag=
7787   enable_shared_with_static_runtimes=no
7788   archive_cmds=
7789   archive_expsym_cmds=
7790   old_archive_From_new_cmds=
7791   old_archive_from_expsyms_cmds=
7792   export_dynamic_flag_spec=
7793   whole_archive_flag_spec=
7794   thread_safe_flag_spec=
7795   hardcode_libdir_flag_spec=
7796   hardcode_libdir_flag_spec_ld=
7797   hardcode_libdir_separator=
7798   hardcode_direct=no
7799   hardcode_minus_L=no
7800   hardcode_shlibpath_var=unsupported
7801   link_all_deplibs=unknown
7802   hardcode_automatic=no
7803   module_cmds=
7804   module_expsym_cmds=
7805   always_export_symbols=no
7806   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7807   # include_expsyms should be a list of space-separated symbols to be *always*
7808   # included in the symbol list
7809   include_expsyms=
7810   # exclude_expsyms can be an extended regexp of symbols to exclude
7811   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7812   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7813   # as well as any symbol that contains `d'.
7814   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7815   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7816   # platforms (ab)use it in PIC code, but their linkers get confused if
7817   # the symbol is explicitly referenced.  Since portable code cannot
7818   # rely on this symbol name, it's probably fine to never include it in
7819   # preloaded symbol tables.
7820   extract_expsyms_cmds=
7821   # Just being paranoid about ensuring that cc_basename is set.
7822   for cc_temp in $compiler""; do
7823   case $cc_temp in
7824     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7825     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7826     \-*) ;;
7827     *) break;;
7828   esac
7829 done
7830 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7831
7832   case $host_os in
7833   cygwin* | mingw* | pw32*)
7834     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7835     # When not using gcc, we currently assume that we are using
7836     # Microsoft Visual C++.
7837     if test "$GCC" != yes; then
7838       with_gnu_ld=no
7839     fi
7840     ;;
7841   interix*)
7842     # we just hope/assume this is gcc and not c89 (= MSVC++)
7843     with_gnu_ld=yes
7844     ;;
7845   openbsd*)
7846     with_gnu_ld=no
7847     ;;
7848   esac
7849
7850   ld_shlibs=yes
7851   if test "$with_gnu_ld" = yes; then
7852     # If archive_cmds runs LD, not CC, wlarc should be empty
7853     wlarc='${wl}'
7854
7855     # Set some defaults for GNU ld with shared library support. These
7856     # are reset later if shared libraries are not supported. Putting them
7857     # here allows them to be overridden if necessary.
7858     runpath_var=LD_RUN_PATH
7859     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7860     export_dynamic_flag_spec='${wl}--export-dynamic'
7861     # ancient GNU ld didn't support --whole-archive et. al.
7862     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7863         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7864       else
7865         whole_archive_flag_spec=
7866     fi
7867     supports_anon_versioning=no
7868     case `$LD -v 2>/dev/null` in
7869       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7870       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7871       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7872       *\ 2.11.*) ;; # other 2.11 versions
7873       *) supports_anon_versioning=yes ;;
7874     esac
7875
7876     # See if GNU ld supports shared libraries.
7877     case $host_os in
7878     aix3* | aix4* | aix5*)
7879       # On AIX/PPC, the GNU linker is very broken
7880       if test "$host_cpu" != ia64; then
7881         ld_shlibs=no
7882         cat <<EOF 1>&2
7883
7884 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7885 *** to be unable to reliably create shared libraries on AIX.
7886 *** Therefore, libtool is disabling shared libraries support.  If you
7887 *** really care for shared libraries, you may want to modify your PATH
7888 *** so that a non-GNU linker is found, and then restart.
7889
7890 EOF
7891       fi
7892       ;;
7893
7894     amigaos*)
7895       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)'
7896       hardcode_libdir_flag_spec='-L$libdir'
7897       hardcode_minus_L=yes
7898
7899       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7900       # that the semantics of dynamic libraries on AmigaOS, at least up
7901       # to version 4, is to share data among multiple programs linked
7902       # with the same dynamic library.  Since this doesn't match the
7903       # behavior of shared libraries on other platforms, we can't use
7904       # them.
7905       ld_shlibs=no
7906       ;;
7907
7908     beos*)
7909       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7910         allow_undefined_flag=unsupported
7911         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7912         # support --undefined.  This deserves some investigation.  FIXME
7913         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7914       else
7915         ld_shlibs=no
7916       fi
7917       ;;
7918
7919     cygwin* | mingw* | pw32*)
7920       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7921       # as there is no search path for DLLs.
7922       hardcode_libdir_flag_spec='-L$libdir'
7923       allow_undefined_flag=unsupported
7924       always_export_symbols=no
7925       enable_shared_with_static_runtimes=yes
7926       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7927
7928       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7929         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7930         # If the export-symbols file already is a .def file (1st line
7931         # is EXPORTS), use it as is; otherwise, prepend...
7932         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7933           cp $export_symbols $output_objdir/$soname.def;
7934         else
7935           echo EXPORTS > $output_objdir/$soname.def;
7936           cat $export_symbols >> $output_objdir/$soname.def;
7937         fi~
7938         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7939       else
7940         ld_shlibs=no
7941       fi
7942       ;;
7943
7944     interix3*)
7945       hardcode_direct=no
7946       hardcode_shlibpath_var=no
7947       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7948       export_dynamic_flag_spec='${wl}-E'
7949       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7950       # Instead, shared libraries are loaded at an image base (0x10000000 by
7951       # default) and relocated if they conflict, which is a slow very memory
7952       # consuming and fragmenting process.  To avoid this, we pick a random,
7953       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7954       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7955       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7956       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7957       ;;
7958
7959     linux* | k*bsd*-gnu)
7960       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7961         tmp_addflag=
7962         case $cc_basename,$host_cpu in
7963         pgcc*)                          # Portland Group C compiler
7964           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7965           tmp_addflag=' $pic_flag'
7966           ;;
7967         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7968           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7969           tmp_addflag=' $pic_flag -Mnomain' ;;
7970         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7971           tmp_addflag=' -i_dynamic' ;;
7972         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7973           tmp_addflag=' -i_dynamic -nofor_main' ;;
7974         ifc* | ifort*)                  # Intel Fortran compiler
7975           tmp_addflag=' -nofor_main' ;;
7976         esac
7977         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7978
7979         if test $supports_anon_versioning = yes; then
7980           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7981   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7982   $echo "local: *; };" >> $output_objdir/$libname.ver~
7983           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7984         fi
7985         link_all_deplibs=no
7986       else
7987         ld_shlibs=no
7988       fi
7989       ;;
7990
7991     netbsd* | netbsdelf*-gnu)
7992       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7993         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7994         wlarc=
7995       else
7996         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7997         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7998       fi
7999       ;;
8000
8001     solaris*)
8002       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8003         ld_shlibs=no
8004         cat <<EOF 1>&2
8005
8006 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8007 *** create shared libraries on Solaris systems.  Therefore, libtool
8008 *** is disabling shared libraries support.  We urge you to upgrade GNU
8009 *** binutils to release 2.9.1 or newer.  Another option is to modify
8010 *** your PATH or compiler configuration so that the native linker is
8011 *** used, and then restart.
8012
8013 EOF
8014       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8015         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8016         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8017       else
8018         ld_shlibs=no
8019       fi
8020       ;;
8021
8022     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8023       case `$LD -v 2>&1` in
8024         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8025         ld_shlibs=no
8026         cat <<_LT_EOF 1>&2
8027
8028 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8029 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8030 *** is disabling shared libraries support.  We urge you to upgrade GNU
8031 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8032 *** your PATH or compiler configuration so that the native linker is
8033 *** used, and then restart.
8034
8035 _LT_EOF
8036         ;;
8037         *)
8038           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8039             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8040             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8041             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8042           else
8043             ld_shlibs=no
8044           fi
8045         ;;
8046       esac
8047       ;;
8048
8049     sunos4*)
8050       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8051       wlarc=
8052       hardcode_direct=yes
8053       hardcode_shlibpath_var=no
8054       ;;
8055
8056     *)
8057       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8058         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8059         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8060       else
8061         ld_shlibs=no
8062       fi
8063       ;;
8064     esac
8065
8066     if test "$ld_shlibs" = no; then
8067       runpath_var=
8068       hardcode_libdir_flag_spec=
8069       export_dynamic_flag_spec=
8070       whole_archive_flag_spec=
8071     fi
8072   else
8073     # PORTME fill in a description of your system's linker (not GNU ld)
8074     case $host_os in
8075     aix3*)
8076       allow_undefined_flag=unsupported
8077       always_export_symbols=yes
8078       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'
8079       # Note: this linker hardcodes the directories in LIBPATH if there
8080       # are no directories specified by -L.
8081       hardcode_minus_L=yes
8082       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8083         # Neither direct hardcoding nor static linking is supported with a
8084         # broken collect2.
8085         hardcode_direct=unsupported
8086       fi
8087       ;;
8088
8089     aix4* | aix5*)
8090       if test "$host_cpu" = ia64; then
8091         # On IA64, the linker does run time linking by default, so we don't
8092         # have to do anything special.
8093         aix_use_runtimelinking=no
8094         exp_sym_flag='-Bexport'
8095         no_entry_flag=""
8096       else
8097         # If we're using GNU nm, then we don't want the "-C" option.
8098         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8099         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8100           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8101         else
8102           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8103         fi
8104         aix_use_runtimelinking=no
8105
8106         # Test if we are trying to use run time linking or normal
8107         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8108         # need to do runtime linking.
8109         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8110           for ld_flag in $LDFLAGS; do
8111           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8112             aix_use_runtimelinking=yes
8113             break
8114           fi
8115           done
8116           ;;
8117         esac
8118
8119         exp_sym_flag='-bexport'
8120         no_entry_flag='-bnoentry'
8121       fi
8122
8123       # When large executables or shared objects are built, AIX ld can
8124       # have problems creating the table of contents.  If linking a library
8125       # or program results in "error TOC overflow" add -mminimal-toc to
8126       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8127       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8128
8129       archive_cmds=''
8130       hardcode_direct=yes
8131       hardcode_libdir_separator=':'
8132       link_all_deplibs=yes
8133
8134       if test "$GCC" = yes; then
8135         case $host_os in aix4.[012]|aix4.[012].*)
8136         # We only want to do this on AIX 4.2 and lower, the check
8137         # below for broken collect2 doesn't work under 4.3+
8138           collect2name=`${CC} -print-prog-name=collect2`
8139           if test -f "$collect2name" && \
8140            strings "$collect2name" | grep resolve_lib_name >/dev/null
8141           then
8142           # We have reworked collect2
8143           hardcode_direct=yes
8144           else
8145           # We have old collect2
8146           hardcode_direct=unsupported
8147           # It fails to find uninstalled libraries when the uninstalled
8148           # path is not listed in the libpath.  Setting hardcode_minus_L
8149           # to unsupported forces relinking
8150           hardcode_minus_L=yes
8151           hardcode_libdir_flag_spec='-L$libdir'
8152           hardcode_libdir_separator=
8153           fi
8154           ;;
8155         esac
8156         shared_flag='-shared'
8157         if test "$aix_use_runtimelinking" = yes; then
8158           shared_flag="$shared_flag "'${wl}-G'
8159         fi
8160       else
8161         # not using gcc
8162         if test "$host_cpu" = ia64; then
8163         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8164         # chokes on -Wl,-G. The following line is correct:
8165           shared_flag='-G'
8166         else
8167           if test "$aix_use_runtimelinking" = yes; then
8168             shared_flag='${wl}-G'
8169           else
8170             shared_flag='${wl}-bM:SRE'
8171           fi
8172         fi
8173       fi
8174
8175       # It seems that -bexpall does not export symbols beginning with
8176       # underscore (_), so it is better to generate a list of symbols to export.
8177       always_export_symbols=yes
8178       if test "$aix_use_runtimelinking" = yes; then
8179         # Warning - without using the other runtime loading flags (-brtl),
8180         # -berok will link without error, but may produce a broken library.
8181         allow_undefined_flag='-berok'
8182        # Determine the default libpath from the value encoded in an empty executable.
8183        cat >conftest.$ac_ext <<_ACEOF
8184 /* confdefs.h.  */
8185 _ACEOF
8186 cat confdefs.h >>conftest.$ac_ext
8187 cat >>conftest.$ac_ext <<_ACEOF
8188 /* end confdefs.h.  */
8189
8190 int
8191 main ()
8192 {
8193
8194   ;
8195   return 0;
8196 }
8197 _ACEOF
8198 rm -f conftest.$ac_objext conftest$ac_exeext
8199 if { (ac_try="$ac_link"
8200 case "(($ac_try" in
8201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202   *) ac_try_echo=$ac_try;;
8203 esac
8204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8205   (eval "$ac_link") 2>conftest.er1
8206   ac_status=$?
8207   grep -v '^ *+' conftest.er1 >conftest.err
8208   rm -f conftest.er1
8209   cat conftest.err >&5
8210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211   (exit $ac_status); } && {
8212          test -z "$ac_c_werror_flag" ||
8213          test ! -s conftest.err
8214        } && test -s conftest$ac_exeext &&
8215        $as_test_x conftest$ac_exeext; then
8216
8217 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8218 }'`
8219 # Check for a 64-bit object if we didn't find anything.
8220 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8221 }'`; fi
8222 else
8223   echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8225
8226
8227 fi
8228
8229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8230       conftest$ac_exeext conftest.$ac_ext
8231 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8232
8233        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8234         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8235        else
8236         if test "$host_cpu" = ia64; then
8237           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8238           allow_undefined_flag="-z nodefs"
8239           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8240         else
8241          # Determine the default libpath from the value encoded in an empty executable.
8242          cat >conftest.$ac_ext <<_ACEOF
8243 /* confdefs.h.  */
8244 _ACEOF
8245 cat confdefs.h >>conftest.$ac_ext
8246 cat >>conftest.$ac_ext <<_ACEOF
8247 /* end confdefs.h.  */
8248
8249 int
8250 main ()
8251 {
8252
8253   ;
8254   return 0;
8255 }
8256 _ACEOF
8257 rm -f conftest.$ac_objext conftest$ac_exeext
8258 if { (ac_try="$ac_link"
8259 case "(($ac_try" in
8260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8261   *) ac_try_echo=$ac_try;;
8262 esac
8263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8264   (eval "$ac_link") 2>conftest.er1
8265   ac_status=$?
8266   grep -v '^ *+' conftest.er1 >conftest.err
8267   rm -f conftest.er1
8268   cat conftest.err >&5
8269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270   (exit $ac_status); } && {
8271          test -z "$ac_c_werror_flag" ||
8272          test ! -s conftest.err
8273        } && test -s conftest$ac_exeext &&
8274        $as_test_x conftest$ac_exeext; then
8275
8276 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8277 }'`
8278 # Check for a 64-bit object if we didn't find anything.
8279 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8280 }'`; fi
8281 else
8282   echo "$as_me: failed program was:" >&5
8283 sed 's/^/| /' conftest.$ac_ext >&5
8284
8285
8286 fi
8287
8288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8289       conftest$ac_exeext conftest.$ac_ext
8290 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8291
8292          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8293           # Warning - without using the other run time loading flags,
8294           # -berok will link without error, but may produce a broken library.
8295           no_undefined_flag=' ${wl}-bernotok'
8296           allow_undefined_flag=' ${wl}-berok'
8297           # Exported symbols can be pulled into shared objects from archives
8298           whole_archive_flag_spec='$convenience'
8299           archive_cmds_need_lc=yes
8300           # This is similar to how AIX traditionally builds its shared libraries.
8301           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8302         fi
8303       fi
8304       ;;
8305
8306     amigaos*)
8307       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)'
8308       hardcode_libdir_flag_spec='-L$libdir'
8309       hardcode_minus_L=yes
8310       # see comment about different semantics on the GNU ld section
8311       ld_shlibs=no
8312       ;;
8313
8314     bsdi[45]*)
8315       export_dynamic_flag_spec=-rdynamic
8316       ;;
8317
8318     cygwin* | mingw* | pw32*)
8319       # When not using gcc, we currently assume that we are using
8320       # Microsoft Visual C++.
8321       # hardcode_libdir_flag_spec is actually meaningless, as there is
8322       # no search path for DLLs.
8323       hardcode_libdir_flag_spec=' '
8324       allow_undefined_flag=unsupported
8325       # Tell ltmain to make .lib files, not .a files.
8326       libext=lib
8327       # Tell ltmain to make .dll files, not .so files.
8328       shrext_cmds=".dll"
8329       # FIXME: Setting linknames here is a bad hack.
8330       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8331       # The linker will automatically build a .lib file if we build a DLL.
8332       old_archive_From_new_cmds='true'
8333       # FIXME: Should let the user specify the lib program.
8334       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8335       fix_srcfile_path='`cygpath -w "$srcfile"`'
8336       enable_shared_with_static_runtimes=yes
8337       ;;
8338
8339     darwin* | rhapsody*)
8340       case $host_os in
8341         rhapsody* | darwin1.[012])
8342          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8343          ;;
8344        *) # Darwin 1.3 on
8345          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8346            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8347          else
8348            case ${MACOSX_DEPLOYMENT_TARGET} in
8349              10.[012])
8350                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8351                ;;
8352              10.*)
8353                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8354                ;;
8355            esac
8356          fi
8357          ;;
8358       esac
8359       archive_cmds_need_lc=no
8360       hardcode_direct=no
8361       hardcode_automatic=yes
8362       hardcode_shlibpath_var=unsupported
8363       whole_archive_flag_spec=''
8364       link_all_deplibs=yes
8365     if test "$GCC" = yes ; then
8366         output_verbose_link_cmd='echo'
8367         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8368       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8369       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8370       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8371       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8372     else
8373       case $cc_basename in
8374         xlc*)
8375          output_verbose_link_cmd='echo'
8376          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8377          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8378           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8379          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8380           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8381           ;;
8382        *)
8383          ld_shlibs=no
8384           ;;
8385       esac
8386     fi
8387       ;;
8388
8389     dgux*)
8390       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8391       hardcode_libdir_flag_spec='-L$libdir'
8392       hardcode_shlibpath_var=no
8393       ;;
8394
8395     freebsd1*)
8396       ld_shlibs=no
8397       ;;
8398
8399     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8400     # support.  Future versions do this automatically, but an explicit c++rt0.o
8401     # does not break anything, and helps significantly (at the cost of a little
8402     # extra space).
8403     freebsd2.2*)
8404       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8405       hardcode_libdir_flag_spec='-R$libdir'
8406       hardcode_direct=yes
8407       hardcode_shlibpath_var=no
8408       ;;
8409
8410     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8411     freebsd2*)
8412       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8413       hardcode_direct=yes
8414       hardcode_minus_L=yes
8415       hardcode_shlibpath_var=no
8416       ;;
8417
8418     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8419     freebsd* | dragonfly*)
8420       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8421       hardcode_libdir_flag_spec='-R$libdir'
8422       hardcode_direct=yes
8423       hardcode_shlibpath_var=no
8424       ;;
8425
8426     hpux9*)
8427       if test "$GCC" = yes; then
8428         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8429       else
8430         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'
8431       fi
8432       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8433       hardcode_libdir_separator=:
8434       hardcode_direct=yes
8435
8436       # hardcode_minus_L: Not really in the search PATH,
8437       # but as the default location of the library.
8438       hardcode_minus_L=yes
8439       export_dynamic_flag_spec='${wl}-E'
8440       ;;
8441
8442     hpux10*)
8443       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8444         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8445       else
8446         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8447       fi
8448       if test "$with_gnu_ld" = no; then
8449         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8450         hardcode_libdir_separator=:
8451
8452         hardcode_direct=yes
8453         export_dynamic_flag_spec='${wl}-E'
8454
8455         # hardcode_minus_L: Not really in the search PATH,
8456         # but as the default location of the library.
8457         hardcode_minus_L=yes
8458       fi
8459       ;;
8460
8461     hpux11*)
8462       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8463         case $host_cpu in
8464         hppa*64*)
8465           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8466           ;;
8467         ia64*)
8468           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8469           ;;
8470         *)
8471           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8472           ;;
8473         esac
8474       else
8475         case $host_cpu in
8476         hppa*64*)
8477           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8478           ;;
8479         ia64*)
8480           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8481           ;;
8482         *)
8483           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8484           ;;
8485         esac
8486       fi
8487       if test "$with_gnu_ld" = no; then
8488         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8489         hardcode_libdir_separator=:
8490
8491         case $host_cpu in
8492         hppa*64*|ia64*)
8493           hardcode_libdir_flag_spec_ld='+b $libdir'
8494           hardcode_direct=no
8495           hardcode_shlibpath_var=no
8496           ;;
8497         *)
8498           hardcode_direct=yes
8499           export_dynamic_flag_spec='${wl}-E'
8500
8501           # hardcode_minus_L: Not really in the search PATH,
8502           # but as the default location of the library.
8503           hardcode_minus_L=yes
8504           ;;
8505         esac
8506       fi
8507       ;;
8508
8509     irix5* | irix6* | nonstopux*)
8510       if test "$GCC" = yes; then
8511         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'
8512       else
8513         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'
8514         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8515       fi
8516       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8517       hardcode_libdir_separator=:
8518       link_all_deplibs=yes
8519       ;;
8520
8521     netbsd* | netbsdelf*-gnu)
8522       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8523         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8524       else
8525         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8526       fi
8527       hardcode_libdir_flag_spec='-R$libdir'
8528       hardcode_direct=yes
8529       hardcode_shlibpath_var=no
8530       ;;
8531
8532     newsos6)
8533       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8534       hardcode_direct=yes
8535       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8536       hardcode_libdir_separator=:
8537       hardcode_shlibpath_var=no
8538       ;;
8539
8540     openbsd*)
8541       hardcode_direct=yes
8542       hardcode_shlibpath_var=no
8543       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8544         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8545         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8546         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8547         export_dynamic_flag_spec='${wl}-E'
8548       else
8549        case $host_os in
8550          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8551            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8552            hardcode_libdir_flag_spec='-R$libdir'
8553            ;;
8554          *)
8555            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8556            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8557            ;;
8558        esac
8559       fi
8560       ;;
8561
8562     os2*)
8563       hardcode_libdir_flag_spec='-L$libdir'
8564       hardcode_minus_L=yes
8565       allow_undefined_flag=unsupported
8566       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'
8567       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8568       ;;
8569
8570     osf3*)
8571       if test "$GCC" = yes; then
8572         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8573         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'
8574       else
8575         allow_undefined_flag=' -expect_unresolved \*'
8576         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'
8577       fi
8578       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8579       hardcode_libdir_separator=:
8580       ;;
8581
8582     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8583       if test "$GCC" = yes; then
8584         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8585         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'
8586         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8587       else
8588         allow_undefined_flag=' -expect_unresolved \*'
8589         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'
8590         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8591         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8592
8593         # Both c and cxx compiler support -rpath directly
8594         hardcode_libdir_flag_spec='-rpath $libdir'
8595       fi
8596       hardcode_libdir_separator=:
8597       ;;
8598
8599     solaris*)
8600       no_undefined_flag=' -z text'
8601       if test "$GCC" = yes; then
8602         wlarc='${wl}'
8603         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8604         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8605           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8606       else
8607         wlarc=''
8608         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8609         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8610         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8611       fi
8612       hardcode_libdir_flag_spec='-R$libdir'
8613       hardcode_shlibpath_var=no
8614       case $host_os in
8615       solaris2.[0-5] | solaris2.[0-5].*) ;;
8616       *)
8617         # The compiler driver will combine linker options so we
8618         # cannot just pass the convience library names through
8619         # without $wl, iff we do not link with $LD.
8620         # Luckily, gcc supports the same syntax we need for Sun Studio.
8621         # Supported since Solaris 2.6 (maybe 2.5.1?)
8622         case $wlarc in
8623         '')
8624           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8625         *)
8626           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8627         esac ;;
8628       esac
8629       link_all_deplibs=yes
8630       ;;
8631
8632     sunos4*)
8633       if test "x$host_vendor" = xsequent; then
8634         # Use $CC to link under sequent, because it throws in some extra .o
8635         # files that make .init and .fini sections work.
8636         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8637       else
8638         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8639       fi
8640       hardcode_libdir_flag_spec='-L$libdir'
8641       hardcode_direct=yes
8642       hardcode_minus_L=yes
8643       hardcode_shlibpath_var=no
8644       ;;
8645
8646     sysv4)
8647       case $host_vendor in
8648         sni)
8649           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8650           hardcode_direct=yes # is this really true???
8651         ;;
8652         siemens)
8653           ## LD is ld it makes a PLAMLIB
8654           ## CC just makes a GrossModule.
8655           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8656           reload_cmds='$CC -r -o $output$reload_objs'
8657           hardcode_direct=no
8658         ;;
8659         motorola)
8660           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8661           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8662         ;;
8663       esac
8664       runpath_var='LD_RUN_PATH'
8665       hardcode_shlibpath_var=no
8666       ;;
8667
8668     sysv4.3*)
8669       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8670       hardcode_shlibpath_var=no
8671       export_dynamic_flag_spec='-Bexport'
8672       ;;
8673
8674     sysv4*MP*)
8675       if test -d /usr/nec; then
8676         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8677         hardcode_shlibpath_var=no
8678         runpath_var=LD_RUN_PATH
8679         hardcode_runpath_var=yes
8680         ld_shlibs=yes
8681       fi
8682       ;;
8683
8684     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8685       no_undefined_flag='${wl}-z,text'
8686       archive_cmds_need_lc=no
8687       hardcode_shlibpath_var=no
8688       runpath_var='LD_RUN_PATH'
8689
8690       if test "$GCC" = yes; then
8691         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8692         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8693       else
8694         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8695         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8696       fi
8697       ;;
8698
8699     sysv5* | sco3.2v5* | sco5v6*)
8700       # Note: We can NOT use -z defs as we might desire, because we do not
8701       # link with -lc, and that would cause any symbols used from libc to
8702       # always be unresolved, which means just about no library would
8703       # ever link correctly.  If we're not using GNU ld we use -z text
8704       # though, which does catch some bad symbols but isn't as heavy-handed
8705       # as -z defs.
8706       no_undefined_flag='${wl}-z,text'
8707       allow_undefined_flag='${wl}-z,nodefs'
8708       archive_cmds_need_lc=no
8709       hardcode_shlibpath_var=no
8710       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8711       hardcode_libdir_separator=':'
8712       link_all_deplibs=yes
8713       export_dynamic_flag_spec='${wl}-Bexport'
8714       runpath_var='LD_RUN_PATH'
8715
8716       if test "$GCC" = yes; then
8717         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8718         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8719       else
8720         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8721         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8722       fi
8723       ;;
8724
8725     uts4*)
8726       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8727       hardcode_libdir_flag_spec='-L$libdir'
8728       hardcode_shlibpath_var=no
8729       ;;
8730
8731     *)
8732       ld_shlibs=no
8733       ;;
8734     esac
8735   fi
8736
8737 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8738 echo "${ECHO_T}$ld_shlibs" >&6; }
8739 test "$ld_shlibs" = no && can_build_shared=no
8740
8741 #
8742 # Do we need to explicitly link libc?
8743 #
8744 case "x$archive_cmds_need_lc" in
8745 x|xyes)
8746   # Assume -lc should be added
8747   archive_cmds_need_lc=yes
8748
8749   if test "$enable_shared" = yes && test "$GCC" = yes; then
8750     case $archive_cmds in
8751     *'~'*)
8752       # FIXME: we may have to deal with multi-command sequences.
8753       ;;
8754     '$CC '*)
8755       # Test whether the compiler implicitly links with -lc since on some
8756       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8757       # to ld, don't add -lc before -lgcc.
8758       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8759 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8760       $rm conftest*
8761       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8762
8763       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8764   (eval $ac_compile) 2>&5
8765   ac_status=$?
8766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767   (exit $ac_status); } 2>conftest.err; then
8768         soname=conftest
8769         lib=conftest
8770         libobjs=conftest.$ac_objext
8771         deplibs=
8772         wl=$lt_prog_compiler_wl
8773         pic_flag=$lt_prog_compiler_pic
8774         compiler_flags=-v
8775         linker_flags=-v
8776         verstring=
8777         output_objdir=.
8778         libname=conftest
8779         lt_save_allow_undefined_flag=$allow_undefined_flag
8780         allow_undefined_flag=
8781         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8782   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8783   ac_status=$?
8784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785   (exit $ac_status); }
8786         then
8787           archive_cmds_need_lc=no
8788         else
8789           archive_cmds_need_lc=yes
8790         fi
8791         allow_undefined_flag=$lt_save_allow_undefined_flag
8792       else
8793         cat conftest.err 1>&5
8794       fi
8795       $rm conftest*
8796       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8797 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8798       ;;
8799     esac
8800   fi
8801   ;;
8802 esac
8803
8804 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8805 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8806 library_names_spec=
8807 libname_spec='lib$name'
8808 soname_spec=
8809 shrext_cmds=".so"
8810 postinstall_cmds=
8811 postuninstall_cmds=
8812 finish_cmds=
8813 finish_eval=
8814 shlibpath_var=
8815 shlibpath_overrides_runpath=unknown
8816 version_type=none
8817 dynamic_linker="$host_os ld.so"
8818 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8819 if test "$GCC" = yes; then
8820   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8821   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8822     # if the path contains ";" then we assume it to be the separator
8823     # otherwise default to the standard path separator (i.e. ":") - it is
8824     # assumed that no part of a normal pathname contains ";" but that should
8825     # okay in the real world where ";" in dirpaths is itself problematic.
8826     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8827   else
8828     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8829   fi
8830 else
8831   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8832 fi
8833 need_lib_prefix=unknown
8834 hardcode_into_libs=no
8835
8836 # when you set need_version to no, make sure it does not cause -set_version
8837 # flags to be left without arguments
8838 need_version=unknown
8839
8840 case $host_os in
8841 aix3*)
8842   version_type=linux
8843   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8844   shlibpath_var=LIBPATH
8845
8846   # AIX 3 has no versioning support, so we append a major version to the name.
8847   soname_spec='${libname}${release}${shared_ext}$major'
8848   ;;
8849
8850 aix4* | aix5*)
8851   version_type=linux
8852   need_lib_prefix=no
8853   need_version=no
8854   hardcode_into_libs=yes
8855   if test "$host_cpu" = ia64; then
8856     # AIX 5 supports IA64
8857     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8858     shlibpath_var=LD_LIBRARY_PATH
8859   else
8860     # With GCC up to 2.95.x, collect2 would create an import file
8861     # for dependence libraries.  The import file would start with
8862     # the line `#! .'.  This would cause the generated library to
8863     # depend on `.', always an invalid library.  This was fixed in
8864     # development snapshots of GCC prior to 3.0.
8865     case $host_os in
8866       aix4 | aix4.[01] | aix4.[01].*)
8867       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8868            echo ' yes '
8869            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8870         :
8871       else
8872         can_build_shared=no
8873       fi
8874       ;;
8875     esac
8876     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8877     # soname into executable. Probably we can add versioning support to
8878     # collect2, so additional links can be useful in future.
8879     if test "$aix_use_runtimelinking" = yes; then
8880       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8881       # instead of lib<name>.a to let people know that these are not
8882       # typical AIX shared libraries.
8883       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8884     else
8885       # We preserve .a as extension for shared libraries through AIX4.2
8886       # and later when we are not doing run time linking.
8887       library_names_spec='${libname}${release}.a $libname.a'
8888       soname_spec='${libname}${release}${shared_ext}$major'
8889     fi
8890     shlibpath_var=LIBPATH
8891   fi
8892   ;;
8893
8894 amigaos*)
8895   library_names_spec='$libname.ixlibrary $libname.a'
8896   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8897   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'
8898   ;;
8899
8900 beos*)
8901   library_names_spec='${libname}${shared_ext}'
8902   dynamic_linker="$host_os ld.so"
8903   shlibpath_var=LIBRARY_PATH
8904   ;;
8905
8906 bsdi[45]*)
8907   version_type=linux
8908   need_version=no
8909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8910   soname_spec='${libname}${release}${shared_ext}$major'
8911   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8912   shlibpath_var=LD_LIBRARY_PATH
8913   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8914   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8915   # the default ld.so.conf also contains /usr/contrib/lib and
8916   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8917   # libtool to hard-code these into programs
8918   ;;
8919
8920 cygwin* | mingw* | pw32*)
8921   version_type=windows
8922   shrext_cmds=".dll"
8923   need_version=no
8924   need_lib_prefix=no
8925
8926   case $GCC,$host_os in
8927   yes,cygwin* | yes,mingw* | yes,pw32*)
8928     library_names_spec='$libname.dll.a'
8929     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8930     postinstall_cmds='base_file=`basename \${file}`~
8931       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8932       dldir=$destdir/`dirname \$dlpath`~
8933       test -d \$dldir || mkdir -p \$dldir~
8934       $install_prog $dir/$dlname \$dldir/$dlname~
8935       chmod a+x \$dldir/$dlname'
8936     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8937       dlpath=$dir/\$dldll~
8938        $rm \$dlpath'
8939     shlibpath_overrides_runpath=yes
8940
8941     case $host_os in
8942     cygwin*)
8943       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8944       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8945       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8946       ;;
8947     mingw*)
8948       # MinGW DLLs use traditional 'lib' prefix
8949       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8950       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8951       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8952         # It is most probably a Windows format PATH printed by
8953         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8954         # path with ; separators, and with drive letters. We can handle the
8955         # drive letters (cygwin fileutils understands them), so leave them,
8956         # especially as we might pass files found there to a mingw objdump,
8957         # which wouldn't understand a cygwinified path. Ahh.
8958         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8959       else
8960         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8961       fi
8962       ;;
8963     pw32*)
8964       # pw32 DLLs use 'pw' prefix rather than 'lib'
8965       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8966       ;;
8967     esac
8968     ;;
8969
8970   *)
8971     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8972     ;;
8973   esac
8974   dynamic_linker='Win32 ld.exe'
8975   # FIXME: first we should search . and the directory the executable is in
8976   shlibpath_var=PATH
8977   ;;
8978
8979 darwin* | rhapsody*)
8980   dynamic_linker="$host_os dyld"
8981   version_type=darwin
8982   need_lib_prefix=no
8983   need_version=no
8984   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8985   soname_spec='${libname}${release}${major}$shared_ext'
8986   shlibpath_overrides_runpath=yes
8987   shlibpath_var=DYLD_LIBRARY_PATH
8988   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8989   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8990   if test "$GCC" = yes; then
8991     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8992   else
8993     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8994   fi
8995   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8996   ;;
8997
8998 dgux*)
8999   version_type=linux
9000   need_lib_prefix=no
9001   need_version=no
9002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9003   soname_spec='${libname}${release}${shared_ext}$major'
9004   shlibpath_var=LD_LIBRARY_PATH
9005   ;;
9006
9007 freebsd1*)
9008   dynamic_linker=no
9009   ;;
9010
9011 freebsd* | dragonfly*)
9012   # DragonFly does not have aout.  When/if they implement a new
9013   # versioning mechanism, adjust this.
9014   if test -x /usr/bin/objformat; then
9015     objformat=`/usr/bin/objformat`
9016   else
9017     case $host_os in
9018     freebsd[123]*) objformat=aout ;;
9019     *) objformat=elf ;;
9020     esac
9021   fi
9022   version_type=freebsd-$objformat
9023   case $version_type in
9024     freebsd-elf*)
9025       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9026       need_version=no
9027       need_lib_prefix=no
9028       ;;
9029     freebsd-*)
9030       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9031       need_version=yes
9032       ;;
9033   esac
9034   shlibpath_var=LD_LIBRARY_PATH
9035   case $host_os in
9036   freebsd2*)
9037     shlibpath_overrides_runpath=yes
9038     ;;
9039   freebsd3.[01]* | freebsdelf3.[01]*)
9040     shlibpath_overrides_runpath=yes
9041     hardcode_into_libs=yes
9042     ;;
9043   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9044   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9045     shlibpath_overrides_runpath=no
9046     hardcode_into_libs=yes
9047     ;;
9048   freebsd*) # from 4.6 on
9049     shlibpath_overrides_runpath=yes
9050     hardcode_into_libs=yes
9051     ;;
9052   esac
9053   ;;
9054
9055 gnu*)
9056   version_type=linux
9057   need_lib_prefix=no
9058   need_version=no
9059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9060   soname_spec='${libname}${release}${shared_ext}$major'
9061   shlibpath_var=LD_LIBRARY_PATH
9062   hardcode_into_libs=yes
9063   ;;
9064
9065 hpux9* | hpux10* | hpux11*)
9066   # Give a soname corresponding to the major version so that dld.sl refuses to
9067   # link against other versions.
9068   version_type=sunos
9069   need_lib_prefix=no
9070   need_version=no
9071   case $host_cpu in
9072   ia64*)
9073     shrext_cmds='.so'
9074     hardcode_into_libs=yes
9075     dynamic_linker="$host_os dld.so"
9076     shlibpath_var=LD_LIBRARY_PATH
9077     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9078     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9079     soname_spec='${libname}${release}${shared_ext}$major'
9080     if test "X$HPUX_IA64_MODE" = X32; then
9081       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9082     else
9083       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9084     fi
9085     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9086     ;;
9087    hppa*64*)
9088      shrext_cmds='.sl'
9089      hardcode_into_libs=yes
9090      dynamic_linker="$host_os dld.sl"
9091      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9092      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9093      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094      soname_spec='${libname}${release}${shared_ext}$major'
9095      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9096      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9097      ;;
9098    *)
9099     shrext_cmds='.sl'
9100     dynamic_linker="$host_os dld.sl"
9101     shlibpath_var=SHLIB_PATH
9102     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9103     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9104     soname_spec='${libname}${release}${shared_ext}$major'
9105     ;;
9106   esac
9107   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9108   postinstall_cmds='chmod 555 $lib'
9109   ;;
9110
9111 interix3*)
9112   version_type=linux
9113   need_lib_prefix=no
9114   need_version=no
9115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9116   soname_spec='${libname}${release}${shared_ext}$major'
9117   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9118   shlibpath_var=LD_LIBRARY_PATH
9119   shlibpath_overrides_runpath=no
9120   hardcode_into_libs=yes
9121   ;;
9122
9123 irix5* | irix6* | nonstopux*)
9124   case $host_os in
9125     nonstopux*) version_type=nonstopux ;;
9126     *)
9127         if test "$lt_cv_prog_gnu_ld" = yes; then
9128                 version_type=linux
9129         else
9130                 version_type=irix
9131         fi ;;
9132   esac
9133   need_lib_prefix=no
9134   need_version=no
9135   soname_spec='${libname}${release}${shared_ext}$major'
9136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9137   case $host_os in
9138   irix5* | nonstopux*)
9139     libsuff= shlibsuff=
9140     ;;
9141   *)
9142     case $LD in # libtool.m4 will add one of these switches to LD
9143     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9144       libsuff= shlibsuff= libmagic=32-bit;;
9145     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9146       libsuff=32 shlibsuff=N32 libmagic=N32;;
9147     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9148       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9149     *) libsuff= shlibsuff= libmagic=never-match;;
9150     esac
9151     ;;
9152   esac
9153   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9154   shlibpath_overrides_runpath=no
9155   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9156   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9157   hardcode_into_libs=yes
9158   ;;
9159
9160 # No shared lib support for Linux oldld, aout, or coff.
9161 linux*oldld* | linux*aout* | linux*coff*)
9162   dynamic_linker=no
9163   ;;
9164
9165 # This must be Linux ELF.
9166 linux* | k*bsd*-gnu)
9167   version_type=linux
9168   need_lib_prefix=no
9169   need_version=no
9170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9171   soname_spec='${libname}${release}${shared_ext}$major'
9172   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9173   shlibpath_var=LD_LIBRARY_PATH
9174   shlibpath_overrides_runpath=no
9175   # This implies no fast_install, which is unacceptable.
9176   # Some rework will be needed to allow for fast_install
9177   # before this can be enabled.
9178   hardcode_into_libs=yes
9179
9180   # Append ld.so.conf contents to the search path
9181   if test -f /etc/ld.so.conf; then
9182     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9183     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9184   fi
9185
9186   # We used to test for /lib/ld.so.1 and disable shared libraries on
9187   # powerpc, because MkLinux only supported shared libraries with the
9188   # GNU dynamic linker.  Since this was broken with cross compilers,
9189   # most powerpc-linux boxes support dynamic linking these days and
9190   # people can always --disable-shared, the test was removed, and we
9191   # assume the GNU/Linux dynamic linker is in use.
9192   dynamic_linker='GNU/Linux ld.so'
9193   ;;
9194
9195 netbsdelf*-gnu)
9196   version_type=linux
9197   need_lib_prefix=no
9198   need_version=no
9199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9200   soname_spec='${libname}${release}${shared_ext}$major'
9201   shlibpath_var=LD_LIBRARY_PATH
9202   shlibpath_overrides_runpath=no
9203   hardcode_into_libs=yes
9204   dynamic_linker='NetBSD ld.elf_so'
9205   ;;
9206
9207 netbsd*)
9208   version_type=sunos
9209   need_lib_prefix=no
9210   need_version=no
9211   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9212     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9213     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9214     dynamic_linker='NetBSD (a.out) ld.so'
9215   else
9216     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9217     soname_spec='${libname}${release}${shared_ext}$major'
9218     dynamic_linker='NetBSD ld.elf_so'
9219   fi
9220   shlibpath_var=LD_LIBRARY_PATH
9221   shlibpath_overrides_runpath=yes
9222   hardcode_into_libs=yes
9223   ;;
9224
9225 newsos6)
9226   version_type=linux
9227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9228   shlibpath_var=LD_LIBRARY_PATH
9229   shlibpath_overrides_runpath=yes
9230   ;;
9231
9232 nto-qnx*)
9233   version_type=linux
9234   need_lib_prefix=no
9235   need_version=no
9236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9237   soname_spec='${libname}${release}${shared_ext}$major'
9238   shlibpath_var=LD_LIBRARY_PATH
9239   shlibpath_overrides_runpath=yes
9240   ;;
9241
9242 openbsd*)
9243   version_type=sunos
9244   sys_lib_dlsearch_path_spec="/usr/lib"
9245   need_lib_prefix=no
9246   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9247   case $host_os in
9248     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9249     *)                         need_version=no  ;;
9250   esac
9251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9252   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9253   shlibpath_var=LD_LIBRARY_PATH
9254   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9255     case $host_os in
9256       openbsd2.[89] | openbsd2.[89].*)
9257         shlibpath_overrides_runpath=no
9258         ;;
9259       *)
9260         shlibpath_overrides_runpath=yes
9261         ;;
9262       esac
9263   else
9264     shlibpath_overrides_runpath=yes
9265   fi
9266   ;;
9267
9268 os2*)
9269   libname_spec='$name'
9270   shrext_cmds=".dll"
9271   need_lib_prefix=no
9272   library_names_spec='$libname${shared_ext} $libname.a'
9273   dynamic_linker='OS/2 ld.exe'
9274   shlibpath_var=LIBPATH
9275   ;;
9276
9277 osf3* | osf4* | osf5*)
9278   version_type=osf
9279   need_lib_prefix=no
9280   need_version=no
9281   soname_spec='${libname}${release}${shared_ext}$major'
9282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9283   shlibpath_var=LD_LIBRARY_PATH
9284   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9285   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9286   ;;
9287
9288 solaris*)
9289   version_type=linux
9290   need_lib_prefix=no
9291   need_version=no
9292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9293   soname_spec='${libname}${release}${shared_ext}$major'
9294   shlibpath_var=LD_LIBRARY_PATH
9295   shlibpath_overrides_runpath=yes
9296   hardcode_into_libs=yes
9297   # ldd complains unless libraries are executable
9298   postinstall_cmds='chmod +x $lib'
9299   ;;
9300
9301 sunos4*)
9302   version_type=sunos
9303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9304   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9305   shlibpath_var=LD_LIBRARY_PATH
9306   shlibpath_overrides_runpath=yes
9307   if test "$with_gnu_ld" = yes; then
9308     need_lib_prefix=no
9309   fi
9310   need_version=yes
9311   ;;
9312
9313 sysv4 | sysv4.3*)
9314   version_type=linux
9315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9316   soname_spec='${libname}${release}${shared_ext}$major'
9317   shlibpath_var=LD_LIBRARY_PATH
9318   case $host_vendor in
9319     sni)
9320       shlibpath_overrides_runpath=no
9321       need_lib_prefix=no
9322       export_dynamic_flag_spec='${wl}-Blargedynsym'
9323       runpath_var=LD_RUN_PATH
9324       ;;
9325     siemens)
9326       need_lib_prefix=no
9327       ;;
9328     motorola)
9329       need_lib_prefix=no
9330       need_version=no
9331       shlibpath_overrides_runpath=no
9332       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9333       ;;
9334   esac
9335   ;;
9336
9337 sysv4*MP*)
9338   if test -d /usr/nec ;then
9339     version_type=linux
9340     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9341     soname_spec='$libname${shared_ext}.$major'
9342     shlibpath_var=LD_LIBRARY_PATH
9343   fi
9344   ;;
9345
9346 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9347   version_type=freebsd-elf
9348   need_lib_prefix=no
9349   need_version=no
9350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9351   soname_spec='${libname}${release}${shared_ext}$major'
9352   shlibpath_var=LD_LIBRARY_PATH
9353   hardcode_into_libs=yes
9354   if test "$with_gnu_ld" = yes; then
9355     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9356     shlibpath_overrides_runpath=no
9357   else
9358     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9359     shlibpath_overrides_runpath=yes
9360     case $host_os in
9361       sco3.2v5*)
9362         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9363         ;;
9364     esac
9365   fi
9366   sys_lib_dlsearch_path_spec='/usr/lib'
9367   ;;
9368
9369 uts4*)
9370   version_type=linux
9371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9372   soname_spec='${libname}${release}${shared_ext}$major'
9373   shlibpath_var=LD_LIBRARY_PATH
9374   ;;
9375
9376 *)
9377   dynamic_linker=no
9378   ;;
9379 esac
9380 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9381 echo "${ECHO_T}$dynamic_linker" >&6; }
9382 test "$dynamic_linker" = no && can_build_shared=no
9383
9384 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9385 if test "$GCC" = yes; then
9386   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9387 fi
9388
9389 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9390 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9391 hardcode_action=
9392 if test -n "$hardcode_libdir_flag_spec" || \
9393    test -n "$runpath_var" || \
9394    test "X$hardcode_automatic" = "Xyes" ; then
9395
9396   # We can hardcode non-existant directories.
9397   if test "$hardcode_direct" != no &&
9398      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9399      # have to relink, otherwise we might link with an installed library
9400      # when we should be linking with a yet-to-be-installed one
9401      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9402      test "$hardcode_minus_L" != no; then
9403     # Linking always hardcodes the temporary library directory.
9404     hardcode_action=relink
9405   else
9406     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9407     hardcode_action=immediate
9408   fi
9409 else
9410   # We cannot hardcode anything, or else we can only hardcode existing
9411   # directories.
9412   hardcode_action=unsupported
9413 fi
9414 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9415 echo "${ECHO_T}$hardcode_action" >&6; }
9416
9417 if test "$hardcode_action" = relink; then
9418   # Fast installation is not supported
9419   enable_fast_install=no
9420 elif test "$shlibpath_overrides_runpath" = yes ||
9421      test "$enable_shared" = no; then
9422   # Fast installation is not necessary
9423   enable_fast_install=needless
9424 fi
9425
9426 striplib=
9427 old_striplib=
9428 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9429 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9430 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9431   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9432   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9433   { echo "$as_me:$LINENO: result: yes" >&5
9434 echo "${ECHO_T}yes" >&6; }
9435 else
9436 # FIXME - insert some real tests, host_os isn't really good enough
9437   case $host_os in
9438    darwin*)
9439        if test -n "$STRIP" ; then
9440          striplib="$STRIP -x"
9441          { echo "$as_me:$LINENO: result: yes" >&5
9442 echo "${ECHO_T}yes" >&6; }
9443        else
9444   { echo "$as_me:$LINENO: result: no" >&5
9445 echo "${ECHO_T}no" >&6; }
9446 fi
9447        ;;
9448    *)
9449   { echo "$as_me:$LINENO: result: no" >&5
9450 echo "${ECHO_T}no" >&6; }
9451     ;;
9452   esac
9453 fi
9454
9455 if test "x$enable_dlopen" != xyes; then
9456   enable_dlopen=unknown
9457   enable_dlopen_self=unknown
9458   enable_dlopen_self_static=unknown
9459 else
9460   lt_cv_dlopen=no
9461   lt_cv_dlopen_libs=
9462
9463   case $host_os in
9464   beos*)
9465     lt_cv_dlopen="load_add_on"
9466     lt_cv_dlopen_libs=
9467     lt_cv_dlopen_self=yes
9468     ;;
9469
9470   mingw* | pw32*)
9471     lt_cv_dlopen="LoadLibrary"
9472     lt_cv_dlopen_libs=
9473    ;;
9474
9475   cygwin*)
9476     lt_cv_dlopen="dlopen"
9477     lt_cv_dlopen_libs=
9478    ;;
9479
9480   darwin*)
9481   # if libdl is installed we need to link against it
9482     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9483 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9484 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9485   echo $ECHO_N "(cached) $ECHO_C" >&6
9486 else
9487   ac_check_lib_save_LIBS=$LIBS
9488 LIBS="-ldl  $LIBS"
9489 cat >conftest.$ac_ext <<_ACEOF
9490 /* confdefs.h.  */
9491 _ACEOF
9492 cat confdefs.h >>conftest.$ac_ext
9493 cat >>conftest.$ac_ext <<_ACEOF
9494 /* end confdefs.h.  */
9495
9496 /* Override any GCC internal prototype to avoid an error.
9497    Use char because int might match the return type of a GCC
9498    builtin and then its argument prototype would still apply.  */
9499 #ifdef __cplusplus
9500 extern "C"
9501 #endif
9502 char dlopen ();
9503 int
9504 main ()
9505 {
9506 return dlopen ();
9507   ;
9508   return 0;
9509 }
9510 _ACEOF
9511 rm -f conftest.$ac_objext conftest$ac_exeext
9512 if { (ac_try="$ac_link"
9513 case "(($ac_try" in
9514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9515   *) ac_try_echo=$ac_try;;
9516 esac
9517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9518   (eval "$ac_link") 2>conftest.er1
9519   ac_status=$?
9520   grep -v '^ *+' conftest.er1 >conftest.err
9521   rm -f conftest.er1
9522   cat conftest.err >&5
9523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524   (exit $ac_status); } && {
9525          test -z "$ac_c_werror_flag" ||
9526          test ! -s conftest.err
9527        } && test -s conftest$ac_exeext &&
9528        $as_test_x conftest$ac_exeext; then
9529   ac_cv_lib_dl_dlopen=yes
9530 else
9531   echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.$ac_ext >&5
9533
9534         ac_cv_lib_dl_dlopen=no
9535 fi
9536
9537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9538       conftest$ac_exeext conftest.$ac_ext
9539 LIBS=$ac_check_lib_save_LIBS
9540 fi
9541 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9542 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9543 if test $ac_cv_lib_dl_dlopen = yes; then
9544   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9545 else
9546
9547     lt_cv_dlopen="dyld"
9548     lt_cv_dlopen_libs=
9549     lt_cv_dlopen_self=yes
9550
9551 fi
9552
9553    ;;
9554
9555   *)
9556     { echo "$as_me:$LINENO: checking for shl_load" >&5
9557 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9558 if test "${ac_cv_func_shl_load+set}" = set; then
9559   echo $ECHO_N "(cached) $ECHO_C" >&6
9560 else
9561   cat >conftest.$ac_ext <<_ACEOF
9562 /* confdefs.h.  */
9563 _ACEOF
9564 cat confdefs.h >>conftest.$ac_ext
9565 cat >>conftest.$ac_ext <<_ACEOF
9566 /* end confdefs.h.  */
9567 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9568    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9569 #define shl_load innocuous_shl_load
9570
9571 /* System header to define __stub macros and hopefully few prototypes,
9572     which can conflict with char shl_load (); below.
9573     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9574     <limits.h> exists even on freestanding compilers.  */
9575
9576 #ifdef __STDC__
9577 # include <limits.h>
9578 #else
9579 # include <assert.h>
9580 #endif
9581
9582 #undef shl_load
9583
9584 /* Override any GCC internal prototype to avoid an error.
9585    Use char because int might match the return type of a GCC
9586    builtin and then its argument prototype would still apply.  */
9587 #ifdef __cplusplus
9588 extern "C"
9589 #endif
9590 char shl_load ();
9591 /* The GNU C library defines this for functions which it implements
9592     to always fail with ENOSYS.  Some functions are actually named
9593     something starting with __ and the normal name is an alias.  */
9594 #if defined __stub_shl_load || defined __stub___shl_load
9595 choke me
9596 #endif
9597
9598 int
9599 main ()
9600 {
9601 return shl_load ();
9602   ;
9603   return 0;
9604 }
9605 _ACEOF
9606 rm -f conftest.$ac_objext conftest$ac_exeext
9607 if { (ac_try="$ac_link"
9608 case "(($ac_try" in
9609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9610   *) ac_try_echo=$ac_try;;
9611 esac
9612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9613   (eval "$ac_link") 2>conftest.er1
9614   ac_status=$?
9615   grep -v '^ *+' conftest.er1 >conftest.err
9616   rm -f conftest.er1
9617   cat conftest.err >&5
9618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619   (exit $ac_status); } && {
9620          test -z "$ac_c_werror_flag" ||
9621          test ! -s conftest.err
9622        } && test -s conftest$ac_exeext &&
9623        $as_test_x conftest$ac_exeext; then
9624   ac_cv_func_shl_load=yes
9625 else
9626   echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9628
9629         ac_cv_func_shl_load=no
9630 fi
9631
9632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9633       conftest$ac_exeext conftest.$ac_ext
9634 fi
9635 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9636 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9637 if test $ac_cv_func_shl_load = yes; then
9638   lt_cv_dlopen="shl_load"
9639 else
9640   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9641 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9642 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9643   echo $ECHO_N "(cached) $ECHO_C" >&6
9644 else
9645   ac_check_lib_save_LIBS=$LIBS
9646 LIBS="-ldld  $LIBS"
9647 cat >conftest.$ac_ext <<_ACEOF
9648 /* confdefs.h.  */
9649 _ACEOF
9650 cat confdefs.h >>conftest.$ac_ext
9651 cat >>conftest.$ac_ext <<_ACEOF
9652 /* end confdefs.h.  */
9653
9654 /* Override any GCC internal prototype to avoid an error.
9655    Use char because int might match the return type of a GCC
9656    builtin and then its argument prototype would still apply.  */
9657 #ifdef __cplusplus
9658 extern "C"
9659 #endif
9660 char shl_load ();
9661 int
9662 main ()
9663 {
9664 return shl_load ();
9665   ;
9666   return 0;
9667 }
9668 _ACEOF
9669 rm -f conftest.$ac_objext conftest$ac_exeext
9670 if { (ac_try="$ac_link"
9671 case "(($ac_try" in
9672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9673   *) ac_try_echo=$ac_try;;
9674 esac
9675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9676   (eval "$ac_link") 2>conftest.er1
9677   ac_status=$?
9678   grep -v '^ *+' conftest.er1 >conftest.err
9679   rm -f conftest.er1
9680   cat conftest.err >&5
9681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682   (exit $ac_status); } && {
9683          test -z "$ac_c_werror_flag" ||
9684          test ! -s conftest.err
9685        } && test -s conftest$ac_exeext &&
9686        $as_test_x conftest$ac_exeext; then
9687   ac_cv_lib_dld_shl_load=yes
9688 else
9689   echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9691
9692         ac_cv_lib_dld_shl_load=no
9693 fi
9694
9695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9696       conftest$ac_exeext conftest.$ac_ext
9697 LIBS=$ac_check_lib_save_LIBS
9698 fi
9699 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9700 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9701 if test $ac_cv_lib_dld_shl_load = yes; then
9702   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9703 else
9704   { echo "$as_me:$LINENO: checking for dlopen" >&5
9705 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9706 if test "${ac_cv_func_dlopen+set}" = set; then
9707   echo $ECHO_N "(cached) $ECHO_C" >&6
9708 else
9709   cat >conftest.$ac_ext <<_ACEOF
9710 /* confdefs.h.  */
9711 _ACEOF
9712 cat confdefs.h >>conftest.$ac_ext
9713 cat >>conftest.$ac_ext <<_ACEOF
9714 /* end confdefs.h.  */
9715 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9716    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9717 #define dlopen innocuous_dlopen
9718
9719 /* System header to define __stub macros and hopefully few prototypes,
9720     which can conflict with char dlopen (); below.
9721     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9722     <limits.h> exists even on freestanding compilers.  */
9723
9724 #ifdef __STDC__
9725 # include <limits.h>
9726 #else
9727 # include <assert.h>
9728 #endif
9729
9730 #undef dlopen
9731
9732 /* Override any GCC internal prototype to avoid an error.
9733    Use char because int might match the return type of a GCC
9734    builtin and then its argument prototype would still apply.  */
9735 #ifdef __cplusplus
9736 extern "C"
9737 #endif
9738 char dlopen ();
9739 /* The GNU C library defines this for functions which it implements
9740     to always fail with ENOSYS.  Some functions are actually named
9741     something starting with __ and the normal name is an alias.  */
9742 #if defined __stub_dlopen || defined __stub___dlopen
9743 choke me
9744 #endif
9745
9746 int
9747 main ()
9748 {
9749 return dlopen ();
9750   ;
9751   return 0;
9752 }
9753 _ACEOF
9754 rm -f conftest.$ac_objext conftest$ac_exeext
9755 if { (ac_try="$ac_link"
9756 case "(($ac_try" in
9757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9758   *) ac_try_echo=$ac_try;;
9759 esac
9760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9761   (eval "$ac_link") 2>conftest.er1
9762   ac_status=$?
9763   grep -v '^ *+' conftest.er1 >conftest.err
9764   rm -f conftest.er1
9765   cat conftest.err >&5
9766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767   (exit $ac_status); } && {
9768          test -z "$ac_c_werror_flag" ||
9769          test ! -s conftest.err
9770        } && test -s conftest$ac_exeext &&
9771        $as_test_x conftest$ac_exeext; then
9772   ac_cv_func_dlopen=yes
9773 else
9774   echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9776
9777         ac_cv_func_dlopen=no
9778 fi
9779
9780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9781       conftest$ac_exeext conftest.$ac_ext
9782 fi
9783 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9784 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9785 if test $ac_cv_func_dlopen = yes; then
9786   lt_cv_dlopen="dlopen"
9787 else
9788   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9789 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9790 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9791   echo $ECHO_N "(cached) $ECHO_C" >&6
9792 else
9793   ac_check_lib_save_LIBS=$LIBS
9794 LIBS="-ldl  $LIBS"
9795 cat >conftest.$ac_ext <<_ACEOF
9796 /* confdefs.h.  */
9797 _ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h.  */
9801
9802 /* Override any GCC internal prototype to avoid an error.
9803    Use char because int might match the return type of a GCC
9804    builtin and then its argument prototype would still apply.  */
9805 #ifdef __cplusplus
9806 extern "C"
9807 #endif
9808 char dlopen ();
9809 int
9810 main ()
9811 {
9812 return dlopen ();
9813   ;
9814   return 0;
9815 }
9816 _ACEOF
9817 rm -f conftest.$ac_objext conftest$ac_exeext
9818 if { (ac_try="$ac_link"
9819 case "(($ac_try" in
9820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821   *) ac_try_echo=$ac_try;;
9822 esac
9823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824   (eval "$ac_link") 2>conftest.er1
9825   ac_status=$?
9826   grep -v '^ *+' conftest.er1 >conftest.err
9827   rm -f conftest.er1
9828   cat conftest.err >&5
9829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830   (exit $ac_status); } && {
9831          test -z "$ac_c_werror_flag" ||
9832          test ! -s conftest.err
9833        } && test -s conftest$ac_exeext &&
9834        $as_test_x conftest$ac_exeext; then
9835   ac_cv_lib_dl_dlopen=yes
9836 else
9837   echo "$as_me: failed program was:" >&5
9838 sed 's/^/| /' conftest.$ac_ext >&5
9839
9840         ac_cv_lib_dl_dlopen=no
9841 fi
9842
9843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9844       conftest$ac_exeext conftest.$ac_ext
9845 LIBS=$ac_check_lib_save_LIBS
9846 fi
9847 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9848 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9849 if test $ac_cv_lib_dl_dlopen = yes; then
9850   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9851 else
9852   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9853 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9854 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9855   echo $ECHO_N "(cached) $ECHO_C" >&6
9856 else
9857   ac_check_lib_save_LIBS=$LIBS
9858 LIBS="-lsvld  $LIBS"
9859 cat >conftest.$ac_ext <<_ACEOF
9860 /* confdefs.h.  */
9861 _ACEOF
9862 cat confdefs.h >>conftest.$ac_ext
9863 cat >>conftest.$ac_ext <<_ACEOF
9864 /* end confdefs.h.  */
9865
9866 /* Override any GCC internal prototype to avoid an error.
9867    Use char because int might match the return type of a GCC
9868    builtin and then its argument prototype would still apply.  */
9869 #ifdef __cplusplus
9870 extern "C"
9871 #endif
9872 char dlopen ();
9873 int
9874 main ()
9875 {
9876 return dlopen ();
9877   ;
9878   return 0;
9879 }
9880 _ACEOF
9881 rm -f conftest.$ac_objext conftest$ac_exeext
9882 if { (ac_try="$ac_link"
9883 case "(($ac_try" in
9884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9885   *) ac_try_echo=$ac_try;;
9886 esac
9887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9888   (eval "$ac_link") 2>conftest.er1
9889   ac_status=$?
9890   grep -v '^ *+' conftest.er1 >conftest.err
9891   rm -f conftest.er1
9892   cat conftest.err >&5
9893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894   (exit $ac_status); } && {
9895          test -z "$ac_c_werror_flag" ||
9896          test ! -s conftest.err
9897        } && test -s conftest$ac_exeext &&
9898        $as_test_x conftest$ac_exeext; then
9899   ac_cv_lib_svld_dlopen=yes
9900 else
9901   echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9903
9904         ac_cv_lib_svld_dlopen=no
9905 fi
9906
9907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9908       conftest$ac_exeext conftest.$ac_ext
9909 LIBS=$ac_check_lib_save_LIBS
9910 fi
9911 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9912 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9913 if test $ac_cv_lib_svld_dlopen = yes; then
9914   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9915 else
9916   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9917 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9918 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9919   echo $ECHO_N "(cached) $ECHO_C" >&6
9920 else
9921   ac_check_lib_save_LIBS=$LIBS
9922 LIBS="-ldld  $LIBS"
9923 cat >conftest.$ac_ext <<_ACEOF
9924 /* confdefs.h.  */
9925 _ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h.  */
9929
9930 /* Override any GCC internal prototype to avoid an error.
9931    Use char because int might match the return type of a GCC
9932    builtin and then its argument prototype would still apply.  */
9933 #ifdef __cplusplus
9934 extern "C"
9935 #endif
9936 char dld_link ();
9937 int
9938 main ()
9939 {
9940 return dld_link ();
9941   ;
9942   return 0;
9943 }
9944 _ACEOF
9945 rm -f conftest.$ac_objext conftest$ac_exeext
9946 if { (ac_try="$ac_link"
9947 case "(($ac_try" in
9948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9949   *) ac_try_echo=$ac_try;;
9950 esac
9951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9952   (eval "$ac_link") 2>conftest.er1
9953   ac_status=$?
9954   grep -v '^ *+' conftest.er1 >conftest.err
9955   rm -f conftest.er1
9956   cat conftest.err >&5
9957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958   (exit $ac_status); } && {
9959          test -z "$ac_c_werror_flag" ||
9960          test ! -s conftest.err
9961        } && test -s conftest$ac_exeext &&
9962        $as_test_x conftest$ac_exeext; then
9963   ac_cv_lib_dld_dld_link=yes
9964 else
9965   echo "$as_me: failed program was:" >&5
9966 sed 's/^/| /' conftest.$ac_ext >&5
9967
9968         ac_cv_lib_dld_dld_link=no
9969 fi
9970
9971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9972       conftest$ac_exeext conftest.$ac_ext
9973 LIBS=$ac_check_lib_save_LIBS
9974 fi
9975 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9976 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9977 if test $ac_cv_lib_dld_dld_link = yes; then
9978   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9979 fi
9980
9981
9982 fi
9983
9984
9985 fi
9986
9987
9988 fi
9989
9990
9991 fi
9992
9993
9994 fi
9995
9996     ;;
9997   esac
9998
9999   if test "x$lt_cv_dlopen" != xno; then
10000     enable_dlopen=yes
10001   else
10002     enable_dlopen=no
10003   fi
10004
10005   case $lt_cv_dlopen in
10006   dlopen)
10007     save_CPPFLAGS="$CPPFLAGS"
10008     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10009
10010     save_LDFLAGS="$LDFLAGS"
10011     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10012
10013     save_LIBS="$LIBS"
10014     LIBS="$lt_cv_dlopen_libs $LIBS"
10015
10016     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10017 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10018 if test "${lt_cv_dlopen_self+set}" = set; then
10019   echo $ECHO_N "(cached) $ECHO_C" >&6
10020 else
10021           if test "$cross_compiling" = yes; then :
10022   lt_cv_dlopen_self=cross
10023 else
10024   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10025   lt_status=$lt_dlunknown
10026   cat > conftest.$ac_ext <<EOF
10027 #line 10027 "configure"
10028 #include "confdefs.h"
10029
10030 #if HAVE_DLFCN_H
10031 #include <dlfcn.h>
10032 #endif
10033
10034 #include <stdio.h>
10035
10036 #ifdef RTLD_GLOBAL
10037 #  define LT_DLGLOBAL           RTLD_GLOBAL
10038 #else
10039 #  ifdef DL_GLOBAL
10040 #    define LT_DLGLOBAL         DL_GLOBAL
10041 #  else
10042 #    define LT_DLGLOBAL         0
10043 #  endif
10044 #endif
10045
10046 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10047    find out it does not work in some platform. */
10048 #ifndef LT_DLLAZY_OR_NOW
10049 #  ifdef RTLD_LAZY
10050 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10051 #  else
10052 #    ifdef DL_LAZY
10053 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10054 #    else
10055 #      ifdef RTLD_NOW
10056 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10057 #      else
10058 #        ifdef DL_NOW
10059 #          define LT_DLLAZY_OR_NOW      DL_NOW
10060 #        else
10061 #          define LT_DLLAZY_OR_NOW      0
10062 #        endif
10063 #      endif
10064 #    endif
10065 #  endif
10066 #endif
10067
10068 #ifdef __cplusplus
10069 extern "C" void exit (int);
10070 #endif
10071
10072 void fnord() { int i=42;}
10073 int main ()
10074 {
10075   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10076   int status = $lt_dlunknown;
10077
10078   if (self)
10079     {
10080       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10081       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10082       /* dlclose (self); */
10083     }
10084   else
10085     puts (dlerror ());
10086
10087     exit (status);
10088 }
10089 EOF
10090   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10091   (eval $ac_link) 2>&5
10092   ac_status=$?
10093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10095     (./conftest; exit; ) >&5 2>/dev/null
10096     lt_status=$?
10097     case x$lt_status in
10098       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10099       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10100       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10101     esac
10102   else :
10103     # compilation failed
10104     lt_cv_dlopen_self=no
10105   fi
10106 fi
10107 rm -fr conftest*
10108
10109
10110 fi
10111 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10112 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10113
10114     if test "x$lt_cv_dlopen_self" = xyes; then
10115       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10116       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10117 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10118 if test "${lt_cv_dlopen_self_static+set}" = set; then
10119   echo $ECHO_N "(cached) $ECHO_C" >&6
10120 else
10121           if test "$cross_compiling" = yes; then :
10122   lt_cv_dlopen_self_static=cross
10123 else
10124   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10125   lt_status=$lt_dlunknown
10126   cat > conftest.$ac_ext <<EOF
10127 #line 10127 "configure"
10128 #include "confdefs.h"
10129
10130 #if HAVE_DLFCN_H
10131 #include <dlfcn.h>
10132 #endif
10133
10134 #include <stdio.h>
10135
10136 #ifdef RTLD_GLOBAL
10137 #  define LT_DLGLOBAL           RTLD_GLOBAL
10138 #else
10139 #  ifdef DL_GLOBAL
10140 #    define LT_DLGLOBAL         DL_GLOBAL
10141 #  else
10142 #    define LT_DLGLOBAL         0
10143 #  endif
10144 #endif
10145
10146 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10147    find out it does not work in some platform. */
10148 #ifndef LT_DLLAZY_OR_NOW
10149 #  ifdef RTLD_LAZY
10150 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10151 #  else
10152 #    ifdef DL_LAZY
10153 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10154 #    else
10155 #      ifdef RTLD_NOW
10156 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10157 #      else
10158 #        ifdef DL_NOW
10159 #          define LT_DLLAZY_OR_NOW      DL_NOW
10160 #        else
10161 #          define LT_DLLAZY_OR_NOW      0
10162 #        endif
10163 #      endif
10164 #    endif
10165 #  endif
10166 #endif
10167
10168 #ifdef __cplusplus
10169 extern "C" void exit (int);
10170 #endif
10171
10172 void fnord() { int i=42;}
10173 int main ()
10174 {
10175   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10176   int status = $lt_dlunknown;
10177
10178   if (self)
10179     {
10180       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10181       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10182       /* dlclose (self); */
10183     }
10184   else
10185     puts (dlerror ());
10186
10187     exit (status);
10188 }
10189 EOF
10190   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10191   (eval $ac_link) 2>&5
10192   ac_status=$?
10193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10195     (./conftest; exit; ) >&5 2>/dev/null
10196     lt_status=$?
10197     case x$lt_status in
10198       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10199       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10200       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10201     esac
10202   else :
10203     # compilation failed
10204     lt_cv_dlopen_self_static=no
10205   fi
10206 fi
10207 rm -fr conftest*
10208
10209
10210 fi
10211 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10212 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10213     fi
10214
10215     CPPFLAGS="$save_CPPFLAGS"
10216     LDFLAGS="$save_LDFLAGS"
10217     LIBS="$save_LIBS"
10218     ;;
10219   esac
10220
10221   case $lt_cv_dlopen_self in
10222   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10223   *) enable_dlopen_self=unknown ;;
10224   esac
10225
10226   case $lt_cv_dlopen_self_static in
10227   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10228   *) enable_dlopen_self_static=unknown ;;
10229   esac
10230 fi
10231
10232
10233 # Report which library types will actually be built
10234 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10235 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10236 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10237 echo "${ECHO_T}$can_build_shared" >&6; }
10238
10239 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10240 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10241 test "$can_build_shared" = "no" && enable_shared=no
10242
10243 # On AIX, shared libraries and static libraries use the same namespace, and
10244 # are all built from PIC.
10245 case $host_os in
10246 aix3*)
10247   test "$enable_shared" = yes && enable_static=no
10248   if test -n "$RANLIB"; then
10249     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10250     postinstall_cmds='$RANLIB $lib'
10251   fi
10252   ;;
10253
10254 aix4* | aix5*)
10255   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10256     test "$enable_shared" = yes && enable_static=no
10257   fi
10258     ;;
10259 esac
10260 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10261 echo "${ECHO_T}$enable_shared" >&6; }
10262
10263 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10264 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10265 # Make sure either enable_shared or enable_static is yes.
10266 test "$enable_shared" = yes || enable_static=yes
10267 { echo "$as_me:$LINENO: result: $enable_static" >&5
10268 echo "${ECHO_T}$enable_static" >&6; }
10269
10270 # The else clause should only fire when bootstrapping the
10271 # libtool distribution, otherwise you forgot to ship ltmain.sh
10272 # with your package, and you will get complaints that there are
10273 # no rules to generate ltmain.sh.
10274 if test -f "$ltmain"; then
10275   # See if we are running on zsh, and set the options which allow our commands through
10276   # without removal of \ escapes.
10277   if test -n "${ZSH_VERSION+set}" ; then
10278     setopt NO_GLOB_SUBST
10279   fi
10280   # Now quote all the things that may contain metacharacters while being
10281   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10282   # variables and quote the copies for generation of the libtool script.
10283   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10284     SED SHELL STRIP \
10285     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10286     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10287     deplibs_check_method reload_flag reload_cmds need_locks \
10288     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10289     lt_cv_sys_global_symbol_to_c_name_address \
10290     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10291     old_postinstall_cmds old_postuninstall_cmds \
10292     compiler \
10293     CC \
10294     LD \
10295     lt_prog_compiler_wl \
10296     lt_prog_compiler_pic \
10297     lt_prog_compiler_static \
10298     lt_prog_compiler_no_builtin_flag \
10299     export_dynamic_flag_spec \
10300     thread_safe_flag_spec \
10301     whole_archive_flag_spec \
10302     enable_shared_with_static_runtimes \
10303     old_archive_cmds \
10304     old_archive_from_new_cmds \
10305     predep_objects \
10306     postdep_objects \
10307     predeps \
10308     postdeps \
10309     compiler_lib_search_path \
10310     archive_cmds \
10311     archive_expsym_cmds \
10312     postinstall_cmds \
10313     postuninstall_cmds \
10314     old_archive_from_expsyms_cmds \
10315     allow_undefined_flag \
10316     no_undefined_flag \
10317     export_symbols_cmds \
10318     hardcode_libdir_flag_spec \
10319     hardcode_libdir_flag_spec_ld \
10320     hardcode_libdir_separator \
10321     hardcode_automatic \
10322     module_cmds \
10323     module_expsym_cmds \
10324     lt_cv_prog_compiler_c_o \
10325     exclude_expsyms \
10326     include_expsyms; do
10327
10328     case $var in
10329     old_archive_cmds | \
10330     old_archive_from_new_cmds | \
10331     archive_cmds | \
10332     archive_expsym_cmds | \
10333     module_cmds | \
10334     module_expsym_cmds | \
10335     old_archive_from_expsyms_cmds | \
10336     export_symbols_cmds | \
10337     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10338     postinstall_cmds | postuninstall_cmds | \
10339     old_postinstall_cmds | old_postuninstall_cmds | \
10340     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10341       # Double-quote double-evaled strings.
10342       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10343       ;;
10344     *)
10345       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10346       ;;
10347     esac
10348   done
10349
10350   case $lt_echo in
10351   *'\$0 --fallback-echo"')
10352     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10353     ;;
10354   esac
10355
10356 cfgfile="${ofile}T"
10357   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10358   $rm -f "$cfgfile"
10359   { echo "$as_me:$LINENO: creating $ofile" >&5
10360 echo "$as_me: creating $ofile" >&6;}
10361
10362   cat <<__EOF__ >> "$cfgfile"
10363 #! $SHELL
10364
10365 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10366 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10367 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10368 #
10369 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10370 # Free Software Foundation, Inc.
10371 #
10372 # This file is part of GNU Libtool:
10373 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10374 #
10375 # This program is free software; you can redistribute it and/or modify
10376 # it under the terms of the GNU General Public License as published by
10377 # the Free Software Foundation; either version 2 of the License, or
10378 # (at your option) any later version.
10379 #
10380 # This program is distributed in the hope that it will be useful, but
10381 # WITHOUT ANY WARRANTY; without even the implied warranty of
10382 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10383 # General Public License for more details.
10384 #
10385 # You should have received a copy of the GNU General Public License
10386 # along with this program; if not, write to the Free Software
10387 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10388 #
10389 # As a special exception to the GNU General Public License, if you
10390 # distribute this file as part of a program that contains a
10391 # configuration script generated by Autoconf, you may include it under
10392 # the same distribution terms that you use for the rest of that program.
10393
10394 # A sed program that does not truncate output.
10395 SED=$lt_SED
10396
10397 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10398 Xsed="$SED -e 1s/^X//"
10399
10400 # The HP-UX ksh and POSIX shell print the target directory to stdout
10401 # if CDPATH is set.
10402 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10403
10404 # The names of the tagged configurations supported by this script.
10405 available_tags=
10406
10407 # ### BEGIN LIBTOOL CONFIG
10408
10409 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10410
10411 # Shell to use when invoking shell scripts.
10412 SHELL=$lt_SHELL
10413
10414 # Whether or not to build shared libraries.
10415 build_libtool_libs=$enable_shared
10416
10417 # Whether or not to build static libraries.
10418 build_old_libs=$enable_static
10419
10420 # Whether or not to add -lc for building shared libraries.
10421 build_libtool_need_lc=$archive_cmds_need_lc
10422
10423 # Whether or not to disallow shared libs when runtime libs are static
10424 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10425
10426 # Whether or not to optimize for fast installation.
10427 fast_install=$enable_fast_install
10428
10429 # The host system.
10430 host_alias=$host_alias
10431 host=$host
10432 host_os=$host_os
10433
10434 # The build system.
10435 build_alias=$build_alias
10436 build=$build
10437 build_os=$build_os
10438
10439 # An echo program that does not interpret backslashes.
10440 echo=$lt_echo
10441
10442 # The archiver.
10443 AR=$lt_AR
10444 AR_FLAGS=$lt_AR_FLAGS
10445
10446 # A C compiler.
10447 LTCC=$lt_LTCC
10448
10449 # LTCC compiler flags.
10450 LTCFLAGS=$lt_LTCFLAGS
10451
10452 # A language-specific compiler.
10453 CC=$lt_compiler
10454
10455 # Is the compiler the GNU C compiler?
10456 with_gcc=$GCC
10457
10458 # An ERE matcher.
10459 EGREP=$lt_EGREP
10460
10461 # The linker used to build libraries.
10462 LD=$lt_LD
10463
10464 # Whether we need hard or soft links.
10465 LN_S=$lt_LN_S
10466
10467 # A BSD-compatible nm program.
10468 NM=$lt_NM
10469
10470 # A symbol stripping program
10471 STRIP=$lt_STRIP
10472
10473 # Used to examine libraries when file_magic_cmd begins "file"
10474 MAGIC_CMD=$MAGIC_CMD
10475
10476 # Used on cygwin: DLL creation program.
10477 DLLTOOL="$DLLTOOL"
10478
10479 # Used on cygwin: object dumper.
10480 OBJDUMP="$OBJDUMP"
10481
10482 # Used on cygwin: assembler.
10483 AS="$AS"
10484
10485 # The name of the directory that contains temporary libtool files.
10486 objdir=$objdir
10487
10488 # How to create reloadable object files.
10489 reload_flag=$lt_reload_flag
10490 reload_cmds=$lt_reload_cmds
10491
10492 # How to pass a linker flag through the compiler.
10493 wl=$lt_lt_prog_compiler_wl
10494
10495 # Object file suffix (normally "o").
10496 objext="$ac_objext"
10497
10498 # Old archive suffix (normally "a").
10499 libext="$libext"
10500
10501 # Shared library suffix (normally ".so").
10502 shrext_cmds='$shrext_cmds'
10503
10504 # Executable file suffix (normally "").
10505 exeext="$exeext"
10506
10507 # Additional compiler flags for building library objects.
10508 pic_flag=$lt_lt_prog_compiler_pic
10509 pic_mode=$pic_mode
10510
10511 # What is the maximum length of a command?
10512 max_cmd_len=$lt_cv_sys_max_cmd_len
10513
10514 # Does compiler simultaneously support -c and -o options?
10515 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10516
10517 # Must we lock files when doing compilation?
10518 need_locks=$lt_need_locks
10519
10520 # Do we need the lib prefix for modules?
10521 need_lib_prefix=$need_lib_prefix
10522
10523 # Do we need a version for libraries?
10524 need_version=$need_version
10525
10526 # Whether dlopen is supported.
10527 dlopen_support=$enable_dlopen
10528
10529 # Whether dlopen of programs is supported.
10530 dlopen_self=$enable_dlopen_self
10531
10532 # Whether dlopen of statically linked programs is supported.
10533 dlopen_self_static=$enable_dlopen_self_static
10534
10535 # Compiler flag to prevent dynamic linking.
10536 link_static_flag=$lt_lt_prog_compiler_static
10537
10538 # Compiler flag to turn off builtin functions.
10539 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10540
10541 # Compiler flag to allow reflexive dlopens.
10542 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10543
10544 # Compiler flag to generate shared objects directly from archives.
10545 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10546
10547 # Compiler flag to generate thread-safe objects.
10548 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10549
10550 # Library versioning type.
10551 version_type=$version_type
10552
10553 # Format of library name prefix.
10554 libname_spec=$lt_libname_spec
10555
10556 # List of archive names.  First name is the real one, the rest are links.
10557 # The last name is the one that the linker finds with -lNAME.
10558 library_names_spec=$lt_library_names_spec
10559
10560 # The coded name of the library, if different from the real name.
10561 soname_spec=$lt_soname_spec
10562
10563 # Commands used to build and install an old-style archive.
10564 RANLIB=$lt_RANLIB
10565 old_archive_cmds=$lt_old_archive_cmds
10566 old_postinstall_cmds=$lt_old_postinstall_cmds
10567 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10568
10569 # Create an old-style archive from a shared archive.
10570 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10571
10572 # Create a temporary old-style archive to link instead of a shared archive.
10573 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10574
10575 # Commands used to build and install a shared archive.
10576 archive_cmds=$lt_archive_cmds
10577 archive_expsym_cmds=$lt_archive_expsym_cmds
10578 postinstall_cmds=$lt_postinstall_cmds
10579 postuninstall_cmds=$lt_postuninstall_cmds
10580
10581 # Commands used to build a loadable module (assumed same as above if empty)
10582 module_cmds=$lt_module_cmds
10583 module_expsym_cmds=$lt_module_expsym_cmds
10584
10585 # Commands to strip libraries.
10586 old_striplib=$lt_old_striplib
10587 striplib=$lt_striplib
10588
10589 # Dependencies to place before the objects being linked to create a
10590 # shared library.
10591 predep_objects=$lt_predep_objects
10592
10593 # Dependencies to place after the objects being linked to create a
10594 # shared library.
10595 postdep_objects=$lt_postdep_objects
10596
10597 # Dependencies to place before the objects being linked to create a
10598 # shared library.
10599 predeps=$lt_predeps
10600
10601 # Dependencies to place after the objects being linked to create a
10602 # shared library.
10603 postdeps=$lt_postdeps
10604
10605 # The library search path used internally by the compiler when linking
10606 # a shared library.
10607 compiler_lib_search_path=$lt_compiler_lib_search_path
10608
10609 # Method to check whether dependent libraries are shared objects.
10610 deplibs_check_method=$lt_deplibs_check_method
10611
10612 # Command to use when deplibs_check_method == file_magic.
10613 file_magic_cmd=$lt_file_magic_cmd
10614
10615 # Flag that allows shared libraries with undefined symbols to be built.
10616 allow_undefined_flag=$lt_allow_undefined_flag
10617
10618 # Flag that forces no undefined symbols.
10619 no_undefined_flag=$lt_no_undefined_flag
10620
10621 # Commands used to finish a libtool library installation in a directory.
10622 finish_cmds=$lt_finish_cmds
10623
10624 # Same as above, but a single script fragment to be evaled but not shown.
10625 finish_eval=$lt_finish_eval
10626
10627 # Take the output of nm and produce a listing of raw symbols and C names.
10628 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10629
10630 # Transform the output of nm in a proper C declaration
10631 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10632
10633 # Transform the output of nm in a C name address pair
10634 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10635
10636 # This is the shared library runtime path variable.
10637 runpath_var=$runpath_var
10638
10639 # This is the shared library path variable.
10640 shlibpath_var=$shlibpath_var
10641
10642 # Is shlibpath searched before the hard-coded library search path?
10643 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10644
10645 # How to hardcode a shared library path into an executable.
10646 hardcode_action=$hardcode_action
10647
10648 # Whether we should hardcode library paths into libraries.
10649 hardcode_into_libs=$hardcode_into_libs
10650
10651 # Flag to hardcode \$libdir into a binary during linking.
10652 # This must work even if \$libdir does not exist.
10653 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10654
10655 # If ld is used when linking, flag to hardcode \$libdir into
10656 # a binary during linking. This must work even if \$libdir does
10657 # not exist.
10658 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10659
10660 # Whether we need a single -rpath flag with a separated argument.
10661 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10662
10663 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10664 # resulting binary.
10665 hardcode_direct=$hardcode_direct
10666
10667 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10668 # resulting binary.
10669 hardcode_minus_L=$hardcode_minus_L
10670
10671 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10672 # the resulting binary.
10673 hardcode_shlibpath_var=$hardcode_shlibpath_var
10674
10675 # Set to yes if building a shared library automatically hardcodes DIR into the library
10676 # and all subsequent libraries and executables linked against it.
10677 hardcode_automatic=$hardcode_automatic
10678
10679 # Variables whose values should be saved in libtool wrapper scripts and
10680 # restored at relink time.
10681 variables_saved_for_relink="$variables_saved_for_relink"
10682
10683 # Whether libtool must link a program against all its dependency libraries.
10684 link_all_deplibs=$link_all_deplibs
10685
10686 # Compile-time system search path for libraries
10687 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10688
10689 # Run-time system search path for libraries
10690 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10691
10692 # Fix the shell variable \$srcfile for the compiler.
10693 fix_srcfile_path="$fix_srcfile_path"
10694
10695 # Set to yes if exported symbols are required.
10696 always_export_symbols=$always_export_symbols
10697
10698 # The commands to list exported symbols.
10699 export_symbols_cmds=$lt_export_symbols_cmds
10700
10701 # The commands to extract the exported symbol list from a shared archive.
10702 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10703
10704 # Symbols that should not be listed in the preloaded symbols.
10705 exclude_expsyms=$lt_exclude_expsyms
10706
10707 # Symbols that must always be exported.
10708 include_expsyms=$lt_include_expsyms
10709
10710 # ### END LIBTOOL CONFIG
10711
10712 __EOF__
10713
10714
10715   case $host_os in
10716   aix3*)
10717     cat <<\EOF >> "$cfgfile"
10718
10719 # AIX sometimes has problems with the GCC collect2 program.  For some
10720 # reason, if we set the COLLECT_NAMES environment variable, the problems
10721 # vanish in a puff of smoke.
10722 if test "X${COLLECT_NAMES+set}" != Xset; then
10723   COLLECT_NAMES=
10724   export COLLECT_NAMES
10725 fi
10726 EOF
10727     ;;
10728   esac
10729
10730   # We use sed instead of cat because bash on DJGPP gets confused if
10731   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10732   # text mode, it properly converts lines to CR/LF.  This bash problem
10733   # is reportedly fixed, but why not run on old versions too?
10734   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10735
10736   mv -f "$cfgfile" "$ofile" || \
10737     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10738   chmod +x "$ofile"
10739
10740 else
10741   # If there is no Makefile yet, we rely on a make rule to execute
10742   # `config.status --recheck' to rerun these tests and create the
10743   # libtool script then.
10744   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10745   if test -f "$ltmain_in"; then
10746     test -f Makefile && make "$ltmain"
10747   fi
10748 fi
10749
10750
10751 ac_ext=c
10752 ac_cpp='$CPP $CPPFLAGS'
10753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10756
10757 CC="$lt_save_CC"
10758
10759
10760 # Check whether --with-tags was given.
10761 if test "${with_tags+set}" = set; then
10762   withval=$with_tags; tagnames="$withval"
10763 fi
10764
10765
10766 if test -f "$ltmain" && test -n "$tagnames"; then
10767   if test ! -f "${ofile}"; then
10768     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10769 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10770   fi
10771
10772   if test -z "$LTCC"; then
10773     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10774     if test -z "$LTCC"; then
10775       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10776 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10777     else
10778       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10779 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10780     fi
10781   fi
10782   if test -z "$LTCFLAGS"; then
10783     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10784   fi
10785
10786   # Extract list of available tagged configurations in $ofile.
10787   # Note that this assumes the entire list is on one line.
10788   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10789
10790   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10791   for tagname in $tagnames; do
10792     IFS="$lt_save_ifs"
10793     # Check whether tagname contains only valid characters
10794     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10795     "") ;;
10796     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10797 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10798    { (exit 1); exit 1; }; }
10799         ;;
10800     esac
10801
10802     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10803     then
10804       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10805 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10806    { (exit 1); exit 1; }; }
10807     fi
10808
10809     # Update the list of available tags.
10810     if test -n "$tagname"; then
10811       echo appending configuration tag \"$tagname\" to $ofile
10812
10813       case $tagname in
10814       CXX)
10815         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10816             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10817             (test "X$CXX" != "Xg++"))) ; then
10818           ac_ext=cpp
10819 ac_cpp='$CXXCPP $CPPFLAGS'
10820 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10821 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10822 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10823
10824
10825
10826
10827 archive_cmds_need_lc_CXX=no
10828 allow_undefined_flag_CXX=
10829 always_export_symbols_CXX=no
10830 archive_expsym_cmds_CXX=
10831 export_dynamic_flag_spec_CXX=
10832 hardcode_direct_CXX=no
10833 hardcode_libdir_flag_spec_CXX=
10834 hardcode_libdir_flag_spec_ld_CXX=
10835 hardcode_libdir_separator_CXX=
10836 hardcode_minus_L_CXX=no
10837 hardcode_shlibpath_var_CXX=unsupported
10838 hardcode_automatic_CXX=no
10839 module_cmds_CXX=
10840 module_expsym_cmds_CXX=
10841 link_all_deplibs_CXX=unknown
10842 old_archive_cmds_CXX=$old_archive_cmds
10843 no_undefined_flag_CXX=
10844 whole_archive_flag_spec_CXX=
10845 enable_shared_with_static_runtimes_CXX=no
10846
10847 # Dependencies to place before and after the object being linked:
10848 predep_objects_CXX=
10849 postdep_objects_CXX=
10850 predeps_CXX=
10851 postdeps_CXX=
10852 compiler_lib_search_path_CXX=
10853
10854 # Source file extension for C++ test sources.
10855 ac_ext=cpp
10856
10857 # Object file extension for compiled C++ test sources.
10858 objext=o
10859 objext_CXX=$objext
10860
10861 # Code to be used in simple compile tests
10862 lt_simple_compile_test_code="int some_variable = 0;\n"
10863
10864 # Code to be used in simple link tests
10865 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10866
10867 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10868
10869 # If no C compiler was specified, use CC.
10870 LTCC=${LTCC-"$CC"}
10871
10872 # If no C compiler flags were specified, use CFLAGS.
10873 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10874
10875 # Allow CC to be a program name with arguments.
10876 compiler=$CC
10877
10878
10879 # save warnings/boilerplate of simple test code
10880 ac_outfile=conftest.$ac_objext
10881 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10882 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10883 _lt_compiler_boilerplate=`cat conftest.err`
10884 $rm conftest*
10885
10886 ac_outfile=conftest.$ac_objext
10887 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10888 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10889 _lt_linker_boilerplate=`cat conftest.err`
10890 $rm conftest*
10891
10892
10893 # Allow CC to be a program name with arguments.
10894 lt_save_CC=$CC
10895 lt_save_LD=$LD
10896 lt_save_GCC=$GCC
10897 GCC=$GXX
10898 lt_save_with_gnu_ld=$with_gnu_ld
10899 lt_save_path_LD=$lt_cv_path_LD
10900 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10901   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10902 else
10903   $as_unset lt_cv_prog_gnu_ld
10904 fi
10905 if test -n "${lt_cv_path_LDCXX+set}"; then
10906   lt_cv_path_LD=$lt_cv_path_LDCXX
10907 else
10908   $as_unset lt_cv_path_LD
10909 fi
10910 test -z "${LDCXX+set}" || LD=$LDCXX
10911 CC=${CXX-"c++"}
10912 compiler=$CC
10913 compiler_CXX=$CC
10914 for cc_temp in $compiler""; do
10915   case $cc_temp in
10916     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10917     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10918     \-*) ;;
10919     *) break;;
10920   esac
10921 done
10922 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10923
10924
10925 # We don't want -fno-exception wen compiling C++ code, so set the
10926 # no_builtin_flag separately
10927 if test "$GXX" = yes; then
10928   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10929 else
10930   lt_prog_compiler_no_builtin_flag_CXX=
10931 fi
10932
10933 if test "$GXX" = yes; then
10934   # Set up default GNU C++ configuration
10935
10936
10937 # Check whether --with-gnu-ld was given.
10938 if test "${with_gnu_ld+set}" = set; then
10939   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10940 else
10941   with_gnu_ld=no
10942 fi
10943
10944 ac_prog=ld
10945 if test "$GCC" = yes; then
10946   # Check if gcc -print-prog-name=ld gives a path.
10947   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10948 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10949   case $host in
10950   *-*-mingw*)
10951     # gcc leaves a trailing carriage return which upsets mingw
10952     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10953   *)
10954     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10955   esac
10956   case $ac_prog in
10957     # Accept absolute paths.
10958     [\\/]* | ?:[\\/]*)
10959       re_direlt='/[^/][^/]*/\.\./'
10960       # Canonicalize the pathname of ld
10961       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10962       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10963         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10964       done
10965       test -z "$LD" && LD="$ac_prog"
10966       ;;
10967   "")
10968     # If it fails, then pretend we aren't using GCC.
10969     ac_prog=ld
10970     ;;
10971   *)
10972     # If it is relative, then search for the first ld in PATH.
10973     with_gnu_ld=unknown
10974     ;;
10975   esac
10976 elif test "$with_gnu_ld" = yes; then
10977   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10978 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10979 else
10980   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10981 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10982 fi
10983 if test "${lt_cv_path_LD+set}" = set; then
10984   echo $ECHO_N "(cached) $ECHO_C" >&6
10985 else
10986   if test -z "$LD"; then
10987   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10988   for ac_dir in $PATH; do
10989     IFS="$lt_save_ifs"
10990     test -z "$ac_dir" && ac_dir=.
10991     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10992       lt_cv_path_LD="$ac_dir/$ac_prog"
10993       # Check to see if the program is GNU ld.  I'd rather use --version,
10994       # but apparently some variants of GNU ld only accept -v.
10995       # Break only if it was the GNU/non-GNU ld that we prefer.
10996       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10997       *GNU* | *'with BFD'*)
10998         test "$with_gnu_ld" != no && break
10999         ;;
11000       *)
11001         test "$with_gnu_ld" != yes && break
11002         ;;
11003       esac
11004     fi
11005   done
11006   IFS="$lt_save_ifs"
11007 else
11008   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11009 fi
11010 fi
11011
11012 LD="$lt_cv_path_LD"
11013 if test -n "$LD"; then
11014   { echo "$as_me:$LINENO: result: $LD" >&5
11015 echo "${ECHO_T}$LD" >&6; }
11016 else
11017   { echo "$as_me:$LINENO: result: no" >&5
11018 echo "${ECHO_T}no" >&6; }
11019 fi
11020 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11021 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11022    { (exit 1); exit 1; }; }
11023 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11024 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11025 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11026   echo $ECHO_N "(cached) $ECHO_C" >&6
11027 else
11028   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11029 case `$LD -v 2>&1 </dev/null` in
11030 *GNU* | *'with BFD'*)
11031   lt_cv_prog_gnu_ld=yes
11032   ;;
11033 *)
11034   lt_cv_prog_gnu_ld=no
11035   ;;
11036 esac
11037 fi
11038 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11039 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11040 with_gnu_ld=$lt_cv_prog_gnu_ld
11041
11042
11043
11044   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11045   # archiving commands below assume that GNU ld is being used.
11046   if test "$with_gnu_ld" = yes; then
11047     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11048     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11049
11050     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11051     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11052
11053     # If archive_cmds runs LD, not CC, wlarc should be empty
11054     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11055     #     investigate it a little bit more. (MM)
11056     wlarc='${wl}'
11057
11058     # ancient GNU ld didn't support --whole-archive et. al.
11059     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11060         grep 'no-whole-archive' > /dev/null; then
11061       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11062     else
11063       whole_archive_flag_spec_CXX=
11064     fi
11065   else
11066     with_gnu_ld=no
11067     wlarc=
11068
11069     # A generic and very simple default shared library creation
11070     # command for GNU C++ for the case where it uses the native
11071     # linker, instead of GNU ld.  If possible, this setting should
11072     # overridden to take advantage of the native linker features on
11073     # the platform it is being used on.
11074     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11075   fi
11076
11077   # Commands to make compiler produce verbose output that lists
11078   # what "hidden" libraries, object files and flags are used when
11079   # linking a shared library.
11080   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11081
11082 else
11083   GXX=no
11084   with_gnu_ld=no
11085   wlarc=
11086 fi
11087
11088 # PORTME: fill in a description of your system's C++ link characteristics
11089 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11090 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11091 ld_shlibs_CXX=yes
11092 case $host_os in
11093   aix3*)
11094     # FIXME: insert proper C++ library support
11095     ld_shlibs_CXX=no
11096     ;;
11097   aix4* | aix5*)
11098     if test "$host_cpu" = ia64; then
11099       # On IA64, the linker does run time linking by default, so we don't
11100       # have to do anything special.
11101       aix_use_runtimelinking=no
11102       exp_sym_flag='-Bexport'
11103       no_entry_flag=""
11104     else
11105       aix_use_runtimelinking=no
11106
11107       # Test if we are trying to use run time linking or normal
11108       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11109       # need to do runtime linking.
11110       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11111         for ld_flag in $LDFLAGS; do
11112           case $ld_flag in
11113           *-brtl*)
11114             aix_use_runtimelinking=yes
11115             break
11116             ;;
11117           esac
11118         done
11119         ;;
11120       esac
11121
11122       exp_sym_flag='-bexport'
11123       no_entry_flag='-bnoentry'
11124     fi
11125
11126     # When large executables or shared objects are built, AIX ld can
11127     # have problems creating the table of contents.  If linking a library
11128     # or program results in "error TOC overflow" add -mminimal-toc to
11129     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11130     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11131
11132     archive_cmds_CXX=''
11133     hardcode_direct_CXX=yes
11134     hardcode_libdir_separator_CXX=':'
11135     link_all_deplibs_CXX=yes
11136
11137     if test "$GXX" = yes; then
11138       case $host_os in aix4.[012]|aix4.[012].*)
11139       # We only want to do this on AIX 4.2 and lower, the check
11140       # below for broken collect2 doesn't work under 4.3+
11141         collect2name=`${CC} -print-prog-name=collect2`
11142         if test -f "$collect2name" && \
11143            strings "$collect2name" | grep resolve_lib_name >/dev/null
11144         then
11145           # We have reworked collect2
11146           hardcode_direct_CXX=yes
11147         else
11148           # We have old collect2
11149           hardcode_direct_CXX=unsupported
11150           # It fails to find uninstalled libraries when the uninstalled
11151           # path is not listed in the libpath.  Setting hardcode_minus_L
11152           # to unsupported forces relinking
11153           hardcode_minus_L_CXX=yes
11154           hardcode_libdir_flag_spec_CXX='-L$libdir'
11155           hardcode_libdir_separator_CXX=
11156         fi
11157         ;;
11158       esac
11159       shared_flag='-shared'
11160       if test "$aix_use_runtimelinking" = yes; then
11161         shared_flag="$shared_flag "'${wl}-G'
11162       fi
11163     else
11164       # not using gcc
11165       if test "$host_cpu" = ia64; then
11166         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11167         # chokes on -Wl,-G. The following line is correct:
11168         shared_flag='-G'
11169       else
11170         if test "$aix_use_runtimelinking" = yes; then
11171           shared_flag='${wl}-G'
11172         else
11173           shared_flag='${wl}-bM:SRE'
11174         fi
11175       fi
11176     fi
11177
11178     # It seems that -bexpall does not export symbols beginning with
11179     # underscore (_), so it is better to generate a list of symbols to export.
11180     always_export_symbols_CXX=yes
11181     if test "$aix_use_runtimelinking" = yes; then
11182       # Warning - without using the other runtime loading flags (-brtl),
11183       # -berok will link without error, but may produce a broken library.
11184       allow_undefined_flag_CXX='-berok'
11185       # Determine the default libpath from the value encoded in an empty executable.
11186       cat >conftest.$ac_ext <<_ACEOF
11187 /* confdefs.h.  */
11188 _ACEOF
11189 cat confdefs.h >>conftest.$ac_ext
11190 cat >>conftest.$ac_ext <<_ACEOF
11191 /* end confdefs.h.  */
11192
11193 int
11194 main ()
11195 {
11196
11197   ;
11198   return 0;
11199 }
11200 _ACEOF
11201 rm -f conftest.$ac_objext conftest$ac_exeext
11202 if { (ac_try="$ac_link"
11203 case "(($ac_try" in
11204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205   *) ac_try_echo=$ac_try;;
11206 esac
11207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11208   (eval "$ac_link") 2>conftest.er1
11209   ac_status=$?
11210   grep -v '^ *+' conftest.er1 >conftest.err
11211   rm -f conftest.er1
11212   cat conftest.err >&5
11213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214   (exit $ac_status); } && {
11215          test -z "$ac_cxx_werror_flag" ||
11216          test ! -s conftest.err
11217        } && test -s conftest$ac_exeext &&
11218        $as_test_x conftest$ac_exeext; then
11219
11220 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11221 }'`
11222 # Check for a 64-bit object if we didn't find anything.
11223 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11224 }'`; fi
11225 else
11226   echo "$as_me: failed program was:" >&5
11227 sed 's/^/| /' conftest.$ac_ext >&5
11228
11229
11230 fi
11231
11232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11233       conftest$ac_exeext conftest.$ac_ext
11234 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11235
11236       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11237
11238       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11239      else
11240       if test "$host_cpu" = ia64; then
11241         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11242         allow_undefined_flag_CXX="-z nodefs"
11243         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11244       else
11245         # Determine the default libpath from the value encoded in an empty executable.
11246         cat >conftest.$ac_ext <<_ACEOF
11247 /* confdefs.h.  */
11248 _ACEOF
11249 cat confdefs.h >>conftest.$ac_ext
11250 cat >>conftest.$ac_ext <<_ACEOF
11251 /* end confdefs.h.  */
11252
11253 int
11254 main ()
11255 {
11256
11257   ;
11258   return 0;
11259 }
11260 _ACEOF
11261 rm -f conftest.$ac_objext conftest$ac_exeext
11262 if { (ac_try="$ac_link"
11263 case "(($ac_try" in
11264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11265   *) ac_try_echo=$ac_try;;
11266 esac
11267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11268   (eval "$ac_link") 2>conftest.er1
11269   ac_status=$?
11270   grep -v '^ *+' conftest.er1 >conftest.err
11271   rm -f conftest.er1
11272   cat conftest.err >&5
11273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274   (exit $ac_status); } && {
11275          test -z "$ac_cxx_werror_flag" ||
11276          test ! -s conftest.err
11277        } && test -s conftest$ac_exeext &&
11278        $as_test_x conftest$ac_exeext; then
11279
11280 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11281 }'`
11282 # Check for a 64-bit object if we didn't find anything.
11283 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11284 }'`; fi
11285 else
11286   echo "$as_me: failed program was:" >&5
11287 sed 's/^/| /' conftest.$ac_ext >&5
11288
11289
11290 fi
11291
11292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11293       conftest$ac_exeext conftest.$ac_ext
11294 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11295
11296         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11297         # Warning - without using the other run time loading flags,
11298         # -berok will link without error, but may produce a broken library.
11299         no_undefined_flag_CXX=' ${wl}-bernotok'
11300         allow_undefined_flag_CXX=' ${wl}-berok'
11301         # Exported symbols can be pulled into shared objects from archives
11302         whole_archive_flag_spec_CXX='$convenience'
11303         archive_cmds_need_lc_CXX=yes
11304         # This is similar to how AIX traditionally builds its shared libraries.
11305         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11306       fi
11307     fi
11308     ;;
11309
11310   beos*)
11311     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11312       allow_undefined_flag_CXX=unsupported
11313       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11314       # support --undefined.  This deserves some investigation.  FIXME
11315       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11316     else
11317       ld_shlibs_CXX=no
11318     fi
11319     ;;
11320
11321   chorus*)
11322     case $cc_basename in
11323       *)
11324         # FIXME: insert proper C++ library support
11325         ld_shlibs_CXX=no
11326         ;;
11327     esac
11328     ;;
11329
11330   cygwin* | mingw* | pw32*)
11331     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11332     # as there is no search path for DLLs.
11333     hardcode_libdir_flag_spec_CXX='-L$libdir'
11334     allow_undefined_flag_CXX=unsupported
11335     always_export_symbols_CXX=no
11336     enable_shared_with_static_runtimes_CXX=yes
11337
11338     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11339       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11340       # If the export-symbols file already is a .def file (1st line
11341       # is EXPORTS), use it as is; otherwise, prepend...
11342       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11343         cp $export_symbols $output_objdir/$soname.def;
11344       else
11345         echo EXPORTS > $output_objdir/$soname.def;
11346         cat $export_symbols >> $output_objdir/$soname.def;
11347       fi~
11348       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11349     else
11350       ld_shlibs_CXX=no
11351     fi
11352   ;;
11353       darwin* | rhapsody*)
11354         case $host_os in
11355         rhapsody* | darwin1.[012])
11356          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11357          ;;
11358        *) # Darwin 1.3 on
11359          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11360            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11361          else
11362            case ${MACOSX_DEPLOYMENT_TARGET} in
11363              10.[012])
11364                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11365                ;;
11366              10.*)
11367                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11368                ;;
11369            esac
11370          fi
11371          ;;
11372         esac
11373       archive_cmds_need_lc_CXX=no
11374       hardcode_direct_CXX=no
11375       hardcode_automatic_CXX=yes
11376       hardcode_shlibpath_var_CXX=unsupported
11377       whole_archive_flag_spec_CXX=''
11378       link_all_deplibs_CXX=yes
11379
11380     if test "$GXX" = yes ; then
11381       lt_int_apple_cc_single_mod=no
11382       output_verbose_link_cmd='echo'
11383       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11384        lt_int_apple_cc_single_mod=yes
11385       fi
11386       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11387        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11388       else
11389           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11390         fi
11391         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11392         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11393           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11394             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11395           else
11396             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11397           fi
11398             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11399       else
11400       case $cc_basename in
11401         xlc*)
11402          output_verbose_link_cmd='echo'
11403           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11404           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11405           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11406           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11407           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11408           ;;
11409        *)
11410          ld_shlibs_CXX=no
11411           ;;
11412       esac
11413       fi
11414         ;;
11415
11416   dgux*)
11417     case $cc_basename in
11418       ec++*)
11419         # FIXME: insert proper C++ library support
11420         ld_shlibs_CXX=no
11421         ;;
11422       ghcx*)
11423         # Green Hills C++ Compiler
11424         # FIXME: insert proper C++ library support
11425         ld_shlibs_CXX=no
11426         ;;
11427       *)
11428         # FIXME: insert proper C++ library support
11429         ld_shlibs_CXX=no
11430         ;;
11431     esac
11432     ;;
11433   freebsd[12]*)
11434     # C++ shared libraries reported to be fairly broken before switch to ELF
11435     ld_shlibs_CXX=no
11436     ;;
11437   freebsd-elf*)
11438     archive_cmds_need_lc_CXX=no
11439     ;;
11440   freebsd* | dragonfly*)
11441     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11442     # conventions
11443     ld_shlibs_CXX=yes
11444     ;;
11445   gnu*)
11446     ;;
11447   hpux9*)
11448     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11449     hardcode_libdir_separator_CXX=:
11450     export_dynamic_flag_spec_CXX='${wl}-E'
11451     hardcode_direct_CXX=yes
11452     hardcode_minus_L_CXX=yes # Not in the search PATH,
11453                                 # but as the default
11454                                 # location of the library.
11455
11456     case $cc_basename in
11457     CC*)
11458       # FIXME: insert proper C++ library support
11459       ld_shlibs_CXX=no
11460       ;;
11461     aCC*)
11462       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11463       # Commands to make compiler produce verbose output that lists
11464       # what "hidden" libraries, object files and flags are used when
11465       # linking a shared library.
11466       #
11467       # There doesn't appear to be a way to prevent this compiler from
11468       # explicitly linking system object files so we need to strip them
11469       # from the output so that they don't get included in the library
11470       # dependencies.
11471       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11472       ;;
11473     *)
11474       if test "$GXX" = yes; then
11475         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11476       else
11477         # FIXME: insert proper C++ library support
11478         ld_shlibs_CXX=no
11479       fi
11480       ;;
11481     esac
11482     ;;
11483   hpux10*|hpux11*)
11484     if test $with_gnu_ld = no; then
11485       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11486       hardcode_libdir_separator_CXX=:
11487
11488       case $host_cpu in
11489       hppa*64*|ia64*)
11490         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11491         ;;
11492       *)
11493         export_dynamic_flag_spec_CXX='${wl}-E'
11494         ;;
11495       esac
11496     fi
11497     case $host_cpu in
11498     hppa*64*|ia64*)
11499       hardcode_direct_CXX=no
11500       hardcode_shlibpath_var_CXX=no
11501       ;;
11502     *)
11503       hardcode_direct_CXX=yes
11504       hardcode_minus_L_CXX=yes # Not in the search PATH,
11505                                               # but as the default
11506                                               # location of the library.
11507       ;;
11508     esac
11509
11510     case $cc_basename in
11511       CC*)
11512         # FIXME: insert proper C++ library support
11513         ld_shlibs_CXX=no
11514         ;;
11515       aCC*)
11516         case $host_cpu in
11517         hppa*64*)
11518           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11519           ;;
11520         ia64*)
11521           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11522           ;;
11523         *)
11524           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11525           ;;
11526         esac
11527         # Commands to make compiler produce verbose output that lists
11528         # what "hidden" libraries, object files and flags are used when
11529         # linking a shared library.
11530         #
11531         # There doesn't appear to be a way to prevent this compiler from
11532         # explicitly linking system object files so we need to strip them
11533         # from the output so that they don't get included in the library
11534         # dependencies.
11535         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11536         ;;
11537       *)
11538         if test "$GXX" = yes; then
11539           if test $with_gnu_ld = no; then
11540             case $host_cpu in
11541             hppa*64*)
11542               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11543               ;;
11544             ia64*)
11545               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11546               ;;
11547             *)
11548               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11549               ;;
11550             esac
11551           fi
11552         else
11553           # FIXME: insert proper C++ library support
11554           ld_shlibs_CXX=no
11555         fi
11556         ;;
11557     esac
11558     ;;
11559   interix3*)
11560     hardcode_direct_CXX=no
11561     hardcode_shlibpath_var_CXX=no
11562     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11563     export_dynamic_flag_spec_CXX='${wl}-E'
11564     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11565     # Instead, shared libraries are loaded at an image base (0x10000000 by
11566     # default) and relocated if they conflict, which is a slow very memory
11567     # consuming and fragmenting process.  To avoid this, we pick a random,
11568     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11569     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11570     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11571     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11572     ;;
11573   irix5* | irix6*)
11574     case $cc_basename in
11575       CC*)
11576         # SGI C++
11577         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11578
11579         # Archives containing C++ object files must be created using
11580         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11581         # necessary to make sure instantiated templates are included
11582         # in the archive.
11583         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11584         ;;
11585       *)
11586         if test "$GXX" = yes; then
11587           if test "$with_gnu_ld" = no; then
11588             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
11589           else
11590             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11591           fi
11592         fi
11593         link_all_deplibs_CXX=yes
11594         ;;
11595     esac
11596     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11597     hardcode_libdir_separator_CXX=:
11598     ;;
11599   linux* | k*bsd*-gnu)
11600     case $cc_basename in
11601       KCC*)
11602         # Kuck and Associates, Inc. (KAI) C++ Compiler
11603
11604         # KCC will only create a shared library if the output file
11605         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11606         # to its proper name (with version) after linking.
11607         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11608         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11609         # Commands to make compiler produce verbose output that lists
11610         # what "hidden" libraries, object files and flags are used when
11611         # linking a shared library.
11612         #
11613         # There doesn't appear to be a way to prevent this compiler from
11614         # explicitly linking system object files so we need to strip them
11615         # from the output so that they don't get included in the library
11616         # dependencies.
11617         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11618
11619         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11620         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11621
11622         # Archives containing C++ object files must be created using
11623         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11624         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11625         ;;
11626       icpc*)
11627         # Intel C++
11628         with_gnu_ld=yes
11629         # version 8.0 and above of icpc choke on multiply defined symbols
11630         # if we add $predep_objects and $postdep_objects, however 7.1 and
11631         # earlier do not add the objects themselves.
11632         case `$CC -V 2>&1` in
11633         *"Version 7."*)
11634           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11635           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11636           ;;
11637         *)  # Version 8.0 or newer
11638           tmp_idyn=
11639           case $host_cpu in
11640             ia64*) tmp_idyn=' -i_dynamic';;
11641           esac
11642           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11643           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11644           ;;
11645         esac
11646         archive_cmds_need_lc_CXX=no
11647         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11648         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11649         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11650         ;;
11651       pgCC*)
11652         # Portland Group C++ compiler
11653         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11654         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11655
11656         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11657         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11658         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11659         ;;
11660       cxx*)
11661         # Compaq C++
11662         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11663         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11664
11665         runpath_var=LD_RUN_PATH
11666         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11667         hardcode_libdir_separator_CXX=:
11668
11669         # Commands to make compiler produce verbose output that lists
11670         # what "hidden" libraries, object files and flags are used when
11671         # linking a shared library.
11672         #
11673         # There doesn't appear to be a way to prevent this compiler from
11674         # explicitly linking system object files so we need to strip them
11675         # from the output so that they don't get included in the library
11676         # dependencies.
11677         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11678         ;;
11679     esac
11680     ;;
11681   lynxos*)
11682     # FIXME: insert proper C++ library support
11683     ld_shlibs_CXX=no
11684     ;;
11685   m88k*)
11686     # FIXME: insert proper C++ library support
11687     ld_shlibs_CXX=no
11688     ;;
11689   mvs*)
11690     case $cc_basename in
11691       cxx*)
11692         # FIXME: insert proper C++ library support
11693         ld_shlibs_CXX=no
11694         ;;
11695       *)
11696         # FIXME: insert proper C++ library support
11697         ld_shlibs_CXX=no
11698         ;;
11699     esac
11700     ;;
11701   netbsd* | netbsdelf*-gnu)
11702     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11703       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11704       wlarc=
11705       hardcode_libdir_flag_spec_CXX='-R$libdir'
11706       hardcode_direct_CXX=yes
11707       hardcode_shlibpath_var_CXX=no
11708     fi
11709     # Workaround some broken pre-1.5 toolchains
11710     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11711     ;;
11712   openbsd2*)
11713     # C++ shared libraries are fairly broken
11714     ld_shlibs_CXX=no
11715     ;;
11716   openbsd*)
11717     hardcode_direct_CXX=yes
11718     hardcode_shlibpath_var_CXX=no
11719     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11720     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11721     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11722       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11723       export_dynamic_flag_spec_CXX='${wl}-E'
11724       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11725     fi
11726     output_verbose_link_cmd='echo'
11727     ;;
11728   osf3*)
11729     case $cc_basename in
11730       KCC*)
11731         # Kuck and Associates, Inc. (KAI) C++ Compiler
11732
11733         # KCC will only create a shared library if the output file
11734         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11735         # to its proper name (with version) after linking.
11736         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11737
11738         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11739         hardcode_libdir_separator_CXX=:
11740
11741         # Archives containing C++ object files must be created using
11742         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11743         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11744
11745         ;;
11746       RCC*)
11747         # Rational C++ 2.4.1
11748         # FIXME: insert proper C++ library support
11749         ld_shlibs_CXX=no
11750         ;;
11751       cxx*)
11752         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11753         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11754
11755         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11756         hardcode_libdir_separator_CXX=:
11757
11758         # Commands to make compiler produce verbose output that lists
11759         # what "hidden" libraries, object files and flags are used when
11760         # linking a shared library.
11761         #
11762         # There doesn't appear to be a way to prevent this compiler from
11763         # explicitly linking system object files so we need to strip them
11764         # from the output so that they don't get included in the library
11765         # dependencies.
11766         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11767         ;;
11768       *)
11769         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11770           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11771           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
11772
11773           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11774           hardcode_libdir_separator_CXX=:
11775
11776           # Commands to make compiler produce verbose output that lists
11777           # what "hidden" libraries, object files and flags are used when
11778           # linking a shared library.
11779           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11780
11781         else
11782           # FIXME: insert proper C++ library support
11783           ld_shlibs_CXX=no
11784         fi
11785         ;;
11786     esac
11787     ;;
11788   osf4* | osf5*)
11789     case $cc_basename in
11790       KCC*)
11791         # Kuck and Associates, Inc. (KAI) C++ Compiler
11792
11793         # KCC will only create a shared library if the output file
11794         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11795         # to its proper name (with version) after linking.
11796         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11797
11798         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11799         hardcode_libdir_separator_CXX=:
11800
11801         # Archives containing C++ object files must be created using
11802         # the KAI C++ compiler.
11803         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11804         ;;
11805       RCC*)
11806         # Rational C++ 2.4.1
11807         # FIXME: insert proper C++ library support
11808         ld_shlibs_CXX=no
11809         ;;
11810       cxx*)
11811         allow_undefined_flag_CXX=' -expect_unresolved \*'
11812         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11813         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11814           echo "-hidden">> $lib.exp~
11815           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11816           $rm $lib.exp'
11817
11818         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11819         hardcode_libdir_separator_CXX=:
11820
11821         # Commands to make compiler produce verbose output that lists
11822         # what "hidden" libraries, object files and flags are used when
11823         # linking a shared library.
11824         #
11825         # There doesn't appear to be a way to prevent this compiler from
11826         # explicitly linking system object files so we need to strip them
11827         # from the output so that they don't get included in the library
11828         # dependencies.
11829         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11830         ;;
11831       *)
11832         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11833           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11834          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
11835
11836           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11837           hardcode_libdir_separator_CXX=:
11838
11839           # Commands to make compiler produce verbose output that lists
11840           # what "hidden" libraries, object files and flags are used when
11841           # linking a shared library.
11842           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11843
11844         else
11845           # FIXME: insert proper C++ library support
11846           ld_shlibs_CXX=no
11847         fi
11848         ;;
11849     esac
11850     ;;
11851   psos*)
11852     # FIXME: insert proper C++ library support
11853     ld_shlibs_CXX=no
11854     ;;
11855   sunos4*)
11856     case $cc_basename in
11857       CC*)
11858         # Sun C++ 4.x
11859         # FIXME: insert proper C++ library support
11860         ld_shlibs_CXX=no
11861         ;;
11862       lcc*)
11863         # Lucid
11864         # FIXME: insert proper C++ library support
11865         ld_shlibs_CXX=no
11866         ;;
11867       *)
11868         # FIXME: insert proper C++ library support
11869         ld_shlibs_CXX=no
11870         ;;
11871     esac
11872     ;;
11873   solaris*)
11874     case $cc_basename in
11875       CC*)
11876         # Sun C++ 4.2, 5.x and Centerline C++
11877         archive_cmds_need_lc_CXX=yes
11878         no_undefined_flag_CXX=' -zdefs'
11879         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11880         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11881         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11882
11883         hardcode_libdir_flag_spec_CXX='-R$libdir'
11884         hardcode_shlibpath_var_CXX=no
11885         case $host_os in
11886           solaris2.[0-5] | solaris2.[0-5].*) ;;
11887           *)
11888             # The C++ compiler is used as linker so we must use $wl
11889             # flag to pass the commands to the underlying system
11890             # linker. We must also pass each convience library through
11891             # to the system linker between allextract/defaultextract.
11892             # The C++ compiler will combine linker options so we
11893             # cannot just pass the convience library names through
11894             # without $wl.
11895             # Supported since Solaris 2.6 (maybe 2.5.1?)
11896             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11897             ;;
11898         esac
11899         link_all_deplibs_CXX=yes
11900
11901         output_verbose_link_cmd='echo'
11902
11903         # Archives containing C++ object files must be created using
11904         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11905         # necessary to make sure instantiated templates are included
11906         # in the archive.
11907         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11908         ;;
11909       gcx*)
11910         # Green Hills C++ Compiler
11911         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11912
11913         # The C++ compiler must be used to create the archive.
11914         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11915         ;;
11916       *)
11917         # GNU C++ compiler with Solaris linker
11918         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11919           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11920           if $CC --version | grep -v '^2\.7' > /dev/null; then
11921             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11922             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11923                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11924
11925             # Commands to make compiler produce verbose output that lists
11926             # what "hidden" libraries, object files and flags are used when
11927             # linking a shared library.
11928             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11929           else
11930             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11931             # platform.
11932             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11933             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11934                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11935
11936             # Commands to make compiler produce verbose output that lists
11937             # what "hidden" libraries, object files and flags are used when
11938             # linking a shared library.
11939             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11940           fi
11941
11942           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11943         fi
11944         ;;
11945     esac
11946     ;;
11947   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11948     no_undefined_flag_CXX='${wl}-z,text'
11949     archive_cmds_need_lc_CXX=no
11950     hardcode_shlibpath_var_CXX=no
11951     runpath_var='LD_RUN_PATH'
11952
11953     case $cc_basename in
11954       CC*)
11955         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11956         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11957         ;;
11958       *)
11959         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11960         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11961         ;;
11962     esac
11963     ;;
11964   sysv5* | sco3.2v5* | sco5v6*)
11965     # Note: We can NOT use -z defs as we might desire, because we do not
11966     # link with -lc, and that would cause any symbols used from libc to
11967     # always be unresolved, which means just about no library would
11968     # ever link correctly.  If we're not using GNU ld we use -z text
11969     # though, which does catch some bad symbols but isn't as heavy-handed
11970     # as -z defs.
11971     # For security reasons, it is highly recommended that you always
11972     # use absolute paths for naming shared libraries, and exclude the
11973     # DT_RUNPATH tag from executables and libraries.  But doing so
11974     # requires that you compile everything twice, which is a pain.
11975     # So that behaviour is only enabled if SCOABSPATH is set to a
11976     # non-empty value in the environment.  Most likely only useful for
11977     # creating official distributions of packages.
11978     # This is a hack until libtool officially supports absolute path
11979     # names for shared libraries.
11980     no_undefined_flag_CXX='${wl}-z,text'
11981     allow_undefined_flag_CXX='${wl}-z,nodefs'
11982     archive_cmds_need_lc_CXX=no
11983     hardcode_shlibpath_var_CXX=no
11984     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11985     hardcode_libdir_separator_CXX=':'
11986     link_all_deplibs_CXX=yes
11987     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11988     runpath_var='LD_RUN_PATH'
11989
11990     case $cc_basename in
11991       CC*)
11992         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11993         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11994         ;;
11995       *)
11996         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11997         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11998         ;;
11999     esac
12000     ;;
12001   tandem*)
12002     case $cc_basename in
12003       NCC*)
12004         # NonStop-UX NCC 3.20
12005         # FIXME: insert proper C++ library support
12006         ld_shlibs_CXX=no
12007         ;;
12008       *)
12009         # FIXME: insert proper C++ library support
12010         ld_shlibs_CXX=no
12011         ;;
12012     esac
12013     ;;
12014   vxworks*)
12015     # FIXME: insert proper C++ library support
12016     ld_shlibs_CXX=no
12017     ;;
12018   *)
12019     # FIXME: insert proper C++ library support
12020     ld_shlibs_CXX=no
12021     ;;
12022 esac
12023 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12024 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12025 test "$ld_shlibs_CXX" = no && can_build_shared=no
12026
12027 GCC_CXX="$GXX"
12028 LD_CXX="$LD"
12029
12030
12031 cat > conftest.$ac_ext <<EOF
12032 class Foo
12033 {
12034 public:
12035   Foo (void) { a = 0; }
12036 private:
12037   int a;
12038 };
12039 EOF
12040
12041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12042   (eval $ac_compile) 2>&5
12043   ac_status=$?
12044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045   (exit $ac_status); }; then
12046   # Parse the compiler output and extract the necessary
12047   # objects, libraries and library flags.
12048
12049   # Sentinel used to keep track of whether or not we are before
12050   # the conftest object file.
12051   pre_test_object_deps_done=no
12052
12053   # The `*' in the case matches for architectures that use `case' in
12054   # $output_verbose_cmd can trigger glob expansion during the loop
12055   # eval without this substitution.
12056   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12057
12058   for p in `eval $output_verbose_link_cmd`; do
12059     case $p in
12060
12061     -L* | -R* | -l*)
12062        # Some compilers place space between "-{L,R}" and the path.
12063        # Remove the space.
12064        if test $p = "-L" \
12065           || test $p = "-R"; then
12066          prev=$p
12067          continue
12068        else
12069          prev=
12070        fi
12071
12072        if test "$pre_test_object_deps_done" = no; then
12073          case $p in
12074          -L* | -R*)
12075            # Internal compiler library paths should come after those
12076            # provided the user.  The postdeps already come after the
12077            # user supplied libs so there is no need to process them.
12078            if test -z "$compiler_lib_search_path_CXX"; then
12079              compiler_lib_search_path_CXX="${prev}${p}"
12080            else
12081              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12082            fi
12083            ;;
12084          # The "-l" case would never come before the object being
12085          # linked, so don't bother handling this case.
12086          esac
12087        else
12088          if test -z "$postdeps_CXX"; then
12089            postdeps_CXX="${prev}${p}"
12090          else
12091            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12092          fi
12093        fi
12094        ;;
12095
12096     *.$objext)
12097        # This assumes that the test object file only shows up
12098        # once in the compiler output.
12099        if test "$p" = "conftest.$objext"; then
12100          pre_test_object_deps_done=yes
12101          continue
12102        fi
12103
12104        if test "$pre_test_object_deps_done" = no; then
12105          if test -z "$predep_objects_CXX"; then
12106            predep_objects_CXX="$p"
12107          else
12108            predep_objects_CXX="$predep_objects_CXX $p"
12109          fi
12110        else
12111          if test -z "$postdep_objects_CXX"; then
12112            postdep_objects_CXX="$p"
12113          else
12114            postdep_objects_CXX="$postdep_objects_CXX $p"
12115          fi
12116        fi
12117        ;;
12118
12119     *) ;; # Ignore the rest.
12120
12121     esac
12122   done
12123
12124   # Clean up.
12125   rm -f a.out a.exe
12126 else
12127   echo "libtool.m4: error: problem compiling CXX test program"
12128 fi
12129
12130 $rm -f confest.$objext
12131
12132 # PORTME: override above test on systems where it is broken
12133 case $host_os in
12134 interix3*)
12135   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12136   # hack all around it, let's just trust "g++" to DTRT.
12137   predep_objects_CXX=
12138   postdep_objects_CXX=
12139   postdeps_CXX=
12140   ;;
12141
12142 solaris*)
12143   case $cc_basename in
12144   CC*)
12145     # Adding this requires a known-good setup of shared libraries for
12146     # Sun compiler versions before 5.6, else PIC objects from an old
12147     # archive will be linked into the output, leading to subtle bugs.
12148     postdeps_CXX='-lCstd -lCrun'
12149     ;;
12150   esac
12151   ;;
12152 esac
12153
12154
12155 case " $postdeps_CXX " in
12156 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12157 esac
12158
12159 lt_prog_compiler_wl_CXX=
12160 lt_prog_compiler_pic_CXX=
12161 lt_prog_compiler_static_CXX=
12162
12163 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12164 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12165
12166   # C++ specific cases for pic, static, wl, etc.
12167   if test "$GXX" = yes; then
12168     lt_prog_compiler_wl_CXX='-Wl,'
12169     lt_prog_compiler_static_CXX='-static'
12170
12171     case $host_os in
12172     aix*)
12173       # All AIX code is PIC.
12174       if test "$host_cpu" = ia64; then
12175         # AIX 5 now supports IA64 processor
12176         lt_prog_compiler_static_CXX='-Bstatic'
12177       fi
12178       ;;
12179     amigaos*)
12180       # FIXME: we need at least 68020 code to build shared libraries, but
12181       # adding the `-m68020' flag to GCC prevents building anything better,
12182       # like `-m68040'.
12183       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12184       ;;
12185     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12186       # PIC is the default for these OSes.
12187       ;;
12188     mingw* | os2* | pw32*)
12189       # This hack is so that the source file can tell whether it is being
12190       # built for inclusion in a dll (and should export symbols for example).
12191       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12192       ;;
12193     darwin* | rhapsody*)
12194       # PIC is the default on this platform
12195       # Common symbols not allowed in MH_DYLIB files
12196       lt_prog_compiler_pic_CXX='-fno-common'
12197       ;;
12198     *djgpp*)
12199       # DJGPP does not support shared libraries at all
12200       lt_prog_compiler_pic_CXX=
12201       ;;
12202     interix3*)
12203       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12204       # Instead, we relocate shared libraries at runtime.
12205       ;;
12206     sysv4*MP*)
12207       if test -d /usr/nec; then
12208         lt_prog_compiler_pic_CXX=-Kconform_pic
12209       fi
12210       ;;
12211     hpux*)
12212       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12213       # not for PA HP-UX.
12214       case $host_cpu in
12215       hppa*64*|ia64*)
12216         ;;
12217       *)
12218         lt_prog_compiler_pic_CXX='-fPIC'
12219         ;;
12220       esac
12221       ;;
12222     *)
12223       lt_prog_compiler_pic_CXX='-fPIC'
12224       ;;
12225     esac
12226   else
12227     case $host_os in
12228       aix4* | aix5*)
12229         # All AIX code is PIC.
12230         if test "$host_cpu" = ia64; then
12231           # AIX 5 now supports IA64 processor
12232           lt_prog_compiler_static_CXX='-Bstatic'
12233         else
12234           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12235         fi
12236         ;;
12237       chorus*)
12238         case $cc_basename in
12239         cxch68*)
12240           # Green Hills C++ Compiler
12241           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12242           ;;
12243         esac
12244         ;;
12245        darwin*)
12246          # PIC is the default on this platform
12247          # Common symbols not allowed in MH_DYLIB files
12248          case $cc_basename in
12249            xlc*)
12250            lt_prog_compiler_pic_CXX='-qnocommon'
12251            lt_prog_compiler_wl_CXX='-Wl,'
12252            ;;
12253          esac
12254        ;;
12255       dgux*)
12256         case $cc_basename in
12257           ec++*)
12258             lt_prog_compiler_pic_CXX='-KPIC'
12259             ;;
12260           ghcx*)
12261             # Green Hills C++ Compiler
12262             lt_prog_compiler_pic_CXX='-pic'
12263             ;;
12264           *)
12265             ;;
12266         esac
12267         ;;
12268       freebsd* | dragonfly*)
12269         # FreeBSD uses GNU C++
12270         ;;
12271       hpux9* | hpux10* | hpux11*)
12272         case $cc_basename in
12273           CC*)
12274             lt_prog_compiler_wl_CXX='-Wl,'
12275             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12276             if test "$host_cpu" != ia64; then
12277               lt_prog_compiler_pic_CXX='+Z'
12278             fi
12279             ;;
12280           aCC*)
12281             lt_prog_compiler_wl_CXX='-Wl,'
12282             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12283             case $host_cpu in
12284             hppa*64*|ia64*)
12285               # +Z the default
12286               ;;
12287             *)
12288               lt_prog_compiler_pic_CXX='+Z'
12289               ;;
12290             esac
12291             ;;
12292           *)
12293             ;;
12294         esac
12295         ;;
12296       interix*)
12297         # This is c89, which is MS Visual C++ (no shared libs)
12298         # Anyone wants to do a port?
12299         ;;
12300       irix5* | irix6* | nonstopux*)
12301         case $cc_basename in
12302           CC*)
12303             lt_prog_compiler_wl_CXX='-Wl,'
12304             lt_prog_compiler_static_CXX='-non_shared'
12305             # CC pic flag -KPIC is the default.
12306             ;;
12307           *)
12308             ;;
12309         esac
12310         ;;
12311       linux* | k*bsd*-gnu)
12312         case $cc_basename in
12313           KCC*)
12314             # KAI C++ Compiler
12315             lt_prog_compiler_wl_CXX='--backend -Wl,'
12316             lt_prog_compiler_pic_CXX='-fPIC'
12317             ;;
12318           icpc* | ecpc*)
12319             # Intel C++
12320             lt_prog_compiler_wl_CXX='-Wl,'
12321             lt_prog_compiler_pic_CXX='-KPIC'
12322             lt_prog_compiler_static_CXX='-static'
12323             ;;
12324           pgCC*)
12325             # Portland Group C++ compiler.
12326             lt_prog_compiler_wl_CXX='-Wl,'
12327             lt_prog_compiler_pic_CXX='-fpic'
12328             lt_prog_compiler_static_CXX='-Bstatic'
12329             ;;
12330           cxx*)
12331             # Compaq C++
12332             # Make sure the PIC flag is empty.  It appears that all Alpha
12333             # Linux and Compaq Tru64 Unix objects are PIC.
12334             lt_prog_compiler_pic_CXX=
12335             lt_prog_compiler_static_CXX='-non_shared'
12336             ;;
12337           *)
12338             ;;
12339         esac
12340         ;;
12341       lynxos*)
12342         ;;
12343       m88k*)
12344         ;;
12345       mvs*)
12346         case $cc_basename in
12347           cxx*)
12348             lt_prog_compiler_pic_CXX='-W c,exportall'
12349             ;;
12350           *)
12351             ;;
12352         esac
12353         ;;
12354       netbsd* | netbsdelf*-gnu)
12355         ;;
12356       osf3* | osf4* | osf5*)
12357         case $cc_basename in
12358           KCC*)
12359             lt_prog_compiler_wl_CXX='--backend -Wl,'
12360             ;;
12361           RCC*)
12362             # Rational C++ 2.4.1
12363             lt_prog_compiler_pic_CXX='-pic'
12364             ;;
12365           cxx*)
12366             # Digital/Compaq C++
12367             lt_prog_compiler_wl_CXX='-Wl,'
12368             # Make sure the PIC flag is empty.  It appears that all Alpha
12369             # Linux and Compaq Tru64 Unix objects are PIC.
12370             lt_prog_compiler_pic_CXX=
12371             lt_prog_compiler_static_CXX='-non_shared'
12372             ;;
12373           *)
12374             ;;
12375         esac
12376         ;;
12377       psos*)
12378         ;;
12379       solaris*)
12380         case $cc_basename in
12381           CC*)
12382             # Sun C++ 4.2, 5.x and Centerline C++
12383             lt_prog_compiler_pic_CXX='-KPIC'
12384             lt_prog_compiler_static_CXX='-Bstatic'
12385             lt_prog_compiler_wl_CXX='-Qoption ld '
12386             ;;
12387           gcx*)
12388             # Green Hills C++ Compiler
12389             lt_prog_compiler_pic_CXX='-PIC'
12390             ;;
12391           *)
12392             ;;
12393         esac
12394         ;;
12395       sunos4*)
12396         case $cc_basename in
12397           CC*)
12398             # Sun C++ 4.x
12399             lt_prog_compiler_pic_CXX='-pic'
12400             lt_prog_compiler_static_CXX='-Bstatic'
12401             ;;
12402           lcc*)
12403             # Lucid
12404             lt_prog_compiler_pic_CXX='-pic'
12405             ;;
12406           *)
12407             ;;
12408         esac
12409         ;;
12410       tandem*)
12411         case $cc_basename in
12412           NCC*)
12413             # NonStop-UX NCC 3.20
12414             lt_prog_compiler_pic_CXX='-KPIC'
12415             ;;
12416           *)
12417             ;;
12418         esac
12419         ;;
12420       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12421         case $cc_basename in
12422           CC*)
12423             lt_prog_compiler_wl_CXX='-Wl,'
12424             lt_prog_compiler_pic_CXX='-KPIC'
12425             lt_prog_compiler_static_CXX='-Bstatic'
12426             ;;
12427         esac
12428         ;;
12429       vxworks*)
12430         ;;
12431       *)
12432         lt_prog_compiler_can_build_shared_CXX=no
12433         ;;
12434     esac
12435   fi
12436
12437 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12438 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12439
12440 #
12441 # Check to make sure the PIC flag actually works.
12442 #
12443 if test -n "$lt_prog_compiler_pic_CXX"; then
12444
12445 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12446 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12447 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12448   echo $ECHO_N "(cached) $ECHO_C" >&6
12449 else
12450   lt_prog_compiler_pic_works_CXX=no
12451   ac_outfile=conftest.$ac_objext
12452    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12453    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12454    # Insert the option either (1) after the last *FLAGS variable, or
12455    # (2) before a word containing "conftest.", or (3) at the end.
12456    # Note that $ac_compile itself does not contain backslashes and begins
12457    # with a dollar sign (not a hyphen), so the echo should work correctly.
12458    # The option is referenced via a variable to avoid confusing sed.
12459    lt_compile=`echo "$ac_compile" | $SED \
12460    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12461    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12462    -e 's:$: $lt_compiler_flag:'`
12463    (eval echo "\"\$as_me:12463: $lt_compile\"" >&5)
12464    (eval "$lt_compile" 2>conftest.err)
12465    ac_status=$?
12466    cat conftest.err >&5
12467    echo "$as_me:12467: \$? = $ac_status" >&5
12468    if (exit $ac_status) && test -s "$ac_outfile"; then
12469      # The compiler can only warn and ignore the option if not recognized
12470      # So say no if there are warnings other than the usual output.
12471      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12472      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12473      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12474        lt_prog_compiler_pic_works_CXX=yes
12475      fi
12476    fi
12477    $rm conftest*
12478
12479 fi
12480 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12481 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12482
12483 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12484     case $lt_prog_compiler_pic_CXX in
12485      "" | " "*) ;;
12486      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12487      esac
12488 else
12489     lt_prog_compiler_pic_CXX=
12490      lt_prog_compiler_can_build_shared_CXX=no
12491 fi
12492
12493 fi
12494 case $host_os in
12495   # For platforms which do not support PIC, -DPIC is meaningless:
12496   *djgpp*)
12497     lt_prog_compiler_pic_CXX=
12498     ;;
12499   *)
12500     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12501     ;;
12502 esac
12503
12504 #
12505 # Check to make sure the static flag actually works.
12506 #
12507 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12508 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12509 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12510 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12511   echo $ECHO_N "(cached) $ECHO_C" >&6
12512 else
12513   lt_prog_compiler_static_works_CXX=no
12514    save_LDFLAGS="$LDFLAGS"
12515    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12516    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12517    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12518      # The linker can only warn and ignore the option if not recognized
12519      # So say no if there are warnings
12520      if test -s conftest.err; then
12521        # Append any errors to the config.log.
12522        cat conftest.err 1>&5
12523        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12524        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12525        if diff conftest.exp conftest.er2 >/dev/null; then
12526          lt_prog_compiler_static_works_CXX=yes
12527        fi
12528      else
12529        lt_prog_compiler_static_works_CXX=yes
12530      fi
12531    fi
12532    $rm conftest*
12533    LDFLAGS="$save_LDFLAGS"
12534
12535 fi
12536 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12537 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12538
12539 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12540     :
12541 else
12542     lt_prog_compiler_static_CXX=
12543 fi
12544
12545
12546 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12547 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12548 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12549   echo $ECHO_N "(cached) $ECHO_C" >&6
12550 else
12551   lt_cv_prog_compiler_c_o_CXX=no
12552    $rm -r conftest 2>/dev/null
12553    mkdir conftest
12554    cd conftest
12555    mkdir out
12556    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12557
12558    lt_compiler_flag="-o out/conftest2.$ac_objext"
12559    # Insert the option either (1) after the last *FLAGS variable, or
12560    # (2) before a word containing "conftest.", or (3) at the end.
12561    # Note that $ac_compile itself does not contain backslashes and begins
12562    # with a dollar sign (not a hyphen), so the echo should work correctly.
12563    lt_compile=`echo "$ac_compile" | $SED \
12564    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12565    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12566    -e 's:$: $lt_compiler_flag:'`
12567    (eval echo "\"\$as_me:12567: $lt_compile\"" >&5)
12568    (eval "$lt_compile" 2>out/conftest.err)
12569    ac_status=$?
12570    cat out/conftest.err >&5
12571    echo "$as_me:12571: \$? = $ac_status" >&5
12572    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12573    then
12574      # The compiler can only warn and ignore the option if not recognized
12575      # So say no if there are warnings
12576      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12577      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12578      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12579        lt_cv_prog_compiler_c_o_CXX=yes
12580      fi
12581    fi
12582    chmod u+w . 2>&5
12583    $rm conftest*
12584    # SGI C++ compiler will create directory out/ii_files/ for
12585    # template instantiation
12586    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12587    $rm out/* && rmdir out
12588    cd ..
12589    rmdir conftest
12590    $rm conftest*
12591
12592 fi
12593 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12594 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12595
12596
12597 hard_links="nottested"
12598 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12599   # do not overwrite the value of need_locks provided by the user
12600   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12601 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12602   hard_links=yes
12603   $rm conftest*
12604   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12605   touch conftest.a
12606   ln conftest.a conftest.b 2>&5 || hard_links=no
12607   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12608   { echo "$as_me:$LINENO: result: $hard_links" >&5
12609 echo "${ECHO_T}$hard_links" >&6; }
12610   if test "$hard_links" = no; then
12611     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12612 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12613     need_locks=warn
12614   fi
12615 else
12616   need_locks=no
12617 fi
12618
12619 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12620 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12621
12622   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12623   case $host_os in
12624   aix4* | aix5*)
12625     # If we're using GNU nm, then we don't want the "-C" option.
12626     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12627     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12628       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12629     else
12630       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12631     fi
12632     ;;
12633   pw32*)
12634     export_symbols_cmds_CXX="$ltdll_cmds"
12635   ;;
12636   cygwin* | mingw*)
12637     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12638   ;;
12639   linux* | k*bsd*-gnu)
12640     link_all_deplibs_CXX=no
12641   ;;
12642   *)
12643     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12644   ;;
12645   esac
12646
12647 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12648 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12649 test "$ld_shlibs_CXX" = no && can_build_shared=no
12650
12651 #
12652 # Do we need to explicitly link libc?
12653 #
12654 case "x$archive_cmds_need_lc_CXX" in
12655 x|xyes)
12656   # Assume -lc should be added
12657   archive_cmds_need_lc_CXX=yes
12658
12659   if test "$enable_shared" = yes && test "$GCC" = yes; then
12660     case $archive_cmds_CXX in
12661     *'~'*)
12662       # FIXME: we may have to deal with multi-command sequences.
12663       ;;
12664     '$CC '*)
12665       # Test whether the compiler implicitly links with -lc since on some
12666       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12667       # to ld, don't add -lc before -lgcc.
12668       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12669 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12670       $rm conftest*
12671       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12672
12673       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12674   (eval $ac_compile) 2>&5
12675   ac_status=$?
12676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677   (exit $ac_status); } 2>conftest.err; then
12678         soname=conftest
12679         lib=conftest
12680         libobjs=conftest.$ac_objext
12681         deplibs=
12682         wl=$lt_prog_compiler_wl_CXX
12683         pic_flag=$lt_prog_compiler_pic_CXX
12684         compiler_flags=-v
12685         linker_flags=-v
12686         verstring=
12687         output_objdir=.
12688         libname=conftest
12689         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12690         allow_undefined_flag_CXX=
12691         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12692   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12693   ac_status=$?
12694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695   (exit $ac_status); }
12696         then
12697           archive_cmds_need_lc_CXX=no
12698         else
12699           archive_cmds_need_lc_CXX=yes
12700         fi
12701         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12702       else
12703         cat conftest.err 1>&5
12704       fi
12705       $rm conftest*
12706       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12707 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12708       ;;
12709     esac
12710   fi
12711   ;;
12712 esac
12713
12714 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12715 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12716 library_names_spec=
12717 libname_spec='lib$name'
12718 soname_spec=
12719 shrext_cmds=".so"
12720 postinstall_cmds=
12721 postuninstall_cmds=
12722 finish_cmds=
12723 finish_eval=
12724 shlibpath_var=
12725 shlibpath_overrides_runpath=unknown
12726 version_type=none
12727 dynamic_linker="$host_os ld.so"
12728 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12729 if test "$GCC" = yes; then
12730   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12731   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12732     # if the path contains ";" then we assume it to be the separator
12733     # otherwise default to the standard path separator (i.e. ":") - it is
12734     # assumed that no part of a normal pathname contains ";" but that should
12735     # okay in the real world where ";" in dirpaths is itself problematic.
12736     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12737   else
12738     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12739   fi
12740 else
12741   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12742 fi
12743 need_lib_prefix=unknown
12744 hardcode_into_libs=no
12745
12746 # when you set need_version to no, make sure it does not cause -set_version
12747 # flags to be left without arguments
12748 need_version=unknown
12749
12750 case $host_os in
12751 aix3*)
12752   version_type=linux
12753   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12754   shlibpath_var=LIBPATH
12755
12756   # AIX 3 has no versioning support, so we append a major version to the name.
12757   soname_spec='${libname}${release}${shared_ext}$major'
12758   ;;
12759
12760 aix4* | aix5*)
12761   version_type=linux
12762   need_lib_prefix=no
12763   need_version=no
12764   hardcode_into_libs=yes
12765   if test "$host_cpu" = ia64; then
12766     # AIX 5 supports IA64
12767     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12768     shlibpath_var=LD_LIBRARY_PATH
12769   else
12770     # With GCC up to 2.95.x, collect2 would create an import file
12771     # for dependence libraries.  The import file would start with
12772     # the line `#! .'.  This would cause the generated library to
12773     # depend on `.', always an invalid library.  This was fixed in
12774     # development snapshots of GCC prior to 3.0.
12775     case $host_os in
12776       aix4 | aix4.[01] | aix4.[01].*)
12777       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12778            echo ' yes '
12779            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12780         :
12781       else
12782         can_build_shared=no
12783       fi
12784       ;;
12785     esac
12786     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12787     # soname into executable. Probably we can add versioning support to
12788     # collect2, so additional links can be useful in future.
12789     if test "$aix_use_runtimelinking" = yes; then
12790       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12791       # instead of lib<name>.a to let people know that these are not
12792       # typical AIX shared libraries.
12793       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12794     else
12795       # We preserve .a as extension for shared libraries through AIX4.2
12796       # and later when we are not doing run time linking.
12797       library_names_spec='${libname}${release}.a $libname.a'
12798       soname_spec='${libname}${release}${shared_ext}$major'
12799     fi
12800     shlibpath_var=LIBPATH
12801   fi
12802   ;;
12803
12804 amigaos*)
12805   library_names_spec='$libname.ixlibrary $libname.a'
12806   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12807   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'
12808   ;;
12809
12810 beos*)
12811   library_names_spec='${libname}${shared_ext}'
12812   dynamic_linker="$host_os ld.so"
12813   shlibpath_var=LIBRARY_PATH
12814   ;;
12815
12816 bsdi[45]*)
12817   version_type=linux
12818   need_version=no
12819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12820   soname_spec='${libname}${release}${shared_ext}$major'
12821   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12822   shlibpath_var=LD_LIBRARY_PATH
12823   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12824   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12825   # the default ld.so.conf also contains /usr/contrib/lib and
12826   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12827   # libtool to hard-code these into programs
12828   ;;
12829
12830 cygwin* | mingw* | pw32*)
12831   version_type=windows
12832   shrext_cmds=".dll"
12833   need_version=no
12834   need_lib_prefix=no
12835
12836   case $GCC,$host_os in
12837   yes,cygwin* | yes,mingw* | yes,pw32*)
12838     library_names_spec='$libname.dll.a'
12839     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12840     postinstall_cmds='base_file=`basename \${file}`~
12841       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12842       dldir=$destdir/`dirname \$dlpath`~
12843       test -d \$dldir || mkdir -p \$dldir~
12844       $install_prog $dir/$dlname \$dldir/$dlname~
12845       chmod a+x \$dldir/$dlname'
12846     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12847       dlpath=$dir/\$dldll~
12848        $rm \$dlpath'
12849     shlibpath_overrides_runpath=yes
12850
12851     case $host_os in
12852     cygwin*)
12853       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12854       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12855       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12856       ;;
12857     mingw*)
12858       # MinGW DLLs use traditional 'lib' prefix
12859       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12860       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12861       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12862         # It is most probably a Windows format PATH printed by
12863         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12864         # path with ; separators, and with drive letters. We can handle the
12865         # drive letters (cygwin fileutils understands them), so leave them,
12866         # especially as we might pass files found there to a mingw objdump,
12867         # which wouldn't understand a cygwinified path. Ahh.
12868         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12869       else
12870         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12871       fi
12872       ;;
12873     pw32*)
12874       # pw32 DLLs use 'pw' prefix rather than 'lib'
12875       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12876       ;;
12877     esac
12878     ;;
12879
12880   *)
12881     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12882     ;;
12883   esac
12884   dynamic_linker='Win32 ld.exe'
12885   # FIXME: first we should search . and the directory the executable is in
12886   shlibpath_var=PATH
12887   ;;
12888
12889 darwin* | rhapsody*)
12890   dynamic_linker="$host_os dyld"
12891   version_type=darwin
12892   need_lib_prefix=no
12893   need_version=no
12894   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12895   soname_spec='${libname}${release}${major}$shared_ext'
12896   shlibpath_overrides_runpath=yes
12897   shlibpath_var=DYLD_LIBRARY_PATH
12898   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12899   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12900   if test "$GCC" = yes; then
12901     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12902   else
12903     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12904   fi
12905   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12906   ;;
12907
12908 dgux*)
12909   version_type=linux
12910   need_lib_prefix=no
12911   need_version=no
12912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12913   soname_spec='${libname}${release}${shared_ext}$major'
12914   shlibpath_var=LD_LIBRARY_PATH
12915   ;;
12916
12917 freebsd1*)
12918   dynamic_linker=no
12919   ;;
12920
12921 freebsd* | dragonfly*)
12922   # DragonFly does not have aout.  When/if they implement a new
12923   # versioning mechanism, adjust this.
12924   if test -x /usr/bin/objformat; then
12925     objformat=`/usr/bin/objformat`
12926   else
12927     case $host_os in
12928     freebsd[123]*) objformat=aout ;;
12929     *) objformat=elf ;;
12930     esac
12931   fi
12932   version_type=freebsd-$objformat
12933   case $version_type in
12934     freebsd-elf*)
12935       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12936       need_version=no
12937       need_lib_prefix=no
12938       ;;
12939     freebsd-*)
12940       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12941       need_version=yes
12942       ;;
12943   esac
12944   shlibpath_var=LD_LIBRARY_PATH
12945   case $host_os in
12946   freebsd2*)
12947     shlibpath_overrides_runpath=yes
12948     ;;
12949   freebsd3.[01]* | freebsdelf3.[01]*)
12950     shlibpath_overrides_runpath=yes
12951     hardcode_into_libs=yes
12952     ;;
12953   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12954   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12955     shlibpath_overrides_runpath=no
12956     hardcode_into_libs=yes
12957     ;;
12958   freebsd*) # from 4.6 on
12959     shlibpath_overrides_runpath=yes
12960     hardcode_into_libs=yes
12961     ;;
12962   esac
12963   ;;
12964
12965 gnu*)
12966   version_type=linux
12967   need_lib_prefix=no
12968   need_version=no
12969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12970   soname_spec='${libname}${release}${shared_ext}$major'
12971   shlibpath_var=LD_LIBRARY_PATH
12972   hardcode_into_libs=yes
12973   ;;
12974
12975 hpux9* | hpux10* | hpux11*)
12976   # Give a soname corresponding to the major version so that dld.sl refuses to
12977   # link against other versions.
12978   version_type=sunos
12979   need_lib_prefix=no
12980   need_version=no
12981   case $host_cpu in
12982   ia64*)
12983     shrext_cmds='.so'
12984     hardcode_into_libs=yes
12985     dynamic_linker="$host_os dld.so"
12986     shlibpath_var=LD_LIBRARY_PATH
12987     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12988     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12989     soname_spec='${libname}${release}${shared_ext}$major'
12990     if test "X$HPUX_IA64_MODE" = X32; then
12991       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12992     else
12993       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12994     fi
12995     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12996     ;;
12997    hppa*64*)
12998      shrext_cmds='.sl'
12999      hardcode_into_libs=yes
13000      dynamic_linker="$host_os dld.sl"
13001      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13002      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13003      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13004      soname_spec='${libname}${release}${shared_ext}$major'
13005      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13006      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13007      ;;
13008    *)
13009     shrext_cmds='.sl'
13010     dynamic_linker="$host_os dld.sl"
13011     shlibpath_var=SHLIB_PATH
13012     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13013     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13014     soname_spec='${libname}${release}${shared_ext}$major'
13015     ;;
13016   esac
13017   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13018   postinstall_cmds='chmod 555 $lib'
13019   ;;
13020
13021 interix3*)
13022   version_type=linux
13023   need_lib_prefix=no
13024   need_version=no
13025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13026   soname_spec='${libname}${release}${shared_ext}$major'
13027   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13028   shlibpath_var=LD_LIBRARY_PATH
13029   shlibpath_overrides_runpath=no
13030   hardcode_into_libs=yes
13031   ;;
13032
13033 irix5* | irix6* | nonstopux*)
13034   case $host_os in
13035     nonstopux*) version_type=nonstopux ;;
13036     *)
13037         if test "$lt_cv_prog_gnu_ld" = yes; then
13038                 version_type=linux
13039         else
13040                 version_type=irix
13041         fi ;;
13042   esac
13043   need_lib_prefix=no
13044   need_version=no
13045   soname_spec='${libname}${release}${shared_ext}$major'
13046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13047   case $host_os in
13048   irix5* | nonstopux*)
13049     libsuff= shlibsuff=
13050     ;;
13051   *)
13052     case $LD in # libtool.m4 will add one of these switches to LD
13053     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13054       libsuff= shlibsuff= libmagic=32-bit;;
13055     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13056       libsuff=32 shlibsuff=N32 libmagic=N32;;
13057     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13058       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13059     *) libsuff= shlibsuff= libmagic=never-match;;
13060     esac
13061     ;;
13062   esac
13063   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13064   shlibpath_overrides_runpath=no
13065   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13066   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13067   hardcode_into_libs=yes
13068   ;;
13069
13070 # No shared lib support for Linux oldld, aout, or coff.
13071 linux*oldld* | linux*aout* | linux*coff*)
13072   dynamic_linker=no
13073   ;;
13074
13075 # This must be Linux ELF.
13076 linux* | k*bsd*-gnu)
13077   version_type=linux
13078   need_lib_prefix=no
13079   need_version=no
13080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13081   soname_spec='${libname}${release}${shared_ext}$major'
13082   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13083   shlibpath_var=LD_LIBRARY_PATH
13084   shlibpath_overrides_runpath=no
13085   # This implies no fast_install, which is unacceptable.
13086   # Some rework will be needed to allow for fast_install
13087   # before this can be enabled.
13088   hardcode_into_libs=yes
13089
13090   # Append ld.so.conf contents to the search path
13091   if test -f /etc/ld.so.conf; then
13092     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13093     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13094   fi
13095
13096   # We used to test for /lib/ld.so.1 and disable shared libraries on
13097   # powerpc, because MkLinux only supported shared libraries with the
13098   # GNU dynamic linker.  Since this was broken with cross compilers,
13099   # most powerpc-linux boxes support dynamic linking these days and
13100   # people can always --disable-shared, the test was removed, and we
13101   # assume the GNU/Linux dynamic linker is in use.
13102   dynamic_linker='GNU/Linux ld.so'
13103   ;;
13104
13105 netbsdelf*-gnu)
13106   version_type=linux
13107   need_lib_prefix=no
13108   need_version=no
13109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13110   soname_spec='${libname}${release}${shared_ext}$major'
13111   shlibpath_var=LD_LIBRARY_PATH
13112   shlibpath_overrides_runpath=no
13113   hardcode_into_libs=yes
13114   dynamic_linker='NetBSD ld.elf_so'
13115   ;;
13116
13117 netbsd*)
13118   version_type=sunos
13119   need_lib_prefix=no
13120   need_version=no
13121   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13122     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13123     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13124     dynamic_linker='NetBSD (a.out) ld.so'
13125   else
13126     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13127     soname_spec='${libname}${release}${shared_ext}$major'
13128     dynamic_linker='NetBSD ld.elf_so'
13129   fi
13130   shlibpath_var=LD_LIBRARY_PATH
13131   shlibpath_overrides_runpath=yes
13132   hardcode_into_libs=yes
13133   ;;
13134
13135 newsos6)
13136   version_type=linux
13137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13138   shlibpath_var=LD_LIBRARY_PATH
13139   shlibpath_overrides_runpath=yes
13140   ;;
13141
13142 nto-qnx*)
13143   version_type=linux
13144   need_lib_prefix=no
13145   need_version=no
13146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13147   soname_spec='${libname}${release}${shared_ext}$major'
13148   shlibpath_var=LD_LIBRARY_PATH
13149   shlibpath_overrides_runpath=yes
13150   ;;
13151
13152 openbsd*)
13153   version_type=sunos
13154   sys_lib_dlsearch_path_spec="/usr/lib"
13155   need_lib_prefix=no
13156   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13157   case $host_os in
13158     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13159     *)                         need_version=no  ;;
13160   esac
13161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13162   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13163   shlibpath_var=LD_LIBRARY_PATH
13164   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13165     case $host_os in
13166       openbsd2.[89] | openbsd2.[89].*)
13167         shlibpath_overrides_runpath=no
13168         ;;
13169       *)
13170         shlibpath_overrides_runpath=yes
13171         ;;
13172       esac
13173   else
13174     shlibpath_overrides_runpath=yes
13175   fi
13176   ;;
13177
13178 os2*)
13179   libname_spec='$name'
13180   shrext_cmds=".dll"
13181   need_lib_prefix=no
13182   library_names_spec='$libname${shared_ext} $libname.a'
13183   dynamic_linker='OS/2 ld.exe'
13184   shlibpath_var=LIBPATH
13185   ;;
13186
13187 osf3* | osf4* | osf5*)
13188   version_type=osf
13189   need_lib_prefix=no
13190   need_version=no
13191   soname_spec='${libname}${release}${shared_ext}$major'
13192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13193   shlibpath_var=LD_LIBRARY_PATH
13194   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13195   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13196   ;;
13197
13198 solaris*)
13199   version_type=linux
13200   need_lib_prefix=no
13201   need_version=no
13202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13203   soname_spec='${libname}${release}${shared_ext}$major'
13204   shlibpath_var=LD_LIBRARY_PATH
13205   shlibpath_overrides_runpath=yes
13206   hardcode_into_libs=yes
13207   # ldd complains unless libraries are executable
13208   postinstall_cmds='chmod +x $lib'
13209   ;;
13210
13211 sunos4*)
13212   version_type=sunos
13213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13214   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13215   shlibpath_var=LD_LIBRARY_PATH
13216   shlibpath_overrides_runpath=yes
13217   if test "$with_gnu_ld" = yes; then
13218     need_lib_prefix=no
13219   fi
13220   need_version=yes
13221   ;;
13222
13223 sysv4 | sysv4.3*)
13224   version_type=linux
13225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13226   soname_spec='${libname}${release}${shared_ext}$major'
13227   shlibpath_var=LD_LIBRARY_PATH
13228   case $host_vendor in
13229     sni)
13230       shlibpath_overrides_runpath=no
13231       need_lib_prefix=no
13232       export_dynamic_flag_spec='${wl}-Blargedynsym'
13233       runpath_var=LD_RUN_PATH
13234       ;;
13235     siemens)
13236       need_lib_prefix=no
13237       ;;
13238     motorola)
13239       need_lib_prefix=no
13240       need_version=no
13241       shlibpath_overrides_runpath=no
13242       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13243       ;;
13244   esac
13245   ;;
13246
13247 sysv4*MP*)
13248   if test -d /usr/nec ;then
13249     version_type=linux
13250     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13251     soname_spec='$libname${shared_ext}.$major'
13252     shlibpath_var=LD_LIBRARY_PATH
13253   fi
13254   ;;
13255
13256 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13257   version_type=freebsd-elf
13258   need_lib_prefix=no
13259   need_version=no
13260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13261   soname_spec='${libname}${release}${shared_ext}$major'
13262   shlibpath_var=LD_LIBRARY_PATH
13263   hardcode_into_libs=yes
13264   if test "$with_gnu_ld" = yes; then
13265     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13266     shlibpath_overrides_runpath=no
13267   else
13268     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13269     shlibpath_overrides_runpath=yes
13270     case $host_os in
13271       sco3.2v5*)
13272         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13273         ;;
13274     esac
13275   fi
13276   sys_lib_dlsearch_path_spec='/usr/lib'
13277   ;;
13278
13279 uts4*)
13280   version_type=linux
13281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13282   soname_spec='${libname}${release}${shared_ext}$major'
13283   shlibpath_var=LD_LIBRARY_PATH
13284   ;;
13285
13286 *)
13287   dynamic_linker=no
13288   ;;
13289 esac
13290 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13291 echo "${ECHO_T}$dynamic_linker" >&6; }
13292 test "$dynamic_linker" = no && can_build_shared=no
13293
13294 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13295 if test "$GCC" = yes; then
13296   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13297 fi
13298
13299 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13300 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13301 hardcode_action_CXX=
13302 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13303    test -n "$runpath_var_CXX" || \
13304    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13305
13306   # We can hardcode non-existant directories.
13307   if test "$hardcode_direct_CXX" != no &&
13308      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13309      # have to relink, otherwise we might link with an installed library
13310      # when we should be linking with a yet-to-be-installed one
13311      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13312      test "$hardcode_minus_L_CXX" != no; then
13313     # Linking always hardcodes the temporary library directory.
13314     hardcode_action_CXX=relink
13315   else
13316     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13317     hardcode_action_CXX=immediate
13318   fi
13319 else
13320   # We cannot hardcode anything, or else we can only hardcode existing
13321   # directories.
13322   hardcode_action_CXX=unsupported
13323 fi
13324 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13325 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13326
13327 if test "$hardcode_action_CXX" = relink; then
13328   # Fast installation is not supported
13329   enable_fast_install=no
13330 elif test "$shlibpath_overrides_runpath" = yes ||
13331      test "$enable_shared" = no; then
13332   # Fast installation is not necessary
13333   enable_fast_install=needless
13334 fi
13335
13336
13337 # The else clause should only fire when bootstrapping the
13338 # libtool distribution, otherwise you forgot to ship ltmain.sh
13339 # with your package, and you will get complaints that there are
13340 # no rules to generate ltmain.sh.
13341 if test -f "$ltmain"; then
13342   # See if we are running on zsh, and set the options which allow our commands through
13343   # without removal of \ escapes.
13344   if test -n "${ZSH_VERSION+set}" ; then
13345     setopt NO_GLOB_SUBST
13346   fi
13347   # Now quote all the things that may contain metacharacters while being
13348   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13349   # variables and quote the copies for generation of the libtool script.
13350   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13351     SED SHELL STRIP \
13352     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13353     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13354     deplibs_check_method reload_flag reload_cmds need_locks \
13355     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13356     lt_cv_sys_global_symbol_to_c_name_address \
13357     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13358     old_postinstall_cmds old_postuninstall_cmds \
13359     compiler_CXX \
13360     CC_CXX \
13361     LD_CXX \
13362     lt_prog_compiler_wl_CXX \
13363     lt_prog_compiler_pic_CXX \
13364     lt_prog_compiler_static_CXX \
13365     lt_prog_compiler_no_builtin_flag_CXX \
13366     export_dynamic_flag_spec_CXX \
13367     thread_safe_flag_spec_CXX \
13368     whole_archive_flag_spec_CXX \
13369     enable_shared_with_static_runtimes_CXX \
13370     old_archive_cmds_CXX \
13371     old_archive_from_new_cmds_CXX \
13372     predep_objects_CXX \
13373     postdep_objects_CXX \
13374     predeps_CXX \
13375     postdeps_CXX \
13376     compiler_lib_search_path_CXX \
13377     archive_cmds_CXX \
13378     archive_expsym_cmds_CXX \
13379     postinstall_cmds_CXX \
13380     postuninstall_cmds_CXX \
13381     old_archive_from_expsyms_cmds_CXX \
13382     allow_undefined_flag_CXX \
13383     no_undefined_flag_CXX \
13384     export_symbols_cmds_CXX \
13385     hardcode_libdir_flag_spec_CXX \
13386     hardcode_libdir_flag_spec_ld_CXX \
13387     hardcode_libdir_separator_CXX \
13388     hardcode_automatic_CXX \
13389     module_cmds_CXX \
13390     module_expsym_cmds_CXX \
13391     lt_cv_prog_compiler_c_o_CXX \
13392     exclude_expsyms_CXX \
13393     include_expsyms_CXX; do
13394
13395     case $var in
13396     old_archive_cmds_CXX | \
13397     old_archive_from_new_cmds_CXX | \
13398     archive_cmds_CXX | \
13399     archive_expsym_cmds_CXX | \
13400     module_cmds_CXX | \
13401     module_expsym_cmds_CXX | \
13402     old_archive_from_expsyms_cmds_CXX | \
13403     export_symbols_cmds_CXX | \
13404     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13405     postinstall_cmds | postuninstall_cmds | \
13406     old_postinstall_cmds | old_postuninstall_cmds | \
13407     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13408       # Double-quote double-evaled strings.
13409       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13410       ;;
13411     *)
13412       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13413       ;;
13414     esac
13415   done
13416
13417   case $lt_echo in
13418   *'\$0 --fallback-echo"')
13419     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13420     ;;
13421   esac
13422
13423 cfgfile="$ofile"
13424
13425   cat <<__EOF__ >> "$cfgfile"
13426 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13427
13428 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13429
13430 # Shell to use when invoking shell scripts.
13431 SHELL=$lt_SHELL
13432
13433 # Whether or not to build shared libraries.
13434 build_libtool_libs=$enable_shared
13435
13436 # Whether or not to build static libraries.
13437 build_old_libs=$enable_static
13438
13439 # Whether or not to add -lc for building shared libraries.
13440 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13441
13442 # Whether or not to disallow shared libs when runtime libs are static
13443 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13444
13445 # Whether or not to optimize for fast installation.
13446 fast_install=$enable_fast_install
13447
13448 # The host system.
13449 host_alias=$host_alias
13450 host=$host
13451 host_os=$host_os
13452
13453 # The build system.
13454 build_alias=$build_alias
13455 build=$build
13456 build_os=$build_os
13457
13458 # An echo program that does not interpret backslashes.
13459 echo=$lt_echo
13460
13461 # The archiver.
13462 AR=$lt_AR
13463 AR_FLAGS=$lt_AR_FLAGS
13464
13465 # A C compiler.
13466 LTCC=$lt_LTCC
13467
13468 # LTCC compiler flags.
13469 LTCFLAGS=$lt_LTCFLAGS
13470
13471 # A language-specific compiler.
13472 CC=$lt_compiler_CXX
13473
13474 # Is the compiler the GNU C compiler?
13475 with_gcc=$GCC_CXX
13476
13477 # An ERE matcher.
13478 EGREP=$lt_EGREP
13479
13480 # The linker used to build libraries.
13481 LD=$lt_LD_CXX
13482
13483 # Whether we need hard or soft links.
13484 LN_S=$lt_LN_S
13485
13486 # A BSD-compatible nm program.
13487 NM=$lt_NM
13488
13489 # A symbol stripping program
13490 STRIP=$lt_STRIP
13491
13492 # Used to examine libraries when file_magic_cmd begins "file"
13493 MAGIC_CMD=$MAGIC_CMD
13494
13495 # Used on cygwin: DLL creation program.
13496 DLLTOOL="$DLLTOOL"
13497
13498 # Used on cygwin: object dumper.
13499 OBJDUMP="$OBJDUMP"
13500
13501 # Used on cygwin: assembler.
13502 AS="$AS"
13503
13504 # The name of the directory that contains temporary libtool files.
13505 objdir=$objdir
13506
13507 # How to create reloadable object files.
13508 reload_flag=$lt_reload_flag
13509 reload_cmds=$lt_reload_cmds
13510
13511 # How to pass a linker flag through the compiler.
13512 wl=$lt_lt_prog_compiler_wl_CXX
13513
13514 # Object file suffix (normally "o").
13515 objext="$ac_objext"
13516
13517 # Old archive suffix (normally "a").
13518 libext="$libext"
13519
13520 # Shared library suffix (normally ".so").
13521 shrext_cmds='$shrext_cmds'
13522
13523 # Executable file suffix (normally "").
13524 exeext="$exeext"
13525
13526 # Additional compiler flags for building library objects.
13527 pic_flag=$lt_lt_prog_compiler_pic_CXX
13528 pic_mode=$pic_mode
13529
13530 # What is the maximum length of a command?
13531 max_cmd_len=$lt_cv_sys_max_cmd_len
13532
13533 # Does compiler simultaneously support -c and -o options?
13534 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13535
13536 # Must we lock files when doing compilation?
13537 need_locks=$lt_need_locks
13538
13539 # Do we need the lib prefix for modules?
13540 need_lib_prefix=$need_lib_prefix
13541
13542 # Do we need a version for libraries?
13543 need_version=$need_version
13544
13545 # Whether dlopen is supported.
13546 dlopen_support=$enable_dlopen
13547
13548 # Whether dlopen of programs is supported.
13549 dlopen_self=$enable_dlopen_self
13550
13551 # Whether dlopen of statically linked programs is supported.
13552 dlopen_self_static=$enable_dlopen_self_static
13553
13554 # Compiler flag to prevent dynamic linking.
13555 link_static_flag=$lt_lt_prog_compiler_static_CXX
13556
13557 # Compiler flag to turn off builtin functions.
13558 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13559
13560 # Compiler flag to allow reflexive dlopens.
13561 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13562
13563 # Compiler flag to generate shared objects directly from archives.
13564 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13565
13566 # Compiler flag to generate thread-safe objects.
13567 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13568
13569 # Library versioning type.
13570 version_type=$version_type
13571
13572 # Format of library name prefix.
13573 libname_spec=$lt_libname_spec
13574
13575 # List of archive names.  First name is the real one, the rest are links.
13576 # The last name is the one that the linker finds with -lNAME.
13577 library_names_spec=$lt_library_names_spec
13578
13579 # The coded name of the library, if different from the real name.
13580 soname_spec=$lt_soname_spec
13581
13582 # Commands used to build and install an old-style archive.
13583 RANLIB=$lt_RANLIB
13584 old_archive_cmds=$lt_old_archive_cmds_CXX
13585 old_postinstall_cmds=$lt_old_postinstall_cmds
13586 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13587
13588 # Create an old-style archive from a shared archive.
13589 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13590
13591 # Create a temporary old-style archive to link instead of a shared archive.
13592 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13593
13594 # Commands used to build and install a shared archive.
13595 archive_cmds=$lt_archive_cmds_CXX
13596 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13597 postinstall_cmds=$lt_postinstall_cmds
13598 postuninstall_cmds=$lt_postuninstall_cmds
13599
13600 # Commands used to build a loadable module (assumed same as above if empty)
13601 module_cmds=$lt_module_cmds_CXX
13602 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13603
13604 # Commands to strip libraries.
13605 old_striplib=$lt_old_striplib
13606 striplib=$lt_striplib
13607
13608 # Dependencies to place before the objects being linked to create a
13609 # shared library.
13610 predep_objects=$lt_predep_objects_CXX
13611
13612 # Dependencies to place after the objects being linked to create a
13613 # shared library.
13614 postdep_objects=$lt_postdep_objects_CXX
13615
13616 # Dependencies to place before the objects being linked to create a
13617 # shared library.
13618 predeps=$lt_predeps_CXX
13619
13620 # Dependencies to place after the objects being linked to create a
13621 # shared library.
13622 postdeps=$lt_postdeps_CXX
13623
13624 # The library search path used internally by the compiler when linking
13625 # a shared library.
13626 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13627
13628 # Method to check whether dependent libraries are shared objects.
13629 deplibs_check_method=$lt_deplibs_check_method
13630
13631 # Command to use when deplibs_check_method == file_magic.
13632 file_magic_cmd=$lt_file_magic_cmd
13633
13634 # Flag that allows shared libraries with undefined symbols to be built.
13635 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13636
13637 # Flag that forces no undefined symbols.
13638 no_undefined_flag=$lt_no_undefined_flag_CXX
13639
13640 # Commands used to finish a libtool library installation in a directory.
13641 finish_cmds=$lt_finish_cmds
13642
13643 # Same as above, but a single script fragment to be evaled but not shown.
13644 finish_eval=$lt_finish_eval
13645
13646 # Take the output of nm and produce a listing of raw symbols and C names.
13647 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13648
13649 # Transform the output of nm in a proper C declaration
13650 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13651
13652 # Transform the output of nm in a C name address pair
13653 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13654
13655 # This is the shared library runtime path variable.
13656 runpath_var=$runpath_var
13657
13658 # This is the shared library path variable.
13659 shlibpath_var=$shlibpath_var
13660
13661 # Is shlibpath searched before the hard-coded library search path?
13662 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13663
13664 # How to hardcode a shared library path into an executable.
13665 hardcode_action=$hardcode_action_CXX
13666
13667 # Whether we should hardcode library paths into libraries.
13668 hardcode_into_libs=$hardcode_into_libs
13669
13670 # Flag to hardcode \$libdir into a binary during linking.
13671 # This must work even if \$libdir does not exist.
13672 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13673
13674 # If ld is used when linking, flag to hardcode \$libdir into
13675 # a binary during linking. This must work even if \$libdir does
13676 # not exist.
13677 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13678
13679 # Whether we need a single -rpath flag with a separated argument.
13680 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13681
13682 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13683 # resulting binary.
13684 hardcode_direct=$hardcode_direct_CXX
13685
13686 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13687 # resulting binary.
13688 hardcode_minus_L=$hardcode_minus_L_CXX
13689
13690 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13691 # the resulting binary.
13692 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13693
13694 # Set to yes if building a shared library automatically hardcodes DIR into the library
13695 # and all subsequent libraries and executables linked against it.
13696 hardcode_automatic=$hardcode_automatic_CXX
13697
13698 # Variables whose values should be saved in libtool wrapper scripts and
13699 # restored at relink time.
13700 variables_saved_for_relink="$variables_saved_for_relink"
13701
13702 # Whether libtool must link a program against all its dependency libraries.
13703 link_all_deplibs=$link_all_deplibs_CXX
13704
13705 # Compile-time system search path for libraries
13706 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13707
13708 # Run-time system search path for libraries
13709 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13710
13711 # Fix the shell variable \$srcfile for the compiler.
13712 fix_srcfile_path="$fix_srcfile_path_CXX"
13713
13714 # Set to yes if exported symbols are required.
13715 always_export_symbols=$always_export_symbols_CXX
13716
13717 # The commands to list exported symbols.
13718 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13719
13720 # The commands to extract the exported symbol list from a shared archive.
13721 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13722
13723 # Symbols that should not be listed in the preloaded symbols.
13724 exclude_expsyms=$lt_exclude_expsyms_CXX
13725
13726 # Symbols that must always be exported.
13727 include_expsyms=$lt_include_expsyms_CXX
13728
13729 # ### END LIBTOOL TAG CONFIG: $tagname
13730
13731 __EOF__
13732
13733
13734 else
13735   # If there is no Makefile yet, we rely on a make rule to execute
13736   # `config.status --recheck' to rerun these tests and create the
13737   # libtool script then.
13738   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13739   if test -f "$ltmain_in"; then
13740     test -f Makefile && make "$ltmain"
13741   fi
13742 fi
13743
13744
13745 ac_ext=c
13746 ac_cpp='$CPP $CPPFLAGS'
13747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13750
13751 CC=$lt_save_CC
13752 LDCXX=$LD
13753 LD=$lt_save_LD
13754 GCC=$lt_save_GCC
13755 with_gnu_ldcxx=$with_gnu_ld
13756 with_gnu_ld=$lt_save_with_gnu_ld
13757 lt_cv_path_LDCXX=$lt_cv_path_LD
13758 lt_cv_path_LD=$lt_save_path_LD
13759 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13760 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13761
13762         else
13763           tagname=""
13764         fi
13765         ;;
13766
13767       F77)
13768         if test -n "$F77" && test "X$F77" != "Xno"; then
13769
13770 ac_ext=f
13771 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13772 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13773 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13774
13775
13776 archive_cmds_need_lc_F77=no
13777 allow_undefined_flag_F77=
13778 always_export_symbols_F77=no
13779 archive_expsym_cmds_F77=
13780 export_dynamic_flag_spec_F77=
13781 hardcode_direct_F77=no
13782 hardcode_libdir_flag_spec_F77=
13783 hardcode_libdir_flag_spec_ld_F77=
13784 hardcode_libdir_separator_F77=
13785 hardcode_minus_L_F77=no
13786 hardcode_automatic_F77=no
13787 module_cmds_F77=
13788 module_expsym_cmds_F77=
13789 link_all_deplibs_F77=unknown
13790 old_archive_cmds_F77=$old_archive_cmds
13791 no_undefined_flag_F77=
13792 whole_archive_flag_spec_F77=
13793 enable_shared_with_static_runtimes_F77=no
13794
13795 # Source file extension for f77 test sources.
13796 ac_ext=f
13797
13798 # Object file extension for compiled f77 test sources.
13799 objext=o
13800 objext_F77=$objext
13801
13802 # Code to be used in simple compile tests
13803 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13804
13805 # Code to be used in simple link tests
13806 lt_simple_link_test_code="      program t\n      end\n"
13807
13808 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13809
13810 # If no C compiler was specified, use CC.
13811 LTCC=${LTCC-"$CC"}
13812
13813 # If no C compiler flags were specified, use CFLAGS.
13814 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13815
13816 # Allow CC to be a program name with arguments.
13817 compiler=$CC
13818
13819
13820 # save warnings/boilerplate of simple test code
13821 ac_outfile=conftest.$ac_objext
13822 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13823 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13824 _lt_compiler_boilerplate=`cat conftest.err`
13825 $rm conftest*
13826
13827 ac_outfile=conftest.$ac_objext
13828 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13829 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13830 _lt_linker_boilerplate=`cat conftest.err`
13831 $rm conftest*
13832
13833
13834 # Allow CC to be a program name with arguments.
13835 lt_save_CC="$CC"
13836 CC=${F77-"f77"}
13837 compiler=$CC
13838 compiler_F77=$CC
13839 for cc_temp in $compiler""; do
13840   case $cc_temp in
13841     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13842     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13843     \-*) ;;
13844     *) break;;
13845   esac
13846 done
13847 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13848
13849
13850 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13851 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13852 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13853 echo "${ECHO_T}$can_build_shared" >&6; }
13854
13855 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13856 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13857 test "$can_build_shared" = "no" && enable_shared=no
13858
13859 # On AIX, shared libraries and static libraries use the same namespace, and
13860 # are all built from PIC.
13861 case $host_os in
13862 aix3*)
13863   test "$enable_shared" = yes && enable_static=no
13864   if test -n "$RANLIB"; then
13865     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13866     postinstall_cmds='$RANLIB $lib'
13867   fi
13868   ;;
13869 aix4* | aix5*)
13870   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13871     test "$enable_shared" = yes && enable_static=no
13872   fi
13873   ;;
13874 esac
13875 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13876 echo "${ECHO_T}$enable_shared" >&6; }
13877
13878 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13879 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13880 # Make sure either enable_shared or enable_static is yes.
13881 test "$enable_shared" = yes || enable_static=yes
13882 { echo "$as_me:$LINENO: result: $enable_static" >&5
13883 echo "${ECHO_T}$enable_static" >&6; }
13884
13885 GCC_F77="$G77"
13886 LD_F77="$LD"
13887
13888 lt_prog_compiler_wl_F77=
13889 lt_prog_compiler_pic_F77=
13890 lt_prog_compiler_static_F77=
13891
13892 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13893 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13894
13895   if test "$GCC" = yes; then
13896     lt_prog_compiler_wl_F77='-Wl,'
13897     lt_prog_compiler_static_F77='-static'
13898
13899     case $host_os in
13900       aix*)
13901       # All AIX code is PIC.
13902       if test "$host_cpu" = ia64; then
13903         # AIX 5 now supports IA64 processor
13904         lt_prog_compiler_static_F77='-Bstatic'
13905       fi
13906       ;;
13907
13908     amigaos*)
13909       # FIXME: we need at least 68020 code to build shared libraries, but
13910       # adding the `-m68020' flag to GCC prevents building anything better,
13911       # like `-m68040'.
13912       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13913       ;;
13914
13915     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13916       # PIC is the default for these OSes.
13917       ;;
13918
13919     mingw* | pw32* | os2*)
13920       # This hack is so that the source file can tell whether it is being
13921       # built for inclusion in a dll (and should export symbols for example).
13922       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13923       ;;
13924
13925     darwin* | rhapsody*)
13926       # PIC is the default on this platform
13927       # Common symbols not allowed in MH_DYLIB files
13928       lt_prog_compiler_pic_F77='-fno-common'
13929       ;;
13930
13931     interix3*)
13932       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13933       # Instead, we relocate shared libraries at runtime.
13934       ;;
13935
13936     msdosdjgpp*)
13937       # Just because we use GCC doesn't mean we suddenly get shared libraries
13938       # on systems that don't support them.
13939       lt_prog_compiler_can_build_shared_F77=no
13940       enable_shared=no
13941       ;;
13942
13943     sysv4*MP*)
13944       if test -d /usr/nec; then
13945         lt_prog_compiler_pic_F77=-Kconform_pic
13946       fi
13947       ;;
13948
13949     hpux*)
13950       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13951       # not for PA HP-UX.
13952       case $host_cpu in
13953       hppa*64*|ia64*)
13954         # +Z the default
13955         ;;
13956       *)
13957         lt_prog_compiler_pic_F77='-fPIC'
13958         ;;
13959       esac
13960       ;;
13961
13962     *)
13963       lt_prog_compiler_pic_F77='-fPIC'
13964       ;;
13965     esac
13966   else
13967     # PORTME Check for flag to pass linker flags through the system compiler.
13968     case $host_os in
13969     aix*)
13970       lt_prog_compiler_wl_F77='-Wl,'
13971       if test "$host_cpu" = ia64; then
13972         # AIX 5 now supports IA64 processor
13973         lt_prog_compiler_static_F77='-Bstatic'
13974       else
13975         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13976       fi
13977       ;;
13978       darwin*)
13979         # PIC is the default on this platform
13980         # Common symbols not allowed in MH_DYLIB files
13981        case $cc_basename in
13982          xlc*)
13983          lt_prog_compiler_pic_F77='-qnocommon'
13984          lt_prog_compiler_wl_F77='-Wl,'
13985          ;;
13986        esac
13987        ;;
13988
13989     mingw* | pw32* | os2*)
13990       # This hack is so that the source file can tell whether it is being
13991       # built for inclusion in a dll (and should export symbols for example).
13992       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13993       ;;
13994
13995     hpux9* | hpux10* | hpux11*)
13996       lt_prog_compiler_wl_F77='-Wl,'
13997       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13998       # not for PA HP-UX.
13999       case $host_cpu in
14000       hppa*64*|ia64*)
14001         # +Z the default
14002         ;;
14003       *)
14004         lt_prog_compiler_pic_F77='+Z'
14005         ;;
14006       esac
14007       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14008       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14009       ;;
14010
14011     irix5* | irix6* | nonstopux*)
14012       lt_prog_compiler_wl_F77='-Wl,'
14013       # PIC (with -KPIC) is the default.
14014       lt_prog_compiler_static_F77='-non_shared'
14015       ;;
14016
14017     newsos6)
14018       lt_prog_compiler_pic_F77='-KPIC'
14019       lt_prog_compiler_static_F77='-Bstatic'
14020       ;;
14021
14022     linux* | k*bsd*-gnu)
14023       case $cc_basename in
14024       icc* | ecc*)
14025         lt_prog_compiler_wl_F77='-Wl,'
14026         lt_prog_compiler_pic_F77='-KPIC'
14027         lt_prog_compiler_static_F77='-static'
14028         ;;
14029       pgcc* | pgf77* | pgf90* | pgf95*)
14030         # Portland Group compilers (*not* the Pentium gcc compiler,
14031         # which looks to be a dead project)
14032         lt_prog_compiler_wl_F77='-Wl,'
14033         lt_prog_compiler_pic_F77='-fpic'
14034         lt_prog_compiler_static_F77='-Bstatic'
14035         ;;
14036       ccc*)
14037         lt_prog_compiler_wl_F77='-Wl,'
14038         # All Alpha code is PIC.
14039         lt_prog_compiler_static_F77='-non_shared'
14040         ;;
14041       esac
14042       ;;
14043
14044     osf3* | osf4* | osf5*)
14045       lt_prog_compiler_wl_F77='-Wl,'
14046       # All OSF/1 code is PIC.
14047       lt_prog_compiler_static_F77='-non_shared'
14048       ;;
14049
14050     solaris*)
14051       lt_prog_compiler_pic_F77='-KPIC'
14052       lt_prog_compiler_static_F77='-Bstatic'
14053       case $cc_basename in
14054       f77* | f90* | f95*)
14055         lt_prog_compiler_wl_F77='-Qoption ld ';;
14056       *)
14057         lt_prog_compiler_wl_F77='-Wl,';;
14058       esac
14059       ;;
14060
14061     sunos4*)
14062       lt_prog_compiler_wl_F77='-Qoption ld '
14063       lt_prog_compiler_pic_F77='-PIC'
14064       lt_prog_compiler_static_F77='-Bstatic'
14065       ;;
14066
14067     sysv4 | sysv4.2uw2* | sysv4.3*)
14068       lt_prog_compiler_wl_F77='-Wl,'
14069       lt_prog_compiler_pic_F77='-KPIC'
14070       lt_prog_compiler_static_F77='-Bstatic'
14071       ;;
14072
14073     sysv4*MP*)
14074       if test -d /usr/nec ;then
14075         lt_prog_compiler_pic_F77='-Kconform_pic'
14076         lt_prog_compiler_static_F77='-Bstatic'
14077       fi
14078       ;;
14079
14080     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14081       lt_prog_compiler_wl_F77='-Wl,'
14082       lt_prog_compiler_pic_F77='-KPIC'
14083       lt_prog_compiler_static_F77='-Bstatic'
14084       ;;
14085
14086     unicos*)
14087       lt_prog_compiler_wl_F77='-Wl,'
14088       lt_prog_compiler_can_build_shared_F77=no
14089       ;;
14090
14091     uts4*)
14092       lt_prog_compiler_pic_F77='-pic'
14093       lt_prog_compiler_static_F77='-Bstatic'
14094       ;;
14095
14096     *)
14097       lt_prog_compiler_can_build_shared_F77=no
14098       ;;
14099     esac
14100   fi
14101
14102 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14103 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14104
14105 #
14106 # Check to make sure the PIC flag actually works.
14107 #
14108 if test -n "$lt_prog_compiler_pic_F77"; then
14109
14110 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14111 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14112 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14113   echo $ECHO_N "(cached) $ECHO_C" >&6
14114 else
14115   lt_prog_compiler_pic_works_F77=no
14116   ac_outfile=conftest.$ac_objext
14117    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14118    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14119    # Insert the option either (1) after the last *FLAGS variable, or
14120    # (2) before a word containing "conftest.", or (3) at the end.
14121    # Note that $ac_compile itself does not contain backslashes and begins
14122    # with a dollar sign (not a hyphen), so the echo should work correctly.
14123    # The option is referenced via a variable to avoid confusing sed.
14124    lt_compile=`echo "$ac_compile" | $SED \
14125    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14126    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14127    -e 's:$: $lt_compiler_flag:'`
14128    (eval echo "\"\$as_me:14128: $lt_compile\"" >&5)
14129    (eval "$lt_compile" 2>conftest.err)
14130    ac_status=$?
14131    cat conftest.err >&5
14132    echo "$as_me:14132: \$? = $ac_status" >&5
14133    if (exit $ac_status) && test -s "$ac_outfile"; then
14134      # The compiler can only warn and ignore the option if not recognized
14135      # So say no if there are warnings other than the usual output.
14136      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14137      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14138      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14139        lt_prog_compiler_pic_works_F77=yes
14140      fi
14141    fi
14142    $rm conftest*
14143
14144 fi
14145 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14146 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14147
14148 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14149     case $lt_prog_compiler_pic_F77 in
14150      "" | " "*) ;;
14151      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14152      esac
14153 else
14154     lt_prog_compiler_pic_F77=
14155      lt_prog_compiler_can_build_shared_F77=no
14156 fi
14157
14158 fi
14159 case $host_os in
14160   # For platforms which do not support PIC, -DPIC is meaningless:
14161   *djgpp*)
14162     lt_prog_compiler_pic_F77=
14163     ;;
14164   *)
14165     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14166     ;;
14167 esac
14168
14169 #
14170 # Check to make sure the static flag actually works.
14171 #
14172 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14173 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14174 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14175 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14176   echo $ECHO_N "(cached) $ECHO_C" >&6
14177 else
14178   lt_prog_compiler_static_works_F77=no
14179    save_LDFLAGS="$LDFLAGS"
14180    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14181    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14182    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14183      # The linker can only warn and ignore the option if not recognized
14184      # So say no if there are warnings
14185      if test -s conftest.err; then
14186        # Append any errors to the config.log.
14187        cat conftest.err 1>&5
14188        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14189        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14190        if diff conftest.exp conftest.er2 >/dev/null; then
14191          lt_prog_compiler_static_works_F77=yes
14192        fi
14193      else
14194        lt_prog_compiler_static_works_F77=yes
14195      fi
14196    fi
14197    $rm conftest*
14198    LDFLAGS="$save_LDFLAGS"
14199
14200 fi
14201 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14202 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14203
14204 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14205     :
14206 else
14207     lt_prog_compiler_static_F77=
14208 fi
14209
14210
14211 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14212 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14213 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14214   echo $ECHO_N "(cached) $ECHO_C" >&6
14215 else
14216   lt_cv_prog_compiler_c_o_F77=no
14217    $rm -r conftest 2>/dev/null
14218    mkdir conftest
14219    cd conftest
14220    mkdir out
14221    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14222
14223    lt_compiler_flag="-o out/conftest2.$ac_objext"
14224    # Insert the option either (1) after the last *FLAGS variable, or
14225    # (2) before a word containing "conftest.", or (3) at the end.
14226    # Note that $ac_compile itself does not contain backslashes and begins
14227    # with a dollar sign (not a hyphen), so the echo should work correctly.
14228    lt_compile=`echo "$ac_compile" | $SED \
14229    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14230    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14231    -e 's:$: $lt_compiler_flag:'`
14232    (eval echo "\"\$as_me:14232: $lt_compile\"" >&5)
14233    (eval "$lt_compile" 2>out/conftest.err)
14234    ac_status=$?
14235    cat out/conftest.err >&5
14236    echo "$as_me:14236: \$? = $ac_status" >&5
14237    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14238    then
14239      # The compiler can only warn and ignore the option if not recognized
14240      # So say no if there are warnings
14241      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14242      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14243      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14244        lt_cv_prog_compiler_c_o_F77=yes
14245      fi
14246    fi
14247    chmod u+w . 2>&5
14248    $rm conftest*
14249    # SGI C++ compiler will create directory out/ii_files/ for
14250    # template instantiation
14251    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14252    $rm out/* && rmdir out
14253    cd ..
14254    rmdir conftest
14255    $rm conftest*
14256
14257 fi
14258 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14259 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14260
14261
14262 hard_links="nottested"
14263 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14264   # do not overwrite the value of need_locks provided by the user
14265   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14266 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14267   hard_links=yes
14268   $rm conftest*
14269   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14270   touch conftest.a
14271   ln conftest.a conftest.b 2>&5 || hard_links=no
14272   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14273   { echo "$as_me:$LINENO: result: $hard_links" >&5
14274 echo "${ECHO_T}$hard_links" >&6; }
14275   if test "$hard_links" = no; then
14276     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14277 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14278     need_locks=warn
14279   fi
14280 else
14281   need_locks=no
14282 fi
14283
14284 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14285 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14286
14287   runpath_var=
14288   allow_undefined_flag_F77=
14289   enable_shared_with_static_runtimes_F77=no
14290   archive_cmds_F77=
14291   archive_expsym_cmds_F77=
14292   old_archive_From_new_cmds_F77=
14293   old_archive_from_expsyms_cmds_F77=
14294   export_dynamic_flag_spec_F77=
14295   whole_archive_flag_spec_F77=
14296   thread_safe_flag_spec_F77=
14297   hardcode_libdir_flag_spec_F77=
14298   hardcode_libdir_flag_spec_ld_F77=
14299   hardcode_libdir_separator_F77=
14300   hardcode_direct_F77=no
14301   hardcode_minus_L_F77=no
14302   hardcode_shlibpath_var_F77=unsupported
14303   link_all_deplibs_F77=unknown
14304   hardcode_automatic_F77=no
14305   module_cmds_F77=
14306   module_expsym_cmds_F77=
14307   always_export_symbols_F77=no
14308   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14309   # include_expsyms should be a list of space-separated symbols to be *always*
14310   # included in the symbol list
14311   include_expsyms_F77=
14312   # exclude_expsyms can be an extended regexp of symbols to exclude
14313   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14314   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14315   # as well as any symbol that contains `d'.
14316   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14317   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14318   # platforms (ab)use it in PIC code, but their linkers get confused if
14319   # the symbol is explicitly referenced.  Since portable code cannot
14320   # rely on this symbol name, it's probably fine to never include it in
14321   # preloaded symbol tables.
14322   extract_expsyms_cmds=
14323   # Just being paranoid about ensuring that cc_basename is set.
14324   for cc_temp in $compiler""; do
14325   case $cc_temp in
14326     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14327     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14328     \-*) ;;
14329     *) break;;
14330   esac
14331 done
14332 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14333
14334   case $host_os in
14335   cygwin* | mingw* | pw32*)
14336     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14337     # When not using gcc, we currently assume that we are using
14338     # Microsoft Visual C++.
14339     if test "$GCC" != yes; then
14340       with_gnu_ld=no
14341     fi
14342     ;;
14343   interix*)
14344     # we just hope/assume this is gcc and not c89 (= MSVC++)
14345     with_gnu_ld=yes
14346     ;;
14347   openbsd*)
14348     with_gnu_ld=no
14349     ;;
14350   esac
14351
14352   ld_shlibs_F77=yes
14353   if test "$with_gnu_ld" = yes; then
14354     # If archive_cmds runs LD, not CC, wlarc should be empty
14355     wlarc='${wl}'
14356
14357     # Set some defaults for GNU ld with shared library support. These
14358     # are reset later if shared libraries are not supported. Putting them
14359     # here allows them to be overridden if necessary.
14360     runpath_var=LD_RUN_PATH
14361     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14362     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14363     # ancient GNU ld didn't support --whole-archive et. al.
14364     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14365         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14366       else
14367         whole_archive_flag_spec_F77=
14368     fi
14369     supports_anon_versioning=no
14370     case `$LD -v 2>/dev/null` in
14371       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14372       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14373       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14374       *\ 2.11.*) ;; # other 2.11 versions
14375       *) supports_anon_versioning=yes ;;
14376     esac
14377
14378     # See if GNU ld supports shared libraries.
14379     case $host_os in
14380     aix3* | aix4* | aix5*)
14381       # On AIX/PPC, the GNU linker is very broken
14382       if test "$host_cpu" != ia64; then
14383         ld_shlibs_F77=no
14384         cat <<EOF 1>&2
14385
14386 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14387 *** to be unable to reliably create shared libraries on AIX.
14388 *** Therefore, libtool is disabling shared libraries support.  If you
14389 *** really care for shared libraries, you may want to modify your PATH
14390 *** so that a non-GNU linker is found, and then restart.
14391
14392 EOF
14393       fi
14394       ;;
14395
14396     amigaos*)
14397       archive_cmds_F77='$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)'
14398       hardcode_libdir_flag_spec_F77='-L$libdir'
14399       hardcode_minus_L_F77=yes
14400
14401       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14402       # that the semantics of dynamic libraries on AmigaOS, at least up
14403       # to version 4, is to share data among multiple programs linked
14404       # with the same dynamic library.  Since this doesn't match the
14405       # behavior of shared libraries on other platforms, we can't use
14406       # them.
14407       ld_shlibs_F77=no
14408       ;;
14409
14410     beos*)
14411       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14412         allow_undefined_flag_F77=unsupported
14413         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14414         # support --undefined.  This deserves some investigation.  FIXME
14415         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14416       else
14417         ld_shlibs_F77=no
14418       fi
14419       ;;
14420
14421     cygwin* | mingw* | pw32*)
14422       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14423       # as there is no search path for DLLs.
14424       hardcode_libdir_flag_spec_F77='-L$libdir'
14425       allow_undefined_flag_F77=unsupported
14426       always_export_symbols_F77=no
14427       enable_shared_with_static_runtimes_F77=yes
14428       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14429
14430       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14431         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14432         # If the export-symbols file already is a .def file (1st line
14433         # is EXPORTS), use it as is; otherwise, prepend...
14434         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14435           cp $export_symbols $output_objdir/$soname.def;
14436         else
14437           echo EXPORTS > $output_objdir/$soname.def;
14438           cat $export_symbols >> $output_objdir/$soname.def;
14439         fi~
14440         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14441       else
14442         ld_shlibs_F77=no
14443       fi
14444       ;;
14445
14446     interix3*)
14447       hardcode_direct_F77=no
14448       hardcode_shlibpath_var_F77=no
14449       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14450       export_dynamic_flag_spec_F77='${wl}-E'
14451       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14452       # Instead, shared libraries are loaded at an image base (0x10000000 by
14453       # default) and relocated if they conflict, which is a slow very memory
14454       # consuming and fragmenting process.  To avoid this, we pick a random,
14455       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14456       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14457       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14458       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14459       ;;
14460
14461     linux* | k*bsd*-gnu)
14462       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14463         tmp_addflag=
14464         case $cc_basename,$host_cpu in
14465         pgcc*)                          # Portland Group C compiler
14466           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14467           tmp_addflag=' $pic_flag'
14468           ;;
14469         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14470           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14471           tmp_addflag=' $pic_flag -Mnomain' ;;
14472         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14473           tmp_addflag=' -i_dynamic' ;;
14474         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14475           tmp_addflag=' -i_dynamic -nofor_main' ;;
14476         ifc* | ifort*)                  # Intel Fortran compiler
14477           tmp_addflag=' -nofor_main' ;;
14478         esac
14479         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14480
14481         if test $supports_anon_versioning = yes; then
14482           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14483   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14484   $echo "local: *; };" >> $output_objdir/$libname.ver~
14485           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14486         fi
14487         link_all_deplibs_F77=no
14488       else
14489         ld_shlibs_F77=no
14490       fi
14491       ;;
14492
14493     netbsd* | netbsdelf*-gnu)
14494       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14495         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14496         wlarc=
14497       else
14498         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14499         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14500       fi
14501       ;;
14502
14503     solaris*)
14504       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14505         ld_shlibs_F77=no
14506         cat <<EOF 1>&2
14507
14508 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14509 *** create shared libraries on Solaris systems.  Therefore, libtool
14510 *** is disabling shared libraries support.  We urge you to upgrade GNU
14511 *** binutils to release 2.9.1 or newer.  Another option is to modify
14512 *** your PATH or compiler configuration so that the native linker is
14513 *** used, and then restart.
14514
14515 EOF
14516       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14517         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14518         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14519       else
14520         ld_shlibs_F77=no
14521       fi
14522       ;;
14523
14524     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14525       case `$LD -v 2>&1` in
14526         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14527         ld_shlibs_F77=no
14528         cat <<_LT_EOF 1>&2
14529
14530 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14531 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14532 *** is disabling shared libraries support.  We urge you to upgrade GNU
14533 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14534 *** your PATH or compiler configuration so that the native linker is
14535 *** used, and then restart.
14536
14537 _LT_EOF
14538         ;;
14539         *)
14540           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14541             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14542             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14543             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14544           else
14545             ld_shlibs_F77=no
14546           fi
14547         ;;
14548       esac
14549       ;;
14550
14551     sunos4*)
14552       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14553       wlarc=
14554       hardcode_direct_F77=yes
14555       hardcode_shlibpath_var_F77=no
14556       ;;
14557
14558     *)
14559       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14560         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14561         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14562       else
14563         ld_shlibs_F77=no
14564       fi
14565       ;;
14566     esac
14567
14568     if test "$ld_shlibs_F77" = no; then
14569       runpath_var=
14570       hardcode_libdir_flag_spec_F77=
14571       export_dynamic_flag_spec_F77=
14572       whole_archive_flag_spec_F77=
14573     fi
14574   else
14575     # PORTME fill in a description of your system's linker (not GNU ld)
14576     case $host_os in
14577     aix3*)
14578       allow_undefined_flag_F77=unsupported
14579       always_export_symbols_F77=yes
14580       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14581       # Note: this linker hardcodes the directories in LIBPATH if there
14582       # are no directories specified by -L.
14583       hardcode_minus_L_F77=yes
14584       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14585         # Neither direct hardcoding nor static linking is supported with a
14586         # broken collect2.
14587         hardcode_direct_F77=unsupported
14588       fi
14589       ;;
14590
14591     aix4* | aix5*)
14592       if test "$host_cpu" = ia64; then
14593         # On IA64, the linker does run time linking by default, so we don't
14594         # have to do anything special.
14595         aix_use_runtimelinking=no
14596         exp_sym_flag='-Bexport'
14597         no_entry_flag=""
14598       else
14599         # If we're using GNU nm, then we don't want the "-C" option.
14600         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14601         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14602           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14603         else
14604           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14605         fi
14606         aix_use_runtimelinking=no
14607
14608         # Test if we are trying to use run time linking or normal
14609         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14610         # need to do runtime linking.
14611         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14612           for ld_flag in $LDFLAGS; do
14613           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14614             aix_use_runtimelinking=yes
14615             break
14616           fi
14617           done
14618           ;;
14619         esac
14620
14621         exp_sym_flag='-bexport'
14622         no_entry_flag='-bnoentry'
14623       fi
14624
14625       # When large executables or shared objects are built, AIX ld can
14626       # have problems creating the table of contents.  If linking a library
14627       # or program results in "error TOC overflow" add -mminimal-toc to
14628       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14629       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14630
14631       archive_cmds_F77=''
14632       hardcode_direct_F77=yes
14633       hardcode_libdir_separator_F77=':'
14634       link_all_deplibs_F77=yes
14635
14636       if test "$GCC" = yes; then
14637         case $host_os in aix4.[012]|aix4.[012].*)
14638         # We only want to do this on AIX 4.2 and lower, the check
14639         # below for broken collect2 doesn't work under 4.3+
14640           collect2name=`${CC} -print-prog-name=collect2`
14641           if test -f "$collect2name" && \
14642            strings "$collect2name" | grep resolve_lib_name >/dev/null
14643           then
14644           # We have reworked collect2
14645           hardcode_direct_F77=yes
14646           else
14647           # We have old collect2
14648           hardcode_direct_F77=unsupported
14649           # It fails to find uninstalled libraries when the uninstalled
14650           # path is not listed in the libpath.  Setting hardcode_minus_L
14651           # to unsupported forces relinking
14652           hardcode_minus_L_F77=yes
14653           hardcode_libdir_flag_spec_F77='-L$libdir'
14654           hardcode_libdir_separator_F77=
14655           fi
14656           ;;
14657         esac
14658         shared_flag='-shared'
14659         if test "$aix_use_runtimelinking" = yes; then
14660           shared_flag="$shared_flag "'${wl}-G'
14661         fi
14662       else
14663         # not using gcc
14664         if test "$host_cpu" = ia64; then
14665         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14666         # chokes on -Wl,-G. The following line is correct:
14667           shared_flag='-G'
14668         else
14669           if test "$aix_use_runtimelinking" = yes; then
14670             shared_flag='${wl}-G'
14671           else
14672             shared_flag='${wl}-bM:SRE'
14673           fi
14674         fi
14675       fi
14676
14677       # It seems that -bexpall does not export symbols beginning with
14678       # underscore (_), so it is better to generate a list of symbols to export.
14679       always_export_symbols_F77=yes
14680       if test "$aix_use_runtimelinking" = yes; then
14681         # Warning - without using the other runtime loading flags (-brtl),
14682         # -berok will link without error, but may produce a broken library.
14683         allow_undefined_flag_F77='-berok'
14684        # Determine the default libpath from the value encoded in an empty executable.
14685        cat >conftest.$ac_ext <<_ACEOF
14686       program main
14687
14688       end
14689 _ACEOF
14690 rm -f conftest.$ac_objext conftest$ac_exeext
14691 if { (ac_try="$ac_link"
14692 case "(($ac_try" in
14693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14694   *) ac_try_echo=$ac_try;;
14695 esac
14696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14697   (eval "$ac_link") 2>conftest.er1
14698   ac_status=$?
14699   grep -v '^ *+' conftest.er1 >conftest.err
14700   rm -f conftest.er1
14701   cat conftest.err >&5
14702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703   (exit $ac_status); } && {
14704          test -z "$ac_f77_werror_flag" ||
14705          test ! -s conftest.err
14706        } && test -s conftest$ac_exeext &&
14707        $as_test_x conftest$ac_exeext; then
14708
14709 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14710 }'`
14711 # Check for a 64-bit object if we didn't find anything.
14712 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14713 }'`; fi
14714 else
14715   echo "$as_me: failed program was:" >&5
14716 sed 's/^/| /' conftest.$ac_ext >&5
14717
14718
14719 fi
14720
14721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14722       conftest$ac_exeext conftest.$ac_ext
14723 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14724
14725        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14726         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14727        else
14728         if test "$host_cpu" = ia64; then
14729           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14730           allow_undefined_flag_F77="-z nodefs"
14731           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14732         else
14733          # Determine the default libpath from the value encoded in an empty executable.
14734          cat >conftest.$ac_ext <<_ACEOF
14735       program main
14736
14737       end
14738 _ACEOF
14739 rm -f conftest.$ac_objext conftest$ac_exeext
14740 if { (ac_try="$ac_link"
14741 case "(($ac_try" in
14742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14743   *) ac_try_echo=$ac_try;;
14744 esac
14745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14746   (eval "$ac_link") 2>conftest.er1
14747   ac_status=$?
14748   grep -v '^ *+' conftest.er1 >conftest.err
14749   rm -f conftest.er1
14750   cat conftest.err >&5
14751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752   (exit $ac_status); } && {
14753          test -z "$ac_f77_werror_flag" ||
14754          test ! -s conftest.err
14755        } && test -s conftest$ac_exeext &&
14756        $as_test_x conftest$ac_exeext; then
14757
14758 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14759 }'`
14760 # Check for a 64-bit object if we didn't find anything.
14761 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14762 }'`; fi
14763 else
14764   echo "$as_me: failed program was:" >&5
14765 sed 's/^/| /' conftest.$ac_ext >&5
14766
14767
14768 fi
14769
14770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14771       conftest$ac_exeext conftest.$ac_ext
14772 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14773
14774          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14775           # Warning - without using the other run time loading flags,
14776           # -berok will link without error, but may produce a broken library.
14777           no_undefined_flag_F77=' ${wl}-bernotok'
14778           allow_undefined_flag_F77=' ${wl}-berok'
14779           # Exported symbols can be pulled into shared objects from archives
14780           whole_archive_flag_spec_F77='$convenience'
14781           archive_cmds_need_lc_F77=yes
14782           # This is similar to how AIX traditionally builds its shared libraries.
14783           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14784         fi
14785       fi
14786       ;;
14787
14788     amigaos*)
14789       archive_cmds_F77='$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)'
14790       hardcode_libdir_flag_spec_F77='-L$libdir'
14791       hardcode_minus_L_F77=yes
14792       # see comment about different semantics on the GNU ld section
14793       ld_shlibs_F77=no
14794       ;;
14795
14796     bsdi[45]*)
14797       export_dynamic_flag_spec_F77=-rdynamic
14798       ;;
14799
14800     cygwin* | mingw* | pw32*)
14801       # When not using gcc, we currently assume that we are using
14802       # Microsoft Visual C++.
14803       # hardcode_libdir_flag_spec is actually meaningless, as there is
14804       # no search path for DLLs.
14805       hardcode_libdir_flag_spec_F77=' '
14806       allow_undefined_flag_F77=unsupported
14807       # Tell ltmain to make .lib files, not .a files.
14808       libext=lib
14809       # Tell ltmain to make .dll files, not .so files.
14810       shrext_cmds=".dll"
14811       # FIXME: Setting linknames here is a bad hack.
14812       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14813       # The linker will automatically build a .lib file if we build a DLL.
14814       old_archive_From_new_cmds_F77='true'
14815       # FIXME: Should let the user specify the lib program.
14816       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14817       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14818       enable_shared_with_static_runtimes_F77=yes
14819       ;;
14820
14821     darwin* | rhapsody*)
14822       case $host_os in
14823         rhapsody* | darwin1.[012])
14824          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14825          ;;
14826        *) # Darwin 1.3 on
14827          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14828            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14829          else
14830            case ${MACOSX_DEPLOYMENT_TARGET} in
14831              10.[012])
14832                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14833                ;;
14834              10.*)
14835                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14836                ;;
14837            esac
14838          fi
14839          ;;
14840       esac
14841       archive_cmds_need_lc_F77=no
14842       hardcode_direct_F77=no
14843       hardcode_automatic_F77=yes
14844       hardcode_shlibpath_var_F77=unsupported
14845       whole_archive_flag_spec_F77=''
14846       link_all_deplibs_F77=yes
14847     if test "$GCC" = yes ; then
14848         output_verbose_link_cmd='echo'
14849         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14850       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14851       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14852       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14853       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14854     else
14855       case $cc_basename in
14856         xlc*)
14857          output_verbose_link_cmd='echo'
14858          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14859          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14860           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14861          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14862           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14863           ;;
14864        *)
14865          ld_shlibs_F77=no
14866           ;;
14867       esac
14868     fi
14869       ;;
14870
14871     dgux*)
14872       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14873       hardcode_libdir_flag_spec_F77='-L$libdir'
14874       hardcode_shlibpath_var_F77=no
14875       ;;
14876
14877     freebsd1*)
14878       ld_shlibs_F77=no
14879       ;;
14880
14881     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14882     # support.  Future versions do this automatically, but an explicit c++rt0.o
14883     # does not break anything, and helps significantly (at the cost of a little
14884     # extra space).
14885     freebsd2.2*)
14886       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14887       hardcode_libdir_flag_spec_F77='-R$libdir'
14888       hardcode_direct_F77=yes
14889       hardcode_shlibpath_var_F77=no
14890       ;;
14891
14892     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14893     freebsd2*)
14894       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14895       hardcode_direct_F77=yes
14896       hardcode_minus_L_F77=yes
14897       hardcode_shlibpath_var_F77=no
14898       ;;
14899
14900     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14901     freebsd* | dragonfly*)
14902       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14903       hardcode_libdir_flag_spec_F77='-R$libdir'
14904       hardcode_direct_F77=yes
14905       hardcode_shlibpath_var_F77=no
14906       ;;
14907
14908     hpux9*)
14909       if test "$GCC" = yes; then
14910         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14911       else
14912         archive_cmds_F77='$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'
14913       fi
14914       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14915       hardcode_libdir_separator_F77=:
14916       hardcode_direct_F77=yes
14917
14918       # hardcode_minus_L: Not really in the search PATH,
14919       # but as the default location of the library.
14920       hardcode_minus_L_F77=yes
14921       export_dynamic_flag_spec_F77='${wl}-E'
14922       ;;
14923
14924     hpux10*)
14925       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14926         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14927       else
14928         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14929       fi
14930       if test "$with_gnu_ld" = no; then
14931         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14932         hardcode_libdir_separator_F77=:
14933
14934         hardcode_direct_F77=yes
14935         export_dynamic_flag_spec_F77='${wl}-E'
14936
14937         # hardcode_minus_L: Not really in the search PATH,
14938         # but as the default location of the library.
14939         hardcode_minus_L_F77=yes
14940       fi
14941       ;;
14942
14943     hpux11*)
14944       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14945         case $host_cpu in
14946         hppa*64*)
14947           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14948           ;;
14949         ia64*)
14950           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14951           ;;
14952         *)
14953           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14954           ;;
14955         esac
14956       else
14957         case $host_cpu in
14958         hppa*64*)
14959           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14960           ;;
14961         ia64*)
14962           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14963           ;;
14964         *)
14965           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14966           ;;
14967         esac
14968       fi
14969       if test "$with_gnu_ld" = no; then
14970         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14971         hardcode_libdir_separator_F77=:
14972
14973         case $host_cpu in
14974         hppa*64*|ia64*)
14975           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14976           hardcode_direct_F77=no
14977           hardcode_shlibpath_var_F77=no
14978           ;;
14979         *)
14980           hardcode_direct_F77=yes
14981           export_dynamic_flag_spec_F77='${wl}-E'
14982
14983           # hardcode_minus_L: Not really in the search PATH,
14984           # but as the default location of the library.
14985           hardcode_minus_L_F77=yes
14986           ;;
14987         esac
14988       fi
14989       ;;
14990
14991     irix5* | irix6* | nonstopux*)
14992       if test "$GCC" = yes; then
14993         archive_cmds_F77='$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'
14994       else
14995         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14996         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14997       fi
14998       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14999       hardcode_libdir_separator_F77=:
15000       link_all_deplibs_F77=yes
15001       ;;
15002
15003     netbsd* | netbsdelf*-gnu)
15004       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15005         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15006       else
15007         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15008       fi
15009       hardcode_libdir_flag_spec_F77='-R$libdir'
15010       hardcode_direct_F77=yes
15011       hardcode_shlibpath_var_F77=no
15012       ;;
15013
15014     newsos6)
15015       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15016       hardcode_direct_F77=yes
15017       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15018       hardcode_libdir_separator_F77=:
15019       hardcode_shlibpath_var_F77=no
15020       ;;
15021
15022     openbsd*)
15023       hardcode_direct_F77=yes
15024       hardcode_shlibpath_var_F77=no
15025       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15026         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15027         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15028         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15029         export_dynamic_flag_spec_F77='${wl}-E'
15030       else
15031        case $host_os in
15032          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15033            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15034            hardcode_libdir_flag_spec_F77='-R$libdir'
15035            ;;
15036          *)
15037            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15038            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15039            ;;
15040        esac
15041       fi
15042       ;;
15043
15044     os2*)
15045       hardcode_libdir_flag_spec_F77='-L$libdir'
15046       hardcode_minus_L_F77=yes
15047       allow_undefined_flag_F77=unsupported
15048       archive_cmds_F77='$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'
15049       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15050       ;;
15051
15052     osf3*)
15053       if test "$GCC" = yes; then
15054         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15055         archive_cmds_F77='$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'
15056       else
15057         allow_undefined_flag_F77=' -expect_unresolved \*'
15058         archive_cmds_F77='$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'
15059       fi
15060       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15061       hardcode_libdir_separator_F77=:
15062       ;;
15063
15064     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15065       if test "$GCC" = yes; then
15066         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15067         archive_cmds_F77='$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'
15068         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15069       else
15070         allow_undefined_flag_F77=' -expect_unresolved \*'
15071         archive_cmds_F77='$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'
15072         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15073         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15074
15075         # Both c and cxx compiler support -rpath directly
15076         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15077       fi
15078       hardcode_libdir_separator_F77=:
15079       ;;
15080
15081     solaris*)
15082       no_undefined_flag_F77=' -z text'
15083       if test "$GCC" = yes; then
15084         wlarc='${wl}'
15085         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15086         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15087           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15088       else
15089         wlarc=''
15090         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15091         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15092         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15093       fi
15094       hardcode_libdir_flag_spec_F77='-R$libdir'
15095       hardcode_shlibpath_var_F77=no
15096       case $host_os in
15097       solaris2.[0-5] | solaris2.[0-5].*) ;;
15098       *)
15099         # The compiler driver will combine linker options so we
15100         # cannot just pass the convience library names through
15101         # without $wl, iff we do not link with $LD.
15102         # Luckily, gcc supports the same syntax we need for Sun Studio.
15103         # Supported since Solaris 2.6 (maybe 2.5.1?)
15104         case $wlarc in
15105         '')
15106           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15107         *)
15108           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15109         esac ;;
15110       esac
15111       link_all_deplibs_F77=yes
15112       ;;
15113
15114     sunos4*)
15115       if test "x$host_vendor" = xsequent; then
15116         # Use $CC to link under sequent, because it throws in some extra .o
15117         # files that make .init and .fini sections work.
15118         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15119       else
15120         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15121       fi
15122       hardcode_libdir_flag_spec_F77='-L$libdir'
15123       hardcode_direct_F77=yes
15124       hardcode_minus_L_F77=yes
15125       hardcode_shlibpath_var_F77=no
15126       ;;
15127
15128     sysv4)
15129       case $host_vendor in
15130         sni)
15131           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15132           hardcode_direct_F77=yes # is this really true???
15133         ;;
15134         siemens)
15135           ## LD is ld it makes a PLAMLIB
15136           ## CC just makes a GrossModule.
15137           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15138           reload_cmds_F77='$CC -r -o $output$reload_objs'
15139           hardcode_direct_F77=no
15140         ;;
15141         motorola)
15142           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15143           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15144         ;;
15145       esac
15146       runpath_var='LD_RUN_PATH'
15147       hardcode_shlibpath_var_F77=no
15148       ;;
15149
15150     sysv4.3*)
15151       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15152       hardcode_shlibpath_var_F77=no
15153       export_dynamic_flag_spec_F77='-Bexport'
15154       ;;
15155
15156     sysv4*MP*)
15157       if test -d /usr/nec; then
15158         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15159         hardcode_shlibpath_var_F77=no
15160         runpath_var=LD_RUN_PATH
15161         hardcode_runpath_var=yes
15162         ld_shlibs_F77=yes
15163       fi
15164       ;;
15165
15166     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15167       no_undefined_flag_F77='${wl}-z,text'
15168       archive_cmds_need_lc_F77=no
15169       hardcode_shlibpath_var_F77=no
15170       runpath_var='LD_RUN_PATH'
15171
15172       if test "$GCC" = yes; then
15173         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15174         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15175       else
15176         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15177         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15178       fi
15179       ;;
15180
15181     sysv5* | sco3.2v5* | sco5v6*)
15182       # Note: We can NOT use -z defs as we might desire, because we do not
15183       # link with -lc, and that would cause any symbols used from libc to
15184       # always be unresolved, which means just about no library would
15185       # ever link correctly.  If we're not using GNU ld we use -z text
15186       # though, which does catch some bad symbols but isn't as heavy-handed
15187       # as -z defs.
15188       no_undefined_flag_F77='${wl}-z,text'
15189       allow_undefined_flag_F77='${wl}-z,nodefs'
15190       archive_cmds_need_lc_F77=no
15191       hardcode_shlibpath_var_F77=no
15192       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15193       hardcode_libdir_separator_F77=':'
15194       link_all_deplibs_F77=yes
15195       export_dynamic_flag_spec_F77='${wl}-Bexport'
15196       runpath_var='LD_RUN_PATH'
15197
15198       if test "$GCC" = yes; then
15199         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15200         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15201       else
15202         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15203         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15204       fi
15205       ;;
15206
15207     uts4*)
15208       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15209       hardcode_libdir_flag_spec_F77='-L$libdir'
15210       hardcode_shlibpath_var_F77=no
15211       ;;
15212
15213     *)
15214       ld_shlibs_F77=no
15215       ;;
15216     esac
15217   fi
15218
15219 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15220 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15221 test "$ld_shlibs_F77" = no && can_build_shared=no
15222
15223 #
15224 # Do we need to explicitly link libc?
15225 #
15226 case "x$archive_cmds_need_lc_F77" in
15227 x|xyes)
15228   # Assume -lc should be added
15229   archive_cmds_need_lc_F77=yes
15230
15231   if test "$enable_shared" = yes && test "$GCC" = yes; then
15232     case $archive_cmds_F77 in
15233     *'~'*)
15234       # FIXME: we may have to deal with multi-command sequences.
15235       ;;
15236     '$CC '*)
15237       # Test whether the compiler implicitly links with -lc since on some
15238       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15239       # to ld, don't add -lc before -lgcc.
15240       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15241 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15242       $rm conftest*
15243       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15244
15245       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15246   (eval $ac_compile) 2>&5
15247   ac_status=$?
15248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249   (exit $ac_status); } 2>conftest.err; then
15250         soname=conftest
15251         lib=conftest
15252         libobjs=conftest.$ac_objext
15253         deplibs=
15254         wl=$lt_prog_compiler_wl_F77
15255         pic_flag=$lt_prog_compiler_pic_F77
15256         compiler_flags=-v
15257         linker_flags=-v
15258         verstring=
15259         output_objdir=.
15260         libname=conftest
15261         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15262         allow_undefined_flag_F77=
15263         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15264   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15265   ac_status=$?
15266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267   (exit $ac_status); }
15268         then
15269           archive_cmds_need_lc_F77=no
15270         else
15271           archive_cmds_need_lc_F77=yes
15272         fi
15273         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15274       else
15275         cat conftest.err 1>&5
15276       fi
15277       $rm conftest*
15278       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15279 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15280       ;;
15281     esac
15282   fi
15283   ;;
15284 esac
15285
15286 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15287 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15288 library_names_spec=
15289 libname_spec='lib$name'
15290 soname_spec=
15291 shrext_cmds=".so"
15292 postinstall_cmds=
15293 postuninstall_cmds=
15294 finish_cmds=
15295 finish_eval=
15296 shlibpath_var=
15297 shlibpath_overrides_runpath=unknown
15298 version_type=none
15299 dynamic_linker="$host_os ld.so"
15300 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15301 if test "$GCC" = yes; then
15302   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15303   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15304     # if the path contains ";" then we assume it to be the separator
15305     # otherwise default to the standard path separator (i.e. ":") - it is
15306     # assumed that no part of a normal pathname contains ";" but that should
15307     # okay in the real world where ";" in dirpaths is itself problematic.
15308     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15309   else
15310     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15311   fi
15312 else
15313   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15314 fi
15315 need_lib_prefix=unknown
15316 hardcode_into_libs=no
15317
15318 # when you set need_version to no, make sure it does not cause -set_version
15319 # flags to be left without arguments
15320 need_version=unknown
15321
15322 case $host_os in
15323 aix3*)
15324   version_type=linux
15325   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15326   shlibpath_var=LIBPATH
15327
15328   # AIX 3 has no versioning support, so we append a major version to the name.
15329   soname_spec='${libname}${release}${shared_ext}$major'
15330   ;;
15331
15332 aix4* | aix5*)
15333   version_type=linux
15334   need_lib_prefix=no
15335   need_version=no
15336   hardcode_into_libs=yes
15337   if test "$host_cpu" = ia64; then
15338     # AIX 5 supports IA64
15339     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15340     shlibpath_var=LD_LIBRARY_PATH
15341   else
15342     # With GCC up to 2.95.x, collect2 would create an import file
15343     # for dependence libraries.  The import file would start with
15344     # the line `#! .'.  This would cause the generated library to
15345     # depend on `.', always an invalid library.  This was fixed in
15346     # development snapshots of GCC prior to 3.0.
15347     case $host_os in
15348       aix4 | aix4.[01] | aix4.[01].*)
15349       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15350            echo ' yes '
15351            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15352         :
15353       else
15354         can_build_shared=no
15355       fi
15356       ;;
15357     esac
15358     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15359     # soname into executable. Probably we can add versioning support to
15360     # collect2, so additional links can be useful in future.
15361     if test "$aix_use_runtimelinking" = yes; then
15362       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15363       # instead of lib<name>.a to let people know that these are not
15364       # typical AIX shared libraries.
15365       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15366     else
15367       # We preserve .a as extension for shared libraries through AIX4.2
15368       # and later when we are not doing run time linking.
15369       library_names_spec='${libname}${release}.a $libname.a'
15370       soname_spec='${libname}${release}${shared_ext}$major'
15371     fi
15372     shlibpath_var=LIBPATH
15373   fi
15374   ;;
15375
15376 amigaos*)
15377   library_names_spec='$libname.ixlibrary $libname.a'
15378   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15379   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'
15380   ;;
15381
15382 beos*)
15383   library_names_spec='${libname}${shared_ext}'
15384   dynamic_linker="$host_os ld.so"
15385   shlibpath_var=LIBRARY_PATH
15386   ;;
15387
15388 bsdi[45]*)
15389   version_type=linux
15390   need_version=no
15391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15392   soname_spec='${libname}${release}${shared_ext}$major'
15393   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15394   shlibpath_var=LD_LIBRARY_PATH
15395   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15396   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15397   # the default ld.so.conf also contains /usr/contrib/lib and
15398   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15399   # libtool to hard-code these into programs
15400   ;;
15401
15402 cygwin* | mingw* | pw32*)
15403   version_type=windows
15404   shrext_cmds=".dll"
15405   need_version=no
15406   need_lib_prefix=no
15407
15408   case $GCC,$host_os in
15409   yes,cygwin* | yes,mingw* | yes,pw32*)
15410     library_names_spec='$libname.dll.a'
15411     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15412     postinstall_cmds='base_file=`basename \${file}`~
15413       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15414       dldir=$destdir/`dirname \$dlpath`~
15415       test -d \$dldir || mkdir -p \$dldir~
15416       $install_prog $dir/$dlname \$dldir/$dlname~
15417       chmod a+x \$dldir/$dlname'
15418     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15419       dlpath=$dir/\$dldll~
15420        $rm \$dlpath'
15421     shlibpath_overrides_runpath=yes
15422
15423     case $host_os in
15424     cygwin*)
15425       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15426       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15427       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15428       ;;
15429     mingw*)
15430       # MinGW DLLs use traditional 'lib' prefix
15431       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15432       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15433       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15434         # It is most probably a Windows format PATH printed by
15435         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15436         # path with ; separators, and with drive letters. We can handle the
15437         # drive letters (cygwin fileutils understands them), so leave them,
15438         # especially as we might pass files found there to a mingw objdump,
15439         # which wouldn't understand a cygwinified path. Ahh.
15440         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15441       else
15442         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15443       fi
15444       ;;
15445     pw32*)
15446       # pw32 DLLs use 'pw' prefix rather than 'lib'
15447       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15448       ;;
15449     esac
15450     ;;
15451
15452   *)
15453     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15454     ;;
15455   esac
15456   dynamic_linker='Win32 ld.exe'
15457   # FIXME: first we should search . and the directory the executable is in
15458   shlibpath_var=PATH
15459   ;;
15460
15461 darwin* | rhapsody*)
15462   dynamic_linker="$host_os dyld"
15463   version_type=darwin
15464   need_lib_prefix=no
15465   need_version=no
15466   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15467   soname_spec='${libname}${release}${major}$shared_ext'
15468   shlibpath_overrides_runpath=yes
15469   shlibpath_var=DYLD_LIBRARY_PATH
15470   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15471   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15472   if test "$GCC" = yes; then
15473     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15474   else
15475     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15476   fi
15477   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15478   ;;
15479
15480 dgux*)
15481   version_type=linux
15482   need_lib_prefix=no
15483   need_version=no
15484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15485   soname_spec='${libname}${release}${shared_ext}$major'
15486   shlibpath_var=LD_LIBRARY_PATH
15487   ;;
15488
15489 freebsd1*)
15490   dynamic_linker=no
15491   ;;
15492
15493 freebsd* | dragonfly*)
15494   # DragonFly does not have aout.  When/if they implement a new
15495   # versioning mechanism, adjust this.
15496   if test -x /usr/bin/objformat; then
15497     objformat=`/usr/bin/objformat`
15498   else
15499     case $host_os in
15500     freebsd[123]*) objformat=aout ;;
15501     *) objformat=elf ;;
15502     esac
15503   fi
15504   version_type=freebsd-$objformat
15505   case $version_type in
15506     freebsd-elf*)
15507       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15508       need_version=no
15509       need_lib_prefix=no
15510       ;;
15511     freebsd-*)
15512       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15513       need_version=yes
15514       ;;
15515   esac
15516   shlibpath_var=LD_LIBRARY_PATH
15517   case $host_os in
15518   freebsd2*)
15519     shlibpath_overrides_runpath=yes
15520     ;;
15521   freebsd3.[01]* | freebsdelf3.[01]*)
15522     shlibpath_overrides_runpath=yes
15523     hardcode_into_libs=yes
15524     ;;
15525   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15526   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15527     shlibpath_overrides_runpath=no
15528     hardcode_into_libs=yes
15529     ;;
15530   freebsd*) # from 4.6 on
15531     shlibpath_overrides_runpath=yes
15532     hardcode_into_libs=yes
15533     ;;
15534   esac
15535   ;;
15536
15537 gnu*)
15538   version_type=linux
15539   need_lib_prefix=no
15540   need_version=no
15541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15542   soname_spec='${libname}${release}${shared_ext}$major'
15543   shlibpath_var=LD_LIBRARY_PATH
15544   hardcode_into_libs=yes
15545   ;;
15546
15547 hpux9* | hpux10* | hpux11*)
15548   # Give a soname corresponding to the major version so that dld.sl refuses to
15549   # link against other versions.
15550   version_type=sunos
15551   need_lib_prefix=no
15552   need_version=no
15553   case $host_cpu in
15554   ia64*)
15555     shrext_cmds='.so'
15556     hardcode_into_libs=yes
15557     dynamic_linker="$host_os dld.so"
15558     shlibpath_var=LD_LIBRARY_PATH
15559     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15560     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15561     soname_spec='${libname}${release}${shared_ext}$major'
15562     if test "X$HPUX_IA64_MODE" = X32; then
15563       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15564     else
15565       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15566     fi
15567     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15568     ;;
15569    hppa*64*)
15570      shrext_cmds='.sl'
15571      hardcode_into_libs=yes
15572      dynamic_linker="$host_os dld.sl"
15573      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15574      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15575      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15576      soname_spec='${libname}${release}${shared_ext}$major'
15577      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15578      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15579      ;;
15580    *)
15581     shrext_cmds='.sl'
15582     dynamic_linker="$host_os dld.sl"
15583     shlibpath_var=SHLIB_PATH
15584     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15585     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15586     soname_spec='${libname}${release}${shared_ext}$major'
15587     ;;
15588   esac
15589   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15590   postinstall_cmds='chmod 555 $lib'
15591   ;;
15592
15593 interix3*)
15594   version_type=linux
15595   need_lib_prefix=no
15596   need_version=no
15597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15598   soname_spec='${libname}${release}${shared_ext}$major'
15599   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15600   shlibpath_var=LD_LIBRARY_PATH
15601   shlibpath_overrides_runpath=no
15602   hardcode_into_libs=yes
15603   ;;
15604
15605 irix5* | irix6* | nonstopux*)
15606   case $host_os in
15607     nonstopux*) version_type=nonstopux ;;
15608     *)
15609         if test "$lt_cv_prog_gnu_ld" = yes; then
15610                 version_type=linux
15611         else
15612                 version_type=irix
15613         fi ;;
15614   esac
15615   need_lib_prefix=no
15616   need_version=no
15617   soname_spec='${libname}${release}${shared_ext}$major'
15618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15619   case $host_os in
15620   irix5* | nonstopux*)
15621     libsuff= shlibsuff=
15622     ;;
15623   *)
15624     case $LD in # libtool.m4 will add one of these switches to LD
15625     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15626       libsuff= shlibsuff= libmagic=32-bit;;
15627     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15628       libsuff=32 shlibsuff=N32 libmagic=N32;;
15629     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15630       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15631     *) libsuff= shlibsuff= libmagic=never-match;;
15632     esac
15633     ;;
15634   esac
15635   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15636   shlibpath_overrides_runpath=no
15637   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15638   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15639   hardcode_into_libs=yes
15640   ;;
15641
15642 # No shared lib support for Linux oldld, aout, or coff.
15643 linux*oldld* | linux*aout* | linux*coff*)
15644   dynamic_linker=no
15645   ;;
15646
15647 # This must be Linux ELF.
15648 linux* | k*bsd*-gnu)
15649   version_type=linux
15650   need_lib_prefix=no
15651   need_version=no
15652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15653   soname_spec='${libname}${release}${shared_ext}$major'
15654   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15655   shlibpath_var=LD_LIBRARY_PATH
15656   shlibpath_overrides_runpath=no
15657   # This implies no fast_install, which is unacceptable.
15658   # Some rework will be needed to allow for fast_install
15659   # before this can be enabled.
15660   hardcode_into_libs=yes
15661
15662   # Append ld.so.conf contents to the search path
15663   if test -f /etc/ld.so.conf; then
15664     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15665     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15666   fi
15667
15668   # We used to test for /lib/ld.so.1 and disable shared libraries on
15669   # powerpc, because MkLinux only supported shared libraries with the
15670   # GNU dynamic linker.  Since this was broken with cross compilers,
15671   # most powerpc-linux boxes support dynamic linking these days and
15672   # people can always --disable-shared, the test was removed, and we
15673   # assume the GNU/Linux dynamic linker is in use.
15674   dynamic_linker='GNU/Linux ld.so'
15675   ;;
15676
15677 netbsdelf*-gnu)
15678   version_type=linux
15679   need_lib_prefix=no
15680   need_version=no
15681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15682   soname_spec='${libname}${release}${shared_ext}$major'
15683   shlibpath_var=LD_LIBRARY_PATH
15684   shlibpath_overrides_runpath=no
15685   hardcode_into_libs=yes
15686   dynamic_linker='NetBSD ld.elf_so'
15687   ;;
15688
15689 netbsd*)
15690   version_type=sunos
15691   need_lib_prefix=no
15692   need_version=no
15693   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15694     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15695     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15696     dynamic_linker='NetBSD (a.out) ld.so'
15697   else
15698     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15699     soname_spec='${libname}${release}${shared_ext}$major'
15700     dynamic_linker='NetBSD ld.elf_so'
15701   fi
15702   shlibpath_var=LD_LIBRARY_PATH
15703   shlibpath_overrides_runpath=yes
15704   hardcode_into_libs=yes
15705   ;;
15706
15707 newsos6)
15708   version_type=linux
15709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15710   shlibpath_var=LD_LIBRARY_PATH
15711   shlibpath_overrides_runpath=yes
15712   ;;
15713
15714 nto-qnx*)
15715   version_type=linux
15716   need_lib_prefix=no
15717   need_version=no
15718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15719   soname_spec='${libname}${release}${shared_ext}$major'
15720   shlibpath_var=LD_LIBRARY_PATH
15721   shlibpath_overrides_runpath=yes
15722   ;;
15723
15724 openbsd*)
15725   version_type=sunos
15726   sys_lib_dlsearch_path_spec="/usr/lib"
15727   need_lib_prefix=no
15728   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15729   case $host_os in
15730     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15731     *)                         need_version=no  ;;
15732   esac
15733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15734   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15735   shlibpath_var=LD_LIBRARY_PATH
15736   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15737     case $host_os in
15738       openbsd2.[89] | openbsd2.[89].*)
15739         shlibpath_overrides_runpath=no
15740         ;;
15741       *)
15742         shlibpath_overrides_runpath=yes
15743         ;;
15744       esac
15745   else
15746     shlibpath_overrides_runpath=yes
15747   fi
15748   ;;
15749
15750 os2*)
15751   libname_spec='$name'
15752   shrext_cmds=".dll"
15753   need_lib_prefix=no
15754   library_names_spec='$libname${shared_ext} $libname.a'
15755   dynamic_linker='OS/2 ld.exe'
15756   shlibpath_var=LIBPATH
15757   ;;
15758
15759 osf3* | osf4* | osf5*)
15760   version_type=osf
15761   need_lib_prefix=no
15762   need_version=no
15763   soname_spec='${libname}${release}${shared_ext}$major'
15764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15765   shlibpath_var=LD_LIBRARY_PATH
15766   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15767   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15768   ;;
15769
15770 solaris*)
15771   version_type=linux
15772   need_lib_prefix=no
15773   need_version=no
15774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15775   soname_spec='${libname}${release}${shared_ext}$major'
15776   shlibpath_var=LD_LIBRARY_PATH
15777   shlibpath_overrides_runpath=yes
15778   hardcode_into_libs=yes
15779   # ldd complains unless libraries are executable
15780   postinstall_cmds='chmod +x $lib'
15781   ;;
15782
15783 sunos4*)
15784   version_type=sunos
15785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15786   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15787   shlibpath_var=LD_LIBRARY_PATH
15788   shlibpath_overrides_runpath=yes
15789   if test "$with_gnu_ld" = yes; then
15790     need_lib_prefix=no
15791   fi
15792   need_version=yes
15793   ;;
15794
15795 sysv4 | sysv4.3*)
15796   version_type=linux
15797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15798   soname_spec='${libname}${release}${shared_ext}$major'
15799   shlibpath_var=LD_LIBRARY_PATH
15800   case $host_vendor in
15801     sni)
15802       shlibpath_overrides_runpath=no
15803       need_lib_prefix=no
15804       export_dynamic_flag_spec='${wl}-Blargedynsym'
15805       runpath_var=LD_RUN_PATH
15806       ;;
15807     siemens)
15808       need_lib_prefix=no
15809       ;;
15810     motorola)
15811       need_lib_prefix=no
15812       need_version=no
15813       shlibpath_overrides_runpath=no
15814       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15815       ;;
15816   esac
15817   ;;
15818
15819 sysv4*MP*)
15820   if test -d /usr/nec ;then
15821     version_type=linux
15822     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15823     soname_spec='$libname${shared_ext}.$major'
15824     shlibpath_var=LD_LIBRARY_PATH
15825   fi
15826   ;;
15827
15828 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15829   version_type=freebsd-elf
15830   need_lib_prefix=no
15831   need_version=no
15832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15833   soname_spec='${libname}${release}${shared_ext}$major'
15834   shlibpath_var=LD_LIBRARY_PATH
15835   hardcode_into_libs=yes
15836   if test "$with_gnu_ld" = yes; then
15837     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15838     shlibpath_overrides_runpath=no
15839   else
15840     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15841     shlibpath_overrides_runpath=yes
15842     case $host_os in
15843       sco3.2v5*)
15844         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15845         ;;
15846     esac
15847   fi
15848   sys_lib_dlsearch_path_spec='/usr/lib'
15849   ;;
15850
15851 uts4*)
15852   version_type=linux
15853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15854   soname_spec='${libname}${release}${shared_ext}$major'
15855   shlibpath_var=LD_LIBRARY_PATH
15856   ;;
15857
15858 *)
15859   dynamic_linker=no
15860   ;;
15861 esac
15862 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15863 echo "${ECHO_T}$dynamic_linker" >&6; }
15864 test "$dynamic_linker" = no && can_build_shared=no
15865
15866 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15867 if test "$GCC" = yes; then
15868   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15869 fi
15870
15871 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15872 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15873 hardcode_action_F77=
15874 if test -n "$hardcode_libdir_flag_spec_F77" || \
15875    test -n "$runpath_var_F77" || \
15876    test "X$hardcode_automatic_F77" = "Xyes" ; then
15877
15878   # We can hardcode non-existant directories.
15879   if test "$hardcode_direct_F77" != no &&
15880      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15881      # have to relink, otherwise we might link with an installed library
15882      # when we should be linking with a yet-to-be-installed one
15883      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15884      test "$hardcode_minus_L_F77" != no; then
15885     # Linking always hardcodes the temporary library directory.
15886     hardcode_action_F77=relink
15887   else
15888     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15889     hardcode_action_F77=immediate
15890   fi
15891 else
15892   # We cannot hardcode anything, or else we can only hardcode existing
15893   # directories.
15894   hardcode_action_F77=unsupported
15895 fi
15896 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15897 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15898
15899 if test "$hardcode_action_F77" = relink; then
15900   # Fast installation is not supported
15901   enable_fast_install=no
15902 elif test "$shlibpath_overrides_runpath" = yes ||
15903      test "$enable_shared" = no; then
15904   # Fast installation is not necessary
15905   enable_fast_install=needless
15906 fi
15907
15908
15909 # The else clause should only fire when bootstrapping the
15910 # libtool distribution, otherwise you forgot to ship ltmain.sh
15911 # with your package, and you will get complaints that there are
15912 # no rules to generate ltmain.sh.
15913 if test -f "$ltmain"; then
15914   # See if we are running on zsh, and set the options which allow our commands through
15915   # without removal of \ escapes.
15916   if test -n "${ZSH_VERSION+set}" ; then
15917     setopt NO_GLOB_SUBST
15918   fi
15919   # Now quote all the things that may contain metacharacters while being
15920   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15921   # variables and quote the copies for generation of the libtool script.
15922   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15923     SED SHELL STRIP \
15924     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15925     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15926     deplibs_check_method reload_flag reload_cmds need_locks \
15927     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15928     lt_cv_sys_global_symbol_to_c_name_address \
15929     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15930     old_postinstall_cmds old_postuninstall_cmds \
15931     compiler_F77 \
15932     CC_F77 \
15933     LD_F77 \
15934     lt_prog_compiler_wl_F77 \
15935     lt_prog_compiler_pic_F77 \
15936     lt_prog_compiler_static_F77 \
15937     lt_prog_compiler_no_builtin_flag_F77 \
15938     export_dynamic_flag_spec_F77 \
15939     thread_safe_flag_spec_F77 \
15940     whole_archive_flag_spec_F77 \
15941     enable_shared_with_static_runtimes_F77 \
15942     old_archive_cmds_F77 \
15943     old_archive_from_new_cmds_F77 \
15944     predep_objects_F77 \
15945     postdep_objects_F77 \
15946     predeps_F77 \
15947     postdeps_F77 \
15948     compiler_lib_search_path_F77 \
15949     archive_cmds_F77 \
15950     archive_expsym_cmds_F77 \
15951     postinstall_cmds_F77 \
15952     postuninstall_cmds_F77 \
15953     old_archive_from_expsyms_cmds_F77 \
15954     allow_undefined_flag_F77 \
15955     no_undefined_flag_F77 \
15956     export_symbols_cmds_F77 \
15957     hardcode_libdir_flag_spec_F77 \
15958     hardcode_libdir_flag_spec_ld_F77 \
15959     hardcode_libdir_separator_F77 \
15960     hardcode_automatic_F77 \
15961     module_cmds_F77 \
15962     module_expsym_cmds_F77 \
15963     lt_cv_prog_compiler_c_o_F77 \
15964     exclude_expsyms_F77 \
15965     include_expsyms_F77; do
15966
15967     case $var in
15968     old_archive_cmds_F77 | \
15969     old_archive_from_new_cmds_F77 | \
15970     archive_cmds_F77 | \
15971     archive_expsym_cmds_F77 | \
15972     module_cmds_F77 | \
15973     module_expsym_cmds_F77 | \
15974     old_archive_from_expsyms_cmds_F77 | \
15975     export_symbols_cmds_F77 | \
15976     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15977     postinstall_cmds | postuninstall_cmds | \
15978     old_postinstall_cmds | old_postuninstall_cmds | \
15979     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15980       # Double-quote double-evaled strings.
15981       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15982       ;;
15983     *)
15984       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15985       ;;
15986     esac
15987   done
15988
15989   case $lt_echo in
15990   *'\$0 --fallback-echo"')
15991     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15992     ;;
15993   esac
15994
15995 cfgfile="$ofile"
15996
15997   cat <<__EOF__ >> "$cfgfile"
15998 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15999
16000 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16001
16002 # Shell to use when invoking shell scripts.
16003 SHELL=$lt_SHELL
16004
16005 # Whether or not to build shared libraries.
16006 build_libtool_libs=$enable_shared
16007
16008 # Whether or not to build static libraries.
16009 build_old_libs=$enable_static
16010
16011 # Whether or not to add -lc for building shared libraries.
16012 build_libtool_need_lc=$archive_cmds_need_lc_F77
16013
16014 # Whether or not to disallow shared libs when runtime libs are static
16015 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16016
16017 # Whether or not to optimize for fast installation.
16018 fast_install=$enable_fast_install
16019
16020 # The host system.
16021 host_alias=$host_alias
16022 host=$host
16023 host_os=$host_os
16024
16025 # The build system.
16026 build_alias=$build_alias
16027 build=$build
16028 build_os=$build_os
16029
16030 # An echo program that does not interpret backslashes.
16031 echo=$lt_echo
16032
16033 # The archiver.
16034 AR=$lt_AR
16035 AR_FLAGS=$lt_AR_FLAGS
16036
16037 # A C compiler.
16038 LTCC=$lt_LTCC
16039
16040 # LTCC compiler flags.
16041 LTCFLAGS=$lt_LTCFLAGS
16042
16043 # A language-specific compiler.
16044 CC=$lt_compiler_F77
16045
16046 # Is the compiler the GNU C compiler?
16047 with_gcc=$GCC_F77
16048
16049 # An ERE matcher.
16050 EGREP=$lt_EGREP
16051
16052 # The linker used to build libraries.
16053 LD=$lt_LD_F77
16054
16055 # Whether we need hard or soft links.
16056 LN_S=$lt_LN_S
16057
16058 # A BSD-compatible nm program.
16059 NM=$lt_NM
16060
16061 # A symbol stripping program
16062 STRIP=$lt_STRIP
16063
16064 # Used to examine libraries when file_magic_cmd begins "file"
16065 MAGIC_CMD=$MAGIC_CMD
16066
16067 # Used on cygwin: DLL creation program.
16068 DLLTOOL="$DLLTOOL"
16069
16070 # Used on cygwin: object dumper.
16071 OBJDUMP="$OBJDUMP"
16072
16073 # Used on cygwin: assembler.
16074 AS="$AS"
16075
16076 # The name of the directory that contains temporary libtool files.
16077 objdir=$objdir
16078
16079 # How to create reloadable object files.
16080 reload_flag=$lt_reload_flag
16081 reload_cmds=$lt_reload_cmds
16082
16083 # How to pass a linker flag through the compiler.
16084 wl=$lt_lt_prog_compiler_wl_F77
16085
16086 # Object file suffix (normally "o").
16087 objext="$ac_objext"
16088
16089 # Old archive suffix (normally "a").
16090 libext="$libext"
16091
16092 # Shared library suffix (normally ".so").
16093 shrext_cmds='$shrext_cmds'
16094
16095 # Executable file suffix (normally "").
16096 exeext="$exeext"
16097
16098 # Additional compiler flags for building library objects.
16099 pic_flag=$lt_lt_prog_compiler_pic_F77
16100 pic_mode=$pic_mode
16101
16102 # What is the maximum length of a command?
16103 max_cmd_len=$lt_cv_sys_max_cmd_len
16104
16105 # Does compiler simultaneously support -c and -o options?
16106 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16107
16108 # Must we lock files when doing compilation?
16109 need_locks=$lt_need_locks
16110
16111 # Do we need the lib prefix for modules?
16112 need_lib_prefix=$need_lib_prefix
16113
16114 # Do we need a version for libraries?
16115 need_version=$need_version
16116
16117 # Whether dlopen is supported.
16118 dlopen_support=$enable_dlopen
16119
16120 # Whether dlopen of programs is supported.
16121 dlopen_self=$enable_dlopen_self
16122
16123 # Whether dlopen of statically linked programs is supported.
16124 dlopen_self_static=$enable_dlopen_self_static
16125
16126 # Compiler flag to prevent dynamic linking.
16127 link_static_flag=$lt_lt_prog_compiler_static_F77
16128
16129 # Compiler flag to turn off builtin functions.
16130 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16131
16132 # Compiler flag to allow reflexive dlopens.
16133 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16134
16135 # Compiler flag to generate shared objects directly from archives.
16136 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16137
16138 # Compiler flag to generate thread-safe objects.
16139 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16140
16141 # Library versioning type.
16142 version_type=$version_type
16143
16144 # Format of library name prefix.
16145 libname_spec=$lt_libname_spec
16146
16147 # List of archive names.  First name is the real one, the rest are links.
16148 # The last name is the one that the linker finds with -lNAME.
16149 library_names_spec=$lt_library_names_spec
16150
16151 # The coded name of the library, if different from the real name.
16152 soname_spec=$lt_soname_spec
16153
16154 # Commands used to build and install an old-style archive.
16155 RANLIB=$lt_RANLIB
16156 old_archive_cmds=$lt_old_archive_cmds_F77
16157 old_postinstall_cmds=$lt_old_postinstall_cmds
16158 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16159
16160 # Create an old-style archive from a shared archive.
16161 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16162
16163 # Create a temporary old-style archive to link instead of a shared archive.
16164 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16165
16166 # Commands used to build and install a shared archive.
16167 archive_cmds=$lt_archive_cmds_F77
16168 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16169 postinstall_cmds=$lt_postinstall_cmds
16170 postuninstall_cmds=$lt_postuninstall_cmds
16171
16172 # Commands used to build a loadable module (assumed same as above if empty)
16173 module_cmds=$lt_module_cmds_F77
16174 module_expsym_cmds=$lt_module_expsym_cmds_F77
16175
16176 # Commands to strip libraries.
16177 old_striplib=$lt_old_striplib
16178 striplib=$lt_striplib
16179
16180 # Dependencies to place before the objects being linked to create a
16181 # shared library.
16182 predep_objects=$lt_predep_objects_F77
16183
16184 # Dependencies to place after the objects being linked to create a
16185 # shared library.
16186 postdep_objects=$lt_postdep_objects_F77
16187
16188 # Dependencies to place before the objects being linked to create a
16189 # shared library.
16190 predeps=$lt_predeps_F77
16191
16192 # Dependencies to place after the objects being linked to create a
16193 # shared library.
16194 postdeps=$lt_postdeps_F77
16195
16196 # The library search path used internally by the compiler when linking
16197 # a shared library.
16198 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16199
16200 # Method to check whether dependent libraries are shared objects.
16201 deplibs_check_method=$lt_deplibs_check_method
16202
16203 # Command to use when deplibs_check_method == file_magic.
16204 file_magic_cmd=$lt_file_magic_cmd
16205
16206 # Flag that allows shared libraries with undefined symbols to be built.
16207 allow_undefined_flag=$lt_allow_undefined_flag_F77
16208
16209 # Flag that forces no undefined symbols.
16210 no_undefined_flag=$lt_no_undefined_flag_F77
16211
16212 # Commands used to finish a libtool library installation in a directory.
16213 finish_cmds=$lt_finish_cmds
16214
16215 # Same as above, but a single script fragment to be evaled but not shown.
16216 finish_eval=$lt_finish_eval
16217
16218 # Take the output of nm and produce a listing of raw symbols and C names.
16219 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16220
16221 # Transform the output of nm in a proper C declaration
16222 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16223
16224 # Transform the output of nm in a C name address pair
16225 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16226
16227 # This is the shared library runtime path variable.
16228 runpath_var=$runpath_var
16229
16230 # This is the shared library path variable.
16231 shlibpath_var=$shlibpath_var
16232
16233 # Is shlibpath searched before the hard-coded library search path?
16234 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16235
16236 # How to hardcode a shared library path into an executable.
16237 hardcode_action=$hardcode_action_F77
16238
16239 # Whether we should hardcode library paths into libraries.
16240 hardcode_into_libs=$hardcode_into_libs
16241
16242 # Flag to hardcode \$libdir into a binary during linking.
16243 # This must work even if \$libdir does not exist.
16244 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16245
16246 # If ld is used when linking, flag to hardcode \$libdir into
16247 # a binary during linking. This must work even if \$libdir does
16248 # not exist.
16249 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16250
16251 # Whether we need a single -rpath flag with a separated argument.
16252 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16253
16254 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16255 # resulting binary.
16256 hardcode_direct=$hardcode_direct_F77
16257
16258 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16259 # resulting binary.
16260 hardcode_minus_L=$hardcode_minus_L_F77
16261
16262 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16263 # the resulting binary.
16264 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16265
16266 # Set to yes if building a shared library automatically hardcodes DIR into the library
16267 # and all subsequent libraries and executables linked against it.
16268 hardcode_automatic=$hardcode_automatic_F77
16269
16270 # Variables whose values should be saved in libtool wrapper scripts and
16271 # restored at relink time.
16272 variables_saved_for_relink="$variables_saved_for_relink"
16273
16274 # Whether libtool must link a program against all its dependency libraries.
16275 link_all_deplibs=$link_all_deplibs_F77
16276
16277 # Compile-time system search path for libraries
16278 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16279
16280 # Run-time system search path for libraries
16281 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16282
16283 # Fix the shell variable \$srcfile for the compiler.
16284 fix_srcfile_path="$fix_srcfile_path_F77"
16285
16286 # Set to yes if exported symbols are required.
16287 always_export_symbols=$always_export_symbols_F77
16288
16289 # The commands to list exported symbols.
16290 export_symbols_cmds=$lt_export_symbols_cmds_F77
16291
16292 # The commands to extract the exported symbol list from a shared archive.
16293 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16294
16295 # Symbols that should not be listed in the preloaded symbols.
16296 exclude_expsyms=$lt_exclude_expsyms_F77
16297
16298 # Symbols that must always be exported.
16299 include_expsyms=$lt_include_expsyms_F77
16300
16301 # ### END LIBTOOL TAG CONFIG: $tagname
16302
16303 __EOF__
16304
16305
16306 else
16307   # If there is no Makefile yet, we rely on a make rule to execute
16308   # `config.status --recheck' to rerun these tests and create the
16309   # libtool script then.
16310   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16311   if test -f "$ltmain_in"; then
16312     test -f Makefile && make "$ltmain"
16313   fi
16314 fi
16315
16316
16317 ac_ext=c
16318 ac_cpp='$CPP $CPPFLAGS'
16319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16322
16323 CC="$lt_save_CC"
16324
16325         else
16326           tagname=""
16327         fi
16328         ;;
16329
16330       GCJ)
16331         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16332
16333
16334 # Source file extension for Java test sources.
16335 ac_ext=java
16336
16337 # Object file extension for compiled Java test sources.
16338 objext=o
16339 objext_GCJ=$objext
16340
16341 # Code to be used in simple compile tests
16342 lt_simple_compile_test_code="class foo {}\n"
16343
16344 # Code to be used in simple link tests
16345 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16346
16347 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16348
16349 # If no C compiler was specified, use CC.
16350 LTCC=${LTCC-"$CC"}
16351
16352 # If no C compiler flags were specified, use CFLAGS.
16353 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16354
16355 # Allow CC to be a program name with arguments.
16356 compiler=$CC
16357
16358
16359 # save warnings/boilerplate of simple test code
16360 ac_outfile=conftest.$ac_objext
16361 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16362 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16363 _lt_compiler_boilerplate=`cat conftest.err`
16364 $rm conftest*
16365
16366 ac_outfile=conftest.$ac_objext
16367 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16368 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16369 _lt_linker_boilerplate=`cat conftest.err`
16370 $rm conftest*
16371
16372
16373 # Allow CC to be a program name with arguments.
16374 lt_save_CC="$CC"
16375 CC=${GCJ-"gcj"}
16376 compiler=$CC
16377 compiler_GCJ=$CC
16378 for cc_temp in $compiler""; do
16379   case $cc_temp in
16380     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16381     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16382     \-*) ;;
16383     *) break;;
16384   esac
16385 done
16386 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16387
16388
16389 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16390 archive_cmds_need_lc_GCJ=no
16391
16392 old_archive_cmds_GCJ=$old_archive_cmds
16393
16394
16395 lt_prog_compiler_no_builtin_flag_GCJ=
16396
16397 if test "$GCC" = yes; then
16398   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16399
16400
16401 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16402 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16403 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16404   echo $ECHO_N "(cached) $ECHO_C" >&6
16405 else
16406   lt_cv_prog_compiler_rtti_exceptions=no
16407   ac_outfile=conftest.$ac_objext
16408    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16409    lt_compiler_flag="-fno-rtti -fno-exceptions"
16410    # Insert the option either (1) after the last *FLAGS variable, or
16411    # (2) before a word containing "conftest.", or (3) at the end.
16412    # Note that $ac_compile itself does not contain backslashes and begins
16413    # with a dollar sign (not a hyphen), so the echo should work correctly.
16414    # The option is referenced via a variable to avoid confusing sed.
16415    lt_compile=`echo "$ac_compile" | $SED \
16416    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16417    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16418    -e 's:$: $lt_compiler_flag:'`
16419    (eval echo "\"\$as_me:16419: $lt_compile\"" >&5)
16420    (eval "$lt_compile" 2>conftest.err)
16421    ac_status=$?
16422    cat conftest.err >&5
16423    echo "$as_me:16423: \$? = $ac_status" >&5
16424    if (exit $ac_status) && test -s "$ac_outfile"; then
16425      # The compiler can only warn and ignore the option if not recognized
16426      # So say no if there are warnings other than the usual output.
16427      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16428      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16429      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16430        lt_cv_prog_compiler_rtti_exceptions=yes
16431      fi
16432    fi
16433    $rm conftest*
16434
16435 fi
16436 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16437 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16438
16439 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16440     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16441 else
16442     :
16443 fi
16444
16445 fi
16446
16447 lt_prog_compiler_wl_GCJ=
16448 lt_prog_compiler_pic_GCJ=
16449 lt_prog_compiler_static_GCJ=
16450
16451 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16452 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16453
16454   if test "$GCC" = yes; then
16455     lt_prog_compiler_wl_GCJ='-Wl,'
16456     lt_prog_compiler_static_GCJ='-static'
16457
16458     case $host_os in
16459       aix*)
16460       # All AIX code is PIC.
16461       if test "$host_cpu" = ia64; then
16462         # AIX 5 now supports IA64 processor
16463         lt_prog_compiler_static_GCJ='-Bstatic'
16464       fi
16465       ;;
16466
16467     amigaos*)
16468       # FIXME: we need at least 68020 code to build shared libraries, but
16469       # adding the `-m68020' flag to GCC prevents building anything better,
16470       # like `-m68040'.
16471       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16472       ;;
16473
16474     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16475       # PIC is the default for these OSes.
16476       ;;
16477
16478     mingw* | pw32* | os2*)
16479       # This hack is so that the source file can tell whether it is being
16480       # built for inclusion in a dll (and should export symbols for example).
16481       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16482       ;;
16483
16484     darwin* | rhapsody*)
16485       # PIC is the default on this platform
16486       # Common symbols not allowed in MH_DYLIB files
16487       lt_prog_compiler_pic_GCJ='-fno-common'
16488       ;;
16489
16490     interix3*)
16491       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16492       # Instead, we relocate shared libraries at runtime.
16493       ;;
16494
16495     msdosdjgpp*)
16496       # Just because we use GCC doesn't mean we suddenly get shared libraries
16497       # on systems that don't support them.
16498       lt_prog_compiler_can_build_shared_GCJ=no
16499       enable_shared=no
16500       ;;
16501
16502     sysv4*MP*)
16503       if test -d /usr/nec; then
16504         lt_prog_compiler_pic_GCJ=-Kconform_pic
16505       fi
16506       ;;
16507
16508     hpux*)
16509       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16510       # not for PA HP-UX.
16511       case $host_cpu in
16512       hppa*64*|ia64*)
16513         # +Z the default
16514         ;;
16515       *)
16516         lt_prog_compiler_pic_GCJ='-fPIC'
16517         ;;
16518       esac
16519       ;;
16520
16521     *)
16522       lt_prog_compiler_pic_GCJ='-fPIC'
16523       ;;
16524     esac
16525   else
16526     # PORTME Check for flag to pass linker flags through the system compiler.
16527     case $host_os in
16528     aix*)
16529       lt_prog_compiler_wl_GCJ='-Wl,'
16530       if test "$host_cpu" = ia64; then
16531         # AIX 5 now supports IA64 processor
16532         lt_prog_compiler_static_GCJ='-Bstatic'
16533       else
16534         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16535       fi
16536       ;;
16537       darwin*)
16538         # PIC is the default on this platform
16539         # Common symbols not allowed in MH_DYLIB files
16540        case $cc_basename in
16541          xlc*)
16542          lt_prog_compiler_pic_GCJ='-qnocommon'
16543          lt_prog_compiler_wl_GCJ='-Wl,'
16544          ;;
16545        esac
16546        ;;
16547
16548     mingw* | pw32* | os2*)
16549       # This hack is so that the source file can tell whether it is being
16550       # built for inclusion in a dll (and should export symbols for example).
16551       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16552       ;;
16553
16554     hpux9* | hpux10* | hpux11*)
16555       lt_prog_compiler_wl_GCJ='-Wl,'
16556       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16557       # not for PA HP-UX.
16558       case $host_cpu in
16559       hppa*64*|ia64*)
16560         # +Z the default
16561         ;;
16562       *)
16563         lt_prog_compiler_pic_GCJ='+Z'
16564         ;;
16565       esac
16566       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16567       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16568       ;;
16569
16570     irix5* | irix6* | nonstopux*)
16571       lt_prog_compiler_wl_GCJ='-Wl,'
16572       # PIC (with -KPIC) is the default.
16573       lt_prog_compiler_static_GCJ='-non_shared'
16574       ;;
16575
16576     newsos6)
16577       lt_prog_compiler_pic_GCJ='-KPIC'
16578       lt_prog_compiler_static_GCJ='-Bstatic'
16579       ;;
16580
16581     linux* | k*bsd*-gnu)
16582       case $cc_basename in
16583       icc* | ecc*)
16584         lt_prog_compiler_wl_GCJ='-Wl,'
16585         lt_prog_compiler_pic_GCJ='-KPIC'
16586         lt_prog_compiler_static_GCJ='-static'
16587         ;;
16588       pgcc* | pgf77* | pgf90* | pgf95*)
16589         # Portland Group compilers (*not* the Pentium gcc compiler,
16590         # which looks to be a dead project)
16591         lt_prog_compiler_wl_GCJ='-Wl,'
16592         lt_prog_compiler_pic_GCJ='-fpic'
16593         lt_prog_compiler_static_GCJ='-Bstatic'
16594         ;;
16595       ccc*)
16596         lt_prog_compiler_wl_GCJ='-Wl,'
16597         # All Alpha code is PIC.
16598         lt_prog_compiler_static_GCJ='-non_shared'
16599         ;;
16600       esac
16601       ;;
16602
16603     osf3* | osf4* | osf5*)
16604       lt_prog_compiler_wl_GCJ='-Wl,'
16605       # All OSF/1 code is PIC.
16606       lt_prog_compiler_static_GCJ='-non_shared'
16607       ;;
16608
16609     solaris*)
16610       lt_prog_compiler_pic_GCJ='-KPIC'
16611       lt_prog_compiler_static_GCJ='-Bstatic'
16612       case $cc_basename in
16613       f77* | f90* | f95*)
16614         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16615       *)
16616         lt_prog_compiler_wl_GCJ='-Wl,';;
16617       esac
16618       ;;
16619
16620     sunos4*)
16621       lt_prog_compiler_wl_GCJ='-Qoption ld '
16622       lt_prog_compiler_pic_GCJ='-PIC'
16623       lt_prog_compiler_static_GCJ='-Bstatic'
16624       ;;
16625
16626     sysv4 | sysv4.2uw2* | sysv4.3*)
16627       lt_prog_compiler_wl_GCJ='-Wl,'
16628       lt_prog_compiler_pic_GCJ='-KPIC'
16629       lt_prog_compiler_static_GCJ='-Bstatic'
16630       ;;
16631
16632     sysv4*MP*)
16633       if test -d /usr/nec ;then
16634         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16635         lt_prog_compiler_static_GCJ='-Bstatic'
16636       fi
16637       ;;
16638
16639     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16640       lt_prog_compiler_wl_GCJ='-Wl,'
16641       lt_prog_compiler_pic_GCJ='-KPIC'
16642       lt_prog_compiler_static_GCJ='-Bstatic'
16643       ;;
16644
16645     unicos*)
16646       lt_prog_compiler_wl_GCJ='-Wl,'
16647       lt_prog_compiler_can_build_shared_GCJ=no
16648       ;;
16649
16650     uts4*)
16651       lt_prog_compiler_pic_GCJ='-pic'
16652       lt_prog_compiler_static_GCJ='-Bstatic'
16653       ;;
16654
16655     *)
16656       lt_prog_compiler_can_build_shared_GCJ=no
16657       ;;
16658     esac
16659   fi
16660
16661 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16662 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16663
16664 #
16665 # Check to make sure the PIC flag actually works.
16666 #
16667 if test -n "$lt_prog_compiler_pic_GCJ"; then
16668
16669 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16670 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16671 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16672   echo $ECHO_N "(cached) $ECHO_C" >&6
16673 else
16674   lt_prog_compiler_pic_works_GCJ=no
16675   ac_outfile=conftest.$ac_objext
16676    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16677    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16678    # Insert the option either (1) after the last *FLAGS variable, or
16679    # (2) before a word containing "conftest.", or (3) at the end.
16680    # Note that $ac_compile itself does not contain backslashes and begins
16681    # with a dollar sign (not a hyphen), so the echo should work correctly.
16682    # The option is referenced via a variable to avoid confusing sed.
16683    lt_compile=`echo "$ac_compile" | $SED \
16684    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16685    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16686    -e 's:$: $lt_compiler_flag:'`
16687    (eval echo "\"\$as_me:16687: $lt_compile\"" >&5)
16688    (eval "$lt_compile" 2>conftest.err)
16689    ac_status=$?
16690    cat conftest.err >&5
16691    echo "$as_me:16691: \$? = $ac_status" >&5
16692    if (exit $ac_status) && test -s "$ac_outfile"; then
16693      # The compiler can only warn and ignore the option if not recognized
16694      # So say no if there are warnings other than the usual output.
16695      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16696      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16697      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16698        lt_prog_compiler_pic_works_GCJ=yes
16699      fi
16700    fi
16701    $rm conftest*
16702
16703 fi
16704 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16705 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16706
16707 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16708     case $lt_prog_compiler_pic_GCJ in
16709      "" | " "*) ;;
16710      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16711      esac
16712 else
16713     lt_prog_compiler_pic_GCJ=
16714      lt_prog_compiler_can_build_shared_GCJ=no
16715 fi
16716
16717 fi
16718 case $host_os in
16719   # For platforms which do not support PIC, -DPIC is meaningless:
16720   *djgpp*)
16721     lt_prog_compiler_pic_GCJ=
16722     ;;
16723   *)
16724     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16725     ;;
16726 esac
16727
16728 #
16729 # Check to make sure the static flag actually works.
16730 #
16731 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16732 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16733 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16734 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16735   echo $ECHO_N "(cached) $ECHO_C" >&6
16736 else
16737   lt_prog_compiler_static_works_GCJ=no
16738    save_LDFLAGS="$LDFLAGS"
16739    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16740    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16741    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16742      # The linker can only warn and ignore the option if not recognized
16743      # So say no if there are warnings
16744      if test -s conftest.err; then
16745        # Append any errors to the config.log.
16746        cat conftest.err 1>&5
16747        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16748        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16749        if diff conftest.exp conftest.er2 >/dev/null; then
16750          lt_prog_compiler_static_works_GCJ=yes
16751        fi
16752      else
16753        lt_prog_compiler_static_works_GCJ=yes
16754      fi
16755    fi
16756    $rm conftest*
16757    LDFLAGS="$save_LDFLAGS"
16758
16759 fi
16760 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16761 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16762
16763 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16764     :
16765 else
16766     lt_prog_compiler_static_GCJ=
16767 fi
16768
16769
16770 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16771 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16772 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16773   echo $ECHO_N "(cached) $ECHO_C" >&6
16774 else
16775   lt_cv_prog_compiler_c_o_GCJ=no
16776    $rm -r conftest 2>/dev/null
16777    mkdir conftest
16778    cd conftest
16779    mkdir out
16780    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16781
16782    lt_compiler_flag="-o out/conftest2.$ac_objext"
16783    # Insert the option either (1) after the last *FLAGS variable, or
16784    # (2) before a word containing "conftest.", or (3) at the end.
16785    # Note that $ac_compile itself does not contain backslashes and begins
16786    # with a dollar sign (not a hyphen), so the echo should work correctly.
16787    lt_compile=`echo "$ac_compile" | $SED \
16788    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16789    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16790    -e 's:$: $lt_compiler_flag:'`
16791    (eval echo "\"\$as_me:16791: $lt_compile\"" >&5)
16792    (eval "$lt_compile" 2>out/conftest.err)
16793    ac_status=$?
16794    cat out/conftest.err >&5
16795    echo "$as_me:16795: \$? = $ac_status" >&5
16796    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16797    then
16798      # The compiler can only warn and ignore the option if not recognized
16799      # So say no if there are warnings
16800      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16801      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16802      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16803        lt_cv_prog_compiler_c_o_GCJ=yes
16804      fi
16805    fi
16806    chmod u+w . 2>&5
16807    $rm conftest*
16808    # SGI C++ compiler will create directory out/ii_files/ for
16809    # template instantiation
16810    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16811    $rm out/* && rmdir out
16812    cd ..
16813    rmdir conftest
16814    $rm conftest*
16815
16816 fi
16817 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16818 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16819
16820
16821 hard_links="nottested"
16822 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16823   # do not overwrite the value of need_locks provided by the user
16824   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16825 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16826   hard_links=yes
16827   $rm conftest*
16828   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16829   touch conftest.a
16830   ln conftest.a conftest.b 2>&5 || hard_links=no
16831   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16832   { echo "$as_me:$LINENO: result: $hard_links" >&5
16833 echo "${ECHO_T}$hard_links" >&6; }
16834   if test "$hard_links" = no; then
16835     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16836 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16837     need_locks=warn
16838   fi
16839 else
16840   need_locks=no
16841 fi
16842
16843 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16844 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16845
16846   runpath_var=
16847   allow_undefined_flag_GCJ=
16848   enable_shared_with_static_runtimes_GCJ=no
16849   archive_cmds_GCJ=
16850   archive_expsym_cmds_GCJ=
16851   old_archive_From_new_cmds_GCJ=
16852   old_archive_from_expsyms_cmds_GCJ=
16853   export_dynamic_flag_spec_GCJ=
16854   whole_archive_flag_spec_GCJ=
16855   thread_safe_flag_spec_GCJ=
16856   hardcode_libdir_flag_spec_GCJ=
16857   hardcode_libdir_flag_spec_ld_GCJ=
16858   hardcode_libdir_separator_GCJ=
16859   hardcode_direct_GCJ=no
16860   hardcode_minus_L_GCJ=no
16861   hardcode_shlibpath_var_GCJ=unsupported
16862   link_all_deplibs_GCJ=unknown
16863   hardcode_automatic_GCJ=no
16864   module_cmds_GCJ=
16865   module_expsym_cmds_GCJ=
16866   always_export_symbols_GCJ=no
16867   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16868   # include_expsyms should be a list of space-separated symbols to be *always*
16869   # included in the symbol list
16870   include_expsyms_GCJ=
16871   # exclude_expsyms can be an extended regexp of symbols to exclude
16872   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16873   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16874   # as well as any symbol that contains `d'.
16875   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16876   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16877   # platforms (ab)use it in PIC code, but their linkers get confused if
16878   # the symbol is explicitly referenced.  Since portable code cannot
16879   # rely on this symbol name, it's probably fine to never include it in
16880   # preloaded symbol tables.
16881   extract_expsyms_cmds=
16882   # Just being paranoid about ensuring that cc_basename is set.
16883   for cc_temp in $compiler""; do
16884   case $cc_temp in
16885     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16886     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16887     \-*) ;;
16888     *) break;;
16889   esac
16890 done
16891 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16892
16893   case $host_os in
16894   cygwin* | mingw* | pw32*)
16895     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16896     # When not using gcc, we currently assume that we are using
16897     # Microsoft Visual C++.
16898     if test "$GCC" != yes; then
16899       with_gnu_ld=no
16900     fi
16901     ;;
16902   interix*)
16903     # we just hope/assume this is gcc and not c89 (= MSVC++)
16904     with_gnu_ld=yes
16905     ;;
16906   openbsd*)
16907     with_gnu_ld=no
16908     ;;
16909   esac
16910
16911   ld_shlibs_GCJ=yes
16912   if test "$with_gnu_ld" = yes; then
16913     # If archive_cmds runs LD, not CC, wlarc should be empty
16914     wlarc='${wl}'
16915
16916     # Set some defaults for GNU ld with shared library support. These
16917     # are reset later if shared libraries are not supported. Putting them
16918     # here allows them to be overridden if necessary.
16919     runpath_var=LD_RUN_PATH
16920     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16921     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16922     # ancient GNU ld didn't support --whole-archive et. al.
16923     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16924         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16925       else
16926         whole_archive_flag_spec_GCJ=
16927     fi
16928     supports_anon_versioning=no
16929     case `$LD -v 2>/dev/null` in
16930       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16931       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16932       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16933       *\ 2.11.*) ;; # other 2.11 versions
16934       *) supports_anon_versioning=yes ;;
16935     esac
16936
16937     # See if GNU ld supports shared libraries.
16938     case $host_os in
16939     aix3* | aix4* | aix5*)
16940       # On AIX/PPC, the GNU linker is very broken
16941       if test "$host_cpu" != ia64; then
16942         ld_shlibs_GCJ=no
16943         cat <<EOF 1>&2
16944
16945 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16946 *** to be unable to reliably create shared libraries on AIX.
16947 *** Therefore, libtool is disabling shared libraries support.  If you
16948 *** really care for shared libraries, you may want to modify your PATH
16949 *** so that a non-GNU linker is found, and then restart.
16950
16951 EOF
16952       fi
16953       ;;
16954
16955     amigaos*)
16956       archive_cmds_GCJ='$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)'
16957       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16958       hardcode_minus_L_GCJ=yes
16959
16960       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16961       # that the semantics of dynamic libraries on AmigaOS, at least up
16962       # to version 4, is to share data among multiple programs linked
16963       # with the same dynamic library.  Since this doesn't match the
16964       # behavior of shared libraries on other platforms, we can't use
16965       # them.
16966       ld_shlibs_GCJ=no
16967       ;;
16968
16969     beos*)
16970       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16971         allow_undefined_flag_GCJ=unsupported
16972         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16973         # support --undefined.  This deserves some investigation.  FIXME
16974         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16975       else
16976         ld_shlibs_GCJ=no
16977       fi
16978       ;;
16979
16980     cygwin* | mingw* | pw32*)
16981       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16982       # as there is no search path for DLLs.
16983       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16984       allow_undefined_flag_GCJ=unsupported
16985       always_export_symbols_GCJ=no
16986       enable_shared_with_static_runtimes_GCJ=yes
16987       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16988
16989       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16990         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16991         # If the export-symbols file already is a .def file (1st line
16992         # is EXPORTS), use it as is; otherwise, prepend...
16993         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16994           cp $export_symbols $output_objdir/$soname.def;
16995         else
16996           echo EXPORTS > $output_objdir/$soname.def;
16997           cat $export_symbols >> $output_objdir/$soname.def;
16998         fi~
16999         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17000       else
17001         ld_shlibs_GCJ=no
17002       fi
17003       ;;
17004
17005     interix3*)
17006       hardcode_direct_GCJ=no
17007       hardcode_shlibpath_var_GCJ=no
17008       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17009       export_dynamic_flag_spec_GCJ='${wl}-E'
17010       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17011       # Instead, shared libraries are loaded at an image base (0x10000000 by
17012       # default) and relocated if they conflict, which is a slow very memory
17013       # consuming and fragmenting process.  To avoid this, we pick a random,
17014       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17015       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17016       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17017       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17018       ;;
17019
17020     linux* | k*bsd*-gnu)
17021       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17022         tmp_addflag=
17023         case $cc_basename,$host_cpu in
17024         pgcc*)                          # Portland Group C compiler
17025           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17026           tmp_addflag=' $pic_flag'
17027           ;;
17028         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17029           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17030           tmp_addflag=' $pic_flag -Mnomain' ;;
17031         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17032           tmp_addflag=' -i_dynamic' ;;
17033         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17034           tmp_addflag=' -i_dynamic -nofor_main' ;;
17035         ifc* | ifort*)                  # Intel Fortran compiler
17036           tmp_addflag=' -nofor_main' ;;
17037         esac
17038         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17039
17040         if test $supports_anon_versioning = yes; then
17041           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17042   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17043   $echo "local: *; };" >> $output_objdir/$libname.ver~
17044           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17045         fi
17046         link_all_deplibs_GCJ=no
17047       else
17048         ld_shlibs_GCJ=no
17049       fi
17050       ;;
17051
17052     netbsd* | netbsdelf*-gnu)
17053       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17054         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17055         wlarc=
17056       else
17057         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17058         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17059       fi
17060       ;;
17061
17062     solaris*)
17063       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17064         ld_shlibs_GCJ=no
17065         cat <<EOF 1>&2
17066
17067 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17068 *** create shared libraries on Solaris systems.  Therefore, libtool
17069 *** is disabling shared libraries support.  We urge you to upgrade GNU
17070 *** binutils to release 2.9.1 or newer.  Another option is to modify
17071 *** your PATH or compiler configuration so that the native linker is
17072 *** used, and then restart.
17073
17074 EOF
17075       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17076         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17077         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17078       else
17079         ld_shlibs_GCJ=no
17080       fi
17081       ;;
17082
17083     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17084       case `$LD -v 2>&1` in
17085         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17086         ld_shlibs_GCJ=no
17087         cat <<_LT_EOF 1>&2
17088
17089 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17090 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17091 *** is disabling shared libraries support.  We urge you to upgrade GNU
17092 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17093 *** your PATH or compiler configuration so that the native linker is
17094 *** used, and then restart.
17095
17096 _LT_EOF
17097         ;;
17098         *)
17099           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17100             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17101             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17102             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17103           else
17104             ld_shlibs_GCJ=no
17105           fi
17106         ;;
17107       esac
17108       ;;
17109
17110     sunos4*)
17111       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17112       wlarc=
17113       hardcode_direct_GCJ=yes
17114       hardcode_shlibpath_var_GCJ=no
17115       ;;
17116
17117     *)
17118       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17119         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17120         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17121       else
17122         ld_shlibs_GCJ=no
17123       fi
17124       ;;
17125     esac
17126
17127     if test "$ld_shlibs_GCJ" = no; then
17128       runpath_var=
17129       hardcode_libdir_flag_spec_GCJ=
17130       export_dynamic_flag_spec_GCJ=
17131       whole_archive_flag_spec_GCJ=
17132     fi
17133   else
17134     # PORTME fill in a description of your system's linker (not GNU ld)
17135     case $host_os in
17136     aix3*)
17137       allow_undefined_flag_GCJ=unsupported
17138       always_export_symbols_GCJ=yes
17139       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17140       # Note: this linker hardcodes the directories in LIBPATH if there
17141       # are no directories specified by -L.
17142       hardcode_minus_L_GCJ=yes
17143       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17144         # Neither direct hardcoding nor static linking is supported with a
17145         # broken collect2.
17146         hardcode_direct_GCJ=unsupported
17147       fi
17148       ;;
17149
17150     aix4* | aix5*)
17151       if test "$host_cpu" = ia64; then
17152         # On IA64, the linker does run time linking by default, so we don't
17153         # have to do anything special.
17154         aix_use_runtimelinking=no
17155         exp_sym_flag='-Bexport'
17156         no_entry_flag=""
17157       else
17158         # If we're using GNU nm, then we don't want the "-C" option.
17159         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17160         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17161           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17162         else
17163           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17164         fi
17165         aix_use_runtimelinking=no
17166
17167         # Test if we are trying to use run time linking or normal
17168         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17169         # need to do runtime linking.
17170         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17171           for ld_flag in $LDFLAGS; do
17172           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17173             aix_use_runtimelinking=yes
17174             break
17175           fi
17176           done
17177           ;;
17178         esac
17179
17180         exp_sym_flag='-bexport'
17181         no_entry_flag='-bnoentry'
17182       fi
17183
17184       # When large executables or shared objects are built, AIX ld can
17185       # have problems creating the table of contents.  If linking a library
17186       # or program results in "error TOC overflow" add -mminimal-toc to
17187       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17188       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17189
17190       archive_cmds_GCJ=''
17191       hardcode_direct_GCJ=yes
17192       hardcode_libdir_separator_GCJ=':'
17193       link_all_deplibs_GCJ=yes
17194
17195       if test "$GCC" = yes; then
17196         case $host_os in aix4.[012]|aix4.[012].*)
17197         # We only want to do this on AIX 4.2 and lower, the check
17198         # below for broken collect2 doesn't work under 4.3+
17199           collect2name=`${CC} -print-prog-name=collect2`
17200           if test -f "$collect2name" && \
17201            strings "$collect2name" | grep resolve_lib_name >/dev/null
17202           then
17203           # We have reworked collect2
17204           hardcode_direct_GCJ=yes
17205           else
17206           # We have old collect2
17207           hardcode_direct_GCJ=unsupported
17208           # It fails to find uninstalled libraries when the uninstalled
17209           # path is not listed in the libpath.  Setting hardcode_minus_L
17210           # to unsupported forces relinking
17211           hardcode_minus_L_GCJ=yes
17212           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17213           hardcode_libdir_separator_GCJ=
17214           fi
17215           ;;
17216         esac
17217         shared_flag='-shared'
17218         if test "$aix_use_runtimelinking" = yes; then
17219           shared_flag="$shared_flag "'${wl}-G'
17220         fi
17221       else
17222         # not using gcc
17223         if test "$host_cpu" = ia64; then
17224         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17225         # chokes on -Wl,-G. The following line is correct:
17226           shared_flag='-G'
17227         else
17228           if test "$aix_use_runtimelinking" = yes; then
17229             shared_flag='${wl}-G'
17230           else
17231             shared_flag='${wl}-bM:SRE'
17232           fi
17233         fi
17234       fi
17235
17236       # It seems that -bexpall does not export symbols beginning with
17237       # underscore (_), so it is better to generate a list of symbols to export.
17238       always_export_symbols_GCJ=yes
17239       if test "$aix_use_runtimelinking" = yes; then
17240         # Warning - without using the other runtime loading flags (-brtl),
17241         # -berok will link without error, but may produce a broken library.
17242         allow_undefined_flag_GCJ='-berok'
17243        # Determine the default libpath from the value encoded in an empty executable.
17244        cat >conftest.$ac_ext <<_ACEOF
17245 /* confdefs.h.  */
17246 _ACEOF
17247 cat confdefs.h >>conftest.$ac_ext
17248 cat >>conftest.$ac_ext <<_ACEOF
17249 /* end confdefs.h.  */
17250
17251 int
17252 main ()
17253 {
17254
17255   ;
17256   return 0;
17257 }
17258 _ACEOF
17259 rm -f conftest.$ac_objext conftest$ac_exeext
17260 if { (ac_try="$ac_link"
17261 case "(($ac_try" in
17262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17263   *) ac_try_echo=$ac_try;;
17264 esac
17265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17266   (eval "$ac_link") 2>conftest.er1
17267   ac_status=$?
17268   grep -v '^ *+' conftest.er1 >conftest.err
17269   rm -f conftest.er1
17270   cat conftest.err >&5
17271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272   (exit $ac_status); } && {
17273          test -z "$ac_c_werror_flag" ||
17274          test ! -s conftest.err
17275        } && test -s conftest$ac_exeext &&
17276        $as_test_x conftest$ac_exeext; then
17277
17278 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17279 }'`
17280 # Check for a 64-bit object if we didn't find anything.
17281 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17282 }'`; fi
17283 else
17284   echo "$as_me: failed program was:" >&5
17285 sed 's/^/| /' conftest.$ac_ext >&5
17286
17287
17288 fi
17289
17290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17291       conftest$ac_exeext conftest.$ac_ext
17292 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17293
17294        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17295         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17296        else
17297         if test "$host_cpu" = ia64; then
17298           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17299           allow_undefined_flag_GCJ="-z nodefs"
17300           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17301         else
17302          # Determine the default libpath from the value encoded in an empty executable.
17303          cat >conftest.$ac_ext <<_ACEOF
17304 /* confdefs.h.  */
17305 _ACEOF
17306 cat confdefs.h >>conftest.$ac_ext
17307 cat >>conftest.$ac_ext <<_ACEOF
17308 /* end confdefs.h.  */
17309
17310 int
17311 main ()
17312 {
17313
17314   ;
17315   return 0;
17316 }
17317 _ACEOF
17318 rm -f conftest.$ac_objext conftest$ac_exeext
17319 if { (ac_try="$ac_link"
17320 case "(($ac_try" in
17321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17322   *) ac_try_echo=$ac_try;;
17323 esac
17324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17325   (eval "$ac_link") 2>conftest.er1
17326   ac_status=$?
17327   grep -v '^ *+' conftest.er1 >conftest.err
17328   rm -f conftest.er1
17329   cat conftest.err >&5
17330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331   (exit $ac_status); } && {
17332          test -z "$ac_c_werror_flag" ||
17333          test ! -s conftest.err
17334        } && test -s conftest$ac_exeext &&
17335        $as_test_x conftest$ac_exeext; then
17336
17337 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17338 }'`
17339 # Check for a 64-bit object if we didn't find anything.
17340 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17341 }'`; fi
17342 else
17343   echo "$as_me: failed program was:" >&5
17344 sed 's/^/| /' conftest.$ac_ext >&5
17345
17346
17347 fi
17348
17349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17350       conftest$ac_exeext conftest.$ac_ext
17351 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17352
17353          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17354           # Warning - without using the other run time loading flags,
17355           # -berok will link without error, but may produce a broken library.
17356           no_undefined_flag_GCJ=' ${wl}-bernotok'
17357           allow_undefined_flag_GCJ=' ${wl}-berok'
17358           # Exported symbols can be pulled into shared objects from archives
17359           whole_archive_flag_spec_GCJ='$convenience'
17360           archive_cmds_need_lc_GCJ=yes
17361           # This is similar to how AIX traditionally builds its shared libraries.
17362           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17363         fi
17364       fi
17365       ;;
17366
17367     amigaos*)
17368       archive_cmds_GCJ='$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)'
17369       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17370       hardcode_minus_L_GCJ=yes
17371       # see comment about different semantics on the GNU ld section
17372       ld_shlibs_GCJ=no
17373       ;;
17374
17375     bsdi[45]*)
17376       export_dynamic_flag_spec_GCJ=-rdynamic
17377       ;;
17378
17379     cygwin* | mingw* | pw32*)
17380       # When not using gcc, we currently assume that we are using
17381       # Microsoft Visual C++.
17382       # hardcode_libdir_flag_spec is actually meaningless, as there is
17383       # no search path for DLLs.
17384       hardcode_libdir_flag_spec_GCJ=' '
17385       allow_undefined_flag_GCJ=unsupported
17386       # Tell ltmain to make .lib files, not .a files.
17387       libext=lib
17388       # Tell ltmain to make .dll files, not .so files.
17389       shrext_cmds=".dll"
17390       # FIXME: Setting linknames here is a bad hack.
17391       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17392       # The linker will automatically build a .lib file if we build a DLL.
17393       old_archive_From_new_cmds_GCJ='true'
17394       # FIXME: Should let the user specify the lib program.
17395       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17396       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17397       enable_shared_with_static_runtimes_GCJ=yes
17398       ;;
17399
17400     darwin* | rhapsody*)
17401       case $host_os in
17402         rhapsody* | darwin1.[012])
17403          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17404          ;;
17405        *) # Darwin 1.3 on
17406          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17407            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17408          else
17409            case ${MACOSX_DEPLOYMENT_TARGET} in
17410              10.[012])
17411                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17412                ;;
17413              10.*)
17414                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17415                ;;
17416            esac
17417          fi
17418          ;;
17419       esac
17420       archive_cmds_need_lc_GCJ=no
17421       hardcode_direct_GCJ=no
17422       hardcode_automatic_GCJ=yes
17423       hardcode_shlibpath_var_GCJ=unsupported
17424       whole_archive_flag_spec_GCJ=''
17425       link_all_deplibs_GCJ=yes
17426     if test "$GCC" = yes ; then
17427         output_verbose_link_cmd='echo'
17428         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17429       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17430       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17431       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17432       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17433     else
17434       case $cc_basename in
17435         xlc*)
17436          output_verbose_link_cmd='echo'
17437          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17438          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17439           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17440          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17441           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17442           ;;
17443        *)
17444          ld_shlibs_GCJ=no
17445           ;;
17446       esac
17447     fi
17448       ;;
17449
17450     dgux*)
17451       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17452       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17453       hardcode_shlibpath_var_GCJ=no
17454       ;;
17455
17456     freebsd1*)
17457       ld_shlibs_GCJ=no
17458       ;;
17459
17460     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17461     # support.  Future versions do this automatically, but an explicit c++rt0.o
17462     # does not break anything, and helps significantly (at the cost of a little
17463     # extra space).
17464     freebsd2.2*)
17465       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17466       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17467       hardcode_direct_GCJ=yes
17468       hardcode_shlibpath_var_GCJ=no
17469       ;;
17470
17471     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17472     freebsd2*)
17473       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17474       hardcode_direct_GCJ=yes
17475       hardcode_minus_L_GCJ=yes
17476       hardcode_shlibpath_var_GCJ=no
17477       ;;
17478
17479     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17480     freebsd* | dragonfly*)
17481       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17482       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17483       hardcode_direct_GCJ=yes
17484       hardcode_shlibpath_var_GCJ=no
17485       ;;
17486
17487     hpux9*)
17488       if test "$GCC" = yes; then
17489         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17490       else
17491         archive_cmds_GCJ='$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'
17492       fi
17493       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17494       hardcode_libdir_separator_GCJ=:
17495       hardcode_direct_GCJ=yes
17496
17497       # hardcode_minus_L: Not really in the search PATH,
17498       # but as the default location of the library.
17499       hardcode_minus_L_GCJ=yes
17500       export_dynamic_flag_spec_GCJ='${wl}-E'
17501       ;;
17502
17503     hpux10*)
17504       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17505         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17506       else
17507         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17508       fi
17509       if test "$with_gnu_ld" = no; then
17510         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17511         hardcode_libdir_separator_GCJ=:
17512
17513         hardcode_direct_GCJ=yes
17514         export_dynamic_flag_spec_GCJ='${wl}-E'
17515
17516         # hardcode_minus_L: Not really in the search PATH,
17517         # but as the default location of the library.
17518         hardcode_minus_L_GCJ=yes
17519       fi
17520       ;;
17521
17522     hpux11*)
17523       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17524         case $host_cpu in
17525         hppa*64*)
17526           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17527           ;;
17528         ia64*)
17529           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17530           ;;
17531         *)
17532           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17533           ;;
17534         esac
17535       else
17536         case $host_cpu in
17537         hppa*64*)
17538           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17539           ;;
17540         ia64*)
17541           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17542           ;;
17543         *)
17544           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17545           ;;
17546         esac
17547       fi
17548       if test "$with_gnu_ld" = no; then
17549         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17550         hardcode_libdir_separator_GCJ=:
17551
17552         case $host_cpu in
17553         hppa*64*|ia64*)
17554           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17555           hardcode_direct_GCJ=no
17556           hardcode_shlibpath_var_GCJ=no
17557           ;;
17558         *)
17559           hardcode_direct_GCJ=yes
17560           export_dynamic_flag_spec_GCJ='${wl}-E'
17561
17562           # hardcode_minus_L: Not really in the search PATH,
17563           # but as the default location of the library.
17564           hardcode_minus_L_GCJ=yes
17565           ;;
17566         esac
17567       fi
17568       ;;
17569
17570     irix5* | irix6* | nonstopux*)
17571       if test "$GCC" = yes; then
17572         archive_cmds_GCJ='$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'
17573       else
17574         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17575         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17576       fi
17577       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17578       hardcode_libdir_separator_GCJ=:
17579       link_all_deplibs_GCJ=yes
17580       ;;
17581
17582     netbsd* | netbsdelf*-gnu)
17583       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17584         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17585       else
17586         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17587       fi
17588       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17589       hardcode_direct_GCJ=yes
17590       hardcode_shlibpath_var_GCJ=no
17591       ;;
17592
17593     newsos6)
17594       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17595       hardcode_direct_GCJ=yes
17596       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17597       hardcode_libdir_separator_GCJ=:
17598       hardcode_shlibpath_var_GCJ=no
17599       ;;
17600
17601     openbsd*)
17602       hardcode_direct_GCJ=yes
17603       hardcode_shlibpath_var_GCJ=no
17604       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17605         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17606         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17607         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17608         export_dynamic_flag_spec_GCJ='${wl}-E'
17609       else
17610        case $host_os in
17611          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17612            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17613            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17614            ;;
17615          *)
17616            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17617            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17618            ;;
17619        esac
17620       fi
17621       ;;
17622
17623     os2*)
17624       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17625       hardcode_minus_L_GCJ=yes
17626       allow_undefined_flag_GCJ=unsupported
17627       archive_cmds_GCJ='$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'
17628       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17629       ;;
17630
17631     osf3*)
17632       if test "$GCC" = yes; then
17633         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17634         archive_cmds_GCJ='$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'
17635       else
17636         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17637         archive_cmds_GCJ='$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'
17638       fi
17639       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17640       hardcode_libdir_separator_GCJ=:
17641       ;;
17642
17643     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17644       if test "$GCC" = yes; then
17645         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17646         archive_cmds_GCJ='$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'
17647         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17648       else
17649         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17650         archive_cmds_GCJ='$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'
17651         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17652         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17653
17654         # Both c and cxx compiler support -rpath directly
17655         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17656       fi
17657       hardcode_libdir_separator_GCJ=:
17658       ;;
17659
17660     solaris*)
17661       no_undefined_flag_GCJ=' -z text'
17662       if test "$GCC" = yes; then
17663         wlarc='${wl}'
17664         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17665         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17666           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17667       else
17668         wlarc=''
17669         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17670         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17671         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17672       fi
17673       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17674       hardcode_shlibpath_var_GCJ=no
17675       case $host_os in
17676       solaris2.[0-5] | solaris2.[0-5].*) ;;
17677       *)
17678         # The compiler driver will combine linker options so we
17679         # cannot just pass the convience library names through
17680         # without $wl, iff we do not link with $LD.
17681         # Luckily, gcc supports the same syntax we need for Sun Studio.
17682         # Supported since Solaris 2.6 (maybe 2.5.1?)
17683         case $wlarc in
17684         '')
17685           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17686         *)
17687           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17688         esac ;;
17689       esac
17690       link_all_deplibs_GCJ=yes
17691       ;;
17692
17693     sunos4*)
17694       if test "x$host_vendor" = xsequent; then
17695         # Use $CC to link under sequent, because it throws in some extra .o
17696         # files that make .init and .fini sections work.
17697         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17698       else
17699         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17700       fi
17701       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17702       hardcode_direct_GCJ=yes
17703       hardcode_minus_L_GCJ=yes
17704       hardcode_shlibpath_var_GCJ=no
17705       ;;
17706
17707     sysv4)
17708       case $host_vendor in
17709         sni)
17710           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17711           hardcode_direct_GCJ=yes # is this really true???
17712         ;;
17713         siemens)
17714           ## LD is ld it makes a PLAMLIB
17715           ## CC just makes a GrossModule.
17716           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17717           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17718           hardcode_direct_GCJ=no
17719         ;;
17720         motorola)
17721           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17722           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17723         ;;
17724       esac
17725       runpath_var='LD_RUN_PATH'
17726       hardcode_shlibpath_var_GCJ=no
17727       ;;
17728
17729     sysv4.3*)
17730       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17731       hardcode_shlibpath_var_GCJ=no
17732       export_dynamic_flag_spec_GCJ='-Bexport'
17733       ;;
17734
17735     sysv4*MP*)
17736       if test -d /usr/nec; then
17737         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17738         hardcode_shlibpath_var_GCJ=no
17739         runpath_var=LD_RUN_PATH
17740         hardcode_runpath_var=yes
17741         ld_shlibs_GCJ=yes
17742       fi
17743       ;;
17744
17745     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17746       no_undefined_flag_GCJ='${wl}-z,text'
17747       archive_cmds_need_lc_GCJ=no
17748       hardcode_shlibpath_var_GCJ=no
17749       runpath_var='LD_RUN_PATH'
17750
17751       if test "$GCC" = yes; then
17752         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17753         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17754       else
17755         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17756         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17757       fi
17758       ;;
17759
17760     sysv5* | sco3.2v5* | sco5v6*)
17761       # Note: We can NOT use -z defs as we might desire, because we do not
17762       # link with -lc, and that would cause any symbols used from libc to
17763       # always be unresolved, which means just about no library would
17764       # ever link correctly.  If we're not using GNU ld we use -z text
17765       # though, which does catch some bad symbols but isn't as heavy-handed
17766       # as -z defs.
17767       no_undefined_flag_GCJ='${wl}-z,text'
17768       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17769       archive_cmds_need_lc_GCJ=no
17770       hardcode_shlibpath_var_GCJ=no
17771       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17772       hardcode_libdir_separator_GCJ=':'
17773       link_all_deplibs_GCJ=yes
17774       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17775       runpath_var='LD_RUN_PATH'
17776
17777       if test "$GCC" = yes; then
17778         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17779         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17780       else
17781         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17782         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17783       fi
17784       ;;
17785
17786     uts4*)
17787       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17788       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17789       hardcode_shlibpath_var_GCJ=no
17790       ;;
17791
17792     *)
17793       ld_shlibs_GCJ=no
17794       ;;
17795     esac
17796   fi
17797
17798 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17799 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17800 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17801
17802 #
17803 # Do we need to explicitly link libc?
17804 #
17805 case "x$archive_cmds_need_lc_GCJ" in
17806 x|xyes)
17807   # Assume -lc should be added
17808   archive_cmds_need_lc_GCJ=yes
17809
17810   if test "$enable_shared" = yes && test "$GCC" = yes; then
17811     case $archive_cmds_GCJ in
17812     *'~'*)
17813       # FIXME: we may have to deal with multi-command sequences.
17814       ;;
17815     '$CC '*)
17816       # Test whether the compiler implicitly links with -lc since on some
17817       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17818       # to ld, don't add -lc before -lgcc.
17819       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17820 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17821       $rm conftest*
17822       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17823
17824       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17825   (eval $ac_compile) 2>&5
17826   ac_status=$?
17827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828   (exit $ac_status); } 2>conftest.err; then
17829         soname=conftest
17830         lib=conftest
17831         libobjs=conftest.$ac_objext
17832         deplibs=
17833         wl=$lt_prog_compiler_wl_GCJ
17834         pic_flag=$lt_prog_compiler_pic_GCJ
17835         compiler_flags=-v
17836         linker_flags=-v
17837         verstring=
17838         output_objdir=.
17839         libname=conftest
17840         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17841         allow_undefined_flag_GCJ=
17842         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17843   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17844   ac_status=$?
17845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846   (exit $ac_status); }
17847         then
17848           archive_cmds_need_lc_GCJ=no
17849         else
17850           archive_cmds_need_lc_GCJ=yes
17851         fi
17852         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17853       else
17854         cat conftest.err 1>&5
17855       fi
17856       $rm conftest*
17857       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17858 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17859       ;;
17860     esac
17861   fi
17862   ;;
17863 esac
17864
17865 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17866 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17867 library_names_spec=
17868 libname_spec='lib$name'
17869 soname_spec=
17870 shrext_cmds=".so"
17871 postinstall_cmds=
17872 postuninstall_cmds=
17873 finish_cmds=
17874 finish_eval=
17875 shlibpath_var=
17876 shlibpath_overrides_runpath=unknown
17877 version_type=none
17878 dynamic_linker="$host_os ld.so"
17879 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17880 if test "$GCC" = yes; then
17881   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17882   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17883     # if the path contains ";" then we assume it to be the separator
17884     # otherwise default to the standard path separator (i.e. ":") - it is
17885     # assumed that no part of a normal pathname contains ";" but that should
17886     # okay in the real world where ";" in dirpaths is itself problematic.
17887     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17888   else
17889     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17890   fi
17891 else
17892   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17893 fi
17894 need_lib_prefix=unknown
17895 hardcode_into_libs=no
17896
17897 # when you set need_version to no, make sure it does not cause -set_version
17898 # flags to be left without arguments
17899 need_version=unknown
17900
17901 case $host_os in
17902 aix3*)
17903   version_type=linux
17904   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17905   shlibpath_var=LIBPATH
17906
17907   # AIX 3 has no versioning support, so we append a major version to the name.
17908   soname_spec='${libname}${release}${shared_ext}$major'
17909   ;;
17910
17911 aix4* | aix5*)
17912   version_type=linux
17913   need_lib_prefix=no
17914   need_version=no
17915   hardcode_into_libs=yes
17916   if test "$host_cpu" = ia64; then
17917     # AIX 5 supports IA64
17918     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17919     shlibpath_var=LD_LIBRARY_PATH
17920   else
17921     # With GCC up to 2.95.x, collect2 would create an import file
17922     # for dependence libraries.  The import file would start with
17923     # the line `#! .'.  This would cause the generated library to
17924     # depend on `.', always an invalid library.  This was fixed in
17925     # development snapshots of GCC prior to 3.0.
17926     case $host_os in
17927       aix4 | aix4.[01] | aix4.[01].*)
17928       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17929            echo ' yes '
17930            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17931         :
17932       else
17933         can_build_shared=no
17934       fi
17935       ;;
17936     esac
17937     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17938     # soname into executable. Probably we can add versioning support to
17939     # collect2, so additional links can be useful in future.
17940     if test "$aix_use_runtimelinking" = yes; then
17941       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17942       # instead of lib<name>.a to let people know that these are not
17943       # typical AIX shared libraries.
17944       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17945     else
17946       # We preserve .a as extension for shared libraries through AIX4.2
17947       # and later when we are not doing run time linking.
17948       library_names_spec='${libname}${release}.a $libname.a'
17949       soname_spec='${libname}${release}${shared_ext}$major'
17950     fi
17951     shlibpath_var=LIBPATH
17952   fi
17953   ;;
17954
17955 amigaos*)
17956   library_names_spec='$libname.ixlibrary $libname.a'
17957   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17958   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'
17959   ;;
17960
17961 beos*)
17962   library_names_spec='${libname}${shared_ext}'
17963   dynamic_linker="$host_os ld.so"
17964   shlibpath_var=LIBRARY_PATH
17965   ;;
17966
17967 bsdi[45]*)
17968   version_type=linux
17969   need_version=no
17970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17971   soname_spec='${libname}${release}${shared_ext}$major'
17972   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17973   shlibpath_var=LD_LIBRARY_PATH
17974   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17975   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17976   # the default ld.so.conf also contains /usr/contrib/lib and
17977   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17978   # libtool to hard-code these into programs
17979   ;;
17980
17981 cygwin* | mingw* | pw32*)
17982   version_type=windows
17983   shrext_cmds=".dll"
17984   need_version=no
17985   need_lib_prefix=no
17986
17987   case $GCC,$host_os in
17988   yes,cygwin* | yes,mingw* | yes,pw32*)
17989     library_names_spec='$libname.dll.a'
17990     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17991     postinstall_cmds='base_file=`basename \${file}`~
17992       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17993       dldir=$destdir/`dirname \$dlpath`~
17994       test -d \$dldir || mkdir -p \$dldir~
17995       $install_prog $dir/$dlname \$dldir/$dlname~
17996       chmod a+x \$dldir/$dlname'
17997     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17998       dlpath=$dir/\$dldll~
17999        $rm \$dlpath'
18000     shlibpath_overrides_runpath=yes
18001
18002     case $host_os in
18003     cygwin*)
18004       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18005       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18006       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18007       ;;
18008     mingw*)
18009       # MinGW DLLs use traditional 'lib' prefix
18010       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18011       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18012       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18013         # It is most probably a Windows format PATH printed by
18014         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18015         # path with ; separators, and with drive letters. We can handle the
18016         # drive letters (cygwin fileutils understands them), so leave them,
18017         # especially as we might pass files found there to a mingw objdump,
18018         # which wouldn't understand a cygwinified path. Ahh.
18019         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18020       else
18021         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18022       fi
18023       ;;
18024     pw32*)
18025       # pw32 DLLs use 'pw' prefix rather than 'lib'
18026       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18027       ;;
18028     esac
18029     ;;
18030
18031   *)
18032     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18033     ;;
18034   esac
18035   dynamic_linker='Win32 ld.exe'
18036   # FIXME: first we should search . and the directory the executable is in
18037   shlibpath_var=PATH
18038   ;;
18039
18040 darwin* | rhapsody*)
18041   dynamic_linker="$host_os dyld"
18042   version_type=darwin
18043   need_lib_prefix=no
18044   need_version=no
18045   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18046   soname_spec='${libname}${release}${major}$shared_ext'
18047   shlibpath_overrides_runpath=yes
18048   shlibpath_var=DYLD_LIBRARY_PATH
18049   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18050   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18051   if test "$GCC" = yes; then
18052     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18053   else
18054     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18055   fi
18056   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18057   ;;
18058
18059 dgux*)
18060   version_type=linux
18061   need_lib_prefix=no
18062   need_version=no
18063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18064   soname_spec='${libname}${release}${shared_ext}$major'
18065   shlibpath_var=LD_LIBRARY_PATH
18066   ;;
18067
18068 freebsd1*)
18069   dynamic_linker=no
18070   ;;
18071
18072 freebsd* | dragonfly*)
18073   # DragonFly does not have aout.  When/if they implement a new
18074   # versioning mechanism, adjust this.
18075   if test -x /usr/bin/objformat; then
18076     objformat=`/usr/bin/objformat`
18077   else
18078     case $host_os in
18079     freebsd[123]*) objformat=aout ;;
18080     *) objformat=elf ;;
18081     esac
18082   fi
18083   version_type=freebsd-$objformat
18084   case $version_type in
18085     freebsd-elf*)
18086       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18087       need_version=no
18088       need_lib_prefix=no
18089       ;;
18090     freebsd-*)
18091       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18092       need_version=yes
18093       ;;
18094   esac
18095   shlibpath_var=LD_LIBRARY_PATH
18096   case $host_os in
18097   freebsd2*)
18098     shlibpath_overrides_runpath=yes
18099     ;;
18100   freebsd3.[01]* | freebsdelf3.[01]*)
18101     shlibpath_overrides_runpath=yes
18102     hardcode_into_libs=yes
18103     ;;
18104   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18105   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18106     shlibpath_overrides_runpath=no
18107     hardcode_into_libs=yes
18108     ;;
18109   freebsd*) # from 4.6 on
18110     shlibpath_overrides_runpath=yes
18111     hardcode_into_libs=yes
18112     ;;
18113   esac
18114   ;;
18115
18116 gnu*)
18117   version_type=linux
18118   need_lib_prefix=no
18119   need_version=no
18120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18121   soname_spec='${libname}${release}${shared_ext}$major'
18122   shlibpath_var=LD_LIBRARY_PATH
18123   hardcode_into_libs=yes
18124   ;;
18125
18126 hpux9* | hpux10* | hpux11*)
18127   # Give a soname corresponding to the major version so that dld.sl refuses to
18128   # link against other versions.
18129   version_type=sunos
18130   need_lib_prefix=no
18131   need_version=no
18132   case $host_cpu in
18133   ia64*)
18134     shrext_cmds='.so'
18135     hardcode_into_libs=yes
18136     dynamic_linker="$host_os dld.so"
18137     shlibpath_var=LD_LIBRARY_PATH
18138     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18139     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18140     soname_spec='${libname}${release}${shared_ext}$major'
18141     if test "X$HPUX_IA64_MODE" = X32; then
18142       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18143     else
18144       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18145     fi
18146     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18147     ;;
18148    hppa*64*)
18149      shrext_cmds='.sl'
18150      hardcode_into_libs=yes
18151      dynamic_linker="$host_os dld.sl"
18152      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18153      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18154      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18155      soname_spec='${libname}${release}${shared_ext}$major'
18156      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18157      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18158      ;;
18159    *)
18160     shrext_cmds='.sl'
18161     dynamic_linker="$host_os dld.sl"
18162     shlibpath_var=SHLIB_PATH
18163     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18164     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18165     soname_spec='${libname}${release}${shared_ext}$major'
18166     ;;
18167   esac
18168   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18169   postinstall_cmds='chmod 555 $lib'
18170   ;;
18171
18172 interix3*)
18173   version_type=linux
18174   need_lib_prefix=no
18175   need_version=no
18176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18177   soname_spec='${libname}${release}${shared_ext}$major'
18178   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18179   shlibpath_var=LD_LIBRARY_PATH
18180   shlibpath_overrides_runpath=no
18181   hardcode_into_libs=yes
18182   ;;
18183
18184 irix5* | irix6* | nonstopux*)
18185   case $host_os in
18186     nonstopux*) version_type=nonstopux ;;
18187     *)
18188         if test "$lt_cv_prog_gnu_ld" = yes; then
18189                 version_type=linux
18190         else
18191                 version_type=irix
18192         fi ;;
18193   esac
18194   need_lib_prefix=no
18195   need_version=no
18196   soname_spec='${libname}${release}${shared_ext}$major'
18197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18198   case $host_os in
18199   irix5* | nonstopux*)
18200     libsuff= shlibsuff=
18201     ;;
18202   *)
18203     case $LD in # libtool.m4 will add one of these switches to LD
18204     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18205       libsuff= shlibsuff= libmagic=32-bit;;
18206     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18207       libsuff=32 shlibsuff=N32 libmagic=N32;;
18208     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18209       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18210     *) libsuff= shlibsuff= libmagic=never-match;;
18211     esac
18212     ;;
18213   esac
18214   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18215   shlibpath_overrides_runpath=no
18216   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18217   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18218   hardcode_into_libs=yes
18219   ;;
18220
18221 # No shared lib support for Linux oldld, aout, or coff.
18222 linux*oldld* | linux*aout* | linux*coff*)
18223   dynamic_linker=no
18224   ;;
18225
18226 # This must be Linux ELF.
18227 linux* | k*bsd*-gnu)
18228   version_type=linux
18229   need_lib_prefix=no
18230   need_version=no
18231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18232   soname_spec='${libname}${release}${shared_ext}$major'
18233   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18234   shlibpath_var=LD_LIBRARY_PATH
18235   shlibpath_overrides_runpath=no
18236   # This implies no fast_install, which is unacceptable.
18237   # Some rework will be needed to allow for fast_install
18238   # before this can be enabled.
18239   hardcode_into_libs=yes
18240
18241   # Append ld.so.conf contents to the search path
18242   if test -f /etc/ld.so.conf; then
18243     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18244     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18245   fi
18246
18247   # We used to test for /lib/ld.so.1 and disable shared libraries on
18248   # powerpc, because MkLinux only supported shared libraries with the
18249   # GNU dynamic linker.  Since this was broken with cross compilers,
18250   # most powerpc-linux boxes support dynamic linking these days and
18251   # people can always --disable-shared, the test was removed, and we
18252   # assume the GNU/Linux dynamic linker is in use.
18253   dynamic_linker='GNU/Linux ld.so'
18254   ;;
18255
18256 netbsdelf*-gnu)
18257   version_type=linux
18258   need_lib_prefix=no
18259   need_version=no
18260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18261   soname_spec='${libname}${release}${shared_ext}$major'
18262   shlibpath_var=LD_LIBRARY_PATH
18263   shlibpath_overrides_runpath=no
18264   hardcode_into_libs=yes
18265   dynamic_linker='NetBSD ld.elf_so'
18266   ;;
18267
18268 netbsd*)
18269   version_type=sunos
18270   need_lib_prefix=no
18271   need_version=no
18272   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18273     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18274     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18275     dynamic_linker='NetBSD (a.out) ld.so'
18276   else
18277     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18278     soname_spec='${libname}${release}${shared_ext}$major'
18279     dynamic_linker='NetBSD ld.elf_so'
18280   fi
18281   shlibpath_var=LD_LIBRARY_PATH
18282   shlibpath_overrides_runpath=yes
18283   hardcode_into_libs=yes
18284   ;;
18285
18286 newsos6)
18287   version_type=linux
18288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18289   shlibpath_var=LD_LIBRARY_PATH
18290   shlibpath_overrides_runpath=yes
18291   ;;
18292
18293 nto-qnx*)
18294   version_type=linux
18295   need_lib_prefix=no
18296   need_version=no
18297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18298   soname_spec='${libname}${release}${shared_ext}$major'
18299   shlibpath_var=LD_LIBRARY_PATH
18300   shlibpath_overrides_runpath=yes
18301   ;;
18302
18303 openbsd*)
18304   version_type=sunos
18305   sys_lib_dlsearch_path_spec="/usr/lib"
18306   need_lib_prefix=no
18307   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18308   case $host_os in
18309     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18310     *)                         need_version=no  ;;
18311   esac
18312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18313   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18314   shlibpath_var=LD_LIBRARY_PATH
18315   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18316     case $host_os in
18317       openbsd2.[89] | openbsd2.[89].*)
18318         shlibpath_overrides_runpath=no
18319         ;;
18320       *)
18321         shlibpath_overrides_runpath=yes
18322         ;;
18323       esac
18324   else
18325     shlibpath_overrides_runpath=yes
18326   fi
18327   ;;
18328
18329 os2*)
18330   libname_spec='$name'
18331   shrext_cmds=".dll"
18332   need_lib_prefix=no
18333   library_names_spec='$libname${shared_ext} $libname.a'
18334   dynamic_linker='OS/2 ld.exe'
18335   shlibpath_var=LIBPATH
18336   ;;
18337
18338 osf3* | osf4* | osf5*)
18339   version_type=osf
18340   need_lib_prefix=no
18341   need_version=no
18342   soname_spec='${libname}${release}${shared_ext}$major'
18343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18344   shlibpath_var=LD_LIBRARY_PATH
18345   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18346   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18347   ;;
18348
18349 solaris*)
18350   version_type=linux
18351   need_lib_prefix=no
18352   need_version=no
18353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18354   soname_spec='${libname}${release}${shared_ext}$major'
18355   shlibpath_var=LD_LIBRARY_PATH
18356   shlibpath_overrides_runpath=yes
18357   hardcode_into_libs=yes
18358   # ldd complains unless libraries are executable
18359   postinstall_cmds='chmod +x $lib'
18360   ;;
18361
18362 sunos4*)
18363   version_type=sunos
18364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18365   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18366   shlibpath_var=LD_LIBRARY_PATH
18367   shlibpath_overrides_runpath=yes
18368   if test "$with_gnu_ld" = yes; then
18369     need_lib_prefix=no
18370   fi
18371   need_version=yes
18372   ;;
18373
18374 sysv4 | sysv4.3*)
18375   version_type=linux
18376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18377   soname_spec='${libname}${release}${shared_ext}$major'
18378   shlibpath_var=LD_LIBRARY_PATH
18379   case $host_vendor in
18380     sni)
18381       shlibpath_overrides_runpath=no
18382       need_lib_prefix=no
18383       export_dynamic_flag_spec='${wl}-Blargedynsym'
18384       runpath_var=LD_RUN_PATH
18385       ;;
18386     siemens)
18387       need_lib_prefix=no
18388       ;;
18389     motorola)
18390       need_lib_prefix=no
18391       need_version=no
18392       shlibpath_overrides_runpath=no
18393       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18394       ;;
18395   esac
18396   ;;
18397
18398 sysv4*MP*)
18399   if test -d /usr/nec ;then
18400     version_type=linux
18401     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18402     soname_spec='$libname${shared_ext}.$major'
18403     shlibpath_var=LD_LIBRARY_PATH
18404   fi
18405   ;;
18406
18407 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18408   version_type=freebsd-elf
18409   need_lib_prefix=no
18410   need_version=no
18411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18412   soname_spec='${libname}${release}${shared_ext}$major'
18413   shlibpath_var=LD_LIBRARY_PATH
18414   hardcode_into_libs=yes
18415   if test "$with_gnu_ld" = yes; then
18416     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18417     shlibpath_overrides_runpath=no
18418   else
18419     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18420     shlibpath_overrides_runpath=yes
18421     case $host_os in
18422       sco3.2v5*)
18423         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18424         ;;
18425     esac
18426   fi
18427   sys_lib_dlsearch_path_spec='/usr/lib'
18428   ;;
18429
18430 uts4*)
18431   version_type=linux
18432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18433   soname_spec='${libname}${release}${shared_ext}$major'
18434   shlibpath_var=LD_LIBRARY_PATH
18435   ;;
18436
18437 *)
18438   dynamic_linker=no
18439   ;;
18440 esac
18441 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18442 echo "${ECHO_T}$dynamic_linker" >&6; }
18443 test "$dynamic_linker" = no && can_build_shared=no
18444
18445 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18446 if test "$GCC" = yes; then
18447   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18448 fi
18449
18450 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18451 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18452 hardcode_action_GCJ=
18453 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18454    test -n "$runpath_var_GCJ" || \
18455    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18456
18457   # We can hardcode non-existant directories.
18458   if test "$hardcode_direct_GCJ" != no &&
18459      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18460      # have to relink, otherwise we might link with an installed library
18461      # when we should be linking with a yet-to-be-installed one
18462      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18463      test "$hardcode_minus_L_GCJ" != no; then
18464     # Linking always hardcodes the temporary library directory.
18465     hardcode_action_GCJ=relink
18466   else
18467     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18468     hardcode_action_GCJ=immediate
18469   fi
18470 else
18471   # We cannot hardcode anything, or else we can only hardcode existing
18472   # directories.
18473   hardcode_action_GCJ=unsupported
18474 fi
18475 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18476 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18477
18478 if test "$hardcode_action_GCJ" = relink; then
18479   # Fast installation is not supported
18480   enable_fast_install=no
18481 elif test "$shlibpath_overrides_runpath" = yes ||
18482      test "$enable_shared" = no; then
18483   # Fast installation is not necessary
18484   enable_fast_install=needless
18485 fi
18486
18487
18488 # The else clause should only fire when bootstrapping the
18489 # libtool distribution, otherwise you forgot to ship ltmain.sh
18490 # with your package, and you will get complaints that there are
18491 # no rules to generate ltmain.sh.
18492 if test -f "$ltmain"; then
18493   # See if we are running on zsh, and set the options which allow our commands through
18494   # without removal of \ escapes.
18495   if test -n "${ZSH_VERSION+set}" ; then
18496     setopt NO_GLOB_SUBST
18497   fi
18498   # Now quote all the things that may contain metacharacters while being
18499   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18500   # variables and quote the copies for generation of the libtool script.
18501   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18502     SED SHELL STRIP \
18503     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18504     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18505     deplibs_check_method reload_flag reload_cmds need_locks \
18506     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18507     lt_cv_sys_global_symbol_to_c_name_address \
18508     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18509     old_postinstall_cmds old_postuninstall_cmds \
18510     compiler_GCJ \
18511     CC_GCJ \
18512     LD_GCJ \
18513     lt_prog_compiler_wl_GCJ \
18514     lt_prog_compiler_pic_GCJ \
18515     lt_prog_compiler_static_GCJ \
18516     lt_prog_compiler_no_builtin_flag_GCJ \
18517     export_dynamic_flag_spec_GCJ \
18518     thread_safe_flag_spec_GCJ \
18519     whole_archive_flag_spec_GCJ \
18520     enable_shared_with_static_runtimes_GCJ \
18521     old_archive_cmds_GCJ \
18522     old_archive_from_new_cmds_GCJ \
18523     predep_objects_GCJ \
18524     postdep_objects_GCJ \
18525     predeps_GCJ \
18526     postdeps_GCJ \
18527     compiler_lib_search_path_GCJ \
18528     archive_cmds_GCJ \
18529     archive_expsym_cmds_GCJ \
18530     postinstall_cmds_GCJ \
18531     postuninstall_cmds_GCJ \
18532     old_archive_from_expsyms_cmds_GCJ \
18533     allow_undefined_flag_GCJ \
18534     no_undefined_flag_GCJ \
18535     export_symbols_cmds_GCJ \
18536     hardcode_libdir_flag_spec_GCJ \
18537     hardcode_libdir_flag_spec_ld_GCJ \
18538     hardcode_libdir_separator_GCJ \
18539     hardcode_automatic_GCJ \
18540     module_cmds_GCJ \
18541     module_expsym_cmds_GCJ \
18542     lt_cv_prog_compiler_c_o_GCJ \
18543     exclude_expsyms_GCJ \
18544     include_expsyms_GCJ; do
18545
18546     case $var in
18547     old_archive_cmds_GCJ | \
18548     old_archive_from_new_cmds_GCJ | \
18549     archive_cmds_GCJ | \
18550     archive_expsym_cmds_GCJ | \
18551     module_cmds_GCJ | \
18552     module_expsym_cmds_GCJ | \
18553     old_archive_from_expsyms_cmds_GCJ | \
18554     export_symbols_cmds_GCJ | \
18555     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18556     postinstall_cmds | postuninstall_cmds | \
18557     old_postinstall_cmds | old_postuninstall_cmds | \
18558     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18559       # Double-quote double-evaled strings.
18560       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18561       ;;
18562     *)
18563       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18564       ;;
18565     esac
18566   done
18567
18568   case $lt_echo in
18569   *'\$0 --fallback-echo"')
18570     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18571     ;;
18572   esac
18573
18574 cfgfile="$ofile"
18575
18576   cat <<__EOF__ >> "$cfgfile"
18577 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18578
18579 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18580
18581 # Shell to use when invoking shell scripts.
18582 SHELL=$lt_SHELL
18583
18584 # Whether or not to build shared libraries.
18585 build_libtool_libs=$enable_shared
18586
18587 # Whether or not to build static libraries.
18588 build_old_libs=$enable_static
18589
18590 # Whether or not to add -lc for building shared libraries.
18591 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18592
18593 # Whether or not to disallow shared libs when runtime libs are static
18594 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18595
18596 # Whether or not to optimize for fast installation.
18597 fast_install=$enable_fast_install
18598
18599 # The host system.
18600 host_alias=$host_alias
18601 host=$host
18602 host_os=$host_os
18603
18604 # The build system.
18605 build_alias=$build_alias
18606 build=$build
18607 build_os=$build_os
18608
18609 # An echo program that does not interpret backslashes.
18610 echo=$lt_echo
18611
18612 # The archiver.
18613 AR=$lt_AR
18614 AR_FLAGS=$lt_AR_FLAGS
18615
18616 # A C compiler.
18617 LTCC=$lt_LTCC
18618
18619 # LTCC compiler flags.
18620 LTCFLAGS=$lt_LTCFLAGS
18621
18622 # A language-specific compiler.
18623 CC=$lt_compiler_GCJ
18624
18625 # Is the compiler the GNU C compiler?
18626 with_gcc=$GCC_GCJ
18627
18628 # An ERE matcher.
18629 EGREP=$lt_EGREP
18630
18631 # The linker used to build libraries.
18632 LD=$lt_LD_GCJ
18633
18634 # Whether we need hard or soft links.
18635 LN_S=$lt_LN_S
18636
18637 # A BSD-compatible nm program.
18638 NM=$lt_NM
18639
18640 # A symbol stripping program
18641 STRIP=$lt_STRIP
18642
18643 # Used to examine libraries when file_magic_cmd begins "file"
18644 MAGIC_CMD=$MAGIC_CMD
18645
18646 # Used on cygwin: DLL creation program.
18647 DLLTOOL="$DLLTOOL"
18648
18649 # Used on cygwin: object dumper.
18650 OBJDUMP="$OBJDUMP"
18651
18652 # Used on cygwin: assembler.
18653 AS="$AS"
18654
18655 # The name of the directory that contains temporary libtool files.
18656 objdir=$objdir
18657
18658 # How to create reloadable object files.
18659 reload_flag=$lt_reload_flag
18660 reload_cmds=$lt_reload_cmds
18661
18662 # How to pass a linker flag through the compiler.
18663 wl=$lt_lt_prog_compiler_wl_GCJ
18664
18665 # Object file suffix (normally "o").
18666 objext="$ac_objext"
18667
18668 # Old archive suffix (normally "a").
18669 libext="$libext"
18670
18671 # Shared library suffix (normally ".so").
18672 shrext_cmds='$shrext_cmds'
18673
18674 # Executable file suffix (normally "").
18675 exeext="$exeext"
18676
18677 # Additional compiler flags for building library objects.
18678 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18679 pic_mode=$pic_mode
18680
18681 # What is the maximum length of a command?
18682 max_cmd_len=$lt_cv_sys_max_cmd_len
18683
18684 # Does compiler simultaneously support -c and -o options?
18685 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18686
18687 # Must we lock files when doing compilation?
18688 need_locks=$lt_need_locks
18689
18690 # Do we need the lib prefix for modules?
18691 need_lib_prefix=$need_lib_prefix
18692
18693 # Do we need a version for libraries?
18694 need_version=$need_version
18695
18696 # Whether dlopen is supported.
18697 dlopen_support=$enable_dlopen
18698
18699 # Whether dlopen of programs is supported.
18700 dlopen_self=$enable_dlopen_self
18701
18702 # Whether dlopen of statically linked programs is supported.
18703 dlopen_self_static=$enable_dlopen_self_static
18704
18705 # Compiler flag to prevent dynamic linking.
18706 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18707
18708 # Compiler flag to turn off builtin functions.
18709 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18710
18711 # Compiler flag to allow reflexive dlopens.
18712 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18713
18714 # Compiler flag to generate shared objects directly from archives.
18715 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18716
18717 # Compiler flag to generate thread-safe objects.
18718 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18719
18720 # Library versioning type.
18721 version_type=$version_type
18722
18723 # Format of library name prefix.
18724 libname_spec=$lt_libname_spec
18725
18726 # List of archive names.  First name is the real one, the rest are links.
18727 # The last name is the one that the linker finds with -lNAME.
18728 library_names_spec=$lt_library_names_spec
18729
18730 # The coded name of the library, if different from the real name.
18731 soname_spec=$lt_soname_spec
18732
18733 # Commands used to build and install an old-style archive.
18734 RANLIB=$lt_RANLIB
18735 old_archive_cmds=$lt_old_archive_cmds_GCJ
18736 old_postinstall_cmds=$lt_old_postinstall_cmds
18737 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18738
18739 # Create an old-style archive from a shared archive.
18740 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18741
18742 # Create a temporary old-style archive to link instead of a shared archive.
18743 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18744
18745 # Commands used to build and install a shared archive.
18746 archive_cmds=$lt_archive_cmds_GCJ
18747 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18748 postinstall_cmds=$lt_postinstall_cmds
18749 postuninstall_cmds=$lt_postuninstall_cmds
18750
18751 # Commands used to build a loadable module (assumed same as above if empty)
18752 module_cmds=$lt_module_cmds_GCJ
18753 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18754
18755 # Commands to strip libraries.
18756 old_striplib=$lt_old_striplib
18757 striplib=$lt_striplib
18758
18759 # Dependencies to place before the objects being linked to create a
18760 # shared library.
18761 predep_objects=$lt_predep_objects_GCJ
18762
18763 # Dependencies to place after the objects being linked to create a
18764 # shared library.
18765 postdep_objects=$lt_postdep_objects_GCJ
18766
18767 # Dependencies to place before the objects being linked to create a
18768 # shared library.
18769 predeps=$lt_predeps_GCJ
18770
18771 # Dependencies to place after the objects being linked to create a
18772 # shared library.
18773 postdeps=$lt_postdeps_GCJ
18774
18775 # The library search path used internally by the compiler when linking
18776 # a shared library.
18777 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18778
18779 # Method to check whether dependent libraries are shared objects.
18780 deplibs_check_method=$lt_deplibs_check_method
18781
18782 # Command to use when deplibs_check_method == file_magic.
18783 file_magic_cmd=$lt_file_magic_cmd
18784
18785 # Flag that allows shared libraries with undefined symbols to be built.
18786 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18787
18788 # Flag that forces no undefined symbols.
18789 no_undefined_flag=$lt_no_undefined_flag_GCJ
18790
18791 # Commands used to finish a libtool library installation in a directory.
18792 finish_cmds=$lt_finish_cmds
18793
18794 # Same as above, but a single script fragment to be evaled but not shown.
18795 finish_eval=$lt_finish_eval
18796
18797 # Take the output of nm and produce a listing of raw symbols and C names.
18798 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18799
18800 # Transform the output of nm in a proper C declaration
18801 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18802
18803 # Transform the output of nm in a C name address pair
18804 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18805
18806 # This is the shared library runtime path variable.
18807 runpath_var=$runpath_var
18808
18809 # This is the shared library path variable.
18810 shlibpath_var=$shlibpath_var
18811
18812 # Is shlibpath searched before the hard-coded library search path?
18813 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18814
18815 # How to hardcode a shared library path into an executable.
18816 hardcode_action=$hardcode_action_GCJ
18817
18818 # Whether we should hardcode library paths into libraries.
18819 hardcode_into_libs=$hardcode_into_libs
18820
18821 # Flag to hardcode \$libdir into a binary during linking.
18822 # This must work even if \$libdir does not exist.
18823 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18824
18825 # If ld is used when linking, flag to hardcode \$libdir into
18826 # a binary during linking. This must work even if \$libdir does
18827 # not exist.
18828 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18829
18830 # Whether we need a single -rpath flag with a separated argument.
18831 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18832
18833 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18834 # resulting binary.
18835 hardcode_direct=$hardcode_direct_GCJ
18836
18837 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18838 # resulting binary.
18839 hardcode_minus_L=$hardcode_minus_L_GCJ
18840
18841 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18842 # the resulting binary.
18843 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18844
18845 # Set to yes if building a shared library automatically hardcodes DIR into the library
18846 # and all subsequent libraries and executables linked against it.
18847 hardcode_automatic=$hardcode_automatic_GCJ
18848
18849 # Variables whose values should be saved in libtool wrapper scripts and
18850 # restored at relink time.
18851 variables_saved_for_relink="$variables_saved_for_relink"
18852
18853 # Whether libtool must link a program against all its dependency libraries.
18854 link_all_deplibs=$link_all_deplibs_GCJ
18855
18856 # Compile-time system search path for libraries
18857 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18858
18859 # Run-time system search path for libraries
18860 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18861
18862 # Fix the shell variable \$srcfile for the compiler.
18863 fix_srcfile_path="$fix_srcfile_path_GCJ"
18864
18865 # Set to yes if exported symbols are required.
18866 always_export_symbols=$always_export_symbols_GCJ
18867
18868 # The commands to list exported symbols.
18869 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18870
18871 # The commands to extract the exported symbol list from a shared archive.
18872 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18873
18874 # Symbols that should not be listed in the preloaded symbols.
18875 exclude_expsyms=$lt_exclude_expsyms_GCJ
18876
18877 # Symbols that must always be exported.
18878 include_expsyms=$lt_include_expsyms_GCJ
18879
18880 # ### END LIBTOOL TAG CONFIG: $tagname
18881
18882 __EOF__
18883
18884
18885 else
18886   # If there is no Makefile yet, we rely on a make rule to execute
18887   # `config.status --recheck' to rerun these tests and create the
18888   # libtool script then.
18889   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18890   if test -f "$ltmain_in"; then
18891     test -f Makefile && make "$ltmain"
18892   fi
18893 fi
18894
18895
18896 ac_ext=c
18897 ac_cpp='$CPP $CPPFLAGS'
18898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18901
18902 CC="$lt_save_CC"
18903
18904         else
18905           tagname=""
18906         fi
18907         ;;
18908
18909       RC)
18910
18911
18912 # Source file extension for RC test sources.
18913 ac_ext=rc
18914
18915 # Object file extension for compiled RC test sources.
18916 objext=o
18917 objext_RC=$objext
18918
18919 # Code to be used in simple compile tests
18920 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18921
18922 # Code to be used in simple link tests
18923 lt_simple_link_test_code="$lt_simple_compile_test_code"
18924
18925 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18926
18927 # If no C compiler was specified, use CC.
18928 LTCC=${LTCC-"$CC"}
18929
18930 # If no C compiler flags were specified, use CFLAGS.
18931 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18932
18933 # Allow CC to be a program name with arguments.
18934 compiler=$CC
18935
18936
18937 # save warnings/boilerplate of simple test code
18938 ac_outfile=conftest.$ac_objext
18939 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18940 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18941 _lt_compiler_boilerplate=`cat conftest.err`
18942 $rm conftest*
18943
18944 ac_outfile=conftest.$ac_objext
18945 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18946 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18947 _lt_linker_boilerplate=`cat conftest.err`
18948 $rm conftest*
18949
18950
18951 # Allow CC to be a program name with arguments.
18952 lt_save_CC="$CC"
18953 CC=${RC-"windres"}
18954 compiler=$CC
18955 compiler_RC=$CC
18956 for cc_temp in $compiler""; do
18957   case $cc_temp in
18958     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18959     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18960     \-*) ;;
18961     *) break;;
18962   esac
18963 done
18964 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18965
18966 lt_cv_prog_compiler_c_o_RC=yes
18967
18968 # The else clause should only fire when bootstrapping the
18969 # libtool distribution, otherwise you forgot to ship ltmain.sh
18970 # with your package, and you will get complaints that there are
18971 # no rules to generate ltmain.sh.
18972 if test -f "$ltmain"; then
18973   # See if we are running on zsh, and set the options which allow our commands through
18974   # without removal of \ escapes.
18975   if test -n "${ZSH_VERSION+set}" ; then
18976     setopt NO_GLOB_SUBST
18977   fi
18978   # Now quote all the things that may contain metacharacters while being
18979   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18980   # variables and quote the copies for generation of the libtool script.
18981   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18982     SED SHELL STRIP \
18983     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18984     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18985     deplibs_check_method reload_flag reload_cmds need_locks \
18986     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18987     lt_cv_sys_global_symbol_to_c_name_address \
18988     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18989     old_postinstall_cmds old_postuninstall_cmds \
18990     compiler_RC \
18991     CC_RC \
18992     LD_RC \
18993     lt_prog_compiler_wl_RC \
18994     lt_prog_compiler_pic_RC \
18995     lt_prog_compiler_static_RC \
18996     lt_prog_compiler_no_builtin_flag_RC \
18997     export_dynamic_flag_spec_RC \
18998     thread_safe_flag_spec_RC \
18999     whole_archive_flag_spec_RC \
19000     enable_shared_with_static_runtimes_RC \
19001     old_archive_cmds_RC \
19002     old_archive_from_new_cmds_RC \
19003     predep_objects_RC \
19004     postdep_objects_RC \
19005     predeps_RC \
19006     postdeps_RC \
19007     compiler_lib_search_path_RC \
19008     archive_cmds_RC \
19009     archive_expsym_cmds_RC \
19010     postinstall_cmds_RC \
19011     postuninstall_cmds_RC \
19012     old_archive_from_expsyms_cmds_RC \
19013     allow_undefined_flag_RC \
19014     no_undefined_flag_RC \
19015     export_symbols_cmds_RC \
19016     hardcode_libdir_flag_spec_RC \
19017     hardcode_libdir_flag_spec_ld_RC \
19018     hardcode_libdir_separator_RC \
19019     hardcode_automatic_RC \
19020     module_cmds_RC \
19021     module_expsym_cmds_RC \
19022     lt_cv_prog_compiler_c_o_RC \
19023     exclude_expsyms_RC \
19024     include_expsyms_RC; do
19025
19026     case $var in
19027     old_archive_cmds_RC | \
19028     old_archive_from_new_cmds_RC | \
19029     archive_cmds_RC | \
19030     archive_expsym_cmds_RC | \
19031     module_cmds_RC | \
19032     module_expsym_cmds_RC | \
19033     old_archive_from_expsyms_cmds_RC | \
19034     export_symbols_cmds_RC | \
19035     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19036     postinstall_cmds | postuninstall_cmds | \
19037     old_postinstall_cmds | old_postuninstall_cmds | \
19038     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19039       # Double-quote double-evaled strings.
19040       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19041       ;;
19042     *)
19043       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19044       ;;
19045     esac
19046   done
19047
19048   case $lt_echo in
19049   *'\$0 --fallback-echo"')
19050     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19051     ;;
19052   esac
19053
19054 cfgfile="$ofile"
19055
19056   cat <<__EOF__ >> "$cfgfile"
19057 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19058
19059 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19060
19061 # Shell to use when invoking shell scripts.
19062 SHELL=$lt_SHELL
19063
19064 # Whether or not to build shared libraries.
19065 build_libtool_libs=$enable_shared
19066
19067 # Whether or not to build static libraries.
19068 build_old_libs=$enable_static
19069
19070 # Whether or not to add -lc for building shared libraries.
19071 build_libtool_need_lc=$archive_cmds_need_lc_RC
19072
19073 # Whether or not to disallow shared libs when runtime libs are static
19074 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19075
19076 # Whether or not to optimize for fast installation.
19077 fast_install=$enable_fast_install
19078
19079 # The host system.
19080 host_alias=$host_alias
19081 host=$host
19082 host_os=$host_os
19083
19084 # The build system.
19085 build_alias=$build_alias
19086 build=$build
19087 build_os=$build_os
19088
19089 # An echo program that does not interpret backslashes.
19090 echo=$lt_echo
19091
19092 # The archiver.
19093 AR=$lt_AR
19094 AR_FLAGS=$lt_AR_FLAGS
19095
19096 # A C compiler.
19097 LTCC=$lt_LTCC
19098
19099 # LTCC compiler flags.
19100 LTCFLAGS=$lt_LTCFLAGS
19101
19102 # A language-specific compiler.
19103 CC=$lt_compiler_RC
19104
19105 # Is the compiler the GNU C compiler?
19106 with_gcc=$GCC_RC
19107
19108 # An ERE matcher.
19109 EGREP=$lt_EGREP
19110
19111 # The linker used to build libraries.
19112 LD=$lt_LD_RC
19113
19114 # Whether we need hard or soft links.
19115 LN_S=$lt_LN_S
19116
19117 # A BSD-compatible nm program.
19118 NM=$lt_NM
19119
19120 # A symbol stripping program
19121 STRIP=$lt_STRIP
19122
19123 # Used to examine libraries when file_magic_cmd begins "file"
19124 MAGIC_CMD=$MAGIC_CMD
19125
19126 # Used on cygwin: DLL creation program.
19127 DLLTOOL="$DLLTOOL"
19128
19129 # Used on cygwin: object dumper.
19130 OBJDUMP="$OBJDUMP"
19131
19132 # Used on cygwin: assembler.
19133 AS="$AS"
19134
19135 # The name of the directory that contains temporary libtool files.
19136 objdir=$objdir
19137
19138 # How to create reloadable object files.
19139 reload_flag=$lt_reload_flag
19140 reload_cmds=$lt_reload_cmds
19141
19142 # How to pass a linker flag through the compiler.
19143 wl=$lt_lt_prog_compiler_wl_RC
19144
19145 # Object file suffix (normally "o").
19146 objext="$ac_objext"
19147
19148 # Old archive suffix (normally "a").
19149 libext="$libext"
19150
19151 # Shared library suffix (normally ".so").
19152 shrext_cmds='$shrext_cmds'
19153
19154 # Executable file suffix (normally "").
19155 exeext="$exeext"
19156
19157 # Additional compiler flags for building library objects.
19158 pic_flag=$lt_lt_prog_compiler_pic_RC
19159 pic_mode=$pic_mode
19160
19161 # What is the maximum length of a command?
19162 max_cmd_len=$lt_cv_sys_max_cmd_len
19163
19164 # Does compiler simultaneously support -c and -o options?
19165 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19166
19167 # Must we lock files when doing compilation?
19168 need_locks=$lt_need_locks
19169
19170 # Do we need the lib prefix for modules?
19171 need_lib_prefix=$need_lib_prefix
19172
19173 # Do we need a version for libraries?
19174 need_version=$need_version
19175
19176 # Whether dlopen is supported.
19177 dlopen_support=$enable_dlopen
19178
19179 # Whether dlopen of programs is supported.
19180 dlopen_self=$enable_dlopen_self
19181
19182 # Whether dlopen of statically linked programs is supported.
19183 dlopen_self_static=$enable_dlopen_self_static
19184
19185 # Compiler flag to prevent dynamic linking.
19186 link_static_flag=$lt_lt_prog_compiler_static_RC
19187
19188 # Compiler flag to turn off builtin functions.
19189 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19190
19191 # Compiler flag to allow reflexive dlopens.
19192 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19193
19194 # Compiler flag to generate shared objects directly from archives.
19195 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19196
19197 # Compiler flag to generate thread-safe objects.
19198 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19199
19200 # Library versioning type.
19201 version_type=$version_type
19202
19203 # Format of library name prefix.
19204 libname_spec=$lt_libname_spec
19205
19206 # List of archive names.  First name is the real one, the rest are links.
19207 # The last name is the one that the linker finds with -lNAME.
19208 library_names_spec=$lt_library_names_spec
19209
19210 # The coded name of the library, if different from the real name.
19211 soname_spec=$lt_soname_spec
19212
19213 # Commands used to build and install an old-style archive.
19214 RANLIB=$lt_RANLIB
19215 old_archive_cmds=$lt_old_archive_cmds_RC
19216 old_postinstall_cmds=$lt_old_postinstall_cmds
19217 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19218
19219 # Create an old-style archive from a shared archive.
19220 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19221
19222 # Create a temporary old-style archive to link instead of a shared archive.
19223 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19224
19225 # Commands used to build and install a shared archive.
19226 archive_cmds=$lt_archive_cmds_RC
19227 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19228 postinstall_cmds=$lt_postinstall_cmds
19229 postuninstall_cmds=$lt_postuninstall_cmds
19230
19231 # Commands used to build a loadable module (assumed same as above if empty)
19232 module_cmds=$lt_module_cmds_RC
19233 module_expsym_cmds=$lt_module_expsym_cmds_RC
19234
19235 # Commands to strip libraries.
19236 old_striplib=$lt_old_striplib
19237 striplib=$lt_striplib
19238
19239 # Dependencies to place before the objects being linked to create a
19240 # shared library.
19241 predep_objects=$lt_predep_objects_RC
19242
19243 # Dependencies to place after the objects being linked to create a
19244 # shared library.
19245 postdep_objects=$lt_postdep_objects_RC
19246
19247 # Dependencies to place before the objects being linked to create a
19248 # shared library.
19249 predeps=$lt_predeps_RC
19250
19251 # Dependencies to place after the objects being linked to create a
19252 # shared library.
19253 postdeps=$lt_postdeps_RC
19254
19255 # The library search path used internally by the compiler when linking
19256 # a shared library.
19257 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19258
19259 # Method to check whether dependent libraries are shared objects.
19260 deplibs_check_method=$lt_deplibs_check_method
19261
19262 # Command to use when deplibs_check_method == file_magic.
19263 file_magic_cmd=$lt_file_magic_cmd
19264
19265 # Flag that allows shared libraries with undefined symbols to be built.
19266 allow_undefined_flag=$lt_allow_undefined_flag_RC
19267
19268 # Flag that forces no undefined symbols.
19269 no_undefined_flag=$lt_no_undefined_flag_RC
19270
19271 # Commands used to finish a libtool library installation in a directory.
19272 finish_cmds=$lt_finish_cmds
19273
19274 # Same as above, but a single script fragment to be evaled but not shown.
19275 finish_eval=$lt_finish_eval
19276
19277 # Take the output of nm and produce a listing of raw symbols and C names.
19278 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19279
19280 # Transform the output of nm in a proper C declaration
19281 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19282
19283 # Transform the output of nm in a C name address pair
19284 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19285
19286 # This is the shared library runtime path variable.
19287 runpath_var=$runpath_var
19288
19289 # This is the shared library path variable.
19290 shlibpath_var=$shlibpath_var
19291
19292 # Is shlibpath searched before the hard-coded library search path?
19293 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19294
19295 # How to hardcode a shared library path into an executable.
19296 hardcode_action=$hardcode_action_RC
19297
19298 # Whether we should hardcode library paths into libraries.
19299 hardcode_into_libs=$hardcode_into_libs
19300
19301 # Flag to hardcode \$libdir into a binary during linking.
19302 # This must work even if \$libdir does not exist.
19303 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19304
19305 # If ld is used when linking, flag to hardcode \$libdir into
19306 # a binary during linking. This must work even if \$libdir does
19307 # not exist.
19308 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19309
19310 # Whether we need a single -rpath flag with a separated argument.
19311 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19312
19313 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19314 # resulting binary.
19315 hardcode_direct=$hardcode_direct_RC
19316
19317 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19318 # resulting binary.
19319 hardcode_minus_L=$hardcode_minus_L_RC
19320
19321 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19322 # the resulting binary.
19323 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19324
19325 # Set to yes if building a shared library automatically hardcodes DIR into the library
19326 # and all subsequent libraries and executables linked against it.
19327 hardcode_automatic=$hardcode_automatic_RC
19328
19329 # Variables whose values should be saved in libtool wrapper scripts and
19330 # restored at relink time.
19331 variables_saved_for_relink="$variables_saved_for_relink"
19332
19333 # Whether libtool must link a program against all its dependency libraries.
19334 link_all_deplibs=$link_all_deplibs_RC
19335
19336 # Compile-time system search path for libraries
19337 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19338
19339 # Run-time system search path for libraries
19340 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19341
19342 # Fix the shell variable \$srcfile for the compiler.
19343 fix_srcfile_path="$fix_srcfile_path_RC"
19344
19345 # Set to yes if exported symbols are required.
19346 always_export_symbols=$always_export_symbols_RC
19347
19348 # The commands to list exported symbols.
19349 export_symbols_cmds=$lt_export_symbols_cmds_RC
19350
19351 # The commands to extract the exported symbol list from a shared archive.
19352 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19353
19354 # Symbols that should not be listed in the preloaded symbols.
19355 exclude_expsyms=$lt_exclude_expsyms_RC
19356
19357 # Symbols that must always be exported.
19358 include_expsyms=$lt_include_expsyms_RC
19359
19360 # ### END LIBTOOL TAG CONFIG: $tagname
19361
19362 __EOF__
19363
19364
19365 else
19366   # If there is no Makefile yet, we rely on a make rule to execute
19367   # `config.status --recheck' to rerun these tests and create the
19368   # libtool script then.
19369   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19370   if test -f "$ltmain_in"; then
19371     test -f Makefile && make "$ltmain"
19372   fi
19373 fi
19374
19375
19376 ac_ext=c
19377 ac_cpp='$CPP $CPPFLAGS'
19378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19381
19382 CC="$lt_save_CC"
19383
19384         ;;
19385
19386       *)
19387         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19388 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19389    { (exit 1); exit 1; }; }
19390         ;;
19391       esac
19392
19393       # Append the new tag name to the list of available tags.
19394       if test -n "$tagname" ; then
19395       available_tags="$available_tags $tagname"
19396     fi
19397     fi
19398   done
19399   IFS="$lt_save_ifs"
19400
19401   # Now substitute the updated list of available tags.
19402   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19403     mv "${ofile}T" "$ofile"
19404     chmod +x "$ofile"
19405   else
19406     rm -f "${ofile}T"
19407     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19408 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19409    { (exit 1); exit 1; }; }
19410   fi
19411 fi
19412
19413
19414
19415 # This can be used to rebuild libtool when needed
19416 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19417
19418 # Always use our own libtool.
19419 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19420
19421 # Prevent multiple expansion
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445
19446 ###############
19447 ## System checks
19448 ##
19449
19450   { echo "$as_me:$LINENO: result: " >&5
19451 echo "${ECHO_T}" >&6; }
19452   { echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
19453 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6; }
19454
19455 ac_ext=c
19456 ac_cpp='$CPP $CPPFLAGS'
19457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19460 if test -n "$ac_tool_prefix"; then
19461   for ac_prog in xlC gcc cc
19462   do
19463     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19464 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19467 if test "${ac_cv_prog_CC+set}" = set; then
19468   echo $ECHO_N "(cached) $ECHO_C" >&6
19469 else
19470   if test -n "$CC"; then
19471   ac_cv_prog_CC="$CC" # Let the user override the test.
19472 else
19473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19474 for as_dir in $PATH
19475 do
19476   IFS=$as_save_IFS
19477   test -z "$as_dir" && as_dir=.
19478   for ac_exec_ext in '' $ac_executable_extensions; do
19479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19480     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19482     break 2
19483   fi
19484 done
19485 done
19486 IFS=$as_save_IFS
19487
19488 fi
19489 fi
19490 CC=$ac_cv_prog_CC
19491 if test -n "$CC"; then
19492   { echo "$as_me:$LINENO: result: $CC" >&5
19493 echo "${ECHO_T}$CC" >&6; }
19494 else
19495   { echo "$as_me:$LINENO: result: no" >&5
19496 echo "${ECHO_T}no" >&6; }
19497 fi
19498
19499
19500     test -n "$CC" && break
19501   done
19502 fi
19503 if test -z "$CC"; then
19504   ac_ct_CC=$CC
19505   for ac_prog in xlC gcc cc
19506 do
19507   # Extract the first word of "$ac_prog", so it can be a program name with args.
19508 set dummy $ac_prog; ac_word=$2
19509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19511 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19512   echo $ECHO_N "(cached) $ECHO_C" >&6
19513 else
19514   if test -n "$ac_ct_CC"; then
19515   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19516 else
19517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19518 for as_dir in $PATH
19519 do
19520   IFS=$as_save_IFS
19521   test -z "$as_dir" && as_dir=.
19522   for ac_exec_ext in '' $ac_executable_extensions; do
19523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19524     ac_cv_prog_ac_ct_CC="$ac_prog"
19525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19526     break 2
19527   fi
19528 done
19529 done
19530 IFS=$as_save_IFS
19531
19532 fi
19533 fi
19534 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19535 if test -n "$ac_ct_CC"; then
19536   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19537 echo "${ECHO_T}$ac_ct_CC" >&6; }
19538 else
19539   { echo "$as_me:$LINENO: result: no" >&5
19540 echo "${ECHO_T}no" >&6; }
19541 fi
19542
19543
19544   test -n "$ac_ct_CC" && break
19545 done
19546
19547   if test "x$ac_ct_CC" = x; then
19548     CC=""
19549   else
19550     case $cross_compiling:$ac_tool_warned in
19551 yes:)
19552 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19553 whose name does not start with the host triplet.  If you think this
19554 configuration is useful to you, please write to autoconf@gnu.org." >&5
19555 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19556 whose name does not start with the host triplet.  If you think this
19557 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19558 ac_tool_warned=yes ;;
19559 esac
19560     CC=$ac_ct_CC
19561   fi
19562 fi
19563
19564
19565 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19566 See \`config.log' for more details." >&5
19567 echo "$as_me: error: no acceptable C compiler found in \$PATH
19568 See \`config.log' for more details." >&2;}
19569    { (exit 1); exit 1; }; }
19570
19571 # Provide some information about the compiler.
19572 echo "$as_me:$LINENO: checking for C compiler version" >&5
19573 ac_compiler=`set X $ac_compile; echo $2`
19574 { (ac_try="$ac_compiler --version >&5"
19575 case "(($ac_try" in
19576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19577   *) ac_try_echo=$ac_try;;
19578 esac
19579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19580   (eval "$ac_compiler --version >&5") 2>&5
19581   ac_status=$?
19582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583   (exit $ac_status); }
19584 { (ac_try="$ac_compiler -v >&5"
19585 case "(($ac_try" in
19586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19587   *) ac_try_echo=$ac_try;;
19588 esac
19589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19590   (eval "$ac_compiler -v >&5") 2>&5
19591   ac_status=$?
19592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593   (exit $ac_status); }
19594 { (ac_try="$ac_compiler -V >&5"
19595 case "(($ac_try" in
19596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19597   *) ac_try_echo=$ac_try;;
19598 esac
19599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19600   (eval "$ac_compiler -V >&5") 2>&5
19601   ac_status=$?
19602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603   (exit $ac_status); }
19604
19605 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19606 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19607 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19608   echo $ECHO_N "(cached) $ECHO_C" >&6
19609 else
19610   cat >conftest.$ac_ext <<_ACEOF
19611 /* confdefs.h.  */
19612 _ACEOF
19613 cat confdefs.h >>conftest.$ac_ext
19614 cat >>conftest.$ac_ext <<_ACEOF
19615 /* end confdefs.h.  */
19616
19617 int
19618 main ()
19619 {
19620 #ifndef __GNUC__
19621        choke me
19622 #endif
19623
19624   ;
19625   return 0;
19626 }
19627 _ACEOF
19628 rm -f conftest.$ac_objext
19629 if { (ac_try="$ac_compile"
19630 case "(($ac_try" in
19631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632   *) ac_try_echo=$ac_try;;
19633 esac
19634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19635   (eval "$ac_compile") 2>conftest.er1
19636   ac_status=$?
19637   grep -v '^ *+' conftest.er1 >conftest.err
19638   rm -f conftest.er1
19639   cat conftest.err >&5
19640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641   (exit $ac_status); } && {
19642          test -z "$ac_c_werror_flag" ||
19643          test ! -s conftest.err
19644        } && test -s conftest.$ac_objext; then
19645   ac_compiler_gnu=yes
19646 else
19647   echo "$as_me: failed program was:" >&5
19648 sed 's/^/| /' conftest.$ac_ext >&5
19649
19650         ac_compiler_gnu=no
19651 fi
19652
19653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19654 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19655
19656 fi
19657 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19658 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19659 GCC=`test $ac_compiler_gnu = yes && echo yes`
19660 ac_test_CFLAGS=${CFLAGS+set}
19661 ac_save_CFLAGS=$CFLAGS
19662 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19663 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19664 if test "${ac_cv_prog_cc_g+set}" = set; then
19665   echo $ECHO_N "(cached) $ECHO_C" >&6
19666 else
19667   ac_save_c_werror_flag=$ac_c_werror_flag
19668    ac_c_werror_flag=yes
19669    ac_cv_prog_cc_g=no
19670    CFLAGS="-g"
19671    cat >conftest.$ac_ext <<_ACEOF
19672 /* confdefs.h.  */
19673 _ACEOF
19674 cat confdefs.h >>conftest.$ac_ext
19675 cat >>conftest.$ac_ext <<_ACEOF
19676 /* end confdefs.h.  */
19677
19678 int
19679 main ()
19680 {
19681
19682   ;
19683   return 0;
19684 }
19685 _ACEOF
19686 rm -f conftest.$ac_objext
19687 if { (ac_try="$ac_compile"
19688 case "(($ac_try" in
19689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19690   *) ac_try_echo=$ac_try;;
19691 esac
19692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19693   (eval "$ac_compile") 2>conftest.er1
19694   ac_status=$?
19695   grep -v '^ *+' conftest.er1 >conftest.err
19696   rm -f conftest.er1
19697   cat conftest.err >&5
19698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699   (exit $ac_status); } && {
19700          test -z "$ac_c_werror_flag" ||
19701          test ! -s conftest.err
19702        } && test -s conftest.$ac_objext; then
19703   ac_cv_prog_cc_g=yes
19704 else
19705   echo "$as_me: failed program was:" >&5
19706 sed 's/^/| /' conftest.$ac_ext >&5
19707
19708         CFLAGS=""
19709       cat >conftest.$ac_ext <<_ACEOF
19710 /* confdefs.h.  */
19711 _ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h.  */
19715
19716 int
19717 main ()
19718 {
19719
19720   ;
19721   return 0;
19722 }
19723 _ACEOF
19724 rm -f conftest.$ac_objext
19725 if { (ac_try="$ac_compile"
19726 case "(($ac_try" in
19727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19728   *) ac_try_echo=$ac_try;;
19729 esac
19730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19731   (eval "$ac_compile") 2>conftest.er1
19732   ac_status=$?
19733   grep -v '^ *+' conftest.er1 >conftest.err
19734   rm -f conftest.er1
19735   cat conftest.err >&5
19736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737   (exit $ac_status); } && {
19738          test -z "$ac_c_werror_flag" ||
19739          test ! -s conftest.err
19740        } && test -s conftest.$ac_objext; then
19741   :
19742 else
19743   echo "$as_me: failed program was:" >&5
19744 sed 's/^/| /' conftest.$ac_ext >&5
19745
19746         ac_c_werror_flag=$ac_save_c_werror_flag
19747          CFLAGS="-g"
19748          cat >conftest.$ac_ext <<_ACEOF
19749 /* confdefs.h.  */
19750 _ACEOF
19751 cat confdefs.h >>conftest.$ac_ext
19752 cat >>conftest.$ac_ext <<_ACEOF
19753 /* end confdefs.h.  */
19754
19755 int
19756 main ()
19757 {
19758
19759   ;
19760   return 0;
19761 }
19762 _ACEOF
19763 rm -f conftest.$ac_objext
19764 if { (ac_try="$ac_compile"
19765 case "(($ac_try" in
19766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19767   *) ac_try_echo=$ac_try;;
19768 esac
19769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19770   (eval "$ac_compile") 2>conftest.er1
19771   ac_status=$?
19772   grep -v '^ *+' conftest.er1 >conftest.err
19773   rm -f conftest.er1
19774   cat conftest.err >&5
19775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776   (exit $ac_status); } && {
19777          test -z "$ac_c_werror_flag" ||
19778          test ! -s conftest.err
19779        } && test -s conftest.$ac_objext; then
19780   ac_cv_prog_cc_g=yes
19781 else
19782   echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19784
19785
19786 fi
19787
19788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19789 fi
19790
19791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19792 fi
19793
19794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19795    ac_c_werror_flag=$ac_save_c_werror_flag
19796 fi
19797 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19798 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19799 if test "$ac_test_CFLAGS" = set; then
19800   CFLAGS=$ac_save_CFLAGS
19801 elif test $ac_cv_prog_cc_g = yes; then
19802   if test "$GCC" = yes; then
19803     CFLAGS="-g -O2"
19804   else
19805     CFLAGS="-g"
19806   fi
19807 else
19808   if test "$GCC" = yes; then
19809     CFLAGS="-O2"
19810   else
19811     CFLAGS=
19812   fi
19813 fi
19814 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19815 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19816 if test "${ac_cv_prog_cc_c89+set}" = set; then
19817   echo $ECHO_N "(cached) $ECHO_C" >&6
19818 else
19819   ac_cv_prog_cc_c89=no
19820 ac_save_CC=$CC
19821 cat >conftest.$ac_ext <<_ACEOF
19822 /* confdefs.h.  */
19823 _ACEOF
19824 cat confdefs.h >>conftest.$ac_ext
19825 cat >>conftest.$ac_ext <<_ACEOF
19826 /* end confdefs.h.  */
19827 #include <stdarg.h>
19828 #include <stdio.h>
19829 #include <sys/types.h>
19830 #include <sys/stat.h>
19831 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19832 struct buf { int x; };
19833 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19834 static char *e (p, i)
19835      char **p;
19836      int i;
19837 {
19838   return p[i];
19839 }
19840 static char *f (char * (*g) (char **, int), char **p, ...)
19841 {
19842   char *s;
19843   va_list v;
19844   va_start (v,p);
19845   s = g (p, va_arg (v,int));
19846   va_end (v);
19847   return s;
19848 }
19849
19850 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19851    function prototypes and stuff, but not '\xHH' hex character constants.
19852    These don't provoke an error unfortunately, instead are silently treated
19853    as 'x'.  The following induces an error, until -std is added to get
19854    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19855    array size at least.  It's necessary to write '\x00'==0 to get something
19856    that's true only with -std.  */
19857 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19858
19859 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19860    inside strings and character constants.  */
19861 #define FOO(x) 'x'
19862 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19863
19864 int test (int i, double x);
19865 struct s1 {int (*f) (int a);};
19866 struct s2 {int (*f) (double a);};
19867 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19868 int argc;
19869 char **argv;
19870 int
19871 main ()
19872 {
19873 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19874   ;
19875   return 0;
19876 }
19877 _ACEOF
19878 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19879         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19880 do
19881   CC="$ac_save_CC $ac_arg"
19882   rm -f conftest.$ac_objext
19883 if { (ac_try="$ac_compile"
19884 case "(($ac_try" in
19885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886   *) ac_try_echo=$ac_try;;
19887 esac
19888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889   (eval "$ac_compile") 2>conftest.er1
19890   ac_status=$?
19891   grep -v '^ *+' conftest.er1 >conftest.err
19892   rm -f conftest.er1
19893   cat conftest.err >&5
19894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895   (exit $ac_status); } && {
19896          test -z "$ac_c_werror_flag" ||
19897          test ! -s conftest.err
19898        } && test -s conftest.$ac_objext; then
19899   ac_cv_prog_cc_c89=$ac_arg
19900 else
19901   echo "$as_me: failed program was:" >&5
19902 sed 's/^/| /' conftest.$ac_ext >&5
19903
19904
19905 fi
19906
19907 rm -f core conftest.err conftest.$ac_objext
19908   test "x$ac_cv_prog_cc_c89" != "xno" && break
19909 done
19910 rm -f conftest.$ac_ext
19911 CC=$ac_save_CC
19912
19913 fi
19914 # AC_CACHE_VAL
19915 case "x$ac_cv_prog_cc_c89" in
19916   x)
19917     { echo "$as_me:$LINENO: result: none needed" >&5
19918 echo "${ECHO_T}none needed" >&6; } ;;
19919   xno)
19920     { echo "$as_me:$LINENO: result: unsupported" >&5
19921 echo "${ECHO_T}unsupported" >&6; } ;;
19922   *)
19923     CC="$CC $ac_cv_prog_cc_c89"
19924     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19925 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19926 esac
19927
19928
19929 ac_ext=c
19930 ac_cpp='$CPP $CPPFLAGS'
19931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19934
19935 depcc="$CC"   am_compiler_list=
19936
19937 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19938 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19939 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19940   echo $ECHO_N "(cached) $ECHO_C" >&6
19941 else
19942   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19943   # We make a subdir and do the tests there.  Otherwise we can end up
19944   # making bogus files that we don't know about and never remove.  For
19945   # instance it was reported that on HP-UX the gcc test will end up
19946   # making a dummy file named `D' -- because `-MD' means `put the output
19947   # in D'.
19948   mkdir conftest.dir
19949   # Copy depcomp to subdir because otherwise we won't find it if we're
19950   # using a relative directory.
19951   cp "$am_depcomp" conftest.dir
19952   cd conftest.dir
19953   # We will build objects and dependencies in a subdirectory because
19954   # it helps to detect inapplicable dependency modes.  For instance
19955   # both Tru64's cc and ICC support -MD to output dependencies as a
19956   # side effect of compilation, but ICC will put the dependencies in
19957   # the current directory while Tru64 will put them in the object
19958   # directory.
19959   mkdir sub
19960
19961   am_cv_CC_dependencies_compiler_type=none
19962   if test "$am_compiler_list" = ""; then
19963      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19964   fi
19965   for depmode in $am_compiler_list; do
19966     # Setup a source with many dependencies, because some compilers
19967     # like to wrap large dependency lists on column 80 (with \), and
19968     # we should not choose a depcomp mode which is confused by this.
19969     #
19970     # We need to recreate these files for each test, as the compiler may
19971     # overwrite some of them when testing with obscure command lines.
19972     # This happens at least with the AIX C compiler.
19973     : > sub/conftest.c
19974     for i in 1 2 3 4 5 6; do
19975       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19976       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19977       # Solaris 8's {/usr,}/bin/sh.
19978       touch sub/conftst$i.h
19979     done
19980     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19981
19982     case $depmode in
19983     nosideeffect)
19984       # after this tag, mechanisms are not by side-effect, so they'll
19985       # only be used when explicitly requested
19986       if test "x$enable_dependency_tracking" = xyes; then
19987         continue
19988       else
19989         break
19990       fi
19991       ;;
19992     none) break ;;
19993     esac
19994     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19995     # mode.  It turns out that the SunPro C++ compiler does not properly
19996     # handle `-M -o', and we need to detect this.
19997     if depmode=$depmode \
19998        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19999        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20000        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20001          >/dev/null 2>conftest.err &&
20002        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20003        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20004        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20005        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20006       # icc doesn't choke on unknown options, it will just issue warnings
20007       # or remarks (even with -Werror).  So we grep stderr for any message
20008       # that says an option was ignored or not supported.
20009       # When given -MP, icc 7.0 and 7.1 complain thusly:
20010       #   icc: Command line warning: ignoring option '-M'; no argument required
20011       # The diagnosis changed in icc 8.0:
20012       #   icc: Command line remark: option '-MP' not supported
20013       if (grep 'ignoring option' conftest.err ||
20014           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20015         am_cv_CC_dependencies_compiler_type=$depmode
20016         break
20017       fi
20018     fi
20019   done
20020
20021   cd ..
20022   rm -rf conftest.dir
20023 else
20024   am_cv_CC_dependencies_compiler_type=none
20025 fi
20026
20027 fi
20028 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20029 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20030 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20031
20032  if
20033   test "x$enable_dependency_tracking" != xno \
20034   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20035   am__fastdepCC_TRUE=
20036   am__fastdepCC_FALSE='#'
20037 else
20038   am__fastdepCC_TRUE='#'
20039   am__fastdepCC_FALSE=
20040 fi
20041
20042
20043 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20044 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
20045 # Just in case
20046 sleep 1
20047 echo timestamp > conftest.file
20048 # Do `set' in a subshell so we don't clobber the current shell's
20049 # arguments.  Must try -L first in case configure is actually a
20050 # symlink; some systems play weird games with the mod time of symlinks
20051 # (eg FreeBSD returns the mod time of the symlink's containing
20052 # directory).
20053 if (
20054    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
20055    if test "$*" = "X"; then
20056       # -L didn't work.
20057       set X `ls -t $srcdir/configure conftest.file`
20058    fi
20059    rm -f conftest.file
20060    if test "$*" != "X $srcdir/configure conftest.file" \
20061       && test "$*" != "X conftest.file $srcdir/configure"; then
20062
20063       # If neither matched, then we have a broken ls.  This can happen
20064       # if, for instance, CONFIG_SHELL is bash and it inherits a
20065       # broken ls alias from the environment.  This has actually
20066       # happened.  Such a system could not be considered "sane".
20067       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
20068 alias in your environment" >&5
20069 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
20070 alias in your environment" >&2;}
20071    { (exit 1); exit 1; }; }
20072    fi
20073
20074    test "$2" = conftest.file
20075    )
20076 then
20077    # Ok.
20078    :
20079 else
20080    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20081 Check your system clock" >&5
20082 echo "$as_me: error: newly created file is older than distributed files!
20083 Check your system clock" >&2;}
20084    { (exit 1); exit 1; }; }
20085 fi
20086 { echo "$as_me:$LINENO: result: yes" >&5
20087 echo "${ECHO_T}yes" >&6; }
20088 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20089 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20090 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20091 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20092   echo $ECHO_N "(cached) $ECHO_C" >&6
20093 else
20094   cat >conftest.make <<\_ACEOF
20095 SHELL = /bin/sh
20096 all:
20097         @echo '@@@%%%=$(MAKE)=@@@%%%'
20098 _ACEOF
20099 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20100 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20101   *@@@%%%=?*=@@@%%%*)
20102     eval ac_cv_prog_make_${ac_make}_set=yes;;
20103   *)
20104     eval ac_cv_prog_make_${ac_make}_set=no;;
20105 esac
20106 rm -f conftest.make
20107 fi
20108 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20109   { echo "$as_me:$LINENO: result: yes" >&5
20110 echo "${ECHO_T}yes" >&6; }
20111   SET_MAKE=
20112 else
20113   { echo "$as_me:$LINENO: result: no" >&5
20114 echo "${ECHO_T}no" >&6; }
20115   SET_MAKE="MAKE=${MAKE-make}"
20116 fi
20117
20118
20119 { echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
20120 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6; }
20121 if test "$cross_compiling" = yes; then
20122   { echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
20123 echo "${ECHO_T}assuming the worse in cross-compilation" >&6; }
20124 else
20125   cat >conftest.$ac_ext <<_ACEOF
20126 /* confdefs.h.  */
20127 _ACEOF
20128 cat confdefs.h >>conftest.$ac_ext
20129 cat >>conftest.$ac_ext <<_ACEOF
20130 /* end confdefs.h.  */
20131 #include <stdio.h>
20132 int
20133 main ()
20134 {
20135 printf("%s",NULL);
20136   ;
20137   return 0;
20138 }
20139 _ACEOF
20140 rm -f conftest$ac_exeext
20141 if { (ac_try="$ac_link"
20142 case "(($ac_try" in
20143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20144   *) ac_try_echo=$ac_try;;
20145 esac
20146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20147   (eval "$ac_link") 2>&5
20148   ac_status=$?
20149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20151   { (case "(($ac_try" in
20152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20153   *) ac_try_echo=$ac_try;;
20154 esac
20155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20156   (eval "$ac_try") 2>&5
20157   ac_status=$?
20158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159   (exit $ac_status); }; }; then
20160
20161 cat >>confdefs.h <<\_ACEOF
20162 #define PRINTF_NULL_WORKING 1
20163 _ACEOF
20164
20165               { echo "$as_me:$LINENO: result: yes" >&5
20166 echo "${ECHO_T}yes" >&6; }
20167 else
20168   echo "$as_me: program exited with status $ac_status" >&5
20169 echo "$as_me: failed program was:" >&5
20170 sed 's/^/| /' conftest.$ac_ext >&5
20171
20172 ( exit $ac_status )
20173 { echo "$as_me:$LINENO: result: no" >&5
20174 echo "${ECHO_T}no" >&6; }
20175 fi
20176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20177 fi
20178
20179
20180
20181
20182     { echo "$as_me:$LINENO: checking for va_copy() function" >&5
20183 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6; }
20184     if test "${ac_cv_va_copy+set}" = set; then
20185   echo $ECHO_N "(cached) $ECHO_C" >&6
20186 else
20187
20188     ac_cv_va_copy=""
20189
20190
20191
20192     if test ".$ac_cv_va_copy" = .; then
20193         if test "$cross_compiling" = yes; then
20194   ac_cv_va_copy="C99"
20195 else
20196   cat >conftest.$ac_ext <<_ACEOF
20197 /* confdefs.h.  */
20198 _ACEOF
20199 cat confdefs.h >>conftest.$ac_ext
20200 cat >>conftest.$ac_ext <<_ACEOF
20201 /* end confdefs.h.  */
20202
20203 #include <stdlib.h>
20204 #include <stdarg.h>
20205 #include <string.h>
20206 #define DO_VA_COPY(d, s) va_copy((d), (s))
20207 void test(char *str, ...)
20208 {
20209     va_list ap, ap2;
20210     int i;
20211     va_start(ap, str);
20212     DO_VA_COPY(ap2, ap);
20213     for (i = 1; i <= 9; i++) {
20214         int k = (int)va_arg(ap, int);
20215         if (k != i)
20216             abort();
20217     }
20218     DO_VA_COPY(ap, ap2);
20219     for (i = 1; i <= 9; i++) {
20220         int k = (int)va_arg(ap, int);
20221         if (k != i)
20222             abort();
20223     }
20224     va_end(ap);
20225 }
20226 int main(int argc, char *argv[])
20227 {
20228     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20229     exit(0);
20230 }
20231
20232 _ACEOF
20233 rm -f conftest$ac_exeext
20234 if { (ac_try="$ac_link"
20235 case "(($ac_try" in
20236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20237   *) ac_try_echo=$ac_try;;
20238 esac
20239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20240   (eval "$ac_link") 2>&5
20241   ac_status=$?
20242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20244   { (case "(($ac_try" in
20245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20246   *) ac_try_echo=$ac_try;;
20247 esac
20248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20249   (eval "$ac_try") 2>&5
20250   ac_status=$?
20251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252   (exit $ac_status); }; }; then
20253   ac_cv_va_copy="C99"
20254 else
20255   echo "$as_me: program exited with status $ac_status" >&5
20256 echo "$as_me: failed program was:" >&5
20257 sed 's/^/| /' conftest.$ac_ext >&5
20258
20259 fi
20260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20261 fi
20262
20263
20264             fi
20265
20266
20267
20268
20269     if test ".$ac_cv_va_copy" = .; then
20270         if test "$cross_compiling" = yes; then
20271   ac_cv_va_copy="GCM"
20272 else
20273   cat >conftest.$ac_ext <<_ACEOF
20274 /* confdefs.h.  */
20275 _ACEOF
20276 cat confdefs.h >>conftest.$ac_ext
20277 cat >>conftest.$ac_ext <<_ACEOF
20278 /* end confdefs.h.  */
20279
20280 #include <stdlib.h>
20281 #include <stdarg.h>
20282 #include <string.h>
20283 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
20284 void test(char *str, ...)
20285 {
20286     va_list ap, ap2;
20287     int i;
20288     va_start(ap, str);
20289     DO_VA_COPY(ap2, ap);
20290     for (i = 1; i <= 9; i++) {
20291         int k = (int)va_arg(ap, int);
20292         if (k != i)
20293             abort();
20294     }
20295     DO_VA_COPY(ap, ap2);
20296     for (i = 1; i <= 9; i++) {
20297         int k = (int)va_arg(ap, int);
20298         if (k != i)
20299             abort();
20300     }
20301     va_end(ap);
20302 }
20303 int main(int argc, char *argv[])
20304 {
20305     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20306     exit(0);
20307 }
20308
20309 _ACEOF
20310 rm -f conftest$ac_exeext
20311 if { (ac_try="$ac_link"
20312 case "(($ac_try" in
20313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20314   *) ac_try_echo=$ac_try;;
20315 esac
20316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20317   (eval "$ac_link") 2>&5
20318   ac_status=$?
20319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20321   { (case "(($ac_try" in
20322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323   *) ac_try_echo=$ac_try;;
20324 esac
20325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326   (eval "$ac_try") 2>&5
20327   ac_status=$?
20328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329   (exit $ac_status); }; }; then
20330   ac_cv_va_copy="GCM"
20331 else
20332   echo "$as_me: program exited with status $ac_status" >&5
20333 echo "$as_me: failed program was:" >&5
20334 sed 's/^/| /' conftest.$ac_ext >&5
20335
20336 fi
20337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20338 fi
20339
20340
20341             fi
20342
20343
20344
20345
20346     if test ".$ac_cv_va_copy" = .; then
20347         if test "$cross_compiling" = yes; then
20348   ac_cv_va_copy="GCH"
20349 else
20350   cat >conftest.$ac_ext <<_ACEOF
20351 /* confdefs.h.  */
20352 _ACEOF
20353 cat confdefs.h >>conftest.$ac_ext
20354 cat >>conftest.$ac_ext <<_ACEOF
20355 /* end confdefs.h.  */
20356
20357 #include <stdlib.h>
20358 #include <stdarg.h>
20359 #include <string.h>
20360 #define DO_VA_COPY(d, s) __va_copy((d), (s))
20361 void test(char *str, ...)
20362 {
20363     va_list ap, ap2;
20364     int i;
20365     va_start(ap, str);
20366     DO_VA_COPY(ap2, ap);
20367     for (i = 1; i <= 9; i++) {
20368         int k = (int)va_arg(ap, int);
20369         if (k != i)
20370             abort();
20371     }
20372     DO_VA_COPY(ap, ap2);
20373     for (i = 1; i <= 9; i++) {
20374         int k = (int)va_arg(ap, int);
20375         if (k != i)
20376             abort();
20377     }
20378     va_end(ap);
20379 }
20380 int main(int argc, char *argv[])
20381 {
20382     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20383     exit(0);
20384 }
20385
20386 _ACEOF
20387 rm -f conftest$ac_exeext
20388 if { (ac_try="$ac_link"
20389 case "(($ac_try" in
20390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20391   *) ac_try_echo=$ac_try;;
20392 esac
20393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20394   (eval "$ac_link") 2>&5
20395   ac_status=$?
20396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20398   { (case "(($ac_try" in
20399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400   *) ac_try_echo=$ac_try;;
20401 esac
20402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20403   (eval "$ac_try") 2>&5
20404   ac_status=$?
20405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406   (exit $ac_status); }; }; then
20407   ac_cv_va_copy="GCH"
20408 else
20409   echo "$as_me: program exited with status $ac_status" >&5
20410 echo "$as_me: failed program was:" >&5
20411 sed 's/^/| /' conftest.$ac_ext >&5
20412
20413 fi
20414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20415 fi
20416
20417
20418             fi
20419
20420
20421
20422
20423     if test ".$ac_cv_va_copy" = .; then
20424         if test "$cross_compiling" = yes; then
20425   ac_cv_va_copy="GCB"
20426 else
20427   cat >conftest.$ac_ext <<_ACEOF
20428 /* confdefs.h.  */
20429 _ACEOF
20430 cat confdefs.h >>conftest.$ac_ext
20431 cat >>conftest.$ac_ext <<_ACEOF
20432 /* end confdefs.h.  */
20433
20434 #include <stdlib.h>
20435 #include <stdarg.h>
20436 #include <string.h>
20437 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
20438 void test(char *str, ...)
20439 {
20440     va_list ap, ap2;
20441     int i;
20442     va_start(ap, str);
20443     DO_VA_COPY(ap2, ap);
20444     for (i = 1; i <= 9; i++) {
20445         int k = (int)va_arg(ap, int);
20446         if (k != i)
20447             abort();
20448     }
20449     DO_VA_COPY(ap, ap2);
20450     for (i = 1; i <= 9; i++) {
20451         int k = (int)va_arg(ap, int);
20452         if (k != i)
20453             abort();
20454     }
20455     va_end(ap);
20456 }
20457 int main(int argc, char *argv[])
20458 {
20459     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20460     exit(0);
20461 }
20462
20463 _ACEOF
20464 rm -f conftest$ac_exeext
20465 if { (ac_try="$ac_link"
20466 case "(($ac_try" in
20467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20468   *) ac_try_echo=$ac_try;;
20469 esac
20470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20471   (eval "$ac_link") 2>&5
20472   ac_status=$?
20473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20475   { (case "(($ac_try" in
20476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20477   *) ac_try_echo=$ac_try;;
20478 esac
20479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20480   (eval "$ac_try") 2>&5
20481   ac_status=$?
20482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483   (exit $ac_status); }; }; then
20484   ac_cv_va_copy="GCB"
20485 else
20486   echo "$as_me: program exited with status $ac_status" >&5
20487 echo "$as_me: failed program was:" >&5
20488 sed 's/^/| /' conftest.$ac_ext >&5
20489
20490 fi
20491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20492 fi
20493
20494
20495             fi
20496
20497
20498
20499
20500     if test ".$ac_cv_va_copy" = .; then
20501         if test "$cross_compiling" = yes; then
20502   ac_cv_va_copy="ASS"
20503 else
20504   cat >conftest.$ac_ext <<_ACEOF
20505 /* confdefs.h.  */
20506 _ACEOF
20507 cat confdefs.h >>conftest.$ac_ext
20508 cat >>conftest.$ac_ext <<_ACEOF
20509 /* end confdefs.h.  */
20510
20511 #include <stdlib.h>
20512 #include <stdarg.h>
20513 #include <string.h>
20514 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
20515 void test(char *str, ...)
20516 {
20517     va_list ap, ap2;
20518     int i;
20519     va_start(ap, str);
20520     DO_VA_COPY(ap2, ap);
20521     for (i = 1; i <= 9; i++) {
20522         int k = (int)va_arg(ap, int);
20523         if (k != i)
20524             abort();
20525     }
20526     DO_VA_COPY(ap, ap2);
20527     for (i = 1; i <= 9; i++) {
20528         int k = (int)va_arg(ap, int);
20529         if (k != i)
20530             abort();
20531     }
20532     va_end(ap);
20533 }
20534 int main(int argc, char *argv[])
20535 {
20536     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20537     exit(0);
20538 }
20539
20540 _ACEOF
20541 rm -f conftest$ac_exeext
20542 if { (ac_try="$ac_link"
20543 case "(($ac_try" in
20544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20545   *) ac_try_echo=$ac_try;;
20546 esac
20547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20548   (eval "$ac_link") 2>&5
20549   ac_status=$?
20550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20552   { (case "(($ac_try" in
20553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20554   *) ac_try_echo=$ac_try;;
20555 esac
20556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20557   (eval "$ac_try") 2>&5
20558   ac_status=$?
20559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560   (exit $ac_status); }; }; then
20561   ac_cv_va_copy="ASS"
20562 else
20563   echo "$as_me: program exited with status $ac_status" >&5
20564 echo "$as_me: failed program was:" >&5
20565 sed 's/^/| /' conftest.$ac_ext >&5
20566
20567 fi
20568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20569 fi
20570
20571
20572             fi
20573
20574
20575
20576
20577     if test ".$ac_cv_va_copy" = .; then
20578         if test "$cross_compiling" = yes; then
20579   ac_cv_va_copy="ASP"
20580 else
20581   cat >conftest.$ac_ext <<_ACEOF
20582 /* confdefs.h.  */
20583 _ACEOF
20584 cat confdefs.h >>conftest.$ac_ext
20585 cat >>conftest.$ac_ext <<_ACEOF
20586 /* end confdefs.h.  */
20587
20588 #include <stdlib.h>
20589 #include <stdarg.h>
20590 #include <string.h>
20591 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
20592 void test(char *str, ...)
20593 {
20594     va_list ap, ap2;
20595     int i;
20596     va_start(ap, str);
20597     DO_VA_COPY(ap2, ap);
20598     for (i = 1; i <= 9; i++) {
20599         int k = (int)va_arg(ap, int);
20600         if (k != i)
20601             abort();
20602     }
20603     DO_VA_COPY(ap, ap2);
20604     for (i = 1; i <= 9; i++) {
20605         int k = (int)va_arg(ap, int);
20606         if (k != i)
20607             abort();
20608     }
20609     va_end(ap);
20610 }
20611 int main(int argc, char *argv[])
20612 {
20613     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20614     exit(0);
20615 }
20616
20617 _ACEOF
20618 rm -f conftest$ac_exeext
20619 if { (ac_try="$ac_link"
20620 case "(($ac_try" in
20621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20622   *) ac_try_echo=$ac_try;;
20623 esac
20624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20625   (eval "$ac_link") 2>&5
20626   ac_status=$?
20627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20629   { (case "(($ac_try" in
20630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20631   *) ac_try_echo=$ac_try;;
20632 esac
20633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20634   (eval "$ac_try") 2>&5
20635   ac_status=$?
20636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637   (exit $ac_status); }; }; then
20638   ac_cv_va_copy="ASP"
20639 else
20640   echo "$as_me: program exited with status $ac_status" >&5
20641 echo "$as_me: failed program was:" >&5
20642 sed 's/^/| /' conftest.$ac_ext >&5
20643
20644 fi
20645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20646 fi
20647
20648
20649             fi
20650
20651
20652
20653
20654     if test ".$ac_cv_va_copy" = .; then
20655         if test "$cross_compiling" = yes; then
20656   ac_cv_va_copy="CPS"
20657 else
20658   cat >conftest.$ac_ext <<_ACEOF
20659 /* confdefs.h.  */
20660 _ACEOF
20661 cat confdefs.h >>conftest.$ac_ext
20662 cat >>conftest.$ac_ext <<_ACEOF
20663 /* end confdefs.h.  */
20664
20665 #include <stdlib.h>
20666 #include <stdarg.h>
20667 #include <string.h>
20668 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
20669 void test(char *str, ...)
20670 {
20671     va_list ap, ap2;
20672     int i;
20673     va_start(ap, str);
20674     DO_VA_COPY(ap2, ap);
20675     for (i = 1; i <= 9; i++) {
20676         int k = (int)va_arg(ap, int);
20677         if (k != i)
20678             abort();
20679     }
20680     DO_VA_COPY(ap, ap2);
20681     for (i = 1; i <= 9; i++) {
20682         int k = (int)va_arg(ap, int);
20683         if (k != i)
20684             abort();
20685     }
20686     va_end(ap);
20687 }
20688 int main(int argc, char *argv[])
20689 {
20690     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20691     exit(0);
20692 }
20693
20694 _ACEOF
20695 rm -f conftest$ac_exeext
20696 if { (ac_try="$ac_link"
20697 case "(($ac_try" in
20698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20699   *) ac_try_echo=$ac_try;;
20700 esac
20701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20702   (eval "$ac_link") 2>&5
20703   ac_status=$?
20704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20706   { (case "(($ac_try" in
20707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20708   *) ac_try_echo=$ac_try;;
20709 esac
20710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20711   (eval "$ac_try") 2>&5
20712   ac_status=$?
20713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714   (exit $ac_status); }; }; then
20715   ac_cv_va_copy="CPS"
20716 else
20717   echo "$as_me: program exited with status $ac_status" >&5
20718 echo "$as_me: failed program was:" >&5
20719 sed 's/^/| /' conftest.$ac_ext >&5
20720
20721 fi
20722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20723 fi
20724
20725
20726             fi
20727
20728
20729
20730
20731     if test ".$ac_cv_va_copy" = .; then
20732         if test "$cross_compiling" = yes; then
20733   ac_cv_va_copy="CPP"
20734 else
20735   cat >conftest.$ac_ext <<_ACEOF
20736 /* confdefs.h.  */
20737 _ACEOF
20738 cat confdefs.h >>conftest.$ac_ext
20739 cat >>conftest.$ac_ext <<_ACEOF
20740 /* end confdefs.h.  */
20741
20742 #include <stdlib.h>
20743 #include <stdarg.h>
20744 #include <string.h>
20745 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
20746 void test(char *str, ...)
20747 {
20748     va_list ap, ap2;
20749     int i;
20750     va_start(ap, str);
20751     DO_VA_COPY(ap2, ap);
20752     for (i = 1; i <= 9; i++) {
20753         int k = (int)va_arg(ap, int);
20754         if (k != i)
20755             abort();
20756     }
20757     DO_VA_COPY(ap, ap2);
20758     for (i = 1; i <= 9; i++) {
20759         int k = (int)va_arg(ap, int);
20760         if (k != i)
20761             abort();
20762     }
20763     va_end(ap);
20764 }
20765 int main(int argc, char *argv[])
20766 {
20767     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20768     exit(0);
20769 }
20770
20771 _ACEOF
20772 rm -f conftest$ac_exeext
20773 if { (ac_try="$ac_link"
20774 case "(($ac_try" in
20775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20776   *) ac_try_echo=$ac_try;;
20777 esac
20778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20779   (eval "$ac_link") 2>&5
20780   ac_status=$?
20781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20783   { (case "(($ac_try" in
20784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20785   *) ac_try_echo=$ac_try;;
20786 esac
20787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20788   (eval "$ac_try") 2>&5
20789   ac_status=$?
20790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791   (exit $ac_status); }; }; then
20792   ac_cv_va_copy="CPP"
20793 else
20794   echo "$as_me: program exited with status $ac_status" >&5
20795 echo "$as_me: failed program was:" >&5
20796 sed 's/^/| /' conftest.$ac_ext >&5
20797
20798 fi
20799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20800 fi
20801
20802
20803             fi
20804
20805     if test ".$ac_cv_va_copy" = .; then
20806         { { echo "$as_me:$LINENO: error: no working implementation found" >&5
20807 echo "$as_me: error: no working implementation found" >&2;}
20808    { (exit 1); exit 1; }; }
20809     fi
20810
20811 fi
20812
20813     if test ".$ac_cv_va_copy" = ".C99"; then
20814
20815 cat >>confdefs.h <<\_ACEOF
20816 #define HAVE_VA_COPY 1
20817 _ACEOF
20818
20819   fi
20820
20821 cat >>confdefs.h <<_ACEOF
20822 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
20823 _ACEOF
20824
20825
20826
20827     if test ".$ac_cv_va_copy" = ".C99"; then
20828       { echo "$as_me:$LINENO: result: yes" >&5
20829 echo "${ECHO_T}yes" >&6; }
20830   else
20831       { echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
20832 echo "${ECHO_T}no (using fallback implementation)" >&6; }
20833   fi
20834
20835
20836 # Checks for header files.
20837 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20838 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20839 if test "${ac_cv_header_stdc+set}" = set; then
20840   echo $ECHO_N "(cached) $ECHO_C" >&6
20841 else
20842   cat >conftest.$ac_ext <<_ACEOF
20843 /* confdefs.h.  */
20844 _ACEOF
20845 cat confdefs.h >>conftest.$ac_ext
20846 cat >>conftest.$ac_ext <<_ACEOF
20847 /* end confdefs.h.  */
20848 #include <stdlib.h>
20849 #include <stdarg.h>
20850 #include <string.h>
20851 #include <float.h>
20852
20853 int
20854 main ()
20855 {
20856
20857   ;
20858   return 0;
20859 }
20860 _ACEOF
20861 rm -f conftest.$ac_objext
20862 if { (ac_try="$ac_compile"
20863 case "(($ac_try" in
20864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20865   *) ac_try_echo=$ac_try;;
20866 esac
20867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20868   (eval "$ac_compile") 2>conftest.er1
20869   ac_status=$?
20870   grep -v '^ *+' conftest.er1 >conftest.err
20871   rm -f conftest.er1
20872   cat conftest.err >&5
20873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874   (exit $ac_status); } && {
20875          test -z "$ac_c_werror_flag" ||
20876          test ! -s conftest.err
20877        } && test -s conftest.$ac_objext; then
20878   ac_cv_header_stdc=yes
20879 else
20880   echo "$as_me: failed program was:" >&5
20881 sed 's/^/| /' conftest.$ac_ext >&5
20882
20883         ac_cv_header_stdc=no
20884 fi
20885
20886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20887
20888 if test $ac_cv_header_stdc = yes; then
20889   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20890   cat >conftest.$ac_ext <<_ACEOF
20891 /* confdefs.h.  */
20892 _ACEOF
20893 cat confdefs.h >>conftest.$ac_ext
20894 cat >>conftest.$ac_ext <<_ACEOF
20895 /* end confdefs.h.  */
20896 #include <string.h>
20897
20898 _ACEOF
20899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20900   $EGREP "memchr" >/dev/null 2>&1; then
20901   :
20902 else
20903   ac_cv_header_stdc=no
20904 fi
20905 rm -f conftest*
20906
20907 fi
20908
20909 if test $ac_cv_header_stdc = yes; then
20910   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20911   cat >conftest.$ac_ext <<_ACEOF
20912 /* confdefs.h.  */
20913 _ACEOF
20914 cat confdefs.h >>conftest.$ac_ext
20915 cat >>conftest.$ac_ext <<_ACEOF
20916 /* end confdefs.h.  */
20917 #include <stdlib.h>
20918
20919 _ACEOF
20920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20921   $EGREP "free" >/dev/null 2>&1; then
20922   :
20923 else
20924   ac_cv_header_stdc=no
20925 fi
20926 rm -f conftest*
20927
20928 fi
20929
20930 if test $ac_cv_header_stdc = yes; then
20931   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20932   if test "$cross_compiling" = yes; then
20933   :
20934 else
20935   cat >conftest.$ac_ext <<_ACEOF
20936 /* confdefs.h.  */
20937 _ACEOF
20938 cat confdefs.h >>conftest.$ac_ext
20939 cat >>conftest.$ac_ext <<_ACEOF
20940 /* end confdefs.h.  */
20941 #include <ctype.h>
20942 #include <stdlib.h>
20943 #if ((' ' & 0x0FF) == 0x020)
20944 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20945 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20946 #else
20947 # define ISLOWER(c) \
20948                    (('a' <= (c) && (c) <= 'i') \
20949                      || ('j' <= (c) && (c) <= 'r') \
20950                      || ('s' <= (c) && (c) <= 'z'))
20951 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20952 #endif
20953
20954 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20955 int
20956 main ()
20957 {
20958   int i;
20959   for (i = 0; i < 256; i++)
20960     if (XOR (islower (i), ISLOWER (i))
20961         || toupper (i) != TOUPPER (i))
20962       return 2;
20963   return 0;
20964 }
20965 _ACEOF
20966 rm -f conftest$ac_exeext
20967 if { (ac_try="$ac_link"
20968 case "(($ac_try" in
20969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20970   *) ac_try_echo=$ac_try;;
20971 esac
20972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20973   (eval "$ac_link") 2>&5
20974   ac_status=$?
20975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20977   { (case "(($ac_try" in
20978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979   *) ac_try_echo=$ac_try;;
20980 esac
20981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20982   (eval "$ac_try") 2>&5
20983   ac_status=$?
20984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20985   (exit $ac_status); }; }; then
20986   :
20987 else
20988   echo "$as_me: program exited with status $ac_status" >&5
20989 echo "$as_me: failed program was:" >&5
20990 sed 's/^/| /' conftest.$ac_ext >&5
20991
20992 ( exit $ac_status )
20993 ac_cv_header_stdc=no
20994 fi
20995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20996 fi
20997
20998
20999 fi
21000 fi
21001 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21002 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21003 if test $ac_cv_header_stdc = yes; then
21004
21005 cat >>confdefs.h <<\_ACEOF
21006 #define STDC_HEADERS 1
21007 _ACEOF
21008
21009 fi
21010
21011 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21012 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21013 if test "${ac_cv_header_time+set}" = set; then
21014   echo $ECHO_N "(cached) $ECHO_C" >&6
21015 else
21016   cat >conftest.$ac_ext <<_ACEOF
21017 /* confdefs.h.  */
21018 _ACEOF
21019 cat confdefs.h >>conftest.$ac_ext
21020 cat >>conftest.$ac_ext <<_ACEOF
21021 /* end confdefs.h.  */
21022 #include <sys/types.h>
21023 #include <sys/time.h>
21024 #include <time.h>
21025
21026 int
21027 main ()
21028 {
21029 if ((struct tm *) 0)
21030 return 0;
21031   ;
21032   return 0;
21033 }
21034 _ACEOF
21035 rm -f conftest.$ac_objext
21036 if { (ac_try="$ac_compile"
21037 case "(($ac_try" in
21038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21039   *) ac_try_echo=$ac_try;;
21040 esac
21041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21042   (eval "$ac_compile") 2>conftest.er1
21043   ac_status=$?
21044   grep -v '^ *+' conftest.er1 >conftest.err
21045   rm -f conftest.er1
21046   cat conftest.err >&5
21047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048   (exit $ac_status); } && {
21049          test -z "$ac_c_werror_flag" ||
21050          test ! -s conftest.err
21051        } && test -s conftest.$ac_objext; then
21052   ac_cv_header_time=yes
21053 else
21054   echo "$as_me: failed program was:" >&5
21055 sed 's/^/| /' conftest.$ac_ext >&5
21056
21057         ac_cv_header_time=no
21058 fi
21059
21060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21061 fi
21062 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21063 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21064 if test $ac_cv_header_time = yes; then
21065
21066 cat >>confdefs.h <<\_ACEOF
21067 #define TIME_WITH_SYS_TIME 1
21068 _ACEOF
21069
21070 fi
21071
21072
21073
21074
21075
21076
21077
21078
21079
21080
21081
21082 for ac_header in sys/socket.h \
21083                   sys/stat.h \
21084                   windows.h winsock.h winsock2.h \
21085                   sys/time.h \
21086                   errno.h unistd.h \
21087                   execinfo.h\
21088                   signal.h
21089 do
21090 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21092   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21095   echo $ECHO_N "(cached) $ECHO_C" >&6
21096 fi
21097 ac_res=`eval echo '${'$as_ac_Header'}'`
21098                { echo "$as_me:$LINENO: result: $ac_res" >&5
21099 echo "${ECHO_T}$ac_res" >&6; }
21100 else
21101   # Is the header compilable?
21102 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21104 cat >conftest.$ac_ext <<_ACEOF
21105 /* confdefs.h.  */
21106 _ACEOF
21107 cat confdefs.h >>conftest.$ac_ext
21108 cat >>conftest.$ac_ext <<_ACEOF
21109 /* end confdefs.h.  */
21110 $ac_includes_default
21111 #include <$ac_header>
21112 _ACEOF
21113 rm -f conftest.$ac_objext
21114 if { (ac_try="$ac_compile"
21115 case "(($ac_try" in
21116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21117   *) ac_try_echo=$ac_try;;
21118 esac
21119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21120   (eval "$ac_compile") 2>conftest.er1
21121   ac_status=$?
21122   grep -v '^ *+' conftest.er1 >conftest.err
21123   rm -f conftest.er1
21124   cat conftest.err >&5
21125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126   (exit $ac_status); } && {
21127          test -z "$ac_c_werror_flag" ||
21128          test ! -s conftest.err
21129        } && test -s conftest.$ac_objext; then
21130   ac_header_compiler=yes
21131 else
21132   echo "$as_me: failed program was:" >&5
21133 sed 's/^/| /' conftest.$ac_ext >&5
21134
21135         ac_header_compiler=no
21136 fi
21137
21138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21139 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21140 echo "${ECHO_T}$ac_header_compiler" >&6; }
21141
21142 # Is the header present?
21143 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21144 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21145 cat >conftest.$ac_ext <<_ACEOF
21146 /* confdefs.h.  */
21147 _ACEOF
21148 cat confdefs.h >>conftest.$ac_ext
21149 cat >>conftest.$ac_ext <<_ACEOF
21150 /* end confdefs.h.  */
21151 #include <$ac_header>
21152 _ACEOF
21153 if { (ac_try="$ac_cpp conftest.$ac_ext"
21154 case "(($ac_try" in
21155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21156   *) ac_try_echo=$ac_try;;
21157 esac
21158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21159   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21160   ac_status=$?
21161   grep -v '^ *+' conftest.er1 >conftest.err
21162   rm -f conftest.er1
21163   cat conftest.err >&5
21164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165   (exit $ac_status); } >/dev/null && {
21166          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21167          test ! -s conftest.err
21168        }; then
21169   ac_header_preproc=yes
21170 else
21171   echo "$as_me: failed program was:" >&5
21172 sed 's/^/| /' conftest.$ac_ext >&5
21173
21174   ac_header_preproc=no
21175 fi
21176
21177 rm -f conftest.err conftest.$ac_ext
21178 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21179 echo "${ECHO_T}$ac_header_preproc" >&6; }
21180
21181 # So?  What about this header?
21182 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21183   yes:no: )
21184     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21185 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21186     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21187 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21188     ac_header_preproc=yes
21189     ;;
21190   no:yes:* )
21191     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21192 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21193     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21194 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21195     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21196 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21197     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21198 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21199     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21201     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21202 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21203     ( cat <<\_ASBOX
21204 ## -------------------------------------------------- ##
21205 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
21206 ## -------------------------------------------------- ##
21207 _ASBOX
21208      ) | sed "s/^/$as_me: WARNING:     /" >&2
21209     ;;
21210 esac
21211 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21214   echo $ECHO_N "(cached) $ECHO_C" >&6
21215 else
21216   eval "$as_ac_Header=\$ac_header_preproc"
21217 fi
21218 ac_res=`eval echo '${'$as_ac_Header'}'`
21219                { echo "$as_me:$LINENO: result: $ac_res" >&5
21220 echo "${ECHO_T}$ac_res" >&6; }
21221
21222 fi
21223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21224   cat >>confdefs.h <<_ACEOF
21225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21226 _ACEOF
21227
21228 fi
21229
21230 done
21231
21232
21233
21234
21235
21236
21237
21238
21239
21240 for ac_func in gettimeofday usleep \
21241                 getdtablesize \
21242                 sysconf\
21243                 readv\
21244                 popen\
21245                 signal\
21246                 getline
21247 do
21248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21249 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21251 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21252   echo $ECHO_N "(cached) $ECHO_C" >&6
21253 else
21254   cat >conftest.$ac_ext <<_ACEOF
21255 /* confdefs.h.  */
21256 _ACEOF
21257 cat confdefs.h >>conftest.$ac_ext
21258 cat >>conftest.$ac_ext <<_ACEOF
21259 /* end confdefs.h.  */
21260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21261    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21262 #define $ac_func innocuous_$ac_func
21263
21264 /* System header to define __stub macros and hopefully few prototypes,
21265     which can conflict with char $ac_func (); below.
21266     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21267     <limits.h> exists even on freestanding compilers.  */
21268
21269 #ifdef __STDC__
21270 # include <limits.h>
21271 #else
21272 # include <assert.h>
21273 #endif
21274
21275 #undef $ac_func
21276
21277 /* Override any GCC internal prototype to avoid an error.
21278    Use char because int might match the return type of a GCC
21279    builtin and then its argument prototype would still apply.  */
21280 #ifdef __cplusplus
21281 extern "C"
21282 #endif
21283 char $ac_func ();
21284 /* The GNU C library defines this for functions which it implements
21285     to always fail with ENOSYS.  Some functions are actually named
21286     something starting with __ and the normal name is an alias.  */
21287 #if defined __stub_$ac_func || defined __stub___$ac_func
21288 choke me
21289 #endif
21290
21291 int
21292 main ()
21293 {
21294 return $ac_func ();
21295   ;
21296   return 0;
21297 }
21298 _ACEOF
21299 rm -f conftest.$ac_objext conftest$ac_exeext
21300 if { (ac_try="$ac_link"
21301 case "(($ac_try" in
21302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21303   *) ac_try_echo=$ac_try;;
21304 esac
21305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21306   (eval "$ac_link") 2>conftest.er1
21307   ac_status=$?
21308   grep -v '^ *+' conftest.er1 >conftest.err
21309   rm -f conftest.er1
21310   cat conftest.err >&5
21311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312   (exit $ac_status); } && {
21313          test -z "$ac_c_werror_flag" ||
21314          test ! -s conftest.err
21315        } && test -s conftest$ac_exeext &&
21316        $as_test_x conftest$ac_exeext; then
21317   eval "$as_ac_var=yes"
21318 else
21319   echo "$as_me: failed program was:" >&5
21320 sed 's/^/| /' conftest.$ac_ext >&5
21321
21322         eval "$as_ac_var=no"
21323 fi
21324
21325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21326       conftest$ac_exeext conftest.$ac_ext
21327 fi
21328 ac_res=`eval echo '${'$as_ac_var'}'`
21329                { echo "$as_me:$LINENO: result: $ac_res" >&5
21330 echo "${ECHO_T}$ac_res" >&6; }
21331 if test `eval echo '${'$as_ac_var'}'` = yes; then
21332   cat >>confdefs.h <<_ACEOF
21333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21334 _ACEOF
21335
21336 fi
21337 done
21338
21339
21340 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
21341
21342
21343 for ac_func in snprintf vsnprintf
21344 do
21345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21346 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21348 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21349   echo $ECHO_N "(cached) $ECHO_C" >&6
21350 else
21351   cat >conftest.$ac_ext <<_ACEOF
21352 /* confdefs.h.  */
21353 _ACEOF
21354 cat confdefs.h >>conftest.$ac_ext
21355 cat >>conftest.$ac_ext <<_ACEOF
21356 /* end confdefs.h.  */
21357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21358    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21359 #define $ac_func innocuous_$ac_func
21360
21361 /* System header to define __stub macros and hopefully few prototypes,
21362     which can conflict with char $ac_func (); below.
21363     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21364     <limits.h> exists even on freestanding compilers.  */
21365
21366 #ifdef __STDC__
21367 # include <limits.h>
21368 #else
21369 # include <assert.h>
21370 #endif
21371
21372 #undef $ac_func
21373
21374 /* Override any GCC internal prototype to avoid an error.
21375    Use char because int might match the return type of a GCC
21376    builtin and then its argument prototype would still apply.  */
21377 #ifdef __cplusplus
21378 extern "C"
21379 #endif
21380 char $ac_func ();
21381 /* The GNU C library defines this for functions which it implements
21382     to always fail with ENOSYS.  Some functions are actually named
21383     something starting with __ and the normal name is an alias.  */
21384 #if defined __stub_$ac_func || defined __stub___$ac_func
21385 choke me
21386 #endif
21387
21388 int
21389 main ()
21390 {
21391 return $ac_func ();
21392   ;
21393   return 0;
21394 }
21395 _ACEOF
21396 rm -f conftest.$ac_objext conftest$ac_exeext
21397 if { (ac_try="$ac_link"
21398 case "(($ac_try" in
21399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21400   *) ac_try_echo=$ac_try;;
21401 esac
21402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21403   (eval "$ac_link") 2>conftest.er1
21404   ac_status=$?
21405   grep -v '^ *+' conftest.er1 >conftest.err
21406   rm -f conftest.er1
21407   cat conftest.err >&5
21408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409   (exit $ac_status); } && {
21410          test -z "$ac_c_werror_flag" ||
21411          test ! -s conftest.err
21412        } && test -s conftest$ac_exeext &&
21413        $as_test_x conftest$ac_exeext; then
21414   eval "$as_ac_var=yes"
21415 else
21416   echo "$as_me: failed program was:" >&5
21417 sed 's/^/| /' conftest.$ac_ext >&5
21418
21419         eval "$as_ac_var=no"
21420 fi
21421
21422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21423       conftest$ac_exeext conftest.$ac_ext
21424 fi
21425 ac_res=`eval echo '${'$as_ac_var'}'`
21426                { echo "$as_me:$LINENO: result: $ac_res" >&5
21427 echo "${ECHO_T}$ac_res" >&6; }
21428 if test `eval echo '${'$as_ac_var'}'` = yes; then
21429   cat >>confdefs.h <<_ACEOF
21430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21431 _ACEOF
21432
21433 fi
21434 done
21435
21436 { echo "$as_me:$LINENO: checking for working snprintf" >&5
21437 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
21438 if test "${ac_cv_have_working_snprintf+set}" = set; then
21439   echo $ECHO_N "(cached) $ECHO_C" >&6
21440 else
21441   if test "$cross_compiling" = yes; then
21442   ac_cv_have_working_snprintf=cross
21443 else
21444   cat >conftest.$ac_ext <<_ACEOF
21445 /* confdefs.h.  */
21446 _ACEOF
21447 cat confdefs.h >>conftest.$ac_ext
21448 cat >>conftest.$ac_ext <<_ACEOF
21449 /* end confdefs.h.  */
21450 #include <stdio.h>
21451
21452 int main(void)
21453 {
21454     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21455     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21456     int i;
21457     i = snprintf (bufs, 2, "%s", "111");
21458     if (strcmp (bufs, "1")) exit (1);
21459     if (i != 3) exit (1);
21460     i = snprintf (bufd, 2, "%d", 111);
21461     if (strcmp (bufd, "1")) exit (1);
21462     if (i != 3) exit (1);
21463     exit(0);
21464 }
21465 _ACEOF
21466 rm -f conftest$ac_exeext
21467 if { (ac_try="$ac_link"
21468 case "(($ac_try" in
21469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21470   *) ac_try_echo=$ac_try;;
21471 esac
21472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21473   (eval "$ac_link") 2>&5
21474   ac_status=$?
21475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21477   { (case "(($ac_try" in
21478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21479   *) ac_try_echo=$ac_try;;
21480 esac
21481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21482   (eval "$ac_try") 2>&5
21483   ac_status=$?
21484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485   (exit $ac_status); }; }; then
21486   ac_cv_have_working_snprintf=yes
21487 else
21488   echo "$as_me: program exited with status $ac_status" >&5
21489 echo "$as_me: failed program was:" >&5
21490 sed 's/^/| /' conftest.$ac_ext >&5
21491
21492 ( exit $ac_status )
21493 ac_cv_have_working_snprintf=no
21494 fi
21495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21496 fi
21497
21498
21499 fi
21500
21501 { echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
21502 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6; }
21503 { echo "$as_me:$LINENO: checking for working vsnprintf" >&5
21504 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
21505 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
21506   echo $ECHO_N "(cached) $ECHO_C" >&6
21507 else
21508   if test "$cross_compiling" = yes; then
21509   ac_cv_have_working_vsnprintf=cross
21510 else
21511   cat >conftest.$ac_ext <<_ACEOF
21512 /* confdefs.h.  */
21513 _ACEOF
21514 cat confdefs.h >>conftest.$ac_ext
21515 cat >>conftest.$ac_ext <<_ACEOF
21516 /* end confdefs.h.  */
21517 #include <stdio.h>
21518 #include <stdarg.h>
21519
21520 int my_vsnprintf (char *buf, const char *tmpl, ...)
21521 {
21522     int i;
21523     va_list args;
21524     va_start (args, tmpl);
21525     i = vsnprintf (buf, 2, tmpl, args);
21526     va_end (args);
21527     return i;
21528 }
21529
21530 int main(void)
21531 {
21532     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21533     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21534     int i;
21535     i = my_vsnprintf (bufs, "%s", "111");
21536     if (strcmp (bufs, "1")) exit (1);
21537     if (i != 3) exit (1);
21538     i = my_vsnprintf (bufd, "%d", 111);
21539     if (strcmp (bufd, "1")) exit (1);
21540     if (i != 3) exit (1);
21541     exit(0);
21542 }
21543 _ACEOF
21544 rm -f conftest$ac_exeext
21545 if { (ac_try="$ac_link"
21546 case "(($ac_try" in
21547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21548   *) ac_try_echo=$ac_try;;
21549 esac
21550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21551   (eval "$ac_link") 2>&5
21552   ac_status=$?
21553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21555   { (case "(($ac_try" in
21556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21557   *) ac_try_echo=$ac_try;;
21558 esac
21559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21560   (eval "$ac_try") 2>&5
21561   ac_status=$?
21562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563   (exit $ac_status); }; }; then
21564   ac_cv_have_working_vsnprintf=yes
21565 else
21566   echo "$as_me: program exited with status $ac_status" >&5
21567 echo "$as_me: failed program was:" >&5
21568 sed 's/^/| /' conftest.$ac_ext >&5
21569
21570 ( exit $ac_status )
21571 ac_cv_have_working_vsnprintf=no
21572 fi
21573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21574 fi
21575
21576
21577 fi
21578
21579 { echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
21580 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6; }
21581 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
21582   case " $LIBOBJS " in
21583   *" snprintf.$ac_objext "* ) ;;
21584   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
21585  ;;
21586 esac
21587
21588   { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
21589 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
21590
21591 cat >>confdefs.h <<\_ACEOF
21592 #define PREFER_PORTABLE_SNPRINTF 1
21593 _ACEOF
21594
21595 fi
21596 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
21597 { echo "$as_me:$LINENO: checking for asprintf" >&5
21598 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6; }
21599 if test "${ac_cv_func_asprintf+set}" = set; then
21600   echo $ECHO_N "(cached) $ECHO_C" >&6
21601 else
21602   cat >conftest.$ac_ext <<_ACEOF
21603 /* confdefs.h.  */
21604 _ACEOF
21605 cat confdefs.h >>conftest.$ac_ext
21606 cat >>conftest.$ac_ext <<_ACEOF
21607 /* end confdefs.h.  */
21608 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
21609    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21610 #define asprintf innocuous_asprintf
21611
21612 /* System header to define __stub macros and hopefully few prototypes,
21613     which can conflict with char asprintf (); below.
21614     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21615     <limits.h> exists even on freestanding compilers.  */
21616
21617 #ifdef __STDC__
21618 # include <limits.h>
21619 #else
21620 # include <assert.h>
21621 #endif
21622
21623 #undef asprintf
21624
21625 /* Override any GCC internal prototype to avoid an error.
21626    Use char because int might match the return type of a GCC
21627    builtin and then its argument prototype would still apply.  */
21628 #ifdef __cplusplus
21629 extern "C"
21630 #endif
21631 char asprintf ();
21632 /* The GNU C library defines this for functions which it implements
21633     to always fail with ENOSYS.  Some functions are actually named
21634     something starting with __ and the normal name is an alias.  */
21635 #if defined __stub_asprintf || defined __stub___asprintf
21636 choke me
21637 #endif
21638
21639 int
21640 main ()
21641 {
21642 return asprintf ();
21643   ;
21644   return 0;
21645 }
21646 _ACEOF
21647 rm -f conftest.$ac_objext conftest$ac_exeext
21648 if { (ac_try="$ac_link"
21649 case "(($ac_try" in
21650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21651   *) ac_try_echo=$ac_try;;
21652 esac
21653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21654   (eval "$ac_link") 2>conftest.er1
21655   ac_status=$?
21656   grep -v '^ *+' conftest.er1 >conftest.err
21657   rm -f conftest.er1
21658   cat conftest.err >&5
21659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660   (exit $ac_status); } && {
21661          test -z "$ac_c_werror_flag" ||
21662          test ! -s conftest.err
21663        } && test -s conftest$ac_exeext &&
21664        $as_test_x conftest$ac_exeext; then
21665   ac_cv_func_asprintf=yes
21666 else
21667   echo "$as_me: failed program was:" >&5
21668 sed 's/^/| /' conftest.$ac_ext >&5
21669
21670         ac_cv_func_asprintf=no
21671 fi
21672
21673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21674       conftest$ac_exeext conftest.$ac_ext
21675 fi
21676 { echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
21677 echo "${ECHO_T}$ac_cv_func_asprintf" >&6; }
21678 if test $ac_cv_func_asprintf = yes; then
21679   :
21680 else
21681
21682 cat >>confdefs.h <<\_ACEOF
21683 #define NEED_ASPRINTF 1
21684 _ACEOF
21685
21686 fi
21687
21688 { echo "$as_me:$LINENO: checking for vasprintf" >&5
21689 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6; }
21690 if test "${ac_cv_func_vasprintf+set}" = set; then
21691   echo $ECHO_N "(cached) $ECHO_C" >&6
21692 else
21693   cat >conftest.$ac_ext <<_ACEOF
21694 /* confdefs.h.  */
21695 _ACEOF
21696 cat confdefs.h >>conftest.$ac_ext
21697 cat >>conftest.$ac_ext <<_ACEOF
21698 /* end confdefs.h.  */
21699 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
21700    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21701 #define vasprintf innocuous_vasprintf
21702
21703 /* System header to define __stub macros and hopefully few prototypes,
21704     which can conflict with char vasprintf (); below.
21705     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21706     <limits.h> exists even on freestanding compilers.  */
21707
21708 #ifdef __STDC__
21709 # include <limits.h>
21710 #else
21711 # include <assert.h>
21712 #endif
21713
21714 #undef vasprintf
21715
21716 /* Override any GCC internal prototype to avoid an error.
21717    Use char because int might match the return type of a GCC
21718    builtin and then its argument prototype would still apply.  */
21719 #ifdef __cplusplus
21720 extern "C"
21721 #endif
21722 char vasprintf ();
21723 /* The GNU C library defines this for functions which it implements
21724     to always fail with ENOSYS.  Some functions are actually named
21725     something starting with __ and the normal name is an alias.  */
21726 #if defined __stub_vasprintf || defined __stub___vasprintf
21727 choke me
21728 #endif
21729
21730 int
21731 main ()
21732 {
21733 return vasprintf ();
21734   ;
21735   return 0;
21736 }
21737 _ACEOF
21738 rm -f conftest.$ac_objext conftest$ac_exeext
21739 if { (ac_try="$ac_link"
21740 case "(($ac_try" in
21741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21742   *) ac_try_echo=$ac_try;;
21743 esac
21744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21745   (eval "$ac_link") 2>conftest.er1
21746   ac_status=$?
21747   grep -v '^ *+' conftest.er1 >conftest.err
21748   rm -f conftest.er1
21749   cat conftest.err >&5
21750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751   (exit $ac_status); } && {
21752          test -z "$ac_c_werror_flag" ||
21753          test ! -s conftest.err
21754        } && test -s conftest$ac_exeext &&
21755        $as_test_x conftest$ac_exeext; then
21756   ac_cv_func_vasprintf=yes
21757 else
21758   echo "$as_me: failed program was:" >&5
21759 sed 's/^/| /' conftest.$ac_ext >&5
21760
21761         ac_cv_func_vasprintf=no
21762 fi
21763
21764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21765       conftest$ac_exeext conftest.$ac_ext
21766 fi
21767 { echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
21768 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6; }
21769 if test $ac_cv_func_vasprintf = yes; then
21770   :
21771 else
21772
21773 cat >>confdefs.h <<\_ACEOF
21774 #define NEED_VASPRINTF 1
21775 _ACEOF
21776
21777 fi
21778
21779
21780 # Checks for typedefs, structures, and compiler characteristics.
21781 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21782 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21783 if test "${ac_cv_c_const+set}" = set; then
21784   echo $ECHO_N "(cached) $ECHO_C" >&6
21785 else
21786   cat >conftest.$ac_ext <<_ACEOF
21787 /* confdefs.h.  */
21788 _ACEOF
21789 cat confdefs.h >>conftest.$ac_ext
21790 cat >>conftest.$ac_ext <<_ACEOF
21791 /* end confdefs.h.  */
21792
21793 int
21794 main ()
21795 {
21796 /* FIXME: Include the comments suggested by Paul. */
21797 #ifndef __cplusplus
21798   /* Ultrix mips cc rejects this.  */
21799   typedef int charset[2];
21800   const charset cs;
21801   /* SunOS 4.1.1 cc rejects this.  */
21802   char const *const *pcpcc;
21803   char **ppc;
21804   /* NEC SVR4.0.2 mips cc rejects this.  */
21805   struct point {int x, y;};
21806   static struct point const zero = {0,0};
21807   /* AIX XL C 1.02.0.0 rejects this.
21808      It does not let you subtract one const X* pointer from another in
21809      an arm of an if-expression whose if-part is not a constant
21810      expression */
21811   const char *g = "string";
21812   pcpcc = &g + (g ? g-g : 0);
21813   /* HPUX 7.0 cc rejects these. */
21814   ++pcpcc;
21815   ppc = (char**) pcpcc;
21816   pcpcc = (char const *const *) ppc;
21817   { /* SCO 3.2v4 cc rejects this.  */
21818     char *t;
21819     char const *s = 0 ? (char *) 0 : (char const *) 0;
21820
21821     *t++ = 0;
21822     if (s) return 0;
21823   }
21824   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21825     int x[] = {25, 17};
21826     const int *foo = &x[0];
21827     ++foo;
21828   }
21829   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21830     typedef const int *iptr;
21831     iptr p = 0;
21832     ++p;
21833   }
21834   { /* AIX XL C 1.02.0.0 rejects this saying
21835        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21836     struct s { int j; const int *ap[3]; };
21837     struct s *b; b->j = 5;
21838   }
21839   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21840     const int foo = 10;
21841     if (!foo) return 0;
21842   }
21843   return !cs[0] && !zero.x;
21844 #endif
21845
21846   ;
21847   return 0;
21848 }
21849 _ACEOF
21850 rm -f conftest.$ac_objext
21851 if { (ac_try="$ac_compile"
21852 case "(($ac_try" in
21853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21854   *) ac_try_echo=$ac_try;;
21855 esac
21856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21857   (eval "$ac_compile") 2>conftest.er1
21858   ac_status=$?
21859   grep -v '^ *+' conftest.er1 >conftest.err
21860   rm -f conftest.er1
21861   cat conftest.err >&5
21862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863   (exit $ac_status); } && {
21864          test -z "$ac_c_werror_flag" ||
21865          test ! -s conftest.err
21866        } && test -s conftest.$ac_objext; then
21867   ac_cv_c_const=yes
21868 else
21869   echo "$as_me: failed program was:" >&5
21870 sed 's/^/| /' conftest.$ac_ext >&5
21871
21872         ac_cv_c_const=no
21873 fi
21874
21875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21876 fi
21877 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21878 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21879 if test $ac_cv_c_const = no; then
21880
21881 cat >>confdefs.h <<\_ACEOF
21882 #define const
21883 _ACEOF
21884
21885 fi
21886
21887 { echo "$as_me:$LINENO: checking for inline" >&5
21888 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21889 if test "${ac_cv_c_inline+set}" = set; then
21890   echo $ECHO_N "(cached) $ECHO_C" >&6
21891 else
21892   ac_cv_c_inline=no
21893 for ac_kw in inline __inline__ __inline; do
21894   cat >conftest.$ac_ext <<_ACEOF
21895 /* confdefs.h.  */
21896 _ACEOF
21897 cat confdefs.h >>conftest.$ac_ext
21898 cat >>conftest.$ac_ext <<_ACEOF
21899 /* end confdefs.h.  */
21900 #ifndef __cplusplus
21901 typedef int foo_t;
21902 static $ac_kw foo_t static_foo () {return 0; }
21903 $ac_kw foo_t foo () {return 0; }
21904 #endif
21905
21906 _ACEOF
21907 rm -f conftest.$ac_objext
21908 if { (ac_try="$ac_compile"
21909 case "(($ac_try" in
21910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21911   *) ac_try_echo=$ac_try;;
21912 esac
21913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21914   (eval "$ac_compile") 2>conftest.er1
21915   ac_status=$?
21916   grep -v '^ *+' conftest.er1 >conftest.err
21917   rm -f conftest.er1
21918   cat conftest.err >&5
21919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920   (exit $ac_status); } && {
21921          test -z "$ac_c_werror_flag" ||
21922          test ! -s conftest.err
21923        } && test -s conftest.$ac_objext; then
21924   ac_cv_c_inline=$ac_kw
21925 else
21926   echo "$as_me: failed program was:" >&5
21927 sed 's/^/| /' conftest.$ac_ext >&5
21928
21929
21930 fi
21931
21932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21933   test "$ac_cv_c_inline" != no && break
21934 done
21935
21936 fi
21937 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21938 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21939
21940
21941 case $ac_cv_c_inline in
21942   inline | yes) ;;
21943   *)
21944     case $ac_cv_c_inline in
21945       no) ac_val=;;
21946       *) ac_val=$ac_cv_c_inline;;
21947     esac
21948     cat >>confdefs.h <<_ACEOF
21949 #ifndef __cplusplus
21950 #define inline $ac_val
21951 #endif
21952 _ACEOF
21953     ;;
21954 esac
21955
21956 { echo "$as_me:$LINENO: checking for size_t" >&5
21957 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21958 if test "${ac_cv_type_size_t+set}" = set; then
21959   echo $ECHO_N "(cached) $ECHO_C" >&6
21960 else
21961   cat >conftest.$ac_ext <<_ACEOF
21962 /* confdefs.h.  */
21963 _ACEOF
21964 cat confdefs.h >>conftest.$ac_ext
21965 cat >>conftest.$ac_ext <<_ACEOF
21966 /* end confdefs.h.  */
21967 $ac_includes_default
21968 typedef size_t ac__type_new_;
21969 int
21970 main ()
21971 {
21972 if ((ac__type_new_ *) 0)
21973   return 0;
21974 if (sizeof (ac__type_new_))
21975   return 0;
21976   ;
21977   return 0;
21978 }
21979 _ACEOF
21980 rm -f conftest.$ac_objext
21981 if { (ac_try="$ac_compile"
21982 case "(($ac_try" in
21983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984   *) ac_try_echo=$ac_try;;
21985 esac
21986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987   (eval "$ac_compile") 2>conftest.er1
21988   ac_status=$?
21989   grep -v '^ *+' conftest.er1 >conftest.err
21990   rm -f conftest.er1
21991   cat conftest.err >&5
21992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993   (exit $ac_status); } && {
21994          test -z "$ac_c_werror_flag" ||
21995          test ! -s conftest.err
21996        } && test -s conftest.$ac_objext; then
21997   ac_cv_type_size_t=yes
21998 else
21999   echo "$as_me: failed program was:" >&5
22000 sed 's/^/| /' conftest.$ac_ext >&5
22001
22002         ac_cv_type_size_t=no
22003 fi
22004
22005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22006 fi
22007 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22008 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22009 if test $ac_cv_type_size_t = yes; then
22010   :
22011 else
22012
22013 cat >>confdefs.h <<_ACEOF
22014 #define size_t unsigned int
22015 _ACEOF
22016
22017 fi
22018
22019
22020 ###################################
22021 ## SimGrid and GRAS specific checks
22022 ##
22023
22024
22025   { echo "$as_me:$LINENO: result: " >&5
22026 echo "${ECHO_T}" >&6; }
22027   { echo "$as_me:$LINENO: result: ${T_MD}Checking GRAS architecture signature...${T_ME}" >&5
22028 echo "${ECHO_T}${T_MD}Checking GRAS architecture signature...${T_ME}" >&6; }
22029
22030 # Check architecture signature begin
22031
22032 # Check for the architecture
22033 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22034 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22035 if test "${ac_cv_c_bigendian+set}" = set; then
22036   echo $ECHO_N "(cached) $ECHO_C" >&6
22037 else
22038   # See if sys/param.h defines the BYTE_ORDER macro.
22039 cat >conftest.$ac_ext <<_ACEOF
22040 /* confdefs.h.  */
22041 _ACEOF
22042 cat confdefs.h >>conftest.$ac_ext
22043 cat >>conftest.$ac_ext <<_ACEOF
22044 /* end confdefs.h.  */
22045 #include <sys/types.h>
22046 #include <sys/param.h>
22047
22048 int
22049 main ()
22050 {
22051 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22052         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22053  bogus endian macros
22054 #endif
22055
22056   ;
22057   return 0;
22058 }
22059 _ACEOF
22060 rm -f conftest.$ac_objext
22061 if { (ac_try="$ac_compile"
22062 case "(($ac_try" in
22063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22064   *) ac_try_echo=$ac_try;;
22065 esac
22066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22067   (eval "$ac_compile") 2>conftest.er1
22068   ac_status=$?
22069   grep -v '^ *+' conftest.er1 >conftest.err
22070   rm -f conftest.er1
22071   cat conftest.err >&5
22072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073   (exit $ac_status); } && {
22074          test -z "$ac_c_werror_flag" ||
22075          test ! -s conftest.err
22076        } && test -s conftest.$ac_objext; then
22077   # It does; now see whether it defined to BIG_ENDIAN or not.
22078 cat >conftest.$ac_ext <<_ACEOF
22079 /* confdefs.h.  */
22080 _ACEOF
22081 cat confdefs.h >>conftest.$ac_ext
22082 cat >>conftest.$ac_ext <<_ACEOF
22083 /* end confdefs.h.  */
22084 #include <sys/types.h>
22085 #include <sys/param.h>
22086
22087 int
22088 main ()
22089 {
22090 #if BYTE_ORDER != BIG_ENDIAN
22091  not big endian
22092 #endif
22093
22094   ;
22095   return 0;
22096 }
22097 _ACEOF
22098 rm -f conftest.$ac_objext
22099 if { (ac_try="$ac_compile"
22100 case "(($ac_try" in
22101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22102   *) ac_try_echo=$ac_try;;
22103 esac
22104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22105   (eval "$ac_compile") 2>conftest.er1
22106   ac_status=$?
22107   grep -v '^ *+' conftest.er1 >conftest.err
22108   rm -f conftest.er1
22109   cat conftest.err >&5
22110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111   (exit $ac_status); } && {
22112          test -z "$ac_c_werror_flag" ||
22113          test ! -s conftest.err
22114        } && test -s conftest.$ac_objext; then
22115   ac_cv_c_bigendian=yes
22116 else
22117   echo "$as_me: failed program was:" >&5
22118 sed 's/^/| /' conftest.$ac_ext >&5
22119
22120         ac_cv_c_bigendian=no
22121 fi
22122
22123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22124 else
22125   echo "$as_me: failed program was:" >&5
22126 sed 's/^/| /' conftest.$ac_ext >&5
22127
22128         # It does not; compile a test program.
22129 if test "$cross_compiling" = yes; then
22130   # try to guess the endianness by grepping values into an object file
22131   ac_cv_c_bigendian=unknown
22132   cat >conftest.$ac_ext <<_ACEOF
22133 /* confdefs.h.  */
22134 _ACEOF
22135 cat confdefs.h >>conftest.$ac_ext
22136 cat >>conftest.$ac_ext <<_ACEOF
22137 /* end confdefs.h.  */
22138 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22139 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22140 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22141 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22142 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22143 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22144 int
22145 main ()
22146 {
22147  _ascii (); _ebcdic ();
22148   ;
22149   return 0;
22150 }
22151 _ACEOF
22152 rm -f conftest.$ac_objext
22153 if { (ac_try="$ac_compile"
22154 case "(($ac_try" in
22155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22156   *) ac_try_echo=$ac_try;;
22157 esac
22158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22159   (eval "$ac_compile") 2>conftest.er1
22160   ac_status=$?
22161   grep -v '^ *+' conftest.er1 >conftest.err
22162   rm -f conftest.er1
22163   cat conftest.err >&5
22164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165   (exit $ac_status); } && {
22166          test -z "$ac_c_werror_flag" ||
22167          test ! -s conftest.err
22168        } && test -s conftest.$ac_objext; then
22169   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22170   ac_cv_c_bigendian=yes
22171 fi
22172 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22173   if test "$ac_cv_c_bigendian" = unknown; then
22174     ac_cv_c_bigendian=no
22175   else
22176     # finding both strings is unlikely to happen, but who knows?
22177     ac_cv_c_bigendian=unknown
22178   fi
22179 fi
22180 else
22181   echo "$as_me: failed program was:" >&5
22182 sed 's/^/| /' conftest.$ac_ext >&5
22183
22184
22185 fi
22186
22187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22188 else
22189   cat >conftest.$ac_ext <<_ACEOF
22190 /* confdefs.h.  */
22191 _ACEOF
22192 cat confdefs.h >>conftest.$ac_ext
22193 cat >>conftest.$ac_ext <<_ACEOF
22194 /* end confdefs.h.  */
22195 $ac_includes_default
22196 int
22197 main ()
22198 {
22199
22200   /* Are we little or big endian?  From Harbison&Steele.  */
22201   union
22202   {
22203     long int l;
22204     char c[sizeof (long int)];
22205   } u;
22206   u.l = 1;
22207   return u.c[sizeof (long int) - 1] == 1;
22208
22209   ;
22210   return 0;
22211 }
22212 _ACEOF
22213 rm -f conftest$ac_exeext
22214 if { (ac_try="$ac_link"
22215 case "(($ac_try" in
22216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22217   *) ac_try_echo=$ac_try;;
22218 esac
22219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22220   (eval "$ac_link") 2>&5
22221   ac_status=$?
22222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22224   { (case "(($ac_try" in
22225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22226   *) ac_try_echo=$ac_try;;
22227 esac
22228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22229   (eval "$ac_try") 2>&5
22230   ac_status=$?
22231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232   (exit $ac_status); }; }; then
22233   ac_cv_c_bigendian=no
22234 else
22235   echo "$as_me: program exited with status $ac_status" >&5
22236 echo "$as_me: failed program was:" >&5
22237 sed 's/^/| /' conftest.$ac_ext >&5
22238
22239 ( exit $ac_status )
22240 ac_cv_c_bigendian=yes
22241 fi
22242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22243 fi
22244
22245
22246 fi
22247
22248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22249 fi
22250 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22251 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22252 case $ac_cv_c_bigendian in
22253   yes)
22254     endian=1 ;;
22255   no)
22256     endian=0 ;;
22257   *)
22258     { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
22259 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
22260    { (exit 1); exit 1; }; } ;;
22261 esac
22262
22263
22264 cat >>confdefs.h <<_ACEOF
22265 #define GRAS_BIGENDIAN $endian
22266 _ACEOF
22267
22268
22269 { echo "$as_me:$LINENO: checking size of char" >&5
22270 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
22271     if test "${ac_cv_sizeof_char+set}" = set; then
22272   echo $ECHO_N "(cached) $ECHO_C" >&6
22273 else
22274   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22275    cat >conftest.$ac_ext <<_ACEOF
22276 /* confdefs.h.  */
22277 _ACEOF
22278 cat confdefs.h >>conftest.$ac_ext
22279 cat >>conftest.$ac_ext <<_ACEOF
22280 /* end confdefs.h.  */
22281 #include "confdefs.h"
22282    #include <sys/types.h>
22283
22284
22285 int
22286 main ()
22287 {
22288 switch (0) case 0: case (sizeof (char) == $ac_size):;
22289   ;
22290   return 0;
22291 }
22292 _ACEOF
22293 rm -f conftest.$ac_objext
22294 if { (ac_try="$ac_compile"
22295 case "(($ac_try" in
22296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22297   *) ac_try_echo=$ac_try;;
22298 esac
22299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22300   (eval "$ac_compile") 2>conftest.er1
22301   ac_status=$?
22302   grep -v '^ *+' conftest.er1 >conftest.err
22303   rm -f conftest.er1
22304   cat conftest.err >&5
22305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306   (exit $ac_status); } && {
22307          test -z "$ac_c_werror_flag" ||
22308          test ! -s conftest.err
22309        } && test -s conftest.$ac_objext; then
22310   ac_cv_sizeof_char=$ac_size
22311 else
22312   echo "$as_me: failed program was:" >&5
22313 sed 's/^/| /' conftest.$ac_ext >&5
22314
22315
22316 fi
22317
22318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22319    if test x$ac_cv_sizeof_char != x ; then break; fi
22320   done
22321
22322 fi
22323
22324
22325 unspecif=$ac_cv_sizeof_char
22326 if test x$unspecif = x ; then
22327   { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
22328 echo "$as_me: error: cannot determine a size for char" >&2;}
22329    { (exit 1); exit 1; }; }
22330 fi
22331
22332     if test "${ac_cv_sizeof_signed_char+set}" = set; then
22333   echo $ECHO_N "(cached) $ECHO_C" >&6
22334 else
22335   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22336    cat >conftest.$ac_ext <<_ACEOF
22337 /* confdefs.h.  */
22338 _ACEOF
22339 cat confdefs.h >>conftest.$ac_ext
22340 cat >>conftest.$ac_ext <<_ACEOF
22341 /* end confdefs.h.  */
22342 #include "confdefs.h"
22343    #include <sys/types.h>
22344
22345
22346 int
22347 main ()
22348 {
22349 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
22350   ;
22351   return 0;
22352 }
22353 _ACEOF
22354 rm -f conftest.$ac_objext
22355 if { (ac_try="$ac_compile"
22356 case "(($ac_try" in
22357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22358   *) ac_try_echo=$ac_try;;
22359 esac
22360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22361   (eval "$ac_compile") 2>conftest.er1
22362   ac_status=$?
22363   grep -v '^ *+' conftest.er1 >conftest.err
22364   rm -f conftest.er1
22365   cat conftest.err >&5
22366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367   (exit $ac_status); } && {
22368          test -z "$ac_c_werror_flag" ||
22369          test ! -s conftest.err
22370        } && test -s conftest.$ac_objext; then
22371   ac_cv_sizeof_signed_char=$ac_size
22372 else
22373   echo "$as_me: failed program was:" >&5
22374 sed 's/^/| /' conftest.$ac_ext >&5
22375
22376
22377 fi
22378
22379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22380    if test x$ac_cv_sizeof_signed_char != x ; then break; fi
22381   done
22382
22383 fi
22384
22385
22386 signed=$ac_cv_sizeof_signed_char
22387 if test x$signed = x ; then
22388   { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
22389 echo "$as_me: error: cannot determine a size for signed char" >&2;}
22390    { (exit 1); exit 1; }; }
22391 fi
22392 if test x$unspecif != x$signed ; then
22393   { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
22394 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
22395    { (exit 1); exit 1; }; }
22396 fi
22397
22398     if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
22399   echo $ECHO_N "(cached) $ECHO_C" >&6
22400 else
22401   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22402    cat >conftest.$ac_ext <<_ACEOF
22403 /* confdefs.h.  */
22404 _ACEOF
22405 cat confdefs.h >>conftest.$ac_ext
22406 cat >>conftest.$ac_ext <<_ACEOF
22407 /* end confdefs.h.  */
22408 #include "confdefs.h"
22409    #include <sys/types.h>
22410
22411
22412 int
22413 main ()
22414 {
22415 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
22416   ;
22417   return 0;
22418 }
22419 _ACEOF
22420 rm -f conftest.$ac_objext
22421 if { (ac_try="$ac_compile"
22422 case "(($ac_try" in
22423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22424   *) ac_try_echo=$ac_try;;
22425 esac
22426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22427   (eval "$ac_compile") 2>conftest.er1
22428   ac_status=$?
22429   grep -v '^ *+' conftest.er1 >conftest.err
22430   rm -f conftest.er1
22431   cat conftest.err >&5
22432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433   (exit $ac_status); } && {
22434          test -z "$ac_c_werror_flag" ||
22435          test ! -s conftest.err
22436        } && test -s conftest.$ac_objext; then
22437   ac_cv_sizeof_unsigned_char=$ac_size
22438 else
22439   echo "$as_me: failed program was:" >&5
22440 sed 's/^/| /' conftest.$ac_ext >&5
22441
22442
22443 fi
22444
22445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22446    if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
22447   done
22448
22449 fi
22450
22451
22452 unsigned=$ac_cv_sizeof_unsigned_char
22453 if test x$unsigned = x ; then
22454   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
22455 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
22456    { (exit 1); exit 1; }; }
22457 fi
22458 if test x$unsigned != x$signed ; then
22459   { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
22460 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
22461    { (exit 1); exit 1; }; }
22462 fi
22463
22464 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
22465 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
22466                   { echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
22467 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6; }
22468
22469  if test "${ac_cv_struct_boundary_char+set}" = set; then
22470   echo $ECHO_N "(cached) $ECHO_C" >&6
22471 else
22472   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22473    cat >conftest.$ac_ext <<_ACEOF
22474 /* confdefs.h.  */
22475 _ACEOF
22476 cat confdefs.h >>conftest.$ac_ext
22477 cat >>conftest.$ac_ext <<_ACEOF
22478 /* end confdefs.h.  */
22479 #include "confdefs.h"
22480      #include <sys/types.h>
22481      struct s { char c; char i; };
22482
22483 int
22484 main ()
22485 {
22486 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
22487   ;
22488   return 0;
22489 }
22490 _ACEOF
22491 rm -f conftest.$ac_objext
22492 if { (ac_try="$ac_compile"
22493 case "(($ac_try" in
22494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22495   *) ac_try_echo=$ac_try;;
22496 esac
22497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22498   (eval "$ac_compile") 2>conftest.er1
22499   ac_status=$?
22500   grep -v '^ *+' conftest.er1 >conftest.err
22501   rm -f conftest.er1
22502   cat conftest.err >&5
22503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504   (exit $ac_status); } && {
22505          test -z "$ac_c_werror_flag" ||
22506          test ! -s conftest.err
22507        } && test -s conftest.$ac_objext; then
22508   ac_cv_struct_boundary_char=$ac_size
22509 else
22510   echo "$as_me: failed program was:" >&5
22511 sed 's/^/| /' conftest.$ac_ext >&5
22512
22513
22514 fi
22515
22516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22517    if test x$ac_cv_struct_boundary_char != x ; then break; fi
22518   done
22519
22520 fi
22521
22522  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
22523 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6; }
22524  if test x$ac_cv_struct_boundary_char = x ; then
22525    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of char in structures" >&5
22526 echo "$as_me: error: Cannot determine the minimal alignment boundary of char in structures" >&2;}
22527    { (exit 1); exit 1; }; }
22528  fi
22529
22530 { echo "$as_me:$LINENO: checking size of short int" >&5
22531 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
22532     if test "${ac_cv_sizeof_short_int+set}" = set; then
22533   echo $ECHO_N "(cached) $ECHO_C" >&6
22534 else
22535   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22536    cat >conftest.$ac_ext <<_ACEOF
22537 /* confdefs.h.  */
22538 _ACEOF
22539 cat confdefs.h >>conftest.$ac_ext
22540 cat >>conftest.$ac_ext <<_ACEOF
22541 /* end confdefs.h.  */
22542 #include "confdefs.h"
22543    #include <sys/types.h>
22544
22545
22546 int
22547 main ()
22548 {
22549 switch (0) case 0: case (sizeof (short int) == $ac_size):;
22550   ;
22551   return 0;
22552 }
22553 _ACEOF
22554 rm -f conftest.$ac_objext
22555 if { (ac_try="$ac_compile"
22556 case "(($ac_try" in
22557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22558   *) ac_try_echo=$ac_try;;
22559 esac
22560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22561   (eval "$ac_compile") 2>conftest.er1
22562   ac_status=$?
22563   grep -v '^ *+' conftest.er1 >conftest.err
22564   rm -f conftest.er1
22565   cat conftest.err >&5
22566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567   (exit $ac_status); } && {
22568          test -z "$ac_c_werror_flag" ||
22569          test ! -s conftest.err
22570        } && test -s conftest.$ac_objext; then
22571   ac_cv_sizeof_short_int=$ac_size
22572 else
22573   echo "$as_me: failed program was:" >&5
22574 sed 's/^/| /' conftest.$ac_ext >&5
22575
22576
22577 fi
22578
22579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22580    if test x$ac_cv_sizeof_short_int != x ; then break; fi
22581   done
22582
22583 fi
22584
22585
22586 unspecif=$ac_cv_sizeof_short_int
22587 if test x$unspecif = x ; then
22588   { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
22589 echo "$as_me: error: cannot determine a size for short int" >&2;}
22590    { (exit 1); exit 1; }; }
22591 fi
22592
22593     if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
22594   echo $ECHO_N "(cached) $ECHO_C" >&6
22595 else
22596   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22597    cat >conftest.$ac_ext <<_ACEOF
22598 /* confdefs.h.  */
22599 _ACEOF
22600 cat confdefs.h >>conftest.$ac_ext
22601 cat >>conftest.$ac_ext <<_ACEOF
22602 /* end confdefs.h.  */
22603 #include "confdefs.h"
22604    #include <sys/types.h>
22605
22606
22607 int
22608 main ()
22609 {
22610 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
22611   ;
22612   return 0;
22613 }
22614 _ACEOF
22615 rm -f conftest.$ac_objext
22616 if { (ac_try="$ac_compile"
22617 case "(($ac_try" in
22618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22619   *) ac_try_echo=$ac_try;;
22620 esac
22621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22622   (eval "$ac_compile") 2>conftest.er1
22623   ac_status=$?
22624   grep -v '^ *+' conftest.er1 >conftest.err
22625   rm -f conftest.er1
22626   cat conftest.err >&5
22627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628   (exit $ac_status); } && {
22629          test -z "$ac_c_werror_flag" ||
22630          test ! -s conftest.err
22631        } && test -s conftest.$ac_objext; then
22632   ac_cv_sizeof_signed_short_int=$ac_size
22633 else
22634   echo "$as_me: failed program was:" >&5
22635 sed 's/^/| /' conftest.$ac_ext >&5
22636
22637
22638 fi
22639
22640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22641    if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
22642   done
22643
22644 fi
22645
22646
22647 signed=$ac_cv_sizeof_signed_short_int
22648 if test x$signed = x ; then
22649   { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
22650 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
22651    { (exit 1); exit 1; }; }
22652 fi
22653 if test x$unspecif != x$signed ; then
22654   { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
22655 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
22656    { (exit 1); exit 1; }; }
22657 fi
22658
22659     if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
22660   echo $ECHO_N "(cached) $ECHO_C" >&6
22661 else
22662   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22663    cat >conftest.$ac_ext <<_ACEOF
22664 /* confdefs.h.  */
22665 _ACEOF
22666 cat confdefs.h >>conftest.$ac_ext
22667 cat >>conftest.$ac_ext <<_ACEOF
22668 /* end confdefs.h.  */
22669 #include "confdefs.h"
22670    #include <sys/types.h>
22671
22672
22673 int
22674 main ()
22675 {
22676 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
22677   ;
22678   return 0;
22679 }
22680 _ACEOF
22681 rm -f conftest.$ac_objext
22682 if { (ac_try="$ac_compile"
22683 case "(($ac_try" in
22684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22685   *) ac_try_echo=$ac_try;;
22686 esac
22687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22688   (eval "$ac_compile") 2>conftest.er1
22689   ac_status=$?
22690   grep -v '^ *+' conftest.er1 >conftest.err
22691   rm -f conftest.er1
22692   cat conftest.err >&5
22693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694   (exit $ac_status); } && {
22695          test -z "$ac_c_werror_flag" ||
22696          test ! -s conftest.err
22697        } && test -s conftest.$ac_objext; then
22698   ac_cv_sizeof_unsigned_short_int=$ac_size
22699 else
22700   echo "$as_me: failed program was:" >&5
22701 sed 's/^/| /' conftest.$ac_ext >&5
22702
22703
22704 fi
22705
22706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22707    if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
22708   done
22709
22710 fi
22711
22712
22713 unsigned=$ac_cv_sizeof_unsigned_short_int
22714 if test x$unsigned = x ; then
22715   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
22716 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
22717    { (exit 1); exit 1; }; }
22718 fi
22719 if test x$unsigned != x$signed ; then
22720   { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
22721 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
22722    { (exit 1); exit 1; }; }
22723 fi
22724
22725 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
22726 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6; }
22727              { echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
22728 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6; }
22729
22730  if test "${ac_cv_struct_boundary_short_int+set}" = set; then
22731   echo $ECHO_N "(cached) $ECHO_C" >&6
22732 else
22733   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22734    cat >conftest.$ac_ext <<_ACEOF
22735 /* confdefs.h.  */
22736 _ACEOF
22737 cat confdefs.h >>conftest.$ac_ext
22738 cat >>conftest.$ac_ext <<_ACEOF
22739 /* end confdefs.h.  */
22740 #include "confdefs.h"
22741      #include <sys/types.h>
22742      struct s { char c; short int i; };
22743
22744 int
22745 main ()
22746 {
22747 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
22748   ;
22749   return 0;
22750 }
22751 _ACEOF
22752 rm -f conftest.$ac_objext
22753 if { (ac_try="$ac_compile"
22754 case "(($ac_try" in
22755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22756   *) ac_try_echo=$ac_try;;
22757 esac
22758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22759   (eval "$ac_compile") 2>conftest.er1
22760   ac_status=$?
22761   grep -v '^ *+' conftest.er1 >conftest.err
22762   rm -f conftest.er1
22763   cat conftest.err >&5
22764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22765   (exit $ac_status); } && {
22766          test -z "$ac_c_werror_flag" ||
22767          test ! -s conftest.err
22768        } && test -s conftest.$ac_objext; then
22769   ac_cv_struct_boundary_short_int=$ac_size
22770 else
22771   echo "$as_me: failed program was:" >&5
22772 sed 's/^/| /' conftest.$ac_ext >&5
22773
22774
22775 fi
22776
22777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22778    if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
22779   done
22780
22781 fi
22782
22783  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
22784 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6; }
22785  if test x$ac_cv_struct_boundary_short_int = x ; then
22786    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of short int in structures" >&5
22787 echo "$as_me: error: Cannot determine the minimal alignment boundary of short int in structures" >&2;}
22788    { (exit 1); exit 1; }; }
22789  fi
22790
22791 { echo "$as_me:$LINENO: checking size of int" >&5
22792 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22793     if test "${ac_cv_sizeof_int+set}" = set; then
22794   echo $ECHO_N "(cached) $ECHO_C" >&6
22795 else
22796   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22797    cat >conftest.$ac_ext <<_ACEOF
22798 /* confdefs.h.  */
22799 _ACEOF
22800 cat confdefs.h >>conftest.$ac_ext
22801 cat >>conftest.$ac_ext <<_ACEOF
22802 /* end confdefs.h.  */
22803 #include "confdefs.h"
22804    #include <sys/types.h>
22805
22806
22807 int
22808 main ()
22809 {
22810 switch (0) case 0: case (sizeof (int) == $ac_size):;
22811   ;
22812   return 0;
22813 }
22814 _ACEOF
22815 rm -f conftest.$ac_objext
22816 if { (ac_try="$ac_compile"
22817 case "(($ac_try" in
22818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22819   *) ac_try_echo=$ac_try;;
22820 esac
22821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22822   (eval "$ac_compile") 2>conftest.er1
22823   ac_status=$?
22824   grep -v '^ *+' conftest.er1 >conftest.err
22825   rm -f conftest.er1
22826   cat conftest.err >&5
22827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22828   (exit $ac_status); } && {
22829          test -z "$ac_c_werror_flag" ||
22830          test ! -s conftest.err
22831        } && test -s conftest.$ac_objext; then
22832   ac_cv_sizeof_int=$ac_size
22833 else
22834   echo "$as_me: failed program was:" >&5
22835 sed 's/^/| /' conftest.$ac_ext >&5
22836
22837
22838 fi
22839
22840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22841    if test x$ac_cv_sizeof_int != x ; then break; fi
22842   done
22843
22844 fi
22845
22846
22847 unspecif=$ac_cv_sizeof_int
22848 if test x$unspecif = x ; then
22849   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
22850 echo "$as_me: error: cannot determine a size for int" >&2;}
22851    { (exit 1); exit 1; }; }
22852 fi
22853
22854     if test "${ac_cv_sizeof_signed_int+set}" = set; then
22855   echo $ECHO_N "(cached) $ECHO_C" >&6
22856 else
22857   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22858    cat >conftest.$ac_ext <<_ACEOF
22859 /* confdefs.h.  */
22860 _ACEOF
22861 cat confdefs.h >>conftest.$ac_ext
22862 cat >>conftest.$ac_ext <<_ACEOF
22863 /* end confdefs.h.  */
22864 #include "confdefs.h"
22865    #include <sys/types.h>
22866
22867
22868 int
22869 main ()
22870 {
22871 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
22872   ;
22873   return 0;
22874 }
22875 _ACEOF
22876 rm -f conftest.$ac_objext
22877 if { (ac_try="$ac_compile"
22878 case "(($ac_try" in
22879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22880   *) ac_try_echo=$ac_try;;
22881 esac
22882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22883   (eval "$ac_compile") 2>conftest.er1
22884   ac_status=$?
22885   grep -v '^ *+' conftest.er1 >conftest.err
22886   rm -f conftest.er1
22887   cat conftest.err >&5
22888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889   (exit $ac_status); } && {
22890          test -z "$ac_c_werror_flag" ||
22891          test ! -s conftest.err
22892        } && test -s conftest.$ac_objext; then
22893   ac_cv_sizeof_signed_int=$ac_size
22894 else
22895   echo "$as_me: failed program was:" >&5
22896 sed 's/^/| /' conftest.$ac_ext >&5
22897
22898
22899 fi
22900
22901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22902    if test x$ac_cv_sizeof_signed_int != x ; then break; fi
22903   done
22904
22905 fi
22906
22907
22908 signed=$ac_cv_sizeof_signed_int
22909 if test x$signed = x ; then
22910   { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
22911 echo "$as_me: error: cannot determine a size for signed int" >&2;}
22912    { (exit 1); exit 1; }; }
22913 fi
22914 if test x$unspecif != x$signed ; then
22915   { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
22916 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
22917    { (exit 1); exit 1; }; }
22918 fi
22919
22920     if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
22921   echo $ECHO_N "(cached) $ECHO_C" >&6
22922 else
22923   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22924    cat >conftest.$ac_ext <<_ACEOF
22925 /* confdefs.h.  */
22926 _ACEOF
22927 cat confdefs.h >>conftest.$ac_ext
22928 cat >>conftest.$ac_ext <<_ACEOF
22929 /* end confdefs.h.  */
22930 #include "confdefs.h"
22931    #include <sys/types.h>
22932
22933
22934 int
22935 main ()
22936 {
22937 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
22938   ;
22939   return 0;
22940 }
22941 _ACEOF
22942 rm -f conftest.$ac_objext
22943 if { (ac_try="$ac_compile"
22944 case "(($ac_try" in
22945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22946   *) ac_try_echo=$ac_try;;
22947 esac
22948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22949   (eval "$ac_compile") 2>conftest.er1
22950   ac_status=$?
22951   grep -v '^ *+' conftest.er1 >conftest.err
22952   rm -f conftest.er1
22953   cat conftest.err >&5
22954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955   (exit $ac_status); } && {
22956          test -z "$ac_c_werror_flag" ||
22957          test ! -s conftest.err
22958        } && test -s conftest.$ac_objext; then
22959   ac_cv_sizeof_unsigned_int=$ac_size
22960 else
22961   echo "$as_me: failed program was:" >&5
22962 sed 's/^/| /' conftest.$ac_ext >&5
22963
22964
22965 fi
22966
22967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22968    if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
22969   done
22970
22971 fi
22972
22973
22974 unsigned=$ac_cv_sizeof_unsigned_int
22975 if test x$unsigned = x ; then
22976   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
22977 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
22978    { (exit 1); exit 1; }; }
22979 fi
22980 if test x$unsigned != x$signed ; then
22981   { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
22982 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
22983    { (exit 1); exit 1; }; }
22984 fi
22985
22986 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
22987 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
22988                    { echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
22989 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6; }
22990
22991  if test "${ac_cv_struct_boundary_int+set}" = set; then
22992   echo $ECHO_N "(cached) $ECHO_C" >&6
22993 else
22994   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22995    cat >conftest.$ac_ext <<_ACEOF
22996 /* confdefs.h.  */
22997 _ACEOF
22998 cat confdefs.h >>conftest.$ac_ext
22999 cat >>conftest.$ac_ext <<_ACEOF
23000 /* end confdefs.h.  */
23001 #include "confdefs.h"
23002      #include <sys/types.h>
23003      struct s { char c; int i; };
23004
23005 int
23006 main ()
23007 {
23008 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
23009   ;
23010   return 0;
23011 }
23012 _ACEOF
23013 rm -f conftest.$ac_objext
23014 if { (ac_try="$ac_compile"
23015 case "(($ac_try" in
23016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23017   *) ac_try_echo=$ac_try;;
23018 esac
23019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23020   (eval "$ac_compile") 2>conftest.er1
23021   ac_status=$?
23022   grep -v '^ *+' conftest.er1 >conftest.err
23023   rm -f conftest.er1
23024   cat conftest.err >&5
23025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026   (exit $ac_status); } && {
23027          test -z "$ac_c_werror_flag" ||
23028          test ! -s conftest.err
23029        } && test -s conftest.$ac_objext; then
23030   ac_cv_struct_boundary_int=$ac_size
23031 else
23032   echo "$as_me: failed program was:" >&5
23033 sed 's/^/| /' conftest.$ac_ext >&5
23034
23035
23036 fi
23037
23038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23039    if test x$ac_cv_struct_boundary_int != x ; then break; fi
23040   done
23041
23042 fi
23043
23044  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
23045 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6; }
23046  if test x$ac_cv_struct_boundary_int = x ; then
23047    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of int in structures" >&5
23048 echo "$as_me: error: Cannot determine the minimal alignment boundary of int in structures" >&2;}
23049    { (exit 1); exit 1; }; }
23050  fi
23051
23052 { echo "$as_me:$LINENO: checking size of long int" >&5
23053 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
23054     if test "${ac_cv_sizeof_long_int+set}" = set; then
23055   echo $ECHO_N "(cached) $ECHO_C" >&6
23056 else
23057   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23058    cat >conftest.$ac_ext <<_ACEOF
23059 /* confdefs.h.  */
23060 _ACEOF
23061 cat confdefs.h >>conftest.$ac_ext
23062 cat >>conftest.$ac_ext <<_ACEOF
23063 /* end confdefs.h.  */
23064 #include "confdefs.h"
23065    #include <sys/types.h>
23066
23067
23068 int
23069 main ()
23070 {
23071 switch (0) case 0: case (sizeof (long int) == $ac_size):;
23072   ;
23073   return 0;
23074 }
23075 _ACEOF
23076 rm -f conftest.$ac_objext
23077 if { (ac_try="$ac_compile"
23078 case "(($ac_try" in
23079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23080   *) ac_try_echo=$ac_try;;
23081 esac
23082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23083   (eval "$ac_compile") 2>conftest.er1
23084   ac_status=$?
23085   grep -v '^ *+' conftest.er1 >conftest.err
23086   rm -f conftest.er1
23087   cat conftest.err >&5
23088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089   (exit $ac_status); } && {
23090          test -z "$ac_c_werror_flag" ||
23091          test ! -s conftest.err
23092        } && test -s conftest.$ac_objext; then
23093   ac_cv_sizeof_long_int=$ac_size
23094 else
23095   echo "$as_me: failed program was:" >&5
23096 sed 's/^/| /' conftest.$ac_ext >&5
23097
23098
23099 fi
23100
23101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23102    if test x$ac_cv_sizeof_long_int != x ; then break; fi
23103   done
23104
23105 fi
23106
23107
23108 unspecif=$ac_cv_sizeof_long_int
23109 if test x$unspecif = x ; then
23110   { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
23111 echo "$as_me: error: cannot determine a size for long int" >&2;}
23112    { (exit 1); exit 1; }; }
23113 fi
23114
23115     if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
23116   echo $ECHO_N "(cached) $ECHO_C" >&6
23117 else
23118   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23119    cat >conftest.$ac_ext <<_ACEOF
23120 /* confdefs.h.  */
23121 _ACEOF
23122 cat confdefs.h >>conftest.$ac_ext
23123 cat >>conftest.$ac_ext <<_ACEOF
23124 /* end confdefs.h.  */
23125 #include "confdefs.h"
23126    #include <sys/types.h>
23127
23128
23129 int
23130 main ()
23131 {
23132 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
23133   ;
23134   return 0;
23135 }
23136 _ACEOF
23137 rm -f conftest.$ac_objext
23138 if { (ac_try="$ac_compile"
23139 case "(($ac_try" in
23140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23141   *) ac_try_echo=$ac_try;;
23142 esac
23143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23144   (eval "$ac_compile") 2>conftest.er1
23145   ac_status=$?
23146   grep -v '^ *+' conftest.er1 >conftest.err
23147   rm -f conftest.er1
23148   cat conftest.err >&5
23149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23150   (exit $ac_status); } && {
23151          test -z "$ac_c_werror_flag" ||
23152          test ! -s conftest.err
23153        } && test -s conftest.$ac_objext; then
23154   ac_cv_sizeof_signed_long_int=$ac_size
23155 else
23156   echo "$as_me: failed program was:" >&5
23157 sed 's/^/| /' conftest.$ac_ext >&5
23158
23159
23160 fi
23161
23162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23163    if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
23164   done
23165
23166 fi
23167
23168
23169 signed=$ac_cv_sizeof_signed_long_int
23170 if test x$signed = x ; then
23171   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
23172 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
23173    { (exit 1); exit 1; }; }
23174 fi
23175 if test x$unspecif != x$signed ; then
23176   { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
23177 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
23178    { (exit 1); exit 1; }; }
23179 fi
23180
23181     if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
23182   echo $ECHO_N "(cached) $ECHO_C" >&6
23183 else
23184   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23185    cat >conftest.$ac_ext <<_ACEOF
23186 /* confdefs.h.  */
23187 _ACEOF
23188 cat confdefs.h >>conftest.$ac_ext
23189 cat >>conftest.$ac_ext <<_ACEOF
23190 /* end confdefs.h.  */
23191 #include "confdefs.h"
23192    #include <sys/types.h>
23193
23194
23195 int
23196 main ()
23197 {
23198 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
23199   ;
23200   return 0;
23201 }
23202 _ACEOF
23203 rm -f conftest.$ac_objext
23204 if { (ac_try="$ac_compile"
23205 case "(($ac_try" in
23206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23207   *) ac_try_echo=$ac_try;;
23208 esac
23209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23210   (eval "$ac_compile") 2>conftest.er1
23211   ac_status=$?
23212   grep -v '^ *+' conftest.er1 >conftest.err
23213   rm -f conftest.er1
23214   cat conftest.err >&5
23215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216   (exit $ac_status); } && {
23217          test -z "$ac_c_werror_flag" ||
23218          test ! -s conftest.err
23219        } && test -s conftest.$ac_objext; then
23220   ac_cv_sizeof_unsigned_long_int=$ac_size
23221 else
23222   echo "$as_me: failed program was:" >&5
23223 sed 's/^/| /' conftest.$ac_ext >&5
23224
23225
23226 fi
23227
23228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23229    if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
23230   done
23231
23232 fi
23233
23234
23235 unsigned=$ac_cv_sizeof_unsigned_long_int
23236 if test x$unsigned = x ; then
23237   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
23238 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
23239    { (exit 1); exit 1; }; }
23240 fi
23241 if test x$unsigned != x$signed ; then
23242   { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
23243 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
23244    { (exit 1); exit 1; }; }
23245 fi
23246
23247 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
23248 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6; }
23249               { echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
23250 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6; }
23251
23252  if test "${ac_cv_struct_boundary_long_int+set}" = set; then
23253   echo $ECHO_N "(cached) $ECHO_C" >&6
23254 else
23255   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23256    cat >conftest.$ac_ext <<_ACEOF
23257 /* confdefs.h.  */
23258 _ACEOF
23259 cat confdefs.h >>conftest.$ac_ext
23260 cat >>conftest.$ac_ext <<_ACEOF
23261 /* end confdefs.h.  */
23262 #include "confdefs.h"
23263      #include <sys/types.h>
23264      struct s { char c; long int i; };
23265
23266 int
23267 main ()
23268 {
23269 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
23270   ;
23271   return 0;
23272 }
23273 _ACEOF
23274 rm -f conftest.$ac_objext
23275 if { (ac_try="$ac_compile"
23276 case "(($ac_try" in
23277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23278   *) ac_try_echo=$ac_try;;
23279 esac
23280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23281   (eval "$ac_compile") 2>conftest.er1
23282   ac_status=$?
23283   grep -v '^ *+' conftest.er1 >conftest.err
23284   rm -f conftest.er1
23285   cat conftest.err >&5
23286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287   (exit $ac_status); } && {
23288          test -z "$ac_c_werror_flag" ||
23289          test ! -s conftest.err
23290        } && test -s conftest.$ac_objext; then
23291   ac_cv_struct_boundary_long_int=$ac_size
23292 else
23293   echo "$as_me: failed program was:" >&5
23294 sed 's/^/| /' conftest.$ac_ext >&5
23295
23296
23297 fi
23298
23299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23300    if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
23301   done
23302
23303 fi
23304
23305  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
23306 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6; }
23307  if test x$ac_cv_struct_boundary_long_int = x ; then
23308    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long int in structures" >&5
23309 echo "$as_me: error: Cannot determine the minimal alignment boundary of long int in structures" >&2;}
23310    { (exit 1); exit 1; }; }
23311  fi
23312
23313 { echo "$as_me:$LINENO: checking size of long long int" >&5
23314 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
23315     if test "${ac_cv_sizeof_long_long_int+set}" = set; then
23316   echo $ECHO_N "(cached) $ECHO_C" >&6
23317 else
23318   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23319    cat >conftest.$ac_ext <<_ACEOF
23320 /* confdefs.h.  */
23321 _ACEOF
23322 cat confdefs.h >>conftest.$ac_ext
23323 cat >>conftest.$ac_ext <<_ACEOF
23324 /* end confdefs.h.  */
23325 #include "confdefs.h"
23326    #include <sys/types.h>
23327
23328
23329 int
23330 main ()
23331 {
23332 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
23333   ;
23334   return 0;
23335 }
23336 _ACEOF
23337 rm -f conftest.$ac_objext
23338 if { (ac_try="$ac_compile"
23339 case "(($ac_try" in
23340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23341   *) ac_try_echo=$ac_try;;
23342 esac
23343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23344   (eval "$ac_compile") 2>conftest.er1
23345   ac_status=$?
23346   grep -v '^ *+' conftest.er1 >conftest.err
23347   rm -f conftest.er1
23348   cat conftest.err >&5
23349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350   (exit $ac_status); } && {
23351          test -z "$ac_c_werror_flag" ||
23352          test ! -s conftest.err
23353        } && test -s conftest.$ac_objext; then
23354   ac_cv_sizeof_long_long_int=$ac_size
23355 else
23356   echo "$as_me: failed program was:" >&5
23357 sed 's/^/| /' conftest.$ac_ext >&5
23358
23359
23360 fi
23361
23362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23363    if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
23364   done
23365
23366 fi
23367
23368
23369 unspecif=$ac_cv_sizeof_long_long_int
23370 if test x$unspecif = x ; then
23371   { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
23372 echo "$as_me: error: cannot determine a size for long long int" >&2;}
23373    { (exit 1); exit 1; }; }
23374 fi
23375
23376     if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
23377   echo $ECHO_N "(cached) $ECHO_C" >&6
23378 else
23379   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23380    cat >conftest.$ac_ext <<_ACEOF
23381 /* confdefs.h.  */
23382 _ACEOF
23383 cat confdefs.h >>conftest.$ac_ext
23384 cat >>conftest.$ac_ext <<_ACEOF
23385 /* end confdefs.h.  */
23386 #include "confdefs.h"
23387    #include <sys/types.h>
23388
23389
23390 int
23391 main ()
23392 {
23393 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
23394   ;
23395   return 0;
23396 }
23397 _ACEOF
23398 rm -f conftest.$ac_objext
23399 if { (ac_try="$ac_compile"
23400 case "(($ac_try" in
23401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23402   *) ac_try_echo=$ac_try;;
23403 esac
23404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23405   (eval "$ac_compile") 2>conftest.er1
23406   ac_status=$?
23407   grep -v '^ *+' conftest.er1 >conftest.err
23408   rm -f conftest.er1
23409   cat conftest.err >&5
23410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411   (exit $ac_status); } && {
23412          test -z "$ac_c_werror_flag" ||
23413          test ! -s conftest.err
23414        } && test -s conftest.$ac_objext; then
23415   ac_cv_sizeof_signed_long_long_int=$ac_size
23416 else
23417   echo "$as_me: failed program was:" >&5
23418 sed 's/^/| /' conftest.$ac_ext >&5
23419
23420
23421 fi
23422
23423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23424    if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
23425   done
23426
23427 fi
23428
23429
23430 signed=$ac_cv_sizeof_signed_long_long_int
23431 if test x$signed = x ; then
23432   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
23433 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
23434    { (exit 1); exit 1; }; }
23435 fi
23436 if test x$unspecif != x$signed ; then
23437   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
23438 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
23439    { (exit 1); exit 1; }; }
23440 fi
23441
23442     if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
23443   echo $ECHO_N "(cached) $ECHO_C" >&6
23444 else
23445   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23446    cat >conftest.$ac_ext <<_ACEOF
23447 /* confdefs.h.  */
23448 _ACEOF
23449 cat confdefs.h >>conftest.$ac_ext
23450 cat >>conftest.$ac_ext <<_ACEOF
23451 /* end confdefs.h.  */
23452 #include "confdefs.h"
23453    #include <sys/types.h>
23454
23455
23456 int
23457 main ()
23458 {
23459 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
23460   ;
23461   return 0;
23462 }
23463 _ACEOF
23464 rm -f conftest.$ac_objext
23465 if { (ac_try="$ac_compile"
23466 case "(($ac_try" in
23467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23468   *) ac_try_echo=$ac_try;;
23469 esac
23470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23471   (eval "$ac_compile") 2>conftest.er1
23472   ac_status=$?
23473   grep -v '^ *+' conftest.er1 >conftest.err
23474   rm -f conftest.er1
23475   cat conftest.err >&5
23476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23477   (exit $ac_status); } && {
23478          test -z "$ac_c_werror_flag" ||
23479          test ! -s conftest.err
23480        } && test -s conftest.$ac_objext; then
23481   ac_cv_sizeof_unsigned_long_long_int=$ac_size
23482 else
23483   echo "$as_me: failed program was:" >&5
23484 sed 's/^/| /' conftest.$ac_ext >&5
23485
23486
23487 fi
23488
23489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23490    if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
23491   done
23492
23493 fi
23494
23495
23496 unsigned=$ac_cv_sizeof_unsigned_long_long_int
23497 if test x$unsigned = x ; then
23498   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
23499 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
23500    { (exit 1); exit 1; }; }
23501 fi
23502 if test x$unsigned != x$signed ; then
23503   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
23504 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
23505    { (exit 1); exit 1; }; }
23506 fi
23507
23508 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
23509 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6; }
23510          { echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
23511 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6; }
23512
23513  if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
23514   echo $ECHO_N "(cached) $ECHO_C" >&6
23515 else
23516   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23517    cat >conftest.$ac_ext <<_ACEOF
23518 /* confdefs.h.  */
23519 _ACEOF
23520 cat confdefs.h >>conftest.$ac_ext
23521 cat >>conftest.$ac_ext <<_ACEOF
23522 /* end confdefs.h.  */
23523 #include "confdefs.h"
23524      #include <sys/types.h>
23525      struct s { char c; long long int i; };
23526
23527 int
23528 main ()
23529 {
23530 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
23531   ;
23532   return 0;
23533 }
23534 _ACEOF
23535 rm -f conftest.$ac_objext
23536 if { (ac_try="$ac_compile"
23537 case "(($ac_try" in
23538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23539   *) ac_try_echo=$ac_try;;
23540 esac
23541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23542   (eval "$ac_compile") 2>conftest.er1
23543   ac_status=$?
23544   grep -v '^ *+' conftest.er1 >conftest.err
23545   rm -f conftest.er1
23546   cat conftest.err >&5
23547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548   (exit $ac_status); } && {
23549          test -z "$ac_c_werror_flag" ||
23550          test ! -s conftest.err
23551        } && test -s conftest.$ac_objext; then
23552   ac_cv_struct_boundary_long_long_int=$ac_size
23553 else
23554   echo "$as_me: failed program was:" >&5
23555 sed 's/^/| /' conftest.$ac_ext >&5
23556
23557
23558 fi
23559
23560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23561    if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
23562   done
23563
23564 fi
23565
23566  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
23567 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6; }
23568  if test x$ac_cv_struct_boundary_long_long_int = x ; then
23569    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long long int in structures" >&5
23570 echo "$as_me: error: Cannot determine the minimal alignment boundary of long long int in structures" >&2;}
23571    { (exit 1); exit 1; }; }
23572  fi
23573
23574
23575     { echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
23576 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6; }
23577
23578  if test "${ac_cv_struct_boundary_float+set}" = set; then
23579   echo $ECHO_N "(cached) $ECHO_C" >&6
23580 else
23581   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23582    cat >conftest.$ac_ext <<_ACEOF
23583 /* confdefs.h.  */
23584 _ACEOF
23585 cat confdefs.h >>conftest.$ac_ext
23586 cat >>conftest.$ac_ext <<_ACEOF
23587 /* end confdefs.h.  */
23588 #include "confdefs.h"
23589      #include <sys/types.h>
23590      struct s { char c; float i; };
23591
23592 int
23593 main ()
23594 {
23595 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
23596   ;
23597   return 0;
23598 }
23599 _ACEOF
23600 rm -f conftest.$ac_objext
23601 if { (ac_try="$ac_compile"
23602 case "(($ac_try" in
23603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23604   *) ac_try_echo=$ac_try;;
23605 esac
23606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23607   (eval "$ac_compile") 2>conftest.er1
23608   ac_status=$?
23609   grep -v '^ *+' conftest.er1 >conftest.err
23610   rm -f conftest.er1
23611   cat conftest.err >&5
23612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613   (exit $ac_status); } && {
23614          test -z "$ac_c_werror_flag" ||
23615          test ! -s conftest.err
23616        } && test -s conftest.$ac_objext; then
23617   ac_cv_struct_boundary_float=$ac_size
23618 else
23619   echo "$as_me: failed program was:" >&5
23620 sed 's/^/| /' conftest.$ac_ext >&5
23621
23622
23623 fi
23624
23625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23626    if test x$ac_cv_struct_boundary_float != x ; then break; fi
23627   done
23628
23629 fi
23630
23631  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
23632 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6; }
23633  if test x$ac_cv_struct_boundary_float = x ; then
23634    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of float in structures" >&5
23635 echo "$as_me: error: Cannot determine the minimal alignment boundary of float in structures" >&2;}
23636    { (exit 1); exit 1; }; }
23637  fi
23638                { echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
23639 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6; }
23640
23641  if test "${ac_cv_struct_boundary_double+set}" = set; then
23642   echo $ECHO_N "(cached) $ECHO_C" >&6
23643 else
23644   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23645    cat >conftest.$ac_ext <<_ACEOF
23646 /* confdefs.h.  */
23647 _ACEOF
23648 cat confdefs.h >>conftest.$ac_ext
23649 cat >>conftest.$ac_ext <<_ACEOF
23650 /* end confdefs.h.  */
23651 #include "confdefs.h"
23652      #include <sys/types.h>
23653      struct s { char c; double i; };
23654
23655 int
23656 main ()
23657 {
23658 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
23659   ;
23660   return 0;
23661 }
23662 _ACEOF
23663 rm -f conftest.$ac_objext
23664 if { (ac_try="$ac_compile"
23665 case "(($ac_try" in
23666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23667   *) ac_try_echo=$ac_try;;
23668 esac
23669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23670   (eval "$ac_compile") 2>conftest.er1
23671   ac_status=$?
23672   grep -v '^ *+' conftest.er1 >conftest.err
23673   rm -f conftest.er1
23674   cat conftest.err >&5
23675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676   (exit $ac_status); } && {
23677          test -z "$ac_c_werror_flag" ||
23678          test ! -s conftest.err
23679        } && test -s conftest.$ac_objext; then
23680   ac_cv_struct_boundary_double=$ac_size
23681 else
23682   echo "$as_me: failed program was:" >&5
23683 sed 's/^/| /' conftest.$ac_ext >&5
23684
23685
23686 fi
23687
23688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23689    if test x$ac_cv_struct_boundary_double != x ; then break; fi
23690   done
23691
23692 fi
23693
23694  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
23695 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6; }
23696  if test x$ac_cv_struct_boundary_double = x ; then
23697    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of double in structures" >&5
23698 echo "$as_me: error: Cannot determine the minimal alignment boundary of double in structures" >&2;}
23699    { (exit 1); exit 1; }; }
23700  fi
23701
23702
23703 { echo "$as_me:$LINENO: checking size of void *" >&5
23704 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
23705     if test "${ac_cv_sizeof_void_p+set}" = set; then
23706   echo $ECHO_N "(cached) $ECHO_C" >&6
23707 else
23708   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23709    cat >conftest.$ac_ext <<_ACEOF
23710 /* confdefs.h.  */
23711 _ACEOF
23712 cat confdefs.h >>conftest.$ac_ext
23713 cat >>conftest.$ac_ext <<_ACEOF
23714 /* end confdefs.h.  */
23715 #include "confdefs.h"
23716    #include <sys/types.h>
23717
23718
23719 int
23720 main ()
23721 {
23722 switch (0) case 0: case (sizeof (void *) == $ac_size):;
23723   ;
23724   return 0;
23725 }
23726 _ACEOF
23727 rm -f conftest.$ac_objext
23728 if { (ac_try="$ac_compile"
23729 case "(($ac_try" in
23730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23731   *) ac_try_echo=$ac_try;;
23732 esac
23733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23734   (eval "$ac_compile") 2>conftest.er1
23735   ac_status=$?
23736   grep -v '^ *+' conftest.er1 >conftest.err
23737   rm -f conftest.er1
23738   cat conftest.err >&5
23739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23740   (exit $ac_status); } && {
23741          test -z "$ac_c_werror_flag" ||
23742          test ! -s conftest.err
23743        } && test -s conftest.$ac_objext; then
23744   ac_cv_sizeof_void_p=$ac_size
23745 else
23746   echo "$as_me: failed program was:" >&5
23747 sed 's/^/| /' conftest.$ac_ext >&5
23748
23749
23750 fi
23751
23752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23753    if test x$ac_cv_sizeof_void_p != x ; then break; fi
23754   done
23755
23756 fi
23757
23758
23759 if test x$ac_cv_sizeof_void_p = x ; then
23760   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
23761 echo "$as_me: error: cannot determine a size for void *" >&2;}
23762    { (exit 1); exit 1; }; }
23763 fi
23764 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23765 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
23766                  { echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
23767 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6; }
23768
23769  if test "${ac_cv_struct_boundary_void_p+set}" = set; then
23770   echo $ECHO_N "(cached) $ECHO_C" >&6
23771 else
23772   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23773    cat >conftest.$ac_ext <<_ACEOF
23774 /* confdefs.h.  */
23775 _ACEOF
23776 cat confdefs.h >>conftest.$ac_ext
23777 cat >>conftest.$ac_ext <<_ACEOF
23778 /* end confdefs.h.  */
23779 #include "confdefs.h"
23780      #include <sys/types.h>
23781      struct s { char c; void * i; };
23782
23783 int
23784 main ()
23785 {
23786 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
23787   ;
23788   return 0;
23789 }
23790 _ACEOF
23791 rm -f conftest.$ac_objext
23792 if { (ac_try="$ac_compile"
23793 case "(($ac_try" in
23794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23795   *) ac_try_echo=$ac_try;;
23796 esac
23797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23798   (eval "$ac_compile") 2>conftest.er1
23799   ac_status=$?
23800   grep -v '^ *+' conftest.er1 >conftest.err
23801   rm -f conftest.er1
23802   cat conftest.err >&5
23803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23804   (exit $ac_status); } && {
23805          test -z "$ac_c_werror_flag" ||
23806          test ! -s conftest.err
23807        } && test -s conftest.$ac_objext; then
23808   ac_cv_struct_boundary_void_p=$ac_size
23809 else
23810   echo "$as_me: failed program was:" >&5
23811 sed 's/^/| /' conftest.$ac_ext >&5
23812
23813
23814 fi
23815
23816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23817    if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
23818   done
23819
23820 fi
23821
23822  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
23823 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6; }
23824  if test x$ac_cv_struct_boundary_void_p = x ; then
23825    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of void * in structures" >&5
23826 echo "$as_me: error: Cannot determine the minimal alignment boundary of void * in structures" >&2;}
23827    { (exit 1); exit 1; }; }
23828  fi
23829
23830 { echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
23831 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6; }
23832     if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
23833   echo $ECHO_N "(cached) $ECHO_C" >&6
23834 else
23835   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23836    cat >conftest.$ac_ext <<_ACEOF
23837 /* confdefs.h.  */
23838 _ACEOF
23839 cat confdefs.h >>conftest.$ac_ext
23840 cat >>conftest.$ac_ext <<_ACEOF
23841 /* end confdefs.h.  */
23842 #include "confdefs.h"
23843    #include <sys/types.h>
23844
23845
23846 int
23847 main ()
23848 {
23849 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
23850   ;
23851   return 0;
23852 }
23853 _ACEOF
23854 rm -f conftest.$ac_objext
23855 if { (ac_try="$ac_compile"
23856 case "(($ac_try" in
23857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23858   *) ac_try_echo=$ac_try;;
23859 esac
23860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23861   (eval "$ac_compile") 2>conftest.er1
23862   ac_status=$?
23863   grep -v '^ *+' conftest.er1 >conftest.err
23864   rm -f conftest.er1
23865   cat conftest.err >&5
23866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23867   (exit $ac_status); } && {
23868          test -z "$ac_c_werror_flag" ||
23869          test ! -s conftest.err
23870        } && test -s conftest.$ac_objext; then
23871   ac_cv_sizeof_void_LpR_LvoidR=$ac_size
23872 else
23873   echo "$as_me: failed program was:" >&5
23874 sed 's/^/| /' conftest.$ac_ext >&5
23875
23876
23877 fi
23878
23879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23880    if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
23881   done
23882
23883 fi
23884
23885
23886 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
23887   { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
23888 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
23889    { (exit 1); exit 1; }; }
23890 fi
23891 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
23892 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6; }
23893
23894
23895
23896 { echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
23897 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6; }
23898 if test x$endian = x1 ; then
23899   trace_endian=B
23900 else
23901   trace_endian=l
23902 fi
23903 gras_arch=unknown
23904 trace="$trace_endian"
23905
23906 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
23907
23908 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
23909 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
23910 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
23911 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
23912
23913 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
23914 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
23915
23916 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
23917
23918 # sizeof float/double are not tested since IEEE 754 is assumed.
23919 # Check README.IEEE for rational.
23920
23921 # The numbers after the _ in the arch name are the maximal packing boundary.
23922 # big32_2   means that all data are aligned on a 2 bytes boundary.              (ARM)
23923 # big32_8_4 means that some or them are aligned on 8 bytes, some are on 4 bytes (AIX)
23924 case $trace in
23925   l_C:1/1:_I:2/1:4/1:4/1:8/1:_P:4/1:4/1:_D:4/1:8/1:) gras_arch=0; gras_size=32; gras_arch_name=little32_1;;
23926   l_C:1/1:_I:2/2:4/2:4/2:8/2:_P:4/2:4/2:_D:4/2:8/2:) gras_arch=1; gras_size=32; gras_arch_name=little32_2;;
23927   l_C:1/1:_I:2/2:4/4:4/4:8/4:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=2; gras_size=32; gras_arch_name=little32_4;;
23928   l_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/8:) gras_arch=3; gras_size=32; gras_arch_name=little32_8;;
23929
23930   l_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/8:) gras_arch=4; gras_size=64; gras_arch_name=little64;;
23931
23932   B_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/8:) gras_arch=5; gras_size=32; gras_arch_name=big32;;
23933   B_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=6; gras_size=32; gras_arch_name=big32_8_4;;
23934   B_C:1/1:_I:2/2:4/4:4/4:8/4:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=7; gras_size=32; gras_arch_name=big32_4;;
23935   B_C:1/1:_I:2/2:4/2:4/2:8/2:_P:4/2:4/2:_D:4/2:8/2:) gras_arch=8; gras_size=32; gras_arch_name=big32_2;;
23936
23937   B_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/8:) gras_arch=9; gras_size=64; gras_arch_name=big64;;
23938   B_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/4:) gras_arch=10;gras_size=64; gras_arch_name=big64_8_4;;
23939 esac
23940 if test x$gras_arch = xunknown ; then
23941   { echo "$as_me:$LINENO: result: damnit ($trace)" >&5
23942 echo "${ECHO_T}damnit ($trace)" >&6; }
23943   { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
23944 Please report this architecture trace ($trace) and what it corresponds to." >&5
23945 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
23946 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
23947    { (exit 1); exit 1; }; }
23948 fi
23949 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
23950
23951 cat >>confdefs.h <<_ACEOF
23952 #define GRAS_THISARCH $gras_arch
23953 _ACEOF
23954
23955 { echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
23956 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6; }
23957
23958  if test "$gras_size" = 32; then
23959   GRAS_ARCH_32_BITS_TRUE=
23960   GRAS_ARCH_32_BITS_FALSE='#'
23961 else
23962   GRAS_ARCH_32_BITS_TRUE='#'
23963   GRAS_ARCH_32_BITS_FALSE=
23964 fi
23965
23966
23967 { echo "$as_me:$LINENO: checking the maximal size of scalar" >&5
23968 echo $ECHO_N "checking the maximal size of scalar... $ECHO_C" >&6; }
23969 ac_cv_sizeof_max=0
23970 for s in $ac_cv_sizeof_char \
23971          $ac_cv_sizeof_short_int $ac_cv_sizeof_int $ac_cv_sizeof_long_int $ac_cv_sizeof_long_long_int \
23972          $ac_cv_sizeof_void_p $ac_cv_sizeof_void_LpR_LvoidR \
23973          4 8; do
23974
23975   if test $ac_cv_sizeof_max -lt $s ; then
23976     ac_cv_sizeof_max=$s
23977   fi
23978 done
23979 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_max" >&5
23980 echo "${ECHO_T}$ac_cv_sizeof_max" >&6; }
23981
23982 cat >>confdefs.h <<_ACEOF
23983 #define SIZEOF_MAX $ac_cv_sizeof_max
23984 _ACEOF
23985
23986
23987
23988 # Check architecture signature end
23989   { echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
23990 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6; }
23991    cat >conftest.$ac_ext <<_ACEOF
23992 /* confdefs.h.  */
23993 _ACEOF
23994 cat confdefs.h >>conftest.$ac_ext
23995 cat >>conftest.$ac_ext <<_ACEOF
23996 /* end confdefs.h.  */
23997 #include "confdefs.h"
23998         #include <sys/types.h>
23999         #include <stddef.h> /* offsetof() */
24000         struct s {char c; double d;};
24001
24002 int
24003 main ()
24004 {
24005 switch (0)
24006         case 0:
24007         case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
24008
24009   ;
24010   return 0;
24011 }
24012 _ACEOF
24013 rm -f conftest.$ac_objext
24014 if { (ac_try="$ac_compile"
24015 case "(($ac_try" in
24016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24017   *) ac_try_echo=$ac_try;;
24018 esac
24019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24020   (eval "$ac_compile") 2>conftest.er1
24021   ac_status=$?
24022   grep -v '^ *+' conftest.er1 >conftest.err
24023   rm -f conftest.er1
24024   cat conftest.err >&5
24025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24026   (exit $ac_status); } && {
24027          test -z "$ac_c_werror_flag" ||
24028          test ! -s conftest.err
24029        } && test -s conftest.$ac_objext; then
24030   gras_struct_packed=yes
24031 else
24032   echo "$as_me: failed program was:" >&5
24033 sed 's/^/| /' conftest.$ac_ext >&5
24034
24035         gras_struct_packed=no
24036 fi
24037
24038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24039
24040    { echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
24041 echo "${ECHO_T}$gras_struct_packed" >&6; }
24042    if test x$gras_struct_packed = "xyes" ; then
24043      { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
24044 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
24045    { (exit 1); exit 1; }; }
24046    fi
24047
24048    { echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
24049 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6; }
24050    cat >conftest.$ac_ext <<_ACEOF
24051 /* confdefs.h.  */
24052 _ACEOF
24053 cat confdefs.h >>conftest.$ac_ext
24054 cat >>conftest.$ac_ext <<_ACEOF
24055 /* end confdefs.h.  */
24056 #include "confdefs.h"
24057         #include <sys/types.h>
24058         #include <stddef.h> /* offsetof() */
24059         struct s {double d; int i; char c;};
24060
24061 int
24062 main ()
24063 {
24064 switch (0)
24065         case 0:
24066         case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24067
24068   ;
24069   return 0;
24070 }
24071 _ACEOF
24072 rm -f conftest.$ac_objext
24073 if { (ac_try="$ac_compile"
24074 case "(($ac_try" in
24075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24076   *) ac_try_echo=$ac_try;;
24077 esac
24078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24079   (eval "$ac_compile") 2>conftest.er1
24080   ac_status=$?
24081   grep -v '^ *+' conftest.er1 >conftest.err
24082   rm -f conftest.er1
24083   cat conftest.err >&5
24084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24085   (exit $ac_status); } && {
24086          test -z "$ac_c_werror_flag" ||
24087          test ! -s conftest.err
24088        } && test -s conftest.$ac_objext; then
24089   gras_struct_compact=yes
24090 else
24091   echo "$as_me: failed program was:" >&5
24092 sed 's/^/| /' conftest.$ac_ext >&5
24093
24094         gras_struct_compact=no
24095 fi
24096
24097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24098
24099    { echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
24100 echo "${ECHO_T}$gras_struct_compact" >&6; }
24101
24102    if test x$gras_struct_compact != xyes ; then
24103      { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
24104 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
24105    { (exit 1); exit 1; }; }
24106    fi
24107
24108 cat >>confdefs.h <<_ACEOF
24109 #define GRAS_STRUCT_COMPACT 1
24110 _ACEOF
24111
24112    { echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
24113 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6; }
24114
24115    cat >conftest.$ac_ext <<_ACEOF
24116 /* confdefs.h.  */
24117 _ACEOF
24118 cat confdefs.h >>conftest.$ac_ext
24119 cat >>conftest.$ac_ext <<_ACEOF
24120 /* end confdefs.h.  */
24121 #include "confdefs.h"
24122       #include <sys/types.h>
24123         #include <stddef.h> /* offsetof() */
24124         struct s { double d; int i; char c[6]; };
24125
24126 int
24127 main ()
24128 {
24129 switch (0)
24130       case 0:
24131       case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24132
24133   ;
24134   return 0;
24135 }
24136 _ACEOF
24137 rm -f conftest.$ac_objext
24138 if { (ac_try="$ac_compile"
24139 case "(($ac_try" in
24140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24141   *) ac_try_echo=$ac_try;;
24142 esac
24143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24144   (eval "$ac_compile") 2>conftest.er1
24145   ac_status=$?
24146   grep -v '^ *+' conftest.er1 >conftest.err
24147   rm -f conftest.er1
24148   cat conftest.err >&5
24149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24150   (exit $ac_status); } && {
24151          test -z "$ac_c_werror_flag" ||
24152          test ! -s conftest.err
24153        } && test -s conftest.$ac_objext; then
24154   gras_array_straddle_struct=yes
24155 else
24156   echo "$as_me: failed program was:" >&5
24157 sed 's/^/| /' conftest.$ac_ext >&5
24158
24159         gras_array_straddle_struct=no
24160 fi
24161
24162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24163
24164    { echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
24165 echo "${ECHO_T}$gras_array_straddle_struct" >&6; }
24166
24167    if test x$gras_array_straddle_struct = xyes ; then
24168
24169 cat >>confdefs.h <<_ACEOF
24170 #define GRAS_ARRAY_STRADDLE_STRUCT 1
24171 _ACEOF
24172
24173    else
24174      { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
24175 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
24176    { (exit 1); exit 1; }; }
24177    fi
24178
24179
24180
24181
24182
24183   { echo "$as_me:$LINENO: result: " >&5
24184 echo "${ECHO_T}" >&6; }
24185   { echo "$as_me:$LINENO: result: ${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&5
24186 echo "${ECHO_T}${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&6; }
24187
24188
24189
24190
24191 { echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5
24192 echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6; }
24193 if test "${ac_cv_check_mcsc+set}" = set; then
24194   echo $ECHO_N "(cached) $ECHO_C" >&6
24195 else
24196
24197 if test "$cross_compiling" = yes; then
24198   ac_cv_check_mcsc=no
24199
24200 else
24201   cat >conftest.$ac_ext <<_ACEOF
24202 /* confdefs.h.  */
24203 _ACEOF
24204 cat confdefs.h >>conftest.$ac_ext
24205 cat >>conftest.$ac_ext <<_ACEOF
24206 /* end confdefs.h.  */
24207
24208
24209 #include <stdio.h>
24210 #include <stdlib.h>
24211 #include <ucontext.h>
24212
24213 ucontext_t uc_child;
24214 ucontext_t uc_main;
24215
24216 void child(void *arg)
24217 {
24218     if (arg != (void *)12345)
24219         exit(1);
24220     if (swapcontext(&uc_child, &uc_main) != 0)
24221         exit(2);
24222 }
24223
24224 int main(int argc, char *argv[])
24225 {
24226     FILE *fp;
24227     void *stack;
24228
24229     /* the default is that it fails */
24230     if ((fp = fopen("conftestval", "w")) == NULL)
24231         exit(3);
24232     fprintf(fp, "no\n");
24233     fclose(fp);
24234
24235     /* configure a child user-space context */
24236     if ((stack = malloc(64*1024)) == NULL)
24237         exit(4);
24238     if (getcontext(&uc_child) != 0)
24239         exit(5);
24240     uc_child.uc_link = NULL;
24241     uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
24242     uc_child.uc_stack.ss_size = 32*1024;
24243     uc_child.uc_stack.ss_flags = 0;
24244     makecontext(&uc_child, child, 2, (void *)12345);
24245
24246     /* switch into the user context */
24247     if (swapcontext(&uc_main, &uc_child) != 0)
24248         exit(6);
24249
24250     /* Fine, child came home */
24251     if ((fp = fopen("conftestval", "w")) == NULL)
24252         exit(7);
24253     fprintf(fp, "yes\n");
24254     fclose(fp);
24255
24256     /* die successfully */
24257     exit(0);
24258 }
24259
24260 _ACEOF
24261 rm -f conftest$ac_exeext
24262 if { (ac_try="$ac_link"
24263 case "(($ac_try" in
24264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24265   *) ac_try_echo=$ac_try;;
24266 esac
24267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24268   (eval "$ac_link") 2>&5
24269   ac_status=$?
24270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24272   { (case "(($ac_try" in
24273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24274   *) ac_try_echo=$ac_try;;
24275 esac
24276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24277   (eval "$ac_try") 2>&5
24278   ac_status=$?
24279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24280   (exit $ac_status); }; }; then
24281   ac_cv_check_mcsc=`cat conftestval`
24282 else
24283   echo "$as_me: program exited with status $ac_status" >&5
24284 echo "$as_me: failed program was:" >&5
24285 sed 's/^/| /' conftest.$ac_ext >&5
24286
24287 ( exit $ac_status )
24288 ac_cv_check_mcsc=no
24289 fi
24290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24291 fi
24292
24293
24294 fi
24295 { echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5
24296 echo "${ECHO_T}$ac_cv_check_mcsc" >&6; }
24297 if test ".$ac_cv_check_mcsc" = .yes; then
24298     mcsc=yes
24299 else
24300     mcsc=no
24301 fi
24302
24303
24304
24305 for ac_header in pthread.h
24306 do
24307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24309   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24312   echo $ECHO_N "(cached) $ECHO_C" >&6
24313 fi
24314 ac_res=`eval echo '${'$as_ac_Header'}'`
24315                { echo "$as_me:$LINENO: result: $ac_res" >&5
24316 echo "${ECHO_T}$ac_res" >&6; }
24317 else
24318   # Is the header compilable?
24319 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24321 cat >conftest.$ac_ext <<_ACEOF
24322 /* confdefs.h.  */
24323 _ACEOF
24324 cat confdefs.h >>conftest.$ac_ext
24325 cat >>conftest.$ac_ext <<_ACEOF
24326 /* end confdefs.h.  */
24327 $ac_includes_default
24328 #include <$ac_header>
24329 _ACEOF
24330 rm -f conftest.$ac_objext
24331 if { (ac_try="$ac_compile"
24332 case "(($ac_try" in
24333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24334   *) ac_try_echo=$ac_try;;
24335 esac
24336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24337   (eval "$ac_compile") 2>conftest.er1
24338   ac_status=$?
24339   grep -v '^ *+' conftest.er1 >conftest.err
24340   rm -f conftest.er1
24341   cat conftest.err >&5
24342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24343   (exit $ac_status); } && {
24344          test -z "$ac_c_werror_flag" ||
24345          test ! -s conftest.err
24346        } && test -s conftest.$ac_objext; then
24347   ac_header_compiler=yes
24348 else
24349   echo "$as_me: failed program was:" >&5
24350 sed 's/^/| /' conftest.$ac_ext >&5
24351
24352         ac_header_compiler=no
24353 fi
24354
24355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24356 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24357 echo "${ECHO_T}$ac_header_compiler" >&6; }
24358
24359 # Is the header present?
24360 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24362 cat >conftest.$ac_ext <<_ACEOF
24363 /* confdefs.h.  */
24364 _ACEOF
24365 cat confdefs.h >>conftest.$ac_ext
24366 cat >>conftest.$ac_ext <<_ACEOF
24367 /* end confdefs.h.  */
24368 #include <$ac_header>
24369 _ACEOF
24370 if { (ac_try="$ac_cpp conftest.$ac_ext"
24371 case "(($ac_try" in
24372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24373   *) ac_try_echo=$ac_try;;
24374 esac
24375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24376   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24377   ac_status=$?
24378   grep -v '^ *+' conftest.er1 >conftest.err
24379   rm -f conftest.er1
24380   cat conftest.err >&5
24381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24382   (exit $ac_status); } >/dev/null && {
24383          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24384          test ! -s conftest.err
24385        }; then
24386   ac_header_preproc=yes
24387 else
24388   echo "$as_me: failed program was:" >&5
24389 sed 's/^/| /' conftest.$ac_ext >&5
24390
24391   ac_header_preproc=no
24392 fi
24393
24394 rm -f conftest.err conftest.$ac_ext
24395 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24396 echo "${ECHO_T}$ac_header_preproc" >&6; }
24397
24398 # So?  What about this header?
24399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24400   yes:no: )
24401     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24403     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24405     ac_header_preproc=yes
24406     ;;
24407   no:yes:* )
24408     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24410     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24411 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24412     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24414     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24415 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24416     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24418     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24420     ( cat <<\_ASBOX
24421 ## -------------------------------------------------- ##
24422 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24423 ## -------------------------------------------------- ##
24424 _ASBOX
24425      ) | sed "s/^/$as_me: WARNING:     /" >&2
24426     ;;
24427 esac
24428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24431   echo $ECHO_N "(cached) $ECHO_C" >&6
24432 else
24433   eval "$as_ac_Header=\$ac_header_preproc"
24434 fi
24435 ac_res=`eval echo '${'$as_ac_Header'}'`
24436                { echo "$as_me:$LINENO: result: $ac_res" >&5
24437 echo "${ECHO_T}$ac_res" >&6; }
24438
24439 fi
24440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24441   cat >>confdefs.h <<_ACEOF
24442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24443 _ACEOF
24444
24445 fi
24446
24447 done
24448
24449 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24450 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24451 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24452   echo $ECHO_N "(cached) $ECHO_C" >&6
24453 else
24454   ac_check_lib_save_LIBS=$LIBS
24455 LIBS="-lpthread  $LIBS"
24456 cat >conftest.$ac_ext <<_ACEOF
24457 /* confdefs.h.  */
24458 _ACEOF
24459 cat confdefs.h >>conftest.$ac_ext
24460 cat >>conftest.$ac_ext <<_ACEOF
24461 /* end confdefs.h.  */
24462
24463 /* Override any GCC internal prototype to avoid an error.
24464    Use char because int might match the return type of a GCC
24465    builtin and then its argument prototype would still apply.  */
24466 #ifdef __cplusplus
24467 extern "C"
24468 #endif
24469 char pthread_create ();
24470 int
24471 main ()
24472 {
24473 return pthread_create ();
24474   ;
24475   return 0;
24476 }
24477 _ACEOF
24478 rm -f conftest.$ac_objext conftest$ac_exeext
24479 if { (ac_try="$ac_link"
24480 case "(($ac_try" in
24481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24482   *) ac_try_echo=$ac_try;;
24483 esac
24484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24485   (eval "$ac_link") 2>conftest.er1
24486   ac_status=$?
24487   grep -v '^ *+' conftest.er1 >conftest.err
24488   rm -f conftest.er1
24489   cat conftest.err >&5
24490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24491   (exit $ac_status); } && {
24492          test -z "$ac_c_werror_flag" ||
24493          test ! -s conftest.err
24494        } && test -s conftest$ac_exeext &&
24495        $as_test_x conftest$ac_exeext; then
24496   ac_cv_lib_pthread_pthread_create=yes
24497 else
24498   echo "$as_me: failed program was:" >&5
24499 sed 's/^/| /' conftest.$ac_ext >&5
24500
24501         ac_cv_lib_pthread_pthread_create=no
24502 fi
24503
24504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24505       conftest$ac_exeext conftest.$ac_ext
24506 LIBS=$ac_check_lib_save_LIBS
24507 fi
24508 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24509 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24510 if test $ac_cv_lib_pthread_pthread_create = yes; then
24511   pthread=yes
24512 else
24513   pthread=no
24514 fi
24515
24516
24517
24518 if test ".$mcsc" = .yes; then
24519    mcsc=yes
24520 elif test ".$pthread" = .yes; then
24521    pthread=yes
24522 else
24523     ac_header=windows.h
24524     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24525     if test `eval echo '${'$as_ac_Header'}'` = yes; then
24526       windows_context=yes
24527     else
24528       { { echo "$as_me:$LINENO: error: no appropriate backend found" >&5
24529 echo "$as_me: error: no appropriate backend found" >&2;}
24530    { (exit 1); exit 1; }; }
24531     fi
24532 fi
24533  if test x$windows_context = xyes; then
24534   IS_WINDOWS_TRUE=
24535   IS_WINDOWS_FALSE='#'
24536 else
24537   IS_WINDOWS_TRUE='#'
24538   IS_WINDOWS_FALSE=
24539 fi
24540
24541
24542
24543
24544 { echo "$as_me:$LINENO: checking what kind of backend should we use" >&5
24545 echo $ECHO_N "checking what kind of backend should we use... $ECHO_C" >&6; }
24546
24547
24548 # Check whether --with-pthread was given.
24549 if test "${with_pthread+set}" = set; then
24550   withval=$with_pthread; with_context=pthread
24551 fi
24552
24553
24554 # Check whether --with-pthread was given.
24555 if test "${with_pthread+set}" = set; then
24556   withval=$with_pthread; with_context=pthread
24557 fi
24558
24559
24560
24561 # Check whether --with-context was given.
24562 if test "${with_context+set}" = set; then
24563   withval=$with_context;
24564 else
24565   with_context=auto
24566 fi
24567
24568
24569 if test "x$with_context$mcsc" = "xucontextno" ; then
24570   { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
24571 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
24572    { (exit 77); exit 77; }; }
24573 fi
24574
24575 case $with_context in
24576  ucontext) ;;
24577  pthread) ;;
24578  pthreads) ;;
24579  windows) ;;
24580  auto) with_context=ucontext;;
24581  *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
24582 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
24583    { (exit 1); exit 1; }; } ;;
24584 esac
24585
24586 if test "x$with_context" = "xucontext" ; then
24587   if test ".$mcsc" = .yes; then
24588     { echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
24589 echo "${ECHO_T}found working ucontext. Great!" >&6; }
24590
24591 cat >>confdefs.h <<\_ACEOF
24592 #define CONTEXT_UCONTEXT 1
24593 _ACEOF
24594
24595   else
24596     if test ".$windows_context" = .yes ; then
24597       { echo "$as_me:$LINENO: result: use windows context portability layer." >&5
24598 echo "${ECHO_T}use windows context portability layer." >&6; }
24599       with_context=windows
24600     else
24601       { echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
24602 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6; }
24603       with_context=pthread
24604     fi
24605   fi
24606 fi
24607
24608 if test "x$with_context" = "xpthreads"; then
24609   with_context=pthread
24610 fi
24611 if test "x$with_context" = "xpthread"; then
24612
24613 for ac_header in pthread.h
24614 do
24615 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24617   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24620   echo $ECHO_N "(cached) $ECHO_C" >&6
24621 fi
24622 ac_res=`eval echo '${'$as_ac_Header'}'`
24623                { echo "$as_me:$LINENO: result: $ac_res" >&5
24624 echo "${ECHO_T}$ac_res" >&6; }
24625 else
24626   # Is the header compilable?
24627 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24629 cat >conftest.$ac_ext <<_ACEOF
24630 /* confdefs.h.  */
24631 _ACEOF
24632 cat confdefs.h >>conftest.$ac_ext
24633 cat >>conftest.$ac_ext <<_ACEOF
24634 /* end confdefs.h.  */
24635 $ac_includes_default
24636 #include <$ac_header>
24637 _ACEOF
24638 rm -f conftest.$ac_objext
24639 if { (ac_try="$ac_compile"
24640 case "(($ac_try" in
24641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24642   *) ac_try_echo=$ac_try;;
24643 esac
24644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24645   (eval "$ac_compile") 2>conftest.er1
24646   ac_status=$?
24647   grep -v '^ *+' conftest.er1 >conftest.err
24648   rm -f conftest.er1
24649   cat conftest.err >&5
24650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651   (exit $ac_status); } && {
24652          test -z "$ac_c_werror_flag" ||
24653          test ! -s conftest.err
24654        } && test -s conftest.$ac_objext; then
24655   ac_header_compiler=yes
24656 else
24657   echo "$as_me: failed program was:" >&5
24658 sed 's/^/| /' conftest.$ac_ext >&5
24659
24660         ac_header_compiler=no
24661 fi
24662
24663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24664 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24665 echo "${ECHO_T}$ac_header_compiler" >&6; }
24666
24667 # Is the header present?
24668 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24669 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24670 cat >conftest.$ac_ext <<_ACEOF
24671 /* confdefs.h.  */
24672 _ACEOF
24673 cat confdefs.h >>conftest.$ac_ext
24674 cat >>conftest.$ac_ext <<_ACEOF
24675 /* end confdefs.h.  */
24676 #include <$ac_header>
24677 _ACEOF
24678 if { (ac_try="$ac_cpp conftest.$ac_ext"
24679 case "(($ac_try" in
24680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24681   *) ac_try_echo=$ac_try;;
24682 esac
24683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24684   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24685   ac_status=$?
24686   grep -v '^ *+' conftest.er1 >conftest.err
24687   rm -f conftest.er1
24688   cat conftest.err >&5
24689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24690   (exit $ac_status); } >/dev/null && {
24691          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24692          test ! -s conftest.err
24693        }; then
24694   ac_header_preproc=yes
24695 else
24696   echo "$as_me: failed program was:" >&5
24697 sed 's/^/| /' conftest.$ac_ext >&5
24698
24699   ac_header_preproc=no
24700 fi
24701
24702 rm -f conftest.err conftest.$ac_ext
24703 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24704 echo "${ECHO_T}$ac_header_preproc" >&6; }
24705
24706 # So?  What about this header?
24707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24708   yes:no: )
24709     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24710 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24711     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24712 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24713     ac_header_preproc=yes
24714     ;;
24715   no:yes:* )
24716     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24717 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24718     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24719 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24720     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24721 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24722     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24723 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24724     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24726     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24727 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24728     ( cat <<\_ASBOX
24729 ## -------------------------------------------------- ##
24730 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24731 ## -------------------------------------------------- ##
24732 _ASBOX
24733      ) | sed "s/^/$as_me: WARNING:     /" >&2
24734     ;;
24735 esac
24736 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24739   echo $ECHO_N "(cached) $ECHO_C" >&6
24740 else
24741   eval "$as_ac_Header=\$ac_header_preproc"
24742 fi
24743 ac_res=`eval echo '${'$as_ac_Header'}'`
24744                { echo "$as_me:$LINENO: result: $ac_res" >&5
24745 echo "${ECHO_T}$ac_res" >&6; }
24746
24747 fi
24748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24749   cat >>confdefs.h <<_ACEOF
24750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24751 _ACEOF
24752
24753 fi
24754
24755 done
24756
24757
24758 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24759 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24760 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24761   echo $ECHO_N "(cached) $ECHO_C" >&6
24762 else
24763   ac_check_lib_save_LIBS=$LIBS
24764 LIBS="-lpthread  $LIBS"
24765 cat >conftest.$ac_ext <<_ACEOF
24766 /* confdefs.h.  */
24767 _ACEOF
24768 cat confdefs.h >>conftest.$ac_ext
24769 cat >>conftest.$ac_ext <<_ACEOF
24770 /* end confdefs.h.  */
24771
24772 /* Override any GCC internal prototype to avoid an error.
24773    Use char because int might match the return type of a GCC
24774    builtin and then its argument prototype would still apply.  */
24775 #ifdef __cplusplus
24776 extern "C"
24777 #endif
24778 char pthread_create ();
24779 int
24780 main ()
24781 {
24782 return pthread_create ();
24783   ;
24784   return 0;
24785 }
24786 _ACEOF
24787 rm -f conftest.$ac_objext conftest$ac_exeext
24788 if { (ac_try="$ac_link"
24789 case "(($ac_try" in
24790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24791   *) ac_try_echo=$ac_try;;
24792 esac
24793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24794   (eval "$ac_link") 2>conftest.er1
24795   ac_status=$?
24796   grep -v '^ *+' conftest.er1 >conftest.err
24797   rm -f conftest.er1
24798   cat conftest.err >&5
24799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800   (exit $ac_status); } && {
24801          test -z "$ac_c_werror_flag" ||
24802          test ! -s conftest.err
24803        } && test -s conftest$ac_exeext &&
24804        $as_test_x conftest$ac_exeext; then
24805   ac_cv_lib_pthread_pthread_create=yes
24806 else
24807   echo "$as_me: failed program was:" >&5
24808 sed 's/^/| /' conftest.$ac_ext >&5
24809
24810         ac_cv_lib_pthread_pthread_create=no
24811 fi
24812
24813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24814       conftest$ac_exeext conftest.$ac_ext
24815 LIBS=$ac_check_lib_save_LIBS
24816 fi
24817 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24818 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24819 if test $ac_cv_lib_pthread_pthread_create = yes; then
24820   cat >>confdefs.h <<_ACEOF
24821 #define HAVE_LIBPTHREAD 1
24822 _ACEOF
24823
24824   LIBS="-lpthread $LIBS"
24825
24826 else
24827   { { echo "$as_me:$LINENO: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&5
24828 echo "$as_me: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&2;}
24829    { (exit 1); exit 1; }; }
24830 fi
24831
24832
24833 cat >>confdefs.h <<\_ACEOF
24834 #define CONTEXT_THREADS 1
24835 _ACEOF
24836
24837   { echo "$as_me:$LINENO: result: You have pthreads and requested for them. Fine." >&5
24838 echo "${ECHO_T}You have pthreads and requested for them. Fine." >&6; }
24839 fi
24840  if test "x$with_context" != xucontext; then
24841   CONTEXT_THREADS_TRUE=
24842   CONTEXT_THREADS_FALSE='#'
24843 else
24844   CONTEXT_THREADS_TRUE='#'
24845   CONTEXT_THREADS_FALSE=
24846 fi
24847
24848
24849
24850 if test "x$with_context" = "xucontext" ; then
24851   { echo "$as_me:$LINENO: checking for direction of stack growth" >&5
24852 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6; }
24853 if test "${ac_cv_check_stackgrowth+set}" = set; then
24854   echo $ECHO_N "(cached) $ECHO_C" >&6
24855 else
24856
24857 cross_compiling=no
24858 if test "$cross_compiling" = yes; then
24859   ac_cv_check_stackgrowth=down
24860
24861 else
24862   cat >conftest.$ac_ext <<_ACEOF
24863 /* confdefs.h.  */
24864 _ACEOF
24865 cat confdefs.h >>conftest.$ac_ext
24866 cat >>conftest.$ac_ext <<_ACEOF
24867 /* end confdefs.h.  */
24868
24869 #include <stdio.h>
24870 #include <stdlib.h>
24871 static int iterate = 10;
24872 static int growsdown(int *x)
24873 {
24874     auto int y;
24875     y = (x > &y);
24876     if (--iterate > 0)
24877         y = growsdown(&y);
24878     if (y != (x > &y))
24879         exit(1);
24880     return y;
24881 }
24882 int main(int argc, char *argv[])
24883 {
24884     FILE *f;
24885     auto int x;
24886     if ((f = fopen("conftestval", "w")) == NULL)
24887         exit(1);
24888     fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
24889     fclose(f);
24890     exit(0);
24891 }
24892
24893
24894 _ACEOF
24895 rm -f conftest$ac_exeext
24896 if { (ac_try="$ac_link"
24897 case "(($ac_try" in
24898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24899   *) ac_try_echo=$ac_try;;
24900 esac
24901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24902   (eval "$ac_link") 2>&5
24903   ac_status=$?
24904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24905   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24906   { (case "(($ac_try" in
24907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24908   *) ac_try_echo=$ac_try;;
24909 esac
24910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24911   (eval "$ac_try") 2>&5
24912   ac_status=$?
24913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914   (exit $ac_status); }; }; then
24915   ac_cv_check_stackgrowth=`cat conftestval`
24916 else
24917   echo "$as_me: program exited with status $ac_status" >&5
24918 echo "$as_me: failed program was:" >&5
24919 sed 's/^/| /' conftest.$ac_ext >&5
24920
24921 ( exit $ac_status )
24922 ac_cv_check_stackgrowth=down
24923 fi
24924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24925 fi
24926
24927
24928 fi
24929 { echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
24930 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6; }
24931 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24932     val="-1"
24933 else
24934     val="+1"
24935 fi
24936
24937 cat >>confdefs.h <<_ACEOF
24938 #define PTH_STACKGROWTH $val
24939 _ACEOF
24940
24941
24942   if test ".$ac_cv_check_stackgrowth" = ".down"; then
24943       PTH_STACK_GROWTH="down"
24944   else
24945       PTH_STACK_GROWTH="up"
24946   fi
24947
24948
24949
24950
24951
24952
24953 for ac_func in makecontext
24954 do
24955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24956 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24958 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24959   echo $ECHO_N "(cached) $ECHO_C" >&6
24960 else
24961   cat >conftest.$ac_ext <<_ACEOF
24962 /* confdefs.h.  */
24963 _ACEOF
24964 cat confdefs.h >>conftest.$ac_ext
24965 cat >>conftest.$ac_ext <<_ACEOF
24966 /* end confdefs.h.  */
24967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24968    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24969 #define $ac_func innocuous_$ac_func
24970
24971 /* System header to define __stub macros and hopefully few prototypes,
24972     which can conflict with char $ac_func (); below.
24973     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24974     <limits.h> exists even on freestanding compilers.  */
24975
24976 #ifdef __STDC__
24977 # include <limits.h>
24978 #else
24979 # include <assert.h>
24980 #endif
24981
24982 #undef $ac_func
24983
24984 /* Override any GCC internal prototype to avoid an error.
24985    Use char because int might match the return type of a GCC
24986    builtin and then its argument prototype would still apply.  */
24987 #ifdef __cplusplus
24988 extern "C"
24989 #endif
24990 char $ac_func ();
24991 /* The GNU C library defines this for functions which it implements
24992     to always fail with ENOSYS.  Some functions are actually named
24993     something starting with __ and the normal name is an alias.  */
24994 #if defined __stub_$ac_func || defined __stub___$ac_func
24995 choke me
24996 #endif
24997
24998 int
24999 main ()
25000 {
25001 return $ac_func ();
25002   ;
25003   return 0;
25004 }
25005 _ACEOF
25006 rm -f conftest.$ac_objext conftest$ac_exeext
25007 if { (ac_try="$ac_link"
25008 case "(($ac_try" in
25009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25010   *) ac_try_echo=$ac_try;;
25011 esac
25012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25013   (eval "$ac_link") 2>conftest.er1
25014   ac_status=$?
25015   grep -v '^ *+' conftest.er1 >conftest.err
25016   rm -f conftest.er1
25017   cat conftest.err >&5
25018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019   (exit $ac_status); } && {
25020          test -z "$ac_c_werror_flag" ||
25021          test ! -s conftest.err
25022        } && test -s conftest$ac_exeext &&
25023        $as_test_x conftest$ac_exeext; then
25024   eval "$as_ac_var=yes"
25025 else
25026   echo "$as_me: failed program was:" >&5
25027 sed 's/^/| /' conftest.$ac_ext >&5
25028
25029         eval "$as_ac_var=no"
25030 fi
25031
25032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25033       conftest$ac_exeext conftest.$ac_ext
25034 fi
25035 ac_res=`eval echo '${'$as_ac_var'}'`
25036                { echo "$as_me:$LINENO: result: $ac_res" >&5
25037 echo "${ECHO_T}$ac_res" >&6; }
25038 if test `eval echo '${'$as_ac_var'}'` = yes; then
25039   cat >>confdefs.h <<_ACEOF
25040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25041 _ACEOF
25042
25043 fi
25044 done
25045
25046
25047 { echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
25048 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6; }
25049 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
25050   echo $ECHO_N "(cached) $ECHO_C" >&6
25051 else
25052
25053 if test ".$ac_cv_func_makecontext" = .no; then
25054         ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
25055 else
25056         OCFLAGS="$CFLAGS"
25057     CFLAGS="$CFLAGS -DTEST_makecontext"
25058     cross_compiling=no
25059         if test "$cross_compiling" = yes; then
25060
25061 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25062
25063 else
25064   cat >conftest.$ac_ext <<_ACEOF
25065 /* confdefs.h.  */
25066 _ACEOF
25067 cat confdefs.h >>conftest.$ac_ext
25068 cat >>conftest.$ac_ext <<_ACEOF
25069 /* end confdefs.h.  */
25070
25071 #include <stdio.h>
25072 #include <stdlib.h>
25073 #include <string.h>
25074 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25075 #include <sys/types.h>
25076 #include <signal.h>
25077 #include <unistd.h>
25078 #endif
25079 #if defined(TEST_makecontext)
25080 #include <ucontext.h>
25081 #endif
25082 union alltypes {
25083     long   l;
25084     double d;
25085     void  *vp;
25086     void (*fp)(void);
25087     char  *cp;
25088 };
25089 static volatile char *handler_addr = (char *)0xDEAD;
25090 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25091 static volatile int handler_done = 0;
25092 void handler(int sig)
25093 {
25094     char garbage[1024];
25095     int i;
25096     auto int dummy;
25097     for (i = 0; i < 1024; i++)
25098         garbage[i] = 'X';
25099     handler_addr = (char *)&dummy;
25100     handler_done = 1;
25101     return;
25102 }
25103 #endif
25104 #if defined(TEST_makecontext)
25105 static ucontext_t uc_handler;
25106 static ucontext_t uc_main;
25107 void handler(void)
25108 {
25109     char garbage[1024];
25110     int i;
25111     auto int dummy;
25112     for (i = 0; i < 1024; i++)
25113         garbage[i] = 'X';
25114     handler_addr = (char *)&dummy;
25115     swapcontext(&uc_handler, &uc_main);
25116     return;
25117 }
25118 #endif
25119 int main(int argc, char *argv[])
25120 {
25121     FILE *f;
25122     char *skaddr;
25123     char *skbuf;
25124     int sksize;
25125     char result[1024];
25126     int i;
25127     sksize = 32768;
25128     skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
25129     if (skbuf == NULL)
25130         exit(1);
25131     for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
25132         skbuf[i] = 'A';
25133     skaddr = skbuf+sizeof(union alltypes);
25134 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25135     {
25136         struct sigaction sa;
25137 #if defined(TEST_sigstack)
25138         struct sigstack ss;
25139 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
25140         stack_t ss;
25141 #else
25142         struct sigaltstack ss;
25143 #endif
25144 #if defined(TEST_sigstack)
25145         ss.ss_sp      = (void *)(skaddr + sksize);
25146         ss.ss_onstack = 0;
25147         if (sigstack(&ss, NULL) < 0)
25148             exit(1);
25149 #elif defined(TEST_sigaltstack)
25150         ss.ss_sp    = (void *)(skaddr + sksize);
25151         ss.ss_size  = sksize;
25152         ss.ss_flags = 0;
25153         if (sigaltstack(&ss, NULL) < 0)
25154             exit(1);
25155 #endif
25156         memset((void *)&sa, 0, sizeof(struct sigaction));
25157         sa.sa_handler = handler;
25158         sa.sa_flags = SA_ONSTACK;
25159         sigemptyset(&sa.sa_mask);
25160         sigaction(SIGUSR1, &sa, NULL);
25161         kill(getpid(), SIGUSR1);
25162         while (!handler_done)
25163             /*nop*/;
25164     }
25165 #endif
25166 #if defined(TEST_makecontext)
25167     {
25168         if (getcontext(&uc_handler) != 0)
25169             exit(1);
25170         uc_handler.uc_link = NULL;
25171         uc_handler.uc_stack.ss_sp    = (void *)(skaddr + sksize);
25172         uc_handler.uc_stack.ss_size  = sksize;
25173         uc_handler.uc_stack.ss_flags = 0;
25174         makecontext(&uc_handler, handler, 1);
25175         swapcontext(&uc_main, &uc_handler);
25176     }
25177 #endif
25178     if (handler_addr == (char *)0xDEAD)
25179         exit(1);
25180     if (handler_addr < skaddr+sksize) {
25181         /* stack was placed into lower area */
25182         if (*(skaddr+sksize) != 'A')
25183              sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
25184                      sizeof(union alltypes), sizeof(union alltypes));
25185         else
25186              strcpy(result, "(skaddr)+(sksize),(sksize)");
25187     }
25188     else {
25189         /* stack was placed into higher area */
25190         if (*(skaddr+sksize*2) != 'A')
25191             sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
25192         else
25193             strcpy(result, "(skaddr),(sksize)");
25194     }
25195     if ((f = fopen("conftestval", "w")) == NULL)
25196         exit(1);
25197     fprintf(f, "%s\n", result);
25198     fclose(f);
25199     exit(0);
25200 }
25201
25202 _ACEOF
25203 rm -f conftest$ac_exeext
25204 if { (ac_try="$ac_link"
25205 case "(($ac_try" in
25206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25207   *) ac_try_echo=$ac_try;;
25208 esac
25209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25210   (eval "$ac_link") 2>&5
25211   ac_status=$?
25212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25213   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25214   { (case "(($ac_try" in
25215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25216   *) ac_try_echo=$ac_try;;
25217 esac
25218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25219   (eval "$ac_try") 2>&5
25220   ac_status=$?
25221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222   (exit $ac_status); }; }; then
25223
25224 ac_cv_stacksetup_makecontext=`cat conftestval`
25225 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
25226
25227 else
25228   echo "$as_me: program exited with status $ac_status" >&5
25229 echo "$as_me: failed program was:" >&5
25230 sed 's/^/| /' conftest.$ac_ext >&5
25231
25232 ( exit $ac_status )
25233
25234 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25235
25236 fi
25237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25238 fi
25239
25240
25241 CFLAGS="$OCFLAGS"
25242
25243 fi
25244 fi
25245 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
25246 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
25247 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
25248 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
25249 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
25250 { echo "$as_me:$LINENO: result: $type" >&5
25251 echo "${ECHO_T}$type" >&6; }
25252 if test ".$verbose" = .yes; then
25253     { echo "$as_me:$LINENO: result:   $pth_skaddr_makecontext" >&5
25254 echo "${ECHO_T}  $pth_skaddr_makecontext" >&6; }
25255 fi
25256
25257 if test ".$verbose" = .yes; then
25258     { echo "$as_me:$LINENO: result:   $pth_sksize_makecontext" >&5
25259 echo "${ECHO_T}  $pth_sksize_makecontext" >&6; }
25260 fi
25261
25262
25263 fi
25264
25265 #########################################
25266 ## Check for libraries extra-dependencies
25267 ##
25268
25269
25270   { echo "$as_me:$LINENO: result: " >&5
25271 echo "${ECHO_T}" >&6; }
25272   { echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
25273 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6; }
25274
25275
25276 SIMGRID_DEP=""
25277 SMPI_DEP=""
25278 GRAS_DEP=""
25279
25280 if test xpthread=xyes ; then
25281   # if the pthreads are usable
25282   if test "x$with_context" = "xpthread" ; then
25283     # if we use them to implement the xbt_context
25284     SIMGRID_DEP="-lpthread"
25285   fi
25286   # we need them in any case for the gras lib (which is multithreaded), but on windows (of course)
25287   if test "x$with_context" != "xwindows" ; then
25288     GRAS_DEP="-lpthread"
25289   fi
25290 fi
25291
25292 #########################################
25293 ## Build optional modules (gtnets)
25294 ##
25295 gtnets=no
25296
25297 # Check whether --with-gtnets was given.
25298 if test "${with_gtnets+set}" = set; then
25299   withval=$with_gtnets; gtnets_path="$withval"
25300 else
25301   gtnets_path="no"
25302 fi
25303
25304 if test "x$gtnets_path" = "xno" ; then
25305   { echo "$as_me:$LINENO: result: Eventually you will come to GTNetS." >&5
25306 echo "${ECHO_T}Eventually you will come to GTNetS." >&6; }
25307 else
25308   { echo "$as_me:$LINENO: result: ***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. *****" >&5
25309 echo "${ECHO_T}***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. *****" >&6; }
25310   { echo "$as_me:$LINENO: checking for gtnets" >&5
25311 echo $ECHO_N "checking for gtnets... $ECHO_C" >&6; }
25312   ac_ext=cpp
25313 ac_cpp='$CXXCPP $CPPFLAGS'
25314 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25315 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25316 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25317
25318   GTNETS_LDFLAGS="-lgtnets -L$gtnets_path/lib"
25319   GTNETS_CPPFLAGS="-I$gtnets_path/include -I$gtnets_path/include/gtnets"
25320   LDFLAGS_SAV=$LDFLAGS
25321   CPPFLAGS_SAV=$CPPFLAGS
25322   CPPFLAGS+=$GTNETS_CPPFLAGS
25323   LDFLAGS+=$GTNETS_LDFLAGS
25324   cat >conftest.$ac_ext <<_ACEOF
25325 /* confdefs.h.  */
25326 _ACEOF
25327 cat confdefs.h >>conftest.$ac_ext
25328 cat >>conftest.$ac_ext <<_ACEOF
25329 /* end confdefs.h.  */
25330  #include <simulator.h>
25331
25332 int
25333 main ()
25334 {
25335 Simulator s; s.RunUntilNextCompletion();
25336   ;
25337   return 0;
25338 }
25339 _ACEOF
25340 rm -f conftest.$ac_objext conftest$ac_exeext
25341 if { (ac_try="$ac_link"
25342 case "(($ac_try" in
25343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25344   *) ac_try_echo=$ac_try;;
25345 esac
25346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25347   (eval "$ac_link") 2>conftest.er1
25348   ac_status=$?
25349   grep -v '^ *+' conftest.er1 >conftest.err
25350   rm -f conftest.er1
25351   cat conftest.err >&5
25352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25353   (exit $ac_status); } && {
25354          test -z "$ac_cxx_werror_flag" ||
25355          test ! -s conftest.err
25356        } && test -s conftest$ac_exeext &&
25357        $as_test_x conftest$ac_exeext; then
25358   gtnets=yes
25359 else
25360   echo "$as_me: failed program was:" >&5
25361 sed 's/^/| /' conftest.$ac_ext >&5
25362
25363         gtnets=no
25364 fi
25365
25366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25367       conftest$ac_exeext conftest.$ac_ext
25368   CPPFLAGS=$CPPFLAGS_SAV
25369   LDFLAGS=$LDFLAGS_SAV
25370   ac_ext=c
25371 ac_cpp='$CPP $CPPFLAGS'
25372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25375
25376
25377   if test "x$gtnets" = xyes ; then
25378     AM_CPPFLAGS="$AM_CPPFLAGS $GTNETS_CPPFLAGS"
25379     SIMGRID_DEP="$SIMGRID_DEP $GTNETS_LDFLAGS"
25380     { echo "$as_me:$LINENO: result: Found working gtnets library." >&5
25381 echo "${ECHO_T}Found working gtnets library." >&6; }
25382
25383 cat >>confdefs.h <<\_ACEOF
25384 #define HAVE_GTNETS 1
25385 _ACEOF
25386
25387   else
25388     { echo "$as_me:$LINENO: result: Could not find any working gtnets library or not patched version" >&5
25389 echo "${ECHO_T}Could not find any working gtnets library or not patched version" >&6; }
25390   fi
25391 fi
25392  if test "x$gtnets" != xno; then
25393   HAVE_GTNETS_TRUE=
25394   HAVE_GTNETS_FALSE='#'
25395 else
25396   HAVE_GTNETS_TRUE='#'
25397   HAVE_GTNETS_FALSE=
25398 fi
25399
25400
25401 #########################################
25402 ## Build optional modules (csdp)
25403 ##
25404 csdp=no
25405
25406 # Check whether --with-csdp was given.
25407 if test "${with_csdp+set}" = set; then
25408   withval=$with_csdp; csdp_path="$withval"
25409 else
25410   csdp_path="no"
25411 fi
25412
25413 if test "x$csdp_path" = "xno" ; then
25414   { echo "$as_me:$LINENO: result: Eventually you will come to csdp." >&5
25415 echo "${ECHO_T}Eventually you will come to csdp." >&6; }
25416 else
25417   { echo "$as_me:$LINENO: result: ***** You have decided to use csdp. Let's check whether it works or not *****" >&5
25418 echo "${ECHO_T}***** You have decided to use csdp. Let's check whether it works or not *****" >&6; }
25419   { echo "$as_me:$LINENO: checking for csdp" >&5
25420 echo $ECHO_N "checking for csdp... $ECHO_C" >&6; }
25421   CSDP_LDFLAGS="-L$csdp_path/lib -lsdp -llapack -lblas -lm"
25422   CSDP_CPPFLAGS="-I$csdp_path/include -I$csdp_path/include/csdp"
25423
25424   { echo "$as_me:$LINENO: checking for easy_sdp in -lsdp" >&5
25425 echo $ECHO_N "checking for easy_sdp in -lsdp... $ECHO_C" >&6; }
25426 if test "${ac_cv_lib_sdp_easy_sdp+set}" = set; then
25427   echo $ECHO_N "(cached) $ECHO_C" >&6
25428 else
25429   ac_check_lib_save_LIBS=$LIBS
25430 LIBS="-lsdp $CSDP_LDFLAGS $LIBS"
25431 cat >conftest.$ac_ext <<_ACEOF
25432 /* confdefs.h.  */
25433 _ACEOF
25434 cat confdefs.h >>conftest.$ac_ext
25435 cat >>conftest.$ac_ext <<_ACEOF
25436 /* end confdefs.h.  */
25437
25438 /* Override any GCC internal prototype to avoid an error.
25439    Use char because int might match the return type of a GCC
25440    builtin and then its argument prototype would still apply.  */
25441 #ifdef __cplusplus
25442 extern "C"
25443 #endif
25444 char easy_sdp ();
25445 int
25446 main ()
25447 {
25448 return easy_sdp ();
25449   ;
25450   return 0;
25451 }
25452 _ACEOF
25453 rm -f conftest.$ac_objext conftest$ac_exeext
25454 if { (ac_try="$ac_link"
25455 case "(($ac_try" in
25456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25457   *) ac_try_echo=$ac_try;;
25458 esac
25459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25460   (eval "$ac_link") 2>conftest.er1
25461   ac_status=$?
25462   grep -v '^ *+' conftest.er1 >conftest.err
25463   rm -f conftest.er1
25464   cat conftest.err >&5
25465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466   (exit $ac_status); } && {
25467          test -z "$ac_c_werror_flag" ||
25468          test ! -s conftest.err
25469        } && test -s conftest$ac_exeext &&
25470        $as_test_x conftest$ac_exeext; then
25471   ac_cv_lib_sdp_easy_sdp=yes
25472 else
25473   echo "$as_me: failed program was:" >&5
25474 sed 's/^/| /' conftest.$ac_ext >&5
25475
25476         ac_cv_lib_sdp_easy_sdp=no
25477 fi
25478
25479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25480       conftest$ac_exeext conftest.$ac_ext
25481 LIBS=$ac_check_lib_save_LIBS
25482 fi
25483 { echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_easy_sdp" >&5
25484 echo "${ECHO_T}$ac_cv_lib_sdp_easy_sdp" >&6; }
25485 if test $ac_cv_lib_sdp_easy_sdp = yes; then
25486   csdp_lib=yes
25487 else
25488   csdp_lib=no
25489 fi
25490
25491
25492   CPPFLAGS_SAV=$CPPFLAGS
25493   CPPFLAGS+=$CSDP_CPPFLAGS
25494   if test "${ac_cv_header_declarations_h+set}" = set; then
25495   { echo "$as_me:$LINENO: checking for declarations.h" >&5
25496 echo $ECHO_N "checking for declarations.h... $ECHO_C" >&6; }
25497 if test "${ac_cv_header_declarations_h+set}" = set; then
25498   echo $ECHO_N "(cached) $ECHO_C" >&6
25499 fi
25500 { echo "$as_me:$LINENO: result: $ac_cv_header_declarations_h" >&5
25501 echo "${ECHO_T}$ac_cv_header_declarations_h" >&6; }
25502 else
25503   # Is the header compilable?
25504 { echo "$as_me:$LINENO: checking declarations.h usability" >&5
25505 echo $ECHO_N "checking declarations.h usability... $ECHO_C" >&6; }
25506 cat >conftest.$ac_ext <<_ACEOF
25507 /* confdefs.h.  */
25508 _ACEOF
25509 cat confdefs.h >>conftest.$ac_ext
25510 cat >>conftest.$ac_ext <<_ACEOF
25511 /* end confdefs.h.  */
25512 $ac_includes_default
25513 #include <declarations.h>
25514 _ACEOF
25515 rm -f conftest.$ac_objext
25516 if { (ac_try="$ac_compile"
25517 case "(($ac_try" in
25518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25519   *) ac_try_echo=$ac_try;;
25520 esac
25521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25522   (eval "$ac_compile") 2>conftest.er1
25523   ac_status=$?
25524   grep -v '^ *+' conftest.er1 >conftest.err
25525   rm -f conftest.er1
25526   cat conftest.err >&5
25527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25528   (exit $ac_status); } && {
25529          test -z "$ac_c_werror_flag" ||
25530          test ! -s conftest.err
25531        } && test -s conftest.$ac_objext; then
25532   ac_header_compiler=yes
25533 else
25534   echo "$as_me: failed program was:" >&5
25535 sed 's/^/| /' conftest.$ac_ext >&5
25536
25537         ac_header_compiler=no
25538 fi
25539
25540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25541 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25542 echo "${ECHO_T}$ac_header_compiler" >&6; }
25543
25544 # Is the header present?
25545 { echo "$as_me:$LINENO: checking declarations.h presence" >&5
25546 echo $ECHO_N "checking declarations.h presence... $ECHO_C" >&6; }
25547 cat >conftest.$ac_ext <<_ACEOF
25548 /* confdefs.h.  */
25549 _ACEOF
25550 cat confdefs.h >>conftest.$ac_ext
25551 cat >>conftest.$ac_ext <<_ACEOF
25552 /* end confdefs.h.  */
25553 #include <declarations.h>
25554 _ACEOF
25555 if { (ac_try="$ac_cpp conftest.$ac_ext"
25556 case "(($ac_try" in
25557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25558   *) ac_try_echo=$ac_try;;
25559 esac
25560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25561   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25562   ac_status=$?
25563   grep -v '^ *+' conftest.er1 >conftest.err
25564   rm -f conftest.er1
25565   cat conftest.err >&5
25566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25567   (exit $ac_status); } >/dev/null && {
25568          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25569          test ! -s conftest.err
25570        }; then
25571   ac_header_preproc=yes
25572 else
25573   echo "$as_me: failed program was:" >&5
25574 sed 's/^/| /' conftest.$ac_ext >&5
25575
25576   ac_header_preproc=no
25577 fi
25578
25579 rm -f conftest.err conftest.$ac_ext
25580 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25581 echo "${ECHO_T}$ac_header_preproc" >&6; }
25582
25583 # So?  What about this header?
25584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25585   yes:no: )
25586     { echo "$as_me:$LINENO: WARNING: declarations.h: accepted by the compiler, rejected by the preprocessor!" >&5
25587 echo "$as_me: WARNING: declarations.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25588     { echo "$as_me:$LINENO: WARNING: declarations.h: proceeding with the compiler's result" >&5
25589 echo "$as_me: WARNING: declarations.h: proceeding with the compiler's result" >&2;}
25590     ac_header_preproc=yes
25591     ;;
25592   no:yes:* )
25593     { echo "$as_me:$LINENO: WARNING: declarations.h: present but cannot be compiled" >&5
25594 echo "$as_me: WARNING: declarations.h: present but cannot be compiled" >&2;}
25595     { echo "$as_me:$LINENO: WARNING: declarations.h:     check for missing prerequisite headers?" >&5
25596 echo "$as_me: WARNING: declarations.h:     check for missing prerequisite headers?" >&2;}
25597     { echo "$as_me:$LINENO: WARNING: declarations.h: see the Autoconf documentation" >&5
25598 echo "$as_me: WARNING: declarations.h: see the Autoconf documentation" >&2;}
25599     { echo "$as_me:$LINENO: WARNING: declarations.h:     section \"Present But Cannot Be Compiled\"" >&5
25600 echo "$as_me: WARNING: declarations.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25601     { echo "$as_me:$LINENO: WARNING: declarations.h: proceeding with the preprocessor's result" >&5
25602 echo "$as_me: WARNING: declarations.h: proceeding with the preprocessor's result" >&2;}
25603     { echo "$as_me:$LINENO: WARNING: declarations.h: in the future, the compiler will take precedence" >&5
25604 echo "$as_me: WARNING: declarations.h: in the future, the compiler will take precedence" >&2;}
25605     ( cat <<\_ASBOX
25606 ## -------------------------------------------------- ##
25607 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
25608 ## -------------------------------------------------- ##
25609 _ASBOX
25610      ) | sed "s/^/$as_me: WARNING:     /" >&2
25611     ;;
25612 esac
25613 { echo "$as_me:$LINENO: checking for declarations.h" >&5
25614 echo $ECHO_N "checking for declarations.h... $ECHO_C" >&6; }
25615 if test "${ac_cv_header_declarations_h+set}" = set; then
25616   echo $ECHO_N "(cached) $ECHO_C" >&6
25617 else
25618   ac_cv_header_declarations_h=$ac_header_preproc
25619 fi
25620 { echo "$as_me:$LINENO: result: $ac_cv_header_declarations_h" >&5
25621 echo "${ECHO_T}$ac_cv_header_declarations_h" >&6; }
25622
25623 fi
25624 if test $ac_cv_header_declarations_h = yes; then
25625   csdp_header=yes
25626 else
25627   csdp_header=no
25628 fi
25629
25630
25631   CPPFLAGS=$CPPFLAGS_SAV
25632
25633
25634
25635   if test "x$csdp_lib = xyes" -a "x$csdp_header = xyes" ; then
25636      csdp=yes;
25637   else
25638      csdp=no;
25639   fi
25640   if test "x$csdp" = xyes; then
25641     AM_CPPFLAGS="$AM_CPPFLAGS $CSDP_CPPFLAGS"
25642     SIMGRID_DEP="$SIMGRID_DEP $CSDP_LDFLAGS"
25643     { echo "$as_me:$LINENO: result: Found working sdp library." >&5
25644 echo "${ECHO_T}Found working sdp library." >&6; }
25645
25646 cat >>confdefs.h <<\_ACEOF
25647 #define HAVE_SDP 1
25648 _ACEOF
25649
25650   else
25651     { echo "$as_me:$LINENO: result: Could not find any working sdp library." >&5
25652 echo "${ECHO_T}Could not find any working sdp library." >&6; }
25653   fi;
25654 fi
25655  if test x$csdp != xno; then
25656   HAVE_SDP_TRUE=
25657   HAVE_SDP_FALSE='#'
25658 else
25659   HAVE_SDP_TRUE='#'
25660   HAVE_SDP_FALSE=
25661 fi
25662
25663
25664
25665
25666
25667 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25668 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
25669 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25670   echo $ECHO_N "(cached) $ECHO_C" >&6
25671 else
25672   ac_check_lib_save_LIBS=$LIBS
25673 LIBS="-lnsl  $LIBS"
25674 cat >conftest.$ac_ext <<_ACEOF
25675 /* confdefs.h.  */
25676 _ACEOF
25677 cat confdefs.h >>conftest.$ac_ext
25678 cat >>conftest.$ac_ext <<_ACEOF
25679 /* end confdefs.h.  */
25680
25681 /* Override any GCC internal prototype to avoid an error.
25682    Use char because int might match the return type of a GCC
25683    builtin and then its argument prototype would still apply.  */
25684 #ifdef __cplusplus
25685 extern "C"
25686 #endif
25687 char gethostbyname ();
25688 int
25689 main ()
25690 {
25691 return gethostbyname ();
25692   ;
25693   return 0;
25694 }
25695 _ACEOF
25696 rm -f conftest.$ac_objext conftest$ac_exeext
25697 if { (ac_try="$ac_link"
25698 case "(($ac_try" in
25699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25700   *) ac_try_echo=$ac_try;;
25701 esac
25702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25703   (eval "$ac_link") 2>conftest.er1
25704   ac_status=$?
25705   grep -v '^ *+' conftest.er1 >conftest.err
25706   rm -f conftest.er1
25707   cat conftest.err >&5
25708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25709   (exit $ac_status); } && {
25710          test -z "$ac_c_werror_flag" ||
25711          test ! -s conftest.err
25712        } && test -s conftest$ac_exeext &&
25713        $as_test_x conftest$ac_exeext; then
25714   ac_cv_lib_nsl_gethostbyname=yes
25715 else
25716   echo "$as_me: failed program was:" >&5
25717 sed 's/^/| /' conftest.$ac_ext >&5
25718
25719         ac_cv_lib_nsl_gethostbyname=no
25720 fi
25721
25722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25723       conftest$ac_exeext conftest.$ac_ext
25724 LIBS=$ac_check_lib_save_LIBS
25725 fi
25726 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25727 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
25728 if test $ac_cv_lib_nsl_gethostbyname = yes; then
25729   GRAS_DEP="$GRAS_DEP -lnsl"
25730 fi
25731
25732 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25733 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
25734 if test "${ac_cv_lib_socket_connect+set}" = set; then
25735   echo $ECHO_N "(cached) $ECHO_C" >&6
25736 else
25737   ac_check_lib_save_LIBS=$LIBS
25738 LIBS="-lsocket  $LIBS"
25739 cat >conftest.$ac_ext <<_ACEOF
25740 /* confdefs.h.  */
25741 _ACEOF
25742 cat confdefs.h >>conftest.$ac_ext
25743 cat >>conftest.$ac_ext <<_ACEOF
25744 /* end confdefs.h.  */
25745
25746 /* Override any GCC internal prototype to avoid an error.
25747    Use char because int might match the return type of a GCC
25748    builtin and then its argument prototype would still apply.  */
25749 #ifdef __cplusplus
25750 extern "C"
25751 #endif
25752 char connect ();
25753 int
25754 main ()
25755 {
25756 return connect ();
25757   ;
25758   return 0;
25759 }
25760 _ACEOF
25761 rm -f conftest.$ac_objext conftest$ac_exeext
25762 if { (ac_try="$ac_link"
25763 case "(($ac_try" in
25764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25765   *) ac_try_echo=$ac_try;;
25766 esac
25767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25768   (eval "$ac_link") 2>conftest.er1
25769   ac_status=$?
25770   grep -v '^ *+' conftest.er1 >conftest.err
25771   rm -f conftest.er1
25772   cat conftest.err >&5
25773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25774   (exit $ac_status); } && {
25775          test -z "$ac_c_werror_flag" ||
25776          test ! -s conftest.err
25777        } && test -s conftest$ac_exeext &&
25778        $as_test_x conftest$ac_exeext; then
25779   ac_cv_lib_socket_connect=yes
25780 else
25781   echo "$as_me: failed program was:" >&5
25782 sed 's/^/| /' conftest.$ac_ext >&5
25783
25784         ac_cv_lib_socket_connect=no
25785 fi
25786
25787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25788       conftest$ac_exeext conftest.$ac_ext
25789 LIBS=$ac_check_lib_save_LIBS
25790 fi
25791 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25792 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
25793 if test $ac_cv_lib_socket_connect = yes; then
25794   GRAS_DEP="$GRAS_DEP -lsocket"
25795 fi
25796
25797
25798 { echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
25799 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6; }
25800 case $host_os in
25801   *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32";
25802             AM_CPPFLAGS="$AM_CPPFLAGS -DDLL_EXPORT"
25803             cat >>confdefs.h <<\_ACEOF
25804 #define CONTEXT_THREADS 1
25805 _ACEOF
25806 ;;
25807 esac
25808
25809
25810
25811 if test "x$GRAS_DEP" = x; then
25812    { echo "$as_me:$LINENO: result: none" >&5
25813 echo "${ECHO_T}none" >&6; }
25814 else
25815    { echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
25816 echo "${ECHO_T}$GRAS_DEP" >&6; }
25817 fi
25818
25819
25820 ##############################################
25821 ## Enhance maintainer mode and SUBST variables
25822 ## (must be placed after any compilation tests since our overprotective flags
25823 ##  let some tests fail)
25824
25825 # Check whether we are doing a regular build or a GRAMINE (minimal) one
25826 # Next line is modified by sed when building gramine source tree
25827 gramine_mode=no
25828 if test x$gramine_mode = xyes
25829 then
25830   USE_MAINTAINER_MODE=no
25831 fi
25832  if test x$gramine_mode != xno; then
25833   GRAMINE_MODE_TRUE=
25834   GRAMINE_MODE_FALSE='#'
25835 else
25836   GRAMINE_MODE_TRUE='#'
25837   GRAMINE_MODE_FALSE=
25838 fi
25839
25840
25841
25842 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
25843 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
25844     # Check whether --enable-maintainer-mode was given.
25845 if test "${enable_maintainer_mode+set}" = set; then
25846   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
25847 else
25848   USE_MAINTAINER_MODE=no
25849 fi
25850
25851   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
25852 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
25853    if test $USE_MAINTAINER_MODE = yes; then
25854   MAINTAINER_MODE_TRUE=
25855   MAINTAINER_MODE_FALSE='#'
25856 else
25857   MAINTAINER_MODE_TRUE='#'
25858   MAINTAINER_MODE_FALSE=
25859 fi
25860
25861   MAINT=$MAINTAINER_MODE_TRUE
25862
25863
25864 if test x$USE_MAINTAINER_MODE = xyes
25865 then
25866    # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
25867    enable_compile_warnings=yes
25868 fi
25869
25870   # Check whether --enable-compile-warnings was given.
25871 if test "${enable_compile_warnings+set}" = set; then
25872   enableval=$enable_compile_warnings; enable_compile_warnings=$enableval
25873 else
25874   enable_compile_warnings=no
25875 fi
25876
25877
25878   # Check whether --enable-compile-optimizations was given.
25879 if test "${enable_compile_optimizations+set}" = set; then
25880   enableval=$enable_compile_optimizations; enable_compile_optimizations=$enableval
25881 else
25882   enable_compile_optimizations=auto
25883 fi
25884
25885
25886     # AC PROG CC tests whether -g is accepted.
25887     # Cool, but it also tries to set -O2 and -g.
25888     # I don't want it with gcc, but -O3 and -g2, and optimization only when asked by user
25889     case $CC in
25890       *gcc)
25891       if test "$CFLAGS" = "-g -O2" ; then
25892         CFLAGS="-g3"
25893       fi
25894       if test "$CXXFLAGS" = "-g -O2" ; then
25895         CXXFLAGS="-g3"
25896       fi
25897       if test "$GCJFLAGS" = "-g -O2" ; then
25898         CXXFLAGS="-g3"
25899       fi;;
25900     esac
25901
25902   if test "x$enable_compile_warnings" = "xyes" ; then
25903     { echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
25904 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6; }
25905     warnCFLAGS=
25906     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25907       case " $CFLAGS " in
25908       *-Wall*) ;;
25909       *) warnCFLAGS="-Wall -Wunused" ;;
25910       esac
25911
25912       ## -W is not all that useful.  And it cannot be controlled
25913       ## with individual -Wno-xxx flags, unlike -Wall
25914
25915       ## -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
25916       ## -Wshadow chokes on try{ try{} } constructs
25917       if test "x$enable_compile_warnings" = "xyes"; then
25918         warnCFLAGS=`echo $warnCFLAGS  -Wmissing-prototypes -Wmissing-declarations \
25919         -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
25920         -Wno-unused-function  -Wno-strict-aliasing  \
25921         -Werror \
25922         | sed 's/ +/ /g'`
25923         # -Wno-unused-variable  -Wno-unused-label
25924       fi
25925     fi
25926     { echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
25927 echo "${ECHO_T}$warnCFLAGS" >&6; }
25928     # placed before since gcc remembers the last one on conflict
25929     CFLAGS="$warnCFLAGS $CFLAGS"
25930   fi
25931
25932   if test "x$enable_compile_optimizations" = "xyes" ||
25933      test "x$enable_compile_optimizations" = "xauto" ; then
25934     { echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
25935 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6; }
25936     optCFLAGS=
25937     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25938         case " $CFLAGS " in
25939         *-O*) ;;
25940         *) optCFLAGS="$optCFLAGS -O3" ;;
25941         esac
25942         optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
25943
25944         GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
25945         GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
25946         if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" == "x3" ; then
25947           # avoid gcc bug #12828, which apeared in 3.x branch and is fixed in 3.4.0
25948           # but the check would be too complicated to get 3.4.
25949           # Instead, rule out any 3.x compiler.
25950
25951           # Note that the flag didn't exist before gcc 3.0
25952           optCFLAGS="$optCFLAGS -fno-loop-optimize"
25953         fi
25954             fi
25955     { echo "$as_me:$LINENO: result: $optCFLAGS" >&5
25956 echo "${ECHO_T}$optCFLAGS" >&6; }
25957     # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
25958     if test "x$cflags_set" != "xyes" ; then
25959       CFLAGS="$optCFLAGS $CFLAGS"
25960     fi
25961   fi
25962
25963   if test x$lt_cv_prog_gnu_ld = xyes ; then
25964     LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
25965   else
25966     LD_DYNAMIC_FLAGS=
25967   fi
25968
25969
25970
25971
25972
25973
25974
25975
25976
25977
25978
25979
25980
25981
25982
25983
25984   { echo "$as_me:$LINENO: result: " >&5
25985 echo "${ECHO_T}" >&6; }
25986   { echo "$as_me:$LINENO: result: ${T_MD}Check for Java bindings...${T_ME}" >&5
25987 echo "${ECHO_T}${T_MD}Check for Java bindings...${T_ME}" >&6; }
25988
25989 # Java cruft
25990 # Check whether --enable-java was given.
25991 if test "${enable_java+set}" = set; then
25992   enableval=$enable_java; want_java=$enableval
25993 else
25994   want_java=yes
25995 fi
25996
25997 if test "x$want_java" != "xyes" ; then
25998    { echo "$as_me:$LINENO: checking whether to compile java bindings" >&5
25999 echo $ECHO_N "checking whether to compile java bindings... $ECHO_C" >&6; }
26000    { echo "$as_me:$LINENO: result: disabled by user" >&5
26001 echo "${ECHO_T}disabled by user" >&6; }
26002    use_java="disabled by user"
26003 else
26004   # Extract the first word of "javac", so it can be a program name with args.
26005 set dummy javac; ac_word=$2
26006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26008 if test "${ac_cv_path_JAVAC+set}" = set; then
26009   echo $ECHO_N "(cached) $ECHO_C" >&6
26010 else
26011   case $JAVAC in
26012   [\\/]* | ?:[\\/]*)
26013   ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
26014   ;;
26015   *)
26016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26017 for as_dir in $PATH
26018 do
26019   IFS=$as_save_IFS
26020   test -z "$as_dir" && as_dir=.
26021   for ac_exec_ext in '' $ac_executable_extensions; do
26022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26023     ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
26024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26025     break 2
26026   fi
26027 done
26028 done
26029 IFS=$as_save_IFS
26030
26031   test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="`which javac`"
26032   ;;
26033 esac
26034 fi
26035 JAVAC=$ac_cv_path_JAVAC
26036 if test -n "$JAVAC"; then
26037   { echo "$as_me:$LINENO: result: $JAVAC" >&5
26038 echo "${ECHO_T}$JAVAC" >&6; }
26039 else
26040   { echo "$as_me:$LINENO: result: no" >&5
26041 echo "${ECHO_T}no" >&6; }
26042 fi
26043
26044
26045   # Extract the first word of "java ", so it can be a program name with args.
26046 set dummy java ; ac_word=$2
26047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26049 if test "${ac_cv_path_JAVA+set}" = set; then
26050   echo $ECHO_N "(cached) $ECHO_C" >&6
26051 else
26052   case $JAVA in
26053   [\\/]* | ?:[\\/]*)
26054   ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
26055   ;;
26056   *)
26057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26058 for as_dir in $PATH
26059 do
26060   IFS=$as_save_IFS
26061   test -z "$as_dir" && as_dir=.
26062   for ac_exec_ext in '' $ac_executable_extensions; do
26063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26064     ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
26065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26066     break 2
26067   fi
26068 done
26069 done
26070 IFS=$as_save_IFS
26071
26072   test -z "$ac_cv_path_JAVA" && ac_cv_path_JAVA="`which java`"
26073   ;;
26074 esac
26075 fi
26076 JAVA=$ac_cv_path_JAVA
26077 if test -n "$JAVA"; then
26078   { echo "$as_me:$LINENO: result: $JAVA" >&5
26079 echo "${ECHO_T}$JAVA" >&6; }
26080 else
26081   { echo "$as_me:$LINENO: result: no" >&5
26082 echo "${ECHO_T}no" >&6; }
26083 fi
26084
26085
26086   # Extract the first word of "jar  ", so it can be a program name with args.
26087 set dummy jar  ; ac_word=$2
26088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26090 if test "${ac_cv_path_JAR+set}" = set; then
26091   echo $ECHO_N "(cached) $ECHO_C" >&6
26092 else
26093   case $JAR in
26094   [\\/]* | ?:[\\/]*)
26095   ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
26096   ;;
26097   *)
26098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26099 for as_dir in $PATH
26100 do
26101   IFS=$as_save_IFS
26102   test -z "$as_dir" && as_dir=.
26103   for ac_exec_ext in '' $ac_executable_extensions; do
26104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26105     ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
26106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26107     break 2
26108   fi
26109 done
26110 done
26111 IFS=$as_save_IFS
26112
26113   test -z "$ac_cv_path_JAR" && ac_cv_path_JAR="`which jar`"
26114   ;;
26115 esac
26116 fi
26117 JAR=$ac_cv_path_JAR
26118 if test -n "$JAR"; then
26119   { echo "$as_me:$LINENO: result: $JAR" >&5
26120 echo "${ECHO_T}$JAR" >&6; }
26121 else
26122   { echo "$as_me:$LINENO: result: no" >&5
26123 echo "${ECHO_T}no" >&6; }
26124 fi
26125
26126
26127
26128 for ac_header in jni.h
26129 do
26130 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26132   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26135   echo $ECHO_N "(cached) $ECHO_C" >&6
26136 fi
26137 ac_res=`eval echo '${'$as_ac_Header'}'`
26138                { echo "$as_me:$LINENO: result: $ac_res" >&5
26139 echo "${ECHO_T}$ac_res" >&6; }
26140 else
26141   # Is the header compilable?
26142 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26143 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26144 cat >conftest.$ac_ext <<_ACEOF
26145 /* confdefs.h.  */
26146 _ACEOF
26147 cat confdefs.h >>conftest.$ac_ext
26148 cat >>conftest.$ac_ext <<_ACEOF
26149 /* end confdefs.h.  */
26150 $ac_includes_default
26151 #include <$ac_header>
26152 _ACEOF
26153 rm -f conftest.$ac_objext
26154 if { (ac_try="$ac_compile"
26155 case "(($ac_try" in
26156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26157   *) ac_try_echo=$ac_try;;
26158 esac
26159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26160   (eval "$ac_compile") 2>conftest.er1
26161   ac_status=$?
26162   grep -v '^ *+' conftest.er1 >conftest.err
26163   rm -f conftest.er1
26164   cat conftest.err >&5
26165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26166   (exit $ac_status); } && {
26167          test -z "$ac_c_werror_flag" ||
26168          test ! -s conftest.err
26169        } && test -s conftest.$ac_objext; then
26170   ac_header_compiler=yes
26171 else
26172   echo "$as_me: failed program was:" >&5
26173 sed 's/^/| /' conftest.$ac_ext >&5
26174
26175         ac_header_compiler=no
26176 fi
26177
26178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26179 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26180 echo "${ECHO_T}$ac_header_compiler" >&6; }
26181
26182 # Is the header present?
26183 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26184 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26185 cat >conftest.$ac_ext <<_ACEOF
26186 /* confdefs.h.  */
26187 _ACEOF
26188 cat confdefs.h >>conftest.$ac_ext
26189 cat >>conftest.$ac_ext <<_ACEOF
26190 /* end confdefs.h.  */
26191 #include <$ac_header>
26192 _ACEOF
26193 if { (ac_try="$ac_cpp conftest.$ac_ext"
26194 case "(($ac_try" in
26195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26196   *) ac_try_echo=$ac_try;;
26197 esac
26198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26199   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26200   ac_status=$?
26201   grep -v '^ *+' conftest.er1 >conftest.err
26202   rm -f conftest.er1
26203   cat conftest.err >&5
26204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26205   (exit $ac_status); } >/dev/null && {
26206          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26207          test ! -s conftest.err
26208        }; then
26209   ac_header_preproc=yes
26210 else
26211   echo "$as_me: failed program was:" >&5
26212 sed 's/^/| /' conftest.$ac_ext >&5
26213
26214   ac_header_preproc=no
26215 fi
26216
26217 rm -f conftest.err conftest.$ac_ext
26218 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26219 echo "${ECHO_T}$ac_header_preproc" >&6; }
26220
26221 # So?  What about this header?
26222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26223   yes:no: )
26224     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26225 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26226     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26227 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26228     ac_header_preproc=yes
26229     ;;
26230   no:yes:* )
26231     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26232 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26233     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26234 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26235     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26236 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26237     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26238 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26239     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26240 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26241     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26242 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26243     ( cat <<\_ASBOX
26244 ## -------------------------------------------------- ##
26245 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
26246 ## -------------------------------------------------- ##
26247 _ASBOX
26248      ) | sed "s/^/$as_me: WARNING:     /" >&2
26249     ;;
26250 esac
26251 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26254   echo $ECHO_N "(cached) $ECHO_C" >&6
26255 else
26256   eval "$as_ac_Header=\$ac_header_preproc"
26257 fi
26258 ac_res=`eval echo '${'$as_ac_Header'}'`
26259                { echo "$as_me:$LINENO: result: $ac_res" >&5
26260 echo "${ECHO_T}$ac_res" >&6; }
26261
26262 fi
26263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26264   cat >>confdefs.h <<_ACEOF
26265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26266 _ACEOF
26267
26268 fi
26269
26270 done
26271
26272   { echo "$as_me:$LINENO: checking whether to compile java bindings" >&5
26273 echo $ECHO_N "checking whether to compile java bindings... $ECHO_C" >&6; }
26274   if test -n "$JAVAC"   \
26275      && test -n "$JAVA" \
26276      && test -n "$JAR"  \
26277      && test "x$ac_cv_header_jni_h" = "xyes" ; then
26278
26279      use_java="yes"
26280   else
26281      use_java="no"
26282   fi
26283   { echo "$as_me:$LINENO: result: $use_java" >&5
26284 echo "${ECHO_T}$use_java" >&6; }
26285 fi
26286  if test "x$use_java" = "xyes"; then
26287   HAVE_JAVA_TRUE=
26288   HAVE_JAVA_FALSE='#'
26289 else
26290   HAVE_JAVA_TRUE='#'
26291   HAVE_JAVA_FALSE=
26292 fi
26293
26294
26295 #####################
26296 ## Check for programs
26297 ##
26298
26299
26300   { echo "$as_me:$LINENO: result: " >&5
26301 echo "${ECHO_T}" >&6; }
26302   { echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
26303 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6; }
26304
26305 # Extract the first word of "bash", so it can be a program name with args.
26306 set dummy bash; ac_word=$2
26307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26309 if test "${ac_cv_prog_BASH+set}" = set; then
26310   echo $ECHO_N "(cached) $ECHO_C" >&6
26311 else
26312   if test -n "$BASH"; then
26313   ac_cv_prog_BASH="$BASH" # Let the user override the test.
26314 else
26315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26316 for as_dir in $PATH
26317 do
26318   IFS=$as_save_IFS
26319   test -z "$as_dir" && as_dir=.
26320   for ac_exec_ext in '' $ac_executable_extensions; do
26321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26322     ac_cv_prog_BASH="`which bash`"
26323     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26324     break 2
26325   fi
26326 done
26327 done
26328 IFS=$as_save_IFS
26329
26330   test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
26331 fi
26332 fi
26333 BASH=$ac_cv_prog_BASH
26334 if test -n "$BASH"; then
26335   { echo "$as_me:$LINENO: result: $BASH" >&5
26336 echo "${ECHO_T}$BASH" >&6; }
26337 else
26338   { echo "$as_me:$LINENO: result: no" >&5
26339 echo "${ECHO_T}no" >&6; }
26340 fi
26341
26342
26343 WARNING="This file is generated, do not edit"
26344
26345
26346
26347 # Can we rebuild the parsers?
26348 # We really want flex and refuse other lex. So, the parser is portable and
26349 # does not induce extra lib dependency
26350 for ac_prog in flex lex
26351 do
26352   # Extract the first word of "$ac_prog", so it can be a program name with args.
26353 set dummy $ac_prog; ac_word=$2
26354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26356 if test "${ac_cv_prog_LEX+set}" = set; then
26357   echo $ECHO_N "(cached) $ECHO_C" >&6
26358 else
26359   if test -n "$LEX"; then
26360   ac_cv_prog_LEX="$LEX" # Let the user override the test.
26361 else
26362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26363 for as_dir in $PATH
26364 do
26365   IFS=$as_save_IFS
26366   test -z "$as_dir" && as_dir=.
26367   for ac_exec_ext in '' $ac_executable_extensions; do
26368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26369     ac_cv_prog_LEX="$ac_prog"
26370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26371     break 2
26372   fi
26373 done
26374 done
26375 IFS=$as_save_IFS
26376
26377 fi
26378 fi
26379 LEX=$ac_cv_prog_LEX
26380 if test -n "$LEX"; then
26381   { echo "$as_me:$LINENO: result: $LEX" >&5
26382 echo "${ECHO_T}$LEX" >&6; }
26383 else
26384   { echo "$as_me:$LINENO: result: no" >&5
26385 echo "${ECHO_T}no" >&6; }
26386 fi
26387
26388
26389   test -n "$LEX" && break
26390 done
26391 test -n "$LEX" || LEX=":"
26392
26393 if test "x$LEX" != "x:"; then
26394   cat >conftest.l <<_ACEOF
26395 %%
26396 a { ECHO; }
26397 b { REJECT; }
26398 c { yymore (); }
26399 d { yyless (1); }
26400 e { yyless (input () != 0); }
26401 f { unput (yytext[0]); }
26402 . { BEGIN INITIAL; }
26403 %%
26404 #ifdef YYTEXT_POINTER
26405 extern char *yytext;
26406 #endif
26407 int
26408 main (void)
26409 {
26410   return ! yylex () + ! yywrap ();
26411 }
26412 _ACEOF
26413 { (ac_try="$LEX conftest.l"
26414 case "(($ac_try" in
26415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26416   *) ac_try_echo=$ac_try;;
26417 esac
26418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26419   (eval "$LEX conftest.l") 2>&5
26420   ac_status=$?
26421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26422   (exit $ac_status); }
26423 { echo "$as_me:$LINENO: checking lex output file root" >&5
26424 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
26425 if test "${ac_cv_prog_lex_root+set}" = set; then
26426   echo $ECHO_N "(cached) $ECHO_C" >&6
26427 else
26428
26429 if test -f lex.yy.c; then
26430   ac_cv_prog_lex_root=lex.yy
26431 elif test -f lexyy.c; then
26432   ac_cv_prog_lex_root=lexyy
26433 else
26434   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
26435 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
26436    { (exit 1); exit 1; }; }
26437 fi
26438 fi
26439 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
26440 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
26441 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
26442
26443 if test -z "${LEXLIB+set}"; then
26444   { echo "$as_me:$LINENO: checking lex library" >&5
26445 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
26446 if test "${ac_cv_lib_lex+set}" = set; then
26447   echo $ECHO_N "(cached) $ECHO_C" >&6
26448 else
26449
26450     ac_save_LIBS=$LIBS
26451     ac_cv_lib_lex='none needed'
26452     for ac_lib in '' -lfl -ll; do
26453       LIBS="$ac_lib $ac_save_LIBS"
26454       cat >conftest.$ac_ext <<_ACEOF
26455 `cat $LEX_OUTPUT_ROOT.c`
26456 _ACEOF
26457 rm -f conftest.$ac_objext conftest$ac_exeext
26458 if { (ac_try="$ac_link"
26459 case "(($ac_try" in
26460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26461   *) ac_try_echo=$ac_try;;
26462 esac
26463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26464   (eval "$ac_link") 2>conftest.er1
26465   ac_status=$?
26466   grep -v '^ *+' conftest.er1 >conftest.err
26467   rm -f conftest.er1
26468   cat conftest.err >&5
26469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26470   (exit $ac_status); } && {
26471          test -z "$ac_c_werror_flag" ||
26472          test ! -s conftest.err
26473        } && test -s conftest$ac_exeext &&
26474        $as_test_x conftest$ac_exeext; then
26475   ac_cv_lib_lex=$ac_lib
26476 else
26477   echo "$as_me: failed program was:" >&5
26478 sed 's/^/| /' conftest.$ac_ext >&5
26479
26480
26481 fi
26482
26483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26484       conftest$ac_exeext conftest.$ac_ext
26485       test "$ac_cv_lib_lex" != 'none needed' && break
26486     done
26487     LIBS=$ac_save_LIBS
26488
26489 fi
26490 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
26491 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
26492   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
26493 fi
26494
26495
26496 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
26497 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
26498 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
26499   echo $ECHO_N "(cached) $ECHO_C" >&6
26500 else
26501   # POSIX says lex can declare yytext either as a pointer or an array; the
26502 # default is implementation-dependent.  Figure out which it is, since
26503 # not all implementations provide the %pointer and %array declarations.
26504 ac_cv_prog_lex_yytext_pointer=no
26505 ac_save_LIBS=$LIBS
26506 LIBS="$LEXLIB $ac_save_LIBS"
26507 cat >conftest.$ac_ext <<_ACEOF
26508 #define YYTEXT_POINTER 1
26509 `cat $LEX_OUTPUT_ROOT.c`
26510 _ACEOF
26511 rm -f conftest.$ac_objext conftest$ac_exeext
26512 if { (ac_try="$ac_link"
26513 case "(($ac_try" in
26514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26515   *) ac_try_echo=$ac_try;;
26516 esac
26517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26518   (eval "$ac_link") 2>conftest.er1
26519   ac_status=$?
26520   grep -v '^ *+' conftest.er1 >conftest.err
26521   rm -f conftest.er1
26522   cat conftest.err >&5
26523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26524   (exit $ac_status); } && {
26525          test -z "$ac_c_werror_flag" ||
26526          test ! -s conftest.err
26527        } && test -s conftest$ac_exeext &&
26528        $as_test_x conftest$ac_exeext; then
26529   ac_cv_prog_lex_yytext_pointer=yes
26530 else
26531   echo "$as_me: failed program was:" >&5
26532 sed 's/^/| /' conftest.$ac_ext >&5
26533
26534
26535 fi
26536
26537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26538       conftest$ac_exeext conftest.$ac_ext
26539 LIBS=$ac_save_LIBS
26540
26541 fi
26542 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
26543 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
26544 if test $ac_cv_prog_lex_yytext_pointer = yes; then
26545
26546 cat >>confdefs.h <<\_ACEOF
26547 #define YYTEXT_POINTER 1
26548 _ACEOF
26549
26550 fi
26551 rm -f conftest.l $LEX_OUTPUT_ROOT.c
26552
26553 fi
26554
26555   if test "$LEX" != flex; then
26556     { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
26557 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
26558     LEX=${am_missing_run}flex
26559     LEXLIB=''
26560
26561   else
26562     if test "x2.5.30" != "x" ; then
26563                               FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
26564
26565       FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
26566       FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
26567       FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
26568
26569       WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
26570       WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
26571       WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
26572
26573       if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
26574          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED"  ||
26575          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
26576       then
26577         { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
26578 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
26579         LEX=${am_missing_run}flex
26580         LEXLIB=''
26581
26582       else
26583         { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
26584 echo "$as_me: Flex found. Parsers will get updated" >&6;}
26585       fi
26586     fi
26587   fi
26588
26589
26590 # Can we rebuild the xml-lexers from the XML specification?
26591 # if not, simply touch the flex source files (which are distributed in
26592 #  tarballs even if generated by flexml) and hope for the best.
26593 # Extract the first word of "flexml", so it can be a program name with args.
26594 set dummy flexml; ac_word=$2
26595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26597 if test "${ac_cv_prog_FLEXML+set}" = set; then
26598   echo $ECHO_N "(cached) $ECHO_C" >&6
26599 else
26600   if test -n "$FLEXML"; then
26601   ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
26602 else
26603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26604 for as_dir in $PATH
26605 do
26606   IFS=$as_save_IFS
26607   test -z "$as_dir" && as_dir=.
26608   for ac_exec_ext in '' $ac_executable_extensions; do
26609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26610     ac_cv_prog_FLEXML="`which flexml`"
26611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26612     break 2
26613   fi
26614 done
26615 done
26616 IFS=$as_save_IFS
26617
26618   test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
26619 fi
26620 fi
26621 FLEXML=$ac_cv_prog_FLEXML
26622 if test -n "$FLEXML"; then
26623   { echo "$as_me:$LINENO: result: $FLEXML" >&5
26624 echo "${ECHO_T}$FLEXML" >&6; }
26625 else
26626   { echo "$as_me:$LINENO: result: no" >&5
26627 echo "${ECHO_T}no" >&6; }
26628 fi
26629
26630
26631  if test x$FLEXML != xNOTFOUND; then
26632   HAVE_FLEXML_TRUE=
26633   HAVE_FLEXML_FALSE='#'
26634 else
26635   HAVE_FLEXML_TRUE='#'
26636   HAVE_FLEXML_FALSE=
26637 fi
26638
26639
26640 if test x$USE_MAINTAINER_MODE = xyes
26641 then
26642    # Check for doxygen when in maintainer mode since dist* targets fail
26643    # without it
26644    # Extract the first word of "doxygen", so it can be a program name with args.
26645 set dummy doxygen; ac_word=$2
26646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26648 if test "${ac_cv_path_DOXYGEN+set}" = set; then
26649   echo $ECHO_N "(cached) $ECHO_C" >&6
26650 else
26651   case $DOXYGEN in
26652   [\\/]* | ?:[\\/]*)
26653   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
26654   ;;
26655   *)
26656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26657 for as_dir in $PATH
26658 do
26659   IFS=$as_save_IFS
26660   test -z "$as_dir" && as_dir=.
26661   for ac_exec_ext in '' $ac_executable_extensions; do
26662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26663     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
26664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26665     break 2
26666   fi
26667 done
26668 done
26669 IFS=$as_save_IFS
26670
26671   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
26672   ;;
26673 esac
26674 fi
26675 DOXYGEN=$ac_cv_path_DOXYGEN
26676 if test -n "$DOXYGEN"; then
26677   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
26678 echo "${ECHO_T}$DOXYGEN" >&6; }
26679 else
26680   { echo "$as_me:$LINENO: result: no" >&5
26681 echo "${ECHO_T}no" >&6; }
26682 fi
26683
26684
26685    if test x$DOXYGEN = x ; then
26686      { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
26687 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
26688    { (exit 1); exit 1; }; }
26689    fi
26690 fi
26691
26692 # Can we extract really usable backtraces? (also need the popen function)
26693 # Extract the first word of "addr2line", so it can be a program name with args.
26694 set dummy addr2line; ac_word=$2
26695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26697 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
26698   echo $ECHO_N "(cached) $ECHO_C" >&6
26699 else
26700   case $ADDR2LINE in
26701   [\\/]* | ?:[\\/]*)
26702   ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
26703   ;;
26704   *)
26705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26706 for as_dir in $PATH
26707 do
26708   IFS=$as_save_IFS
26709   test -z "$as_dir" && as_dir=.
26710   for ac_exec_ext in '' $ac_executable_extensions; do
26711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26712     ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
26713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26714     break 2
26715   fi
26716 done
26717 done
26718 IFS=$as_save_IFS
26719
26720   ;;
26721 esac
26722 fi
26723 ADDR2LINE=$ac_cv_path_ADDR2LINE
26724 if test -n "$ADDR2LINE"; then
26725   { echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
26726 echo "${ECHO_T}$ADDR2LINE" >&6; }
26727 else
26728   { echo "$as_me:$LINENO: result: no" >&5
26729 echo "${ECHO_T}no" >&6; }
26730 fi
26731
26732
26733 if test x$ADDR2LINE != x ; then
26734
26735 cat >>confdefs.h <<_ACEOF
26736 #define ADDR2LINE "$ADDR2LINE"
26737 _ACEOF
26738
26739 fi
26740
26741
26742 # Can we make status line about the compilation result?
26743 # Extract the first word of "md5sum", so it can be a program name with args.
26744 set dummy md5sum; ac_word=$2
26745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26747 if test "${ac_cv_prog_MD5SUM+set}" = set; then
26748   echo $ECHO_N "(cached) $ECHO_C" >&6
26749 else
26750   if test -n "$MD5SUM"; then
26751   ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
26752 else
26753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26754 for as_dir in $PATH
26755 do
26756   IFS=$as_save_IFS
26757   test -z "$as_dir" && as_dir=.
26758   for ac_exec_ext in '' $ac_executable_extensions; do
26759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26760     ac_cv_prog_MD5SUM="`which md5sum`"
26761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26762     break 2
26763   fi
26764 done
26765 done
26766 IFS=$as_save_IFS
26767
26768 fi
26769 fi
26770 MD5SUM=$ac_cv_prog_MD5SUM
26771 if test -n "$MD5SUM"; then
26772   { echo "$as_me:$LINENO: result: $MD5SUM" >&5
26773 echo "${ECHO_T}$MD5SUM" >&6; }
26774 else
26775   { echo "$as_me:$LINENO: result: no" >&5
26776 echo "${ECHO_T}no" >&6; }
26777 fi
26778
26779
26780 if test x$MD5SUM != xno ; then
26781   build_version=`find -name '*.ch' |grep -v src/ucontext_stack.h | grep -v src/gras_config.h |\
26782                  xargs cat| $MD5SUM | sed 's/ .*$//'`
26783 else
26784   build_version="no_md5sum_binary"
26785 fi
26786 build_id="$PACKAGE ver=$VERSION build=$build_version args=\"$ac_configure_args\""
26787
26788
26789 ###################
26790 ## Makes the output
26791 ##
26792
26793
26794 #
26795 #      examples/gras/chord/Makefile  examples/gras/chord/test_sg examples/gras/chord/test_rl
26796 #  src/amok/Makefile
26797
26798
26799   { echo "$as_me:$LINENO: result: " >&5
26800 echo "${ECHO_T}" >&6; }
26801   { echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
26802 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6; }
26803
26804
26805 # Core of the libraries
26806
26807 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/ucontext_stack.h"
26808
26809
26810 # Tools being embeeded in gramine (stub generator)
26811 ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile tools/tesh/Makefile"
26812
26813
26814
26815 # GRAMINE_CUT_BEGIN
26816
26817 # Tools NOT being embeeded in gramine
26818 ac_config_files="$ac_config_files tools/graspe-slave"
26819
26820
26821 # Testsuite
26822
26823 ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage"
26824
26825
26826 # Documentation
26827 ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
26828
26829
26830 # Examples
26831
26832 #      examples/gras/p2p/Makefile
26833 #      examples/gras/p2p/chord/Makefile
26834 #      examples/gras/p2p/can/Makefile
26835
26836 if test "x$use_java" = "xyes" ; then
26837 ac_config_files="$ac_config_files examples/java/Makefile examples/java/basic/Makefile examples/java/comm_time/Makefile examples/java/suspend/Makefile examples/java/ping_pong/Makefile"
26838
26839 fi
26840
26841 ac_config_files="$ac_config_files examples/Makefile examples/msg/Makefile examples/simdag/Makefile examples/simdag/test_simdag examples/gras/Makefile examples/gras/ping/Makefile examples/gras/rpc/Makefile examples/gras/spawn/Makefile examples/gras/synchro/Makefile examples/gras/timer/Makefile examples/gras/chrono/Makefile examples/gras/mutual_exclusion/simple_token/Makefile examples/gras/mmrpc/Makefile examples/gras/pmm/Makefile examples/gras/all2all/Makefile examples/amok/Makefile examples/amok/bandwidth/Makefile examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl examples/amok/saturate/Makefile examples/amok/saturate/test_sg examples/amok/saturate/test_rl"
26842
26843
26844 ac_config_files="$ac_config_files src/smpi/smpicc src/smpi/smpirun"
26845
26846
26847 # GRAMINE_CUT_END
26848
26849 cat >confcache <<\_ACEOF
26850 # This file is a shell script that caches the results of configure
26851 # tests run on this system so they can be shared between configure
26852 # scripts and configure runs, see configure's option --config-cache.
26853 # It is not useful on other systems.  If it contains results you don't
26854 # want to keep, you may remove or edit it.
26855 #
26856 # config.status only pays attention to the cache file if you give it
26857 # the --recheck option to rerun configure.
26858 #
26859 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26860 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26861 # following values.
26862
26863 _ACEOF
26864
26865 # The following way of writing the cache mishandles newlines in values,
26866 # but we know of no workaround that is simple, portable, and efficient.
26867 # So, we kill variables containing newlines.
26868 # Ultrix sh set writes to stderr and can't be redirected directly,
26869 # and sets the high bit in the cache file unless we assign to the vars.
26870 (
26871   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26872     eval ac_val=\$$ac_var
26873     case $ac_val in #(
26874     *${as_nl}*)
26875       case $ac_var in #(
26876       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26877 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26878       esac
26879       case $ac_var in #(
26880       _ | IFS | as_nl) ;; #(
26881       *) $as_unset $ac_var ;;
26882       esac ;;
26883     esac
26884   done
26885
26886   (set) 2>&1 |
26887     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26888     *${as_nl}ac_space=\ *)
26889       # `set' does not quote correctly, so add quotes (double-quote
26890       # substitution turns \\\\ into \\, and sed turns \\ into \).
26891       sed -n \
26892         "s/'/'\\\\''/g;
26893           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26894       ;; #(
26895     *)
26896       # `set' quotes correctly as required by POSIX, so do not add quotes.
26897       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26898       ;;
26899     esac |
26900     sort
26901 ) |
26902   sed '
26903      /^ac_cv_env_/b end
26904      t clear
26905      :clear
26906      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26907      t end
26908      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26909      :end' >>confcache
26910 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26911   if test -w "$cache_file"; then
26912     test "x$cache_file" != "x/dev/null" &&
26913       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26914 echo "$as_me: updating cache $cache_file" >&6;}
26915     cat confcache >$cache_file
26916   else
26917     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26918 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26919   fi
26920 fi
26921 rm -f confcache
26922
26923 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26924 # Let make expand exec_prefix.
26925 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26926
26927 DEFS=-DHAVE_CONFIG_H
26928
26929 ac_libobjs=
26930 ac_ltlibobjs=
26931 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26932   # 1. Remove the extension, and $U if already installed.
26933   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26934   ac_i=`echo "$ac_i" | sed "$ac_script"`
26935   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26936   #    will be set to the directory where LIBOBJS objects are built.
26937   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26938   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26939 done
26940 LIBOBJS=$ac_libobjs
26941
26942 LTLIBOBJS=$ac_ltlibobjs
26943
26944
26945 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26946   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26947 Usually this means the macro was only invoked conditionally." >&5
26948 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26949 Usually this means the macro was only invoked conditionally." >&2;}
26950    { (exit 1); exit 1; }; }
26951 fi
26952 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
26953   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
26954 Usually this means the macro was only invoked conditionally." >&5
26955 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
26956 Usually this means the macro was only invoked conditionally." >&2;}
26957    { (exit 1); exit 1; }; }
26958 fi
26959 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26960   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26961 Usually this means the macro was only invoked conditionally." >&5
26962 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26963 Usually this means the macro was only invoked conditionally." >&2;}
26964    { (exit 1); exit 1; }; }
26965 fi
26966 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26967   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26968 Usually this means the macro was only invoked conditionally." >&5
26969 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26970 Usually this means the macro was only invoked conditionally." >&2;}
26971    { (exit 1); exit 1; }; }
26972 fi
26973 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26974   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26975 Usually this means the macro was only invoked conditionally." >&5
26976 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26977 Usually this means the macro was only invoked conditionally." >&2;}
26978    { (exit 1); exit 1; }; }
26979 fi
26980 if test -z "${GRAS_ARCH_32_BITS_TRUE}" && test -z "${GRAS_ARCH_32_BITS_FALSE}"; then
26981   { { echo "$as_me:$LINENO: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
26982 Usually this means the macro was only invoked conditionally." >&5
26983 echo "$as_me: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
26984 Usually this means the macro was only invoked conditionally." >&2;}
26985    { (exit 1); exit 1; }; }
26986 fi
26987 if test -z "${IS_WINDOWS_TRUE}" && test -z "${IS_WINDOWS_FALSE}"; then
26988   { { echo "$as_me:$LINENO: error: conditional \"IS_WINDOWS\" was never defined.
26989 Usually this means the macro was only invoked conditionally." >&5
26990 echo "$as_me: error: conditional \"IS_WINDOWS\" was never defined.
26991 Usually this means the macro was only invoked conditionally." >&2;}
26992    { (exit 1); exit 1; }; }
26993 fi
26994 if test -z "${CONTEXT_THREADS_TRUE}" && test -z "${CONTEXT_THREADS_FALSE}"; then
26995   { { echo "$as_me:$LINENO: error: conditional \"CONTEXT_THREADS\" was never defined.
26996 Usually this means the macro was only invoked conditionally." >&5
26997 echo "$as_me: error: conditional \"CONTEXT_THREADS\" was never defined.
26998 Usually this means the macro was only invoked conditionally." >&2;}
26999    { (exit 1); exit 1; }; }
27000 fi
27001 if test -z "${HAVE_GTNETS_TRUE}" && test -z "${HAVE_GTNETS_FALSE}"; then
27002   { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTNETS\" was never defined.
27003 Usually this means the macro was only invoked conditionally." >&5
27004 echo "$as_me: error: conditional \"HAVE_GTNETS\" was never defined.
27005 Usually this means the macro was only invoked conditionally." >&2;}
27006    { (exit 1); exit 1; }; }
27007 fi
27008 if test -z "${HAVE_SDP_TRUE}" && test -z "${HAVE_SDP_FALSE}"; then
27009   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SDP\" was never defined.
27010 Usually this means the macro was only invoked conditionally." >&5
27011 echo "$as_me: error: conditional \"HAVE_SDP\" was never defined.
27012 Usually this means the macro was only invoked conditionally." >&2;}
27013    { (exit 1); exit 1; }; }
27014 fi
27015 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
27016   { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
27017 Usually this means the macro was only invoked conditionally." >&5
27018 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
27019 Usually this means the macro was only invoked conditionally." >&2;}
27020    { (exit 1); exit 1; }; }
27021 fi
27022 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27023   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27024 Usually this means the macro was only invoked conditionally." >&5
27025 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27026 Usually this means the macro was only invoked conditionally." >&2;}
27027    { (exit 1); exit 1; }; }
27028 fi
27029 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
27030   { { echo "$as_me:$LINENO: error: conditional \"HAVE_JAVA\" was never defined.
27031 Usually this means the macro was only invoked conditionally." >&5
27032 echo "$as_me: error: conditional \"HAVE_JAVA\" was never defined.
27033 Usually this means the macro was only invoked conditionally." >&2;}
27034    { (exit 1); exit 1; }; }
27035 fi
27036 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
27037   { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
27038 Usually this means the macro was only invoked conditionally." >&5
27039 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
27040 Usually this means the macro was only invoked conditionally." >&2;}
27041    { (exit 1); exit 1; }; }
27042 fi
27043
27044 : ${CONFIG_STATUS=./config.status}
27045 ac_clean_files_save=$ac_clean_files
27046 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27047 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27048 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27049 cat >$CONFIG_STATUS <<_ACEOF
27050 #! $SHELL
27051 # Generated by $as_me.
27052 # Run this file to recreate the current configuration.
27053 # Compiler output produced by configure, useful for debugging
27054 # configure, is in config.log if it exists.
27055
27056 debug=false
27057 ac_cs_recheck=false
27058 ac_cs_silent=false
27059 SHELL=\${CONFIG_SHELL-$SHELL}
27060 _ACEOF
27061
27062 cat >>$CONFIG_STATUS <<\_ACEOF
27063 ## --------------------- ##
27064 ## M4sh Initialization.  ##
27065 ## --------------------- ##
27066
27067 # Be more Bourne compatible
27068 DUALCASE=1; export DUALCASE # for MKS sh
27069 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27070   emulate sh
27071   NULLCMD=:
27072   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27073   # is contrary to our usage.  Disable this feature.
27074   alias -g '${1+"$@"}'='"$@"'
27075   setopt NO_GLOB_SUBST
27076 else
27077   case `(set -o) 2>/dev/null` in
27078   *posix*) set -o posix ;;
27079 esac
27080
27081 fi
27082
27083
27084
27085
27086 # PATH needs CR
27087 # Avoid depending upon Character Ranges.
27088 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27089 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27090 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27091 as_cr_digits='0123456789'
27092 as_cr_alnum=$as_cr_Letters$as_cr_digits
27093
27094 # The user is always right.
27095 if test "${PATH_SEPARATOR+set}" != set; then
27096   echo "#! /bin/sh" >conf$$.sh
27097   echo  "exit 0"   >>conf$$.sh
27098   chmod +x conf$$.sh
27099   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27100     PATH_SEPARATOR=';'
27101   else
27102     PATH_SEPARATOR=:
27103   fi
27104   rm -f conf$$.sh
27105 fi
27106
27107 # Support unset when possible.
27108 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27109   as_unset=unset
27110 else
27111   as_unset=false
27112 fi
27113
27114
27115 # IFS
27116 # We need space, tab and new line, in precisely that order.  Quoting is
27117 # there to prevent editors from complaining about space-tab.
27118 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27119 # splitting by setting IFS to empty value.)
27120 as_nl='
27121 '
27122 IFS=" ""        $as_nl"
27123
27124 # Find who we are.  Look in the path if we contain no directory separator.
27125 case $0 in
27126   *[\\/]* ) as_myself=$0 ;;
27127   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27128 for as_dir in $PATH
27129 do
27130   IFS=$as_save_IFS
27131   test -z "$as_dir" && as_dir=.
27132   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27133 done
27134 IFS=$as_save_IFS
27135
27136      ;;
27137 esac
27138 # We did not find ourselves, most probably we were run as `sh COMMAND'
27139 # in which case we are not to be found in the path.
27140 if test "x$as_myself" = x; then
27141   as_myself=$0
27142 fi
27143 if test ! -f "$as_myself"; then
27144   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27145   { (exit 1); exit 1; }
27146 fi
27147
27148 # Work around bugs in pre-3.0 UWIN ksh.
27149 for as_var in ENV MAIL MAILPATH
27150 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27151 done
27152 PS1='$ '
27153 PS2='> '
27154 PS4='+ '
27155
27156 # NLS nuisances.
27157 for as_var in \
27158   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27159   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27160   LC_TELEPHONE LC_TIME
27161 do
27162   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27163     eval $as_var=C; export $as_var
27164   else
27165     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27166   fi
27167 done
27168
27169 # Required to use basename.
27170 if expr a : '\(a\)' >/dev/null 2>&1 &&
27171    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27172   as_expr=expr
27173 else
27174   as_expr=false
27175 fi
27176
27177 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27178   as_basename=basename
27179 else
27180   as_basename=false
27181 fi
27182
27183
27184 # Name of the executable.
27185 as_me=`$as_basename -- "$0" ||
27186 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27187          X"$0" : 'X\(//\)$' \| \
27188          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27189 echo X/"$0" |
27190     sed '/^.*\/\([^/][^/]*\)\/*$/{
27191             s//\1/
27192             q
27193           }
27194           /^X\/\(\/\/\)$/{
27195             s//\1/
27196             q
27197           }
27198           /^X\/\(\/\).*/{
27199             s//\1/
27200             q
27201           }
27202           s/.*/./; q'`
27203
27204 # CDPATH.
27205 $as_unset CDPATH
27206
27207
27208
27209   as_lineno_1=$LINENO
27210   as_lineno_2=$LINENO
27211   test "x$as_lineno_1" != "x$as_lineno_2" &&
27212   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27213
27214   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27215   # uniformly replaced by the line number.  The first 'sed' inserts a
27216   # line-number line after each line using $LINENO; the second 'sed'
27217   # does the real work.  The second script uses 'N' to pair each
27218   # line-number line with the line containing $LINENO, and appends
27219   # trailing '-' during substitution so that $LINENO is not a special
27220   # case at line end.
27221   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27222   # scripts with optimization help from Paolo Bonzini.  Blame Lee
27223   # E. McMahon (1931-1989) for sed's syntax.  :-)
27224   sed -n '
27225     p
27226     /[$]LINENO/=
27227   ' <$as_myself |
27228     sed '
27229       s/[$]LINENO.*/&-/
27230       t lineno
27231       b
27232       :lineno
27233       N
27234       :loop
27235       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27236       t loop
27237       s/-\n.*//
27238     ' >$as_me.lineno &&
27239   chmod +x "$as_me.lineno" ||
27240     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27241    { (exit 1); exit 1; }; }
27242
27243   # Don't try to exec as it changes $[0], causing all sort of problems
27244   # (the dirname of $[0] is not the place where we might find the
27245   # original and so on.  Autoconf is especially sensitive to this).
27246   . "./$as_me.lineno"
27247   # Exit status is that of the last command.
27248   exit
27249 }
27250
27251
27252 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27253   as_dirname=dirname
27254 else
27255   as_dirname=false
27256 fi
27257
27258 ECHO_C= ECHO_N= ECHO_T=
27259 case `echo -n x` in
27260 -n*)
27261   case `echo 'x\c'` in
27262   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
27263   *)   ECHO_C='\c';;
27264   esac;;
27265 *)
27266   ECHO_N='-n';;
27267 esac
27268
27269 if expr a : '\(a\)' >/dev/null 2>&1 &&
27270    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27271   as_expr=expr
27272 else
27273   as_expr=false
27274 fi
27275
27276 rm -f conf$$ conf$$.exe conf$$.file
27277 if test -d conf$$.dir; then
27278   rm -f conf$$.dir/conf$$.file
27279 else
27280   rm -f conf$$.dir
27281   mkdir conf$$.dir
27282 fi
27283 echo >conf$$.file
27284 if ln -s conf$$.file conf$$ 2>/dev/null; then
27285   as_ln_s='ln -s'
27286   # ... but there are two gotchas:
27287   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27288   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27289   # In both cases, we have to default to `cp -p'.
27290   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27291     as_ln_s='cp -p'
27292 elif ln conf$$.file conf$$ 2>/dev/null; then
27293   as_ln_s=ln
27294 else
27295   as_ln_s='cp -p'
27296 fi
27297 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27298 rmdir conf$$.dir 2>/dev/null
27299
27300 if mkdir -p . 2>/dev/null; then
27301   as_mkdir_p=:
27302 else
27303   test -d ./-p && rmdir ./-p
27304   as_mkdir_p=false
27305 fi
27306
27307 if test -x / >/dev/null 2>&1; then
27308   as_test_x='test -x'
27309 else
27310   if ls -dL / >/dev/null 2>&1; then
27311     as_ls_L_option=L
27312   else
27313     as_ls_L_option=
27314   fi
27315   as_test_x='
27316     eval sh -c '\''
27317       if test -d "$1"; then
27318         test -d "$1/.";
27319       else
27320         case $1 in
27321         -*)set "./$1";;
27322         esac;
27323         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27324         ???[sx]*):;;*)false;;esac;fi
27325     '\'' sh
27326   '
27327 fi
27328 as_executable_p=$as_test_x
27329
27330 # Sed expression to map a string onto a valid CPP name.
27331 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27332
27333 # Sed expression to map a string onto a valid variable name.
27334 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27335
27336
27337 exec 6>&1
27338
27339 # Save the log message, to keep $[0] and so on meaningful, and to
27340 # report actual input values of CONFIG_FILES etc. instead of their
27341 # values after options handling.
27342 ac_log="
27343 This file was extended by simgrid $as_me 3.3-cvs, which was
27344 generated by GNU Autoconf 2.61.  Invocation command line was
27345
27346   CONFIG_FILES    = $CONFIG_FILES
27347   CONFIG_HEADERS  = $CONFIG_HEADERS
27348   CONFIG_LINKS    = $CONFIG_LINKS
27349   CONFIG_COMMANDS = $CONFIG_COMMANDS
27350   $ $0 $@
27351
27352 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27353 "
27354
27355 _ACEOF
27356
27357 cat >>$CONFIG_STATUS <<_ACEOF
27358 # Files that config.status was made for.
27359 config_files="$ac_config_files"
27360 config_headers="$ac_config_headers"
27361 config_commands="$ac_config_commands"
27362
27363 _ACEOF
27364
27365 cat >>$CONFIG_STATUS <<\_ACEOF
27366 ac_cs_usage="\
27367 \`$as_me' instantiates files from templates according to the
27368 current configuration.
27369
27370 Usage: $0 [OPTIONS] [FILE]...
27371
27372   -h, --help       print this help, then exit
27373   -V, --version    print version number and configuration settings, then exit
27374   -q, --quiet      do not print progress messages
27375   -d, --debug      don't remove temporary files
27376       --recheck    update $as_me by reconfiguring in the same conditions
27377   --file=FILE[:TEMPLATE]
27378                    instantiate the configuration file FILE
27379   --header=FILE[:TEMPLATE]
27380                    instantiate the configuration header FILE
27381
27382 Configuration files:
27383 $config_files
27384
27385 Configuration headers:
27386 $config_headers
27387
27388 Configuration commands:
27389 $config_commands
27390
27391 Report bugs to <bug-autoconf@gnu.org>."
27392
27393 _ACEOF
27394 cat >>$CONFIG_STATUS <<_ACEOF
27395 ac_cs_version="\\
27396 simgrid config.status 3.3-cvs
27397 configured by $0, generated by GNU Autoconf 2.61,
27398   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27399
27400 Copyright (C) 2006 Free Software Foundation, Inc.
27401 This config.status script is free software; the Free Software Foundation
27402 gives unlimited permission to copy, distribute and modify it."
27403
27404 ac_pwd='$ac_pwd'
27405 srcdir='$srcdir'
27406 INSTALL='$INSTALL'
27407 MKDIR_P='$MKDIR_P'
27408 _ACEOF
27409
27410 cat >>$CONFIG_STATUS <<\_ACEOF
27411 # If no file are specified by the user, then we need to provide default
27412 # value.  By we need to know if files were specified by the user.
27413 ac_need_defaults=:
27414 while test $# != 0
27415 do
27416   case $1 in
27417   --*=*)
27418     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27419     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27420     ac_shift=:
27421     ;;
27422   *)
27423     ac_option=$1
27424     ac_optarg=$2
27425     ac_shift=shift
27426     ;;
27427   esac
27428
27429   case $ac_option in
27430   # Handling of the options.
27431   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27432     ac_cs_recheck=: ;;
27433   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27434     echo "$ac_cs_version"; exit ;;
27435   --debug | --debu | --deb | --de | --d | -d )
27436     debug=: ;;
27437   --file | --fil | --fi | --f )
27438     $ac_shift
27439     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27440     ac_need_defaults=false;;
27441   --header | --heade | --head | --hea )
27442     $ac_shift
27443     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27444     ac_need_defaults=false;;
27445   --he | --h)
27446     # Conflict between --help and --header
27447     { echo "$as_me: error: ambiguous option: $1
27448 Try \`$0 --help' for more information." >&2
27449    { (exit 1); exit 1; }; };;
27450   --help | --hel | -h )
27451     echo "$ac_cs_usage"; exit ;;
27452   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27453   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27454     ac_cs_silent=: ;;
27455
27456   # This is an error.
27457   -*) { echo "$as_me: error: unrecognized option: $1
27458 Try \`$0 --help' for more information." >&2
27459    { (exit 1); exit 1; }; } ;;
27460
27461   *) ac_config_targets="$ac_config_targets $1"
27462      ac_need_defaults=false ;;
27463
27464   esac
27465   shift
27466 done
27467
27468 ac_configure_extra_args=
27469
27470 if $ac_cs_silent; then
27471   exec 6>/dev/null
27472   ac_configure_extra_args="$ac_configure_extra_args --silent"
27473 fi
27474
27475 _ACEOF
27476 cat >>$CONFIG_STATUS <<_ACEOF
27477 if \$ac_cs_recheck; then
27478   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27479   CONFIG_SHELL=$SHELL
27480   export CONFIG_SHELL
27481   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27482 fi
27483
27484 _ACEOF
27485 cat >>$CONFIG_STATUS <<\_ACEOF
27486 exec 5>>config.log
27487 {
27488   echo
27489   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27490 ## Running $as_me. ##
27491 _ASBOX
27492   echo "$ac_log"
27493 } >&5
27494
27495 _ACEOF
27496 cat >>$CONFIG_STATUS <<_ACEOF
27497 #
27498 # INIT-COMMANDS
27499 #
27500 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27501
27502 _ACEOF
27503
27504 cat >>$CONFIG_STATUS <<\_ACEOF
27505
27506 # Handling of arguments.
27507 for ac_config_target in $ac_config_targets
27508 do
27509   case $ac_config_target in
27510     "src/gras_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
27511     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27512     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27513     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
27514     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27515     "src/ucontext_stack.h") CONFIG_FILES="$CONFIG_FILES src/ucontext_stack.h" ;;
27516     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
27517     "tools/gras/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
27518     "tools/tesh/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tesh/Makefile" ;;
27519     "tools/graspe-slave") CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
27520     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
27521     "testsuite/run_tests") CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
27522     "testsuite/gras/trp_tcp_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_tcp_usage" ;;
27523     "testsuite/gras/trp_file_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_file_usage" ;;
27524     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27525     "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
27526     "examples/java/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/Makefile" ;;
27527     "examples/java/basic/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/basic/Makefile" ;;
27528     "examples/java/comm_time/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/comm_time/Makefile" ;;
27529     "examples/java/suspend/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/suspend/Makefile" ;;
27530     "examples/java/ping_pong/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/ping_pong/Makefile" ;;
27531     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
27532     "examples/msg/Makefile") CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
27533     "examples/simdag/Makefile") CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
27534     "examples/simdag/test_simdag") CONFIG_FILES="$CONFIG_FILES examples/simdag/test_simdag" ;;
27535     "examples/gras/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
27536     "examples/gras/ping/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
27537     "examples/gras/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
27538     "examples/gras/spawn/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/spawn/Makefile" ;;
27539     "examples/gras/synchro/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/synchro/Makefile" ;;
27540     "examples/gras/timer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
27541     "examples/gras/chrono/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
27542     "examples/gras/mutual_exclusion/simple_token/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
27543     "examples/gras/mmrpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
27544     "examples/gras/pmm/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
27545     "examples/gras/all2all/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
27546     "examples/amok/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
27547     "examples/amok/bandwidth/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/Makefile" ;;
27548     "examples/amok/bandwidth/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_sg" ;;
27549     "examples/amok/bandwidth/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_rl" ;;
27550     "examples/amok/saturate/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/Makefile" ;;
27551     "examples/amok/saturate/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_sg" ;;
27552     "examples/amok/saturate/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_rl" ;;
27553     "src/smpi/smpicc") CONFIG_FILES="$CONFIG_FILES src/smpi/smpicc" ;;
27554     "src/smpi/smpirun") CONFIG_FILES="$CONFIG_FILES src/smpi/smpirun" ;;
27555
27556   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27557 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27558    { (exit 1); exit 1; }; };;
27559   esac
27560 done
27561
27562
27563 # If the user did not use the arguments to specify the items to instantiate,
27564 # then the envvar interface is used.  Set only those that are not.
27565 # We use the long form for the default assignment because of an extremely
27566 # bizarre bug on SunOS 4.1.3.
27567 if $ac_need_defaults; then
27568   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27569   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27570   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27571 fi
27572
27573 # Have a temporary directory for convenience.  Make it in the build tree
27574 # simply because there is no reason against having it here, and in addition,
27575 # creating and moving files from /tmp can sometimes cause problems.
27576 # Hook for its removal unless debugging.
27577 # Note that there is a small window in which the directory will not be cleaned:
27578 # after its creation but before its name has been assigned to `$tmp'.
27579 $debug ||
27580 {
27581   tmp=
27582   trap 'exit_status=$?
27583   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27584 ' 0
27585   trap '{ (exit 1); exit 1; }' 1 2 13 15
27586 }
27587 # Create a (secure) tmp directory for tmp files.
27588
27589 {
27590   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27591   test -n "$tmp" && test -d "$tmp"
27592 }  ||
27593 {
27594   tmp=./conf$$-$RANDOM
27595   (umask 077 && mkdir "$tmp")
27596 } ||
27597 {
27598    echo "$me: cannot create a temporary directory in ." >&2
27599    { (exit 1); exit 1; }
27600 }
27601
27602 #
27603 # Set up the sed scripts for CONFIG_FILES section.
27604 #
27605
27606 # No need to generate the scripts if there are no CONFIG_FILES.
27607 # This happens for instance when ./config.status config.h
27608 if test -n "$CONFIG_FILES"; then
27609
27610 _ACEOF
27611
27612
27613
27614 ac_delim='%!_!# '
27615 for ac_last_try in false false false false false :; do
27616   cat >conf$$subs.sed <<_ACEOF
27617 SHELL!$SHELL$ac_delim
27618 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27619 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27620 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27621 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27622 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27623 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27624 exec_prefix!$exec_prefix$ac_delim
27625 prefix!$prefix$ac_delim
27626 program_transform_name!$program_transform_name$ac_delim
27627 bindir!$bindir$ac_delim
27628 sbindir!$sbindir$ac_delim
27629 libexecdir!$libexecdir$ac_delim
27630 datarootdir!$datarootdir$ac_delim
27631 datadir!$datadir$ac_delim
27632 sysconfdir!$sysconfdir$ac_delim
27633 sharedstatedir!$sharedstatedir$ac_delim
27634 localstatedir!$localstatedir$ac_delim
27635 includedir!$includedir$ac_delim
27636 oldincludedir!$oldincludedir$ac_delim
27637 docdir!$docdir$ac_delim
27638 infodir!$infodir$ac_delim
27639 htmldir!$htmldir$ac_delim
27640 dvidir!$dvidir$ac_delim
27641 pdfdir!$pdfdir$ac_delim
27642 psdir!$psdir$ac_delim
27643 libdir!$libdir$ac_delim
27644 localedir!$localedir$ac_delim
27645 mandir!$mandir$ac_delim
27646 DEFS!$DEFS$ac_delim
27647 ECHO_C!$ECHO_C$ac_delim
27648 ECHO_N!$ECHO_N$ac_delim
27649 ECHO_T!$ECHO_T$ac_delim
27650 LIBS!$LIBS$ac_delim
27651 build_alias!$build_alias$ac_delim
27652 host_alias!$host_alias$ac_delim
27653 target_alias!$target_alias$ac_delim
27654 build!$build$ac_delim
27655 build_cpu!$build_cpu$ac_delim
27656 build_vendor!$build_vendor$ac_delim
27657 build_os!$build_os$ac_delim
27658 host!$host$ac_delim
27659 host_cpu!$host_cpu$ac_delim
27660 host_vendor!$host_vendor$ac_delim
27661 host_os!$host_os$ac_delim
27662 target!$target$ac_delim
27663 target_cpu!$target_cpu$ac_delim
27664 target_vendor!$target_vendor$ac_delim
27665 target_os!$target_os$ac_delim
27666 GCJ!$GCJ$ac_delim
27667 GCJFLAGS!$GCJFLAGS$ac_delim
27668 am__leading_dot!$am__leading_dot$ac_delim
27669 DEPDIR!$DEPDIR$ac_delim
27670 am__include!$am__include$ac_delim
27671 am__quote!$am__quote$ac_delim
27672 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
27673 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
27674 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
27675 GCJDEPMODE!$GCJDEPMODE$ac_delim
27676 am__fastdepGCJ_TRUE!$am__fastdepGCJ_TRUE$ac_delim
27677 am__fastdepGCJ_FALSE!$am__fastdepGCJ_FALSE$ac_delim
27678 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27679 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27680 INSTALL_DATA!$INSTALL_DATA$ac_delim
27681 am__isrc!$am__isrc$ac_delim
27682 CYGPATH_W!$CYGPATH_W$ac_delim
27683 PACKAGE!$PACKAGE$ac_delim
27684 VERSION!$VERSION$ac_delim
27685 ACLOCAL!$ACLOCAL$ac_delim
27686 AUTOCONF!$AUTOCONF$ac_delim
27687 AUTOMAKE!$AUTOMAKE$ac_delim
27688 AUTOHEADER!$AUTOHEADER$ac_delim
27689 MAKEINFO!$MAKEINFO$ac_delim
27690 install_sh!$install_sh$ac_delim
27691 STRIP!$STRIP$ac_delim
27692 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
27693 mkdir_p!$mkdir_p$ac_delim
27694 AWK!$AWK$ac_delim
27695 SET_MAKE!$SET_MAKE$ac_delim
27696 AMTAR!$AMTAR$ac_delim
27697 am__tar!$am__tar$ac_delim
27698 am__untar!$am__untar$ac_delim
27699 CC!$CC$ac_delim
27700 CFLAGS!$CFLAGS$ac_delim
27701 LDFLAGS!$LDFLAGS$ac_delim
27702 CPPFLAGS!$CPPFLAGS$ac_delim
27703 ac_ct_CC!$ac_ct_CC$ac_delim
27704 EXEEXT!$EXEEXT$ac_delim
27705 OBJEXT!$OBJEXT$ac_delim
27706 CCDEPMODE!$CCDEPMODE$ac_delim
27707 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
27708 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
27709 GREP!$GREP$ac_delim
27710 EGREP!$EGREP$ac_delim
27711 LN_S!$LN_S$ac_delim
27712 ECHO!$ECHO$ac_delim
27713 AR!$AR$ac_delim
27714 _ACEOF
27715
27716   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27717     break
27718   elif $ac_last_try; then
27719     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27720 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27721    { (exit 1); exit 1; }; }
27722   else
27723     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27724   fi
27725 done
27726
27727 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27728 if test -n "$ac_eof"; then
27729   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27730   ac_eof=`expr $ac_eof + 1`
27731 fi
27732
27733 cat >>$CONFIG_STATUS <<_ACEOF
27734 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27735 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27736 _ACEOF
27737 sed '
27738 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27739 s/^/s,@/; s/!/@,|#_!!_#|/
27740 :n
27741 t n
27742 s/'"$ac_delim"'$/,g/; t
27743 s/$/\\/; p
27744 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27745 ' >>$CONFIG_STATUS <conf$$subs.sed
27746 rm -f conf$$subs.sed
27747 cat >>$CONFIG_STATUS <<_ACEOF
27748 CEOF$ac_eof
27749 _ACEOF
27750
27751
27752 ac_delim='%!_!# '
27753 for ac_last_try in false false false false false :; do
27754   cat >conf$$subs.sed <<_ACEOF
27755 RANLIB!$RANLIB$ac_delim
27756 DLLTOOL!$DLLTOOL$ac_delim
27757 AS!$AS$ac_delim
27758 OBJDUMP!$OBJDUMP$ac_delim
27759 CPP!$CPP$ac_delim
27760 CXX!$CXX$ac_delim
27761 CXXFLAGS!$CXXFLAGS$ac_delim
27762 ac_ct_CXX!$ac_ct_CXX$ac_delim
27763 CXXDEPMODE!$CXXDEPMODE$ac_delim
27764 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27765 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27766 CXXCPP!$CXXCPP$ac_delim
27767 LIBTOOL!$LIBTOOL$ac_delim
27768 LIBOBJS!$LIBOBJS$ac_delim
27769 GRAS_ARCH_32_BITS_TRUE!$GRAS_ARCH_32_BITS_TRUE$ac_delim
27770 GRAS_ARCH_32_BITS_FALSE!$GRAS_ARCH_32_BITS_FALSE$ac_delim
27771 IS_WINDOWS_TRUE!$IS_WINDOWS_TRUE$ac_delim
27772 IS_WINDOWS_FALSE!$IS_WINDOWS_FALSE$ac_delim
27773 CONTEXT_THREADS_TRUE!$CONTEXT_THREADS_TRUE$ac_delim
27774 CONTEXT_THREADS_FALSE!$CONTEXT_THREADS_FALSE$ac_delim
27775 PTH_STACK_GROWTH!$PTH_STACK_GROWTH$ac_delim
27776 pth_skaddr_makecontext!$pth_skaddr_makecontext$ac_delim
27777 pth_sksize_makecontext!$pth_sksize_makecontext$ac_delim
27778 HAVE_GTNETS_TRUE!$HAVE_GTNETS_TRUE$ac_delim
27779 HAVE_GTNETS_FALSE!$HAVE_GTNETS_FALSE$ac_delim
27780 HAVE_SDP_TRUE!$HAVE_SDP_TRUE$ac_delim
27781 HAVE_SDP_FALSE!$HAVE_SDP_FALSE$ac_delim
27782 SIMGRID_DEP!$SIMGRID_DEP$ac_delim
27783 SMPI_DEP!$SMPI_DEP$ac_delim
27784 GRAS_DEP!$GRAS_DEP$ac_delim
27785 GRAMINE_MODE_TRUE!$GRAMINE_MODE_TRUE$ac_delim
27786 GRAMINE_MODE_FALSE!$GRAMINE_MODE_FALSE$ac_delim
27787 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
27788 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
27789 MAINT!$MAINT$ac_delim
27790 LD_DYNAMIC_FLAGS!$LD_DYNAMIC_FLAGS$ac_delim
27791 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
27792 abs_builddir!$abs_builddir$ac_delim
27793 abs_srcdir!$abs_srcdir$ac_delim
27794 abs_top_builddir!$abs_top_builddir$ac_delim
27795 abs_top_srcdir!$abs_top_srcdir$ac_delim
27796 JAVAC!$JAVAC$ac_delim
27797 JAVA!$JAVA$ac_delim
27798 JAR!$JAR$ac_delim
27799 HAVE_JAVA_TRUE!$HAVE_JAVA_TRUE$ac_delim
27800 HAVE_JAVA_FALSE!$HAVE_JAVA_FALSE$ac_delim
27801 BASH!$BASH$ac_delim
27802 WARNING!$WARNING$ac_delim
27803 LEX!$LEX$ac_delim
27804 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
27805 LEXLIB!$LEXLIB$ac_delim
27806 FLEXML!$FLEXML$ac_delim
27807 HAVE_FLEXML_TRUE!$HAVE_FLEXML_TRUE$ac_delim
27808 HAVE_FLEXML_FALSE!$HAVE_FLEXML_FALSE$ac_delim
27809 DOXYGEN!$DOXYGEN$ac_delim
27810 ADDR2LINE!$ADDR2LINE$ac_delim
27811 ac_configure_args!$ac_configure_args$ac_delim
27812 MD5SUM!$MD5SUM$ac_delim
27813 build_id!$build_id$ac_delim
27814 LTLIBOBJS!$LTLIBOBJS$ac_delim
27815 _ACEOF
27816
27817   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 60; then
27818     break
27819   elif $ac_last_try; then
27820     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27821 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27822    { (exit 1); exit 1; }; }
27823   else
27824     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27825   fi
27826 done
27827
27828 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27829 if test -n "$ac_eof"; then
27830   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27831   ac_eof=`expr $ac_eof + 1`
27832 fi
27833
27834 cat >>$CONFIG_STATUS <<_ACEOF
27835 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27836 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27837 _ACEOF
27838 sed '
27839 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27840 s/^/s,@/; s/!/@,|#_!!_#|/
27841 :n
27842 t n
27843 s/'"$ac_delim"'$/,g/; t
27844 s/$/\\/; p
27845 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27846 ' >>$CONFIG_STATUS <conf$$subs.sed
27847 rm -f conf$$subs.sed
27848 cat >>$CONFIG_STATUS <<_ACEOF
27849 :end
27850 s/|#_!!_#|//g
27851 CEOF$ac_eof
27852 _ACEOF
27853
27854
27855 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27856 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27857 # trailing colons and then remove the whole line if VPATH becomes empty
27858 # (actually we leave an empty line to preserve line numbers).
27859 if test "x$srcdir" = x.; then
27860   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27861 s/:*\$(srcdir):*/:/
27862 s/:*\${srcdir}:*/:/
27863 s/:*@srcdir@:*/:/
27864 s/^\([^=]*=[     ]*\):*/\1/
27865 s/:*$//
27866 s/^[^=]*=[       ]*$//
27867 }'
27868 fi
27869
27870 cat >>$CONFIG_STATUS <<\_ACEOF
27871 fi # test -n "$CONFIG_FILES"
27872
27873
27874 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
27875 do
27876   case $ac_tag in
27877   :[FHLC]) ac_mode=$ac_tag; continue;;
27878   esac
27879   case $ac_mode$ac_tag in
27880   :[FHL]*:*);;
27881   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27882 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27883    { (exit 1); exit 1; }; };;
27884   :[FH]-) ac_tag=-:-;;
27885   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27886   esac
27887   ac_save_IFS=$IFS
27888   IFS=:
27889   set x $ac_tag
27890   IFS=$ac_save_IFS
27891   shift
27892   ac_file=$1
27893   shift
27894
27895   case $ac_mode in
27896   :L) ac_source=$1;;
27897   :[FH])
27898     ac_file_inputs=
27899     for ac_f
27900     do
27901       case $ac_f in
27902       -) ac_f="$tmp/stdin";;
27903       *) # Look for the file first in the build tree, then in the source tree
27904          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27905          # because $ac_f cannot contain `:'.
27906          test -f "$ac_f" ||
27907            case $ac_f in
27908            [\\/$]*) false;;
27909            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27910            esac ||
27911            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27912 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27913    { (exit 1); exit 1; }; };;
27914       esac
27915       ac_file_inputs="$ac_file_inputs $ac_f"
27916     done
27917
27918     # Let's still pretend it is `configure' which instantiates (i.e., don't
27919     # use $as_me), people would be surprised to read:
27920     #    /* config.h.  Generated by config.status.  */
27921     configure_input="Generated from "`IFS=:
27922           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27923     if test x"$ac_file" != x-; then
27924       configure_input="$ac_file.  $configure_input"
27925       { echo "$as_me:$LINENO: creating $ac_file" >&5
27926 echo "$as_me: creating $ac_file" >&6;}
27927     fi
27928
27929     case $ac_tag in
27930     *:-:* | *:-) cat >"$tmp/stdin";;
27931     esac
27932     ;;
27933   esac
27934
27935   ac_dir=`$as_dirname -- "$ac_file" ||
27936 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27937          X"$ac_file" : 'X\(//\)[^/]' \| \
27938          X"$ac_file" : 'X\(//\)$' \| \
27939          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27940 echo X"$ac_file" |
27941     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27942             s//\1/
27943             q
27944           }
27945           /^X\(\/\/\)[^/].*/{
27946             s//\1/
27947             q
27948           }
27949           /^X\(\/\/\)$/{
27950             s//\1/
27951             q
27952           }
27953           /^X\(\/\).*/{
27954             s//\1/
27955             q
27956           }
27957           s/.*/./; q'`
27958   { as_dir="$ac_dir"
27959   case $as_dir in #(
27960   -*) as_dir=./$as_dir;;
27961   esac
27962   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27963     as_dirs=
27964     while :; do
27965       case $as_dir in #(
27966       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27967       *) as_qdir=$as_dir;;
27968       esac
27969       as_dirs="'$as_qdir' $as_dirs"
27970       as_dir=`$as_dirname -- "$as_dir" ||
27971 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27972          X"$as_dir" : 'X\(//\)[^/]' \| \
27973          X"$as_dir" : 'X\(//\)$' \| \
27974          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27975 echo X"$as_dir" |
27976     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27977             s//\1/
27978             q
27979           }
27980           /^X\(\/\/\)[^/].*/{
27981             s//\1/
27982             q
27983           }
27984           /^X\(\/\/\)$/{
27985             s//\1/
27986             q
27987           }
27988           /^X\(\/\).*/{
27989             s//\1/
27990             q
27991           }
27992           s/.*/./; q'`
27993       test -d "$as_dir" && break
27994     done
27995     test -z "$as_dirs" || eval "mkdir $as_dirs"
27996   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27997 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27998    { (exit 1); exit 1; }; }; }
27999   ac_builddir=.
28000
28001 case "$ac_dir" in
28002 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28003 *)
28004   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28005   # A ".." for each directory in $ac_dir_suffix.
28006   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28007   case $ac_top_builddir_sub in
28008   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28009   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28010   esac ;;
28011 esac
28012 ac_abs_top_builddir=$ac_pwd
28013 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28014 # for backward compatibility:
28015 ac_top_builddir=$ac_top_build_prefix
28016
28017 case $srcdir in
28018   .)  # We are building in place.
28019     ac_srcdir=.
28020     ac_top_srcdir=$ac_top_builddir_sub
28021     ac_abs_top_srcdir=$ac_pwd ;;
28022   [\\/]* | ?:[\\/]* )  # Absolute name.
28023     ac_srcdir=$srcdir$ac_dir_suffix;
28024     ac_top_srcdir=$srcdir
28025     ac_abs_top_srcdir=$srcdir ;;
28026   *) # Relative name.
28027     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28028     ac_top_srcdir=$ac_top_build_prefix$srcdir
28029     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28030 esac
28031 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28032
28033
28034   case $ac_mode in
28035   :F)
28036   #
28037   # CONFIG_FILE
28038   #
28039
28040   case $INSTALL in
28041   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28042   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28043   esac
28044   ac_MKDIR_P=$MKDIR_P
28045   case $MKDIR_P in
28046   [\\/$]* | ?:[\\/]* ) ;;
28047   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28048   esac
28049 _ACEOF
28050
28051 cat >>$CONFIG_STATUS <<\_ACEOF
28052 # If the template does not know about datarootdir, expand it.
28053 # FIXME: This hack should be removed a few years after 2.60.
28054 ac_datarootdir_hack=; ac_datarootdir_seen=
28055
28056 case `sed -n '/datarootdir/ {
28057   p
28058   q
28059 }
28060 /@datadir@/p
28061 /@docdir@/p
28062 /@infodir@/p
28063 /@localedir@/p
28064 /@mandir@/p
28065 ' $ac_file_inputs` in
28066 *datarootdir*) ac_datarootdir_seen=yes;;
28067 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28068   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28069 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28070 _ACEOF
28071 cat >>$CONFIG_STATUS <<_ACEOF
28072   ac_datarootdir_hack='
28073   s&@datadir@&$datadir&g
28074   s&@docdir@&$docdir&g
28075   s&@infodir@&$infodir&g
28076   s&@localedir@&$localedir&g
28077   s&@mandir@&$mandir&g
28078     s&\\\${datarootdir}&$datarootdir&g' ;;
28079 esac
28080 _ACEOF
28081
28082 # Neutralize VPATH when `$srcdir' = `.'.
28083 # Shell code in configure.ac might set extrasub.
28084 # FIXME: do we really want to maintain this feature?
28085 cat >>$CONFIG_STATUS <<_ACEOF
28086   sed "$ac_vpsub
28087 $extrasub
28088 _ACEOF
28089 cat >>$CONFIG_STATUS <<\_ACEOF
28090 :t
28091 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28092 s&@configure_input@&$configure_input&;t t
28093 s&@top_builddir@&$ac_top_builddir_sub&;t t
28094 s&@srcdir@&$ac_srcdir&;t t
28095 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28096 s&@top_srcdir@&$ac_top_srcdir&;t t
28097 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28098 s&@builddir@&$ac_builddir&;t t
28099 s&@abs_builddir@&$ac_abs_builddir&;t t
28100 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28101 s&@INSTALL@&$ac_INSTALL&;t t
28102 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28103 $ac_datarootdir_hack
28104 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
28105
28106 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28107   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28108   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28109   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28110 which seems to be undefined.  Please make sure it is defined." >&5
28111 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28112 which seems to be undefined.  Please make sure it is defined." >&2;}
28113
28114   rm -f "$tmp/stdin"
28115   case $ac_file in
28116   -) cat "$tmp/out"; rm -f "$tmp/out";;
28117   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28118   esac
28119  ;;
28120   :H)
28121   #
28122   # CONFIG_HEADER
28123   #
28124 _ACEOF
28125
28126 # Transform confdefs.h into a sed script `conftest.defines', that
28127 # substitutes the proper values into config.h.in to produce config.h.
28128 rm -f conftest.defines conftest.tail
28129 # First, append a space to every undef/define line, to ease matching.
28130 echo 's/$/ /' >conftest.defines
28131 # Then, protect against being on the right side of a sed subst, or in
28132 # an unquoted here document, in config.status.  If some macros were
28133 # called several times there might be several #defines for the same
28134 # symbol, which is useless.  But do not sort them, since the last
28135 # AC_DEFINE must be honored.
28136 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28137 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28138 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28139 # PARAMS is the parameter list in the macro definition--in most cases, it's
28140 # just an empty string.
28141 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
28142 ac_dB='\\)[      (].*,\\1define\\2'
28143 ac_dC=' '
28144 ac_dD=' ,'
28145
28146 uniq confdefs.h |
28147   sed -n '
28148         t rset
28149         :rset
28150         s/^[     ]*#[    ]*define[       ][      ]*//
28151         t ok
28152         d
28153         :ok
28154         s/[\\&,]/\\&/g
28155         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28156         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28157   ' >>conftest.defines
28158
28159 # Remove the space that was appended to ease matching.
28160 # Then replace #undef with comments.  This is necessary, for
28161 # example, in the case of _POSIX_SOURCE, which is predefined and required
28162 # on some systems where configure will not decide to define it.
28163 # (The regexp can be short, since the line contains either #define or #undef.)
28164 echo 's/ $//
28165 s,^[     #]*u.*,/* & */,' >>conftest.defines
28166
28167 # Break up conftest.defines:
28168 ac_max_sed_lines=50
28169
28170 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28171 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28172 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28173 # et cetera.
28174 ac_in='$ac_file_inputs'
28175 ac_out='"$tmp/out1"'
28176 ac_nxt='"$tmp/out2"'
28177
28178 while :
28179 do
28180   # Write a here document:
28181     cat >>$CONFIG_STATUS <<_ACEOF
28182     # First, check the format of the line:
28183     cat >"\$tmp/defines.sed" <<\\CEOF
28184 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
28185 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
28186 b
28187 :def
28188 _ACEOF
28189   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
28190   echo 'CEOF
28191     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28192   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
28193   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
28194   grep . conftest.tail >/dev/null || break
28195   rm -f conftest.defines
28196   mv conftest.tail conftest.defines
28197 done
28198 rm -f conftest.defines conftest.tail
28199
28200 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28201 cat >>$CONFIG_STATUS <<\_ACEOF
28202   if test x"$ac_file" != x-; then
28203     echo "/* $configure_input  */" >"$tmp/config.h"
28204     cat "$ac_result" >>"$tmp/config.h"
28205     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
28206       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28207 echo "$as_me: $ac_file is unchanged" >&6;}
28208     else
28209       rm -f $ac_file
28210       mv "$tmp/config.h" $ac_file
28211     fi
28212   else
28213     echo "/* $configure_input  */"
28214     cat "$ac_result"
28215   fi
28216   rm -f "$tmp/out12"
28217 # Compute $ac_file's index in $config_headers.
28218 _am_stamp_count=1
28219 for _am_header in $config_headers :; do
28220   case $_am_header in
28221     $ac_file | $ac_file:* )
28222       break ;;
28223     * )
28224       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28225   esac
28226 done
28227 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
28228 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28229          X$ac_file : 'X\(//\)[^/]' \| \
28230          X$ac_file : 'X\(//\)$' \| \
28231          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
28232 echo X$ac_file |
28233     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28234             s//\1/
28235             q
28236           }
28237           /^X\(\/\/\)[^/].*/{
28238             s//\1/
28239             q
28240           }
28241           /^X\(\/\/\)$/{
28242             s//\1/
28243             q
28244           }
28245           /^X\(\/\).*/{
28246             s//\1/
28247             q
28248           }
28249           s/.*/./; q'`/stamp-h$_am_stamp_count
28250  ;;
28251
28252   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
28253 echo "$as_me: executing $ac_file commands" >&6;}
28254  ;;
28255   esac
28256
28257
28258   case $ac_file$ac_mode in
28259     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28260   # Strip MF so we end up with the name of the file.
28261   mf=`echo "$mf" | sed -e 's/:.*$//'`
28262   # Check whether this is an Automake generated Makefile or not.
28263   # We used to match only the files named `Makefile.in', but
28264   # some people rename them; so instead we look at the file content.
28265   # Grep'ing the first line is not enough: some people post-process
28266   # each Makefile.in and add a new line on top of each file to say so.
28267   # Grep'ing the whole file is not good either: AIX grep has a line
28268   # limit of 2048, but all sed's we know have understand at least 4000.
28269   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
28270     dirpart=`$as_dirname -- "$mf" ||
28271 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28272          X"$mf" : 'X\(//\)[^/]' \| \
28273          X"$mf" : 'X\(//\)$' \| \
28274          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28275 echo X"$mf" |
28276     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28277             s//\1/
28278             q
28279           }
28280           /^X\(\/\/\)[^/].*/{
28281             s//\1/
28282             q
28283           }
28284           /^X\(\/\/\)$/{
28285             s//\1/
28286             q
28287           }
28288           /^X\(\/\).*/{
28289             s//\1/
28290             q
28291           }
28292           s/.*/./; q'`
28293   else
28294     continue
28295   fi
28296   # Extract the definition of DEPDIR, am__include, and am__quote
28297   # from the Makefile without running `make'.
28298   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28299   test -z "$DEPDIR" && continue
28300   am__include=`sed -n 's/^am__include = //p' < "$mf"`
28301   test -z "am__include" && continue
28302   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28303   # When using ansi2knr, U may be empty or an underscore; expand it
28304   U=`sed -n 's/^U = //p' < "$mf"`
28305   # Find all dependency output files, they are included files with
28306   # $(DEPDIR) in their names.  We invoke sed twice because it is the
28307   # simplest approach to changing $(DEPDIR) to its actual value in the
28308   # expansion.
28309   for file in `sed -n "
28310     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28311        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28312     # Make sure the directory exists.
28313     test -f "$dirpart/$file" && continue
28314     fdir=`$as_dirname -- "$file" ||
28315 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28316          X"$file" : 'X\(//\)[^/]' \| \
28317          X"$file" : 'X\(//\)$' \| \
28318          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28319 echo X"$file" |
28320     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28321             s//\1/
28322             q
28323           }
28324           /^X\(\/\/\)[^/].*/{
28325             s//\1/
28326             q
28327           }
28328           /^X\(\/\/\)$/{
28329             s//\1/
28330             q
28331           }
28332           /^X\(\/\).*/{
28333             s//\1/
28334             q
28335           }
28336           s/.*/./; q'`
28337     { as_dir=$dirpart/$fdir
28338   case $as_dir in #(
28339   -*) as_dir=./$as_dir;;
28340   esac
28341   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28342     as_dirs=
28343     while :; do
28344       case $as_dir in #(
28345       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28346       *) as_qdir=$as_dir;;
28347       esac
28348       as_dirs="'$as_qdir' $as_dirs"
28349       as_dir=`$as_dirname -- "$as_dir" ||
28350 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28351          X"$as_dir" : 'X\(//\)[^/]' \| \
28352          X"$as_dir" : 'X\(//\)$' \| \
28353          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28354 echo X"$as_dir" |
28355     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28356             s//\1/
28357             q
28358           }
28359           /^X\(\/\/\)[^/].*/{
28360             s//\1/
28361             q
28362           }
28363           /^X\(\/\/\)$/{
28364             s//\1/
28365             q
28366           }
28367           /^X\(\/\).*/{
28368             s//\1/
28369             q
28370           }
28371           s/.*/./; q'`
28372       test -d "$as_dir" && break
28373     done
28374     test -z "$as_dirs" || eval "mkdir $as_dirs"
28375   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28376 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28377    { (exit 1); exit 1; }; }; }
28378     # echo "creating $dirpart/$file"
28379     echo '# dummy' > "$dirpart/$file"
28380   done
28381 done
28382  ;;
28383     "tools/graspe-slave":F)
28384     for file in                                                 \
28385      tools/graspe-slave           tools/graspe-master           \
28386     ; do                                                        \
28387       test -e $file && chmod +x $file;                          \
28388     done
28389  ;;
28390     "testsuite/Makefile":F)
28391     for file in                                                 \
28392      testsuite/run_tests                                        \
28393      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28394     ; do                                                        \
28395       test -e $file && chmod +x $file;                          \
28396     done
28397  ;;
28398     "testsuite/run_tests":F)
28399     for file in                                                 \
28400      testsuite/run_tests                                        \
28401      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28402     ; do                                                        \
28403       test -e $file && chmod +x $file;                          \
28404     done
28405  ;;
28406     "testsuite/gras/trp_tcp_usage":F)
28407     for file in                                                 \
28408      testsuite/run_tests                                        \
28409      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28410     ; do                                                        \
28411       test -e $file && chmod +x $file;                          \
28412     done
28413  ;;
28414     "testsuite/gras/trp_file_usage":F)
28415     for file in                                                 \
28416      testsuite/run_tests                                        \
28417      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28418     ; do                                                        \
28419       test -e $file && chmod +x $file;                          \
28420     done
28421  ;;
28422     "examples/Makefile":F)
28423     for file in                                                 \
28424      \
28425      examples/simdag/test_simdag                                \
28426      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28427      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28428     ; do                                                        \
28429       test -e $file && chmod +x $file;                          \
28430     done
28431  ;;
28432     "examples/msg/Makefile":F)
28433     for file in                                                 \
28434      \
28435      examples/simdag/test_simdag                                \
28436      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28437      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28438     ; do                                                        \
28439       test -e $file && chmod +x $file;                          \
28440     done
28441  ;;
28442     "examples/simdag/Makefile":F)
28443     for file in                                                 \
28444      \
28445      examples/simdag/test_simdag                                \
28446      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28447      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28448     ; do                                                        \
28449       test -e $file && chmod +x $file;                          \
28450     done
28451  ;;
28452     "examples/simdag/test_simdag":F)
28453     for file in                                                 \
28454      \
28455      examples/simdag/test_simdag                                \
28456      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28457      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28458     ; do                                                        \
28459       test -e $file && chmod +x $file;                          \
28460     done
28461  ;;
28462     "examples/gras/Makefile":F)
28463     for file in                                                 \
28464      \
28465      examples/simdag/test_simdag                                \
28466      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28467      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28468     ; do                                                        \
28469       test -e $file && chmod +x $file;                          \
28470     done
28471  ;;
28472     "examples/gras/ping/Makefile":F)
28473     for file in                                                 \
28474      \
28475      examples/simdag/test_simdag                                \
28476      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28477      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28478     ; do                                                        \
28479       test -e $file && chmod +x $file;                          \
28480     done
28481  ;;
28482     "examples/gras/rpc/Makefile":F)
28483     for file in                                                 \
28484      \
28485      examples/simdag/test_simdag                                \
28486      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28487      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28488     ; do                                                        \
28489       test -e $file && chmod +x $file;                          \
28490     done
28491  ;;
28492     "examples/gras/spawn/Makefile":F)
28493     for file in                                                 \
28494      \
28495      examples/simdag/test_simdag                                \
28496      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28497      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28498     ; do                                                        \
28499       test -e $file && chmod +x $file;                          \
28500     done
28501  ;;
28502     "examples/gras/synchro/Makefile":F)
28503     for file in                                                 \
28504      \
28505      examples/simdag/test_simdag                                \
28506      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28507      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28508     ; do                                                        \
28509       test -e $file && chmod +x $file;                          \
28510     done
28511  ;;
28512     "examples/gras/timer/Makefile":F)
28513     for file in                                                 \
28514      \
28515      examples/simdag/test_simdag                                \
28516      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28517      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28518     ; do                                                        \
28519       test -e $file && chmod +x $file;                          \
28520     done
28521  ;;
28522     "examples/gras/chrono/Makefile":F)
28523     for file in                                                 \
28524      \
28525      examples/simdag/test_simdag                                \
28526      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28527      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28528     ; do                                                        \
28529       test -e $file && chmod +x $file;                          \
28530     done
28531  ;;
28532     "examples/gras/mutual_exclusion/simple_token/Makefile":F)
28533     for file in                                                 \
28534      \
28535      examples/simdag/test_simdag                                \
28536      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28537      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28538     ; do                                                        \
28539       test -e $file && chmod +x $file;                          \
28540     done
28541  ;;
28542     "examples/gras/mmrpc/Makefile":F)
28543     for file in                                                 \
28544      \
28545      examples/simdag/test_simdag                                \
28546      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28547      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28548     ; do                                                        \
28549       test -e $file && chmod +x $file;                          \
28550     done
28551  ;;
28552     "examples/gras/pmm/Makefile":F)
28553     for file in                                                 \
28554      \
28555      examples/simdag/test_simdag                                \
28556      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28557      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28558     ; do                                                        \
28559       test -e $file && chmod +x $file;                          \
28560     done
28561  ;;
28562     "examples/gras/all2all/Makefile":F)
28563     for file in                                                 \
28564      \
28565      examples/simdag/test_simdag                                \
28566      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28567      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28568     ; do                                                        \
28569       test -e $file && chmod +x $file;                          \
28570     done
28571  ;;
28572     "examples/amok/Makefile":F)
28573     for file in                                                 \
28574      \
28575      examples/simdag/test_simdag                                \
28576      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28577      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28578     ; do                                                        \
28579       test -e $file && chmod +x $file;                          \
28580     done
28581  ;;
28582     "examples/amok/bandwidth/Makefile":F)
28583     for file in                                                 \
28584      \
28585      examples/simdag/test_simdag                                \
28586      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28587      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28588     ; do                                                        \
28589       test -e $file && chmod +x $file;                          \
28590     done
28591  ;;
28592     "examples/amok/bandwidth/test_sg":F)
28593     for file in                                                 \
28594      \
28595      examples/simdag/test_simdag                                \
28596      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28597      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28598     ; do                                                        \
28599       test -e $file && chmod +x $file;                          \
28600     done
28601  ;;
28602     "examples/amok/bandwidth/test_rl":F)
28603     for file in                                                 \
28604      \
28605      examples/simdag/test_simdag                                \
28606      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28607      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28608     ; do                                                        \
28609       test -e $file && chmod +x $file;                          \
28610     done
28611  ;;
28612     "examples/amok/saturate/Makefile":F)
28613     for file in                                                 \
28614      \
28615      examples/simdag/test_simdag                                \
28616      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28617      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28618     ; do                                                        \
28619       test -e $file && chmod +x $file;                          \
28620     done
28621  ;;
28622     "examples/amok/saturate/test_sg":F)
28623     for file in                                                 \
28624      \
28625      examples/simdag/test_simdag                                \
28626      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28627      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28628     ; do                                                        \
28629       test -e $file && chmod +x $file;                          \
28630     done
28631  ;;
28632     "examples/amok/saturate/test_rl":F)
28633     for file in                                                 \
28634      \
28635      examples/simdag/test_simdag                                \
28636      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28637      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28638     ; do                                                        \
28639       test -e $file && chmod +x $file;                          \
28640     done
28641  ;;
28642
28643   esac
28644 done # for ac_tag
28645
28646
28647 { (exit 0); exit 0; }
28648 _ACEOF
28649 chmod +x $CONFIG_STATUS
28650 ac_clean_files=$ac_clean_files_save
28651
28652
28653 # configure is writing to config.log, and then calls config.status.
28654 # config.status does its own redirection, appending to config.log.
28655 # Unfortunately, on DOS this fails, as config.log is still kept open
28656 # by configure, so config.status won't be able to write to it; its
28657 # output is simply discarded.  So we exec the FD to /dev/null,
28658 # effectively closing config.log, so it can be properly (re)opened and
28659 # appended to by config.status.  When coming back to configure, we
28660 # need to make the FD available again.
28661 if test "$no_create" != yes; then
28662   ac_cs_success=:
28663   ac_config_status_args=
28664   test "$silent" = yes &&
28665     ac_config_status_args="$ac_config_status_args --quiet"
28666   exec 5>/dev/null
28667   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28668   exec 5>>config.log
28669   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28670   # would make configure fail if this is the last instruction.
28671   $ac_cs_success || { (exit 1); exit 1; }
28672 fi
28673
28674
28675 echo "
28676
28677 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
28678
28679         Compiler:        ${CC} (version: ${GCC_VERSION})
28680
28681         CFlags:          ${CFLAGS}
28682         CPPFlags:        ${CPPFLAGS}
28683         LDFlags:         ${LDFLAGS}
28684
28685         Context backend: ${with_context}
28686 "
28687
28688 if test -e CVS && test x$USE_MAINTAINER_MODE != xyes ; then
28689   echo "WARNING:"
28690   echo "WARNING: you seem to compile the CVS version without the maintainer mode."
28691   echo "WARNING: You won't be able to build archives that way (make dist is likely to fail). "
28692   echo "WARNING: If you want to enable the maintainer mode, juste specify it like this:"
28693   echo "WARNING:"
28694   echo "WARNING: ./configure '--enable-maintainer-mode' $ac_configure_args"
28695   echo "WARNING:"
28696 fi
28697 echo $build_id > stamp.configure
28698
28699 exit 0;