Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Added the generic method to model fairness depending on the
[simgrid.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.161 .
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 exec 7<&0 </dev/null 6>&1
710
711 # Name of the host.
712 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
713 # so uname gets run too.
714 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
715
716 #
717 # Initializations.
718 #
719 ac_default_prefix=/usr/local
720 ac_clean_files=
721 ac_config_libobj_dir=.
722 LIBOBJS=
723 cross_compiling=no
724 subdirs=
725 MFLAGS=
726 MAKEFLAGS=
727 SHELL=${CONFIG_SHELL-/bin/sh}
728
729 # Identity of this package.
730 PACKAGE_NAME='simgrid'
731 PACKAGE_TARNAME='simgrid'
732 PACKAGE_VERSION='3.3-cvs'
733 PACKAGE_STRING='simgrid 3.3-cvs'
734 PACKAGE_BUGREPORT='simgrid-devel@lists.gforge.inria.fr'
735
736 ac_unique_file="include/gras.h"
737 # Factoring default headers for most tests.
738 ac_includes_default="\
739 #include <stdio.h>
740 #ifdef HAVE_SYS_TYPES_H
741 # include <sys/types.h>
742 #endif
743 #ifdef HAVE_SYS_STAT_H
744 # include <sys/stat.h>
745 #endif
746 #ifdef STDC_HEADERS
747 # include <stdlib.h>
748 # include <stddef.h>
749 #else
750 # ifdef HAVE_STDLIB_H
751 #  include <stdlib.h>
752 # endif
753 #endif
754 #ifdef HAVE_STRING_H
755 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756 #  include <memory.h>
757 # endif
758 # include <string.h>
759 #endif
760 #ifdef HAVE_STRINGS_H
761 # include <strings.h>
762 #endif
763 #ifdef HAVE_INTTYPES_H
764 # include <inttypes.h>
765 #endif
766 #ifdef HAVE_STDINT_H
767 # include <stdint.h>
768 #endif
769 #ifdef HAVE_UNISTD_H
770 # include <unistd.h>
771 #endif"
772
773 ac_subst_vars='SHELL
774 PATH_SEPARATOR
775 PACKAGE_NAME
776 PACKAGE_TARNAME
777 PACKAGE_VERSION
778 PACKAGE_STRING
779 PACKAGE_BUGREPORT
780 exec_prefix
781 prefix
782 program_transform_name
783 bindir
784 sbindir
785 libexecdir
786 datarootdir
787 datadir
788 sysconfdir
789 sharedstatedir
790 localstatedir
791 includedir
792 oldincludedir
793 docdir
794 infodir
795 htmldir
796 dvidir
797 pdfdir
798 psdir
799 libdir
800 localedir
801 mandir
802 DEFS
803 ECHO_C
804 ECHO_N
805 ECHO_T
806 LIBS
807 build_alias
808 host_alias
809 target_alias
810 build
811 build_cpu
812 build_vendor
813 build_os
814 host
815 host_cpu
816 host_vendor
817 host_os
818 target
819 target_cpu
820 target_vendor
821 target_os
822 INSTALL_PROGRAM
823 INSTALL_SCRIPT
824 INSTALL_DATA
825 CYGPATH_W
826 PACKAGE
827 VERSION
828 ACLOCAL
829 AUTOCONF
830 AUTOMAKE
831 AUTOHEADER
832 MAKEINFO
833 install_sh
834 STRIP
835 INSTALL_STRIP_PROGRAM
836 mkdir_p
837 AWK
838 SET_MAKE
839 am__leading_dot
840 AMTAR
841 am__tar
842 am__untar
843 CC
844 CFLAGS
845 LDFLAGS
846 CPPFLAGS
847 ac_ct_CC
848 EXEEXT
849 OBJEXT
850 DEPDIR
851 am__include
852 am__quote
853 AMDEP_TRUE
854 AMDEP_FALSE
855 AMDEPBACKSLASH
856 CCDEPMODE
857 am__fastdepCC_TRUE
858 am__fastdepCC_FALSE
859 GREP
860 EGREP
861 LN_S
862 ECHO
863 AR
864 RANLIB
865 DLLTOOL
866 AS
867 OBJDUMP
868 CPP
869 CXX
870 CXXFLAGS
871 ac_ct_CXX
872 CXXDEPMODE
873 am__fastdepCXX_TRUE
874 am__fastdepCXX_FALSE
875 CXXCPP
876 LIBTOOL
877 LIBOBJS
878 GRAS_ARCH_32_BITS_TRUE
879 GRAS_ARCH_32_BITS_FALSE
880 PTH_STACK_GROWTH
881 pth_skaddr_makecontext
882 pth_sksize_makecontext
883 GTNETS_CFLAGS
884 GTNETS_LDFLAGS
885 USE_GTNETS_TRUE
886 USE_GTNETS_FALSE
887 HAVE_SDP_TRUE
888 HAVE_SDP_FALSE
889 SIMGRID_DEP
890 AM_CFLAGS
891 GRAS_DEP
892 GRAMINE_MODE_TRUE
893 GRAMINE_MODE_FALSE
894 MAINTAINER_MODE_TRUE
895 MAINTAINER_MODE_FALSE
896 MAINT
897 LD_DYNAMIC_FLAGS
898 abs_builddir
899 abs_srcdir
900 abs_top_builddir
901 abs_top_srcdir
902 BASH
903 WARNING
904 LEX
905 LEX_OUTPUT_ROOT
906 LEXLIB
907 FLEXML
908 HAVE_FLEXML_TRUE
909 HAVE_FLEXML_FALSE
910 DOXYGEN
911 ADDR2LINE
912 ac_configure_args
913 MD5SUM
914 build_id
915 LTLIBOBJS'
916 ac_subst_files=''
917       ac_precious_vars='build_alias
918 host_alias
919 target_alias
920 CC
921 CFLAGS
922 LDFLAGS
923 LIBS
924 CPPFLAGS
925 CPP
926 CXX
927 CXXFLAGS
928 CCC
929 CXXCPP'
930
931
932 # Initialize some variables set by options.
933 ac_init_help=
934 ac_init_version=false
935 # The variables have the same names as the options, with
936 # dashes changed to underlines.
937 cache_file=/dev/null
938 exec_prefix=NONE
939 no_create=
940 no_recursion=
941 prefix=NONE
942 program_prefix=NONE
943 program_suffix=NONE
944 program_transform_name=s,x,x,
945 silent=
946 site=
947 srcdir=
948 verbose=
949 x_includes=NONE
950 x_libraries=NONE
951
952 # Installation directory options.
953 # These are left unexpanded so users can "make install exec_prefix=/foo"
954 # and all the variables that are supposed to be based on exec_prefix
955 # by default will actually change.
956 # Use braces instead of parens because sh, perl, etc. also accept them.
957 # (The list follows the same order as the GNU Coding Standards.)
958 bindir='${exec_prefix}/bin'
959 sbindir='${exec_prefix}/sbin'
960 libexecdir='${exec_prefix}/libexec'
961 datarootdir='${prefix}/share'
962 datadir='${datarootdir}'
963 sysconfdir='${prefix}/etc'
964 sharedstatedir='${prefix}/com'
965 localstatedir='${prefix}/var'
966 includedir='${prefix}/include'
967 oldincludedir='/usr/include'
968 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
969 infodir='${datarootdir}/info'
970 htmldir='${docdir}'
971 dvidir='${docdir}'
972 pdfdir='${docdir}'
973 psdir='${docdir}'
974 libdir='${exec_prefix}/lib'
975 localedir='${datarootdir}/locale'
976 mandir='${datarootdir}/man'
977
978 ac_prev=
979 ac_dashdash=
980 for ac_option
981 do
982   # If the previous option needs an argument, assign it.
983   if test -n "$ac_prev"; then
984     eval $ac_prev=\$ac_option
985     ac_prev=
986     continue
987   fi
988
989   case $ac_option in
990   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
991   *)    ac_optarg=yes ;;
992   esac
993
994   # Accept the important Cygnus configure options, so we can diagnose typos.
995
996   case $ac_dashdash$ac_option in
997   --)
998     ac_dashdash=yes ;;
999
1000   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1001     ac_prev=bindir ;;
1002   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1003     bindir=$ac_optarg ;;
1004
1005   -build | --build | --buil | --bui | --bu)
1006     ac_prev=build_alias ;;
1007   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1008     build_alias=$ac_optarg ;;
1009
1010   -cache-file | --cache-file | --cache-fil | --cache-fi \
1011   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1012     ac_prev=cache_file ;;
1013   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1014   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1015     cache_file=$ac_optarg ;;
1016
1017   --config-cache | -C)
1018     cache_file=config.cache ;;
1019
1020   -datadir | --datadir | --datadi | --datad)
1021     ac_prev=datadir ;;
1022   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1023     datadir=$ac_optarg ;;
1024
1025   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1026   | --dataroo | --dataro | --datar)
1027     ac_prev=datarootdir ;;
1028   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1029   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1030     datarootdir=$ac_optarg ;;
1031
1032   -disable-* | --disable-*)
1033     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1034     # Reject names that are not valid shell variable names.
1035     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1036       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1037    { (exit 1); exit 1; }; }
1038     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1039     eval enable_$ac_feature=no ;;
1040
1041   -docdir | --docdir | --docdi | --doc | --do)
1042     ac_prev=docdir ;;
1043   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1044     docdir=$ac_optarg ;;
1045
1046   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1047     ac_prev=dvidir ;;
1048   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1049     dvidir=$ac_optarg ;;
1050
1051   -enable-* | --enable-*)
1052     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1053     # Reject names that are not valid shell variable names.
1054     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1055       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1056    { (exit 1); exit 1; }; }
1057     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1058     eval enable_$ac_feature=\$ac_optarg ;;
1059
1060   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1061   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1062   | --exec | --exe | --ex)
1063     ac_prev=exec_prefix ;;
1064   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1065   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1066   | --exec=* | --exe=* | --ex=*)
1067     exec_prefix=$ac_optarg ;;
1068
1069   -gas | --gas | --ga | --g)
1070     # Obsolete; use --with-gas.
1071     with_gas=yes ;;
1072
1073   -help | --help | --hel | --he | -h)
1074     ac_init_help=long ;;
1075   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1076     ac_init_help=recursive ;;
1077   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1078     ac_init_help=short ;;
1079
1080   -host | --host | --hos | --ho)
1081     ac_prev=host_alias ;;
1082   -host=* | --host=* | --hos=* | --ho=*)
1083     host_alias=$ac_optarg ;;
1084
1085   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1086     ac_prev=htmldir ;;
1087   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1088   | --ht=*)
1089     htmldir=$ac_optarg ;;
1090
1091   -includedir | --includedir | --includedi | --included | --include \
1092   | --includ | --inclu | --incl | --inc)
1093     ac_prev=includedir ;;
1094   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1095   | --includ=* | --inclu=* | --incl=* | --inc=*)
1096     includedir=$ac_optarg ;;
1097
1098   -infodir | --infodir | --infodi | --infod | --info | --inf)
1099     ac_prev=infodir ;;
1100   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1101     infodir=$ac_optarg ;;
1102
1103   -libdir | --libdir | --libdi | --libd)
1104     ac_prev=libdir ;;
1105   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1106     libdir=$ac_optarg ;;
1107
1108   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1109   | --libexe | --libex | --libe)
1110     ac_prev=libexecdir ;;
1111   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1112   | --libexe=* | --libex=* | --libe=*)
1113     libexecdir=$ac_optarg ;;
1114
1115   -localedir | --localedir | --localedi | --localed | --locale)
1116     ac_prev=localedir ;;
1117   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1118     localedir=$ac_optarg ;;
1119
1120   -localstatedir | --localstatedir | --localstatedi | --localstated \
1121   | --localstate | --localstat | --localsta | --localst | --locals)
1122     ac_prev=localstatedir ;;
1123   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1124   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1125     localstatedir=$ac_optarg ;;
1126
1127   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1128     ac_prev=mandir ;;
1129   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1130     mandir=$ac_optarg ;;
1131
1132   -nfp | --nfp | --nf)
1133     # Obsolete; use --without-fp.
1134     with_fp=no ;;
1135
1136   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1137   | --no-cr | --no-c | -n)
1138     no_create=yes ;;
1139
1140   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1141   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1142     no_recursion=yes ;;
1143
1144   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1145   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1146   | --oldin | --oldi | --old | --ol | --o)
1147     ac_prev=oldincludedir ;;
1148   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1149   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1150   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1151     oldincludedir=$ac_optarg ;;
1152
1153   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1154     ac_prev=prefix ;;
1155   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1156     prefix=$ac_optarg ;;
1157
1158   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1159   | --program-pre | --program-pr | --program-p)
1160     ac_prev=program_prefix ;;
1161   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1162   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1163     program_prefix=$ac_optarg ;;
1164
1165   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1166   | --program-suf | --program-su | --program-s)
1167     ac_prev=program_suffix ;;
1168   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1169   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1170     program_suffix=$ac_optarg ;;
1171
1172   -program-transform-name | --program-transform-name \
1173   | --program-transform-nam | --program-transform-na \
1174   | --program-transform-n | --program-transform- \
1175   | --program-transform | --program-transfor \
1176   | --program-transfo | --program-transf \
1177   | --program-trans | --program-tran \
1178   | --progr-tra | --program-tr | --program-t)
1179     ac_prev=program_transform_name ;;
1180   -program-transform-name=* | --program-transform-name=* \
1181   | --program-transform-nam=* | --program-transform-na=* \
1182   | --program-transform-n=* | --program-transform-=* \
1183   | --program-transform=* | --program-transfor=* \
1184   | --program-transfo=* | --program-transf=* \
1185   | --program-trans=* | --program-tran=* \
1186   | --progr-tra=* | --program-tr=* | --program-t=*)
1187     program_transform_name=$ac_optarg ;;
1188
1189   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1190     ac_prev=pdfdir ;;
1191   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1192     pdfdir=$ac_optarg ;;
1193
1194   -psdir | --psdir | --psdi | --psd | --ps)
1195     ac_prev=psdir ;;
1196   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1197     psdir=$ac_optarg ;;
1198
1199   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1200   | -silent | --silent | --silen | --sile | --sil)
1201     silent=yes ;;
1202
1203   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1204     ac_prev=sbindir ;;
1205   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1206   | --sbi=* | --sb=*)
1207     sbindir=$ac_optarg ;;
1208
1209   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1210   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1211   | --sharedst | --shareds | --shared | --share | --shar \
1212   | --sha | --sh)
1213     ac_prev=sharedstatedir ;;
1214   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1215   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1216   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1217   | --sha=* | --sh=*)
1218     sharedstatedir=$ac_optarg ;;
1219
1220   -site | --site | --sit)
1221     ac_prev=site ;;
1222   -site=* | --site=* | --sit=*)
1223     site=$ac_optarg ;;
1224
1225   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1226     ac_prev=srcdir ;;
1227   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1228     srcdir=$ac_optarg ;;
1229
1230   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1231   | --syscon | --sysco | --sysc | --sys | --sy)
1232     ac_prev=sysconfdir ;;
1233   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1234   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1235     sysconfdir=$ac_optarg ;;
1236
1237   -target | --target | --targe | --targ | --tar | --ta | --t)
1238     ac_prev=target_alias ;;
1239   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1240     target_alias=$ac_optarg ;;
1241
1242   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1243     verbose=yes ;;
1244
1245   -version | --version | --versio | --versi | --vers | -V)
1246     ac_init_version=: ;;
1247
1248   -with-* | --with-*)
1249     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1250     # Reject names that are not valid shell variable names.
1251     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1252       { echo "$as_me: error: invalid package name: $ac_package" >&2
1253    { (exit 1); exit 1; }; }
1254     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1255     eval with_$ac_package=\$ac_optarg ;;
1256
1257   -without-* | --without-*)
1258     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1259     # Reject names that are not valid shell variable names.
1260     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261       { echo "$as_me: error: invalid package name: $ac_package" >&2
1262    { (exit 1); exit 1; }; }
1263     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1264     eval with_$ac_package=no ;;
1265
1266   --x)
1267     # Obsolete; use --with-x.
1268     with_x=yes ;;
1269
1270   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1271   | --x-incl | --x-inc | --x-in | --x-i)
1272     ac_prev=x_includes ;;
1273   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1274   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1275     x_includes=$ac_optarg ;;
1276
1277   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1278   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1279     ac_prev=x_libraries ;;
1280   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1281   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1282     x_libraries=$ac_optarg ;;
1283
1284   -*) { echo "$as_me: error: unrecognized option: $ac_option
1285 Try \`$0 --help' for more information." >&2
1286    { (exit 1); exit 1; }; }
1287     ;;
1288
1289   *=*)
1290     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1291     # Reject names that are not valid shell variable names.
1292     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1293       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1294    { (exit 1); exit 1; }; }
1295     eval $ac_envvar=\$ac_optarg
1296     export $ac_envvar ;;
1297
1298   *)
1299     # FIXME: should be removed in autoconf 3.0.
1300     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1301     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1303     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1304     ;;
1305
1306   esac
1307 done
1308
1309 if test -n "$ac_prev"; then
1310   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1311   { echo "$as_me: error: missing argument to $ac_option" >&2
1312    { (exit 1); exit 1; }; }
1313 fi
1314
1315 # Be sure to have absolute directory names.
1316 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1317                 datadir sysconfdir sharedstatedir localstatedir includedir \
1318                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1319                 libdir localedir mandir
1320 do
1321   eval ac_val=\$$ac_var
1322   case $ac_val in
1323     [\\/$]* | ?:[\\/]* )  continue;;
1324     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1325   esac
1326   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1327    { (exit 1); exit 1; }; }
1328 done
1329
1330 # There might be people who depend on the old broken behavior: `$host'
1331 # used to hold the argument of --host etc.
1332 # FIXME: To remove some day.
1333 build=$build_alias
1334 host=$host_alias
1335 target=$target_alias
1336
1337 # FIXME: To remove some day.
1338 if test "x$host_alias" != x; then
1339   if test "x$build_alias" = x; then
1340     cross_compiling=maybe
1341     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1342     If a cross compiler is detected then cross compile mode will be used." >&2
1343   elif test "x$build_alias" != "x$host_alias"; then
1344     cross_compiling=yes
1345   fi
1346 fi
1347
1348 ac_tool_prefix=
1349 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1350
1351 test "$silent" = yes && exec 6>/dev/null
1352
1353
1354 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1355 ac_ls_di=`ls -di .` &&
1356 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1357   { echo "$as_me: error: Working directory cannot be determined" >&2
1358    { (exit 1); exit 1; }; }
1359 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1360   { echo "$as_me: error: pwd does not report name of working directory" >&2
1361    { (exit 1); exit 1; }; }
1362
1363
1364 # Find the source files, if location was not specified.
1365 if test -z "$srcdir"; then
1366   ac_srcdir_defaulted=yes
1367   # Try the directory containing this script, then the parent directory.
1368   ac_confdir=`$as_dirname -- "$0" ||
1369 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1370          X"$0" : 'X\(//\)[^/]' \| \
1371          X"$0" : 'X\(//\)$' \| \
1372          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1373 echo X"$0" |
1374     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1375             s//\1/
1376             q
1377           }
1378           /^X\(\/\/\)[^/].*/{
1379             s//\1/
1380             q
1381           }
1382           /^X\(\/\/\)$/{
1383             s//\1/
1384             q
1385           }
1386           /^X\(\/\).*/{
1387             s//\1/
1388             q
1389           }
1390           s/.*/./; q'`
1391   srcdir=$ac_confdir
1392   if test ! -r "$srcdir/$ac_unique_file"; then
1393     srcdir=..
1394   fi
1395 else
1396   ac_srcdir_defaulted=no
1397 fi
1398 if test ! -r "$srcdir/$ac_unique_file"; then
1399   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1400   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1401    { (exit 1); exit 1; }; }
1402 fi
1403 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1404 ac_abs_confdir=`(
1405         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1406    { (exit 1); exit 1; }; }
1407         pwd)`
1408 # When building in place, set srcdir=.
1409 if test "$ac_abs_confdir" = "$ac_pwd"; then
1410   srcdir=.
1411 fi
1412 # Remove unnecessary trailing slashes from srcdir.
1413 # Double slashes in file names in object file debugging info
1414 # mess up M-x gdb in Emacs.
1415 case $srcdir in
1416 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1417 esac
1418 for ac_var in $ac_precious_vars; do
1419   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1420   eval ac_env_${ac_var}_value=\$${ac_var}
1421   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1422   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1423 done
1424
1425 #
1426 # Report the --help message.
1427 #
1428 if test "$ac_init_help" = "long"; then
1429   # Omit some internal or obsolete options to make the list less imposing.
1430   # This message is too long to be a string in the A/UX 3.1 sh.
1431   cat <<_ACEOF
1432 \`configure' configures simgrid 3.3-cvs to adapt to many kinds of systems.
1433
1434 Usage: $0 [OPTION]... [VAR=VALUE]...
1435
1436 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437 VAR=VALUE.  See below for descriptions of some of the useful variables.
1438
1439 Defaults for the options are specified in brackets.
1440
1441 Configuration:
1442   -h, --help              display this help and exit
1443       --help=short        display options specific to this package
1444       --help=recursive    display the short help of all the included packages
1445   -V, --version           display version information and exit
1446   -q, --quiet, --silent   do not print \`checking...' messages
1447       --cache-file=FILE   cache test results in FILE [disabled]
1448   -C, --config-cache      alias for \`--cache-file=config.cache'
1449   -n, --no-create         do not create output files
1450       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1451
1452 Installation directories:
1453   --prefix=PREFIX         install architecture-independent files in PREFIX
1454                           [$ac_default_prefix]
1455   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1456                           [PREFIX]
1457
1458 By default, \`make install' will install all the files in
1459 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1460 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461 for instance \`--prefix=\$HOME'.
1462
1463 For better control, use the options below.
1464
1465 Fine tuning of the installation directories:
1466   --bindir=DIR           user executables [EPREFIX/bin]
1467   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1468   --libexecdir=DIR       program executables [EPREFIX/libexec]
1469   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1470   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1471   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1472   --libdir=DIR           object code libraries [EPREFIX/lib]
1473   --includedir=DIR       C header files [PREFIX/include]
1474   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1475   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1476   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1477   --infodir=DIR          info documentation [DATAROOTDIR/info]
1478   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1479   --mandir=DIR           man documentation [DATAROOTDIR/man]
1480   --docdir=DIR           documentation root [DATAROOTDIR/doc/simgrid]
1481   --htmldir=DIR          html documentation [DOCDIR]
1482   --dvidir=DIR           dvi documentation [DOCDIR]
1483   --pdfdir=DIR           pdf documentation [DOCDIR]
1484   --psdir=DIR            ps documentation [DOCDIR]
1485 _ACEOF
1486
1487   cat <<\_ACEOF
1488
1489 Program names:
1490   --program-prefix=PREFIX            prepend PREFIX to installed program names
1491   --program-suffix=SUFFIX            append SUFFIX to installed program names
1492   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1493
1494 System types:
1495   --build=BUILD     configure for building on BUILD [guessed]
1496   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1497   --target=TARGET   configure for building compilers for TARGET [HOST]
1498 _ACEOF
1499 fi
1500
1501 if test -n "$ac_init_help"; then
1502   case $ac_init_help in
1503      short | recursive ) echo "Configuration of simgrid 3.3-cvs:";;
1504    esac
1505   cat <<\_ACEOF
1506
1507 Optional Features:
1508   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1509   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1510   --enable-shared[=PKGS]  build shared libraries [default=yes]
1511   --enable-static[=PKGS]  build static libraries [default=yes]
1512   --enable-fast-install[=PKGS]
1513                           optimize for fast installation [default=yes]
1514   --disable-dependency-tracking  speeds up one-time build
1515   --enable-dependency-tracking   do not reject slow dependency extractors
1516   --disable-libtool-lock  avoid locking (might break parallel builds)
1517   --enable-maintainer-mode  enable make rules and dependencies not useful
1518                           (and sometimes confusing) to the casual installer
1519   --enable-compile-warnings
1520                           use compiler warnings (default=no, unless in
1521                           maintainer mode)
1522   --disable-compile-optimizations
1523                           use compiler optimizations (default=yes, unless if
1524                           CFLAGS is explicitly set)
1525
1526 Optional Packages:
1527   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1528   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1529   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1530   --with-pic              try to use only PIC/non-PIC objects [default=use
1531                           both]
1532   --with-tags[=TAGS]      include additional configurations [automatic]
1533   --with-pthread   Use pthread instead of ucontext.
1534   --with-pthreads   Use pthread instead of ucontext.
1535   --with-context=ucontext/pthread   Use either (System V) swapcontext or pthread [default=auto].
1536   --with-gtnets           Path to GTNetS installation (default to empty, ie
1537                           not using GTNetS)
1538
1539 Some influential environment variables:
1540   CC          C compiler command
1541   CFLAGS      C compiler flags
1542   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1543               nonstandard directory <lib dir>
1544   LIBS        libraries to pass to the linker, e.g. -l<library>
1545   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1546               you have headers in a nonstandard directory <include dir>
1547   CPP         C preprocessor
1548   CXX         C++ compiler command
1549   CXXFLAGS    C++ compiler flags
1550   CXXCPP      C++ preprocessor
1551
1552 Use these variables to override the choices made by `configure' or to help
1553 it to find libraries and programs with nonstandard names/locations.
1554
1555 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1556 _ACEOF
1557 ac_status=$?
1558 fi
1559
1560 if test "$ac_init_help" = "recursive"; then
1561   # If there are subdirs, report their specific --help.
1562   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1563     test -d "$ac_dir" || continue
1564     ac_builddir=.
1565
1566 case "$ac_dir" in
1567 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 *)
1569   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1570   # A ".." for each directory in $ac_dir_suffix.
1571   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1572   case $ac_top_builddir_sub in
1573   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1575   esac ;;
1576 esac
1577 ac_abs_top_builddir=$ac_pwd
1578 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1579 # for backward compatibility:
1580 ac_top_builddir=$ac_top_build_prefix
1581
1582 case $srcdir in
1583   .)  # We are building in place.
1584     ac_srcdir=.
1585     ac_top_srcdir=$ac_top_builddir_sub
1586     ac_abs_top_srcdir=$ac_pwd ;;
1587   [\\/]* | ?:[\\/]* )  # Absolute name.
1588     ac_srcdir=$srcdir$ac_dir_suffix;
1589     ac_top_srcdir=$srcdir
1590     ac_abs_top_srcdir=$srcdir ;;
1591   *) # Relative name.
1592     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1593     ac_top_srcdir=$ac_top_build_prefix$srcdir
1594     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1595 esac
1596 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1597
1598     cd "$ac_dir" || { ac_status=$?; continue; }
1599     # Check for guested configure.
1600     if test -f "$ac_srcdir/configure.gnu"; then
1601       echo &&
1602       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1603     elif test -f "$ac_srcdir/configure"; then
1604       echo &&
1605       $SHELL "$ac_srcdir/configure" --help=recursive
1606     else
1607       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1608     fi || ac_status=$?
1609     cd "$ac_pwd" || { ac_status=$?; break; }
1610   done
1611 fi
1612
1613 test -n "$ac_init_help" && exit $ac_status
1614 if $ac_init_version; then
1615   cat <<\_ACEOF
1616 simgrid configure 3.3-cvs
1617 generated by GNU Autoconf 2.61
1618
1619 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1620 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1621 This configure script is free software; the Free Software Foundation
1622 gives unlimited permission to copy, distribute and modify it.
1623 _ACEOF
1624   exit
1625 fi
1626 cat >config.log <<_ACEOF
1627 This file contains any messages produced by compilers while
1628 running configure, to aid debugging if configure makes a mistake.
1629
1630 It was created by simgrid $as_me 3.3-cvs, which was
1631 generated by GNU Autoconf 2.61.  Invocation command line was
1632
1633   $ $0 $@
1634
1635 _ACEOF
1636 exec 5>>config.log
1637 {
1638 cat <<_ASUNAME
1639 ## --------- ##
1640 ## Platform. ##
1641 ## --------- ##
1642
1643 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1644 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1645 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1646 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1647 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1648
1649 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1650 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1651
1652 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1653 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1654 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1655 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1656 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1657 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1658 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1659
1660 _ASUNAME
1661
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 for as_dir in $PATH
1664 do
1665   IFS=$as_save_IFS
1666   test -z "$as_dir" && as_dir=.
1667   echo "PATH: $as_dir"
1668 done
1669 IFS=$as_save_IFS
1670
1671 } >&5
1672
1673 cat >&5 <<_ACEOF
1674
1675
1676 ## ----------- ##
1677 ## Core tests. ##
1678 ## ----------- ##
1679
1680 _ACEOF
1681
1682
1683 # Keep a trace of the command line.
1684 # Strip out --no-create and --no-recursion so they do not pile up.
1685 # Strip out --silent because we don't want to record it for future runs.
1686 # Also quote any args containing shell meta-characters.
1687 # Make two passes to allow for proper duplicate-argument suppression.
1688 ac_configure_args=
1689 ac_configure_args0=
1690 ac_configure_args1=
1691 ac_must_keep_next=false
1692 for ac_pass in 1 2
1693 do
1694   for ac_arg
1695   do
1696     case $ac_arg in
1697     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1698     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1699     | -silent | --silent | --silen | --sile | --sil)
1700       continue ;;
1701     *\'*)
1702       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1703     esac
1704     case $ac_pass in
1705     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1706     2)
1707       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1708       if test $ac_must_keep_next = true; then
1709         ac_must_keep_next=false # Got value, back to normal.
1710       else
1711         case $ac_arg in
1712           *=* | --config-cache | -C | -disable-* | --disable-* \
1713           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1714           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1715           | -with-* | --with-* | -without-* | --without-* | --x)
1716             case "$ac_configure_args0 " in
1717               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1718             esac
1719             ;;
1720           -* ) ac_must_keep_next=true ;;
1721         esac
1722       fi
1723       ac_configure_args="$ac_configure_args '$ac_arg'"
1724       ;;
1725     esac
1726   done
1727 done
1728 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1729 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1730
1731 # When interrupted or exit'd, cleanup temporary files, and complete
1732 # config.log.  We remove comments because anyway the quotes in there
1733 # would cause problems or look ugly.
1734 # WARNING: Use '\'' to represent an apostrophe within the trap.
1735 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1736 trap 'exit_status=$?
1737   # Save into config.log some information that might help in debugging.
1738   {
1739     echo
1740
1741     cat <<\_ASBOX
1742 ## ---------------- ##
1743 ## Cache variables. ##
1744 ## ---------------- ##
1745 _ASBOX
1746     echo
1747     # The following way of writing the cache mishandles newlines in values,
1748 (
1749   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1750     eval ac_val=\$$ac_var
1751     case $ac_val in #(
1752     *${as_nl}*)
1753       case $ac_var in #(
1754       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1755 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1756       esac
1757       case $ac_var in #(
1758       _ | IFS | as_nl) ;; #(
1759       *) $as_unset $ac_var ;;
1760       esac ;;
1761     esac
1762   done
1763   (set) 2>&1 |
1764     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1765     *${as_nl}ac_space=\ *)
1766       sed -n \
1767         "s/'\''/'\''\\\\'\'''\''/g;
1768           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1769       ;; #(
1770     *)
1771       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1772       ;;
1773     esac |
1774     sort
1775 )
1776     echo
1777
1778     cat <<\_ASBOX
1779 ## ----------------- ##
1780 ## Output variables. ##
1781 ## ----------------- ##
1782 _ASBOX
1783     echo
1784     for ac_var in $ac_subst_vars
1785     do
1786       eval ac_val=\$$ac_var
1787       case $ac_val in
1788       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1789       esac
1790       echo "$ac_var='\''$ac_val'\''"
1791     done | sort
1792     echo
1793
1794     if test -n "$ac_subst_files"; then
1795       cat <<\_ASBOX
1796 ## ------------------- ##
1797 ## File substitutions. ##
1798 ## ------------------- ##
1799 _ASBOX
1800       echo
1801       for ac_var in $ac_subst_files
1802       do
1803         eval ac_val=\$$ac_var
1804         case $ac_val in
1805         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1806         esac
1807         echo "$ac_var='\''$ac_val'\''"
1808       done | sort
1809       echo
1810     fi
1811
1812     if test -s confdefs.h; then
1813       cat <<\_ASBOX
1814 ## ----------- ##
1815 ## confdefs.h. ##
1816 ## ----------- ##
1817 _ASBOX
1818       echo
1819       cat confdefs.h
1820       echo
1821     fi
1822     test "$ac_signal" != 0 &&
1823       echo "$as_me: caught signal $ac_signal"
1824     echo "$as_me: exit $exit_status"
1825   } >&5
1826   rm -f core *.core core.conftest.* &&
1827     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1828     exit $exit_status
1829 ' 0
1830 for ac_signal in 1 2 13 15; do
1831   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1832 done
1833 ac_signal=0
1834
1835 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1836 rm -f -r conftest* confdefs.h
1837
1838 # Predefined preprocessor variables.
1839
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE_NAME "$PACKAGE_NAME"
1842 _ACEOF
1843
1844
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1847 _ACEOF
1848
1849
1850 cat >>confdefs.h <<_ACEOF
1851 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1852 _ACEOF
1853
1854
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_STRING "$PACKAGE_STRING"
1857 _ACEOF
1858
1859
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1862 _ACEOF
1863
1864
1865 # Let the site file select an alternate cache file if it wants to.
1866 # Prefer explicitly selected file to automatically selected ones.
1867 if test -n "$CONFIG_SITE"; then
1868   set x "$CONFIG_SITE"
1869 elif test "x$prefix" != xNONE; then
1870   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1871 else
1872   set x "$ac_default_prefix/share/config.site" \
1873         "$ac_default_prefix/etc/config.site"
1874 fi
1875 shift
1876 for ac_site_file
1877 do
1878   if test -r "$ac_site_file"; then
1879     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1880 echo "$as_me: loading site script $ac_site_file" >&6;}
1881     sed 's/^/| /' "$ac_site_file" >&5
1882     . "$ac_site_file"
1883   fi
1884 done
1885
1886 if test -r "$cache_file"; then
1887   # Some versions of bash will fail to source /dev/null (special
1888   # files actually), so we avoid doing that.
1889   if test -f "$cache_file"; then
1890     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1891 echo "$as_me: loading cache $cache_file" >&6;}
1892     case $cache_file in
1893       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1894       *)                      . "./$cache_file";;
1895     esac
1896   fi
1897 else
1898   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1899 echo "$as_me: creating cache $cache_file" >&6;}
1900   >$cache_file
1901 fi
1902
1903 # Check that the precious variables saved in the cache have kept the same
1904 # value.
1905 ac_cache_corrupted=false
1906 for ac_var in $ac_precious_vars; do
1907   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1908   eval ac_new_set=\$ac_env_${ac_var}_set
1909   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1910   eval ac_new_val=\$ac_env_${ac_var}_value
1911   case $ac_old_set,$ac_new_set in
1912     set,)
1913       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1914 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1915       ac_cache_corrupted=: ;;
1916     ,set)
1917       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1918 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1919       ac_cache_corrupted=: ;;
1920     ,);;
1921     *)
1922       if test "x$ac_old_val" != "x$ac_new_val"; then
1923         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1924 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1925         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1926 echo "$as_me:   former value:  $ac_old_val" >&2;}
1927         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1928 echo "$as_me:   current value: $ac_new_val" >&2;}
1929         ac_cache_corrupted=:
1930       fi;;
1931   esac
1932   # Pass precious variables to config.status.
1933   if test "$ac_new_set" = set; then
1934     case $ac_new_val in
1935     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1936     *) ac_arg=$ac_var=$ac_new_val ;;
1937     esac
1938     case " $ac_configure_args " in
1939       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1940       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1941     esac
1942   fi
1943 done
1944 if $ac_cache_corrupted; then
1945   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1946 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1947   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1948 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1949    { (exit 1); exit 1; }; }
1950 fi
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976 ac_ext=c
1977 ac_cpp='$CPP $CPPFLAGS'
1978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1981
1982
1983
1984 ac_config_headers="$ac_config_headers src/gras_config.h"
1985
1986 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
1987
1988
1989 ac_aux_dir=
1990 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1991   if test -f "$ac_dir/install-sh"; then
1992     ac_aux_dir=$ac_dir
1993     ac_install_sh="$ac_aux_dir/install-sh -c"
1994     break
1995   elif test -f "$ac_dir/install.sh"; then
1996     ac_aux_dir=$ac_dir
1997     ac_install_sh="$ac_aux_dir/install.sh -c"
1998     break
1999   elif test -f "$ac_dir/shtool"; then
2000     ac_aux_dir=$ac_dir
2001     ac_install_sh="$ac_aux_dir/shtool install -c"
2002     break
2003   fi
2004 done
2005 if test -z "$ac_aux_dir"; then
2006   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2007 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2008    { (exit 1); exit 1; }; }
2009 fi
2010
2011 # These three variables are undocumented and unsupported,
2012 # and are intended to be withdrawn in a future Autoconf release.
2013 # They can cause serious problems if a builder's source tree is in a directory
2014 # whose full name contains unusual characters.
2015 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2016 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2017 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2018
2019
2020 # Make sure we can run config.sub.
2021 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2022   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2023 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2024    { (exit 1); exit 1; }; }
2025
2026 { echo "$as_me:$LINENO: checking build system type" >&5
2027 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2028 if test "${ac_cv_build+set}" = set; then
2029   echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031   ac_build_alias=$build_alias
2032 test "x$ac_build_alias" = x &&
2033   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2034 test "x$ac_build_alias" = x &&
2035   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2036 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2037    { (exit 1); exit 1; }; }
2038 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2039   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2040 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2041    { (exit 1); exit 1; }; }
2042
2043 fi
2044 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2045 echo "${ECHO_T}$ac_cv_build" >&6; }
2046 case $ac_cv_build in
2047 *-*-*) ;;
2048 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2049 echo "$as_me: error: invalid value of canonical build" >&2;}
2050    { (exit 1); exit 1; }; };;
2051 esac
2052 build=$ac_cv_build
2053 ac_save_IFS=$IFS; IFS='-'
2054 set x $ac_cv_build
2055 shift
2056 build_cpu=$1
2057 build_vendor=$2
2058 shift; shift
2059 # Remember, the first character of IFS is used to create $*,
2060 # except with old shells:
2061 build_os=$*
2062 IFS=$ac_save_IFS
2063 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2064
2065
2066 { echo "$as_me:$LINENO: checking host system type" >&5
2067 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2068 if test "${ac_cv_host+set}" = set; then
2069   echo $ECHO_N "(cached) $ECHO_C" >&6
2070 else
2071   if test "x$host_alias" = x; then
2072   ac_cv_host=$ac_cv_build
2073 else
2074   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2075     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2076 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2077    { (exit 1); exit 1; }; }
2078 fi
2079
2080 fi
2081 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2082 echo "${ECHO_T}$ac_cv_host" >&6; }
2083 case $ac_cv_host in
2084 *-*-*) ;;
2085 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2086 echo "$as_me: error: invalid value of canonical host" >&2;}
2087    { (exit 1); exit 1; }; };;
2088 esac
2089 host=$ac_cv_host
2090 ac_save_IFS=$IFS; IFS='-'
2091 set x $ac_cv_host
2092 shift
2093 host_cpu=$1
2094 host_vendor=$2
2095 shift; shift
2096 # Remember, the first character of IFS is used to create $*,
2097 # except with old shells:
2098 host_os=$*
2099 IFS=$ac_save_IFS
2100 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2101
2102
2103 { echo "$as_me:$LINENO: checking target system type" >&5
2104 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2105 if test "${ac_cv_target+set}" = set; then
2106   echo $ECHO_N "(cached) $ECHO_C" >&6
2107 else
2108   if test "x$target_alias" = x; then
2109   ac_cv_target=$ac_cv_host
2110 else
2111   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2112     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2113 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2114    { (exit 1); exit 1; }; }
2115 fi
2116
2117 fi
2118 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2119 echo "${ECHO_T}$ac_cv_target" >&6; }
2120 case $ac_cv_target in
2121 *-*-*) ;;
2122 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2123 echo "$as_me: error: invalid value of canonical target" >&2;}
2124    { (exit 1); exit 1; }; };;
2125 esac
2126 target=$ac_cv_target
2127 ac_save_IFS=$IFS; IFS='-'
2128 set x $ac_cv_target
2129 shift
2130 target_cpu=$1
2131 target_vendor=$2
2132 shift; shift
2133 # Remember, the first character of IFS is used to create $*,
2134 # except with old shells:
2135 target_os=$*
2136 IFS=$ac_save_IFS
2137 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2138
2139
2140 # The aliases save the names the user supplied, while $host etc.
2141 # will get canonicalized.
2142 test -n "$target_alias" &&
2143   test "$program_prefix$program_suffix$program_transform_name" = \
2144     NONENONEs,x,x, &&
2145   program_prefix=${target_alias}-
2146 ac_ext=c
2147 ac_cpp='$CPP $CPPFLAGS'
2148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2151
2152
2153 am__api_version="1.9"
2154 # Find a good install program.  We prefer a C program (faster),
2155 # so one script is as good as another.  But avoid the broken or
2156 # incompatible versions:
2157 # SysV /etc/install, /usr/sbin/install
2158 # SunOS /usr/etc/install
2159 # IRIX /sbin/install
2160 # AIX /bin/install
2161 # AmigaOS /C/install, which installs bootblocks on floppy discs
2162 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2163 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2164 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2165 # OS/2's system install, which has a completely different semantic
2166 # ./install, which can be erroneously created by make from ./install.sh.
2167 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2168 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2169 if test -z "$INSTALL"; then
2170 if test "${ac_cv_path_install+set}" = set; then
2171   echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174 for as_dir in $PATH
2175 do
2176   IFS=$as_save_IFS
2177   test -z "$as_dir" && as_dir=.
2178   # Account for people who put trailing slashes in PATH elements.
2179 case $as_dir/ in
2180   ./ | .// | /cC/* | \
2181   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2182   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2183   /usr/ucb/* ) ;;
2184   *)
2185     # OSF1 and SCO ODT 3.0 have their own names for install.
2186     # Don't use installbsd from OSF since it installs stuff as root
2187     # by default.
2188     for ac_prog in ginstall scoinst install; do
2189       for ac_exec_ext in '' $ac_executable_extensions; do
2190         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2191           if test $ac_prog = install &&
2192             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2193             # AIX install.  It has an incompatible calling convention.
2194             :
2195           elif test $ac_prog = install &&
2196             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2197             # program-specific install script used by HP pwplus--don't use.
2198             :
2199           else
2200             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2201             break 3
2202           fi
2203         fi
2204       done
2205     done
2206     ;;
2207 esac
2208 done
2209 IFS=$as_save_IFS
2210
2211
2212 fi
2213   if test "${ac_cv_path_install+set}" = set; then
2214     INSTALL=$ac_cv_path_install
2215   else
2216     # As a last resort, use the slow shell script.  Don't cache a
2217     # value for INSTALL within a source directory, because that will
2218     # break other packages using the cache if that directory is
2219     # removed, or if the value is a relative name.
2220     INSTALL=$ac_install_sh
2221   fi
2222 fi
2223 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2224 echo "${ECHO_T}$INSTALL" >&6; }
2225
2226 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2227 # It thinks the first close brace ends the variable substitution.
2228 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2229
2230 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2231
2232 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2233
2234 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2235 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2236 # Just in case
2237 sleep 1
2238 echo timestamp > conftest.file
2239 # Do `set' in a subshell so we don't clobber the current shell's
2240 # arguments.  Must try -L first in case configure is actually a
2241 # symlink; some systems play weird games with the mod time of symlinks
2242 # (eg FreeBSD returns the mod time of the symlink's containing
2243 # directory).
2244 if (
2245    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2246    if test "$*" = "X"; then
2247       # -L didn't work.
2248       set X `ls -t $srcdir/configure conftest.file`
2249    fi
2250    rm -f conftest.file
2251    if test "$*" != "X $srcdir/configure conftest.file" \
2252       && test "$*" != "X conftest.file $srcdir/configure"; then
2253
2254       # If neither matched, then we have a broken ls.  This can happen
2255       # if, for instance, CONFIG_SHELL is bash and it inherits a
2256       # broken ls alias from the environment.  This has actually
2257       # happened.  Such a system could not be considered "sane".
2258       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2259 alias in your environment" >&5
2260 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2261 alias in your environment" >&2;}
2262    { (exit 1); exit 1; }; }
2263    fi
2264
2265    test "$2" = conftest.file
2266    )
2267 then
2268    # Ok.
2269    :
2270 else
2271    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2272 Check your system clock" >&5
2273 echo "$as_me: error: newly created file is older than distributed files!
2274 Check your system clock" >&2;}
2275    { (exit 1); exit 1; }; }
2276 fi
2277 { echo "$as_me:$LINENO: result: yes" >&5
2278 echo "${ECHO_T}yes" >&6; }
2279 test "$program_prefix" != NONE &&
2280   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2281 # Use a double $ so make ignores it.
2282 test "$program_suffix" != NONE &&
2283   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2284 # Double any \ or $.  echo might interpret backslashes.
2285 # By default was `s,x,x', remove it if useless.
2286 cat <<\_ACEOF >conftest.sed
2287 s/[\\$]/&&/g;s/;s,x,x,$//
2288 _ACEOF
2289 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2290 rm -f conftest.sed
2291
2292 # expand $ac_aux_dir to an absolute path
2293 am_aux_dir=`cd $ac_aux_dir && pwd`
2294
2295 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2296 # Use eval to expand $SHELL
2297 if eval "$MISSING --run true"; then
2298   am_missing_run="$MISSING --run "
2299 else
2300   am_missing_run=
2301   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2302 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2303 fi
2304
2305 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2306   # We used to keeping the `.' as first argument, in order to
2307   # allow $(mkdir_p) to be used without argument.  As in
2308   #   $(mkdir_p) $(somedir)
2309   # where $(somedir) is conditionally defined.  However this is wrong
2310   # for two reasons:
2311   #  1. if the package is installed by a user who cannot write `.'
2312   #     make install will fail,
2313   #  2. the above comment should most certainly read
2314   #     $(mkdir_p) $(DESTDIR)$(somedir)
2315   #     so it does not work when $(somedir) is undefined and
2316   #     $(DESTDIR) is not.
2317   #  To support the latter case, we have to write
2318   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2319   #  so the `.' trick is pointless.
2320   mkdir_p='mkdir -p --'
2321 else
2322   # On NextStep and OpenStep, the `mkdir' command does not
2323   # recognize any option.  It will interpret all options as
2324   # directories to create, and then abort because `.' already
2325   # exists.
2326   for d in ./-p ./--version;
2327   do
2328     test -d $d && rmdir $d
2329   done
2330   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2331   if test -f "$ac_aux_dir/mkinstalldirs"; then
2332     mkdir_p='$(mkinstalldirs)'
2333   else
2334     mkdir_p='$(install_sh) -d'
2335   fi
2336 fi
2337
2338 for ac_prog in gawk mawk nawk awk
2339 do
2340   # Extract the first word of "$ac_prog", so it can be a program name with args.
2341 set dummy $ac_prog; ac_word=$2
2342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2344 if test "${ac_cv_prog_AWK+set}" = set; then
2345   echo $ECHO_N "(cached) $ECHO_C" >&6
2346 else
2347   if test -n "$AWK"; then
2348   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2349 else
2350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351 for as_dir in $PATH
2352 do
2353   IFS=$as_save_IFS
2354   test -z "$as_dir" && as_dir=.
2355   for ac_exec_ext in '' $ac_executable_extensions; do
2356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2357     ac_cv_prog_AWK="$ac_prog"
2358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2359     break 2
2360   fi
2361 done
2362 done
2363 IFS=$as_save_IFS
2364
2365 fi
2366 fi
2367 AWK=$ac_cv_prog_AWK
2368 if test -n "$AWK"; then
2369   { echo "$as_me:$LINENO: result: $AWK" >&5
2370 echo "${ECHO_T}$AWK" >&6; }
2371 else
2372   { echo "$as_me:$LINENO: result: no" >&5
2373 echo "${ECHO_T}no" >&6; }
2374 fi
2375
2376
2377   test -n "$AWK" && break
2378 done
2379
2380 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2381 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2382 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2383 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2384   echo $ECHO_N "(cached) $ECHO_C" >&6
2385 else
2386   cat >conftest.make <<\_ACEOF
2387 SHELL = /bin/sh
2388 all:
2389         @echo '@@@%%%=$(MAKE)=@@@%%%'
2390 _ACEOF
2391 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2392 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2393   *@@@%%%=?*=@@@%%%*)
2394     eval ac_cv_prog_make_${ac_make}_set=yes;;
2395   *)
2396     eval ac_cv_prog_make_${ac_make}_set=no;;
2397 esac
2398 rm -f conftest.make
2399 fi
2400 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2401   { echo "$as_me:$LINENO: result: yes" >&5
2402 echo "${ECHO_T}yes" >&6; }
2403   SET_MAKE=
2404 else
2405   { echo "$as_me:$LINENO: result: no" >&5
2406 echo "${ECHO_T}no" >&6; }
2407   SET_MAKE="MAKE=${MAKE-make}"
2408 fi
2409
2410 rm -rf .tst 2>/dev/null
2411 mkdir .tst 2>/dev/null
2412 if test -d .tst; then
2413   am__leading_dot=.
2414 else
2415   am__leading_dot=_
2416 fi
2417 rmdir .tst 2>/dev/null
2418
2419 # test to see if srcdir already configured
2420 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2421    test -f $srcdir/config.status; then
2422   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2423 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2424    { (exit 1); exit 1; }; }
2425 fi
2426
2427 # test whether we have cygpath
2428 if test -z "$CYGPATH_W"; then
2429   if (cygpath --version) >/dev/null 2>/dev/null; then
2430     CYGPATH_W='cygpath -w'
2431   else
2432     CYGPATH_W=echo
2433   fi
2434 fi
2435
2436
2437 # Define the identity of the package.
2438  PACKAGE='simgrid'
2439  VERSION='3.3-cvs'
2440
2441
2442 cat >>confdefs.h <<_ACEOF
2443 #define PACKAGE "$PACKAGE"
2444 _ACEOF
2445
2446
2447 cat >>confdefs.h <<_ACEOF
2448 #define VERSION "$VERSION"
2449 _ACEOF
2450
2451 # Some tools Automake needs.
2452
2453 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2454
2455
2456 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2457
2458
2459 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2460
2461
2462 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2463
2464
2465 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2466
2467 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2468
2469 # Installed binaries are usually stripped using `strip' when the user
2470 # run `make install-strip'.  However `strip' might not be the right
2471 # tool to use in cross-compilation environments, therefore Automake
2472 # will honor the `STRIP' environment variable to overrule this program.
2473 if test "$cross_compiling" != no; then
2474   if test -n "$ac_tool_prefix"; then
2475   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2476 set dummy ${ac_tool_prefix}strip; ac_word=$2
2477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2479 if test "${ac_cv_prog_STRIP+set}" = set; then
2480   echo $ECHO_N "(cached) $ECHO_C" >&6
2481 else
2482   if test -n "$STRIP"; then
2483   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2484 else
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 for as_dir in $PATH
2487 do
2488   IFS=$as_save_IFS
2489   test -z "$as_dir" && as_dir=.
2490   for ac_exec_ext in '' $ac_executable_extensions; do
2491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494     break 2
2495   fi
2496 done
2497 done
2498 IFS=$as_save_IFS
2499
2500 fi
2501 fi
2502 STRIP=$ac_cv_prog_STRIP
2503 if test -n "$STRIP"; then
2504   { echo "$as_me:$LINENO: result: $STRIP" >&5
2505 echo "${ECHO_T}$STRIP" >&6; }
2506 else
2507   { echo "$as_me:$LINENO: result: no" >&5
2508 echo "${ECHO_T}no" >&6; }
2509 fi
2510
2511
2512 fi
2513 if test -z "$ac_cv_prog_STRIP"; then
2514   ac_ct_STRIP=$STRIP
2515   # Extract the first word of "strip", so it can be a program name with args.
2516 set dummy strip; ac_word=$2
2517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2519 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2520   echo $ECHO_N "(cached) $ECHO_C" >&6
2521 else
2522   if test -n "$ac_ct_STRIP"; then
2523   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2524 else
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH
2527 do
2528   IFS=$as_save_IFS
2529   test -z "$as_dir" && as_dir=.
2530   for ac_exec_ext in '' $ac_executable_extensions; do
2531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2532     ac_cv_prog_ac_ct_STRIP="strip"
2533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2534     break 2
2535   fi
2536 done
2537 done
2538 IFS=$as_save_IFS
2539
2540 fi
2541 fi
2542 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2543 if test -n "$ac_ct_STRIP"; then
2544   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2545 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2546 else
2547   { echo "$as_me:$LINENO: result: no" >&5
2548 echo "${ECHO_T}no" >&6; }
2549 fi
2550
2551   if test "x$ac_ct_STRIP" = x; then
2552     STRIP=":"
2553   else
2554     case $cross_compiling:$ac_tool_warned in
2555 yes:)
2556 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2557 whose name does not start with the host triplet.  If you think this
2558 configuration is useful to you, please write to autoconf@gnu.org." >&5
2559 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2560 whose name does not start with the host triplet.  If you think this
2561 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2562 ac_tool_warned=yes ;;
2563 esac
2564     STRIP=$ac_ct_STRIP
2565   fi
2566 else
2567   STRIP="$ac_cv_prog_STRIP"
2568 fi
2569
2570 fi
2571 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2572
2573 # We need awk for the "check" target.  The system "awk" is bad on
2574 # some platforms.
2575 # Always define AMTAR for backward compatibility.
2576
2577 AMTAR=${AMTAR-"${am_missing_run}tar"}
2578
2579 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2580
2581
2582
2583
2584
2585
2586 ACLOCAL="$ACLOCAL -I acmacro"
2587
2588
2589
2590
2591
2592
2593 # Check whether --enable-shared was given.
2594 if test "${enable_shared+set}" = set; then
2595   enableval=$enable_shared; p=${PACKAGE-default}
2596     case $enableval in
2597     yes) enable_shared=yes ;;
2598     no) enable_shared=no ;;
2599     *)
2600       enable_shared=no
2601       # Look at the argument we got.  We use all the common list separators.
2602       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2603       for pkg in $enableval; do
2604         IFS="$lt_save_ifs"
2605         if test "X$pkg" = "X$p"; then
2606           enable_shared=yes
2607         fi
2608       done
2609       IFS="$lt_save_ifs"
2610       ;;
2611     esac
2612 else
2613   enable_shared=yes
2614 fi
2615
2616
2617 # Check whether --enable-static was given.
2618 if test "${enable_static+set}" = set; then
2619   enableval=$enable_static; p=${PACKAGE-default}
2620     case $enableval in
2621     yes) enable_static=yes ;;
2622     no) enable_static=no ;;
2623     *)
2624      enable_static=no
2625       # Look at the argument we got.  We use all the common list separators.
2626       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2627       for pkg in $enableval; do
2628         IFS="$lt_save_ifs"
2629         if test "X$pkg" = "X$p"; then
2630           enable_static=yes
2631         fi
2632       done
2633       IFS="$lt_save_ifs"
2634       ;;
2635     esac
2636 else
2637   enable_static=yes
2638 fi
2639
2640
2641 # Check whether --enable-fast-install was given.
2642 if test "${enable_fast_install+set}" = set; then
2643   enableval=$enable_fast_install; p=${PACKAGE-default}
2644     case $enableval in
2645     yes) enable_fast_install=yes ;;
2646     no) enable_fast_install=no ;;
2647     *)
2648       enable_fast_install=no
2649       # Look at the argument we got.  We use all the common list separators.
2650       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2651       for pkg in $enableval; do
2652         IFS="$lt_save_ifs"
2653         if test "X$pkg" = "X$p"; then
2654           enable_fast_install=yes
2655         fi
2656       done
2657       IFS="$lt_save_ifs"
2658       ;;
2659     esac
2660 else
2661   enable_fast_install=yes
2662 fi
2663
2664
2665 DEPDIR="${am__leading_dot}deps"
2666
2667 ac_config_commands="$ac_config_commands depfiles"
2668
2669
2670 am_make=${MAKE-make}
2671 cat > confinc << 'END'
2672 am__doit:
2673         @echo done
2674 .PHONY: am__doit
2675 END
2676 # If we don't find an include directive, just comment out the code.
2677 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2678 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2679 am__include="#"
2680 am__quote=
2681 _am_result=none
2682 # First try GNU make style include.
2683 echo "include confinc" > confmf
2684 # We grep out `Entering directory' and `Leaving directory'
2685 # messages which can occur if `w' ends up in MAKEFLAGS.
2686 # In particular we don't look at `^make:' because GNU make might
2687 # be invoked under some other name (usually "gmake"), in which
2688 # case it prints its new name instead of `make'.
2689 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2690    am__include=include
2691    am__quote=
2692    _am_result=GNU
2693 fi
2694 # Now try BSD make style include.
2695 if test "$am__include" = "#"; then
2696    echo '.include "confinc"' > confmf
2697    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2698       am__include=.include
2699       am__quote="\""
2700       _am_result=BSD
2701    fi
2702 fi
2703
2704
2705 { echo "$as_me:$LINENO: result: $_am_result" >&5
2706 echo "${ECHO_T}$_am_result" >&6; }
2707 rm -f confinc confmf
2708
2709 # Check whether --enable-dependency-tracking was given.
2710 if test "${enable_dependency_tracking+set}" = set; then
2711   enableval=$enable_dependency_tracking;
2712 fi
2713
2714 if test "x$enable_dependency_tracking" != xno; then
2715   am_depcomp="$ac_aux_dir/depcomp"
2716   AMDEPBACKSLASH='\'
2717 fi
2718
2719
2720 if test "x$enable_dependency_tracking" != xno; then
2721   AMDEP_TRUE=
2722   AMDEP_FALSE='#'
2723 else
2724   AMDEP_TRUE='#'
2725   AMDEP_FALSE=
2726 fi
2727
2728
2729
2730 ac_ext=c
2731 ac_cpp='$CPP $CPPFLAGS'
2732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2735 if test -n "$ac_tool_prefix"; then
2736   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2737 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2740 if test "${ac_cv_prog_CC+set}" = set; then
2741   echo $ECHO_N "(cached) $ECHO_C" >&6
2742 else
2743   if test -n "$CC"; then
2744   ac_cv_prog_CC="$CC" # Let the user override the test.
2745 else
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 for as_dir in $PATH
2748 do
2749   IFS=$as_save_IFS
2750   test -z "$as_dir" && as_dir=.
2751   for ac_exec_ext in '' $ac_executable_extensions; do
2752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2753     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2755     break 2
2756   fi
2757 done
2758 done
2759 IFS=$as_save_IFS
2760
2761 fi
2762 fi
2763 CC=$ac_cv_prog_CC
2764 if test -n "$CC"; then
2765   { echo "$as_me:$LINENO: result: $CC" >&5
2766 echo "${ECHO_T}$CC" >&6; }
2767 else
2768   { echo "$as_me:$LINENO: result: no" >&5
2769 echo "${ECHO_T}no" >&6; }
2770 fi
2771
2772
2773 fi
2774 if test -z "$ac_cv_prog_CC"; then
2775   ac_ct_CC=$CC
2776   # Extract the first word of "gcc", so it can be a program name with args.
2777 set dummy gcc; ac_word=$2
2778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2780 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2781   echo $ECHO_N "(cached) $ECHO_C" >&6
2782 else
2783   if test -n "$ac_ct_CC"; then
2784   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2785 else
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 for as_dir in $PATH
2788 do
2789   IFS=$as_save_IFS
2790   test -z "$as_dir" && as_dir=.
2791   for ac_exec_ext in '' $ac_executable_extensions; do
2792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2793     ac_cv_prog_ac_ct_CC="gcc"
2794     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2795     break 2
2796   fi
2797 done
2798 done
2799 IFS=$as_save_IFS
2800
2801 fi
2802 fi
2803 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2804 if test -n "$ac_ct_CC"; then
2805   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2806 echo "${ECHO_T}$ac_ct_CC" >&6; }
2807 else
2808   { echo "$as_me:$LINENO: result: no" >&5
2809 echo "${ECHO_T}no" >&6; }
2810 fi
2811
2812   if test "x$ac_ct_CC" = x; then
2813     CC=""
2814   else
2815     case $cross_compiling:$ac_tool_warned in
2816 yes:)
2817 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2818 whose name does not start with the host triplet.  If you think this
2819 configuration is useful to you, please write to autoconf@gnu.org." >&5
2820 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2821 whose name does not start with the host triplet.  If you think this
2822 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2823 ac_tool_warned=yes ;;
2824 esac
2825     CC=$ac_ct_CC
2826   fi
2827 else
2828   CC="$ac_cv_prog_CC"
2829 fi
2830
2831 if test -z "$CC"; then
2832           if test -n "$ac_tool_prefix"; then
2833     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2834 set dummy ${ac_tool_prefix}cc; ac_word=$2
2835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2837 if test "${ac_cv_prog_CC+set}" = set; then
2838   echo $ECHO_N "(cached) $ECHO_C" >&6
2839 else
2840   if test -n "$CC"; then
2841   ac_cv_prog_CC="$CC" # Let the user override the test.
2842 else
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 for as_dir in $PATH
2845 do
2846   IFS=$as_save_IFS
2847   test -z "$as_dir" && as_dir=.
2848   for ac_exec_ext in '' $ac_executable_extensions; do
2849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2850     ac_cv_prog_CC="${ac_tool_prefix}cc"
2851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2852     break 2
2853   fi
2854 done
2855 done
2856 IFS=$as_save_IFS
2857
2858 fi
2859 fi
2860 CC=$ac_cv_prog_CC
2861 if test -n "$CC"; then
2862   { echo "$as_me:$LINENO: result: $CC" >&5
2863 echo "${ECHO_T}$CC" >&6; }
2864 else
2865   { echo "$as_me:$LINENO: result: no" >&5
2866 echo "${ECHO_T}no" >&6; }
2867 fi
2868
2869
2870   fi
2871 fi
2872 if test -z "$CC"; then
2873   # Extract the first word of "cc", so it can be a program name with args.
2874 set dummy cc; ac_word=$2
2875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2877 if test "${ac_cv_prog_CC+set}" = set; then
2878   echo $ECHO_N "(cached) $ECHO_C" >&6
2879 else
2880   if test -n "$CC"; then
2881   ac_cv_prog_CC="$CC" # Let the user override the test.
2882 else
2883   ac_prog_rejected=no
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2886 do
2887   IFS=$as_save_IFS
2888   test -z "$as_dir" && as_dir=.
2889   for ac_exec_ext in '' $ac_executable_extensions; do
2890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2892        ac_prog_rejected=yes
2893        continue
2894      fi
2895     ac_cv_prog_CC="cc"
2896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2897     break 2
2898   fi
2899 done
2900 done
2901 IFS=$as_save_IFS
2902
2903 if test $ac_prog_rejected = yes; then
2904   # We found a bogon in the path, so make sure we never use it.
2905   set dummy $ac_cv_prog_CC
2906   shift
2907   if test $# != 0; then
2908     # We chose a different compiler from the bogus one.
2909     # However, it has the same basename, so the bogon will be chosen
2910     # first if we set CC to just the basename; use the full file name.
2911     shift
2912     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2913   fi
2914 fi
2915 fi
2916 fi
2917 CC=$ac_cv_prog_CC
2918 if test -n "$CC"; then
2919   { echo "$as_me:$LINENO: result: $CC" >&5
2920 echo "${ECHO_T}$CC" >&6; }
2921 else
2922   { echo "$as_me:$LINENO: result: no" >&5
2923 echo "${ECHO_T}no" >&6; }
2924 fi
2925
2926
2927 fi
2928 if test -z "$CC"; then
2929   if test -n "$ac_tool_prefix"; then
2930   for ac_prog in cl.exe
2931   do
2932     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2933 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2936 if test "${ac_cv_prog_CC+set}" = set; then
2937   echo $ECHO_N "(cached) $ECHO_C" >&6
2938 else
2939   if test -n "$CC"; then
2940   ac_cv_prog_CC="$CC" # Let the user override the test.
2941 else
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH
2944 do
2945   IFS=$as_save_IFS
2946   test -z "$as_dir" && as_dir=.
2947   for ac_exec_ext in '' $ac_executable_extensions; do
2948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2949     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2951     break 2
2952   fi
2953 done
2954 done
2955 IFS=$as_save_IFS
2956
2957 fi
2958 fi
2959 CC=$ac_cv_prog_CC
2960 if test -n "$CC"; then
2961   { echo "$as_me:$LINENO: result: $CC" >&5
2962 echo "${ECHO_T}$CC" >&6; }
2963 else
2964   { echo "$as_me:$LINENO: result: no" >&5
2965 echo "${ECHO_T}no" >&6; }
2966 fi
2967
2968
2969     test -n "$CC" && break
2970   done
2971 fi
2972 if test -z "$CC"; then
2973   ac_ct_CC=$CC
2974   for ac_prog in cl.exe
2975 do
2976   # Extract the first word of "$ac_prog", so it can be a program name with args.
2977 set dummy $ac_prog; ac_word=$2
2978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2980 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2981   echo $ECHO_N "(cached) $ECHO_C" >&6
2982 else
2983   if test -n "$ac_ct_CC"; then
2984   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2985 else
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 for as_dir in $PATH
2988 do
2989   IFS=$as_save_IFS
2990   test -z "$as_dir" && as_dir=.
2991   for ac_exec_ext in '' $ac_executable_extensions; do
2992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2993     ac_cv_prog_ac_ct_CC="$ac_prog"
2994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2995     break 2
2996   fi
2997 done
2998 done
2999 IFS=$as_save_IFS
3000
3001 fi
3002 fi
3003 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3004 if test -n "$ac_ct_CC"; then
3005   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3006 echo "${ECHO_T}$ac_ct_CC" >&6; }
3007 else
3008   { echo "$as_me:$LINENO: result: no" >&5
3009 echo "${ECHO_T}no" >&6; }
3010 fi
3011
3012
3013   test -n "$ac_ct_CC" && break
3014 done
3015
3016   if test "x$ac_ct_CC" = x; then
3017     CC=""
3018   else
3019     case $cross_compiling:$ac_tool_warned in
3020 yes:)
3021 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3022 whose name does not start with the host triplet.  If you think this
3023 configuration is useful to you, please write to autoconf@gnu.org." >&5
3024 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3025 whose name does not start with the host triplet.  If you think this
3026 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3027 ac_tool_warned=yes ;;
3028 esac
3029     CC=$ac_ct_CC
3030   fi
3031 fi
3032
3033 fi
3034
3035
3036 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3037 See \`config.log' for more details." >&5
3038 echo "$as_me: error: no acceptable C compiler found in \$PATH
3039 See \`config.log' for more details." >&2;}
3040    { (exit 1); exit 1; }; }
3041
3042 # Provide some information about the compiler.
3043 echo "$as_me:$LINENO: checking for C compiler version" >&5
3044 ac_compiler=`set X $ac_compile; echo $2`
3045 { (ac_try="$ac_compiler --version >&5"
3046 case "(($ac_try" in
3047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048   *) ac_try_echo=$ac_try;;
3049 esac
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051   (eval "$ac_compiler --version >&5") 2>&5
3052   ac_status=$?
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); }
3055 { (ac_try="$ac_compiler -v >&5"
3056 case "(($ac_try" in
3057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058   *) ac_try_echo=$ac_try;;
3059 esac
3060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061   (eval "$ac_compiler -v >&5") 2>&5
3062   ac_status=$?
3063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064   (exit $ac_status); }
3065 { (ac_try="$ac_compiler -V >&5"
3066 case "(($ac_try" in
3067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068   *) ac_try_echo=$ac_try;;
3069 esac
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071   (eval "$ac_compiler -V >&5") 2>&5
3072   ac_status=$?
3073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074   (exit $ac_status); }
3075
3076 cat >conftest.$ac_ext <<_ACEOF
3077 /* confdefs.h.  */
3078 _ACEOF
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h.  */
3082
3083 int
3084 main ()
3085 {
3086
3087   ;
3088   return 0;
3089 }
3090 _ACEOF
3091 ac_clean_files_save=$ac_clean_files
3092 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3093 # Try to create an executable without -o first, disregard a.out.
3094 # It will help us diagnose broken compilers, and finding out an intuition
3095 # of exeext.
3096 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3097 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3098 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3099 #
3100 # List of possible output files, starting from the most likely.
3101 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3102 # only as a last resort.  b.out is created by i960 compilers.
3103 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3104 #
3105 # The IRIX 6 linker writes into existing files which may not be
3106 # executable, retaining their permissions.  Remove them first so a
3107 # subsequent execution test works.
3108 ac_rmfiles=
3109 for ac_file in $ac_files
3110 do
3111   case $ac_file in
3112     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3113     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3114   esac
3115 done
3116 rm -f $ac_rmfiles
3117
3118 if { (ac_try="$ac_link_default"
3119 case "(($ac_try" in
3120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121   *) ac_try_echo=$ac_try;;
3122 esac
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124   (eval "$ac_link_default") 2>&5
3125   ac_status=$?
3126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127   (exit $ac_status); }; then
3128   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3129 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3130 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3131 # so that the user can short-circuit this test for compilers unknown to
3132 # Autoconf.
3133 for ac_file in $ac_files ''
3134 do
3135   test -f "$ac_file" || continue
3136   case $ac_file in
3137     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3138         ;;
3139     [ab].out )
3140         # We found the default executable, but exeext='' is most
3141         # certainly right.
3142         break;;
3143     *.* )
3144         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3145         then :; else
3146            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3147         fi
3148         # We set ac_cv_exeext here because the later test for it is not
3149         # safe: cross compilers may not add the suffix if given an `-o'
3150         # argument, so we may need to know it at that point already.
3151         # Even if this section looks crufty: it has the advantage of
3152         # actually working.
3153         break;;
3154     * )
3155         break;;
3156   esac
3157 done
3158 test "$ac_cv_exeext" = no && ac_cv_exeext=
3159
3160 else
3161   ac_file=''
3162 fi
3163
3164 { echo "$as_me:$LINENO: result: $ac_file" >&5
3165 echo "${ECHO_T}$ac_file" >&6; }
3166 if test -z "$ac_file"; then
3167   echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3169
3170 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3171 See \`config.log' for more details." >&5
3172 echo "$as_me: error: C compiler cannot create executables
3173 See \`config.log' for more details." >&2;}
3174    { (exit 77); exit 77; }; }
3175 fi
3176
3177 ac_exeext=$ac_cv_exeext
3178
3179 # Check that the compiler produces executables we can run.  If not, either
3180 # the compiler is broken, or we cross compile.
3181 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3182 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3183 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3184 # If not cross compiling, check that we can run a simple program.
3185 if test "$cross_compiling" != yes; then
3186   if { ac_try='./$ac_file'
3187   { (case "(($ac_try" in
3188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189   *) ac_try_echo=$ac_try;;
3190 esac
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192   (eval "$ac_try") 2>&5
3193   ac_status=$?
3194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195   (exit $ac_status); }; }; then
3196     cross_compiling=no
3197   else
3198     if test "$cross_compiling" = maybe; then
3199         cross_compiling=yes
3200     else
3201         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3202 If you meant to cross compile, use \`--host'.
3203 See \`config.log' for more details." >&5
3204 echo "$as_me: error: cannot run C compiled programs.
3205 If you meant to cross compile, use \`--host'.
3206 See \`config.log' for more details." >&2;}
3207    { (exit 1); exit 1; }; }
3208     fi
3209   fi
3210 fi
3211 { echo "$as_me:$LINENO: result: yes" >&5
3212 echo "${ECHO_T}yes" >&6; }
3213
3214 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3215 ac_clean_files=$ac_clean_files_save
3216 # Check that the compiler produces executables we can run.  If not, either
3217 # the compiler is broken, or we cross compile.
3218 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3219 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3220 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3221 echo "${ECHO_T}$cross_compiling" >&6; }
3222
3223 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3224 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3225 if { (ac_try="$ac_link"
3226 case "(($ac_try" in
3227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228   *) ac_try_echo=$ac_try;;
3229 esac
3230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231   (eval "$ac_link") 2>&5
3232   ac_status=$?
3233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234   (exit $ac_status); }; then
3235   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3236 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3237 # work properly (i.e., refer to `conftest.exe'), while it won't with
3238 # `rm'.
3239 for ac_file in conftest.exe conftest conftest.*; do
3240   test -f "$ac_file" || continue
3241   case $ac_file in
3242     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3243     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3244           break;;
3245     * ) break;;
3246   esac
3247 done
3248 else
3249   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3250 See \`config.log' for more details." >&5
3251 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3252 See \`config.log' for more details." >&2;}
3253    { (exit 1); exit 1; }; }
3254 fi
3255
3256 rm -f conftest$ac_cv_exeext
3257 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3258 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3259
3260 rm -f conftest.$ac_ext
3261 EXEEXT=$ac_cv_exeext
3262 ac_exeext=$EXEEXT
3263 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3264 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3265 if test "${ac_cv_objext+set}" = set; then
3266   echo $ECHO_N "(cached) $ECHO_C" >&6
3267 else
3268   cat >conftest.$ac_ext <<_ACEOF
3269 /* confdefs.h.  */
3270 _ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h.  */
3274
3275 int
3276 main ()
3277 {
3278
3279   ;
3280   return 0;
3281 }
3282 _ACEOF
3283 rm -f conftest.o conftest.obj
3284 if { (ac_try="$ac_compile"
3285 case "(($ac_try" in
3286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287   *) ac_try_echo=$ac_try;;
3288 esac
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290   (eval "$ac_compile") 2>&5
3291   ac_status=$?
3292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293   (exit $ac_status); }; then
3294   for ac_file in conftest.o conftest.obj conftest.*; do
3295   test -f "$ac_file" || continue;
3296   case $ac_file in
3297     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3298     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3299        break;;
3300   esac
3301 done
3302 else
3303   echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3305
3306 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3307 See \`config.log' for more details." >&5
3308 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3309 See \`config.log' for more details." >&2;}
3310    { (exit 1); exit 1; }; }
3311 fi
3312
3313 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3314 fi
3315 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3316 echo "${ECHO_T}$ac_cv_objext" >&6; }
3317 OBJEXT=$ac_cv_objext
3318 ac_objext=$OBJEXT
3319 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3320 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3321 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3322   echo $ECHO_N "(cached) $ECHO_C" >&6
3323 else
3324   cat >conftest.$ac_ext <<_ACEOF
3325 /* confdefs.h.  */
3326 _ACEOF
3327 cat confdefs.h >>conftest.$ac_ext
3328 cat >>conftest.$ac_ext <<_ACEOF
3329 /* end confdefs.h.  */
3330
3331 int
3332 main ()
3333 {
3334 #ifndef __GNUC__
3335        choke me
3336 #endif
3337
3338   ;
3339   return 0;
3340 }
3341 _ACEOF
3342 rm -f conftest.$ac_objext
3343 if { (ac_try="$ac_compile"
3344 case "(($ac_try" in
3345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346   *) ac_try_echo=$ac_try;;
3347 esac
3348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3349   (eval "$ac_compile") 2>conftest.er1
3350   ac_status=$?
3351   grep -v '^ *+' conftest.er1 >conftest.err
3352   rm -f conftest.er1
3353   cat conftest.err >&5
3354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355   (exit $ac_status); } && {
3356          test -z "$ac_c_werror_flag" ||
3357          test ! -s conftest.err
3358        } && test -s conftest.$ac_objext; then
3359   ac_compiler_gnu=yes
3360 else
3361   echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3363
3364         ac_compiler_gnu=no
3365 fi
3366
3367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3368 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3369
3370 fi
3371 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3372 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3373 GCC=`test $ac_compiler_gnu = yes && echo yes`
3374 ac_test_CFLAGS=${CFLAGS+set}
3375 ac_save_CFLAGS=$CFLAGS
3376 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3377 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3378 if test "${ac_cv_prog_cc_g+set}" = set; then
3379   echo $ECHO_N "(cached) $ECHO_C" >&6
3380 else
3381   ac_save_c_werror_flag=$ac_c_werror_flag
3382    ac_c_werror_flag=yes
3383    ac_cv_prog_cc_g=no
3384    CFLAGS="-g"
3385    cat >conftest.$ac_ext <<_ACEOF
3386 /* confdefs.h.  */
3387 _ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h.  */
3391
3392 int
3393 main ()
3394 {
3395
3396   ;
3397   return 0;
3398 }
3399 _ACEOF
3400 rm -f conftest.$ac_objext
3401 if { (ac_try="$ac_compile"
3402 case "(($ac_try" in
3403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404   *) ac_try_echo=$ac_try;;
3405 esac
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407   (eval "$ac_compile") 2>conftest.er1
3408   ac_status=$?
3409   grep -v '^ *+' conftest.er1 >conftest.err
3410   rm -f conftest.er1
3411   cat conftest.err >&5
3412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413   (exit $ac_status); } && {
3414          test -z "$ac_c_werror_flag" ||
3415          test ! -s conftest.err
3416        } && test -s conftest.$ac_objext; then
3417   ac_cv_prog_cc_g=yes
3418 else
3419   echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3421
3422         CFLAGS=""
3423       cat >conftest.$ac_ext <<_ACEOF
3424 /* confdefs.h.  */
3425 _ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h.  */
3429
3430 int
3431 main ()
3432 {
3433
3434   ;
3435   return 0;
3436 }
3437 _ACEOF
3438 rm -f conftest.$ac_objext
3439 if { (ac_try="$ac_compile"
3440 case "(($ac_try" in
3441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442   *) ac_try_echo=$ac_try;;
3443 esac
3444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445   (eval "$ac_compile") 2>conftest.er1
3446   ac_status=$?
3447   grep -v '^ *+' conftest.er1 >conftest.err
3448   rm -f conftest.er1
3449   cat conftest.err >&5
3450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); } && {
3452          test -z "$ac_c_werror_flag" ||
3453          test ! -s conftest.err
3454        } && test -s conftest.$ac_objext; then
3455   :
3456 else
3457   echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3459
3460         ac_c_werror_flag=$ac_save_c_werror_flag
3461          CFLAGS="-g"
3462          cat >conftest.$ac_ext <<_ACEOF
3463 /* confdefs.h.  */
3464 _ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h.  */
3468
3469 int
3470 main ()
3471 {
3472
3473   ;
3474   return 0;
3475 }
3476 _ACEOF
3477 rm -f conftest.$ac_objext
3478 if { (ac_try="$ac_compile"
3479 case "(($ac_try" in
3480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481   *) ac_try_echo=$ac_try;;
3482 esac
3483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3484   (eval "$ac_compile") 2>conftest.er1
3485   ac_status=$?
3486   grep -v '^ *+' conftest.er1 >conftest.err
3487   rm -f conftest.er1
3488   cat conftest.err >&5
3489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490   (exit $ac_status); } && {
3491          test -z "$ac_c_werror_flag" ||
3492          test ! -s conftest.err
3493        } && test -s conftest.$ac_objext; then
3494   ac_cv_prog_cc_g=yes
3495 else
3496   echo "$as_me: failed program was:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3498
3499
3500 fi
3501
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 fi
3504
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506 fi
3507
3508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509    ac_c_werror_flag=$ac_save_c_werror_flag
3510 fi
3511 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3512 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3513 if test "$ac_test_CFLAGS" = set; then
3514   CFLAGS=$ac_save_CFLAGS
3515 elif test $ac_cv_prog_cc_g = yes; then
3516   if test "$GCC" = yes; then
3517     CFLAGS="-g -O2"
3518   else
3519     CFLAGS="-g"
3520   fi
3521 else
3522   if test "$GCC" = yes; then
3523     CFLAGS="-O2"
3524   else
3525     CFLAGS=
3526   fi
3527 fi
3528 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3529 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3530 if test "${ac_cv_prog_cc_c89+set}" = set; then
3531   echo $ECHO_N "(cached) $ECHO_C" >&6
3532 else
3533   ac_cv_prog_cc_c89=no
3534 ac_save_CC=$CC
3535 cat >conftest.$ac_ext <<_ACEOF
3536 /* confdefs.h.  */
3537 _ACEOF
3538 cat confdefs.h >>conftest.$ac_ext
3539 cat >>conftest.$ac_ext <<_ACEOF
3540 /* end confdefs.h.  */
3541 #include <stdarg.h>
3542 #include <stdio.h>
3543 #include <sys/types.h>
3544 #include <sys/stat.h>
3545 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3546 struct buf { int x; };
3547 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3548 static char *e (p, i)
3549      char **p;
3550      int i;
3551 {
3552   return p[i];
3553 }
3554 static char *f (char * (*g) (char **, int), char **p, ...)
3555 {
3556   char *s;
3557   va_list v;
3558   va_start (v,p);
3559   s = g (p, va_arg (v,int));
3560   va_end (v);
3561   return s;
3562 }
3563
3564 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3565    function prototypes and stuff, but not '\xHH' hex character constants.
3566    These don't provoke an error unfortunately, instead are silently treated
3567    as 'x'.  The following induces an error, until -std is added to get
3568    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3569    array size at least.  It's necessary to write '\x00'==0 to get something
3570    that's true only with -std.  */
3571 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3572
3573 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3574    inside strings and character constants.  */
3575 #define FOO(x) 'x'
3576 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3577
3578 int test (int i, double x);
3579 struct s1 {int (*f) (int a);};
3580 struct s2 {int (*f) (double a);};
3581 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3582 int argc;
3583 char **argv;
3584 int
3585 main ()
3586 {
3587 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3588   ;
3589   return 0;
3590 }
3591 _ACEOF
3592 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3593         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3594 do
3595   CC="$ac_save_CC $ac_arg"
3596   rm -f conftest.$ac_objext
3597 if { (ac_try="$ac_compile"
3598 case "(($ac_try" in
3599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600   *) ac_try_echo=$ac_try;;
3601 esac
3602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3603   (eval "$ac_compile") 2>conftest.er1
3604   ac_status=$?
3605   grep -v '^ *+' conftest.er1 >conftest.err
3606   rm -f conftest.er1
3607   cat conftest.err >&5
3608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609   (exit $ac_status); } && {
3610          test -z "$ac_c_werror_flag" ||
3611          test ! -s conftest.err
3612        } && test -s conftest.$ac_objext; then
3613   ac_cv_prog_cc_c89=$ac_arg
3614 else
3615   echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3617
3618
3619 fi
3620
3621 rm -f core conftest.err conftest.$ac_objext
3622   test "x$ac_cv_prog_cc_c89" != "xno" && break
3623 done
3624 rm -f conftest.$ac_ext
3625 CC=$ac_save_CC
3626
3627 fi
3628 # AC_CACHE_VAL
3629 case "x$ac_cv_prog_cc_c89" in
3630   x)
3631     { echo "$as_me:$LINENO: result: none needed" >&5
3632 echo "${ECHO_T}none needed" >&6; } ;;
3633   xno)
3634     { echo "$as_me:$LINENO: result: unsupported" >&5
3635 echo "${ECHO_T}unsupported" >&6; } ;;
3636   *)
3637     CC="$CC $ac_cv_prog_cc_c89"
3638     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3639 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3640 esac
3641
3642
3643 ac_ext=c
3644 ac_cpp='$CPP $CPPFLAGS'
3645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3648
3649 depcc="$CC"   am_compiler_list=
3650
3651 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3652 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3653 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3654   echo $ECHO_N "(cached) $ECHO_C" >&6
3655 else
3656   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3657   # We make a subdir and do the tests there.  Otherwise we can end up
3658   # making bogus files that we don't know about and never remove.  For
3659   # instance it was reported that on HP-UX the gcc test will end up
3660   # making a dummy file named `D' -- because `-MD' means `put the output
3661   # in D'.
3662   mkdir conftest.dir
3663   # Copy depcomp to subdir because otherwise we won't find it if we're
3664   # using a relative directory.
3665   cp "$am_depcomp" conftest.dir
3666   cd conftest.dir
3667   # We will build objects and dependencies in a subdirectory because
3668   # it helps to detect inapplicable dependency modes.  For instance
3669   # both Tru64's cc and ICC support -MD to output dependencies as a
3670   # side effect of compilation, but ICC will put the dependencies in
3671   # the current directory while Tru64 will put them in the object
3672   # directory.
3673   mkdir sub
3674
3675   am_cv_CC_dependencies_compiler_type=none
3676   if test "$am_compiler_list" = ""; then
3677      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3678   fi
3679   for depmode in $am_compiler_list; do
3680     # Setup a source with many dependencies, because some compilers
3681     # like to wrap large dependency lists on column 80 (with \), and
3682     # we should not choose a depcomp mode which is confused by this.
3683     #
3684     # We need to recreate these files for each test, as the compiler may
3685     # overwrite some of them when testing with obscure command lines.
3686     # This happens at least with the AIX C compiler.
3687     : > sub/conftest.c
3688     for i in 1 2 3 4 5 6; do
3689       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3690       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3691       # Solaris 8's {/usr,}/bin/sh.
3692       touch sub/conftst$i.h
3693     done
3694     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3695
3696     case $depmode in
3697     nosideeffect)
3698       # after this tag, mechanisms are not by side-effect, so they'll
3699       # only be used when explicitly requested
3700       if test "x$enable_dependency_tracking" = xyes; then
3701         continue
3702       else
3703         break
3704       fi
3705       ;;
3706     none) break ;;
3707     esac
3708     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3709     # mode.  It turns out that the SunPro C++ compiler does not properly
3710     # handle `-M -o', and we need to detect this.
3711     if depmode=$depmode \
3712        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3713        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3714        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3715          >/dev/null 2>conftest.err &&
3716        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3717        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3718        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3719       # icc doesn't choke on unknown options, it will just issue warnings
3720       # or remarks (even with -Werror).  So we grep stderr for any message
3721       # that says an option was ignored or not supported.
3722       # When given -MP, icc 7.0 and 7.1 complain thusly:
3723       #   icc: Command line warning: ignoring option '-M'; no argument required
3724       # The diagnosis changed in icc 8.0:
3725       #   icc: Command line remark: option '-MP' not supported
3726       if (grep 'ignoring option' conftest.err ||
3727           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3728         am_cv_CC_dependencies_compiler_type=$depmode
3729         break
3730       fi
3731     fi
3732   done
3733
3734   cd ..
3735   rm -rf conftest.dir
3736 else
3737   am_cv_CC_dependencies_compiler_type=none
3738 fi
3739
3740 fi
3741 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3742 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3743 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3744
3745
3746
3747 if
3748   test "x$enable_dependency_tracking" != xno \
3749   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3750   am__fastdepCC_TRUE=
3751   am__fastdepCC_FALSE='#'
3752 else
3753   am__fastdepCC_TRUE='#'
3754   am__fastdepCC_FALSE=
3755 fi
3756
3757
3758 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3759 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3760 if test "${lt_cv_path_SED+set}" = set; then
3761   echo $ECHO_N "(cached) $ECHO_C" >&6
3762 else
3763   # Loop through the user's path and test for sed and gsed.
3764 # Then use that list of sed's as ones to test for truncation.
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 for as_dir in $PATH
3767 do
3768   IFS=$as_save_IFS
3769   test -z "$as_dir" && as_dir=.
3770   for lt_ac_prog in sed gsed; do
3771     for ac_exec_ext in '' $ac_executable_extensions; do
3772       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3773         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3774       fi
3775     done
3776   done
3777 done
3778 lt_ac_max=0
3779 lt_ac_count=0
3780 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3781 # along with /bin/sed that truncates output.
3782 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3783   test ! -f $lt_ac_sed && continue
3784   cat /dev/null > conftest.in
3785   lt_ac_count=0
3786   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3787   # Check for GNU sed and select it if it is found.
3788   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3789     lt_cv_path_SED=$lt_ac_sed
3790     break
3791   fi
3792   while true; do
3793     cat conftest.in conftest.in >conftest.tmp
3794     mv conftest.tmp conftest.in
3795     cp conftest.in conftest.nl
3796     echo >>conftest.nl
3797     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3798     cmp -s conftest.out conftest.nl || break
3799     # 10000 chars as input seems more than enough
3800     test $lt_ac_count -gt 10 && break
3801     lt_ac_count=`expr $lt_ac_count + 1`
3802     if test $lt_ac_count -gt $lt_ac_max; then
3803       lt_ac_max=$lt_ac_count
3804       lt_cv_path_SED=$lt_ac_sed
3805     fi
3806   done
3807 done
3808
3809 fi
3810
3811 SED=$lt_cv_path_SED
3812 { echo "$as_me:$LINENO: result: $SED" >&5
3813 echo "${ECHO_T}$SED" >&6; }
3814
3815 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3816 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3817 if test "${ac_cv_path_GREP+set}" = set; then
3818   echo $ECHO_N "(cached) $ECHO_C" >&6
3819 else
3820   # Extract the first word of "grep ggrep" to use in msg output
3821 if test -z "$GREP"; then
3822 set dummy grep ggrep; ac_prog_name=$2
3823 if test "${ac_cv_path_GREP+set}" = set; then
3824   echo $ECHO_N "(cached) $ECHO_C" >&6
3825 else
3826   ac_path_GREP_found=false
3827 # Loop through the user's path and test for each of PROGNAME-LIST
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3830 do
3831   IFS=$as_save_IFS
3832   test -z "$as_dir" && as_dir=.
3833   for ac_prog in grep ggrep; do
3834   for ac_exec_ext in '' $ac_executable_extensions; do
3835     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3836     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3837     # Check for GNU ac_path_GREP and select it if it is found.
3838   # Check for GNU $ac_path_GREP
3839 case `"$ac_path_GREP" --version 2>&1` in
3840 *GNU*)
3841   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3842 *)
3843   ac_count=0
3844   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3845   while :
3846   do
3847     cat "conftest.in" "conftest.in" >"conftest.tmp"
3848     mv "conftest.tmp" "conftest.in"
3849     cp "conftest.in" "conftest.nl"
3850     echo 'GREP' >> "conftest.nl"
3851     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3852     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3853     ac_count=`expr $ac_count + 1`
3854     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3855       # Best one so far, save it but keep looking for a better one
3856       ac_cv_path_GREP="$ac_path_GREP"
3857       ac_path_GREP_max=$ac_count
3858     fi
3859     # 10*(2^10) chars as input seems more than enough
3860     test $ac_count -gt 10 && break
3861   done
3862   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3863 esac
3864
3865
3866     $ac_path_GREP_found && break 3
3867   done
3868 done
3869
3870 done
3871 IFS=$as_save_IFS
3872
3873
3874 fi
3875
3876 GREP="$ac_cv_path_GREP"
3877 if test -z "$GREP"; then
3878   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3879 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3880    { (exit 1); exit 1; }; }
3881 fi
3882
3883 else
3884   ac_cv_path_GREP=$GREP
3885 fi
3886
3887
3888 fi
3889 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3890 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3891  GREP="$ac_cv_path_GREP"
3892
3893
3894 { echo "$as_me:$LINENO: checking for egrep" >&5
3895 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3896 if test "${ac_cv_path_EGREP+set}" = set; then
3897   echo $ECHO_N "(cached) $ECHO_C" >&6
3898 else
3899   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3900    then ac_cv_path_EGREP="$GREP -E"
3901    else
3902      # Extract the first word of "egrep" to use in msg output
3903 if test -z "$EGREP"; then
3904 set dummy egrep; ac_prog_name=$2
3905 if test "${ac_cv_path_EGREP+set}" = set; then
3906   echo $ECHO_N "(cached) $ECHO_C" >&6
3907 else
3908   ac_path_EGREP_found=false
3909 # Loop through the user's path and test for each of PROGNAME-LIST
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3912 do
3913   IFS=$as_save_IFS
3914   test -z "$as_dir" && as_dir=.
3915   for ac_prog in egrep; do
3916   for ac_exec_ext in '' $ac_executable_extensions; do
3917     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3918     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3919     # Check for GNU ac_path_EGREP and select it if it is found.
3920   # Check for GNU $ac_path_EGREP
3921 case `"$ac_path_EGREP" --version 2>&1` in
3922 *GNU*)
3923   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3924 *)
3925   ac_count=0
3926   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3927   while :
3928   do
3929     cat "conftest.in" "conftest.in" >"conftest.tmp"
3930     mv "conftest.tmp" "conftest.in"
3931     cp "conftest.in" "conftest.nl"
3932     echo 'EGREP' >> "conftest.nl"
3933     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3934     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3935     ac_count=`expr $ac_count + 1`
3936     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3937       # Best one so far, save it but keep looking for a better one
3938       ac_cv_path_EGREP="$ac_path_EGREP"
3939       ac_path_EGREP_max=$ac_count
3940     fi
3941     # 10*(2^10) chars as input seems more than enough
3942     test $ac_count -gt 10 && break
3943   done
3944   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3945 esac
3946
3947
3948     $ac_path_EGREP_found && break 3
3949   done
3950 done
3951
3952 done
3953 IFS=$as_save_IFS
3954
3955
3956 fi
3957
3958 EGREP="$ac_cv_path_EGREP"
3959 if test -z "$EGREP"; then
3960   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3961 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3962    { (exit 1); exit 1; }; }
3963 fi
3964
3965 else
3966   ac_cv_path_EGREP=$EGREP
3967 fi
3968
3969
3970    fi
3971 fi
3972 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3973 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3974  EGREP="$ac_cv_path_EGREP"
3975
3976
3977
3978 # Check whether --with-gnu-ld was given.
3979 if test "${with_gnu_ld+set}" = set; then
3980   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3981 else
3982   with_gnu_ld=no
3983 fi
3984
3985 ac_prog=ld
3986 if test "$GCC" = yes; then
3987   # Check if gcc -print-prog-name=ld gives a path.
3988   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3989 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3990   case $host in
3991   *-*-mingw*)
3992     # gcc leaves a trailing carriage return which upsets mingw
3993     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3994   *)
3995     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3996   esac
3997   case $ac_prog in
3998     # Accept absolute paths.
3999     [\\/]* | ?:[\\/]*)
4000       re_direlt='/[^/][^/]*/\.\./'
4001       # Canonicalize the pathname of ld
4002       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4003       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4004         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4005       done
4006       test -z "$LD" && LD="$ac_prog"
4007       ;;
4008   "")
4009     # If it fails, then pretend we aren't using GCC.
4010     ac_prog=ld
4011     ;;
4012   *)
4013     # If it is relative, then search for the first ld in PATH.
4014     with_gnu_ld=unknown
4015     ;;
4016   esac
4017 elif test "$with_gnu_ld" = yes; then
4018   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4019 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4020 else
4021   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4022 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4023 fi
4024 if test "${lt_cv_path_LD+set}" = set; then
4025   echo $ECHO_N "(cached) $ECHO_C" >&6
4026 else
4027   if test -z "$LD"; then
4028   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4029   for ac_dir in $PATH; do
4030     IFS="$lt_save_ifs"
4031     test -z "$ac_dir" && ac_dir=.
4032     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4033       lt_cv_path_LD="$ac_dir/$ac_prog"
4034       # Check to see if the program is GNU ld.  I'd rather use --version,
4035       # but apparently some variants of GNU ld only accept -v.
4036       # Break only if it was the GNU/non-GNU ld that we prefer.
4037       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4038       *GNU* | *'with BFD'*)
4039         test "$with_gnu_ld" != no && break
4040         ;;
4041       *)
4042         test "$with_gnu_ld" != yes && break
4043         ;;
4044       esac
4045     fi
4046   done
4047   IFS="$lt_save_ifs"
4048 else
4049   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4050 fi
4051 fi
4052
4053 LD="$lt_cv_path_LD"
4054 if test -n "$LD"; then
4055   { echo "$as_me:$LINENO: result: $LD" >&5
4056 echo "${ECHO_T}$LD" >&6; }
4057 else
4058   { echo "$as_me:$LINENO: result: no" >&5
4059 echo "${ECHO_T}no" >&6; }
4060 fi
4061 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4062 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4063    { (exit 1); exit 1; }; }
4064 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4065 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4066 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4067   echo $ECHO_N "(cached) $ECHO_C" >&6
4068 else
4069   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4070 case `$LD -v 2>&1 </dev/null` in
4071 *GNU* | *'with BFD'*)
4072   lt_cv_prog_gnu_ld=yes
4073   ;;
4074 *)
4075   lt_cv_prog_gnu_ld=no
4076   ;;
4077 esac
4078 fi
4079 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4080 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4081 with_gnu_ld=$lt_cv_prog_gnu_ld
4082
4083
4084 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4085 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4086 if test "${lt_cv_ld_reload_flag+set}" = set; then
4087   echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089   lt_cv_ld_reload_flag='-r'
4090 fi
4091 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4092 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4093 reload_flag=$lt_cv_ld_reload_flag
4094 case $reload_flag in
4095 "" | " "*) ;;
4096 *) reload_flag=" $reload_flag" ;;
4097 esac
4098 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4099 case $host_os in
4100   darwin*)
4101     if test "$GCC" = yes; then
4102       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4103     else
4104       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4105     fi
4106     ;;
4107 esac
4108
4109 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4110 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4111 if test "${lt_cv_path_NM+set}" = set; then
4112   echo $ECHO_N "(cached) $ECHO_C" >&6
4113 else
4114   if test -n "$NM"; then
4115   # Let the user override the test.
4116   lt_cv_path_NM="$NM"
4117 else
4118   lt_nm_to_check="${ac_tool_prefix}nm"
4119   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4120     lt_nm_to_check="$lt_nm_to_check nm"
4121   fi
4122   for lt_tmp_nm in $lt_nm_to_check; do
4123     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4124     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4125       IFS="$lt_save_ifs"
4126       test -z "$ac_dir" && ac_dir=.
4127       tmp_nm="$ac_dir/$lt_tmp_nm"
4128       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4129         # Check to see if the nm accepts a BSD-compat flag.
4130         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4131         #   nm: unknown option "B" ignored
4132         # Tru64's nm complains that /dev/null is an invalid object file
4133         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4134         */dev/null* | *'Invalid file or object type'*)
4135           lt_cv_path_NM="$tmp_nm -B"
4136           break
4137           ;;
4138         *)
4139           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4140           */dev/null*)
4141             lt_cv_path_NM="$tmp_nm -p"
4142             break
4143             ;;
4144           *)
4145             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4146             continue # so that we can try to find one that supports BSD flags
4147             ;;
4148           esac
4149           ;;
4150         esac
4151       fi
4152     done
4153     IFS="$lt_save_ifs"
4154   done
4155   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4156 fi
4157 fi
4158 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4159 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4160 NM="$lt_cv_path_NM"
4161
4162 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4163 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4164 LN_S=$as_ln_s
4165 if test "$LN_S" = "ln -s"; then
4166   { echo "$as_me:$LINENO: result: yes" >&5
4167 echo "${ECHO_T}yes" >&6; }
4168 else
4169   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4170 echo "${ECHO_T}no, using $LN_S" >&6; }
4171 fi
4172
4173 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4174 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4175 if test "${lt_cv_deplibs_check_method+set}" = set; then
4176   echo $ECHO_N "(cached) $ECHO_C" >&6
4177 else
4178   lt_cv_file_magic_cmd='$MAGIC_CMD'
4179 lt_cv_file_magic_test_file=
4180 lt_cv_deplibs_check_method='unknown'
4181 # Need to set the preceding variable on all platforms that support
4182 # interlibrary dependencies.
4183 # 'none' -- dependencies not supported.
4184 # `unknown' -- same as none, but documents that we really don't know.
4185 # 'pass_all' -- all dependencies passed with no checks.
4186 # 'test_compile' -- check by making test program.
4187 # 'file_magic [[regex]]' -- check by looking for files in library path
4188 # which responds to the $file_magic_cmd with a given extended regex.
4189 # If you have `file' or equivalent on your system and you're not sure
4190 # whether `pass_all' will *always* work, you probably want this one.
4191
4192 case $host_os in
4193 aix4* | aix5*)
4194   lt_cv_deplibs_check_method=pass_all
4195   ;;
4196
4197 beos*)
4198   lt_cv_deplibs_check_method=pass_all
4199   ;;
4200
4201 bsdi[45]*)
4202   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4203   lt_cv_file_magic_cmd='/usr/bin/file -L'
4204   lt_cv_file_magic_test_file=/shlib/libc.so
4205   ;;
4206
4207 cygwin*)
4208   # func_win32_libid is a shell function defined in ltmain.sh
4209   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4210   lt_cv_file_magic_cmd='func_win32_libid'
4211   ;;
4212
4213 mingw* | pw32*)
4214   # Base MSYS/MinGW do not provide the 'file' command needed by
4215   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4216   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4217   lt_cv_file_magic_cmd='$OBJDUMP -f'
4218   ;;
4219
4220 darwin* | rhapsody*)
4221   lt_cv_deplibs_check_method=pass_all
4222   ;;
4223
4224 freebsd* | dragonfly*)
4225   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4226     case $host_cpu in
4227     i*86 )
4228       # Not sure whether the presence of OpenBSD here was a mistake.
4229       # Let's accept both of them until this is cleared up.
4230       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4231       lt_cv_file_magic_cmd=/usr/bin/file
4232       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4233       ;;
4234     esac
4235   else
4236     lt_cv_deplibs_check_method=pass_all
4237   fi
4238   ;;
4239
4240 gnu*)
4241   lt_cv_deplibs_check_method=pass_all
4242   ;;
4243
4244 hpux10.20* | hpux11*)
4245   lt_cv_file_magic_cmd=/usr/bin/file
4246   case $host_cpu in
4247   ia64*)
4248     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4249     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4250     ;;
4251   hppa*64*)
4252     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]'
4253     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4254     ;;
4255   *)
4256     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4257     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4258     ;;
4259   esac
4260   ;;
4261
4262 interix3*)
4263   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4264   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4265   ;;
4266
4267 irix5* | irix6* | nonstopux*)
4268   case $LD in
4269   *-32|*"-32 ") libmagic=32-bit;;
4270   *-n32|*"-n32 ") libmagic=N32;;
4271   *-64|*"-64 ") libmagic=64-bit;;
4272   *) libmagic=never-match;;
4273   esac
4274   lt_cv_deplibs_check_method=pass_all
4275   ;;
4276
4277 # This must be Linux ELF.
4278 linux* | k*bsd*-gnu)
4279   lt_cv_deplibs_check_method=pass_all
4280   ;;
4281
4282 netbsd* | netbsdelf*-gnu)
4283   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4284     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4285   else
4286     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4287   fi
4288   ;;
4289
4290 newos6*)
4291   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4292   lt_cv_file_magic_cmd=/usr/bin/file
4293   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4294   ;;
4295
4296 nto-qnx*)
4297   lt_cv_deplibs_check_method=unknown
4298   ;;
4299
4300 openbsd*)
4301   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4302     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4303   else
4304     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4305   fi
4306   ;;
4307
4308 osf3* | osf4* | osf5*)
4309   lt_cv_deplibs_check_method=pass_all
4310   ;;
4311
4312 solaris*)
4313   lt_cv_deplibs_check_method=pass_all
4314   ;;
4315
4316 sysv4 | sysv4.3*)
4317   case $host_vendor in
4318   motorola)
4319     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]'
4320     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4321     ;;
4322   ncr)
4323     lt_cv_deplibs_check_method=pass_all
4324     ;;
4325   sequent)
4326     lt_cv_file_magic_cmd='/bin/file'
4327     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4328     ;;
4329   sni)
4330     lt_cv_file_magic_cmd='/bin/file'
4331     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4332     lt_cv_file_magic_test_file=/lib/libc.so
4333     ;;
4334   siemens)
4335     lt_cv_deplibs_check_method=pass_all
4336     ;;
4337   pc)
4338     lt_cv_deplibs_check_method=pass_all
4339     ;;
4340   esac
4341   ;;
4342
4343 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4344   lt_cv_deplibs_check_method=pass_all
4345   ;;
4346 esac
4347
4348 fi
4349 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4350 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4351 file_magic_cmd=$lt_cv_file_magic_cmd
4352 deplibs_check_method=$lt_cv_deplibs_check_method
4353 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4354
4355
4356
4357
4358 # If no C compiler was specified, use CC.
4359 LTCC=${LTCC-"$CC"}
4360
4361 # If no C compiler flags were specified, use CFLAGS.
4362 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4363
4364 # Allow CC to be a program name with arguments.
4365 compiler=$CC
4366
4367
4368 # Check whether --enable-libtool-lock was given.
4369 if test "${enable_libtool_lock+set}" = set; then
4370   enableval=$enable_libtool_lock;
4371 fi
4372
4373 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4374
4375 # Some flags need to be propagated to the compiler or linker for good
4376 # libtool support.
4377 case $host in
4378 ia64-*-hpux*)
4379   # Find out which ABI we are using.
4380   echo 'int i;' > conftest.$ac_ext
4381   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4382   (eval $ac_compile) 2>&5
4383   ac_status=$?
4384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385   (exit $ac_status); }; then
4386     case `/usr/bin/file conftest.$ac_objext` in
4387     *ELF-32*)
4388       HPUX_IA64_MODE="32"
4389       ;;
4390     *ELF-64*)
4391       HPUX_IA64_MODE="64"
4392       ;;
4393     esac
4394   fi
4395   rm -rf conftest*
4396   ;;
4397 *-*-irix6*)
4398   # Find out which ABI we are using.
4399   echo '#line 4399 "configure"' > conftest.$ac_ext
4400   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4401   (eval $ac_compile) 2>&5
4402   ac_status=$?
4403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404   (exit $ac_status); }; then
4405    if test "$lt_cv_prog_gnu_ld" = yes; then
4406     case `/usr/bin/file conftest.$ac_objext` in
4407     *32-bit*)
4408       LD="${LD-ld} -melf32bsmip"
4409       ;;
4410     *N32*)
4411       LD="${LD-ld} -melf32bmipn32"
4412       ;;
4413     *64-bit*)
4414       LD="${LD-ld} -melf64bmip"
4415       ;;
4416     esac
4417    else
4418     case `/usr/bin/file conftest.$ac_objext` in
4419     *32-bit*)
4420       LD="${LD-ld} -32"
4421       ;;
4422     *N32*)
4423       LD="${LD-ld} -n32"
4424       ;;
4425     *64-bit*)
4426       LD="${LD-ld} -64"
4427       ;;
4428     esac
4429    fi
4430   fi
4431   rm -rf conftest*
4432   ;;
4433
4434 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4435   # Find out which ABI we are using.
4436   echo 'int i;' > conftest.$ac_ext
4437   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4438   (eval $ac_compile) 2>&5
4439   ac_status=$?
4440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441   (exit $ac_status); }; then
4442     case `/usr/bin/file conftest.o` in
4443     *32-bit*)
4444       case $host in
4445         x86_64-*linux*)
4446           LD="${LD-ld} -m elf_i386"
4447           ;;
4448         ppc64-*linux*|powerpc64-*linux*)
4449           LD="${LD-ld} -m elf32ppclinux"
4450           ;;
4451         s390x-*linux*)
4452           LD="${LD-ld} -m elf_s390"
4453           ;;
4454         sparc64-*linux*)
4455           LD="${LD-ld} -m elf32_sparc"
4456           ;;
4457       esac
4458       ;;
4459     *64-bit*)
4460       case $host in
4461         x86_64-*linux*)
4462           LD="${LD-ld} -m elf_x86_64"
4463           ;;
4464         ppc*-*linux*|powerpc*-*linux*)
4465           LD="${LD-ld} -m elf64ppc"
4466           ;;
4467         s390*-*linux*)
4468           LD="${LD-ld} -m elf64_s390"
4469           ;;
4470         sparc*-*linux*)
4471           LD="${LD-ld} -m elf64_sparc"
4472           ;;
4473       esac
4474       ;;
4475     esac
4476   fi
4477   rm -rf conftest*
4478   ;;
4479
4480 *-*-sco3.2v5*)
4481   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4482   SAVE_CFLAGS="$CFLAGS"
4483   CFLAGS="$CFLAGS -belf"
4484   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4485 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4486 if test "${lt_cv_cc_needs_belf+set}" = set; then
4487   echo $ECHO_N "(cached) $ECHO_C" >&6
4488 else
4489   ac_ext=c
4490 ac_cpp='$CPP $CPPFLAGS'
4491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4494
4495      cat >conftest.$ac_ext <<_ACEOF
4496 /* confdefs.h.  */
4497 _ACEOF
4498 cat confdefs.h >>conftest.$ac_ext
4499 cat >>conftest.$ac_ext <<_ACEOF
4500 /* end confdefs.h.  */
4501
4502 int
4503 main ()
4504 {
4505
4506   ;
4507   return 0;
4508 }
4509 _ACEOF
4510 rm -f conftest.$ac_objext conftest$ac_exeext
4511 if { (ac_try="$ac_link"
4512 case "(($ac_try" in
4513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514   *) ac_try_echo=$ac_try;;
4515 esac
4516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4517   (eval "$ac_link") 2>conftest.er1
4518   ac_status=$?
4519   grep -v '^ *+' conftest.er1 >conftest.err
4520   rm -f conftest.er1
4521   cat conftest.err >&5
4522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523   (exit $ac_status); } && {
4524          test -z "$ac_c_werror_flag" ||
4525          test ! -s conftest.err
4526        } && test -s conftest$ac_exeext &&
4527        $as_test_x conftest$ac_exeext; then
4528   lt_cv_cc_needs_belf=yes
4529 else
4530   echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.$ac_ext >&5
4532
4533         lt_cv_cc_needs_belf=no
4534 fi
4535
4536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4537       conftest$ac_exeext conftest.$ac_ext
4538      ac_ext=c
4539 ac_cpp='$CPP $CPPFLAGS'
4540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4543
4544 fi
4545 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4546 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4547   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4548     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4549     CFLAGS="$SAVE_CFLAGS"
4550   fi
4551   ;;
4552 sparc*-*solaris*)
4553   # Find out which ABI we are using.
4554   echo 'int i;' > conftest.$ac_ext
4555   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4556   (eval $ac_compile) 2>&5
4557   ac_status=$?
4558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559   (exit $ac_status); }; then
4560     case `/usr/bin/file conftest.o` in
4561     *64-bit*)
4562       case $lt_cv_prog_gnu_ld in
4563       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4564       *)    LD="${LD-ld} -64" ;;
4565       esac
4566       ;;
4567     esac
4568   fi
4569   rm -rf conftest*
4570   ;;
4571
4572 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4573   if test -n "$ac_tool_prefix"; then
4574   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4575 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4578 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4579   echo $ECHO_N "(cached) $ECHO_C" >&6
4580 else
4581   if test -n "$DLLTOOL"; then
4582   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4583 else
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH
4586 do
4587   IFS=$as_save_IFS
4588   test -z "$as_dir" && as_dir=.
4589   for ac_exec_ext in '' $ac_executable_extensions; do
4590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4591     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4593     break 2
4594   fi
4595 done
4596 done
4597 IFS=$as_save_IFS
4598
4599 fi
4600 fi
4601 DLLTOOL=$ac_cv_prog_DLLTOOL
4602 if test -n "$DLLTOOL"; then
4603   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4604 echo "${ECHO_T}$DLLTOOL" >&6; }
4605 else
4606   { echo "$as_me:$LINENO: result: no" >&5
4607 echo "${ECHO_T}no" >&6; }
4608 fi
4609
4610
4611 fi
4612 if test -z "$ac_cv_prog_DLLTOOL"; then
4613   ac_ct_DLLTOOL=$DLLTOOL
4614   # Extract the first word of "dlltool", so it can be a program name with args.
4615 set dummy dlltool; ac_word=$2
4616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4618 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4619   echo $ECHO_N "(cached) $ECHO_C" >&6
4620 else
4621   if test -n "$ac_ct_DLLTOOL"; then
4622   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4623 else
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 for as_dir in $PATH
4626 do
4627   IFS=$as_save_IFS
4628   test -z "$as_dir" && as_dir=.
4629   for ac_exec_ext in '' $ac_executable_extensions; do
4630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4631     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4633     break 2
4634   fi
4635 done
4636 done
4637 IFS=$as_save_IFS
4638
4639 fi
4640 fi
4641 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4642 if test -n "$ac_ct_DLLTOOL"; then
4643   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4644 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4645 else
4646   { echo "$as_me:$LINENO: result: no" >&5
4647 echo "${ECHO_T}no" >&6; }
4648 fi
4649
4650   if test "x$ac_ct_DLLTOOL" = x; then
4651     DLLTOOL="false"
4652   else
4653     case $cross_compiling:$ac_tool_warned in
4654 yes:)
4655 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4656 whose name does not start with the host triplet.  If you think this
4657 configuration is useful to you, please write to autoconf@gnu.org." >&5
4658 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4659 whose name does not start with the host triplet.  If you think this
4660 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4661 ac_tool_warned=yes ;;
4662 esac
4663     DLLTOOL=$ac_ct_DLLTOOL
4664   fi
4665 else
4666   DLLTOOL="$ac_cv_prog_DLLTOOL"
4667 fi
4668
4669   if test -n "$ac_tool_prefix"; then
4670   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4671 set dummy ${ac_tool_prefix}as; ac_word=$2
4672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4674 if test "${ac_cv_prog_AS+set}" = set; then
4675   echo $ECHO_N "(cached) $ECHO_C" >&6
4676 else
4677   if test -n "$AS"; then
4678   ac_cv_prog_AS="$AS" # Let the user override the test.
4679 else
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 for as_dir in $PATH
4682 do
4683   IFS=$as_save_IFS
4684   test -z "$as_dir" && as_dir=.
4685   for ac_exec_ext in '' $ac_executable_extensions; do
4686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4687     ac_cv_prog_AS="${ac_tool_prefix}as"
4688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4689     break 2
4690   fi
4691 done
4692 done
4693 IFS=$as_save_IFS
4694
4695 fi
4696 fi
4697 AS=$ac_cv_prog_AS
4698 if test -n "$AS"; then
4699   { echo "$as_me:$LINENO: result: $AS" >&5
4700 echo "${ECHO_T}$AS" >&6; }
4701 else
4702   { echo "$as_me:$LINENO: result: no" >&5
4703 echo "${ECHO_T}no" >&6; }
4704 fi
4705
4706
4707 fi
4708 if test -z "$ac_cv_prog_AS"; then
4709   ac_ct_AS=$AS
4710   # Extract the first word of "as", so it can be a program name with args.
4711 set dummy as; ac_word=$2
4712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4714 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4715   echo $ECHO_N "(cached) $ECHO_C" >&6
4716 else
4717   if test -n "$ac_ct_AS"; then
4718   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4719 else
4720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 for as_dir in $PATH
4722 do
4723   IFS=$as_save_IFS
4724   test -z "$as_dir" && as_dir=.
4725   for ac_exec_ext in '' $ac_executable_extensions; do
4726   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4727     ac_cv_prog_ac_ct_AS="as"
4728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4729     break 2
4730   fi
4731 done
4732 done
4733 IFS=$as_save_IFS
4734
4735 fi
4736 fi
4737 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4738 if test -n "$ac_ct_AS"; then
4739   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4740 echo "${ECHO_T}$ac_ct_AS" >&6; }
4741 else
4742   { echo "$as_me:$LINENO: result: no" >&5
4743 echo "${ECHO_T}no" >&6; }
4744 fi
4745
4746   if test "x$ac_ct_AS" = x; then
4747     AS="false"
4748   else
4749     case $cross_compiling:$ac_tool_warned in
4750 yes:)
4751 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4752 whose name does not start with the host triplet.  If you think this
4753 configuration is useful to you, please write to autoconf@gnu.org." >&5
4754 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4755 whose name does not start with the host triplet.  If you think this
4756 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4757 ac_tool_warned=yes ;;
4758 esac
4759     AS=$ac_ct_AS
4760   fi
4761 else
4762   AS="$ac_cv_prog_AS"
4763 fi
4764
4765   if test -n "$ac_tool_prefix"; then
4766   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4767 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4770 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4771   echo $ECHO_N "(cached) $ECHO_C" >&6
4772 else
4773   if test -n "$OBJDUMP"; then
4774   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4775 else
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777 for as_dir in $PATH
4778 do
4779   IFS=$as_save_IFS
4780   test -z "$as_dir" && as_dir=.
4781   for ac_exec_ext in '' $ac_executable_extensions; do
4782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4783     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4785     break 2
4786   fi
4787 done
4788 done
4789 IFS=$as_save_IFS
4790
4791 fi
4792 fi
4793 OBJDUMP=$ac_cv_prog_OBJDUMP
4794 if test -n "$OBJDUMP"; then
4795   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4796 echo "${ECHO_T}$OBJDUMP" >&6; }
4797 else
4798   { echo "$as_me:$LINENO: result: no" >&5
4799 echo "${ECHO_T}no" >&6; }
4800 fi
4801
4802
4803 fi
4804 if test -z "$ac_cv_prog_OBJDUMP"; then
4805   ac_ct_OBJDUMP=$OBJDUMP
4806   # Extract the first word of "objdump", so it can be a program name with args.
4807 set dummy objdump; ac_word=$2
4808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4810 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4811   echo $ECHO_N "(cached) $ECHO_C" >&6
4812 else
4813   if test -n "$ac_ct_OBJDUMP"; then
4814   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4815 else
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 for as_dir in $PATH
4818 do
4819   IFS=$as_save_IFS
4820   test -z "$as_dir" && as_dir=.
4821   for ac_exec_ext in '' $ac_executable_extensions; do
4822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4823     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4825     break 2
4826   fi
4827 done
4828 done
4829 IFS=$as_save_IFS
4830
4831 fi
4832 fi
4833 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4834 if test -n "$ac_ct_OBJDUMP"; then
4835   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4836 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4837 else
4838   { echo "$as_me:$LINENO: result: no" >&5
4839 echo "${ECHO_T}no" >&6; }
4840 fi
4841
4842   if test "x$ac_ct_OBJDUMP" = x; then
4843     OBJDUMP="false"
4844   else
4845     case $cross_compiling:$ac_tool_warned in
4846 yes:)
4847 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4848 whose name does not start with the host triplet.  If you think this
4849 configuration is useful to you, please write to autoconf@gnu.org." >&5
4850 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4851 whose name does not start with the host triplet.  If you think this
4852 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4853 ac_tool_warned=yes ;;
4854 esac
4855     OBJDUMP=$ac_ct_OBJDUMP
4856   fi
4857 else
4858   OBJDUMP="$ac_cv_prog_OBJDUMP"
4859 fi
4860
4861   ;;
4862
4863 esac
4864
4865 need_locks="$enable_libtool_lock"
4866
4867
4868 ac_ext=c
4869 ac_cpp='$CPP $CPPFLAGS'
4870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4873 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4874 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4875 # On Suns, sometimes $CPP names a directory.
4876 if test -n "$CPP" && test -d "$CPP"; then
4877   CPP=
4878 fi
4879 if test -z "$CPP"; then
4880   if test "${ac_cv_prog_CPP+set}" = set; then
4881   echo $ECHO_N "(cached) $ECHO_C" >&6
4882 else
4883       # Double quotes because CPP needs to be expanded
4884     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4885     do
4886       ac_preproc_ok=false
4887 for ac_c_preproc_warn_flag in '' yes
4888 do
4889   # Use a header file that comes with gcc, so configuring glibc
4890   # with a fresh cross-compiler works.
4891   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4892   # <limits.h> exists even on freestanding compilers.
4893   # On the NeXT, cc -E runs the code through the compiler's parser,
4894   # not just through cpp. "Syntax error" is here to catch this case.
4895   cat >conftest.$ac_ext <<_ACEOF
4896 /* confdefs.h.  */
4897 _ACEOF
4898 cat confdefs.h >>conftest.$ac_ext
4899 cat >>conftest.$ac_ext <<_ACEOF
4900 /* end confdefs.h.  */
4901 #ifdef __STDC__
4902 # include <limits.h>
4903 #else
4904 # include <assert.h>
4905 #endif
4906                      Syntax error
4907 _ACEOF
4908 if { (ac_try="$ac_cpp conftest.$ac_ext"
4909 case "(($ac_try" in
4910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4911   *) ac_try_echo=$ac_try;;
4912 esac
4913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4914   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4915   ac_status=$?
4916   grep -v '^ *+' conftest.er1 >conftest.err
4917   rm -f conftest.er1
4918   cat conftest.err >&5
4919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920   (exit $ac_status); } >/dev/null && {
4921          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4922          test ! -s conftest.err
4923        }; then
4924   :
4925 else
4926   echo "$as_me: failed program was:" >&5
4927 sed 's/^/| /' conftest.$ac_ext >&5
4928
4929   # Broken: fails on valid input.
4930 continue
4931 fi
4932
4933 rm -f conftest.err conftest.$ac_ext
4934
4935   # OK, works on sane cases.  Now check whether nonexistent headers
4936   # can be detected and how.
4937   cat >conftest.$ac_ext <<_ACEOF
4938 /* confdefs.h.  */
4939 _ACEOF
4940 cat confdefs.h >>conftest.$ac_ext
4941 cat >>conftest.$ac_ext <<_ACEOF
4942 /* end confdefs.h.  */
4943 #include <ac_nonexistent.h>
4944 _ACEOF
4945 if { (ac_try="$ac_cpp conftest.$ac_ext"
4946 case "(($ac_try" in
4947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4948   *) ac_try_echo=$ac_try;;
4949 esac
4950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4951   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4952   ac_status=$?
4953   grep -v '^ *+' conftest.er1 >conftest.err
4954   rm -f conftest.er1
4955   cat conftest.err >&5
4956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957   (exit $ac_status); } >/dev/null && {
4958          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4959          test ! -s conftest.err
4960        }; then
4961   # Broken: success on invalid input.
4962 continue
4963 else
4964   echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4966
4967   # Passes both tests.
4968 ac_preproc_ok=:
4969 break
4970 fi
4971
4972 rm -f conftest.err conftest.$ac_ext
4973
4974 done
4975 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4976 rm -f conftest.err conftest.$ac_ext
4977 if $ac_preproc_ok; then
4978   break
4979 fi
4980
4981     done
4982     ac_cv_prog_CPP=$CPP
4983
4984 fi
4985   CPP=$ac_cv_prog_CPP
4986 else
4987   ac_cv_prog_CPP=$CPP
4988 fi
4989 { echo "$as_me:$LINENO: result: $CPP" >&5
4990 echo "${ECHO_T}$CPP" >&6; }
4991 ac_preproc_ok=false
4992 for ac_c_preproc_warn_flag in '' yes
4993 do
4994   # Use a header file that comes with gcc, so configuring glibc
4995   # with a fresh cross-compiler works.
4996   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4997   # <limits.h> exists even on freestanding compilers.
4998   # On the NeXT, cc -E runs the code through the compiler's parser,
4999   # not just through cpp. "Syntax error" is here to catch this case.
5000   cat >conftest.$ac_ext <<_ACEOF
5001 /* confdefs.h.  */
5002 _ACEOF
5003 cat confdefs.h >>conftest.$ac_ext
5004 cat >>conftest.$ac_ext <<_ACEOF
5005 /* end confdefs.h.  */
5006 #ifdef __STDC__
5007 # include <limits.h>
5008 #else
5009 # include <assert.h>
5010 #endif
5011                      Syntax error
5012 _ACEOF
5013 if { (ac_try="$ac_cpp conftest.$ac_ext"
5014 case "(($ac_try" in
5015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5016   *) ac_try_echo=$ac_try;;
5017 esac
5018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5019   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5020   ac_status=$?
5021   grep -v '^ *+' conftest.er1 >conftest.err
5022   rm -f conftest.er1
5023   cat conftest.err >&5
5024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025   (exit $ac_status); } >/dev/null && {
5026          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5027          test ! -s conftest.err
5028        }; then
5029   :
5030 else
5031   echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.$ac_ext >&5
5033
5034   # Broken: fails on valid input.
5035 continue
5036 fi
5037
5038 rm -f conftest.err conftest.$ac_ext
5039
5040   # OK, works on sane cases.  Now check whether nonexistent headers
5041   # can be detected and how.
5042   cat >conftest.$ac_ext <<_ACEOF
5043 /* confdefs.h.  */
5044 _ACEOF
5045 cat confdefs.h >>conftest.$ac_ext
5046 cat >>conftest.$ac_ext <<_ACEOF
5047 /* end confdefs.h.  */
5048 #include <ac_nonexistent.h>
5049 _ACEOF
5050 if { (ac_try="$ac_cpp conftest.$ac_ext"
5051 case "(($ac_try" in
5052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053   *) ac_try_echo=$ac_try;;
5054 esac
5055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5056   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5057   ac_status=$?
5058   grep -v '^ *+' conftest.er1 >conftest.err
5059   rm -f conftest.er1
5060   cat conftest.err >&5
5061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062   (exit $ac_status); } >/dev/null && {
5063          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5064          test ! -s conftest.err
5065        }; then
5066   # Broken: success on invalid input.
5067 continue
5068 else
5069   echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5071
5072   # Passes both tests.
5073 ac_preproc_ok=:
5074 break
5075 fi
5076
5077 rm -f conftest.err conftest.$ac_ext
5078
5079 done
5080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5081 rm -f conftest.err conftest.$ac_ext
5082 if $ac_preproc_ok; then
5083   :
5084 else
5085   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5086 See \`config.log' for more details." >&5
5087 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5088 See \`config.log' for more details." >&2;}
5089    { (exit 1); exit 1; }; }
5090 fi
5091
5092 ac_ext=c
5093 ac_cpp='$CPP $CPPFLAGS'
5094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5097
5098
5099 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5100 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5101 if test "${ac_cv_header_stdc+set}" = set; then
5102   echo $ECHO_N "(cached) $ECHO_C" >&6
5103 else
5104   cat >conftest.$ac_ext <<_ACEOF
5105 /* confdefs.h.  */
5106 _ACEOF
5107 cat confdefs.h >>conftest.$ac_ext
5108 cat >>conftest.$ac_ext <<_ACEOF
5109 /* end confdefs.h.  */
5110 #include <stdlib.h>
5111 #include <stdarg.h>
5112 #include <string.h>
5113 #include <float.h>
5114
5115 int
5116 main ()
5117 {
5118
5119   ;
5120   return 0;
5121 }
5122 _ACEOF
5123 rm -f conftest.$ac_objext
5124 if { (ac_try="$ac_compile"
5125 case "(($ac_try" in
5126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5127   *) ac_try_echo=$ac_try;;
5128 esac
5129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5130   (eval "$ac_compile") 2>conftest.er1
5131   ac_status=$?
5132   grep -v '^ *+' conftest.er1 >conftest.err
5133   rm -f conftest.er1
5134   cat conftest.err >&5
5135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136   (exit $ac_status); } && {
5137          test -z "$ac_c_werror_flag" ||
5138          test ! -s conftest.err
5139        } && test -s conftest.$ac_objext; then
5140   ac_cv_header_stdc=yes
5141 else
5142   echo "$as_me: failed program was:" >&5
5143 sed 's/^/| /' conftest.$ac_ext >&5
5144
5145         ac_cv_header_stdc=no
5146 fi
5147
5148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5149
5150 if test $ac_cv_header_stdc = yes; then
5151   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5152   cat >conftest.$ac_ext <<_ACEOF
5153 /* confdefs.h.  */
5154 _ACEOF
5155 cat confdefs.h >>conftest.$ac_ext
5156 cat >>conftest.$ac_ext <<_ACEOF
5157 /* end confdefs.h.  */
5158 #include <string.h>
5159
5160 _ACEOF
5161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5162   $EGREP "memchr" >/dev/null 2>&1; then
5163   :
5164 else
5165   ac_cv_header_stdc=no
5166 fi
5167 rm -f conftest*
5168
5169 fi
5170
5171 if test $ac_cv_header_stdc = yes; then
5172   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5173   cat >conftest.$ac_ext <<_ACEOF
5174 /* confdefs.h.  */
5175 _ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h.  */
5179 #include <stdlib.h>
5180
5181 _ACEOF
5182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5183   $EGREP "free" >/dev/null 2>&1; then
5184   :
5185 else
5186   ac_cv_header_stdc=no
5187 fi
5188 rm -f conftest*
5189
5190 fi
5191
5192 if test $ac_cv_header_stdc = yes; then
5193   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5194   if test "$cross_compiling" = yes; then
5195   :
5196 else
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 #include <ctype.h>
5204 #include <stdlib.h>
5205 #if ((' ' & 0x0FF) == 0x020)
5206 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5207 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5208 #else
5209 # define ISLOWER(c) \
5210                    (('a' <= (c) && (c) <= 'i') \
5211                      || ('j' <= (c) && (c) <= 'r') \
5212                      || ('s' <= (c) && (c) <= 'z'))
5213 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5214 #endif
5215
5216 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5217 int
5218 main ()
5219 {
5220   int i;
5221   for (i = 0; i < 256; i++)
5222     if (XOR (islower (i), ISLOWER (i))
5223         || toupper (i) != TOUPPER (i))
5224       return 2;
5225   return 0;
5226 }
5227 _ACEOF
5228 rm -f conftest$ac_exeext
5229 if { (ac_try="$ac_link"
5230 case "(($ac_try" in
5231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232   *) ac_try_echo=$ac_try;;
5233 esac
5234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5235   (eval "$ac_link") 2>&5
5236   ac_status=$?
5237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5239   { (case "(($ac_try" in
5240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241   *) ac_try_echo=$ac_try;;
5242 esac
5243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5244   (eval "$ac_try") 2>&5
5245   ac_status=$?
5246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247   (exit $ac_status); }; }; then
5248   :
5249 else
5250   echo "$as_me: program exited with status $ac_status" >&5
5251 echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.$ac_ext >&5
5253
5254 ( exit $ac_status )
5255 ac_cv_header_stdc=no
5256 fi
5257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5258 fi
5259
5260
5261 fi
5262 fi
5263 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5264 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5265 if test $ac_cv_header_stdc = yes; then
5266
5267 cat >>confdefs.h <<\_ACEOF
5268 #define STDC_HEADERS 1
5269 _ACEOF
5270
5271 fi
5272
5273 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5284                   inttypes.h stdint.h unistd.h
5285 do
5286 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5287 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5290   echo $ECHO_N "(cached) $ECHO_C" >&6
5291 else
5292   cat >conftest.$ac_ext <<_ACEOF
5293 /* confdefs.h.  */
5294 _ACEOF
5295 cat confdefs.h >>conftest.$ac_ext
5296 cat >>conftest.$ac_ext <<_ACEOF
5297 /* end confdefs.h.  */
5298 $ac_includes_default
5299
5300 #include <$ac_header>
5301 _ACEOF
5302 rm -f conftest.$ac_objext
5303 if { (ac_try="$ac_compile"
5304 case "(($ac_try" in
5305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5306   *) ac_try_echo=$ac_try;;
5307 esac
5308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5309   (eval "$ac_compile") 2>conftest.er1
5310   ac_status=$?
5311   grep -v '^ *+' conftest.er1 >conftest.err
5312   rm -f conftest.er1
5313   cat conftest.err >&5
5314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315   (exit $ac_status); } && {
5316          test -z "$ac_c_werror_flag" ||
5317          test ! -s conftest.err
5318        } && test -s conftest.$ac_objext; then
5319   eval "$as_ac_Header=yes"
5320 else
5321   echo "$as_me: failed program was:" >&5
5322 sed 's/^/| /' conftest.$ac_ext >&5
5323
5324         eval "$as_ac_Header=no"
5325 fi
5326
5327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5328 fi
5329 ac_res=`eval echo '${'$as_ac_Header'}'`
5330                { echo "$as_me:$LINENO: result: $ac_res" >&5
5331 echo "${ECHO_T}$ac_res" >&6; }
5332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5333   cat >>confdefs.h <<_ACEOF
5334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5335 _ACEOF
5336
5337 fi
5338
5339 done
5340
5341
5342
5343 for ac_header in dlfcn.h
5344 do
5345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5347   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5350   echo $ECHO_N "(cached) $ECHO_C" >&6
5351 fi
5352 ac_res=`eval echo '${'$as_ac_Header'}'`
5353                { echo "$as_me:$LINENO: result: $ac_res" >&5
5354 echo "${ECHO_T}$ac_res" >&6; }
5355 else
5356   # Is the header compilable?
5357 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5359 cat >conftest.$ac_ext <<_ACEOF
5360 /* confdefs.h.  */
5361 _ACEOF
5362 cat confdefs.h >>conftest.$ac_ext
5363 cat >>conftest.$ac_ext <<_ACEOF
5364 /* end confdefs.h.  */
5365 $ac_includes_default
5366 #include <$ac_header>
5367 _ACEOF
5368 rm -f conftest.$ac_objext
5369 if { (ac_try="$ac_compile"
5370 case "(($ac_try" in
5371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5372   *) ac_try_echo=$ac_try;;
5373 esac
5374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5375   (eval "$ac_compile") 2>conftest.er1
5376   ac_status=$?
5377   grep -v '^ *+' conftest.er1 >conftest.err
5378   rm -f conftest.er1
5379   cat conftest.err >&5
5380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381   (exit $ac_status); } && {
5382          test -z "$ac_c_werror_flag" ||
5383          test ! -s conftest.err
5384        } && test -s conftest.$ac_objext; then
5385   ac_header_compiler=yes
5386 else
5387   echo "$as_me: failed program was:" >&5
5388 sed 's/^/| /' conftest.$ac_ext >&5
5389
5390         ac_header_compiler=no
5391 fi
5392
5393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5394 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5395 echo "${ECHO_T}$ac_header_compiler" >&6; }
5396
5397 # Is the header present?
5398 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5399 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5400 cat >conftest.$ac_ext <<_ACEOF
5401 /* confdefs.h.  */
5402 _ACEOF
5403 cat confdefs.h >>conftest.$ac_ext
5404 cat >>conftest.$ac_ext <<_ACEOF
5405 /* end confdefs.h.  */
5406 #include <$ac_header>
5407 _ACEOF
5408 if { (ac_try="$ac_cpp conftest.$ac_ext"
5409 case "(($ac_try" in
5410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5411   *) ac_try_echo=$ac_try;;
5412 esac
5413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5414   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5415   ac_status=$?
5416   grep -v '^ *+' conftest.er1 >conftest.err
5417   rm -f conftest.er1
5418   cat conftest.err >&5
5419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420   (exit $ac_status); } >/dev/null && {
5421          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5422          test ! -s conftest.err
5423        }; then
5424   ac_header_preproc=yes
5425 else
5426   echo "$as_me: failed program was:" >&5
5427 sed 's/^/| /' conftest.$ac_ext >&5
5428
5429   ac_header_preproc=no
5430 fi
5431
5432 rm -f conftest.err conftest.$ac_ext
5433 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5434 echo "${ECHO_T}$ac_header_preproc" >&6; }
5435
5436 # So?  What about this header?
5437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5438   yes:no: )
5439     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5441     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5443     ac_header_preproc=yes
5444     ;;
5445   no:yes:* )
5446     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5448     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5449 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5450     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5451 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5452     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5453 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5454     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5456     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5457 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5458     ( cat <<\_ASBOX
5459 ## -------------------------------------------------- ##
5460 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
5461 ## -------------------------------------------------- ##
5462 _ASBOX
5463      ) | sed "s/^/$as_me: WARNING:     /" >&2
5464     ;;
5465 esac
5466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5469   echo $ECHO_N "(cached) $ECHO_C" >&6
5470 else
5471   eval "$as_ac_Header=\$ac_header_preproc"
5472 fi
5473 ac_res=`eval echo '${'$as_ac_Header'}'`
5474                { echo "$as_me:$LINENO: result: $ac_res" >&5
5475 echo "${ECHO_T}$ac_res" >&6; }
5476
5477 fi
5478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5479   cat >>confdefs.h <<_ACEOF
5480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5481 _ACEOF
5482
5483 fi
5484
5485 done
5486
5487 ac_ext=cpp
5488 ac_cpp='$CXXCPP $CPPFLAGS'
5489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5492 if test -z "$CXX"; then
5493   if test -n "$CCC"; then
5494     CXX=$CCC
5495   else
5496     if test -n "$ac_tool_prefix"; then
5497   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5498   do
5499     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5500 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5503 if test "${ac_cv_prog_CXX+set}" = set; then
5504   echo $ECHO_N "(cached) $ECHO_C" >&6
5505 else
5506   if test -n "$CXX"; then
5507   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5508 else
5509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510 for as_dir in $PATH
5511 do
5512   IFS=$as_save_IFS
5513   test -z "$as_dir" && as_dir=.
5514   for ac_exec_ext in '' $ac_executable_extensions; do
5515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5516     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5518     break 2
5519   fi
5520 done
5521 done
5522 IFS=$as_save_IFS
5523
5524 fi
5525 fi
5526 CXX=$ac_cv_prog_CXX
5527 if test -n "$CXX"; then
5528   { echo "$as_me:$LINENO: result: $CXX" >&5
5529 echo "${ECHO_T}$CXX" >&6; }
5530 else
5531   { echo "$as_me:$LINENO: result: no" >&5
5532 echo "${ECHO_T}no" >&6; }
5533 fi
5534
5535
5536     test -n "$CXX" && break
5537   done
5538 fi
5539 if test -z "$CXX"; then
5540   ac_ct_CXX=$CXX
5541   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5542 do
5543   # Extract the first word of "$ac_prog", so it can be a program name with args.
5544 set dummy $ac_prog; ac_word=$2
5545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5547 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5548   echo $ECHO_N "(cached) $ECHO_C" >&6
5549 else
5550   if test -n "$ac_ct_CXX"; then
5551   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5552 else
5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554 for as_dir in $PATH
5555 do
5556   IFS=$as_save_IFS
5557   test -z "$as_dir" && as_dir=.
5558   for ac_exec_ext in '' $ac_executable_extensions; do
5559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5560     ac_cv_prog_ac_ct_CXX="$ac_prog"
5561     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5562     break 2
5563   fi
5564 done
5565 done
5566 IFS=$as_save_IFS
5567
5568 fi
5569 fi
5570 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5571 if test -n "$ac_ct_CXX"; then
5572   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5573 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5574 else
5575   { echo "$as_me:$LINENO: result: no" >&5
5576 echo "${ECHO_T}no" >&6; }
5577 fi
5578
5579
5580   test -n "$ac_ct_CXX" && break
5581 done
5582
5583   if test "x$ac_ct_CXX" = x; then
5584     CXX="g++"
5585   else
5586     case $cross_compiling:$ac_tool_warned in
5587 yes:)
5588 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5589 whose name does not start with the host triplet.  If you think this
5590 configuration is useful to you, please write to autoconf@gnu.org." >&5
5591 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5592 whose name does not start with the host triplet.  If you think this
5593 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5594 ac_tool_warned=yes ;;
5595 esac
5596     CXX=$ac_ct_CXX
5597   fi
5598 fi
5599
5600   fi
5601 fi
5602 # Provide some information about the compiler.
5603 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5604 ac_compiler=`set X $ac_compile; echo $2`
5605 { (ac_try="$ac_compiler --version >&5"
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_compiler --version >&5") 2>&5
5612   ac_status=$?
5613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614   (exit $ac_status); }
5615 { (ac_try="$ac_compiler -v >&5"
5616 case "(($ac_try" in
5617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5618   *) ac_try_echo=$ac_try;;
5619 esac
5620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5621   (eval "$ac_compiler -v >&5") 2>&5
5622   ac_status=$?
5623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624   (exit $ac_status); }
5625 { (ac_try="$ac_compiler -V >&5"
5626 case "(($ac_try" in
5627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628   *) ac_try_echo=$ac_try;;
5629 esac
5630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5631   (eval "$ac_compiler -V >&5") 2>&5
5632   ac_status=$?
5633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634   (exit $ac_status); }
5635
5636 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5637 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5638 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5639   echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641   cat >conftest.$ac_ext <<_ACEOF
5642 /* confdefs.h.  */
5643 _ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h.  */
5647
5648 int
5649 main ()
5650 {
5651 #ifndef __GNUC__
5652        choke me
5653 #endif
5654
5655   ;
5656   return 0;
5657 }
5658 _ACEOF
5659 rm -f conftest.$ac_objext
5660 if { (ac_try="$ac_compile"
5661 case "(($ac_try" in
5662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5663   *) ac_try_echo=$ac_try;;
5664 esac
5665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5666   (eval "$ac_compile") 2>conftest.er1
5667   ac_status=$?
5668   grep -v '^ *+' conftest.er1 >conftest.err
5669   rm -f conftest.er1
5670   cat conftest.err >&5
5671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672   (exit $ac_status); } && {
5673          test -z "$ac_cxx_werror_flag" ||
5674          test ! -s conftest.err
5675        } && test -s conftest.$ac_objext; then
5676   ac_compiler_gnu=yes
5677 else
5678   echo "$as_me: failed program was:" >&5
5679 sed 's/^/| /' conftest.$ac_ext >&5
5680
5681         ac_compiler_gnu=no
5682 fi
5683
5684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5685 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5686
5687 fi
5688 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5689 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5690 GXX=`test $ac_compiler_gnu = yes && echo yes`
5691 ac_test_CXXFLAGS=${CXXFLAGS+set}
5692 ac_save_CXXFLAGS=$CXXFLAGS
5693 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5694 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5695 if test "${ac_cv_prog_cxx_g+set}" = set; then
5696   echo $ECHO_N "(cached) $ECHO_C" >&6
5697 else
5698   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5699    ac_cxx_werror_flag=yes
5700    ac_cv_prog_cxx_g=no
5701    CXXFLAGS="-g"
5702    cat >conftest.$ac_ext <<_ACEOF
5703 /* confdefs.h.  */
5704 _ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h.  */
5708
5709 int
5710 main ()
5711 {
5712
5713   ;
5714   return 0;
5715 }
5716 _ACEOF
5717 rm -f conftest.$ac_objext
5718 if { (ac_try="$ac_compile"
5719 case "(($ac_try" in
5720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721   *) ac_try_echo=$ac_try;;
5722 esac
5723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724   (eval "$ac_compile") 2>conftest.er1
5725   ac_status=$?
5726   grep -v '^ *+' conftest.er1 >conftest.err
5727   rm -f conftest.er1
5728   cat conftest.err >&5
5729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730   (exit $ac_status); } && {
5731          test -z "$ac_cxx_werror_flag" ||
5732          test ! -s conftest.err
5733        } && test -s conftest.$ac_objext; then
5734   ac_cv_prog_cxx_g=yes
5735 else
5736   echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5738
5739         CXXFLAGS=""
5740       cat >conftest.$ac_ext <<_ACEOF
5741 /* confdefs.h.  */
5742 _ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h.  */
5746
5747 int
5748 main ()
5749 {
5750
5751   ;
5752   return 0;
5753 }
5754 _ACEOF
5755 rm -f conftest.$ac_objext
5756 if { (ac_try="$ac_compile"
5757 case "(($ac_try" in
5758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5759   *) ac_try_echo=$ac_try;;
5760 esac
5761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5762   (eval "$ac_compile") 2>conftest.er1
5763   ac_status=$?
5764   grep -v '^ *+' conftest.er1 >conftest.err
5765   rm -f conftest.er1
5766   cat conftest.err >&5
5767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768   (exit $ac_status); } && {
5769          test -z "$ac_cxx_werror_flag" ||
5770          test ! -s conftest.err
5771        } && test -s conftest.$ac_objext; then
5772   :
5773 else
5774   echo "$as_me: failed program was:" >&5
5775 sed 's/^/| /' conftest.$ac_ext >&5
5776
5777         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5778          CXXFLAGS="-g"
5779          cat >conftest.$ac_ext <<_ACEOF
5780 /* confdefs.h.  */
5781 _ACEOF
5782 cat confdefs.h >>conftest.$ac_ext
5783 cat >>conftest.$ac_ext <<_ACEOF
5784 /* end confdefs.h.  */
5785
5786 int
5787 main ()
5788 {
5789
5790   ;
5791   return 0;
5792 }
5793 _ACEOF
5794 rm -f conftest.$ac_objext
5795 if { (ac_try="$ac_compile"
5796 case "(($ac_try" in
5797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798   *) ac_try_echo=$ac_try;;
5799 esac
5800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5801   (eval "$ac_compile") 2>conftest.er1
5802   ac_status=$?
5803   grep -v '^ *+' conftest.er1 >conftest.err
5804   rm -f conftest.er1
5805   cat conftest.err >&5
5806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807   (exit $ac_status); } && {
5808          test -z "$ac_cxx_werror_flag" ||
5809          test ! -s conftest.err
5810        } && test -s conftest.$ac_objext; then
5811   ac_cv_prog_cxx_g=yes
5812 else
5813   echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5815
5816
5817 fi
5818
5819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5820 fi
5821
5822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5823 fi
5824
5825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5826    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5827 fi
5828 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5829 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5830 if test "$ac_test_CXXFLAGS" = set; then
5831   CXXFLAGS=$ac_save_CXXFLAGS
5832 elif test $ac_cv_prog_cxx_g = yes; then
5833   if test "$GXX" = yes; then
5834     CXXFLAGS="-g -O2"
5835   else
5836     CXXFLAGS="-g"
5837   fi
5838 else
5839   if test "$GXX" = yes; then
5840     CXXFLAGS="-O2"
5841   else
5842     CXXFLAGS=
5843   fi
5844 fi
5845 ac_ext=cpp
5846 ac_cpp='$CXXCPP $CPPFLAGS'
5847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5850
5851 depcc="$CXX"  am_compiler_list=
5852
5853 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5854 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5855 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5856   echo $ECHO_N "(cached) $ECHO_C" >&6
5857 else
5858   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5859   # We make a subdir and do the tests there.  Otherwise we can end up
5860   # making bogus files that we don't know about and never remove.  For
5861   # instance it was reported that on HP-UX the gcc test will end up
5862   # making a dummy file named `D' -- because `-MD' means `put the output
5863   # in D'.
5864   mkdir conftest.dir
5865   # Copy depcomp to subdir because otherwise we won't find it if we're
5866   # using a relative directory.
5867   cp "$am_depcomp" conftest.dir
5868   cd conftest.dir
5869   # We will build objects and dependencies in a subdirectory because
5870   # it helps to detect inapplicable dependency modes.  For instance
5871   # both Tru64's cc and ICC support -MD to output dependencies as a
5872   # side effect of compilation, but ICC will put the dependencies in
5873   # the current directory while Tru64 will put them in the object
5874   # directory.
5875   mkdir sub
5876
5877   am_cv_CXX_dependencies_compiler_type=none
5878   if test "$am_compiler_list" = ""; then
5879      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5880   fi
5881   for depmode in $am_compiler_list; do
5882     # Setup a source with many dependencies, because some compilers
5883     # like to wrap large dependency lists on column 80 (with \), and
5884     # we should not choose a depcomp mode which is confused by this.
5885     #
5886     # We need to recreate these files for each test, as the compiler may
5887     # overwrite some of them when testing with obscure command lines.
5888     # This happens at least with the AIX C compiler.
5889     : > sub/conftest.c
5890     for i in 1 2 3 4 5 6; do
5891       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5892       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5893       # Solaris 8's {/usr,}/bin/sh.
5894       touch sub/conftst$i.h
5895     done
5896     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5897
5898     case $depmode in
5899     nosideeffect)
5900       # after this tag, mechanisms are not by side-effect, so they'll
5901       # only be used when explicitly requested
5902       if test "x$enable_dependency_tracking" = xyes; then
5903         continue
5904       else
5905         break
5906       fi
5907       ;;
5908     none) break ;;
5909     esac
5910     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5911     # mode.  It turns out that the SunPro C++ compiler does not properly
5912     # handle `-M -o', and we need to detect this.
5913     if depmode=$depmode \
5914        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5915        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5916        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5917          >/dev/null 2>conftest.err &&
5918        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5919        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5920        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5921       # icc doesn't choke on unknown options, it will just issue warnings
5922       # or remarks (even with -Werror).  So we grep stderr for any message
5923       # that says an option was ignored or not supported.
5924       # When given -MP, icc 7.0 and 7.1 complain thusly:
5925       #   icc: Command line warning: ignoring option '-M'; no argument required
5926       # The diagnosis changed in icc 8.0:
5927       #   icc: Command line remark: option '-MP' not supported
5928       if (grep 'ignoring option' conftest.err ||
5929           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5930         am_cv_CXX_dependencies_compiler_type=$depmode
5931         break
5932       fi
5933     fi
5934   done
5935
5936   cd ..
5937   rm -rf conftest.dir
5938 else
5939   am_cv_CXX_dependencies_compiler_type=none
5940 fi
5941
5942 fi
5943 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5944 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5945 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5946
5947
5948
5949 if
5950   test "x$enable_dependency_tracking" != xno \
5951   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5952   am__fastdepCXX_TRUE=
5953   am__fastdepCXX_FALSE='#'
5954 else
5955   am__fastdepCXX_TRUE='#'
5956   am__fastdepCXX_FALSE=
5957 fi
5958
5959
5960
5961
5962 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5963     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5964     (test "X$CXX" != "Xg++"))) ; then
5965   ac_ext=cpp
5966 ac_cpp='$CXXCPP $CPPFLAGS'
5967 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5968 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5969 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5970 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5971 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5972 if test -z "$CXXCPP"; then
5973   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5974   echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5976       # Double quotes because CXXCPP needs to be expanded
5977     for CXXCPP in "$CXX -E" "/lib/cpp"
5978     do
5979       ac_preproc_ok=false
5980 for ac_cxx_preproc_warn_flag in '' yes
5981 do
5982   # Use a header file that comes with gcc, so configuring glibc
5983   # with a fresh cross-compiler works.
5984   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5985   # <limits.h> exists even on freestanding compilers.
5986   # On the NeXT, cc -E runs the code through the compiler's parser,
5987   # not just through cpp. "Syntax error" is here to catch this case.
5988   cat >conftest.$ac_ext <<_ACEOF
5989 /* confdefs.h.  */
5990 _ACEOF
5991 cat confdefs.h >>conftest.$ac_ext
5992 cat >>conftest.$ac_ext <<_ACEOF
5993 /* end confdefs.h.  */
5994 #ifdef __STDC__
5995 # include <limits.h>
5996 #else
5997 # include <assert.h>
5998 #endif
5999                      Syntax error
6000 _ACEOF
6001 if { (ac_try="$ac_cpp conftest.$ac_ext"
6002 case "(($ac_try" in
6003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6004   *) ac_try_echo=$ac_try;;
6005 esac
6006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6008   ac_status=$?
6009   grep -v '^ *+' conftest.er1 >conftest.err
6010   rm -f conftest.er1
6011   cat conftest.err >&5
6012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013   (exit $ac_status); } >/dev/null && {
6014          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6015          test ! -s conftest.err
6016        }; then
6017   :
6018 else
6019   echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6021
6022   # Broken: fails on valid input.
6023 continue
6024 fi
6025
6026 rm -f conftest.err conftest.$ac_ext
6027
6028   # OK, works on sane cases.  Now check whether nonexistent headers
6029   # can be detected and how.
6030   cat >conftest.$ac_ext <<_ACEOF
6031 /* confdefs.h.  */
6032 _ACEOF
6033 cat confdefs.h >>conftest.$ac_ext
6034 cat >>conftest.$ac_ext <<_ACEOF
6035 /* end confdefs.h.  */
6036 #include <ac_nonexistent.h>
6037 _ACEOF
6038 if { (ac_try="$ac_cpp conftest.$ac_ext"
6039 case "(($ac_try" in
6040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6041   *) ac_try_echo=$ac_try;;
6042 esac
6043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6044   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6045   ac_status=$?
6046   grep -v '^ *+' conftest.er1 >conftest.err
6047   rm -f conftest.er1
6048   cat conftest.err >&5
6049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050   (exit $ac_status); } >/dev/null && {
6051          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6052          test ! -s conftest.err
6053        }; then
6054   # Broken: success on invalid input.
6055 continue
6056 else
6057   echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.$ac_ext >&5
6059
6060   # Passes both tests.
6061 ac_preproc_ok=:
6062 break
6063 fi
6064
6065 rm -f conftest.err conftest.$ac_ext
6066
6067 done
6068 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6069 rm -f conftest.err conftest.$ac_ext
6070 if $ac_preproc_ok; then
6071   break
6072 fi
6073
6074     done
6075     ac_cv_prog_CXXCPP=$CXXCPP
6076
6077 fi
6078   CXXCPP=$ac_cv_prog_CXXCPP
6079 else
6080   ac_cv_prog_CXXCPP=$CXXCPP
6081 fi
6082 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6083 echo "${ECHO_T}$CXXCPP" >&6; }
6084 ac_preproc_ok=false
6085 for ac_cxx_preproc_warn_flag in '' yes
6086 do
6087   # Use a header file that comes with gcc, so configuring glibc
6088   # with a fresh cross-compiler works.
6089   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6090   # <limits.h> exists even on freestanding compilers.
6091   # On the NeXT, cc -E runs the code through the compiler's parser,
6092   # not just through cpp. "Syntax error" is here to catch this case.
6093   cat >conftest.$ac_ext <<_ACEOF
6094 /* confdefs.h.  */
6095 _ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h.  */
6099 #ifdef __STDC__
6100 # include <limits.h>
6101 #else
6102 # include <assert.h>
6103 #endif
6104                      Syntax error
6105 _ACEOF
6106 if { (ac_try="$ac_cpp conftest.$ac_ext"
6107 case "(($ac_try" in
6108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6109   *) ac_try_echo=$ac_try;;
6110 esac
6111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6112   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6113   ac_status=$?
6114   grep -v '^ *+' conftest.er1 >conftest.err
6115   rm -f conftest.er1
6116   cat conftest.err >&5
6117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118   (exit $ac_status); } >/dev/null && {
6119          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6120          test ! -s conftest.err
6121        }; then
6122   :
6123 else
6124   echo "$as_me: failed program was:" >&5
6125 sed 's/^/| /' conftest.$ac_ext >&5
6126
6127   # Broken: fails on valid input.
6128 continue
6129 fi
6130
6131 rm -f conftest.err conftest.$ac_ext
6132
6133   # OK, works on sane cases.  Now check whether nonexistent headers
6134   # can be detected and how.
6135   cat >conftest.$ac_ext <<_ACEOF
6136 /* confdefs.h.  */
6137 _ACEOF
6138 cat confdefs.h >>conftest.$ac_ext
6139 cat >>conftest.$ac_ext <<_ACEOF
6140 /* end confdefs.h.  */
6141 #include <ac_nonexistent.h>
6142 _ACEOF
6143 if { (ac_try="$ac_cpp conftest.$ac_ext"
6144 case "(($ac_try" in
6145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6146   *) ac_try_echo=$ac_try;;
6147 esac
6148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6149   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6150   ac_status=$?
6151   grep -v '^ *+' conftest.er1 >conftest.err
6152   rm -f conftest.er1
6153   cat conftest.err >&5
6154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155   (exit $ac_status); } >/dev/null && {
6156          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6157          test ! -s conftest.err
6158        }; then
6159   # Broken: success on invalid input.
6160 continue
6161 else
6162   echo "$as_me: failed program was:" >&5
6163 sed 's/^/| /' conftest.$ac_ext >&5
6164
6165   # Passes both tests.
6166 ac_preproc_ok=:
6167 break
6168 fi
6169
6170 rm -f conftest.err conftest.$ac_ext
6171
6172 done
6173 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6174 rm -f conftest.err conftest.$ac_ext
6175 if $ac_preproc_ok; then
6176   :
6177 else
6178   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6179 See \`config.log' for more details." >&5
6180 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6181 See \`config.log' for more details." >&2;}
6182    { (exit 1); exit 1; }; }
6183 fi
6184
6185 ac_ext=cpp
6186 ac_cpp='$CXXCPP $CPPFLAGS'
6187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6190
6191 fi
6192
6193
6194
6195
6196
6197 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6198
6199 # find the maximum length of command line arguments
6200 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6201 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6202 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6203   echo $ECHO_N "(cached) $ECHO_C" >&6
6204 else
6205     i=0
6206   teststring="ABCD"
6207
6208   case $build_os in
6209   msdosdjgpp*)
6210     # On DJGPP, this test can blow up pretty badly due to problems in libc
6211     # (any single argument exceeding 2000 bytes causes a buffer overrun
6212     # during glob expansion).  Even if it were fixed, the result of this
6213     # check would be larger than it should be.
6214     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6215     ;;
6216
6217   gnu*)
6218     # Under GNU Hurd, this test is not required because there is
6219     # no limit to the length of command line arguments.
6220     # Libtool will interpret -1 as no limit whatsoever
6221     lt_cv_sys_max_cmd_len=-1;
6222     ;;
6223
6224   cygwin* | mingw*)
6225     # On Win9x/ME, this test blows up -- it succeeds, but takes
6226     # about 5 minutes as the teststring grows exponentially.
6227     # Worse, since 9x/ME are not pre-emptively multitasking,
6228     # you end up with a "frozen" computer, even though with patience
6229     # the test eventually succeeds (with a max line length of 256k).
6230     # Instead, let's just punt: use the minimum linelength reported by
6231     # all of the supported platforms: 8192 (on NT/2K/XP).
6232     lt_cv_sys_max_cmd_len=8192;
6233     ;;
6234
6235   amigaos*)
6236     # On AmigaOS with pdksh, this test takes hours, literally.
6237     # So we just punt and use a minimum line length of 8192.
6238     lt_cv_sys_max_cmd_len=8192;
6239     ;;
6240
6241   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6242     # This has been around since 386BSD, at least.  Likely further.
6243     if test -x /sbin/sysctl; then
6244       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6245     elif test -x /usr/sbin/sysctl; then
6246       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6247     else
6248       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6249     fi
6250     # And add a safety zone
6251     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6252     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6253     ;;
6254
6255   interix*)
6256     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6257     lt_cv_sys_max_cmd_len=196608
6258     ;;
6259
6260   osf*)
6261     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6262     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6263     # nice to cause kernel panics so lets avoid the loop below.
6264     # First set a reasonable default.
6265     lt_cv_sys_max_cmd_len=16384
6266     #
6267     if test -x /sbin/sysconfig; then
6268       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6269         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6270       esac
6271     fi
6272     ;;
6273   sco3.2v5*)
6274     lt_cv_sys_max_cmd_len=102400
6275     ;;
6276   sysv5* | sco5v6* | sysv4.2uw2*)
6277     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6278     if test -n "$kargmax"; then
6279       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6280     else
6281       lt_cv_sys_max_cmd_len=32768
6282     fi
6283     ;;
6284   *)
6285     # If test is not a shell built-in, we'll probably end up computing a
6286     # maximum length that is only half of the actual maximum length, but
6287     # we can't tell.
6288     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6289     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6290                = "XX$teststring") >/dev/null 2>&1 &&
6291             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6292             lt_cv_sys_max_cmd_len=$new_result &&
6293             test $i != 17 # 1/2 MB should be enough
6294     do
6295       i=`expr $i + 1`
6296       teststring=$teststring$teststring
6297     done
6298     teststring=
6299     # Add a significant safety factor because C++ compilers can tack on massive
6300     # amounts of additional arguments before passing them to the linker.
6301     # It appears as though 1/2 is a usable value.
6302     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6303     ;;
6304   esac
6305
6306 fi
6307
6308 if test -n $lt_cv_sys_max_cmd_len ; then
6309   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6310 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6311 else
6312   { echo "$as_me:$LINENO: result: none" >&5
6313 echo "${ECHO_T}none" >&6; }
6314 fi
6315
6316
6317
6318
6319 # Check for command to grab the raw symbol name followed by C symbol from nm.
6320 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6321 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6322 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6323   echo $ECHO_N "(cached) $ECHO_C" >&6
6324 else
6325
6326 # These are sane defaults that work on at least a few old systems.
6327 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6328
6329 # Character class describing NM global symbol codes.
6330 symcode='[BCDEGRST]'
6331
6332 # Regexp to match symbols that can be accessed directly from C.
6333 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6334
6335 # Transform an extracted symbol line into a proper C declaration
6336 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6337
6338 # Transform an extracted symbol line into symbol name and symbol address
6339 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'"
6340
6341 # Define system-specific variables.
6342 case $host_os in
6343 aix*)
6344   symcode='[BCDT]'
6345   ;;
6346 cygwin* | mingw* | pw32*)
6347   symcode='[ABCDGISTW]'
6348   ;;
6349 hpux*) # Its linker distinguishes data from code symbols
6350   if test "$host_cpu" = ia64; then
6351     symcode='[ABCDEGRST]'
6352   fi
6353   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6354   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'"
6355   ;;
6356 linux* | k*bsd*-gnu)
6357   if test "$host_cpu" = ia64; then
6358     symcode='[ABCDGIRSTW]'
6359     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6360     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'"
6361   fi
6362   ;;
6363 irix* | nonstopux*)
6364   symcode='[BCDEGRST]'
6365   ;;
6366 osf*)
6367   symcode='[BCDEGQRST]'
6368   ;;
6369 solaris*)
6370   symcode='[BDRT]'
6371   ;;
6372 sco3.2v5*)
6373   symcode='[DT]'
6374   ;;
6375 sysv4.2uw2*)
6376   symcode='[DT]'
6377   ;;
6378 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6379   symcode='[ABDT]'
6380   ;;
6381 sysv4)
6382   symcode='[DFNSTU]'
6383   ;;
6384 esac
6385
6386 # Handle CRLF in mingw tool chain
6387 opt_cr=
6388 case $build_os in
6389 mingw*)
6390   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6391   ;;
6392 esac
6393
6394 # If we're using GNU nm, then use its standard symbol codes.
6395 case `$NM -V 2>&1` in
6396 *GNU* | *'with BFD'*)
6397   symcode='[ABCDGIRSTW]' ;;
6398 esac
6399
6400 # Try without a prefix undercore, then with it.
6401 for ac_symprfx in "" "_"; do
6402
6403   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6404   symxfrm="\\1 $ac_symprfx\\2 \\2"
6405
6406   # Write the raw and C identifiers.
6407   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6408
6409   # Check to see that the pipe works correctly.
6410   pipe_works=no
6411
6412   rm -f conftest*
6413   cat > conftest.$ac_ext <<EOF
6414 #ifdef __cplusplus
6415 extern "C" {
6416 #endif
6417 char nm_test_var;
6418 void nm_test_func(){}
6419 #ifdef __cplusplus
6420 }
6421 #endif
6422 int main(){nm_test_var='a';nm_test_func();return(0);}
6423 EOF
6424
6425   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6426   (eval $ac_compile) 2>&5
6427   ac_status=$?
6428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429   (exit $ac_status); }; then
6430     # Now try to grab the symbols.
6431     nlist=conftest.nm
6432     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6433   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6434   ac_status=$?
6435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436   (exit $ac_status); } && test -s "$nlist"; then
6437       # Try sorting and uniquifying the output.
6438       if sort "$nlist" | uniq > "$nlist"T; then
6439         mv -f "$nlist"T "$nlist"
6440       else
6441         rm -f "$nlist"T
6442       fi
6443
6444       # Make sure that we snagged all the symbols we need.
6445       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6446         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6447           cat <<EOF > conftest.$ac_ext
6448 #ifdef __cplusplus
6449 extern "C" {
6450 #endif
6451
6452 EOF
6453           # Now generate the symbol file.
6454           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6455
6456           cat <<EOF >> conftest.$ac_ext
6457 #if defined (__STDC__) && __STDC__
6458 # define lt_ptr_t void *
6459 #else
6460 # define lt_ptr_t char *
6461 # define const
6462 #endif
6463
6464 /* The mapping between symbol names and symbols. */
6465 const struct {
6466   const char *name;
6467   lt_ptr_t address;
6468 }
6469 lt_preloaded_symbols[] =
6470 {
6471 EOF
6472           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6473           cat <<\EOF >> conftest.$ac_ext
6474   {0, (lt_ptr_t) 0}
6475 };
6476
6477 #ifdef __cplusplus
6478 }
6479 #endif
6480 EOF
6481           # Now try linking the two files.
6482           mv conftest.$ac_objext conftstm.$ac_objext
6483           lt_save_LIBS="$LIBS"
6484           lt_save_CFLAGS="$CFLAGS"
6485           LIBS="conftstm.$ac_objext"
6486           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6487           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6488   (eval $ac_link) 2>&5
6489   ac_status=$?
6490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6492             pipe_works=yes
6493           fi
6494           LIBS="$lt_save_LIBS"
6495           CFLAGS="$lt_save_CFLAGS"
6496         else
6497           echo "cannot find nm_test_func in $nlist" >&5
6498         fi
6499       else
6500         echo "cannot find nm_test_var in $nlist" >&5
6501       fi
6502     else
6503       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6504     fi
6505   else
6506     echo "$progname: failed program was:" >&5
6507     cat conftest.$ac_ext >&5
6508   fi
6509   rm -f conftest* conftst*
6510
6511   # Do not use the global_symbol_pipe unless it works.
6512   if test "$pipe_works" = yes; then
6513     break
6514   else
6515     lt_cv_sys_global_symbol_pipe=
6516   fi
6517 done
6518
6519 fi
6520
6521 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6522   lt_cv_sys_global_symbol_to_cdecl=
6523 fi
6524 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6525   { echo "$as_me:$LINENO: result: failed" >&5
6526 echo "${ECHO_T}failed" >&6; }
6527 else
6528   { echo "$as_me:$LINENO: result: ok" >&5
6529 echo "${ECHO_T}ok" >&6; }
6530 fi
6531
6532 { echo "$as_me:$LINENO: checking for objdir" >&5
6533 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6534 if test "${lt_cv_objdir+set}" = set; then
6535   echo $ECHO_N "(cached) $ECHO_C" >&6
6536 else
6537   rm -f .libs 2>/dev/null
6538 mkdir .libs 2>/dev/null
6539 if test -d .libs; then
6540   lt_cv_objdir=.libs
6541 else
6542   # MS-DOS does not allow filenames that begin with a dot.
6543   lt_cv_objdir=_libs
6544 fi
6545 rmdir .libs 2>/dev/null
6546 fi
6547 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6548 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6549 objdir=$lt_cv_objdir
6550
6551
6552
6553
6554
6555 case $host_os in
6556 aix3*)
6557   # AIX sometimes has problems with the GCC collect2 program.  For some
6558   # reason, if we set the COLLECT_NAMES environment variable, the problems
6559   # vanish in a puff of smoke.
6560   if test "X${COLLECT_NAMES+set}" != Xset; then
6561     COLLECT_NAMES=
6562     export COLLECT_NAMES
6563   fi
6564   ;;
6565 esac
6566
6567 # Sed substitution that helps us do robust quoting.  It backslashifies
6568 # metacharacters that are still active within double-quoted strings.
6569 Xsed='sed -e 1s/^X//'
6570 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6571
6572 # Same as above, but do not quote variable references.
6573 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6574
6575 # Sed substitution to delay expansion of an escaped shell variable in a
6576 # double_quote_subst'ed string.
6577 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6578
6579 # Sed substitution to avoid accidental globbing in evaled expressions
6580 no_glob_subst='s/\*/\\\*/g'
6581
6582 # Constants:
6583 rm="rm -f"
6584
6585 # Global variables:
6586 default_ofile=libtool
6587 can_build_shared=yes
6588
6589 # All known linkers require a `.a' archive for static linking (except MSVC,
6590 # which needs '.lib').
6591 libext=a
6592 ltmain="$ac_aux_dir/ltmain.sh"
6593 ofile="$default_ofile"
6594 with_gnu_ld="$lt_cv_prog_gnu_ld"
6595
6596 if test -n "$ac_tool_prefix"; then
6597   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6598 set dummy ${ac_tool_prefix}ar; ac_word=$2
6599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6601 if test "${ac_cv_prog_AR+set}" = set; then
6602   echo $ECHO_N "(cached) $ECHO_C" >&6
6603 else
6604   if test -n "$AR"; then
6605   ac_cv_prog_AR="$AR" # Let the user override the test.
6606 else
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 for as_dir in $PATH
6609 do
6610   IFS=$as_save_IFS
6611   test -z "$as_dir" && as_dir=.
6612   for ac_exec_ext in '' $ac_executable_extensions; do
6613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6614     ac_cv_prog_AR="${ac_tool_prefix}ar"
6615     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6616     break 2
6617   fi
6618 done
6619 done
6620 IFS=$as_save_IFS
6621
6622 fi
6623 fi
6624 AR=$ac_cv_prog_AR
6625 if test -n "$AR"; then
6626   { echo "$as_me:$LINENO: result: $AR" >&5
6627 echo "${ECHO_T}$AR" >&6; }
6628 else
6629   { echo "$as_me:$LINENO: result: no" >&5
6630 echo "${ECHO_T}no" >&6; }
6631 fi
6632
6633
6634 fi
6635 if test -z "$ac_cv_prog_AR"; then
6636   ac_ct_AR=$AR
6637   # Extract the first word of "ar", so it can be a program name with args.
6638 set dummy ar; ac_word=$2
6639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6641 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6642   echo $ECHO_N "(cached) $ECHO_C" >&6
6643 else
6644   if test -n "$ac_ct_AR"; then
6645   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6646 else
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 for as_dir in $PATH
6649 do
6650   IFS=$as_save_IFS
6651   test -z "$as_dir" && as_dir=.
6652   for ac_exec_ext in '' $ac_executable_extensions; do
6653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6654     ac_cv_prog_ac_ct_AR="ar"
6655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6656     break 2
6657   fi
6658 done
6659 done
6660 IFS=$as_save_IFS
6661
6662 fi
6663 fi
6664 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6665 if test -n "$ac_ct_AR"; then
6666   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6667 echo "${ECHO_T}$ac_ct_AR" >&6; }
6668 else
6669   { echo "$as_me:$LINENO: result: no" >&5
6670 echo "${ECHO_T}no" >&6; }
6671 fi
6672
6673   if test "x$ac_ct_AR" = x; then
6674     AR="false"
6675   else
6676     case $cross_compiling:$ac_tool_warned in
6677 yes:)
6678 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6679 whose name does not start with the host triplet.  If you think this
6680 configuration is useful to you, please write to autoconf@gnu.org." >&5
6681 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6682 whose name does not start with the host triplet.  If you think this
6683 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6684 ac_tool_warned=yes ;;
6685 esac
6686     AR=$ac_ct_AR
6687   fi
6688 else
6689   AR="$ac_cv_prog_AR"
6690 fi
6691
6692 if test -n "$ac_tool_prefix"; then
6693   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6694 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6697 if test "${ac_cv_prog_RANLIB+set}" = set; then
6698   echo $ECHO_N "(cached) $ECHO_C" >&6
6699 else
6700   if test -n "$RANLIB"; then
6701   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6702 else
6703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704 for as_dir in $PATH
6705 do
6706   IFS=$as_save_IFS
6707   test -z "$as_dir" && as_dir=.
6708   for ac_exec_ext in '' $ac_executable_extensions; do
6709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6710     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6712     break 2
6713   fi
6714 done
6715 done
6716 IFS=$as_save_IFS
6717
6718 fi
6719 fi
6720 RANLIB=$ac_cv_prog_RANLIB
6721 if test -n "$RANLIB"; then
6722   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6723 echo "${ECHO_T}$RANLIB" >&6; }
6724 else
6725   { echo "$as_me:$LINENO: result: no" >&5
6726 echo "${ECHO_T}no" >&6; }
6727 fi
6728
6729
6730 fi
6731 if test -z "$ac_cv_prog_RANLIB"; then
6732   ac_ct_RANLIB=$RANLIB
6733   # Extract the first word of "ranlib", so it can be a program name with args.
6734 set dummy ranlib; ac_word=$2
6735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6737 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6738   echo $ECHO_N "(cached) $ECHO_C" >&6
6739 else
6740   if test -n "$ac_ct_RANLIB"; then
6741   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6742 else
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 for as_dir in $PATH
6745 do
6746   IFS=$as_save_IFS
6747   test -z "$as_dir" && as_dir=.
6748   for ac_exec_ext in '' $ac_executable_extensions; do
6749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6750     ac_cv_prog_ac_ct_RANLIB="ranlib"
6751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6752     break 2
6753   fi
6754 done
6755 done
6756 IFS=$as_save_IFS
6757
6758 fi
6759 fi
6760 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6761 if test -n "$ac_ct_RANLIB"; then
6762   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6763 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6764 else
6765   { echo "$as_me:$LINENO: result: no" >&5
6766 echo "${ECHO_T}no" >&6; }
6767 fi
6768
6769   if test "x$ac_ct_RANLIB" = x; then
6770     RANLIB=":"
6771   else
6772     case $cross_compiling:$ac_tool_warned in
6773 yes:)
6774 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6775 whose name does not start with the host triplet.  If you think this
6776 configuration is useful to you, please write to autoconf@gnu.org." >&5
6777 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6778 whose name does not start with the host triplet.  If you think this
6779 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6780 ac_tool_warned=yes ;;
6781 esac
6782     RANLIB=$ac_ct_RANLIB
6783   fi
6784 else
6785   RANLIB="$ac_cv_prog_RANLIB"
6786 fi
6787
6788 if test -n "$ac_tool_prefix"; then
6789   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6790 set dummy ${ac_tool_prefix}strip; ac_word=$2
6791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6793 if test "${ac_cv_prog_STRIP+set}" = set; then
6794   echo $ECHO_N "(cached) $ECHO_C" >&6
6795 else
6796   if test -n "$STRIP"; then
6797   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6798 else
6799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800 for as_dir in $PATH
6801 do
6802   IFS=$as_save_IFS
6803   test -z "$as_dir" && as_dir=.
6804   for ac_exec_ext in '' $ac_executable_extensions; do
6805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6806     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6807     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6808     break 2
6809   fi
6810 done
6811 done
6812 IFS=$as_save_IFS
6813
6814 fi
6815 fi
6816 STRIP=$ac_cv_prog_STRIP
6817 if test -n "$STRIP"; then
6818   { echo "$as_me:$LINENO: result: $STRIP" >&5
6819 echo "${ECHO_T}$STRIP" >&6; }
6820 else
6821   { echo "$as_me:$LINENO: result: no" >&5
6822 echo "${ECHO_T}no" >&6; }
6823 fi
6824
6825
6826 fi
6827 if test -z "$ac_cv_prog_STRIP"; then
6828   ac_ct_STRIP=$STRIP
6829   # Extract the first word of "strip", so it can be a program name with args.
6830 set dummy strip; ac_word=$2
6831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6833 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6834   echo $ECHO_N "(cached) $ECHO_C" >&6
6835 else
6836   if test -n "$ac_ct_STRIP"; then
6837   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6838 else
6839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840 for as_dir in $PATH
6841 do
6842   IFS=$as_save_IFS
6843   test -z "$as_dir" && as_dir=.
6844   for ac_exec_ext in '' $ac_executable_extensions; do
6845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6846     ac_cv_prog_ac_ct_STRIP="strip"
6847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6848     break 2
6849   fi
6850 done
6851 done
6852 IFS=$as_save_IFS
6853
6854 fi
6855 fi
6856 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6857 if test -n "$ac_ct_STRIP"; then
6858   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6859 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6860 else
6861   { echo "$as_me:$LINENO: result: no" >&5
6862 echo "${ECHO_T}no" >&6; }
6863 fi
6864
6865   if test "x$ac_ct_STRIP" = x; then
6866     STRIP=":"
6867   else
6868     case $cross_compiling:$ac_tool_warned in
6869 yes:)
6870 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6871 whose name does not start with the host triplet.  If you think this
6872 configuration is useful to you, please write to autoconf@gnu.org." >&5
6873 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6874 whose name does not start with the host triplet.  If you think this
6875 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6876 ac_tool_warned=yes ;;
6877 esac
6878     STRIP=$ac_ct_STRIP
6879   fi
6880 else
6881   STRIP="$ac_cv_prog_STRIP"
6882 fi
6883
6884
6885 old_CC="$CC"
6886 old_CFLAGS="$CFLAGS"
6887
6888 # Set sane defaults for various variables
6889 test -z "$AR" && AR=ar
6890 test -z "$AR_FLAGS" && AR_FLAGS=cru
6891 test -z "$AS" && AS=as
6892 test -z "$CC" && CC=cc
6893 test -z "$LTCC" && LTCC=$CC
6894 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6895 test -z "$DLLTOOL" && DLLTOOL=dlltool
6896 test -z "$LD" && LD=ld
6897 test -z "$LN_S" && LN_S="ln -s"
6898 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6899 test -z "$NM" && NM=nm
6900 test -z "$SED" && SED=sed
6901 test -z "$OBJDUMP" && OBJDUMP=objdump
6902 test -z "$RANLIB" && RANLIB=:
6903 test -z "$STRIP" && STRIP=:
6904 test -z "$ac_objext" && ac_objext=o
6905
6906 # Determine commands to create old-style static archives.
6907 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6908 old_postinstall_cmds='chmod 644 $oldlib'
6909 old_postuninstall_cmds=
6910
6911 if test -n "$RANLIB"; then
6912   case $host_os in
6913   openbsd*)
6914     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6915     ;;
6916   *)
6917     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6918     ;;
6919   esac
6920   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6921 fi
6922
6923 for cc_temp in $compiler""; do
6924   case $cc_temp in
6925     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6926     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6927     \-*) ;;
6928     *) break;;
6929   esac
6930 done
6931 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6932
6933
6934 # Only perform the check for file, if the check method requires it
6935 case $deplibs_check_method in
6936 file_magic*)
6937   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6938     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6939 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6940 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6941   echo $ECHO_N "(cached) $ECHO_C" >&6
6942 else
6943   case $MAGIC_CMD in
6944 [\\/*] |  ?:[\\/]*)
6945   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6946   ;;
6947 *)
6948   lt_save_MAGIC_CMD="$MAGIC_CMD"
6949   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6950   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6951   for ac_dir in $ac_dummy; do
6952     IFS="$lt_save_ifs"
6953     test -z "$ac_dir" && ac_dir=.
6954     if test -f $ac_dir/${ac_tool_prefix}file; then
6955       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6956       if test -n "$file_magic_test_file"; then
6957         case $deplibs_check_method in
6958         "file_magic "*)
6959           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6960           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6961           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6962             $EGREP "$file_magic_regex" > /dev/null; then
6963             :
6964           else
6965             cat <<EOF 1>&2
6966
6967 *** Warning: the command libtool uses to detect shared libraries,
6968 *** $file_magic_cmd, produces output that libtool cannot recognize.
6969 *** The result is that libtool may fail to recognize shared libraries
6970 *** as such.  This will affect the creation of libtool libraries that
6971 *** depend on shared libraries, but programs linked with such libtool
6972 *** libraries will work regardless of this problem.  Nevertheless, you
6973 *** may want to report the problem to your system manager and/or to
6974 *** bug-libtool@gnu.org
6975
6976 EOF
6977           fi ;;
6978         esac
6979       fi
6980       break
6981     fi
6982   done
6983   IFS="$lt_save_ifs"
6984   MAGIC_CMD="$lt_save_MAGIC_CMD"
6985   ;;
6986 esac
6987 fi
6988
6989 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6990 if test -n "$MAGIC_CMD"; then
6991   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6992 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6993 else
6994   { echo "$as_me:$LINENO: result: no" >&5
6995 echo "${ECHO_T}no" >&6; }
6996 fi
6997
6998 if test -z "$lt_cv_path_MAGIC_CMD"; then
6999   if test -n "$ac_tool_prefix"; then
7000     { echo "$as_me:$LINENO: checking for file" >&5
7001 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7002 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7003   echo $ECHO_N "(cached) $ECHO_C" >&6
7004 else
7005   case $MAGIC_CMD in
7006 [\\/*] |  ?:[\\/]*)
7007   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7008   ;;
7009 *)
7010   lt_save_MAGIC_CMD="$MAGIC_CMD"
7011   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7012   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7013   for ac_dir in $ac_dummy; do
7014     IFS="$lt_save_ifs"
7015     test -z "$ac_dir" && ac_dir=.
7016     if test -f $ac_dir/file; then
7017       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7018       if test -n "$file_magic_test_file"; then
7019         case $deplibs_check_method in
7020         "file_magic "*)
7021           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7022           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7023           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7024             $EGREP "$file_magic_regex" > /dev/null; then
7025             :
7026           else
7027             cat <<EOF 1>&2
7028
7029 *** Warning: the command libtool uses to detect shared libraries,
7030 *** $file_magic_cmd, produces output that libtool cannot recognize.
7031 *** The result is that libtool may fail to recognize shared libraries
7032 *** as such.  This will affect the creation of libtool libraries that
7033 *** depend on shared libraries, but programs linked with such libtool
7034 *** libraries will work regardless of this problem.  Nevertheless, you
7035 *** may want to report the problem to your system manager and/or to
7036 *** bug-libtool@gnu.org
7037
7038 EOF
7039           fi ;;
7040         esac
7041       fi
7042       break
7043     fi
7044   done
7045   IFS="$lt_save_ifs"
7046   MAGIC_CMD="$lt_save_MAGIC_CMD"
7047   ;;
7048 esac
7049 fi
7050
7051 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7052 if test -n "$MAGIC_CMD"; then
7053   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7054 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7055 else
7056   { echo "$as_me:$LINENO: result: no" >&5
7057 echo "${ECHO_T}no" >&6; }
7058 fi
7059
7060   else
7061     MAGIC_CMD=:
7062   fi
7063 fi
7064
7065   fi
7066   ;;
7067 esac
7068
7069 enable_dlopen=no
7070 enable_win32_dll=yes
7071
7072 # Check whether --enable-libtool-lock was given.
7073 if test "${enable_libtool_lock+set}" = set; then
7074   enableval=$enable_libtool_lock;
7075 fi
7076
7077 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7078
7079
7080 # Check whether --with-pic was given.
7081 if test "${with_pic+set}" = set; then
7082   withval=$with_pic; pic_mode="$withval"
7083 else
7084   pic_mode=default
7085 fi
7086
7087 test -z "$pic_mode" && pic_mode=default
7088
7089 # Use C for the default configuration in the libtool script
7090 tagname=
7091 lt_save_CC="$CC"
7092 ac_ext=c
7093 ac_cpp='$CPP $CPPFLAGS'
7094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7097
7098
7099 # Source file extension for C test sources.
7100 ac_ext=c
7101
7102 # Object file extension for compiled C test sources.
7103 objext=o
7104 objext=$objext
7105
7106 # Code to be used in simple compile tests
7107 lt_simple_compile_test_code="int some_variable = 0;\n"
7108
7109 # Code to be used in simple link tests
7110 lt_simple_link_test_code='int main(){return(0);}\n'
7111
7112
7113 # If no C compiler was specified, use CC.
7114 LTCC=${LTCC-"$CC"}
7115
7116 # If no C compiler flags were specified, use CFLAGS.
7117 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7118
7119 # Allow CC to be a program name with arguments.
7120 compiler=$CC
7121
7122
7123 # save warnings/boilerplate of simple test code
7124 ac_outfile=conftest.$ac_objext
7125 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7126 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7127 _lt_compiler_boilerplate=`cat conftest.err`
7128 $rm conftest*
7129
7130 ac_outfile=conftest.$ac_objext
7131 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7132 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7133 _lt_linker_boilerplate=`cat conftest.err`
7134 $rm conftest*
7135
7136
7137
7138 lt_prog_compiler_no_builtin_flag=
7139
7140 if test "$GCC" = yes; then
7141   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7142
7143
7144 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7145 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7146 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7147   echo $ECHO_N "(cached) $ECHO_C" >&6
7148 else
7149   lt_cv_prog_compiler_rtti_exceptions=no
7150   ac_outfile=conftest.$ac_objext
7151    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7152    lt_compiler_flag="-fno-rtti -fno-exceptions"
7153    # Insert the option either (1) after the last *FLAGS variable, or
7154    # (2) before a word containing "conftest.", or (3) at the end.
7155    # Note that $ac_compile itself does not contain backslashes and begins
7156    # with a dollar sign (not a hyphen), so the echo should work correctly.
7157    # The option is referenced via a variable to avoid confusing sed.
7158    lt_compile=`echo "$ac_compile" | $SED \
7159    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7160    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7161    -e 's:$: $lt_compiler_flag:'`
7162    (eval echo "\"\$as_me:7162: $lt_compile\"" >&5)
7163    (eval "$lt_compile" 2>conftest.err)
7164    ac_status=$?
7165    cat conftest.err >&5
7166    echo "$as_me:7166: \$? = $ac_status" >&5
7167    if (exit $ac_status) && test -s "$ac_outfile"; then
7168      # The compiler can only warn and ignore the option if not recognized
7169      # So say no if there are warnings other than the usual output.
7170      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7171      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7172      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7173        lt_cv_prog_compiler_rtti_exceptions=yes
7174      fi
7175    fi
7176    $rm conftest*
7177
7178 fi
7179 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7180 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7181
7182 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7183     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7184 else
7185     :
7186 fi
7187
7188 fi
7189
7190 lt_prog_compiler_wl=
7191 lt_prog_compiler_pic=
7192 lt_prog_compiler_static=
7193
7194 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7195 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7196
7197   if test "$GCC" = yes; then
7198     lt_prog_compiler_wl='-Wl,'
7199     lt_prog_compiler_static='-static'
7200
7201     case $host_os in
7202       aix*)
7203       # All AIX code is PIC.
7204       if test "$host_cpu" = ia64; then
7205         # AIX 5 now supports IA64 processor
7206         lt_prog_compiler_static='-Bstatic'
7207       fi
7208       ;;
7209
7210     amigaos*)
7211       # FIXME: we need at least 68020 code to build shared libraries, but
7212       # adding the `-m68020' flag to GCC prevents building anything better,
7213       # like `-m68040'.
7214       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7215       ;;
7216
7217     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7218       # PIC is the default for these OSes.
7219       ;;
7220
7221     mingw* | pw32* | os2*)
7222       # This hack is so that the source file can tell whether it is being
7223       # built for inclusion in a dll (and should export symbols for example).
7224       lt_prog_compiler_pic='-DDLL_EXPORT'
7225       ;;
7226
7227     darwin* | rhapsody*)
7228       # PIC is the default on this platform
7229       # Common symbols not allowed in MH_DYLIB files
7230       lt_prog_compiler_pic='-fno-common'
7231       ;;
7232
7233     interix3*)
7234       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7235       # Instead, we relocate shared libraries at runtime.
7236       ;;
7237
7238     msdosdjgpp*)
7239       # Just because we use GCC doesn't mean we suddenly get shared libraries
7240       # on systems that don't support them.
7241       lt_prog_compiler_can_build_shared=no
7242       enable_shared=no
7243       ;;
7244
7245     sysv4*MP*)
7246       if test -d /usr/nec; then
7247         lt_prog_compiler_pic=-Kconform_pic
7248       fi
7249       ;;
7250
7251     hpux*)
7252       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7253       # not for PA HP-UX.
7254       case $host_cpu in
7255       hppa*64*|ia64*)
7256         # +Z the default
7257         ;;
7258       *)
7259         lt_prog_compiler_pic='-fPIC'
7260         ;;
7261       esac
7262       ;;
7263
7264     *)
7265       lt_prog_compiler_pic='-fPIC'
7266       ;;
7267     esac
7268   else
7269     # PORTME Check for flag to pass linker flags through the system compiler.
7270     case $host_os in
7271     aix*)
7272       lt_prog_compiler_wl='-Wl,'
7273       if test "$host_cpu" = ia64; then
7274         # AIX 5 now supports IA64 processor
7275         lt_prog_compiler_static='-Bstatic'
7276       else
7277         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7278       fi
7279       ;;
7280       darwin*)
7281         # PIC is the default on this platform
7282         # Common symbols not allowed in MH_DYLIB files
7283        case $cc_basename in
7284          xlc*)
7285          lt_prog_compiler_pic='-qnocommon'
7286          lt_prog_compiler_wl='-Wl,'
7287          ;;
7288        esac
7289        ;;
7290
7291     mingw* | pw32* | os2*)
7292       # This hack is so that the source file can tell whether it is being
7293       # built for inclusion in a dll (and should export symbols for example).
7294       lt_prog_compiler_pic='-DDLL_EXPORT'
7295       ;;
7296
7297     hpux9* | hpux10* | hpux11*)
7298       lt_prog_compiler_wl='-Wl,'
7299       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7300       # not for PA HP-UX.
7301       case $host_cpu in
7302       hppa*64*|ia64*)
7303         # +Z the default
7304         ;;
7305       *)
7306         lt_prog_compiler_pic='+Z'
7307         ;;
7308       esac
7309       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7310       lt_prog_compiler_static='${wl}-a ${wl}archive'
7311       ;;
7312
7313     irix5* | irix6* | nonstopux*)
7314       lt_prog_compiler_wl='-Wl,'
7315       # PIC (with -KPIC) is the default.
7316       lt_prog_compiler_static='-non_shared'
7317       ;;
7318
7319     newsos6)
7320       lt_prog_compiler_pic='-KPIC'
7321       lt_prog_compiler_static='-Bstatic'
7322       ;;
7323
7324     linux* | k*bsd*-gnu)
7325       case $cc_basename in
7326       icc* | ecc*)
7327         lt_prog_compiler_wl='-Wl,'
7328         lt_prog_compiler_pic='-KPIC'
7329         lt_prog_compiler_static='-static'
7330         ;;
7331       pgcc* | pgf77* | pgf90* | pgf95*)
7332         # Portland Group compilers (*not* the Pentium gcc compiler,
7333         # which looks to be a dead project)
7334         lt_prog_compiler_wl='-Wl,'
7335         lt_prog_compiler_pic='-fpic'
7336         lt_prog_compiler_static='-Bstatic'
7337         ;;
7338       ccc*)
7339         lt_prog_compiler_wl='-Wl,'
7340         # All Alpha code is PIC.
7341         lt_prog_compiler_static='-non_shared'
7342         ;;
7343       esac
7344       ;;
7345
7346     osf3* | osf4* | osf5*)
7347       lt_prog_compiler_wl='-Wl,'
7348       # All OSF/1 code is PIC.
7349       lt_prog_compiler_static='-non_shared'
7350       ;;
7351
7352     solaris*)
7353       lt_prog_compiler_pic='-KPIC'
7354       lt_prog_compiler_static='-Bstatic'
7355       case $cc_basename in
7356       f77* | f90* | f95*)
7357         lt_prog_compiler_wl='-Qoption ld ';;
7358       *)
7359         lt_prog_compiler_wl='-Wl,';;
7360       esac
7361       ;;
7362
7363     sunos4*)
7364       lt_prog_compiler_wl='-Qoption ld '
7365       lt_prog_compiler_pic='-PIC'
7366       lt_prog_compiler_static='-Bstatic'
7367       ;;
7368
7369     sysv4 | sysv4.2uw2* | sysv4.3*)
7370       lt_prog_compiler_wl='-Wl,'
7371       lt_prog_compiler_pic='-KPIC'
7372       lt_prog_compiler_static='-Bstatic'
7373       ;;
7374
7375     sysv4*MP*)
7376       if test -d /usr/nec ;then
7377         lt_prog_compiler_pic='-Kconform_pic'
7378         lt_prog_compiler_static='-Bstatic'
7379       fi
7380       ;;
7381
7382     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7383       lt_prog_compiler_wl='-Wl,'
7384       lt_prog_compiler_pic='-KPIC'
7385       lt_prog_compiler_static='-Bstatic'
7386       ;;
7387
7388     unicos*)
7389       lt_prog_compiler_wl='-Wl,'
7390       lt_prog_compiler_can_build_shared=no
7391       ;;
7392
7393     uts4*)
7394       lt_prog_compiler_pic='-pic'
7395       lt_prog_compiler_static='-Bstatic'
7396       ;;
7397
7398     *)
7399       lt_prog_compiler_can_build_shared=no
7400       ;;
7401     esac
7402   fi
7403
7404 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7405 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7406
7407 #
7408 # Check to make sure the PIC flag actually works.
7409 #
7410 if test -n "$lt_prog_compiler_pic"; then
7411
7412 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7413 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7414 if test "${lt_prog_compiler_pic_works+set}" = set; then
7415   echo $ECHO_N "(cached) $ECHO_C" >&6
7416 else
7417   lt_prog_compiler_pic_works=no
7418   ac_outfile=conftest.$ac_objext
7419    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7420    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7421    # Insert the option either (1) after the last *FLAGS variable, or
7422    # (2) before a word containing "conftest.", or (3) at the end.
7423    # Note that $ac_compile itself does not contain backslashes and begins
7424    # with a dollar sign (not a hyphen), so the echo should work correctly.
7425    # The option is referenced via a variable to avoid confusing sed.
7426    lt_compile=`echo "$ac_compile" | $SED \
7427    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7428    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7429    -e 's:$: $lt_compiler_flag:'`
7430    (eval echo "\"\$as_me:7430: $lt_compile\"" >&5)
7431    (eval "$lt_compile" 2>conftest.err)
7432    ac_status=$?
7433    cat conftest.err >&5
7434    echo "$as_me:7434: \$? = $ac_status" >&5
7435    if (exit $ac_status) && test -s "$ac_outfile"; then
7436      # The compiler can only warn and ignore the option if not recognized
7437      # So say no if there are warnings other than the usual output.
7438      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7439      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7440      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7441        lt_prog_compiler_pic_works=yes
7442      fi
7443    fi
7444    $rm conftest*
7445
7446 fi
7447 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7448 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7449
7450 if test x"$lt_prog_compiler_pic_works" = xyes; then
7451     case $lt_prog_compiler_pic in
7452      "" | " "*) ;;
7453      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7454      esac
7455 else
7456     lt_prog_compiler_pic=
7457      lt_prog_compiler_can_build_shared=no
7458 fi
7459
7460 fi
7461 case $host_os in
7462   # For platforms which do not support PIC, -DPIC is meaningless:
7463   *djgpp*)
7464     lt_prog_compiler_pic=
7465     ;;
7466   *)
7467     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7468     ;;
7469 esac
7470
7471 #
7472 # Check to make sure the static flag actually works.
7473 #
7474 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7475 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7476 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7477 if test "${lt_prog_compiler_static_works+set}" = set; then
7478   echo $ECHO_N "(cached) $ECHO_C" >&6
7479 else
7480   lt_prog_compiler_static_works=no
7481    save_LDFLAGS="$LDFLAGS"
7482    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7483    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7484    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7485      # The linker can only warn and ignore the option if not recognized
7486      # So say no if there are warnings
7487      if test -s conftest.err; then
7488        # Append any errors to the config.log.
7489        cat conftest.err 1>&5
7490        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7491        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7492        if diff conftest.exp conftest.er2 >/dev/null; then
7493          lt_prog_compiler_static_works=yes
7494        fi
7495      else
7496        lt_prog_compiler_static_works=yes
7497      fi
7498    fi
7499    $rm conftest*
7500    LDFLAGS="$save_LDFLAGS"
7501
7502 fi
7503 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7504 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7505
7506 if test x"$lt_prog_compiler_static_works" = xyes; then
7507     :
7508 else
7509     lt_prog_compiler_static=
7510 fi
7511
7512
7513 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7514 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7515 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7516   echo $ECHO_N "(cached) $ECHO_C" >&6
7517 else
7518   lt_cv_prog_compiler_c_o=no
7519    $rm -r conftest 2>/dev/null
7520    mkdir conftest
7521    cd conftest
7522    mkdir out
7523    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7524
7525    lt_compiler_flag="-o out/conftest2.$ac_objext"
7526    # Insert the option either (1) after the last *FLAGS variable, or
7527    # (2) before a word containing "conftest.", or (3) at the end.
7528    # Note that $ac_compile itself does not contain backslashes and begins
7529    # with a dollar sign (not a hyphen), so the echo should work correctly.
7530    lt_compile=`echo "$ac_compile" | $SED \
7531    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7532    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7533    -e 's:$: $lt_compiler_flag:'`
7534    (eval echo "\"\$as_me:7534: $lt_compile\"" >&5)
7535    (eval "$lt_compile" 2>out/conftest.err)
7536    ac_status=$?
7537    cat out/conftest.err >&5
7538    echo "$as_me:7538: \$? = $ac_status" >&5
7539    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7540    then
7541      # The compiler can only warn and ignore the option if not recognized
7542      # So say no if there are warnings
7543      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7544      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7545      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7546        lt_cv_prog_compiler_c_o=yes
7547      fi
7548    fi
7549    chmod u+w . 2>&5
7550    $rm conftest*
7551    # SGI C++ compiler will create directory out/ii_files/ for
7552    # template instantiation
7553    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7554    $rm out/* && rmdir out
7555    cd ..
7556    rmdir conftest
7557    $rm conftest*
7558
7559 fi
7560 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7561 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7562
7563
7564 hard_links="nottested"
7565 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7566   # do not overwrite the value of need_locks provided by the user
7567   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7568 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7569   hard_links=yes
7570   $rm conftest*
7571   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7572   touch conftest.a
7573   ln conftest.a conftest.b 2>&5 || hard_links=no
7574   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7575   { echo "$as_me:$LINENO: result: $hard_links" >&5
7576 echo "${ECHO_T}$hard_links" >&6; }
7577   if test "$hard_links" = no; then
7578     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7579 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7580     need_locks=warn
7581   fi
7582 else
7583   need_locks=no
7584 fi
7585
7586 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7587 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7588
7589   runpath_var=
7590   allow_undefined_flag=
7591   enable_shared_with_static_runtimes=no
7592   archive_cmds=
7593   archive_expsym_cmds=
7594   old_archive_From_new_cmds=
7595   old_archive_from_expsyms_cmds=
7596   export_dynamic_flag_spec=
7597   whole_archive_flag_spec=
7598   thread_safe_flag_spec=
7599   hardcode_libdir_flag_spec=
7600   hardcode_libdir_flag_spec_ld=
7601   hardcode_libdir_separator=
7602   hardcode_direct=no
7603   hardcode_minus_L=no
7604   hardcode_shlibpath_var=unsupported
7605   link_all_deplibs=unknown
7606   hardcode_automatic=no
7607   module_cmds=
7608   module_expsym_cmds=
7609   always_export_symbols=no
7610   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7611   # include_expsyms should be a list of space-separated symbols to be *always*
7612   # included in the symbol list
7613   include_expsyms=
7614   # exclude_expsyms can be an extended regexp of symbols to exclude
7615   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7616   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7617   # as well as any symbol that contains `d'.
7618   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7619   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7620   # platforms (ab)use it in PIC code, but their linkers get confused if
7621   # the symbol is explicitly referenced.  Since portable code cannot
7622   # rely on this symbol name, it's probably fine to never include it in
7623   # preloaded symbol tables.
7624   extract_expsyms_cmds=
7625   # Just being paranoid about ensuring that cc_basename is set.
7626   for cc_temp in $compiler""; do
7627   case $cc_temp in
7628     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7629     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7630     \-*) ;;
7631     *) break;;
7632   esac
7633 done
7634 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7635
7636   case $host_os in
7637   cygwin* | mingw* | pw32*)
7638     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7639     # When not using gcc, we currently assume that we are using
7640     # Microsoft Visual C++.
7641     if test "$GCC" != yes; then
7642       with_gnu_ld=no
7643     fi
7644     ;;
7645   interix*)
7646     # we just hope/assume this is gcc and not c89 (= MSVC++)
7647     with_gnu_ld=yes
7648     ;;
7649   openbsd*)
7650     with_gnu_ld=no
7651     ;;
7652   esac
7653
7654   ld_shlibs=yes
7655   if test "$with_gnu_ld" = yes; then
7656     # If archive_cmds runs LD, not CC, wlarc should be empty
7657     wlarc='${wl}'
7658
7659     # Set some defaults for GNU ld with shared library support. These
7660     # are reset later if shared libraries are not supported. Putting them
7661     # here allows them to be overridden if necessary.
7662     runpath_var=LD_RUN_PATH
7663     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7664     export_dynamic_flag_spec='${wl}--export-dynamic'
7665     # ancient GNU ld didn't support --whole-archive et. al.
7666     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7667         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7668       else
7669         whole_archive_flag_spec=
7670     fi
7671     supports_anon_versioning=no
7672     case `$LD -v 2>/dev/null` in
7673       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7674       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7675       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7676       *\ 2.11.*) ;; # other 2.11 versions
7677       *) supports_anon_versioning=yes ;;
7678     esac
7679
7680     # See if GNU ld supports shared libraries.
7681     case $host_os in
7682     aix3* | aix4* | aix5*)
7683       # On AIX/PPC, the GNU linker is very broken
7684       if test "$host_cpu" != ia64; then
7685         ld_shlibs=no
7686         cat <<EOF 1>&2
7687
7688 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7689 *** to be unable to reliably create shared libraries on AIX.
7690 *** Therefore, libtool is disabling shared libraries support.  If you
7691 *** really care for shared libraries, you may want to modify your PATH
7692 *** so that a non-GNU linker is found, and then restart.
7693
7694 EOF
7695       fi
7696       ;;
7697
7698     amigaos*)
7699       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)'
7700       hardcode_libdir_flag_spec='-L$libdir'
7701       hardcode_minus_L=yes
7702
7703       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7704       # that the semantics of dynamic libraries on AmigaOS, at least up
7705       # to version 4, is to share data among multiple programs linked
7706       # with the same dynamic library.  Since this doesn't match the
7707       # behavior of shared libraries on other platforms, we can't use
7708       # them.
7709       ld_shlibs=no
7710       ;;
7711
7712     beos*)
7713       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7714         allow_undefined_flag=unsupported
7715         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7716         # support --undefined.  This deserves some investigation.  FIXME
7717         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7718       else
7719         ld_shlibs=no
7720       fi
7721       ;;
7722
7723     cygwin* | mingw* | pw32*)
7724       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7725       # as there is no search path for DLLs.
7726       hardcode_libdir_flag_spec='-L$libdir'
7727       allow_undefined_flag=unsupported
7728       always_export_symbols=no
7729       enable_shared_with_static_runtimes=yes
7730       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7731
7732       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7733         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7734         # If the export-symbols file already is a .def file (1st line
7735         # is EXPORTS), use it as is; otherwise, prepend...
7736         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7737           cp $export_symbols $output_objdir/$soname.def;
7738         else
7739           echo EXPORTS > $output_objdir/$soname.def;
7740           cat $export_symbols >> $output_objdir/$soname.def;
7741         fi~
7742         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7743       else
7744         ld_shlibs=no
7745       fi
7746       ;;
7747
7748     interix3*)
7749       hardcode_direct=no
7750       hardcode_shlibpath_var=no
7751       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7752       export_dynamic_flag_spec='${wl}-E'
7753       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7754       # Instead, shared libraries are loaded at an image base (0x10000000 by
7755       # default) and relocated if they conflict, which is a slow very memory
7756       # consuming and fragmenting process.  To avoid this, we pick a random,
7757       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7758       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7759       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7760       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'
7761       ;;
7762
7763     linux* | k*bsd*-gnu)
7764       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7765         tmp_addflag=
7766         case $cc_basename,$host_cpu in
7767         pgcc*)                          # Portland Group C compiler
7768           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'
7769           tmp_addflag=' $pic_flag'
7770           ;;
7771         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7772           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'
7773           tmp_addflag=' $pic_flag -Mnomain' ;;
7774         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7775           tmp_addflag=' -i_dynamic' ;;
7776         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7777           tmp_addflag=' -i_dynamic -nofor_main' ;;
7778         ifc* | ifort*)                  # Intel Fortran compiler
7779           tmp_addflag=' -nofor_main' ;;
7780         esac
7781         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7782
7783         if test $supports_anon_versioning = yes; then
7784           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7785   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7786   $echo "local: *; };" >> $output_objdir/$libname.ver~
7787           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7788         fi
7789         link_all_deplibs=no
7790       else
7791         ld_shlibs=no
7792       fi
7793       ;;
7794
7795     netbsd* | netbsdelf*-gnu)
7796       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7797         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7798         wlarc=
7799       else
7800         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7801         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7802       fi
7803       ;;
7804
7805     solaris*)
7806       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7807         ld_shlibs=no
7808         cat <<EOF 1>&2
7809
7810 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7811 *** create shared libraries on Solaris systems.  Therefore, libtool
7812 *** is disabling shared libraries support.  We urge you to upgrade GNU
7813 *** binutils to release 2.9.1 or newer.  Another option is to modify
7814 *** your PATH or compiler configuration so that the native linker is
7815 *** used, and then restart.
7816
7817 EOF
7818       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7819         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7820         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7821       else
7822         ld_shlibs=no
7823       fi
7824       ;;
7825
7826     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7827       case `$LD -v 2>&1` in
7828         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7829         ld_shlibs=no
7830         cat <<_LT_EOF 1>&2
7831
7832 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7833 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7834 *** is disabling shared libraries support.  We urge you to upgrade GNU
7835 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7836 *** your PATH or compiler configuration so that the native linker is
7837 *** used, and then restart.
7838
7839 _LT_EOF
7840         ;;
7841         *)
7842           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7843             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7844             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7845             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7846           else
7847             ld_shlibs=no
7848           fi
7849         ;;
7850       esac
7851       ;;
7852
7853     sunos4*)
7854       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7855       wlarc=
7856       hardcode_direct=yes
7857       hardcode_shlibpath_var=no
7858       ;;
7859
7860     *)
7861       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7862         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7863         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7864       else
7865         ld_shlibs=no
7866       fi
7867       ;;
7868     esac
7869
7870     if test "$ld_shlibs" = no; then
7871       runpath_var=
7872       hardcode_libdir_flag_spec=
7873       export_dynamic_flag_spec=
7874       whole_archive_flag_spec=
7875     fi
7876   else
7877     # PORTME fill in a description of your system's linker (not GNU ld)
7878     case $host_os in
7879     aix3*)
7880       allow_undefined_flag=unsupported
7881       always_export_symbols=yes
7882       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'
7883       # Note: this linker hardcodes the directories in LIBPATH if there
7884       # are no directories specified by -L.
7885       hardcode_minus_L=yes
7886       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7887         # Neither direct hardcoding nor static linking is supported with a
7888         # broken collect2.
7889         hardcode_direct=unsupported
7890       fi
7891       ;;
7892
7893     aix4* | aix5*)
7894       if test "$host_cpu" = ia64; then
7895         # On IA64, the linker does run time linking by default, so we don't
7896         # have to do anything special.
7897         aix_use_runtimelinking=no
7898         exp_sym_flag='-Bexport'
7899         no_entry_flag=""
7900       else
7901         # If we're using GNU nm, then we don't want the "-C" option.
7902         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7903         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7904           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'
7905         else
7906           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'
7907         fi
7908         aix_use_runtimelinking=no
7909
7910         # Test if we are trying to use run time linking or normal
7911         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7912         # need to do runtime linking.
7913         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7914           for ld_flag in $LDFLAGS; do
7915           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7916             aix_use_runtimelinking=yes
7917             break
7918           fi
7919           done
7920           ;;
7921         esac
7922
7923         exp_sym_flag='-bexport'
7924         no_entry_flag='-bnoentry'
7925       fi
7926
7927       # When large executables or shared objects are built, AIX ld can
7928       # have problems creating the table of contents.  If linking a library
7929       # or program results in "error TOC overflow" add -mminimal-toc to
7930       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7931       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7932
7933       archive_cmds=''
7934       hardcode_direct=yes
7935       hardcode_libdir_separator=':'
7936       link_all_deplibs=yes
7937
7938       if test "$GCC" = yes; then
7939         case $host_os in aix4.[012]|aix4.[012].*)
7940         # We only want to do this on AIX 4.2 and lower, the check
7941         # below for broken collect2 doesn't work under 4.3+
7942           collect2name=`${CC} -print-prog-name=collect2`
7943           if test -f "$collect2name" && \
7944            strings "$collect2name" | grep resolve_lib_name >/dev/null
7945           then
7946           # We have reworked collect2
7947           hardcode_direct=yes
7948           else
7949           # We have old collect2
7950           hardcode_direct=unsupported
7951           # It fails to find uninstalled libraries when the uninstalled
7952           # path is not listed in the libpath.  Setting hardcode_minus_L
7953           # to unsupported forces relinking
7954           hardcode_minus_L=yes
7955           hardcode_libdir_flag_spec='-L$libdir'
7956           hardcode_libdir_separator=
7957           fi
7958           ;;
7959         esac
7960         shared_flag='-shared'
7961         if test "$aix_use_runtimelinking" = yes; then
7962           shared_flag="$shared_flag "'${wl}-G'
7963         fi
7964       else
7965         # not using gcc
7966         if test "$host_cpu" = ia64; then
7967         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7968         # chokes on -Wl,-G. The following line is correct:
7969           shared_flag='-G'
7970         else
7971           if test "$aix_use_runtimelinking" = yes; then
7972             shared_flag='${wl}-G'
7973           else
7974             shared_flag='${wl}-bM:SRE'
7975           fi
7976         fi
7977       fi
7978
7979       # It seems that -bexpall does not export symbols beginning with
7980       # underscore (_), so it is better to generate a list of symbols to export.
7981       always_export_symbols=yes
7982       if test "$aix_use_runtimelinking" = yes; then
7983         # Warning - without using the other runtime loading flags (-brtl),
7984         # -berok will link without error, but may produce a broken library.
7985         allow_undefined_flag='-berok'
7986        # Determine the default libpath from the value encoded in an empty executable.
7987        cat >conftest.$ac_ext <<_ACEOF
7988 /* confdefs.h.  */
7989 _ACEOF
7990 cat confdefs.h >>conftest.$ac_ext
7991 cat >>conftest.$ac_ext <<_ACEOF
7992 /* end confdefs.h.  */
7993
7994 int
7995 main ()
7996 {
7997
7998   ;
7999   return 0;
8000 }
8001 _ACEOF
8002 rm -f conftest.$ac_objext conftest$ac_exeext
8003 if { (ac_try="$ac_link"
8004 case "(($ac_try" in
8005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8006   *) ac_try_echo=$ac_try;;
8007 esac
8008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8009   (eval "$ac_link") 2>conftest.er1
8010   ac_status=$?
8011   grep -v '^ *+' conftest.er1 >conftest.err
8012   rm -f conftest.er1
8013   cat conftest.err >&5
8014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015   (exit $ac_status); } && {
8016          test -z "$ac_c_werror_flag" ||
8017          test ! -s conftest.err
8018        } && test -s conftest$ac_exeext &&
8019        $as_test_x conftest$ac_exeext; then
8020
8021 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8022 }'`
8023 # Check for a 64-bit object if we didn't find anything.
8024 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; }
8025 }'`; fi
8026 else
8027   echo "$as_me: failed program was:" >&5
8028 sed 's/^/| /' conftest.$ac_ext >&5
8029
8030
8031 fi
8032
8033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8034       conftest$ac_exeext conftest.$ac_ext
8035 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8036
8037        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8038         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"
8039        else
8040         if test "$host_cpu" = ia64; then
8041           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8042           allow_undefined_flag="-z nodefs"
8043           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"
8044         else
8045          # Determine the default libpath from the value encoded in an empty executable.
8046          cat >conftest.$ac_ext <<_ACEOF
8047 /* confdefs.h.  */
8048 _ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h.  */
8052
8053 int
8054 main ()
8055 {
8056
8057   ;
8058   return 0;
8059 }
8060 _ACEOF
8061 rm -f conftest.$ac_objext conftest$ac_exeext
8062 if { (ac_try="$ac_link"
8063 case "(($ac_try" in
8064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065   *) ac_try_echo=$ac_try;;
8066 esac
8067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068   (eval "$ac_link") 2>conftest.er1
8069   ac_status=$?
8070   grep -v '^ *+' conftest.er1 >conftest.err
8071   rm -f conftest.er1
8072   cat conftest.err >&5
8073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074   (exit $ac_status); } && {
8075          test -z "$ac_c_werror_flag" ||
8076          test ! -s conftest.err
8077        } && test -s conftest$ac_exeext &&
8078        $as_test_x conftest$ac_exeext; then
8079
8080 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8081 }'`
8082 # Check for a 64-bit object if we didn't find anything.
8083 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; }
8084 }'`; fi
8085 else
8086   echo "$as_me: failed program was:" >&5
8087 sed 's/^/| /' conftest.$ac_ext >&5
8088
8089
8090 fi
8091
8092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8093       conftest$ac_exeext conftest.$ac_ext
8094 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8095
8096          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8097           # Warning - without using the other run time loading flags,
8098           # -berok will link without error, but may produce a broken library.
8099           no_undefined_flag=' ${wl}-bernotok'
8100           allow_undefined_flag=' ${wl}-berok'
8101           # Exported symbols can be pulled into shared objects from archives
8102           whole_archive_flag_spec='$convenience'
8103           archive_cmds_need_lc=yes
8104           # This is similar to how AIX traditionally builds its shared libraries.
8105           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'
8106         fi
8107       fi
8108       ;;
8109
8110     amigaos*)
8111       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)'
8112       hardcode_libdir_flag_spec='-L$libdir'
8113       hardcode_minus_L=yes
8114       # see comment about different semantics on the GNU ld section
8115       ld_shlibs=no
8116       ;;
8117
8118     bsdi[45]*)
8119       export_dynamic_flag_spec=-rdynamic
8120       ;;
8121
8122     cygwin* | mingw* | pw32*)
8123       # When not using gcc, we currently assume that we are using
8124       # Microsoft Visual C++.
8125       # hardcode_libdir_flag_spec is actually meaningless, as there is
8126       # no search path for DLLs.
8127       hardcode_libdir_flag_spec=' '
8128       allow_undefined_flag=unsupported
8129       # Tell ltmain to make .lib files, not .a files.
8130       libext=lib
8131       # Tell ltmain to make .dll files, not .so files.
8132       shrext_cmds=".dll"
8133       # FIXME: Setting linknames here is a bad hack.
8134       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8135       # The linker will automatically build a .lib file if we build a DLL.
8136       old_archive_From_new_cmds='true'
8137       # FIXME: Should let the user specify the lib program.
8138       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8139       fix_srcfile_path='`cygpath -w "$srcfile"`'
8140       enable_shared_with_static_runtimes=yes
8141       ;;
8142
8143     darwin* | rhapsody*)
8144       case $host_os in
8145         rhapsody* | darwin1.[012])
8146          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8147          ;;
8148        *) # Darwin 1.3 on
8149          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8150            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8151          else
8152            case ${MACOSX_DEPLOYMENT_TARGET} in
8153              10.[012])
8154                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8155                ;;
8156              10.*)
8157                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8158                ;;
8159            esac
8160          fi
8161          ;;
8162       esac
8163       archive_cmds_need_lc=no
8164       hardcode_direct=no
8165       hardcode_automatic=yes
8166       hardcode_shlibpath_var=unsupported
8167       whole_archive_flag_spec=''
8168       link_all_deplibs=yes
8169     if test "$GCC" = yes ; then
8170         output_verbose_link_cmd='echo'
8171         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8172       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8173       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8174       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}'
8175       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}'
8176     else
8177       case $cc_basename in
8178         xlc*)
8179          output_verbose_link_cmd='echo'
8180          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8181          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8182           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8183          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}'
8184           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}'
8185           ;;
8186        *)
8187          ld_shlibs=no
8188           ;;
8189       esac
8190     fi
8191       ;;
8192
8193     dgux*)
8194       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8195       hardcode_libdir_flag_spec='-L$libdir'
8196       hardcode_shlibpath_var=no
8197       ;;
8198
8199     freebsd1*)
8200       ld_shlibs=no
8201       ;;
8202
8203     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8204     # support.  Future versions do this automatically, but an explicit c++rt0.o
8205     # does not break anything, and helps significantly (at the cost of a little
8206     # extra space).
8207     freebsd2.2*)
8208       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8209       hardcode_libdir_flag_spec='-R$libdir'
8210       hardcode_direct=yes
8211       hardcode_shlibpath_var=no
8212       ;;
8213
8214     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8215     freebsd2*)
8216       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8217       hardcode_direct=yes
8218       hardcode_minus_L=yes
8219       hardcode_shlibpath_var=no
8220       ;;
8221
8222     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8223     freebsd* | dragonfly*)
8224       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8225       hardcode_libdir_flag_spec='-R$libdir'
8226       hardcode_direct=yes
8227       hardcode_shlibpath_var=no
8228       ;;
8229
8230     hpux9*)
8231       if test "$GCC" = yes; then
8232         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'
8233       else
8234         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'
8235       fi
8236       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8237       hardcode_libdir_separator=:
8238       hardcode_direct=yes
8239
8240       # hardcode_minus_L: Not really in the search PATH,
8241       # but as the default location of the library.
8242       hardcode_minus_L=yes
8243       export_dynamic_flag_spec='${wl}-E'
8244       ;;
8245
8246     hpux10*)
8247       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8248         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8249       else
8250         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8251       fi
8252       if test "$with_gnu_ld" = no; then
8253         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8254         hardcode_libdir_separator=:
8255
8256         hardcode_direct=yes
8257         export_dynamic_flag_spec='${wl}-E'
8258
8259         # hardcode_minus_L: Not really in the search PATH,
8260         # but as the default location of the library.
8261         hardcode_minus_L=yes
8262       fi
8263       ;;
8264
8265     hpux11*)
8266       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8267         case $host_cpu in
8268         hppa*64*)
8269           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8270           ;;
8271         ia64*)
8272           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8273           ;;
8274         *)
8275           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8276           ;;
8277         esac
8278       else
8279         case $host_cpu in
8280         hppa*64*)
8281           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8282           ;;
8283         ia64*)
8284           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8285           ;;
8286         *)
8287           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8288           ;;
8289         esac
8290       fi
8291       if test "$with_gnu_ld" = no; then
8292         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8293         hardcode_libdir_separator=:
8294
8295         case $host_cpu in
8296         hppa*64*|ia64*)
8297           hardcode_libdir_flag_spec_ld='+b $libdir'
8298           hardcode_direct=no
8299           hardcode_shlibpath_var=no
8300           ;;
8301         *)
8302           hardcode_direct=yes
8303           export_dynamic_flag_spec='${wl}-E'
8304
8305           # hardcode_minus_L: Not really in the search PATH,
8306           # but as the default location of the library.
8307           hardcode_minus_L=yes
8308           ;;
8309         esac
8310       fi
8311       ;;
8312
8313     irix5* | irix6* | nonstopux*)
8314       if test "$GCC" = yes; then
8315         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'
8316       else
8317         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'
8318         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8319       fi
8320       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8321       hardcode_libdir_separator=:
8322       link_all_deplibs=yes
8323       ;;
8324
8325     netbsd* | netbsdelf*-gnu)
8326       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8327         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8328       else
8329         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8330       fi
8331       hardcode_libdir_flag_spec='-R$libdir'
8332       hardcode_direct=yes
8333       hardcode_shlibpath_var=no
8334       ;;
8335
8336     newsos6)
8337       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8338       hardcode_direct=yes
8339       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8340       hardcode_libdir_separator=:
8341       hardcode_shlibpath_var=no
8342       ;;
8343
8344     openbsd*)
8345       hardcode_direct=yes
8346       hardcode_shlibpath_var=no
8347       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8348         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8349         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8350         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8351         export_dynamic_flag_spec='${wl}-E'
8352       else
8353        case $host_os in
8354          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8355            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8356            hardcode_libdir_flag_spec='-R$libdir'
8357            ;;
8358          *)
8359            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8360            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8361            ;;
8362        esac
8363       fi
8364       ;;
8365
8366     os2*)
8367       hardcode_libdir_flag_spec='-L$libdir'
8368       hardcode_minus_L=yes
8369       allow_undefined_flag=unsupported
8370       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'
8371       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8372       ;;
8373
8374     osf3*)
8375       if test "$GCC" = yes; then
8376         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8377         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'
8378       else
8379         allow_undefined_flag=' -expect_unresolved \*'
8380         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'
8381       fi
8382       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8383       hardcode_libdir_separator=:
8384       ;;
8385
8386     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8387       if test "$GCC" = yes; then
8388         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8389         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'
8390         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8391       else
8392         allow_undefined_flag=' -expect_unresolved \*'
8393         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'
8394         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8395         $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'
8396
8397         # Both c and cxx compiler support -rpath directly
8398         hardcode_libdir_flag_spec='-rpath $libdir'
8399       fi
8400       hardcode_libdir_separator=:
8401       ;;
8402
8403     solaris*)
8404       no_undefined_flag=' -z text'
8405       if test "$GCC" = yes; then
8406         wlarc='${wl}'
8407         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8408         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8409           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8410       else
8411         wlarc=''
8412         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8413         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8414         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8415       fi
8416       hardcode_libdir_flag_spec='-R$libdir'
8417       hardcode_shlibpath_var=no
8418       case $host_os in
8419       solaris2.[0-5] | solaris2.[0-5].*) ;;
8420       *)
8421         # The compiler driver will combine linker options so we
8422         # cannot just pass the convience library names through
8423         # without $wl, iff we do not link with $LD.
8424         # Luckily, gcc supports the same syntax we need for Sun Studio.
8425         # Supported since Solaris 2.6 (maybe 2.5.1?)
8426         case $wlarc in
8427         '')
8428           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8429         *)
8430           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' ;;
8431         esac ;;
8432       esac
8433       link_all_deplibs=yes
8434       ;;
8435
8436     sunos4*)
8437       if test "x$host_vendor" = xsequent; then
8438         # Use $CC to link under sequent, because it throws in some extra .o
8439         # files that make .init and .fini sections work.
8440         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8441       else
8442         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8443       fi
8444       hardcode_libdir_flag_spec='-L$libdir'
8445       hardcode_direct=yes
8446       hardcode_minus_L=yes
8447       hardcode_shlibpath_var=no
8448       ;;
8449
8450     sysv4)
8451       case $host_vendor in
8452         sni)
8453           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8454           hardcode_direct=yes # is this really true???
8455         ;;
8456         siemens)
8457           ## LD is ld it makes a PLAMLIB
8458           ## CC just makes a GrossModule.
8459           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8460           reload_cmds='$CC -r -o $output$reload_objs'
8461           hardcode_direct=no
8462         ;;
8463         motorola)
8464           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8465           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8466         ;;
8467       esac
8468       runpath_var='LD_RUN_PATH'
8469       hardcode_shlibpath_var=no
8470       ;;
8471
8472     sysv4.3*)
8473       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8474       hardcode_shlibpath_var=no
8475       export_dynamic_flag_spec='-Bexport'
8476       ;;
8477
8478     sysv4*MP*)
8479       if test -d /usr/nec; then
8480         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8481         hardcode_shlibpath_var=no
8482         runpath_var=LD_RUN_PATH
8483         hardcode_runpath_var=yes
8484         ld_shlibs=yes
8485       fi
8486       ;;
8487
8488     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8489       no_undefined_flag='${wl}-z,text'
8490       archive_cmds_need_lc=no
8491       hardcode_shlibpath_var=no
8492       runpath_var='LD_RUN_PATH'
8493
8494       if test "$GCC" = yes; then
8495         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8496         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8497       else
8498         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8499         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8500       fi
8501       ;;
8502
8503     sysv5* | sco3.2v5* | sco5v6*)
8504       # Note: We can NOT use -z defs as we might desire, because we do not
8505       # link with -lc, and that would cause any symbols used from libc to
8506       # always be unresolved, which means just about no library would
8507       # ever link correctly.  If we're not using GNU ld we use -z text
8508       # though, which does catch some bad symbols but isn't as heavy-handed
8509       # as -z defs.
8510       no_undefined_flag='${wl}-z,text'
8511       allow_undefined_flag='${wl}-z,nodefs'
8512       archive_cmds_need_lc=no
8513       hardcode_shlibpath_var=no
8514       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8515       hardcode_libdir_separator=':'
8516       link_all_deplibs=yes
8517       export_dynamic_flag_spec='${wl}-Bexport'
8518       runpath_var='LD_RUN_PATH'
8519
8520       if test "$GCC" = yes; then
8521         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8522         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8523       else
8524         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8525         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8526       fi
8527       ;;
8528
8529     uts4*)
8530       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8531       hardcode_libdir_flag_spec='-L$libdir'
8532       hardcode_shlibpath_var=no
8533       ;;
8534
8535     *)
8536       ld_shlibs=no
8537       ;;
8538     esac
8539   fi
8540
8541 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8542 echo "${ECHO_T}$ld_shlibs" >&6; }
8543 test "$ld_shlibs" = no && can_build_shared=no
8544
8545 #
8546 # Do we need to explicitly link libc?
8547 #
8548 case "x$archive_cmds_need_lc" in
8549 x|xyes)
8550   # Assume -lc should be added
8551   archive_cmds_need_lc=yes
8552
8553   if test "$enable_shared" = yes && test "$GCC" = yes; then
8554     case $archive_cmds in
8555     *'~'*)
8556       # FIXME: we may have to deal with multi-command sequences.
8557       ;;
8558     '$CC '*)
8559       # Test whether the compiler implicitly links with -lc since on some
8560       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8561       # to ld, don't add -lc before -lgcc.
8562       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8563 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8564       $rm conftest*
8565       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8566
8567       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8568   (eval $ac_compile) 2>&5
8569   ac_status=$?
8570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571   (exit $ac_status); } 2>conftest.err; then
8572         soname=conftest
8573         lib=conftest
8574         libobjs=conftest.$ac_objext
8575         deplibs=
8576         wl=$lt_prog_compiler_wl
8577         pic_flag=$lt_prog_compiler_pic
8578         compiler_flags=-v
8579         linker_flags=-v
8580         verstring=
8581         output_objdir=.
8582         libname=conftest
8583         lt_save_allow_undefined_flag=$allow_undefined_flag
8584         allow_undefined_flag=
8585         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8586   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8587   ac_status=$?
8588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589   (exit $ac_status); }
8590         then
8591           archive_cmds_need_lc=no
8592         else
8593           archive_cmds_need_lc=yes
8594         fi
8595         allow_undefined_flag=$lt_save_allow_undefined_flag
8596       else
8597         cat conftest.err 1>&5
8598       fi
8599       $rm conftest*
8600       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8601 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8602       ;;
8603     esac
8604   fi
8605   ;;
8606 esac
8607
8608 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8609 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8610 library_names_spec=
8611 libname_spec='lib$name'
8612 soname_spec=
8613 shrext_cmds=".so"
8614 postinstall_cmds=
8615 postuninstall_cmds=
8616 finish_cmds=
8617 finish_eval=
8618 shlibpath_var=
8619 shlibpath_overrides_runpath=unknown
8620 version_type=none
8621 dynamic_linker="$host_os ld.so"
8622 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8623 if test "$GCC" = yes; then
8624   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8625   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8626     # if the path contains ";" then we assume it to be the separator
8627     # otherwise default to the standard path separator (i.e. ":") - it is
8628     # assumed that no part of a normal pathname contains ";" but that should
8629     # okay in the real world where ";" in dirpaths is itself problematic.
8630     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8631   else
8632     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8633   fi
8634 else
8635   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8636 fi
8637 need_lib_prefix=unknown
8638 hardcode_into_libs=no
8639
8640 # when you set need_version to no, make sure it does not cause -set_version
8641 # flags to be left without arguments
8642 need_version=unknown
8643
8644 case $host_os in
8645 aix3*)
8646   version_type=linux
8647   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8648   shlibpath_var=LIBPATH
8649
8650   # AIX 3 has no versioning support, so we append a major version to the name.
8651   soname_spec='${libname}${release}${shared_ext}$major'
8652   ;;
8653
8654 aix4* | aix5*)
8655   version_type=linux
8656   need_lib_prefix=no
8657   need_version=no
8658   hardcode_into_libs=yes
8659   if test "$host_cpu" = ia64; then
8660     # AIX 5 supports IA64
8661     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8662     shlibpath_var=LD_LIBRARY_PATH
8663   else
8664     # With GCC up to 2.95.x, collect2 would create an import file
8665     # for dependence libraries.  The import file would start with
8666     # the line `#! .'.  This would cause the generated library to
8667     # depend on `.', always an invalid library.  This was fixed in
8668     # development snapshots of GCC prior to 3.0.
8669     case $host_os in
8670       aix4 | aix4.[01] | aix4.[01].*)
8671       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8672            echo ' yes '
8673            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8674         :
8675       else
8676         can_build_shared=no
8677       fi
8678       ;;
8679     esac
8680     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8681     # soname into executable. Probably we can add versioning support to
8682     # collect2, so additional links can be useful in future.
8683     if test "$aix_use_runtimelinking" = yes; then
8684       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8685       # instead of lib<name>.a to let people know that these are not
8686       # typical AIX shared libraries.
8687       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8688     else
8689       # We preserve .a as extension for shared libraries through AIX4.2
8690       # and later when we are not doing run time linking.
8691       library_names_spec='${libname}${release}.a $libname.a'
8692       soname_spec='${libname}${release}${shared_ext}$major'
8693     fi
8694     shlibpath_var=LIBPATH
8695   fi
8696   ;;
8697
8698 amigaos*)
8699   library_names_spec='$libname.ixlibrary $libname.a'
8700   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8701   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'
8702   ;;
8703
8704 beos*)
8705   library_names_spec='${libname}${shared_ext}'
8706   dynamic_linker="$host_os ld.so"
8707   shlibpath_var=LIBRARY_PATH
8708   ;;
8709
8710 bsdi[45]*)
8711   version_type=linux
8712   need_version=no
8713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8714   soname_spec='${libname}${release}${shared_ext}$major'
8715   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8716   shlibpath_var=LD_LIBRARY_PATH
8717   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8718   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8719   # the default ld.so.conf also contains /usr/contrib/lib and
8720   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8721   # libtool to hard-code these into programs
8722   ;;
8723
8724 cygwin* | mingw* | pw32*)
8725   version_type=windows
8726   shrext_cmds=".dll"
8727   need_version=no
8728   need_lib_prefix=no
8729
8730   case $GCC,$host_os in
8731   yes,cygwin* | yes,mingw* | yes,pw32*)
8732     library_names_spec='$libname.dll.a'
8733     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8734     postinstall_cmds='base_file=`basename \${file}`~
8735       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8736       dldir=$destdir/`dirname \$dlpath`~
8737       test -d \$dldir || mkdir -p \$dldir~
8738       $install_prog $dir/$dlname \$dldir/$dlname~
8739       chmod a+x \$dldir/$dlname'
8740     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8741       dlpath=$dir/\$dldll~
8742        $rm \$dlpath'
8743     shlibpath_overrides_runpath=yes
8744
8745     case $host_os in
8746     cygwin*)
8747       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8748       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8749       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8750       ;;
8751     mingw*)
8752       # MinGW DLLs use traditional 'lib' prefix
8753       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8754       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8755       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8756         # It is most probably a Windows format PATH printed by
8757         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8758         # path with ; separators, and with drive letters. We can handle the
8759         # drive letters (cygwin fileutils understands them), so leave them,
8760         # especially as we might pass files found there to a mingw objdump,
8761         # which wouldn't understand a cygwinified path. Ahh.
8762         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8763       else
8764         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8765       fi
8766       ;;
8767     pw32*)
8768       # pw32 DLLs use 'pw' prefix rather than 'lib'
8769       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8770       ;;
8771     esac
8772     ;;
8773
8774   *)
8775     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8776     ;;
8777   esac
8778   dynamic_linker='Win32 ld.exe'
8779   # FIXME: first we should search . and the directory the executable is in
8780   shlibpath_var=PATH
8781   ;;
8782
8783 darwin* | rhapsody*)
8784   dynamic_linker="$host_os dyld"
8785   version_type=darwin
8786   need_lib_prefix=no
8787   need_version=no
8788   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8789   soname_spec='${libname}${release}${major}$shared_ext'
8790   shlibpath_overrides_runpath=yes
8791   shlibpath_var=DYLD_LIBRARY_PATH
8792   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8793   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8794   if test "$GCC" = yes; then
8795     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"`
8796   else
8797     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8798   fi
8799   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8800   ;;
8801
8802 dgux*)
8803   version_type=linux
8804   need_lib_prefix=no
8805   need_version=no
8806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8807   soname_spec='${libname}${release}${shared_ext}$major'
8808   shlibpath_var=LD_LIBRARY_PATH
8809   ;;
8810
8811 freebsd1*)
8812   dynamic_linker=no
8813   ;;
8814
8815 freebsd* | dragonfly*)
8816   # DragonFly does not have aout.  When/if they implement a new
8817   # versioning mechanism, adjust this.
8818   if test -x /usr/bin/objformat; then
8819     objformat=`/usr/bin/objformat`
8820   else
8821     case $host_os in
8822     freebsd[123]*) objformat=aout ;;
8823     *) objformat=elf ;;
8824     esac
8825   fi
8826   version_type=freebsd-$objformat
8827   case $version_type in
8828     freebsd-elf*)
8829       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8830       need_version=no
8831       need_lib_prefix=no
8832       ;;
8833     freebsd-*)
8834       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8835       need_version=yes
8836       ;;
8837   esac
8838   shlibpath_var=LD_LIBRARY_PATH
8839   case $host_os in
8840   freebsd2*)
8841     shlibpath_overrides_runpath=yes
8842     ;;
8843   freebsd3.[01]* | freebsdelf3.[01]*)
8844     shlibpath_overrides_runpath=yes
8845     hardcode_into_libs=yes
8846     ;;
8847   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8848   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8849     shlibpath_overrides_runpath=no
8850     hardcode_into_libs=yes
8851     ;;
8852   freebsd*) # from 4.6 on
8853     shlibpath_overrides_runpath=yes
8854     hardcode_into_libs=yes
8855     ;;
8856   esac
8857   ;;
8858
8859 gnu*)
8860   version_type=linux
8861   need_lib_prefix=no
8862   need_version=no
8863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8864   soname_spec='${libname}${release}${shared_ext}$major'
8865   shlibpath_var=LD_LIBRARY_PATH
8866   hardcode_into_libs=yes
8867   ;;
8868
8869 hpux9* | hpux10* | hpux11*)
8870   # Give a soname corresponding to the major version so that dld.sl refuses to
8871   # link against other versions.
8872   version_type=sunos
8873   need_lib_prefix=no
8874   need_version=no
8875   case $host_cpu in
8876   ia64*)
8877     shrext_cmds='.so'
8878     hardcode_into_libs=yes
8879     dynamic_linker="$host_os dld.so"
8880     shlibpath_var=LD_LIBRARY_PATH
8881     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8882     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8883     soname_spec='${libname}${release}${shared_ext}$major'
8884     if test "X$HPUX_IA64_MODE" = X32; then
8885       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8886     else
8887       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8888     fi
8889     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8890     ;;
8891    hppa*64*)
8892      shrext_cmds='.sl'
8893      hardcode_into_libs=yes
8894      dynamic_linker="$host_os dld.sl"
8895      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8896      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8897      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8898      soname_spec='${libname}${release}${shared_ext}$major'
8899      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8900      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8901      ;;
8902    *)
8903     shrext_cmds='.sl'
8904     dynamic_linker="$host_os dld.sl"
8905     shlibpath_var=SHLIB_PATH
8906     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8907     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8908     soname_spec='${libname}${release}${shared_ext}$major'
8909     ;;
8910   esac
8911   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8912   postinstall_cmds='chmod 555 $lib'
8913   ;;
8914
8915 interix3*)
8916   version_type=linux
8917   need_lib_prefix=no
8918   need_version=no
8919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8920   soname_spec='${libname}${release}${shared_ext}$major'
8921   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8922   shlibpath_var=LD_LIBRARY_PATH
8923   shlibpath_overrides_runpath=no
8924   hardcode_into_libs=yes
8925   ;;
8926
8927 irix5* | irix6* | nonstopux*)
8928   case $host_os in
8929     nonstopux*) version_type=nonstopux ;;
8930     *)
8931         if test "$lt_cv_prog_gnu_ld" = yes; then
8932                 version_type=linux
8933         else
8934                 version_type=irix
8935         fi ;;
8936   esac
8937   need_lib_prefix=no
8938   need_version=no
8939   soname_spec='${libname}${release}${shared_ext}$major'
8940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8941   case $host_os in
8942   irix5* | nonstopux*)
8943     libsuff= shlibsuff=
8944     ;;
8945   *)
8946     case $LD in # libtool.m4 will add one of these switches to LD
8947     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8948       libsuff= shlibsuff= libmagic=32-bit;;
8949     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8950       libsuff=32 shlibsuff=N32 libmagic=N32;;
8951     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8952       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8953     *) libsuff= shlibsuff= libmagic=never-match;;
8954     esac
8955     ;;
8956   esac
8957   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8958   shlibpath_overrides_runpath=no
8959   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8960   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8961   hardcode_into_libs=yes
8962   ;;
8963
8964 # No shared lib support for Linux oldld, aout, or coff.
8965 linux*oldld* | linux*aout* | linux*coff*)
8966   dynamic_linker=no
8967   ;;
8968
8969 # This must be Linux ELF.
8970 linux* | k*bsd*-gnu)
8971   version_type=linux
8972   need_lib_prefix=no
8973   need_version=no
8974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8975   soname_spec='${libname}${release}${shared_ext}$major'
8976   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8977   shlibpath_var=LD_LIBRARY_PATH
8978   shlibpath_overrides_runpath=no
8979   # This implies no fast_install, which is unacceptable.
8980   # Some rework will be needed to allow for fast_install
8981   # before this can be enabled.
8982   hardcode_into_libs=yes
8983
8984   # Append ld.so.conf contents to the search path
8985   if test -f /etc/ld.so.conf; then
8986     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' ' '`
8987     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8988   fi
8989
8990   # We used to test for /lib/ld.so.1 and disable shared libraries on
8991   # powerpc, because MkLinux only supported shared libraries with the
8992   # GNU dynamic linker.  Since this was broken with cross compilers,
8993   # most powerpc-linux boxes support dynamic linking these days and
8994   # people can always --disable-shared, the test was removed, and we
8995   # assume the GNU/Linux dynamic linker is in use.
8996   dynamic_linker='GNU/Linux ld.so'
8997   ;;
8998
8999 netbsdelf*-gnu)
9000   version_type=linux
9001   need_lib_prefix=no
9002   need_version=no
9003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9004   soname_spec='${libname}${release}${shared_ext}$major'
9005   shlibpath_var=LD_LIBRARY_PATH
9006   shlibpath_overrides_runpath=no
9007   hardcode_into_libs=yes
9008   dynamic_linker='NetBSD ld.elf_so'
9009   ;;
9010
9011 netbsd*)
9012   version_type=sunos
9013   need_lib_prefix=no
9014   need_version=no
9015   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9016     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9017     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9018     dynamic_linker='NetBSD (a.out) ld.so'
9019   else
9020     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9021     soname_spec='${libname}${release}${shared_ext}$major'
9022     dynamic_linker='NetBSD ld.elf_so'
9023   fi
9024   shlibpath_var=LD_LIBRARY_PATH
9025   shlibpath_overrides_runpath=yes
9026   hardcode_into_libs=yes
9027   ;;
9028
9029 newsos6)
9030   version_type=linux
9031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9032   shlibpath_var=LD_LIBRARY_PATH
9033   shlibpath_overrides_runpath=yes
9034   ;;
9035
9036 nto-qnx*)
9037   version_type=linux
9038   need_lib_prefix=no
9039   need_version=no
9040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9041   soname_spec='${libname}${release}${shared_ext}$major'
9042   shlibpath_var=LD_LIBRARY_PATH
9043   shlibpath_overrides_runpath=yes
9044   ;;
9045
9046 openbsd*)
9047   version_type=sunos
9048   sys_lib_dlsearch_path_spec="/usr/lib"
9049   need_lib_prefix=no
9050   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9051   case $host_os in
9052     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9053     *)                         need_version=no  ;;
9054   esac
9055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9056   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9057   shlibpath_var=LD_LIBRARY_PATH
9058   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9059     case $host_os in
9060       openbsd2.[89] | openbsd2.[89].*)
9061         shlibpath_overrides_runpath=no
9062         ;;
9063       *)
9064         shlibpath_overrides_runpath=yes
9065         ;;
9066       esac
9067   else
9068     shlibpath_overrides_runpath=yes
9069   fi
9070   ;;
9071
9072 os2*)
9073   libname_spec='$name'
9074   shrext_cmds=".dll"
9075   need_lib_prefix=no
9076   library_names_spec='$libname${shared_ext} $libname.a'
9077   dynamic_linker='OS/2 ld.exe'
9078   shlibpath_var=LIBPATH
9079   ;;
9080
9081 osf3* | osf4* | osf5*)
9082   version_type=osf
9083   need_lib_prefix=no
9084   need_version=no
9085   soname_spec='${libname}${release}${shared_ext}$major'
9086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9087   shlibpath_var=LD_LIBRARY_PATH
9088   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9089   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9090   ;;
9091
9092 solaris*)
9093   version_type=linux
9094   need_lib_prefix=no
9095   need_version=no
9096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9097   soname_spec='${libname}${release}${shared_ext}$major'
9098   shlibpath_var=LD_LIBRARY_PATH
9099   shlibpath_overrides_runpath=yes
9100   hardcode_into_libs=yes
9101   # ldd complains unless libraries are executable
9102   postinstall_cmds='chmod +x $lib'
9103   ;;
9104
9105 sunos4*)
9106   version_type=sunos
9107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9108   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9109   shlibpath_var=LD_LIBRARY_PATH
9110   shlibpath_overrides_runpath=yes
9111   if test "$with_gnu_ld" = yes; then
9112     need_lib_prefix=no
9113   fi
9114   need_version=yes
9115   ;;
9116
9117 sysv4 | sysv4.3*)
9118   version_type=linux
9119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9120   soname_spec='${libname}${release}${shared_ext}$major'
9121   shlibpath_var=LD_LIBRARY_PATH
9122   case $host_vendor in
9123     sni)
9124       shlibpath_overrides_runpath=no
9125       need_lib_prefix=no
9126       export_dynamic_flag_spec='${wl}-Blargedynsym'
9127       runpath_var=LD_RUN_PATH
9128       ;;
9129     siemens)
9130       need_lib_prefix=no
9131       ;;
9132     motorola)
9133       need_lib_prefix=no
9134       need_version=no
9135       shlibpath_overrides_runpath=no
9136       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9137       ;;
9138   esac
9139   ;;
9140
9141 sysv4*MP*)
9142   if test -d /usr/nec ;then
9143     version_type=linux
9144     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9145     soname_spec='$libname${shared_ext}.$major'
9146     shlibpath_var=LD_LIBRARY_PATH
9147   fi
9148   ;;
9149
9150 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9151   version_type=freebsd-elf
9152   need_lib_prefix=no
9153   need_version=no
9154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9155   soname_spec='${libname}${release}${shared_ext}$major'
9156   shlibpath_var=LD_LIBRARY_PATH
9157   hardcode_into_libs=yes
9158   if test "$with_gnu_ld" = yes; then
9159     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9160     shlibpath_overrides_runpath=no
9161   else
9162     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9163     shlibpath_overrides_runpath=yes
9164     case $host_os in
9165       sco3.2v5*)
9166         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9167         ;;
9168     esac
9169   fi
9170   sys_lib_dlsearch_path_spec='/usr/lib'
9171   ;;
9172
9173 uts4*)
9174   version_type=linux
9175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9176   soname_spec='${libname}${release}${shared_ext}$major'
9177   shlibpath_var=LD_LIBRARY_PATH
9178   ;;
9179
9180 *)
9181   dynamic_linker=no
9182   ;;
9183 esac
9184 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9185 echo "${ECHO_T}$dynamic_linker" >&6; }
9186 test "$dynamic_linker" = no && can_build_shared=no
9187
9188 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9189 if test "$GCC" = yes; then
9190   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9191 fi
9192
9193 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9194 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9195 hardcode_action=
9196 if test -n "$hardcode_libdir_flag_spec" || \
9197    test -n "$runpath_var" || \
9198    test "X$hardcode_automatic" = "Xyes" ; then
9199
9200   # We can hardcode non-existant directories.
9201   if test "$hardcode_direct" != no &&
9202      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9203      # have to relink, otherwise we might link with an installed library
9204      # when we should be linking with a yet-to-be-installed one
9205      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9206      test "$hardcode_minus_L" != no; then
9207     # Linking always hardcodes the temporary library directory.
9208     hardcode_action=relink
9209   else
9210     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9211     hardcode_action=immediate
9212   fi
9213 else
9214   # We cannot hardcode anything, or else we can only hardcode existing
9215   # directories.
9216   hardcode_action=unsupported
9217 fi
9218 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9219 echo "${ECHO_T}$hardcode_action" >&6; }
9220
9221 if test "$hardcode_action" = relink; then
9222   # Fast installation is not supported
9223   enable_fast_install=no
9224 elif test "$shlibpath_overrides_runpath" = yes ||
9225      test "$enable_shared" = no; then
9226   # Fast installation is not necessary
9227   enable_fast_install=needless
9228 fi
9229
9230 striplib=
9231 old_striplib=
9232 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9233 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9234 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9235   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9236   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9237   { echo "$as_me:$LINENO: result: yes" >&5
9238 echo "${ECHO_T}yes" >&6; }
9239 else
9240 # FIXME - insert some real tests, host_os isn't really good enough
9241   case $host_os in
9242    darwin*)
9243        if test -n "$STRIP" ; then
9244          striplib="$STRIP -x"
9245          { echo "$as_me:$LINENO: result: yes" >&5
9246 echo "${ECHO_T}yes" >&6; }
9247        else
9248   { echo "$as_me:$LINENO: result: no" >&5
9249 echo "${ECHO_T}no" >&6; }
9250 fi
9251        ;;
9252    *)
9253   { echo "$as_me:$LINENO: result: no" >&5
9254 echo "${ECHO_T}no" >&6; }
9255     ;;
9256   esac
9257 fi
9258
9259 if test "x$enable_dlopen" != xyes; then
9260   enable_dlopen=unknown
9261   enable_dlopen_self=unknown
9262   enable_dlopen_self_static=unknown
9263 else
9264   lt_cv_dlopen=no
9265   lt_cv_dlopen_libs=
9266
9267   case $host_os in
9268   beos*)
9269     lt_cv_dlopen="load_add_on"
9270     lt_cv_dlopen_libs=
9271     lt_cv_dlopen_self=yes
9272     ;;
9273
9274   mingw* | pw32*)
9275     lt_cv_dlopen="LoadLibrary"
9276     lt_cv_dlopen_libs=
9277    ;;
9278
9279   cygwin*)
9280     lt_cv_dlopen="dlopen"
9281     lt_cv_dlopen_libs=
9282    ;;
9283
9284   darwin*)
9285   # if libdl is installed we need to link against it
9286     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9287 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9288 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9289   echo $ECHO_N "(cached) $ECHO_C" >&6
9290 else
9291   ac_check_lib_save_LIBS=$LIBS
9292 LIBS="-ldl  $LIBS"
9293 cat >conftest.$ac_ext <<_ACEOF
9294 /* confdefs.h.  */
9295 _ACEOF
9296 cat confdefs.h >>conftest.$ac_ext
9297 cat >>conftest.$ac_ext <<_ACEOF
9298 /* end confdefs.h.  */
9299
9300 /* Override any GCC internal prototype to avoid an error.
9301    Use char because int might match the return type of a GCC
9302    builtin and then its argument prototype would still apply.  */
9303 #ifdef __cplusplus
9304 extern "C"
9305 #endif
9306 char dlopen ();
9307 int
9308 main ()
9309 {
9310 return dlopen ();
9311   ;
9312   return 0;
9313 }
9314 _ACEOF
9315 rm -f conftest.$ac_objext conftest$ac_exeext
9316 if { (ac_try="$ac_link"
9317 case "(($ac_try" in
9318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9319   *) ac_try_echo=$ac_try;;
9320 esac
9321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9322   (eval "$ac_link") 2>conftest.er1
9323   ac_status=$?
9324   grep -v '^ *+' conftest.er1 >conftest.err
9325   rm -f conftest.er1
9326   cat conftest.err >&5
9327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328   (exit $ac_status); } && {
9329          test -z "$ac_c_werror_flag" ||
9330          test ! -s conftest.err
9331        } && test -s conftest$ac_exeext &&
9332        $as_test_x conftest$ac_exeext; then
9333   ac_cv_lib_dl_dlopen=yes
9334 else
9335   echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.$ac_ext >&5
9337
9338         ac_cv_lib_dl_dlopen=no
9339 fi
9340
9341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9342       conftest$ac_exeext conftest.$ac_ext
9343 LIBS=$ac_check_lib_save_LIBS
9344 fi
9345 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9346 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9347 if test $ac_cv_lib_dl_dlopen = yes; then
9348   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9349 else
9350
9351     lt_cv_dlopen="dyld"
9352     lt_cv_dlopen_libs=
9353     lt_cv_dlopen_self=yes
9354
9355 fi
9356
9357    ;;
9358
9359   *)
9360     { echo "$as_me:$LINENO: checking for shl_load" >&5
9361 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9362 if test "${ac_cv_func_shl_load+set}" = set; then
9363   echo $ECHO_N "(cached) $ECHO_C" >&6
9364 else
9365   cat >conftest.$ac_ext <<_ACEOF
9366 /* confdefs.h.  */
9367 _ACEOF
9368 cat confdefs.h >>conftest.$ac_ext
9369 cat >>conftest.$ac_ext <<_ACEOF
9370 /* end confdefs.h.  */
9371 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9372    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9373 #define shl_load innocuous_shl_load
9374
9375 /* System header to define __stub macros and hopefully few prototypes,
9376     which can conflict with char shl_load (); below.
9377     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9378     <limits.h> exists even on freestanding compilers.  */
9379
9380 #ifdef __STDC__
9381 # include <limits.h>
9382 #else
9383 # include <assert.h>
9384 #endif
9385
9386 #undef shl_load
9387
9388 /* Override any GCC internal prototype to avoid an error.
9389    Use char because int might match the return type of a GCC
9390    builtin and then its argument prototype would still apply.  */
9391 #ifdef __cplusplus
9392 extern "C"
9393 #endif
9394 char shl_load ();
9395 /* The GNU C library defines this for functions which it implements
9396     to always fail with ENOSYS.  Some functions are actually named
9397     something starting with __ and the normal name is an alias.  */
9398 #if defined __stub_shl_load || defined __stub___shl_load
9399 choke me
9400 #endif
9401
9402 int
9403 main ()
9404 {
9405 return shl_load ();
9406   ;
9407   return 0;
9408 }
9409 _ACEOF
9410 rm -f conftest.$ac_objext conftest$ac_exeext
9411 if { (ac_try="$ac_link"
9412 case "(($ac_try" in
9413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9414   *) ac_try_echo=$ac_try;;
9415 esac
9416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9417   (eval "$ac_link") 2>conftest.er1
9418   ac_status=$?
9419   grep -v '^ *+' conftest.er1 >conftest.err
9420   rm -f conftest.er1
9421   cat conftest.err >&5
9422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423   (exit $ac_status); } && {
9424          test -z "$ac_c_werror_flag" ||
9425          test ! -s conftest.err
9426        } && test -s conftest$ac_exeext &&
9427        $as_test_x conftest$ac_exeext; then
9428   ac_cv_func_shl_load=yes
9429 else
9430   echo "$as_me: failed program was:" >&5
9431 sed 's/^/| /' conftest.$ac_ext >&5
9432
9433         ac_cv_func_shl_load=no
9434 fi
9435
9436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9437       conftest$ac_exeext conftest.$ac_ext
9438 fi
9439 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9440 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9441 if test $ac_cv_func_shl_load = yes; then
9442   lt_cv_dlopen="shl_load"
9443 else
9444   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9445 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9446 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9447   echo $ECHO_N "(cached) $ECHO_C" >&6
9448 else
9449   ac_check_lib_save_LIBS=$LIBS
9450 LIBS="-ldld  $LIBS"
9451 cat >conftest.$ac_ext <<_ACEOF
9452 /* confdefs.h.  */
9453 _ACEOF
9454 cat confdefs.h >>conftest.$ac_ext
9455 cat >>conftest.$ac_ext <<_ACEOF
9456 /* end confdefs.h.  */
9457
9458 /* Override any GCC internal prototype to avoid an error.
9459    Use char because int might match the return type of a GCC
9460    builtin and then its argument prototype would still apply.  */
9461 #ifdef __cplusplus
9462 extern "C"
9463 #endif
9464 char shl_load ();
9465 int
9466 main ()
9467 {
9468 return shl_load ();
9469   ;
9470   return 0;
9471 }
9472 _ACEOF
9473 rm -f conftest.$ac_objext conftest$ac_exeext
9474 if { (ac_try="$ac_link"
9475 case "(($ac_try" in
9476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9477   *) ac_try_echo=$ac_try;;
9478 esac
9479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9480   (eval "$ac_link") 2>conftest.er1
9481   ac_status=$?
9482   grep -v '^ *+' conftest.er1 >conftest.err
9483   rm -f conftest.er1
9484   cat conftest.err >&5
9485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486   (exit $ac_status); } && {
9487          test -z "$ac_c_werror_flag" ||
9488          test ! -s conftest.err
9489        } && test -s conftest$ac_exeext &&
9490        $as_test_x conftest$ac_exeext; then
9491   ac_cv_lib_dld_shl_load=yes
9492 else
9493   echo "$as_me: failed program was:" >&5
9494 sed 's/^/| /' conftest.$ac_ext >&5
9495
9496         ac_cv_lib_dld_shl_load=no
9497 fi
9498
9499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9500       conftest$ac_exeext conftest.$ac_ext
9501 LIBS=$ac_check_lib_save_LIBS
9502 fi
9503 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9504 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9505 if test $ac_cv_lib_dld_shl_load = yes; then
9506   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9507 else
9508   { echo "$as_me:$LINENO: checking for dlopen" >&5
9509 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9510 if test "${ac_cv_func_dlopen+set}" = set; then
9511   echo $ECHO_N "(cached) $ECHO_C" >&6
9512 else
9513   cat >conftest.$ac_ext <<_ACEOF
9514 /* confdefs.h.  */
9515 _ACEOF
9516 cat confdefs.h >>conftest.$ac_ext
9517 cat >>conftest.$ac_ext <<_ACEOF
9518 /* end confdefs.h.  */
9519 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9520    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9521 #define dlopen innocuous_dlopen
9522
9523 /* System header to define __stub macros and hopefully few prototypes,
9524     which can conflict with char dlopen (); below.
9525     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9526     <limits.h> exists even on freestanding compilers.  */
9527
9528 #ifdef __STDC__
9529 # include <limits.h>
9530 #else
9531 # include <assert.h>
9532 #endif
9533
9534 #undef dlopen
9535
9536 /* Override any GCC internal prototype to avoid an error.
9537    Use char because int might match the return type of a GCC
9538    builtin and then its argument prototype would still apply.  */
9539 #ifdef __cplusplus
9540 extern "C"
9541 #endif
9542 char dlopen ();
9543 /* The GNU C library defines this for functions which it implements
9544     to always fail with ENOSYS.  Some functions are actually named
9545     something starting with __ and the normal name is an alias.  */
9546 #if defined __stub_dlopen || defined __stub___dlopen
9547 choke me
9548 #endif
9549
9550 int
9551 main ()
9552 {
9553 return dlopen ();
9554   ;
9555   return 0;
9556 }
9557 _ACEOF
9558 rm -f conftest.$ac_objext conftest$ac_exeext
9559 if { (ac_try="$ac_link"
9560 case "(($ac_try" in
9561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9562   *) ac_try_echo=$ac_try;;
9563 esac
9564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9565   (eval "$ac_link") 2>conftest.er1
9566   ac_status=$?
9567   grep -v '^ *+' conftest.er1 >conftest.err
9568   rm -f conftest.er1
9569   cat conftest.err >&5
9570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571   (exit $ac_status); } && {
9572          test -z "$ac_c_werror_flag" ||
9573          test ! -s conftest.err
9574        } && test -s conftest$ac_exeext &&
9575        $as_test_x conftest$ac_exeext; then
9576   ac_cv_func_dlopen=yes
9577 else
9578   echo "$as_me: failed program was:" >&5
9579 sed 's/^/| /' conftest.$ac_ext >&5
9580
9581         ac_cv_func_dlopen=no
9582 fi
9583
9584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9585       conftest$ac_exeext conftest.$ac_ext
9586 fi
9587 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9588 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9589 if test $ac_cv_func_dlopen = yes; then
9590   lt_cv_dlopen="dlopen"
9591 else
9592   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9593 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9594 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9595   echo $ECHO_N "(cached) $ECHO_C" >&6
9596 else
9597   ac_check_lib_save_LIBS=$LIBS
9598 LIBS="-ldl  $LIBS"
9599 cat >conftest.$ac_ext <<_ACEOF
9600 /* confdefs.h.  */
9601 _ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h.  */
9605
9606 /* Override any GCC internal prototype to avoid an error.
9607    Use char because int might match the return type of a GCC
9608    builtin and then its argument prototype would still apply.  */
9609 #ifdef __cplusplus
9610 extern "C"
9611 #endif
9612 char dlopen ();
9613 int
9614 main ()
9615 {
9616 return dlopen ();
9617   ;
9618   return 0;
9619 }
9620 _ACEOF
9621 rm -f conftest.$ac_objext conftest$ac_exeext
9622 if { (ac_try="$ac_link"
9623 case "(($ac_try" in
9624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9625   *) ac_try_echo=$ac_try;;
9626 esac
9627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9628   (eval "$ac_link") 2>conftest.er1
9629   ac_status=$?
9630   grep -v '^ *+' conftest.er1 >conftest.err
9631   rm -f conftest.er1
9632   cat conftest.err >&5
9633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634   (exit $ac_status); } && {
9635          test -z "$ac_c_werror_flag" ||
9636          test ! -s conftest.err
9637        } && test -s conftest$ac_exeext &&
9638        $as_test_x conftest$ac_exeext; then
9639   ac_cv_lib_dl_dlopen=yes
9640 else
9641   echo "$as_me: failed program was:" >&5
9642 sed 's/^/| /' conftest.$ac_ext >&5
9643
9644         ac_cv_lib_dl_dlopen=no
9645 fi
9646
9647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9648       conftest$ac_exeext conftest.$ac_ext
9649 LIBS=$ac_check_lib_save_LIBS
9650 fi
9651 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9652 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9653 if test $ac_cv_lib_dl_dlopen = yes; then
9654   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9655 else
9656   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9657 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9658 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9659   echo $ECHO_N "(cached) $ECHO_C" >&6
9660 else
9661   ac_check_lib_save_LIBS=$LIBS
9662 LIBS="-lsvld  $LIBS"
9663 cat >conftest.$ac_ext <<_ACEOF
9664 /* confdefs.h.  */
9665 _ACEOF
9666 cat confdefs.h >>conftest.$ac_ext
9667 cat >>conftest.$ac_ext <<_ACEOF
9668 /* end confdefs.h.  */
9669
9670 /* Override any GCC internal prototype to avoid an error.
9671    Use char because int might match the return type of a GCC
9672    builtin and then its argument prototype would still apply.  */
9673 #ifdef __cplusplus
9674 extern "C"
9675 #endif
9676 char dlopen ();
9677 int
9678 main ()
9679 {
9680 return dlopen ();
9681   ;
9682   return 0;
9683 }
9684 _ACEOF
9685 rm -f conftest.$ac_objext conftest$ac_exeext
9686 if { (ac_try="$ac_link"
9687 case "(($ac_try" in
9688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689   *) ac_try_echo=$ac_try;;
9690 esac
9691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692   (eval "$ac_link") 2>conftest.er1
9693   ac_status=$?
9694   grep -v '^ *+' conftest.er1 >conftest.err
9695   rm -f conftest.er1
9696   cat conftest.err >&5
9697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698   (exit $ac_status); } && {
9699          test -z "$ac_c_werror_flag" ||
9700          test ! -s conftest.err
9701        } && test -s conftest$ac_exeext &&
9702        $as_test_x conftest$ac_exeext; then
9703   ac_cv_lib_svld_dlopen=yes
9704 else
9705   echo "$as_me: failed program was:" >&5
9706 sed 's/^/| /' conftest.$ac_ext >&5
9707
9708         ac_cv_lib_svld_dlopen=no
9709 fi
9710
9711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9712       conftest$ac_exeext conftest.$ac_ext
9713 LIBS=$ac_check_lib_save_LIBS
9714 fi
9715 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9716 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9717 if test $ac_cv_lib_svld_dlopen = yes; then
9718   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9719 else
9720   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9721 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9722 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9723   echo $ECHO_N "(cached) $ECHO_C" >&6
9724 else
9725   ac_check_lib_save_LIBS=$LIBS
9726 LIBS="-ldld  $LIBS"
9727 cat >conftest.$ac_ext <<_ACEOF
9728 /* confdefs.h.  */
9729 _ACEOF
9730 cat confdefs.h >>conftest.$ac_ext
9731 cat >>conftest.$ac_ext <<_ACEOF
9732 /* end confdefs.h.  */
9733
9734 /* Override any GCC internal prototype to avoid an error.
9735    Use char because int might match the return type of a GCC
9736    builtin and then its argument prototype would still apply.  */
9737 #ifdef __cplusplus
9738 extern "C"
9739 #endif
9740 char dld_link ();
9741 int
9742 main ()
9743 {
9744 return dld_link ();
9745   ;
9746   return 0;
9747 }
9748 _ACEOF
9749 rm -f conftest.$ac_objext conftest$ac_exeext
9750 if { (ac_try="$ac_link"
9751 case "(($ac_try" in
9752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9753   *) ac_try_echo=$ac_try;;
9754 esac
9755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9756   (eval "$ac_link") 2>conftest.er1
9757   ac_status=$?
9758   grep -v '^ *+' conftest.er1 >conftest.err
9759   rm -f conftest.er1
9760   cat conftest.err >&5
9761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762   (exit $ac_status); } && {
9763          test -z "$ac_c_werror_flag" ||
9764          test ! -s conftest.err
9765        } && test -s conftest$ac_exeext &&
9766        $as_test_x conftest$ac_exeext; then
9767   ac_cv_lib_dld_dld_link=yes
9768 else
9769   echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.$ac_ext >&5
9771
9772         ac_cv_lib_dld_dld_link=no
9773 fi
9774
9775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9776       conftest$ac_exeext conftest.$ac_ext
9777 LIBS=$ac_check_lib_save_LIBS
9778 fi
9779 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9780 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9781 if test $ac_cv_lib_dld_dld_link = yes; then
9782   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9783 fi
9784
9785
9786 fi
9787
9788
9789 fi
9790
9791
9792 fi
9793
9794
9795 fi
9796
9797
9798 fi
9799
9800     ;;
9801   esac
9802
9803   if test "x$lt_cv_dlopen" != xno; then
9804     enable_dlopen=yes
9805   else
9806     enable_dlopen=no
9807   fi
9808
9809   case $lt_cv_dlopen in
9810   dlopen)
9811     save_CPPFLAGS="$CPPFLAGS"
9812     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9813
9814     save_LDFLAGS="$LDFLAGS"
9815     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9816
9817     save_LIBS="$LIBS"
9818     LIBS="$lt_cv_dlopen_libs $LIBS"
9819
9820     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9821 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9822 if test "${lt_cv_dlopen_self+set}" = set; then
9823   echo $ECHO_N "(cached) $ECHO_C" >&6
9824 else
9825           if test "$cross_compiling" = yes; then :
9826   lt_cv_dlopen_self=cross
9827 else
9828   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9829   lt_status=$lt_dlunknown
9830   cat > conftest.$ac_ext <<EOF
9831 #line 9831 "configure"
9832 #include "confdefs.h"
9833
9834 #if HAVE_DLFCN_H
9835 #include <dlfcn.h>
9836 #endif
9837
9838 #include <stdio.h>
9839
9840 #ifdef RTLD_GLOBAL
9841 #  define LT_DLGLOBAL           RTLD_GLOBAL
9842 #else
9843 #  ifdef DL_GLOBAL
9844 #    define LT_DLGLOBAL         DL_GLOBAL
9845 #  else
9846 #    define LT_DLGLOBAL         0
9847 #  endif
9848 #endif
9849
9850 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9851    find out it does not work in some platform. */
9852 #ifndef LT_DLLAZY_OR_NOW
9853 #  ifdef RTLD_LAZY
9854 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9855 #  else
9856 #    ifdef DL_LAZY
9857 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9858 #    else
9859 #      ifdef RTLD_NOW
9860 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9861 #      else
9862 #        ifdef DL_NOW
9863 #          define LT_DLLAZY_OR_NOW      DL_NOW
9864 #        else
9865 #          define LT_DLLAZY_OR_NOW      0
9866 #        endif
9867 #      endif
9868 #    endif
9869 #  endif
9870 #endif
9871
9872 #ifdef __cplusplus
9873 extern "C" void exit (int);
9874 #endif
9875
9876 void fnord() { int i=42;}
9877 int main ()
9878 {
9879   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9880   int status = $lt_dlunknown;
9881
9882   if (self)
9883     {
9884       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9885       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9886       /* dlclose (self); */
9887     }
9888   else
9889     puts (dlerror ());
9890
9891     exit (status);
9892 }
9893 EOF
9894   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9895   (eval $ac_link) 2>&5
9896   ac_status=$?
9897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9899     (./conftest; exit; ) >&5 2>/dev/null
9900     lt_status=$?
9901     case x$lt_status in
9902       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9903       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9904       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9905     esac
9906   else :
9907     # compilation failed
9908     lt_cv_dlopen_self=no
9909   fi
9910 fi
9911 rm -fr conftest*
9912
9913
9914 fi
9915 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9916 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9917
9918     if test "x$lt_cv_dlopen_self" = xyes; then
9919       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9920       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9921 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9922 if test "${lt_cv_dlopen_self_static+set}" = set; then
9923   echo $ECHO_N "(cached) $ECHO_C" >&6
9924 else
9925           if test "$cross_compiling" = yes; then :
9926   lt_cv_dlopen_self_static=cross
9927 else
9928   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9929   lt_status=$lt_dlunknown
9930   cat > conftest.$ac_ext <<EOF
9931 #line 9931 "configure"
9932 #include "confdefs.h"
9933
9934 #if HAVE_DLFCN_H
9935 #include <dlfcn.h>
9936 #endif
9937
9938 #include <stdio.h>
9939
9940 #ifdef RTLD_GLOBAL
9941 #  define LT_DLGLOBAL           RTLD_GLOBAL
9942 #else
9943 #  ifdef DL_GLOBAL
9944 #    define LT_DLGLOBAL         DL_GLOBAL
9945 #  else
9946 #    define LT_DLGLOBAL         0
9947 #  endif
9948 #endif
9949
9950 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9951    find out it does not work in some platform. */
9952 #ifndef LT_DLLAZY_OR_NOW
9953 #  ifdef RTLD_LAZY
9954 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9955 #  else
9956 #    ifdef DL_LAZY
9957 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9958 #    else
9959 #      ifdef RTLD_NOW
9960 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9961 #      else
9962 #        ifdef DL_NOW
9963 #          define LT_DLLAZY_OR_NOW      DL_NOW
9964 #        else
9965 #          define LT_DLLAZY_OR_NOW      0
9966 #        endif
9967 #      endif
9968 #    endif
9969 #  endif
9970 #endif
9971
9972 #ifdef __cplusplus
9973 extern "C" void exit (int);
9974 #endif
9975
9976 void fnord() { int i=42;}
9977 int main ()
9978 {
9979   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9980   int status = $lt_dlunknown;
9981
9982   if (self)
9983     {
9984       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9985       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9986       /* dlclose (self); */
9987     }
9988   else
9989     puts (dlerror ());
9990
9991     exit (status);
9992 }
9993 EOF
9994   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9995   (eval $ac_link) 2>&5
9996   ac_status=$?
9997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9999     (./conftest; exit; ) >&5 2>/dev/null
10000     lt_status=$?
10001     case x$lt_status in
10002       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10003       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10004       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10005     esac
10006   else :
10007     # compilation failed
10008     lt_cv_dlopen_self_static=no
10009   fi
10010 fi
10011 rm -fr conftest*
10012
10013
10014 fi
10015 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10016 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10017     fi
10018
10019     CPPFLAGS="$save_CPPFLAGS"
10020     LDFLAGS="$save_LDFLAGS"
10021     LIBS="$save_LIBS"
10022     ;;
10023   esac
10024
10025   case $lt_cv_dlopen_self in
10026   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10027   *) enable_dlopen_self=unknown ;;
10028   esac
10029
10030   case $lt_cv_dlopen_self_static in
10031   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10032   *) enable_dlopen_self_static=unknown ;;
10033   esac
10034 fi
10035
10036
10037 # Report which library types will actually be built
10038 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10039 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10040 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10041 echo "${ECHO_T}$can_build_shared" >&6; }
10042
10043 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10044 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10045 test "$can_build_shared" = "no" && enable_shared=no
10046
10047 # On AIX, shared libraries and static libraries use the same namespace, and
10048 # are all built from PIC.
10049 case $host_os in
10050 aix3*)
10051   test "$enable_shared" = yes && enable_static=no
10052   if test -n "$RANLIB"; then
10053     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10054     postinstall_cmds='$RANLIB $lib'
10055   fi
10056   ;;
10057
10058 aix4* | aix5*)
10059   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10060     test "$enable_shared" = yes && enable_static=no
10061   fi
10062     ;;
10063 esac
10064 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10065 echo "${ECHO_T}$enable_shared" >&6; }
10066
10067 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10068 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10069 # Make sure either enable_shared or enable_static is yes.
10070 test "$enable_shared" = yes || enable_static=yes
10071 { echo "$as_me:$LINENO: result: $enable_static" >&5
10072 echo "${ECHO_T}$enable_static" >&6; }
10073
10074 # The else clause should only fire when bootstrapping the
10075 # libtool distribution, otherwise you forgot to ship ltmain.sh
10076 # with your package, and you will get complaints that there are
10077 # no rules to generate ltmain.sh.
10078 if test -f "$ltmain"; then
10079   # See if we are running on zsh, and set the options which allow our commands through
10080   # without removal of \ escapes.
10081   if test -n "${ZSH_VERSION+set}" ; then
10082     setopt NO_GLOB_SUBST
10083   fi
10084   # Now quote all the things that may contain metacharacters while being
10085   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10086   # variables and quote the copies for generation of the libtool script.
10087   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10088     SED SHELL STRIP \
10089     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10090     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10091     deplibs_check_method reload_flag reload_cmds need_locks \
10092     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10093     lt_cv_sys_global_symbol_to_c_name_address \
10094     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10095     old_postinstall_cmds old_postuninstall_cmds \
10096     compiler \
10097     CC \
10098     LD \
10099     lt_prog_compiler_wl \
10100     lt_prog_compiler_pic \
10101     lt_prog_compiler_static \
10102     lt_prog_compiler_no_builtin_flag \
10103     export_dynamic_flag_spec \
10104     thread_safe_flag_spec \
10105     whole_archive_flag_spec \
10106     enable_shared_with_static_runtimes \
10107     old_archive_cmds \
10108     old_archive_from_new_cmds \
10109     predep_objects \
10110     postdep_objects \
10111     predeps \
10112     postdeps \
10113     compiler_lib_search_path \
10114     archive_cmds \
10115     archive_expsym_cmds \
10116     postinstall_cmds \
10117     postuninstall_cmds \
10118     old_archive_from_expsyms_cmds \
10119     allow_undefined_flag \
10120     no_undefined_flag \
10121     export_symbols_cmds \
10122     hardcode_libdir_flag_spec \
10123     hardcode_libdir_flag_spec_ld \
10124     hardcode_libdir_separator \
10125     hardcode_automatic \
10126     module_cmds \
10127     module_expsym_cmds \
10128     lt_cv_prog_compiler_c_o \
10129     exclude_expsyms \
10130     include_expsyms; do
10131
10132     case $var in
10133     old_archive_cmds | \
10134     old_archive_from_new_cmds | \
10135     archive_cmds | \
10136     archive_expsym_cmds | \
10137     module_cmds | \
10138     module_expsym_cmds | \
10139     old_archive_from_expsyms_cmds | \
10140     export_symbols_cmds | \
10141     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10142     postinstall_cmds | postuninstall_cmds | \
10143     old_postinstall_cmds | old_postuninstall_cmds | \
10144     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10145       # Double-quote double-evaled strings.
10146       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10147       ;;
10148     *)
10149       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10150       ;;
10151     esac
10152   done
10153
10154   case $lt_echo in
10155   *'\$0 --fallback-echo"')
10156     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10157     ;;
10158   esac
10159
10160 cfgfile="${ofile}T"
10161   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10162   $rm -f "$cfgfile"
10163   { echo "$as_me:$LINENO: creating $ofile" >&5
10164 echo "$as_me: creating $ofile" >&6;}
10165
10166   cat <<__EOF__ >> "$cfgfile"
10167 #! $SHELL
10168
10169 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10170 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10171 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10172 #
10173 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10174 # Free Software Foundation, Inc.
10175 #
10176 # This file is part of GNU Libtool:
10177 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10178 #
10179 # This program is free software; you can redistribute it and/or modify
10180 # it under the terms of the GNU General Public License as published by
10181 # the Free Software Foundation; either version 2 of the License, or
10182 # (at your option) any later version.
10183 #
10184 # This program is distributed in the hope that it will be useful, but
10185 # WITHOUT ANY WARRANTY; without even the implied warranty of
10186 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10187 # General Public License for more details.
10188 #
10189 # You should have received a copy of the GNU General Public License
10190 # along with this program; if not, write to the Free Software
10191 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10192 #
10193 # As a special exception to the GNU General Public License, if you
10194 # distribute this file as part of a program that contains a
10195 # configuration script generated by Autoconf, you may include it under
10196 # the same distribution terms that you use for the rest of that program.
10197
10198 # A sed program that does not truncate output.
10199 SED=$lt_SED
10200
10201 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10202 Xsed="$SED -e 1s/^X//"
10203
10204 # The HP-UX ksh and POSIX shell print the target directory to stdout
10205 # if CDPATH is set.
10206 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10207
10208 # The names of the tagged configurations supported by this script.
10209 available_tags=
10210
10211 # ### BEGIN LIBTOOL CONFIG
10212
10213 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10214
10215 # Shell to use when invoking shell scripts.
10216 SHELL=$lt_SHELL
10217
10218 # Whether or not to build shared libraries.
10219 build_libtool_libs=$enable_shared
10220
10221 # Whether or not to build static libraries.
10222 build_old_libs=$enable_static
10223
10224 # Whether or not to add -lc for building shared libraries.
10225 build_libtool_need_lc=$archive_cmds_need_lc
10226
10227 # Whether or not to disallow shared libs when runtime libs are static
10228 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10229
10230 # Whether or not to optimize for fast installation.
10231 fast_install=$enable_fast_install
10232
10233 # The host system.
10234 host_alias=$host_alias
10235 host=$host
10236 host_os=$host_os
10237
10238 # The build system.
10239 build_alias=$build_alias
10240 build=$build
10241 build_os=$build_os
10242
10243 # An echo program that does not interpret backslashes.
10244 echo=$lt_echo
10245
10246 # The archiver.
10247 AR=$lt_AR
10248 AR_FLAGS=$lt_AR_FLAGS
10249
10250 # A C compiler.
10251 LTCC=$lt_LTCC
10252
10253 # LTCC compiler flags.
10254 LTCFLAGS=$lt_LTCFLAGS
10255
10256 # A language-specific compiler.
10257 CC=$lt_compiler
10258
10259 # Is the compiler the GNU C compiler?
10260 with_gcc=$GCC
10261
10262 # An ERE matcher.
10263 EGREP=$lt_EGREP
10264
10265 # The linker used to build libraries.
10266 LD=$lt_LD
10267
10268 # Whether we need hard or soft links.
10269 LN_S=$lt_LN_S
10270
10271 # A BSD-compatible nm program.
10272 NM=$lt_NM
10273
10274 # A symbol stripping program
10275 STRIP=$lt_STRIP
10276
10277 # Used to examine libraries when file_magic_cmd begins "file"
10278 MAGIC_CMD=$MAGIC_CMD
10279
10280 # Used on cygwin: DLL creation program.
10281 DLLTOOL="$DLLTOOL"
10282
10283 # Used on cygwin: object dumper.
10284 OBJDUMP="$OBJDUMP"
10285
10286 # Used on cygwin: assembler.
10287 AS="$AS"
10288
10289 # The name of the directory that contains temporary libtool files.
10290 objdir=$objdir
10291
10292 # How to create reloadable object files.
10293 reload_flag=$lt_reload_flag
10294 reload_cmds=$lt_reload_cmds
10295
10296 # How to pass a linker flag through the compiler.
10297 wl=$lt_lt_prog_compiler_wl
10298
10299 # Object file suffix (normally "o").
10300 objext="$ac_objext"
10301
10302 # Old archive suffix (normally "a").
10303 libext="$libext"
10304
10305 # Shared library suffix (normally ".so").
10306 shrext_cmds='$shrext_cmds'
10307
10308 # Executable file suffix (normally "").
10309 exeext="$exeext"
10310
10311 # Additional compiler flags for building library objects.
10312 pic_flag=$lt_lt_prog_compiler_pic
10313 pic_mode=$pic_mode
10314
10315 # What is the maximum length of a command?
10316 max_cmd_len=$lt_cv_sys_max_cmd_len
10317
10318 # Does compiler simultaneously support -c and -o options?
10319 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10320
10321 # Must we lock files when doing compilation?
10322 need_locks=$lt_need_locks
10323
10324 # Do we need the lib prefix for modules?
10325 need_lib_prefix=$need_lib_prefix
10326
10327 # Do we need a version for libraries?
10328 need_version=$need_version
10329
10330 # Whether dlopen is supported.
10331 dlopen_support=$enable_dlopen
10332
10333 # Whether dlopen of programs is supported.
10334 dlopen_self=$enable_dlopen_self
10335
10336 # Whether dlopen of statically linked programs is supported.
10337 dlopen_self_static=$enable_dlopen_self_static
10338
10339 # Compiler flag to prevent dynamic linking.
10340 link_static_flag=$lt_lt_prog_compiler_static
10341
10342 # Compiler flag to turn off builtin functions.
10343 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10344
10345 # Compiler flag to allow reflexive dlopens.
10346 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10347
10348 # Compiler flag to generate shared objects directly from archives.
10349 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10350
10351 # Compiler flag to generate thread-safe objects.
10352 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10353
10354 # Library versioning type.
10355 version_type=$version_type
10356
10357 # Format of library name prefix.
10358 libname_spec=$lt_libname_spec
10359
10360 # List of archive names.  First name is the real one, the rest are links.
10361 # The last name is the one that the linker finds with -lNAME.
10362 library_names_spec=$lt_library_names_spec
10363
10364 # The coded name of the library, if different from the real name.
10365 soname_spec=$lt_soname_spec
10366
10367 # Commands used to build and install an old-style archive.
10368 RANLIB=$lt_RANLIB
10369 old_archive_cmds=$lt_old_archive_cmds
10370 old_postinstall_cmds=$lt_old_postinstall_cmds
10371 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10372
10373 # Create an old-style archive from a shared archive.
10374 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10375
10376 # Create a temporary old-style archive to link instead of a shared archive.
10377 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10378
10379 # Commands used to build and install a shared archive.
10380 archive_cmds=$lt_archive_cmds
10381 archive_expsym_cmds=$lt_archive_expsym_cmds
10382 postinstall_cmds=$lt_postinstall_cmds
10383 postuninstall_cmds=$lt_postuninstall_cmds
10384
10385 # Commands used to build a loadable module (assumed same as above if empty)
10386 module_cmds=$lt_module_cmds
10387 module_expsym_cmds=$lt_module_expsym_cmds
10388
10389 # Commands to strip libraries.
10390 old_striplib=$lt_old_striplib
10391 striplib=$lt_striplib
10392
10393 # Dependencies to place before the objects being linked to create a
10394 # shared library.
10395 predep_objects=$lt_predep_objects
10396
10397 # Dependencies to place after the objects being linked to create a
10398 # shared library.
10399 postdep_objects=$lt_postdep_objects
10400
10401 # Dependencies to place before the objects being linked to create a
10402 # shared library.
10403 predeps=$lt_predeps
10404
10405 # Dependencies to place after the objects being linked to create a
10406 # shared library.
10407 postdeps=$lt_postdeps
10408
10409 # The library search path used internally by the compiler when linking
10410 # a shared library.
10411 compiler_lib_search_path=$lt_compiler_lib_search_path
10412
10413 # Method to check whether dependent libraries are shared objects.
10414 deplibs_check_method=$lt_deplibs_check_method
10415
10416 # Command to use when deplibs_check_method == file_magic.
10417 file_magic_cmd=$lt_file_magic_cmd
10418
10419 # Flag that allows shared libraries with undefined symbols to be built.
10420 allow_undefined_flag=$lt_allow_undefined_flag
10421
10422 # Flag that forces no undefined symbols.
10423 no_undefined_flag=$lt_no_undefined_flag
10424
10425 # Commands used to finish a libtool library installation in a directory.
10426 finish_cmds=$lt_finish_cmds
10427
10428 # Same as above, but a single script fragment to be evaled but not shown.
10429 finish_eval=$lt_finish_eval
10430
10431 # Take the output of nm and produce a listing of raw symbols and C names.
10432 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10433
10434 # Transform the output of nm in a proper C declaration
10435 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10436
10437 # Transform the output of nm in a C name address pair
10438 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10439
10440 # This is the shared library runtime path variable.
10441 runpath_var=$runpath_var
10442
10443 # This is the shared library path variable.
10444 shlibpath_var=$shlibpath_var
10445
10446 # Is shlibpath searched before the hard-coded library search path?
10447 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10448
10449 # How to hardcode a shared library path into an executable.
10450 hardcode_action=$hardcode_action
10451
10452 # Whether we should hardcode library paths into libraries.
10453 hardcode_into_libs=$hardcode_into_libs
10454
10455 # Flag to hardcode \$libdir into a binary during linking.
10456 # This must work even if \$libdir does not exist.
10457 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10458
10459 # If ld is used when linking, flag to hardcode \$libdir into
10460 # a binary during linking. This must work even if \$libdir does
10461 # not exist.
10462 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10463
10464 # Whether we need a single -rpath flag with a separated argument.
10465 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10466
10467 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10468 # resulting binary.
10469 hardcode_direct=$hardcode_direct
10470
10471 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10472 # resulting binary.
10473 hardcode_minus_L=$hardcode_minus_L
10474
10475 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10476 # the resulting binary.
10477 hardcode_shlibpath_var=$hardcode_shlibpath_var
10478
10479 # Set to yes if building a shared library automatically hardcodes DIR into the library
10480 # and all subsequent libraries and executables linked against it.
10481 hardcode_automatic=$hardcode_automatic
10482
10483 # Variables whose values should be saved in libtool wrapper scripts and
10484 # restored at relink time.
10485 variables_saved_for_relink="$variables_saved_for_relink"
10486
10487 # Whether libtool must link a program against all its dependency libraries.
10488 link_all_deplibs=$link_all_deplibs
10489
10490 # Compile-time system search path for libraries
10491 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10492
10493 # Run-time system search path for libraries
10494 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10495
10496 # Fix the shell variable \$srcfile for the compiler.
10497 fix_srcfile_path="$fix_srcfile_path"
10498
10499 # Set to yes if exported symbols are required.
10500 always_export_symbols=$always_export_symbols
10501
10502 # The commands to list exported symbols.
10503 export_symbols_cmds=$lt_export_symbols_cmds
10504
10505 # The commands to extract the exported symbol list from a shared archive.
10506 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10507
10508 # Symbols that should not be listed in the preloaded symbols.
10509 exclude_expsyms=$lt_exclude_expsyms
10510
10511 # Symbols that must always be exported.
10512 include_expsyms=$lt_include_expsyms
10513
10514 # ### END LIBTOOL CONFIG
10515
10516 __EOF__
10517
10518
10519   case $host_os in
10520   aix3*)
10521     cat <<\EOF >> "$cfgfile"
10522
10523 # AIX sometimes has problems with the GCC collect2 program.  For some
10524 # reason, if we set the COLLECT_NAMES environment variable, the problems
10525 # vanish in a puff of smoke.
10526 if test "X${COLLECT_NAMES+set}" != Xset; then
10527   COLLECT_NAMES=
10528   export COLLECT_NAMES
10529 fi
10530 EOF
10531     ;;
10532   esac
10533
10534   # We use sed instead of cat because bash on DJGPP gets confused if
10535   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10536   # text mode, it properly converts lines to CR/LF.  This bash problem
10537   # is reportedly fixed, but why not run on old versions too?
10538   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10539
10540   mv -f "$cfgfile" "$ofile" || \
10541     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10542   chmod +x "$ofile"
10543
10544 else
10545   # If there is no Makefile yet, we rely on a make rule to execute
10546   # `config.status --recheck' to rerun these tests and create the
10547   # libtool script then.
10548   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10549   if test -f "$ltmain_in"; then
10550     test -f Makefile && make "$ltmain"
10551   fi
10552 fi
10553
10554
10555 ac_ext=c
10556 ac_cpp='$CPP $CPPFLAGS'
10557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10560
10561 CC="$lt_save_CC"
10562
10563
10564 # Check whether --with-tags was given.
10565 if test "${with_tags+set}" = set; then
10566   withval=$with_tags; tagnames="$withval"
10567 fi
10568
10569
10570 if test -f "$ltmain" && test -n "$tagnames"; then
10571   if test ! -f "${ofile}"; then
10572     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10573 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10574   fi
10575
10576   if test -z "$LTCC"; then
10577     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10578     if test -z "$LTCC"; then
10579       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10580 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10581     else
10582       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10583 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10584     fi
10585   fi
10586   if test -z "$LTCFLAGS"; then
10587     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10588   fi
10589
10590   # Extract list of available tagged configurations in $ofile.
10591   # Note that this assumes the entire list is on one line.
10592   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10593
10594   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10595   for tagname in $tagnames; do
10596     IFS="$lt_save_ifs"
10597     # Check whether tagname contains only valid characters
10598     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10599     "") ;;
10600     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10601 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10602    { (exit 1); exit 1; }; }
10603         ;;
10604     esac
10605
10606     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10607     then
10608       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10609 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10610    { (exit 1); exit 1; }; }
10611     fi
10612
10613     # Update the list of available tags.
10614     if test -n "$tagname"; then
10615       echo appending configuration tag \"$tagname\" to $ofile
10616
10617       case $tagname in
10618       CXX)
10619         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10620             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10621             (test "X$CXX" != "Xg++"))) ; then
10622           ac_ext=cpp
10623 ac_cpp='$CXXCPP $CPPFLAGS'
10624 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10625 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10626 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10627
10628
10629
10630
10631 archive_cmds_need_lc_CXX=no
10632 allow_undefined_flag_CXX=
10633 always_export_symbols_CXX=no
10634 archive_expsym_cmds_CXX=
10635 export_dynamic_flag_spec_CXX=
10636 hardcode_direct_CXX=no
10637 hardcode_libdir_flag_spec_CXX=
10638 hardcode_libdir_flag_spec_ld_CXX=
10639 hardcode_libdir_separator_CXX=
10640 hardcode_minus_L_CXX=no
10641 hardcode_shlibpath_var_CXX=unsupported
10642 hardcode_automatic_CXX=no
10643 module_cmds_CXX=
10644 module_expsym_cmds_CXX=
10645 link_all_deplibs_CXX=unknown
10646 old_archive_cmds_CXX=$old_archive_cmds
10647 no_undefined_flag_CXX=
10648 whole_archive_flag_spec_CXX=
10649 enable_shared_with_static_runtimes_CXX=no
10650
10651 # Dependencies to place before and after the object being linked:
10652 predep_objects_CXX=
10653 postdep_objects_CXX=
10654 predeps_CXX=
10655 postdeps_CXX=
10656 compiler_lib_search_path_CXX=
10657
10658 # Source file extension for C++ test sources.
10659 ac_ext=cpp
10660
10661 # Object file extension for compiled C++ test sources.
10662 objext=o
10663 objext_CXX=$objext
10664
10665 # Code to be used in simple compile tests
10666 lt_simple_compile_test_code="int some_variable = 0;\n"
10667
10668 # Code to be used in simple link tests
10669 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10670
10671 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10672
10673 # If no C compiler was specified, use CC.
10674 LTCC=${LTCC-"$CC"}
10675
10676 # If no C compiler flags were specified, use CFLAGS.
10677 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10678
10679 # Allow CC to be a program name with arguments.
10680 compiler=$CC
10681
10682
10683 # save warnings/boilerplate of simple test code
10684 ac_outfile=conftest.$ac_objext
10685 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10686 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10687 _lt_compiler_boilerplate=`cat conftest.err`
10688 $rm conftest*
10689
10690 ac_outfile=conftest.$ac_objext
10691 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10692 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10693 _lt_linker_boilerplate=`cat conftest.err`
10694 $rm conftest*
10695
10696
10697 # Allow CC to be a program name with arguments.
10698 lt_save_CC=$CC
10699 lt_save_LD=$LD
10700 lt_save_GCC=$GCC
10701 GCC=$GXX
10702 lt_save_with_gnu_ld=$with_gnu_ld
10703 lt_save_path_LD=$lt_cv_path_LD
10704 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10705   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10706 else
10707   $as_unset lt_cv_prog_gnu_ld
10708 fi
10709 if test -n "${lt_cv_path_LDCXX+set}"; then
10710   lt_cv_path_LD=$lt_cv_path_LDCXX
10711 else
10712   $as_unset lt_cv_path_LD
10713 fi
10714 test -z "${LDCXX+set}" || LD=$LDCXX
10715 CC=${CXX-"c++"}
10716 compiler=$CC
10717 compiler_CXX=$CC
10718 for cc_temp in $compiler""; do
10719   case $cc_temp in
10720     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10721     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10722     \-*) ;;
10723     *) break;;
10724   esac
10725 done
10726 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10727
10728
10729 # We don't want -fno-exception wen compiling C++ code, so set the
10730 # no_builtin_flag separately
10731 if test "$GXX" = yes; then
10732   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10733 else
10734   lt_prog_compiler_no_builtin_flag_CXX=
10735 fi
10736
10737 if test "$GXX" = yes; then
10738   # Set up default GNU C++ configuration
10739
10740
10741 # Check whether --with-gnu-ld was given.
10742 if test "${with_gnu_ld+set}" = set; then
10743   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10744 else
10745   with_gnu_ld=no
10746 fi
10747
10748 ac_prog=ld
10749 if test "$GCC" = yes; then
10750   # Check if gcc -print-prog-name=ld gives a path.
10751   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10752 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10753   case $host in
10754   *-*-mingw*)
10755     # gcc leaves a trailing carriage return which upsets mingw
10756     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10757   *)
10758     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10759   esac
10760   case $ac_prog in
10761     # Accept absolute paths.
10762     [\\/]* | ?:[\\/]*)
10763       re_direlt='/[^/][^/]*/\.\./'
10764       # Canonicalize the pathname of ld
10765       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10766       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10767         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10768       done
10769       test -z "$LD" && LD="$ac_prog"
10770       ;;
10771   "")
10772     # If it fails, then pretend we aren't using GCC.
10773     ac_prog=ld
10774     ;;
10775   *)
10776     # If it is relative, then search for the first ld in PATH.
10777     with_gnu_ld=unknown
10778     ;;
10779   esac
10780 elif test "$with_gnu_ld" = yes; then
10781   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10782 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10783 else
10784   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10785 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10786 fi
10787 if test "${lt_cv_path_LD+set}" = set; then
10788   echo $ECHO_N "(cached) $ECHO_C" >&6
10789 else
10790   if test -z "$LD"; then
10791   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10792   for ac_dir in $PATH; do
10793     IFS="$lt_save_ifs"
10794     test -z "$ac_dir" && ac_dir=.
10795     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10796       lt_cv_path_LD="$ac_dir/$ac_prog"
10797       # Check to see if the program is GNU ld.  I'd rather use --version,
10798       # but apparently some variants of GNU ld only accept -v.
10799       # Break only if it was the GNU/non-GNU ld that we prefer.
10800       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10801       *GNU* | *'with BFD'*)
10802         test "$with_gnu_ld" != no && break
10803         ;;
10804       *)
10805         test "$with_gnu_ld" != yes && break
10806         ;;
10807       esac
10808     fi
10809   done
10810   IFS="$lt_save_ifs"
10811 else
10812   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10813 fi
10814 fi
10815
10816 LD="$lt_cv_path_LD"
10817 if test -n "$LD"; then
10818   { echo "$as_me:$LINENO: result: $LD" >&5
10819 echo "${ECHO_T}$LD" >&6; }
10820 else
10821   { echo "$as_me:$LINENO: result: no" >&5
10822 echo "${ECHO_T}no" >&6; }
10823 fi
10824 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10825 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10826    { (exit 1); exit 1; }; }
10827 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10828 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10829 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10830   echo $ECHO_N "(cached) $ECHO_C" >&6
10831 else
10832   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10833 case `$LD -v 2>&1 </dev/null` in
10834 *GNU* | *'with BFD'*)
10835   lt_cv_prog_gnu_ld=yes
10836   ;;
10837 *)
10838   lt_cv_prog_gnu_ld=no
10839   ;;
10840 esac
10841 fi
10842 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10843 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10844 with_gnu_ld=$lt_cv_prog_gnu_ld
10845
10846
10847
10848   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10849   # archiving commands below assume that GNU ld is being used.
10850   if test "$with_gnu_ld" = yes; then
10851     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10852     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'
10853
10854     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10855     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10856
10857     # If archive_cmds runs LD, not CC, wlarc should be empty
10858     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10859     #     investigate it a little bit more. (MM)
10860     wlarc='${wl}'
10861
10862     # ancient GNU ld didn't support --whole-archive et. al.
10863     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10864         grep 'no-whole-archive' > /dev/null; then
10865       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10866     else
10867       whole_archive_flag_spec_CXX=
10868     fi
10869   else
10870     with_gnu_ld=no
10871     wlarc=
10872
10873     # A generic and very simple default shared library creation
10874     # command for GNU C++ for the case where it uses the native
10875     # linker, instead of GNU ld.  If possible, this setting should
10876     # overridden to take advantage of the native linker features on
10877     # the platform it is being used on.
10878     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10879   fi
10880
10881   # Commands to make compiler produce verbose output that lists
10882   # what "hidden" libraries, object files and flags are used when
10883   # linking a shared library.
10884   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10885
10886 else
10887   GXX=no
10888   with_gnu_ld=no
10889   wlarc=
10890 fi
10891
10892 # PORTME: fill in a description of your system's C++ link characteristics
10893 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10894 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10895 ld_shlibs_CXX=yes
10896 case $host_os in
10897   aix3*)
10898     # FIXME: insert proper C++ library support
10899     ld_shlibs_CXX=no
10900     ;;
10901   aix4* | aix5*)
10902     if test "$host_cpu" = ia64; then
10903       # On IA64, the linker does run time linking by default, so we don't
10904       # have to do anything special.
10905       aix_use_runtimelinking=no
10906       exp_sym_flag='-Bexport'
10907       no_entry_flag=""
10908     else
10909       aix_use_runtimelinking=no
10910
10911       # Test if we are trying to use run time linking or normal
10912       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10913       # need to do runtime linking.
10914       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10915         for ld_flag in $LDFLAGS; do
10916           case $ld_flag in
10917           *-brtl*)
10918             aix_use_runtimelinking=yes
10919             break
10920             ;;
10921           esac
10922         done
10923         ;;
10924       esac
10925
10926       exp_sym_flag='-bexport'
10927       no_entry_flag='-bnoentry'
10928     fi
10929
10930     # When large executables or shared objects are built, AIX ld can
10931     # have problems creating the table of contents.  If linking a library
10932     # or program results in "error TOC overflow" add -mminimal-toc to
10933     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10934     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10935
10936     archive_cmds_CXX=''
10937     hardcode_direct_CXX=yes
10938     hardcode_libdir_separator_CXX=':'
10939     link_all_deplibs_CXX=yes
10940
10941     if test "$GXX" = yes; then
10942       case $host_os in aix4.[012]|aix4.[012].*)
10943       # We only want to do this on AIX 4.2 and lower, the check
10944       # below for broken collect2 doesn't work under 4.3+
10945         collect2name=`${CC} -print-prog-name=collect2`
10946         if test -f "$collect2name" && \
10947            strings "$collect2name" | grep resolve_lib_name >/dev/null
10948         then
10949           # We have reworked collect2
10950           hardcode_direct_CXX=yes
10951         else
10952           # We have old collect2
10953           hardcode_direct_CXX=unsupported
10954           # It fails to find uninstalled libraries when the uninstalled
10955           # path is not listed in the libpath.  Setting hardcode_minus_L
10956           # to unsupported forces relinking
10957           hardcode_minus_L_CXX=yes
10958           hardcode_libdir_flag_spec_CXX='-L$libdir'
10959           hardcode_libdir_separator_CXX=
10960         fi
10961         ;;
10962       esac
10963       shared_flag='-shared'
10964       if test "$aix_use_runtimelinking" = yes; then
10965         shared_flag="$shared_flag "'${wl}-G'
10966       fi
10967     else
10968       # not using gcc
10969       if test "$host_cpu" = ia64; then
10970         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10971         # chokes on -Wl,-G. The following line is correct:
10972         shared_flag='-G'
10973       else
10974         if test "$aix_use_runtimelinking" = yes; then
10975           shared_flag='${wl}-G'
10976         else
10977           shared_flag='${wl}-bM:SRE'
10978         fi
10979       fi
10980     fi
10981
10982     # It seems that -bexpall does not export symbols beginning with
10983     # underscore (_), so it is better to generate a list of symbols to export.
10984     always_export_symbols_CXX=yes
10985     if test "$aix_use_runtimelinking" = yes; then
10986       # Warning - without using the other runtime loading flags (-brtl),
10987       # -berok will link without error, but may produce a broken library.
10988       allow_undefined_flag_CXX='-berok'
10989       # Determine the default libpath from the value encoded in an empty executable.
10990       cat >conftest.$ac_ext <<_ACEOF
10991 /* confdefs.h.  */
10992 _ACEOF
10993 cat confdefs.h >>conftest.$ac_ext
10994 cat >>conftest.$ac_ext <<_ACEOF
10995 /* end confdefs.h.  */
10996
10997 int
10998 main ()
10999 {
11000
11001   ;
11002   return 0;
11003 }
11004 _ACEOF
11005 rm -f conftest.$ac_objext conftest$ac_exeext
11006 if { (ac_try="$ac_link"
11007 case "(($ac_try" in
11008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11009   *) ac_try_echo=$ac_try;;
11010 esac
11011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11012   (eval "$ac_link") 2>conftest.er1
11013   ac_status=$?
11014   grep -v '^ *+' conftest.er1 >conftest.err
11015   rm -f conftest.er1
11016   cat conftest.err >&5
11017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018   (exit $ac_status); } && {
11019          test -z "$ac_cxx_werror_flag" ||
11020          test ! -s conftest.err
11021        } && test -s conftest$ac_exeext &&
11022        $as_test_x conftest$ac_exeext; then
11023
11024 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11025 }'`
11026 # Check for a 64-bit object if we didn't find anything.
11027 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; }
11028 }'`; fi
11029 else
11030   echo "$as_me: failed program was:" >&5
11031 sed 's/^/| /' conftest.$ac_ext >&5
11032
11033
11034 fi
11035
11036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11037       conftest$ac_exeext conftest.$ac_ext
11038 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11039
11040       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11041
11042       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"
11043      else
11044       if test "$host_cpu" = ia64; then
11045         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11046         allow_undefined_flag_CXX="-z nodefs"
11047         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"
11048       else
11049         # Determine the default libpath from the value encoded in an empty executable.
11050         cat >conftest.$ac_ext <<_ACEOF
11051 /* confdefs.h.  */
11052 _ACEOF
11053 cat confdefs.h >>conftest.$ac_ext
11054 cat >>conftest.$ac_ext <<_ACEOF
11055 /* end confdefs.h.  */
11056
11057 int
11058 main ()
11059 {
11060
11061   ;
11062   return 0;
11063 }
11064 _ACEOF
11065 rm -f conftest.$ac_objext conftest$ac_exeext
11066 if { (ac_try="$ac_link"
11067 case "(($ac_try" in
11068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11069   *) ac_try_echo=$ac_try;;
11070 esac
11071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11072   (eval "$ac_link") 2>conftest.er1
11073   ac_status=$?
11074   grep -v '^ *+' conftest.er1 >conftest.err
11075   rm -f conftest.er1
11076   cat conftest.err >&5
11077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078   (exit $ac_status); } && {
11079          test -z "$ac_cxx_werror_flag" ||
11080          test ! -s conftest.err
11081        } && test -s conftest$ac_exeext &&
11082        $as_test_x conftest$ac_exeext; then
11083
11084 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11085 }'`
11086 # Check for a 64-bit object if we didn't find anything.
11087 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; }
11088 }'`; fi
11089 else
11090   echo "$as_me: failed program was:" >&5
11091 sed 's/^/| /' conftest.$ac_ext >&5
11092
11093
11094 fi
11095
11096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11097       conftest$ac_exeext conftest.$ac_ext
11098 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11099
11100         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11101         # Warning - without using the other run time loading flags,
11102         # -berok will link without error, but may produce a broken library.
11103         no_undefined_flag_CXX=' ${wl}-bernotok'
11104         allow_undefined_flag_CXX=' ${wl}-berok'
11105         # Exported symbols can be pulled into shared objects from archives
11106         whole_archive_flag_spec_CXX='$convenience'
11107         archive_cmds_need_lc_CXX=yes
11108         # This is similar to how AIX traditionally builds its shared libraries.
11109         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'
11110       fi
11111     fi
11112     ;;
11113
11114   beos*)
11115     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11116       allow_undefined_flag_CXX=unsupported
11117       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11118       # support --undefined.  This deserves some investigation.  FIXME
11119       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11120     else
11121       ld_shlibs_CXX=no
11122     fi
11123     ;;
11124
11125   chorus*)
11126     case $cc_basename in
11127       *)
11128         # FIXME: insert proper C++ library support
11129         ld_shlibs_CXX=no
11130         ;;
11131     esac
11132     ;;
11133
11134   cygwin* | mingw* | pw32*)
11135     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11136     # as there is no search path for DLLs.
11137     hardcode_libdir_flag_spec_CXX='-L$libdir'
11138     allow_undefined_flag_CXX=unsupported
11139     always_export_symbols_CXX=no
11140     enable_shared_with_static_runtimes_CXX=yes
11141
11142     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11143       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'
11144       # If the export-symbols file already is a .def file (1st line
11145       # is EXPORTS), use it as is; otherwise, prepend...
11146       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11147         cp $export_symbols $output_objdir/$soname.def;
11148       else
11149         echo EXPORTS > $output_objdir/$soname.def;
11150         cat $export_symbols >> $output_objdir/$soname.def;
11151       fi~
11152       $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'
11153     else
11154       ld_shlibs_CXX=no
11155     fi
11156   ;;
11157       darwin* | rhapsody*)
11158         case $host_os in
11159         rhapsody* | darwin1.[012])
11160          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11161          ;;
11162        *) # Darwin 1.3 on
11163          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11164            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11165          else
11166            case ${MACOSX_DEPLOYMENT_TARGET} in
11167              10.[012])
11168                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11169                ;;
11170              10.*)
11171                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11172                ;;
11173            esac
11174          fi
11175          ;;
11176         esac
11177       archive_cmds_need_lc_CXX=no
11178       hardcode_direct_CXX=no
11179       hardcode_automatic_CXX=yes
11180       hardcode_shlibpath_var_CXX=unsupported
11181       whole_archive_flag_spec_CXX=''
11182       link_all_deplibs_CXX=yes
11183
11184     if test "$GXX" = yes ; then
11185       lt_int_apple_cc_single_mod=no
11186       output_verbose_link_cmd='echo'
11187       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11188        lt_int_apple_cc_single_mod=yes
11189       fi
11190       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11191        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11192       else
11193           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'
11194         fi
11195         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11196         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11197           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11198             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}'
11199           else
11200             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}'
11201           fi
11202             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}'
11203       else
11204       case $cc_basename in
11205         xlc*)
11206          output_verbose_link_cmd='echo'
11207           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'
11208           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11209           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11210           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}'
11211           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}'
11212           ;;
11213        *)
11214          ld_shlibs_CXX=no
11215           ;;
11216       esac
11217       fi
11218         ;;
11219
11220   dgux*)
11221     case $cc_basename in
11222       ec++*)
11223         # FIXME: insert proper C++ library support
11224         ld_shlibs_CXX=no
11225         ;;
11226       ghcx*)
11227         # Green Hills C++ Compiler
11228         # FIXME: insert proper C++ library support
11229         ld_shlibs_CXX=no
11230         ;;
11231       *)
11232         # FIXME: insert proper C++ library support
11233         ld_shlibs_CXX=no
11234         ;;
11235     esac
11236     ;;
11237   freebsd[12]*)
11238     # C++ shared libraries reported to be fairly broken before switch to ELF
11239     ld_shlibs_CXX=no
11240     ;;
11241   freebsd-elf*)
11242     archive_cmds_need_lc_CXX=no
11243     ;;
11244   freebsd* | dragonfly*)
11245     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11246     # conventions
11247     ld_shlibs_CXX=yes
11248     ;;
11249   gnu*)
11250     ;;
11251   hpux9*)
11252     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11253     hardcode_libdir_separator_CXX=:
11254     export_dynamic_flag_spec_CXX='${wl}-E'
11255     hardcode_direct_CXX=yes
11256     hardcode_minus_L_CXX=yes # Not in the search PATH,
11257                                 # but as the default
11258                                 # location of the library.
11259
11260     case $cc_basename in
11261     CC*)
11262       # FIXME: insert proper C++ library support
11263       ld_shlibs_CXX=no
11264       ;;
11265     aCC*)
11266       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'
11267       # Commands to make compiler produce verbose output that lists
11268       # what "hidden" libraries, object files and flags are used when
11269       # linking a shared library.
11270       #
11271       # There doesn't appear to be a way to prevent this compiler from
11272       # explicitly linking system object files so we need to strip them
11273       # from the output so that they don't get included in the library
11274       # dependencies.
11275       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'
11276       ;;
11277     *)
11278       if test "$GXX" = yes; then
11279         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'
11280       else
11281         # FIXME: insert proper C++ library support
11282         ld_shlibs_CXX=no
11283       fi
11284       ;;
11285     esac
11286     ;;
11287   hpux10*|hpux11*)
11288     if test $with_gnu_ld = no; then
11289       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11290       hardcode_libdir_separator_CXX=:
11291
11292       case $host_cpu in
11293       hppa*64*|ia64*)
11294         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11295         ;;
11296       *)
11297         export_dynamic_flag_spec_CXX='${wl}-E'
11298         ;;
11299       esac
11300     fi
11301     case $host_cpu in
11302     hppa*64*|ia64*)
11303       hardcode_direct_CXX=no
11304       hardcode_shlibpath_var_CXX=no
11305       ;;
11306     *)
11307       hardcode_direct_CXX=yes
11308       hardcode_minus_L_CXX=yes # Not in the search PATH,
11309                                               # but as the default
11310                                               # location of the library.
11311       ;;
11312     esac
11313
11314     case $cc_basename in
11315       CC*)
11316         # FIXME: insert proper C++ library support
11317         ld_shlibs_CXX=no
11318         ;;
11319       aCC*)
11320         case $host_cpu in
11321         hppa*64*)
11322           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11323           ;;
11324         ia64*)
11325           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11326           ;;
11327         *)
11328           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11329           ;;
11330         esac
11331         # Commands to make compiler produce verbose output that lists
11332         # what "hidden" libraries, object files and flags are used when
11333         # linking a shared library.
11334         #
11335         # There doesn't appear to be a way to prevent this compiler from
11336         # explicitly linking system object files so we need to strip them
11337         # from the output so that they don't get included in the library
11338         # dependencies.
11339         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'
11340         ;;
11341       *)
11342         if test "$GXX" = yes; then
11343           if test $with_gnu_ld = no; then
11344             case $host_cpu in
11345             hppa*64*)
11346               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11347               ;;
11348             ia64*)
11349               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11350               ;;
11351             *)
11352               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'
11353               ;;
11354             esac
11355           fi
11356         else
11357           # FIXME: insert proper C++ library support
11358           ld_shlibs_CXX=no
11359         fi
11360         ;;
11361     esac
11362     ;;
11363   interix3*)
11364     hardcode_direct_CXX=no
11365     hardcode_shlibpath_var_CXX=no
11366     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11367     export_dynamic_flag_spec_CXX='${wl}-E'
11368     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11369     # Instead, shared libraries are loaded at an image base (0x10000000 by
11370     # default) and relocated if they conflict, which is a slow very memory
11371     # consuming and fragmenting process.  To avoid this, we pick a random,
11372     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11373     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11374     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'
11375     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'
11376     ;;
11377   irix5* | irix6*)
11378     case $cc_basename in
11379       CC*)
11380         # SGI C++
11381         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'
11382
11383         # Archives containing C++ object files must be created using
11384         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11385         # necessary to make sure instantiated templates are included
11386         # in the archive.
11387         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11388         ;;
11389       *)
11390         if test "$GXX" = yes; then
11391           if test "$with_gnu_ld" = no; then
11392             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'
11393           else
11394             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'
11395           fi
11396         fi
11397         link_all_deplibs_CXX=yes
11398         ;;
11399     esac
11400     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11401     hardcode_libdir_separator_CXX=:
11402     ;;
11403   linux* | k*bsd*-gnu)
11404     case $cc_basename in
11405       KCC*)
11406         # Kuck and Associates, Inc. (KAI) C++ Compiler
11407
11408         # KCC will only create a shared library if the output file
11409         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11410         # to its proper name (with version) after linking.
11411         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'
11412         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'
11413         # Commands to make compiler produce verbose output that lists
11414         # what "hidden" libraries, object files and flags are used when
11415         # linking a shared library.
11416         #
11417         # There doesn't appear to be a way to prevent this compiler from
11418         # explicitly linking system object files so we need to strip them
11419         # from the output so that they don't get included in the library
11420         # dependencies.
11421         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'
11422
11423         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11424         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11425
11426         # Archives containing C++ object files must be created using
11427         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11428         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11429         ;;
11430       icpc*)
11431         # Intel C++
11432         with_gnu_ld=yes
11433         # version 8.0 and above of icpc choke on multiply defined symbols
11434         # if we add $predep_objects and $postdep_objects, however 7.1 and
11435         # earlier do not add the objects themselves.
11436         case `$CC -V 2>&1` in
11437         *"Version 7."*)
11438           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11439           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'
11440           ;;
11441         *)  # Version 8.0 or newer
11442           tmp_idyn=
11443           case $host_cpu in
11444             ia64*) tmp_idyn=' -i_dynamic';;
11445           esac
11446           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11447           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'
11448           ;;
11449         esac
11450         archive_cmds_need_lc_CXX=no
11451         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11452         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11453         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11454         ;;
11455       pgCC*)
11456         # Portland Group C++ compiler
11457         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11458         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'
11459
11460         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11461         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11462         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'
11463         ;;
11464       cxx*)
11465         # Compaq C++
11466         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11467         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'
11468
11469         runpath_var=LD_RUN_PATH
11470         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11471         hardcode_libdir_separator_CXX=:
11472
11473         # Commands to make compiler produce verbose output that lists
11474         # what "hidden" libraries, object files and flags are used when
11475         # linking a shared library.
11476         #
11477         # There doesn't appear to be a way to prevent this compiler from
11478         # explicitly linking system object files so we need to strip them
11479         # from the output so that they don't get included in the library
11480         # dependencies.
11481         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'
11482         ;;
11483     esac
11484     ;;
11485   lynxos*)
11486     # FIXME: insert proper C++ library support
11487     ld_shlibs_CXX=no
11488     ;;
11489   m88k*)
11490     # FIXME: insert proper C++ library support
11491     ld_shlibs_CXX=no
11492     ;;
11493   mvs*)
11494     case $cc_basename in
11495       cxx*)
11496         # FIXME: insert proper C++ library support
11497         ld_shlibs_CXX=no
11498         ;;
11499       *)
11500         # FIXME: insert proper C++ library support
11501         ld_shlibs_CXX=no
11502         ;;
11503     esac
11504     ;;
11505   netbsd* | netbsdelf*-gnu)
11506     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11507       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11508       wlarc=
11509       hardcode_libdir_flag_spec_CXX='-R$libdir'
11510       hardcode_direct_CXX=yes
11511       hardcode_shlibpath_var_CXX=no
11512     fi
11513     # Workaround some broken pre-1.5 toolchains
11514     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11515     ;;
11516   openbsd2*)
11517     # C++ shared libraries are fairly broken
11518     ld_shlibs_CXX=no
11519     ;;
11520   openbsd*)
11521     hardcode_direct_CXX=yes
11522     hardcode_shlibpath_var_CXX=no
11523     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11524     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11525     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11526       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11527       export_dynamic_flag_spec_CXX='${wl}-E'
11528       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11529     fi
11530     output_verbose_link_cmd='echo'
11531     ;;
11532   osf3*)
11533     case $cc_basename in
11534       KCC*)
11535         # Kuck and Associates, Inc. (KAI) C++ Compiler
11536
11537         # KCC will only create a shared library if the output file
11538         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11539         # to its proper name (with version) after linking.
11540         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'
11541
11542         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11543         hardcode_libdir_separator_CXX=:
11544
11545         # Archives containing C++ object files must be created using
11546         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11547         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11548
11549         ;;
11550       RCC*)
11551         # Rational C++ 2.4.1
11552         # FIXME: insert proper C++ library support
11553         ld_shlibs_CXX=no
11554         ;;
11555       cxx*)
11556         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11557         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'
11558
11559         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11560         hardcode_libdir_separator_CXX=:
11561
11562         # Commands to make compiler produce verbose output that lists
11563         # what "hidden" libraries, object files and flags are used when
11564         # linking a shared library.
11565         #
11566         # There doesn't appear to be a way to prevent this compiler from
11567         # explicitly linking system object files so we need to strip them
11568         # from the output so that they don't get included in the library
11569         # dependencies.
11570         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'
11571         ;;
11572       *)
11573         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11574           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11575           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'
11576
11577           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11578           hardcode_libdir_separator_CXX=:
11579
11580           # Commands to make compiler produce verbose output that lists
11581           # what "hidden" libraries, object files and flags are used when
11582           # linking a shared library.
11583           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11584
11585         else
11586           # FIXME: insert proper C++ library support
11587           ld_shlibs_CXX=no
11588         fi
11589         ;;
11590     esac
11591     ;;
11592   osf4* | osf5*)
11593     case $cc_basename in
11594       KCC*)
11595         # Kuck and Associates, Inc. (KAI) C++ Compiler
11596
11597         # KCC will only create a shared library if the output file
11598         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11599         # to its proper name (with version) after linking.
11600         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'
11601
11602         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11603         hardcode_libdir_separator_CXX=:
11604
11605         # Archives containing C++ object files must be created using
11606         # the KAI C++ compiler.
11607         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11608         ;;
11609       RCC*)
11610         # Rational C++ 2.4.1
11611         # FIXME: insert proper C++ library support
11612         ld_shlibs_CXX=no
11613         ;;
11614       cxx*)
11615         allow_undefined_flag_CXX=' -expect_unresolved \*'
11616         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'
11617         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11618           echo "-hidden">> $lib.exp~
11619           $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~
11620           $rm $lib.exp'
11621
11622         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11623         hardcode_libdir_separator_CXX=:
11624
11625         # Commands to make compiler produce verbose output that lists
11626         # what "hidden" libraries, object files and flags are used when
11627         # linking a shared library.
11628         #
11629         # There doesn't appear to be a way to prevent this compiler from
11630         # explicitly linking system object files so we need to strip them
11631         # from the output so that they don't get included in the library
11632         # dependencies.
11633         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'
11634         ;;
11635       *)
11636         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11637           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11638          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'
11639
11640           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11641           hardcode_libdir_separator_CXX=:
11642
11643           # Commands to make compiler produce verbose output that lists
11644           # what "hidden" libraries, object files and flags are used when
11645           # linking a shared library.
11646           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11647
11648         else
11649           # FIXME: insert proper C++ library support
11650           ld_shlibs_CXX=no
11651         fi
11652         ;;
11653     esac
11654     ;;
11655   psos*)
11656     # FIXME: insert proper C++ library support
11657     ld_shlibs_CXX=no
11658     ;;
11659   sunos4*)
11660     case $cc_basename in
11661       CC*)
11662         # Sun C++ 4.x
11663         # FIXME: insert proper C++ library support
11664         ld_shlibs_CXX=no
11665         ;;
11666       lcc*)
11667         # Lucid
11668         # FIXME: insert proper C++ library support
11669         ld_shlibs_CXX=no
11670         ;;
11671       *)
11672         # FIXME: insert proper C++ library support
11673         ld_shlibs_CXX=no
11674         ;;
11675     esac
11676     ;;
11677   solaris*)
11678     case $cc_basename in
11679       CC*)
11680         # Sun C++ 4.2, 5.x and Centerline C++
11681         archive_cmds_need_lc_CXX=yes
11682         no_undefined_flag_CXX=' -zdefs'
11683         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11684         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11685         $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'
11686
11687         hardcode_libdir_flag_spec_CXX='-R$libdir'
11688         hardcode_shlibpath_var_CXX=no
11689         case $host_os in
11690           solaris2.[0-5] | solaris2.[0-5].*) ;;
11691           *)
11692             # The C++ compiler is used as linker so we must use $wl
11693             # flag to pass the commands to the underlying system
11694             # linker. We must also pass each convience library through
11695             # to the system linker between allextract/defaultextract.
11696             # The C++ compiler will combine linker options so we
11697             # cannot just pass the convience library names through
11698             # without $wl.
11699             # Supported since Solaris 2.6 (maybe 2.5.1?)
11700             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'
11701             ;;
11702         esac
11703         link_all_deplibs_CXX=yes
11704
11705         output_verbose_link_cmd='echo'
11706
11707         # Archives containing C++ object files must be created using
11708         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11709         # necessary to make sure instantiated templates are included
11710         # in the archive.
11711         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11712         ;;
11713       gcx*)
11714         # Green Hills C++ Compiler
11715         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11716
11717         # The C++ compiler must be used to create the archive.
11718         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11719         ;;
11720       *)
11721         # GNU C++ compiler with Solaris linker
11722         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11723           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11724           if $CC --version | grep -v '^2\.7' > /dev/null; then
11725             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11726             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11727                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11728
11729             # Commands to make compiler produce verbose output that lists
11730             # what "hidden" libraries, object files and flags are used when
11731             # linking a shared library.
11732             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11733           else
11734             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11735             # platform.
11736             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11737             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11738                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11739
11740             # Commands to make compiler produce verbose output that lists
11741             # what "hidden" libraries, object files and flags are used when
11742             # linking a shared library.
11743             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11744           fi
11745
11746           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11747         fi
11748         ;;
11749     esac
11750     ;;
11751   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11752     no_undefined_flag_CXX='${wl}-z,text'
11753     archive_cmds_need_lc_CXX=no
11754     hardcode_shlibpath_var_CXX=no
11755     runpath_var='LD_RUN_PATH'
11756
11757     case $cc_basename in
11758       CC*)
11759         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11760         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11761         ;;
11762       *)
11763         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11764         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11765         ;;
11766     esac
11767     ;;
11768   sysv5* | sco3.2v5* | sco5v6*)
11769     # Note: We can NOT use -z defs as we might desire, because we do not
11770     # link with -lc, and that would cause any symbols used from libc to
11771     # always be unresolved, which means just about no library would
11772     # ever link correctly.  If we're not using GNU ld we use -z text
11773     # though, which does catch some bad symbols but isn't as heavy-handed
11774     # as -z defs.
11775     # For security reasons, it is highly recommended that you always
11776     # use absolute paths for naming shared libraries, and exclude the
11777     # DT_RUNPATH tag from executables and libraries.  But doing so
11778     # requires that you compile everything twice, which is a pain.
11779     # So that behaviour is only enabled if SCOABSPATH is set to a
11780     # non-empty value in the environment.  Most likely only useful for
11781     # creating official distributions of packages.
11782     # This is a hack until libtool officially supports absolute path
11783     # names for shared libraries.
11784     no_undefined_flag_CXX='${wl}-z,text'
11785     allow_undefined_flag_CXX='${wl}-z,nodefs'
11786     archive_cmds_need_lc_CXX=no
11787     hardcode_shlibpath_var_CXX=no
11788     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11789     hardcode_libdir_separator_CXX=':'
11790     link_all_deplibs_CXX=yes
11791     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11792     runpath_var='LD_RUN_PATH'
11793
11794     case $cc_basename in
11795       CC*)
11796         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11797         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11798         ;;
11799       *)
11800         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11801         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11802         ;;
11803     esac
11804     ;;
11805   tandem*)
11806     case $cc_basename in
11807       NCC*)
11808         # NonStop-UX NCC 3.20
11809         # FIXME: insert proper C++ library support
11810         ld_shlibs_CXX=no
11811         ;;
11812       *)
11813         # FIXME: insert proper C++ library support
11814         ld_shlibs_CXX=no
11815         ;;
11816     esac
11817     ;;
11818   vxworks*)
11819     # FIXME: insert proper C++ library support
11820     ld_shlibs_CXX=no
11821     ;;
11822   *)
11823     # FIXME: insert proper C++ library support
11824     ld_shlibs_CXX=no
11825     ;;
11826 esac
11827 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11828 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11829 test "$ld_shlibs_CXX" = no && can_build_shared=no
11830
11831 GCC_CXX="$GXX"
11832 LD_CXX="$LD"
11833
11834
11835 cat > conftest.$ac_ext <<EOF
11836 class Foo
11837 {
11838 public:
11839   Foo (void) { a = 0; }
11840 private:
11841   int a;
11842 };
11843 EOF
11844
11845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11846   (eval $ac_compile) 2>&5
11847   ac_status=$?
11848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849   (exit $ac_status); }; then
11850   # Parse the compiler output and extract the necessary
11851   # objects, libraries and library flags.
11852
11853   # Sentinel used to keep track of whether or not we are before
11854   # the conftest object file.
11855   pre_test_object_deps_done=no
11856
11857   # The `*' in the case matches for architectures that use `case' in
11858   # $output_verbose_cmd can trigger glob expansion during the loop
11859   # eval without this substitution.
11860   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11861
11862   for p in `eval $output_verbose_link_cmd`; do
11863     case $p in
11864
11865     -L* | -R* | -l*)
11866        # Some compilers place space between "-{L,R}" and the path.
11867        # Remove the space.
11868        if test $p = "-L" \
11869           || test $p = "-R"; then
11870          prev=$p
11871          continue
11872        else
11873          prev=
11874        fi
11875
11876        if test "$pre_test_object_deps_done" = no; then
11877          case $p in
11878          -L* | -R*)
11879            # Internal compiler library paths should come after those
11880            # provided the user.  The postdeps already come after the
11881            # user supplied libs so there is no need to process them.
11882            if test -z "$compiler_lib_search_path_CXX"; then
11883              compiler_lib_search_path_CXX="${prev}${p}"
11884            else
11885              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11886            fi
11887            ;;
11888          # The "-l" case would never come before the object being
11889          # linked, so don't bother handling this case.
11890          esac
11891        else
11892          if test -z "$postdeps_CXX"; then
11893            postdeps_CXX="${prev}${p}"
11894          else
11895            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11896          fi
11897        fi
11898        ;;
11899
11900     *.$objext)
11901        # This assumes that the test object file only shows up
11902        # once in the compiler output.
11903        if test "$p" = "conftest.$objext"; then
11904          pre_test_object_deps_done=yes
11905          continue
11906        fi
11907
11908        if test "$pre_test_object_deps_done" = no; then
11909          if test -z "$predep_objects_CXX"; then
11910            predep_objects_CXX="$p"
11911          else
11912            predep_objects_CXX="$predep_objects_CXX $p"
11913          fi
11914        else
11915          if test -z "$postdep_objects_CXX"; then
11916            postdep_objects_CXX="$p"
11917          else
11918            postdep_objects_CXX="$postdep_objects_CXX $p"
11919          fi
11920        fi
11921        ;;
11922
11923     *) ;; # Ignore the rest.
11924
11925     esac
11926   done
11927
11928   # Clean up.
11929   rm -f a.out a.exe
11930 else
11931   echo "libtool.m4: error: problem compiling CXX test program"
11932 fi
11933
11934 $rm -f confest.$objext
11935
11936 # PORTME: override above test on systems where it is broken
11937 case $host_os in
11938 interix3*)
11939   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11940   # hack all around it, let's just trust "g++" to DTRT.
11941   predep_objects_CXX=
11942   postdep_objects_CXX=
11943   postdeps_CXX=
11944   ;;
11945
11946 solaris*)
11947   case $cc_basename in
11948   CC*)
11949     # Adding this requires a known-good setup of shared libraries for
11950     # Sun compiler versions before 5.6, else PIC objects from an old
11951     # archive will be linked into the output, leading to subtle bugs.
11952     postdeps_CXX='-lCstd -lCrun'
11953     ;;
11954   esac
11955   ;;
11956 esac
11957
11958
11959 case " $postdeps_CXX " in
11960 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11961 esac
11962
11963 lt_prog_compiler_wl_CXX=
11964 lt_prog_compiler_pic_CXX=
11965 lt_prog_compiler_static_CXX=
11966
11967 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11968 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11969
11970   # C++ specific cases for pic, static, wl, etc.
11971   if test "$GXX" = yes; then
11972     lt_prog_compiler_wl_CXX='-Wl,'
11973     lt_prog_compiler_static_CXX='-static'
11974
11975     case $host_os in
11976     aix*)
11977       # All AIX code is PIC.
11978       if test "$host_cpu" = ia64; then
11979         # AIX 5 now supports IA64 processor
11980         lt_prog_compiler_static_CXX='-Bstatic'
11981       fi
11982       ;;
11983     amigaos*)
11984       # FIXME: we need at least 68020 code to build shared libraries, but
11985       # adding the `-m68020' flag to GCC prevents building anything better,
11986       # like `-m68040'.
11987       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11988       ;;
11989     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11990       # PIC is the default for these OSes.
11991       ;;
11992     mingw* | os2* | pw32*)
11993       # This hack is so that the source file can tell whether it is being
11994       # built for inclusion in a dll (and should export symbols for example).
11995       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11996       ;;
11997     darwin* | rhapsody*)
11998       # PIC is the default on this platform
11999       # Common symbols not allowed in MH_DYLIB files
12000       lt_prog_compiler_pic_CXX='-fno-common'
12001       ;;
12002     *djgpp*)
12003       # DJGPP does not support shared libraries at all
12004       lt_prog_compiler_pic_CXX=
12005       ;;
12006     interix3*)
12007       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12008       # Instead, we relocate shared libraries at runtime.
12009       ;;
12010     sysv4*MP*)
12011       if test -d /usr/nec; then
12012         lt_prog_compiler_pic_CXX=-Kconform_pic
12013       fi
12014       ;;
12015     hpux*)
12016       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12017       # not for PA HP-UX.
12018       case $host_cpu in
12019       hppa*64*|ia64*)
12020         ;;
12021       *)
12022         lt_prog_compiler_pic_CXX='-fPIC'
12023         ;;
12024       esac
12025       ;;
12026     *)
12027       lt_prog_compiler_pic_CXX='-fPIC'
12028       ;;
12029     esac
12030   else
12031     case $host_os in
12032       aix4* | aix5*)
12033         # All AIX code is PIC.
12034         if test "$host_cpu" = ia64; then
12035           # AIX 5 now supports IA64 processor
12036           lt_prog_compiler_static_CXX='-Bstatic'
12037         else
12038           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12039         fi
12040         ;;
12041       chorus*)
12042         case $cc_basename in
12043         cxch68*)
12044           # Green Hills C++ Compiler
12045           # _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"
12046           ;;
12047         esac
12048         ;;
12049        darwin*)
12050          # PIC is the default on this platform
12051          # Common symbols not allowed in MH_DYLIB files
12052          case $cc_basename in
12053            xlc*)
12054            lt_prog_compiler_pic_CXX='-qnocommon'
12055            lt_prog_compiler_wl_CXX='-Wl,'
12056            ;;
12057          esac
12058        ;;
12059       dgux*)
12060         case $cc_basename in
12061           ec++*)
12062             lt_prog_compiler_pic_CXX='-KPIC'
12063             ;;
12064           ghcx*)
12065             # Green Hills C++ Compiler
12066             lt_prog_compiler_pic_CXX='-pic'
12067             ;;
12068           *)
12069             ;;
12070         esac
12071         ;;
12072       freebsd* | dragonfly*)
12073         # FreeBSD uses GNU C++
12074         ;;
12075       hpux9* | hpux10* | hpux11*)
12076         case $cc_basename in
12077           CC*)
12078             lt_prog_compiler_wl_CXX='-Wl,'
12079             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12080             if test "$host_cpu" != ia64; then
12081               lt_prog_compiler_pic_CXX='+Z'
12082             fi
12083             ;;
12084           aCC*)
12085             lt_prog_compiler_wl_CXX='-Wl,'
12086             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12087             case $host_cpu in
12088             hppa*64*|ia64*)
12089               # +Z the default
12090               ;;
12091             *)
12092               lt_prog_compiler_pic_CXX='+Z'
12093               ;;
12094             esac
12095             ;;
12096           *)
12097             ;;
12098         esac
12099         ;;
12100       interix*)
12101         # This is c89, which is MS Visual C++ (no shared libs)
12102         # Anyone wants to do a port?
12103         ;;
12104       irix5* | irix6* | nonstopux*)
12105         case $cc_basename in
12106           CC*)
12107             lt_prog_compiler_wl_CXX='-Wl,'
12108             lt_prog_compiler_static_CXX='-non_shared'
12109             # CC pic flag -KPIC is the default.
12110             ;;
12111           *)
12112             ;;
12113         esac
12114         ;;
12115       linux* | k*bsd*-gnu)
12116         case $cc_basename in
12117           KCC*)
12118             # KAI C++ Compiler
12119             lt_prog_compiler_wl_CXX='--backend -Wl,'
12120             lt_prog_compiler_pic_CXX='-fPIC'
12121             ;;
12122           icpc* | ecpc*)
12123             # Intel C++
12124             lt_prog_compiler_wl_CXX='-Wl,'
12125             lt_prog_compiler_pic_CXX='-KPIC'
12126             lt_prog_compiler_static_CXX='-static'
12127             ;;
12128           pgCC*)
12129             # Portland Group C++ compiler.
12130             lt_prog_compiler_wl_CXX='-Wl,'
12131             lt_prog_compiler_pic_CXX='-fpic'
12132             lt_prog_compiler_static_CXX='-Bstatic'
12133             ;;
12134           cxx*)
12135             # Compaq C++
12136             # Make sure the PIC flag is empty.  It appears that all Alpha
12137             # Linux and Compaq Tru64 Unix objects are PIC.
12138             lt_prog_compiler_pic_CXX=
12139             lt_prog_compiler_static_CXX='-non_shared'
12140             ;;
12141           *)
12142             ;;
12143         esac
12144         ;;
12145       lynxos*)
12146         ;;
12147       m88k*)
12148         ;;
12149       mvs*)
12150         case $cc_basename in
12151           cxx*)
12152             lt_prog_compiler_pic_CXX='-W c,exportall'
12153             ;;
12154           *)
12155             ;;
12156         esac
12157         ;;
12158       netbsd* | netbsdelf*-gnu)
12159         ;;
12160       osf3* | osf4* | osf5*)
12161         case $cc_basename in
12162           KCC*)
12163             lt_prog_compiler_wl_CXX='--backend -Wl,'
12164             ;;
12165           RCC*)
12166             # Rational C++ 2.4.1
12167             lt_prog_compiler_pic_CXX='-pic'
12168             ;;
12169           cxx*)
12170             # Digital/Compaq C++
12171             lt_prog_compiler_wl_CXX='-Wl,'
12172             # Make sure the PIC flag is empty.  It appears that all Alpha
12173             # Linux and Compaq Tru64 Unix objects are PIC.
12174             lt_prog_compiler_pic_CXX=
12175             lt_prog_compiler_static_CXX='-non_shared'
12176             ;;
12177           *)
12178             ;;
12179         esac
12180         ;;
12181       psos*)
12182         ;;
12183       solaris*)
12184         case $cc_basename in
12185           CC*)
12186             # Sun C++ 4.2, 5.x and Centerline C++
12187             lt_prog_compiler_pic_CXX='-KPIC'
12188             lt_prog_compiler_static_CXX='-Bstatic'
12189             lt_prog_compiler_wl_CXX='-Qoption ld '
12190             ;;
12191           gcx*)
12192             # Green Hills C++ Compiler
12193             lt_prog_compiler_pic_CXX='-PIC'
12194             ;;
12195           *)
12196             ;;
12197         esac
12198         ;;
12199       sunos4*)
12200         case $cc_basename in
12201           CC*)
12202             # Sun C++ 4.x
12203             lt_prog_compiler_pic_CXX='-pic'
12204             lt_prog_compiler_static_CXX='-Bstatic'
12205             ;;
12206           lcc*)
12207             # Lucid
12208             lt_prog_compiler_pic_CXX='-pic'
12209             ;;
12210           *)
12211             ;;
12212         esac
12213         ;;
12214       tandem*)
12215         case $cc_basename in
12216           NCC*)
12217             # NonStop-UX NCC 3.20
12218             lt_prog_compiler_pic_CXX='-KPIC'
12219             ;;
12220           *)
12221             ;;
12222         esac
12223         ;;
12224       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12225         case $cc_basename in
12226           CC*)
12227             lt_prog_compiler_wl_CXX='-Wl,'
12228             lt_prog_compiler_pic_CXX='-KPIC'
12229             lt_prog_compiler_static_CXX='-Bstatic'
12230             ;;
12231         esac
12232         ;;
12233       vxworks*)
12234         ;;
12235       *)
12236         lt_prog_compiler_can_build_shared_CXX=no
12237         ;;
12238     esac
12239   fi
12240
12241 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12242 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12243
12244 #
12245 # Check to make sure the PIC flag actually works.
12246 #
12247 if test -n "$lt_prog_compiler_pic_CXX"; then
12248
12249 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12250 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12251 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12252   echo $ECHO_N "(cached) $ECHO_C" >&6
12253 else
12254   lt_prog_compiler_pic_works_CXX=no
12255   ac_outfile=conftest.$ac_objext
12256    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12257    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12258    # Insert the option either (1) after the last *FLAGS variable, or
12259    # (2) before a word containing "conftest.", or (3) at the end.
12260    # Note that $ac_compile itself does not contain backslashes and begins
12261    # with a dollar sign (not a hyphen), so the echo should work correctly.
12262    # The option is referenced via a variable to avoid confusing sed.
12263    lt_compile=`echo "$ac_compile" | $SED \
12264    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12265    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12266    -e 's:$: $lt_compiler_flag:'`
12267    (eval echo "\"\$as_me:12267: $lt_compile\"" >&5)
12268    (eval "$lt_compile" 2>conftest.err)
12269    ac_status=$?
12270    cat conftest.err >&5
12271    echo "$as_me:12271: \$? = $ac_status" >&5
12272    if (exit $ac_status) && test -s "$ac_outfile"; then
12273      # The compiler can only warn and ignore the option if not recognized
12274      # So say no if there are warnings other than the usual output.
12275      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12276      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12277      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12278        lt_prog_compiler_pic_works_CXX=yes
12279      fi
12280    fi
12281    $rm conftest*
12282
12283 fi
12284 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12285 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12286
12287 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12288     case $lt_prog_compiler_pic_CXX in
12289      "" | " "*) ;;
12290      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12291      esac
12292 else
12293     lt_prog_compiler_pic_CXX=
12294      lt_prog_compiler_can_build_shared_CXX=no
12295 fi
12296
12297 fi
12298 case $host_os in
12299   # For platforms which do not support PIC, -DPIC is meaningless:
12300   *djgpp*)
12301     lt_prog_compiler_pic_CXX=
12302     ;;
12303   *)
12304     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12305     ;;
12306 esac
12307
12308 #
12309 # Check to make sure the static flag actually works.
12310 #
12311 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12312 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12313 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12314 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12315   echo $ECHO_N "(cached) $ECHO_C" >&6
12316 else
12317   lt_prog_compiler_static_works_CXX=no
12318    save_LDFLAGS="$LDFLAGS"
12319    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12320    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12321    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12322      # The linker can only warn and ignore the option if not recognized
12323      # So say no if there are warnings
12324      if test -s conftest.err; then
12325        # Append any errors to the config.log.
12326        cat conftest.err 1>&5
12327        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12328        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12329        if diff conftest.exp conftest.er2 >/dev/null; then
12330          lt_prog_compiler_static_works_CXX=yes
12331        fi
12332      else
12333        lt_prog_compiler_static_works_CXX=yes
12334      fi
12335    fi
12336    $rm conftest*
12337    LDFLAGS="$save_LDFLAGS"
12338
12339 fi
12340 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12341 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12342
12343 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12344     :
12345 else
12346     lt_prog_compiler_static_CXX=
12347 fi
12348
12349
12350 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12351 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12352 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12353   echo $ECHO_N "(cached) $ECHO_C" >&6
12354 else
12355   lt_cv_prog_compiler_c_o_CXX=no
12356    $rm -r conftest 2>/dev/null
12357    mkdir conftest
12358    cd conftest
12359    mkdir out
12360    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12361
12362    lt_compiler_flag="-o out/conftest2.$ac_objext"
12363    # Insert the option either (1) after the last *FLAGS variable, or
12364    # (2) before a word containing "conftest.", or (3) at the end.
12365    # Note that $ac_compile itself does not contain backslashes and begins
12366    # with a dollar sign (not a hyphen), so the echo should work correctly.
12367    lt_compile=`echo "$ac_compile" | $SED \
12368    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12369    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12370    -e 's:$: $lt_compiler_flag:'`
12371    (eval echo "\"\$as_me:12371: $lt_compile\"" >&5)
12372    (eval "$lt_compile" 2>out/conftest.err)
12373    ac_status=$?
12374    cat out/conftest.err >&5
12375    echo "$as_me:12375: \$? = $ac_status" >&5
12376    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12377    then
12378      # The compiler can only warn and ignore the option if not recognized
12379      # So say no if there are warnings
12380      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12381      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12382      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12383        lt_cv_prog_compiler_c_o_CXX=yes
12384      fi
12385    fi
12386    chmod u+w . 2>&5
12387    $rm conftest*
12388    # SGI C++ compiler will create directory out/ii_files/ for
12389    # template instantiation
12390    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12391    $rm out/* && rmdir out
12392    cd ..
12393    rmdir conftest
12394    $rm conftest*
12395
12396 fi
12397 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12398 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12399
12400
12401 hard_links="nottested"
12402 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12403   # do not overwrite the value of need_locks provided by the user
12404   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12405 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12406   hard_links=yes
12407   $rm conftest*
12408   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12409   touch conftest.a
12410   ln conftest.a conftest.b 2>&5 || hard_links=no
12411   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12412   { echo "$as_me:$LINENO: result: $hard_links" >&5
12413 echo "${ECHO_T}$hard_links" >&6; }
12414   if test "$hard_links" = no; then
12415     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12416 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12417     need_locks=warn
12418   fi
12419 else
12420   need_locks=no
12421 fi
12422
12423 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12424 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12425
12426   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12427   case $host_os in
12428   aix4* | aix5*)
12429     # If we're using GNU nm, then we don't want the "-C" option.
12430     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12431     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12432       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'
12433     else
12434       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'
12435     fi
12436     ;;
12437   pw32*)
12438     export_symbols_cmds_CXX="$ltdll_cmds"
12439   ;;
12440   cygwin* | mingw*)
12441     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'
12442   ;;
12443   linux* | k*bsd*-gnu)
12444     link_all_deplibs_CXX=no
12445   ;;
12446   *)
12447     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12448   ;;
12449   esac
12450
12451 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12452 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12453 test "$ld_shlibs_CXX" = no && can_build_shared=no
12454
12455 #
12456 # Do we need to explicitly link libc?
12457 #
12458 case "x$archive_cmds_need_lc_CXX" in
12459 x|xyes)
12460   # Assume -lc should be added
12461   archive_cmds_need_lc_CXX=yes
12462
12463   if test "$enable_shared" = yes && test "$GCC" = yes; then
12464     case $archive_cmds_CXX in
12465     *'~'*)
12466       # FIXME: we may have to deal with multi-command sequences.
12467       ;;
12468     '$CC '*)
12469       # Test whether the compiler implicitly links with -lc since on some
12470       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12471       # to ld, don't add -lc before -lgcc.
12472       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12473 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12474       $rm conftest*
12475       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12476
12477       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12478   (eval $ac_compile) 2>&5
12479   ac_status=$?
12480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481   (exit $ac_status); } 2>conftest.err; then
12482         soname=conftest
12483         lib=conftest
12484         libobjs=conftest.$ac_objext
12485         deplibs=
12486         wl=$lt_prog_compiler_wl_CXX
12487         pic_flag=$lt_prog_compiler_pic_CXX
12488         compiler_flags=-v
12489         linker_flags=-v
12490         verstring=
12491         output_objdir=.
12492         libname=conftest
12493         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12494         allow_undefined_flag_CXX=
12495         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12496   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12497   ac_status=$?
12498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499   (exit $ac_status); }
12500         then
12501           archive_cmds_need_lc_CXX=no
12502         else
12503           archive_cmds_need_lc_CXX=yes
12504         fi
12505         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12506       else
12507         cat conftest.err 1>&5
12508       fi
12509       $rm conftest*
12510       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12511 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12512       ;;
12513     esac
12514   fi
12515   ;;
12516 esac
12517
12518 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12519 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12520 library_names_spec=
12521 libname_spec='lib$name'
12522 soname_spec=
12523 shrext_cmds=".so"
12524 postinstall_cmds=
12525 postuninstall_cmds=
12526 finish_cmds=
12527 finish_eval=
12528 shlibpath_var=
12529 shlibpath_overrides_runpath=unknown
12530 version_type=none
12531 dynamic_linker="$host_os ld.so"
12532 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12533 if test "$GCC" = yes; then
12534   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12535   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12536     # if the path contains ";" then we assume it to be the separator
12537     # otherwise default to the standard path separator (i.e. ":") - it is
12538     # assumed that no part of a normal pathname contains ";" but that should
12539     # okay in the real world where ";" in dirpaths is itself problematic.
12540     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12541   else
12542     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12543   fi
12544 else
12545   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12546 fi
12547 need_lib_prefix=unknown
12548 hardcode_into_libs=no
12549
12550 # when you set need_version to no, make sure it does not cause -set_version
12551 # flags to be left without arguments
12552 need_version=unknown
12553
12554 case $host_os in
12555 aix3*)
12556   version_type=linux
12557   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12558   shlibpath_var=LIBPATH
12559
12560   # AIX 3 has no versioning support, so we append a major version to the name.
12561   soname_spec='${libname}${release}${shared_ext}$major'
12562   ;;
12563
12564 aix4* | aix5*)
12565   version_type=linux
12566   need_lib_prefix=no
12567   need_version=no
12568   hardcode_into_libs=yes
12569   if test "$host_cpu" = ia64; then
12570     # AIX 5 supports IA64
12571     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12572     shlibpath_var=LD_LIBRARY_PATH
12573   else
12574     # With GCC up to 2.95.x, collect2 would create an import file
12575     # for dependence libraries.  The import file would start with
12576     # the line `#! .'.  This would cause the generated library to
12577     # depend on `.', always an invalid library.  This was fixed in
12578     # development snapshots of GCC prior to 3.0.
12579     case $host_os in
12580       aix4 | aix4.[01] | aix4.[01].*)
12581       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12582            echo ' yes '
12583            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12584         :
12585       else
12586         can_build_shared=no
12587       fi
12588       ;;
12589     esac
12590     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12591     # soname into executable. Probably we can add versioning support to
12592     # collect2, so additional links can be useful in future.
12593     if test "$aix_use_runtimelinking" = yes; then
12594       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12595       # instead of lib<name>.a to let people know that these are not
12596       # typical AIX shared libraries.
12597       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12598     else
12599       # We preserve .a as extension for shared libraries through AIX4.2
12600       # and later when we are not doing run time linking.
12601       library_names_spec='${libname}${release}.a $libname.a'
12602       soname_spec='${libname}${release}${shared_ext}$major'
12603     fi
12604     shlibpath_var=LIBPATH
12605   fi
12606   ;;
12607
12608 amigaos*)
12609   library_names_spec='$libname.ixlibrary $libname.a'
12610   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12611   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'
12612   ;;
12613
12614 beos*)
12615   library_names_spec='${libname}${shared_ext}'
12616   dynamic_linker="$host_os ld.so"
12617   shlibpath_var=LIBRARY_PATH
12618   ;;
12619
12620 bsdi[45]*)
12621   version_type=linux
12622   need_version=no
12623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12624   soname_spec='${libname}${release}${shared_ext}$major'
12625   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12626   shlibpath_var=LD_LIBRARY_PATH
12627   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12628   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12629   # the default ld.so.conf also contains /usr/contrib/lib and
12630   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12631   # libtool to hard-code these into programs
12632   ;;
12633
12634 cygwin* | mingw* | pw32*)
12635   version_type=windows
12636   shrext_cmds=".dll"
12637   need_version=no
12638   need_lib_prefix=no
12639
12640   case $GCC,$host_os in
12641   yes,cygwin* | yes,mingw* | yes,pw32*)
12642     library_names_spec='$libname.dll.a'
12643     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12644     postinstall_cmds='base_file=`basename \${file}`~
12645       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12646       dldir=$destdir/`dirname \$dlpath`~
12647       test -d \$dldir || mkdir -p \$dldir~
12648       $install_prog $dir/$dlname \$dldir/$dlname~
12649       chmod a+x \$dldir/$dlname'
12650     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12651       dlpath=$dir/\$dldll~
12652        $rm \$dlpath'
12653     shlibpath_overrides_runpath=yes
12654
12655     case $host_os in
12656     cygwin*)
12657       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12658       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12659       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12660       ;;
12661     mingw*)
12662       # MinGW DLLs use traditional 'lib' prefix
12663       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12664       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12665       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12666         # It is most probably a Windows format PATH printed by
12667         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12668         # path with ; separators, and with drive letters. We can handle the
12669         # drive letters (cygwin fileutils understands them), so leave them,
12670         # especially as we might pass files found there to a mingw objdump,
12671         # which wouldn't understand a cygwinified path. Ahh.
12672         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12673       else
12674         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12675       fi
12676       ;;
12677     pw32*)
12678       # pw32 DLLs use 'pw' prefix rather than 'lib'
12679       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12680       ;;
12681     esac
12682     ;;
12683
12684   *)
12685     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12686     ;;
12687   esac
12688   dynamic_linker='Win32 ld.exe'
12689   # FIXME: first we should search . and the directory the executable is in
12690   shlibpath_var=PATH
12691   ;;
12692
12693 darwin* | rhapsody*)
12694   dynamic_linker="$host_os dyld"
12695   version_type=darwin
12696   need_lib_prefix=no
12697   need_version=no
12698   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12699   soname_spec='${libname}${release}${major}$shared_ext'
12700   shlibpath_overrides_runpath=yes
12701   shlibpath_var=DYLD_LIBRARY_PATH
12702   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12703   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12704   if test "$GCC" = yes; then
12705     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"`
12706   else
12707     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12708   fi
12709   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12710   ;;
12711
12712 dgux*)
12713   version_type=linux
12714   need_lib_prefix=no
12715   need_version=no
12716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12717   soname_spec='${libname}${release}${shared_ext}$major'
12718   shlibpath_var=LD_LIBRARY_PATH
12719   ;;
12720
12721 freebsd1*)
12722   dynamic_linker=no
12723   ;;
12724
12725 freebsd* | dragonfly*)
12726   # DragonFly does not have aout.  When/if they implement a new
12727   # versioning mechanism, adjust this.
12728   if test -x /usr/bin/objformat; then
12729     objformat=`/usr/bin/objformat`
12730   else
12731     case $host_os in
12732     freebsd[123]*) objformat=aout ;;
12733     *) objformat=elf ;;
12734     esac
12735   fi
12736   version_type=freebsd-$objformat
12737   case $version_type in
12738     freebsd-elf*)
12739       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12740       need_version=no
12741       need_lib_prefix=no
12742       ;;
12743     freebsd-*)
12744       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12745       need_version=yes
12746       ;;
12747   esac
12748   shlibpath_var=LD_LIBRARY_PATH
12749   case $host_os in
12750   freebsd2*)
12751     shlibpath_overrides_runpath=yes
12752     ;;
12753   freebsd3.[01]* | freebsdelf3.[01]*)
12754     shlibpath_overrides_runpath=yes
12755     hardcode_into_libs=yes
12756     ;;
12757   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12758   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12759     shlibpath_overrides_runpath=no
12760     hardcode_into_libs=yes
12761     ;;
12762   freebsd*) # from 4.6 on
12763     shlibpath_overrides_runpath=yes
12764     hardcode_into_libs=yes
12765     ;;
12766   esac
12767   ;;
12768
12769 gnu*)
12770   version_type=linux
12771   need_lib_prefix=no
12772   need_version=no
12773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12774   soname_spec='${libname}${release}${shared_ext}$major'
12775   shlibpath_var=LD_LIBRARY_PATH
12776   hardcode_into_libs=yes
12777   ;;
12778
12779 hpux9* | hpux10* | hpux11*)
12780   # Give a soname corresponding to the major version so that dld.sl refuses to
12781   # link against other versions.
12782   version_type=sunos
12783   need_lib_prefix=no
12784   need_version=no
12785   case $host_cpu in
12786   ia64*)
12787     shrext_cmds='.so'
12788     hardcode_into_libs=yes
12789     dynamic_linker="$host_os dld.so"
12790     shlibpath_var=LD_LIBRARY_PATH
12791     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12792     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12793     soname_spec='${libname}${release}${shared_ext}$major'
12794     if test "X$HPUX_IA64_MODE" = X32; then
12795       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12796     else
12797       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12798     fi
12799     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12800     ;;
12801    hppa*64*)
12802      shrext_cmds='.sl'
12803      hardcode_into_libs=yes
12804      dynamic_linker="$host_os dld.sl"
12805      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12806      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12807      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12808      soname_spec='${libname}${release}${shared_ext}$major'
12809      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12810      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12811      ;;
12812    *)
12813     shrext_cmds='.sl'
12814     dynamic_linker="$host_os dld.sl"
12815     shlibpath_var=SHLIB_PATH
12816     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12817     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12818     soname_spec='${libname}${release}${shared_ext}$major'
12819     ;;
12820   esac
12821   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12822   postinstall_cmds='chmod 555 $lib'
12823   ;;
12824
12825 interix3*)
12826   version_type=linux
12827   need_lib_prefix=no
12828   need_version=no
12829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12830   soname_spec='${libname}${release}${shared_ext}$major'
12831   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12832   shlibpath_var=LD_LIBRARY_PATH
12833   shlibpath_overrides_runpath=no
12834   hardcode_into_libs=yes
12835   ;;
12836
12837 irix5* | irix6* | nonstopux*)
12838   case $host_os in
12839     nonstopux*) version_type=nonstopux ;;
12840     *)
12841         if test "$lt_cv_prog_gnu_ld" = yes; then
12842                 version_type=linux
12843         else
12844                 version_type=irix
12845         fi ;;
12846   esac
12847   need_lib_prefix=no
12848   need_version=no
12849   soname_spec='${libname}${release}${shared_ext}$major'
12850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12851   case $host_os in
12852   irix5* | nonstopux*)
12853     libsuff= shlibsuff=
12854     ;;
12855   *)
12856     case $LD in # libtool.m4 will add one of these switches to LD
12857     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12858       libsuff= shlibsuff= libmagic=32-bit;;
12859     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12860       libsuff=32 shlibsuff=N32 libmagic=N32;;
12861     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12862       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12863     *) libsuff= shlibsuff= libmagic=never-match;;
12864     esac
12865     ;;
12866   esac
12867   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12868   shlibpath_overrides_runpath=no
12869   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12870   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12871   hardcode_into_libs=yes
12872   ;;
12873
12874 # No shared lib support for Linux oldld, aout, or coff.
12875 linux*oldld* | linux*aout* | linux*coff*)
12876   dynamic_linker=no
12877   ;;
12878
12879 # This must be Linux ELF.
12880 linux* | k*bsd*-gnu)
12881   version_type=linux
12882   need_lib_prefix=no
12883   need_version=no
12884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12885   soname_spec='${libname}${release}${shared_ext}$major'
12886   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12887   shlibpath_var=LD_LIBRARY_PATH
12888   shlibpath_overrides_runpath=no
12889   # This implies no fast_install, which is unacceptable.
12890   # Some rework will be needed to allow for fast_install
12891   # before this can be enabled.
12892   hardcode_into_libs=yes
12893
12894   # Append ld.so.conf contents to the search path
12895   if test -f /etc/ld.so.conf; then
12896     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' ' '`
12897     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12898   fi
12899
12900   # We used to test for /lib/ld.so.1 and disable shared libraries on
12901   # powerpc, because MkLinux only supported shared libraries with the
12902   # GNU dynamic linker.  Since this was broken with cross compilers,
12903   # most powerpc-linux boxes support dynamic linking these days and
12904   # people can always --disable-shared, the test was removed, and we
12905   # assume the GNU/Linux dynamic linker is in use.
12906   dynamic_linker='GNU/Linux ld.so'
12907   ;;
12908
12909 netbsdelf*-gnu)
12910   version_type=linux
12911   need_lib_prefix=no
12912   need_version=no
12913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12914   soname_spec='${libname}${release}${shared_ext}$major'
12915   shlibpath_var=LD_LIBRARY_PATH
12916   shlibpath_overrides_runpath=no
12917   hardcode_into_libs=yes
12918   dynamic_linker='NetBSD ld.elf_so'
12919   ;;
12920
12921 netbsd*)
12922   version_type=sunos
12923   need_lib_prefix=no
12924   need_version=no
12925   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12926     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12927     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12928     dynamic_linker='NetBSD (a.out) ld.so'
12929   else
12930     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12931     soname_spec='${libname}${release}${shared_ext}$major'
12932     dynamic_linker='NetBSD ld.elf_so'
12933   fi
12934   shlibpath_var=LD_LIBRARY_PATH
12935   shlibpath_overrides_runpath=yes
12936   hardcode_into_libs=yes
12937   ;;
12938
12939 newsos6)
12940   version_type=linux
12941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12942   shlibpath_var=LD_LIBRARY_PATH
12943   shlibpath_overrides_runpath=yes
12944   ;;
12945
12946 nto-qnx*)
12947   version_type=linux
12948   need_lib_prefix=no
12949   need_version=no
12950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12951   soname_spec='${libname}${release}${shared_ext}$major'
12952   shlibpath_var=LD_LIBRARY_PATH
12953   shlibpath_overrides_runpath=yes
12954   ;;
12955
12956 openbsd*)
12957   version_type=sunos
12958   sys_lib_dlsearch_path_spec="/usr/lib"
12959   need_lib_prefix=no
12960   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12961   case $host_os in
12962     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12963     *)                         need_version=no  ;;
12964   esac
12965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12966   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12967   shlibpath_var=LD_LIBRARY_PATH
12968   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12969     case $host_os in
12970       openbsd2.[89] | openbsd2.[89].*)
12971         shlibpath_overrides_runpath=no
12972         ;;
12973       *)
12974         shlibpath_overrides_runpath=yes
12975         ;;
12976       esac
12977   else
12978     shlibpath_overrides_runpath=yes
12979   fi
12980   ;;
12981
12982 os2*)
12983   libname_spec='$name'
12984   shrext_cmds=".dll"
12985   need_lib_prefix=no
12986   library_names_spec='$libname${shared_ext} $libname.a'
12987   dynamic_linker='OS/2 ld.exe'
12988   shlibpath_var=LIBPATH
12989   ;;
12990
12991 osf3* | osf4* | osf5*)
12992   version_type=osf
12993   need_lib_prefix=no
12994   need_version=no
12995   soname_spec='${libname}${release}${shared_ext}$major'
12996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12997   shlibpath_var=LD_LIBRARY_PATH
12998   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12999   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13000   ;;
13001
13002 solaris*)
13003   version_type=linux
13004   need_lib_prefix=no
13005   need_version=no
13006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13007   soname_spec='${libname}${release}${shared_ext}$major'
13008   shlibpath_var=LD_LIBRARY_PATH
13009   shlibpath_overrides_runpath=yes
13010   hardcode_into_libs=yes
13011   # ldd complains unless libraries are executable
13012   postinstall_cmds='chmod +x $lib'
13013   ;;
13014
13015 sunos4*)
13016   version_type=sunos
13017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13018   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13019   shlibpath_var=LD_LIBRARY_PATH
13020   shlibpath_overrides_runpath=yes
13021   if test "$with_gnu_ld" = yes; then
13022     need_lib_prefix=no
13023   fi
13024   need_version=yes
13025   ;;
13026
13027 sysv4 | sysv4.3*)
13028   version_type=linux
13029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13030   soname_spec='${libname}${release}${shared_ext}$major'
13031   shlibpath_var=LD_LIBRARY_PATH
13032   case $host_vendor in
13033     sni)
13034       shlibpath_overrides_runpath=no
13035       need_lib_prefix=no
13036       export_dynamic_flag_spec='${wl}-Blargedynsym'
13037       runpath_var=LD_RUN_PATH
13038       ;;
13039     siemens)
13040       need_lib_prefix=no
13041       ;;
13042     motorola)
13043       need_lib_prefix=no
13044       need_version=no
13045       shlibpath_overrides_runpath=no
13046       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13047       ;;
13048   esac
13049   ;;
13050
13051 sysv4*MP*)
13052   if test -d /usr/nec ;then
13053     version_type=linux
13054     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13055     soname_spec='$libname${shared_ext}.$major'
13056     shlibpath_var=LD_LIBRARY_PATH
13057   fi
13058   ;;
13059
13060 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13061   version_type=freebsd-elf
13062   need_lib_prefix=no
13063   need_version=no
13064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13065   soname_spec='${libname}${release}${shared_ext}$major'
13066   shlibpath_var=LD_LIBRARY_PATH
13067   hardcode_into_libs=yes
13068   if test "$with_gnu_ld" = yes; then
13069     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13070     shlibpath_overrides_runpath=no
13071   else
13072     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13073     shlibpath_overrides_runpath=yes
13074     case $host_os in
13075       sco3.2v5*)
13076         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13077         ;;
13078     esac
13079   fi
13080   sys_lib_dlsearch_path_spec='/usr/lib'
13081   ;;
13082
13083 uts4*)
13084   version_type=linux
13085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13086   soname_spec='${libname}${release}${shared_ext}$major'
13087   shlibpath_var=LD_LIBRARY_PATH
13088   ;;
13089
13090 *)
13091   dynamic_linker=no
13092   ;;
13093 esac
13094 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13095 echo "${ECHO_T}$dynamic_linker" >&6; }
13096 test "$dynamic_linker" = no && can_build_shared=no
13097
13098 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13099 if test "$GCC" = yes; then
13100   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13101 fi
13102
13103 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13104 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13105 hardcode_action_CXX=
13106 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13107    test -n "$runpath_var_CXX" || \
13108    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13109
13110   # We can hardcode non-existant directories.
13111   if test "$hardcode_direct_CXX" != no &&
13112      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13113      # have to relink, otherwise we might link with an installed library
13114      # when we should be linking with a yet-to-be-installed one
13115      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13116      test "$hardcode_minus_L_CXX" != no; then
13117     # Linking always hardcodes the temporary library directory.
13118     hardcode_action_CXX=relink
13119   else
13120     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13121     hardcode_action_CXX=immediate
13122   fi
13123 else
13124   # We cannot hardcode anything, or else we can only hardcode existing
13125   # directories.
13126   hardcode_action_CXX=unsupported
13127 fi
13128 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13129 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13130
13131 if test "$hardcode_action_CXX" = relink; then
13132   # Fast installation is not supported
13133   enable_fast_install=no
13134 elif test "$shlibpath_overrides_runpath" = yes ||
13135      test "$enable_shared" = no; then
13136   # Fast installation is not necessary
13137   enable_fast_install=needless
13138 fi
13139
13140
13141 # The else clause should only fire when bootstrapping the
13142 # libtool distribution, otherwise you forgot to ship ltmain.sh
13143 # with your package, and you will get complaints that there are
13144 # no rules to generate ltmain.sh.
13145 if test -f "$ltmain"; then
13146   # See if we are running on zsh, and set the options which allow our commands through
13147   # without removal of \ escapes.
13148   if test -n "${ZSH_VERSION+set}" ; then
13149     setopt NO_GLOB_SUBST
13150   fi
13151   # Now quote all the things that may contain metacharacters while being
13152   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13153   # variables and quote the copies for generation of the libtool script.
13154   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13155     SED SHELL STRIP \
13156     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13157     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13158     deplibs_check_method reload_flag reload_cmds need_locks \
13159     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13160     lt_cv_sys_global_symbol_to_c_name_address \
13161     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13162     old_postinstall_cmds old_postuninstall_cmds \
13163     compiler_CXX \
13164     CC_CXX \
13165     LD_CXX \
13166     lt_prog_compiler_wl_CXX \
13167     lt_prog_compiler_pic_CXX \
13168     lt_prog_compiler_static_CXX \
13169     lt_prog_compiler_no_builtin_flag_CXX \
13170     export_dynamic_flag_spec_CXX \
13171     thread_safe_flag_spec_CXX \
13172     whole_archive_flag_spec_CXX \
13173     enable_shared_with_static_runtimes_CXX \
13174     old_archive_cmds_CXX \
13175     old_archive_from_new_cmds_CXX \
13176     predep_objects_CXX \
13177     postdep_objects_CXX \
13178     predeps_CXX \
13179     postdeps_CXX \
13180     compiler_lib_search_path_CXX \
13181     archive_cmds_CXX \
13182     archive_expsym_cmds_CXX \
13183     postinstall_cmds_CXX \
13184     postuninstall_cmds_CXX \
13185     old_archive_from_expsyms_cmds_CXX \
13186     allow_undefined_flag_CXX \
13187     no_undefined_flag_CXX \
13188     export_symbols_cmds_CXX \
13189     hardcode_libdir_flag_spec_CXX \
13190     hardcode_libdir_flag_spec_ld_CXX \
13191     hardcode_libdir_separator_CXX \
13192     hardcode_automatic_CXX \
13193     module_cmds_CXX \
13194     module_expsym_cmds_CXX \
13195     lt_cv_prog_compiler_c_o_CXX \
13196     exclude_expsyms_CXX \
13197     include_expsyms_CXX; do
13198
13199     case $var in
13200     old_archive_cmds_CXX | \
13201     old_archive_from_new_cmds_CXX | \
13202     archive_cmds_CXX | \
13203     archive_expsym_cmds_CXX | \
13204     module_cmds_CXX | \
13205     module_expsym_cmds_CXX | \
13206     old_archive_from_expsyms_cmds_CXX | \
13207     export_symbols_cmds_CXX | \
13208     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13209     postinstall_cmds | postuninstall_cmds | \
13210     old_postinstall_cmds | old_postuninstall_cmds | \
13211     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13212       # Double-quote double-evaled strings.
13213       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13214       ;;
13215     *)
13216       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13217       ;;
13218     esac
13219   done
13220
13221   case $lt_echo in
13222   *'\$0 --fallback-echo"')
13223     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13224     ;;
13225   esac
13226
13227 cfgfile="$ofile"
13228
13229   cat <<__EOF__ >> "$cfgfile"
13230 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13231
13232 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13233
13234 # Shell to use when invoking shell scripts.
13235 SHELL=$lt_SHELL
13236
13237 # Whether or not to build shared libraries.
13238 build_libtool_libs=$enable_shared
13239
13240 # Whether or not to build static libraries.
13241 build_old_libs=$enable_static
13242
13243 # Whether or not to add -lc for building shared libraries.
13244 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13245
13246 # Whether or not to disallow shared libs when runtime libs are static
13247 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13248
13249 # Whether or not to optimize for fast installation.
13250 fast_install=$enable_fast_install
13251
13252 # The host system.
13253 host_alias=$host_alias
13254 host=$host
13255 host_os=$host_os
13256
13257 # The build system.
13258 build_alias=$build_alias
13259 build=$build
13260 build_os=$build_os
13261
13262 # An echo program that does not interpret backslashes.
13263 echo=$lt_echo
13264
13265 # The archiver.
13266 AR=$lt_AR
13267 AR_FLAGS=$lt_AR_FLAGS
13268
13269 # A C compiler.
13270 LTCC=$lt_LTCC
13271
13272 # LTCC compiler flags.
13273 LTCFLAGS=$lt_LTCFLAGS
13274
13275 # A language-specific compiler.
13276 CC=$lt_compiler_CXX
13277
13278 # Is the compiler the GNU C compiler?
13279 with_gcc=$GCC_CXX
13280
13281 # An ERE matcher.
13282 EGREP=$lt_EGREP
13283
13284 # The linker used to build libraries.
13285 LD=$lt_LD_CXX
13286
13287 # Whether we need hard or soft links.
13288 LN_S=$lt_LN_S
13289
13290 # A BSD-compatible nm program.
13291 NM=$lt_NM
13292
13293 # A symbol stripping program
13294 STRIP=$lt_STRIP
13295
13296 # Used to examine libraries when file_magic_cmd begins "file"
13297 MAGIC_CMD=$MAGIC_CMD
13298
13299 # Used on cygwin: DLL creation program.
13300 DLLTOOL="$DLLTOOL"
13301
13302 # Used on cygwin: object dumper.
13303 OBJDUMP="$OBJDUMP"
13304
13305 # Used on cygwin: assembler.
13306 AS="$AS"
13307
13308 # The name of the directory that contains temporary libtool files.
13309 objdir=$objdir
13310
13311 # How to create reloadable object files.
13312 reload_flag=$lt_reload_flag
13313 reload_cmds=$lt_reload_cmds
13314
13315 # How to pass a linker flag through the compiler.
13316 wl=$lt_lt_prog_compiler_wl_CXX
13317
13318 # Object file suffix (normally "o").
13319 objext="$ac_objext"
13320
13321 # Old archive suffix (normally "a").
13322 libext="$libext"
13323
13324 # Shared library suffix (normally ".so").
13325 shrext_cmds='$shrext_cmds'
13326
13327 # Executable file suffix (normally "").
13328 exeext="$exeext"
13329
13330 # Additional compiler flags for building library objects.
13331 pic_flag=$lt_lt_prog_compiler_pic_CXX
13332 pic_mode=$pic_mode
13333
13334 # What is the maximum length of a command?
13335 max_cmd_len=$lt_cv_sys_max_cmd_len
13336
13337 # Does compiler simultaneously support -c and -o options?
13338 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13339
13340 # Must we lock files when doing compilation?
13341 need_locks=$lt_need_locks
13342
13343 # Do we need the lib prefix for modules?
13344 need_lib_prefix=$need_lib_prefix
13345
13346 # Do we need a version for libraries?
13347 need_version=$need_version
13348
13349 # Whether dlopen is supported.
13350 dlopen_support=$enable_dlopen
13351
13352 # Whether dlopen of programs is supported.
13353 dlopen_self=$enable_dlopen_self
13354
13355 # Whether dlopen of statically linked programs is supported.
13356 dlopen_self_static=$enable_dlopen_self_static
13357
13358 # Compiler flag to prevent dynamic linking.
13359 link_static_flag=$lt_lt_prog_compiler_static_CXX
13360
13361 # Compiler flag to turn off builtin functions.
13362 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13363
13364 # Compiler flag to allow reflexive dlopens.
13365 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13366
13367 # Compiler flag to generate shared objects directly from archives.
13368 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13369
13370 # Compiler flag to generate thread-safe objects.
13371 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13372
13373 # Library versioning type.
13374 version_type=$version_type
13375
13376 # Format of library name prefix.
13377 libname_spec=$lt_libname_spec
13378
13379 # List of archive names.  First name is the real one, the rest are links.
13380 # The last name is the one that the linker finds with -lNAME.
13381 library_names_spec=$lt_library_names_spec
13382
13383 # The coded name of the library, if different from the real name.
13384 soname_spec=$lt_soname_spec
13385
13386 # Commands used to build and install an old-style archive.
13387 RANLIB=$lt_RANLIB
13388 old_archive_cmds=$lt_old_archive_cmds_CXX
13389 old_postinstall_cmds=$lt_old_postinstall_cmds
13390 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13391
13392 # Create an old-style archive from a shared archive.
13393 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13394
13395 # Create a temporary old-style archive to link instead of a shared archive.
13396 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13397
13398 # Commands used to build and install a shared archive.
13399 archive_cmds=$lt_archive_cmds_CXX
13400 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13401 postinstall_cmds=$lt_postinstall_cmds
13402 postuninstall_cmds=$lt_postuninstall_cmds
13403
13404 # Commands used to build a loadable module (assumed same as above if empty)
13405 module_cmds=$lt_module_cmds_CXX
13406 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13407
13408 # Commands to strip libraries.
13409 old_striplib=$lt_old_striplib
13410 striplib=$lt_striplib
13411
13412 # Dependencies to place before the objects being linked to create a
13413 # shared library.
13414 predep_objects=$lt_predep_objects_CXX
13415
13416 # Dependencies to place after the objects being linked to create a
13417 # shared library.
13418 postdep_objects=$lt_postdep_objects_CXX
13419
13420 # Dependencies to place before the objects being linked to create a
13421 # shared library.
13422 predeps=$lt_predeps_CXX
13423
13424 # Dependencies to place after the objects being linked to create a
13425 # shared library.
13426 postdeps=$lt_postdeps_CXX
13427
13428 # The library search path used internally by the compiler when linking
13429 # a shared library.
13430 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13431
13432 # Method to check whether dependent libraries are shared objects.
13433 deplibs_check_method=$lt_deplibs_check_method
13434
13435 # Command to use when deplibs_check_method == file_magic.
13436 file_magic_cmd=$lt_file_magic_cmd
13437
13438 # Flag that allows shared libraries with undefined symbols to be built.
13439 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13440
13441 # Flag that forces no undefined symbols.
13442 no_undefined_flag=$lt_no_undefined_flag_CXX
13443
13444 # Commands used to finish a libtool library installation in a directory.
13445 finish_cmds=$lt_finish_cmds
13446
13447 # Same as above, but a single script fragment to be evaled but not shown.
13448 finish_eval=$lt_finish_eval
13449
13450 # Take the output of nm and produce a listing of raw symbols and C names.
13451 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13452
13453 # Transform the output of nm in a proper C declaration
13454 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13455
13456 # Transform the output of nm in a C name address pair
13457 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13458
13459 # This is the shared library runtime path variable.
13460 runpath_var=$runpath_var
13461
13462 # This is the shared library path variable.
13463 shlibpath_var=$shlibpath_var
13464
13465 # Is shlibpath searched before the hard-coded library search path?
13466 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13467
13468 # How to hardcode a shared library path into an executable.
13469 hardcode_action=$hardcode_action_CXX
13470
13471 # Whether we should hardcode library paths into libraries.
13472 hardcode_into_libs=$hardcode_into_libs
13473
13474 # Flag to hardcode \$libdir into a binary during linking.
13475 # This must work even if \$libdir does not exist.
13476 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13477
13478 # If ld is used when linking, flag to hardcode \$libdir into
13479 # a binary during linking. This must work even if \$libdir does
13480 # not exist.
13481 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13482
13483 # Whether we need a single -rpath flag with a separated argument.
13484 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13485
13486 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13487 # resulting binary.
13488 hardcode_direct=$hardcode_direct_CXX
13489
13490 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13491 # resulting binary.
13492 hardcode_minus_L=$hardcode_minus_L_CXX
13493
13494 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13495 # the resulting binary.
13496 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13497
13498 # Set to yes if building a shared library automatically hardcodes DIR into the library
13499 # and all subsequent libraries and executables linked against it.
13500 hardcode_automatic=$hardcode_automatic_CXX
13501
13502 # Variables whose values should be saved in libtool wrapper scripts and
13503 # restored at relink time.
13504 variables_saved_for_relink="$variables_saved_for_relink"
13505
13506 # Whether libtool must link a program against all its dependency libraries.
13507 link_all_deplibs=$link_all_deplibs_CXX
13508
13509 # Compile-time system search path for libraries
13510 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13511
13512 # Run-time system search path for libraries
13513 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13514
13515 # Fix the shell variable \$srcfile for the compiler.
13516 fix_srcfile_path="$fix_srcfile_path_CXX"
13517
13518 # Set to yes if exported symbols are required.
13519 always_export_symbols=$always_export_symbols_CXX
13520
13521 # The commands to list exported symbols.
13522 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13523
13524 # The commands to extract the exported symbol list from a shared archive.
13525 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13526
13527 # Symbols that should not be listed in the preloaded symbols.
13528 exclude_expsyms=$lt_exclude_expsyms_CXX
13529
13530 # Symbols that must always be exported.
13531 include_expsyms=$lt_include_expsyms_CXX
13532
13533 # ### END LIBTOOL TAG CONFIG: $tagname
13534
13535 __EOF__
13536
13537
13538 else
13539   # If there is no Makefile yet, we rely on a make rule to execute
13540   # `config.status --recheck' to rerun these tests and create the
13541   # libtool script then.
13542   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13543   if test -f "$ltmain_in"; then
13544     test -f Makefile && make "$ltmain"
13545   fi
13546 fi
13547
13548
13549 ac_ext=c
13550 ac_cpp='$CPP $CPPFLAGS'
13551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13554
13555 CC=$lt_save_CC
13556 LDCXX=$LD
13557 LD=$lt_save_LD
13558 GCC=$lt_save_GCC
13559 with_gnu_ldcxx=$with_gnu_ld
13560 with_gnu_ld=$lt_save_with_gnu_ld
13561 lt_cv_path_LDCXX=$lt_cv_path_LD
13562 lt_cv_path_LD=$lt_save_path_LD
13563 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13564 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13565
13566         else
13567           tagname=""
13568         fi
13569         ;;
13570
13571       F77)
13572         if test -n "$F77" && test "X$F77" != "Xno"; then
13573
13574 ac_ext=f
13575 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13576 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13577 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13578
13579
13580 archive_cmds_need_lc_F77=no
13581 allow_undefined_flag_F77=
13582 always_export_symbols_F77=no
13583 archive_expsym_cmds_F77=
13584 export_dynamic_flag_spec_F77=
13585 hardcode_direct_F77=no
13586 hardcode_libdir_flag_spec_F77=
13587 hardcode_libdir_flag_spec_ld_F77=
13588 hardcode_libdir_separator_F77=
13589 hardcode_minus_L_F77=no
13590 hardcode_automatic_F77=no
13591 module_cmds_F77=
13592 module_expsym_cmds_F77=
13593 link_all_deplibs_F77=unknown
13594 old_archive_cmds_F77=$old_archive_cmds
13595 no_undefined_flag_F77=
13596 whole_archive_flag_spec_F77=
13597 enable_shared_with_static_runtimes_F77=no
13598
13599 # Source file extension for f77 test sources.
13600 ac_ext=f
13601
13602 # Object file extension for compiled f77 test sources.
13603 objext=o
13604 objext_F77=$objext
13605
13606 # Code to be used in simple compile tests
13607 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13608
13609 # Code to be used in simple link tests
13610 lt_simple_link_test_code="      program t\n      end\n"
13611
13612 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13613
13614 # If no C compiler was specified, use CC.
13615 LTCC=${LTCC-"$CC"}
13616
13617 # If no C compiler flags were specified, use CFLAGS.
13618 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13619
13620 # Allow CC to be a program name with arguments.
13621 compiler=$CC
13622
13623
13624 # save warnings/boilerplate of simple test code
13625 ac_outfile=conftest.$ac_objext
13626 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13627 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13628 _lt_compiler_boilerplate=`cat conftest.err`
13629 $rm conftest*
13630
13631 ac_outfile=conftest.$ac_objext
13632 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13633 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13634 _lt_linker_boilerplate=`cat conftest.err`
13635 $rm conftest*
13636
13637
13638 # Allow CC to be a program name with arguments.
13639 lt_save_CC="$CC"
13640 CC=${F77-"f77"}
13641 compiler=$CC
13642 compiler_F77=$CC
13643 for cc_temp in $compiler""; do
13644   case $cc_temp in
13645     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13646     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13647     \-*) ;;
13648     *) break;;
13649   esac
13650 done
13651 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13652
13653
13654 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13655 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13656 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13657 echo "${ECHO_T}$can_build_shared" >&6; }
13658
13659 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13660 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13661 test "$can_build_shared" = "no" && enable_shared=no
13662
13663 # On AIX, shared libraries and static libraries use the same namespace, and
13664 # are all built from PIC.
13665 case $host_os in
13666 aix3*)
13667   test "$enable_shared" = yes && enable_static=no
13668   if test -n "$RANLIB"; then
13669     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13670     postinstall_cmds='$RANLIB $lib'
13671   fi
13672   ;;
13673 aix4* | aix5*)
13674   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13675     test "$enable_shared" = yes && enable_static=no
13676   fi
13677   ;;
13678 esac
13679 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13680 echo "${ECHO_T}$enable_shared" >&6; }
13681
13682 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13683 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13684 # Make sure either enable_shared or enable_static is yes.
13685 test "$enable_shared" = yes || enable_static=yes
13686 { echo "$as_me:$LINENO: result: $enable_static" >&5
13687 echo "${ECHO_T}$enable_static" >&6; }
13688
13689 GCC_F77="$G77"
13690 LD_F77="$LD"
13691
13692 lt_prog_compiler_wl_F77=
13693 lt_prog_compiler_pic_F77=
13694 lt_prog_compiler_static_F77=
13695
13696 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13697 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13698
13699   if test "$GCC" = yes; then
13700     lt_prog_compiler_wl_F77='-Wl,'
13701     lt_prog_compiler_static_F77='-static'
13702
13703     case $host_os in
13704       aix*)
13705       # All AIX code is PIC.
13706       if test "$host_cpu" = ia64; then
13707         # AIX 5 now supports IA64 processor
13708         lt_prog_compiler_static_F77='-Bstatic'
13709       fi
13710       ;;
13711
13712     amigaos*)
13713       # FIXME: we need at least 68020 code to build shared libraries, but
13714       # adding the `-m68020' flag to GCC prevents building anything better,
13715       # like `-m68040'.
13716       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13717       ;;
13718
13719     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13720       # PIC is the default for these OSes.
13721       ;;
13722
13723     mingw* | pw32* | os2*)
13724       # This hack is so that the source file can tell whether it is being
13725       # built for inclusion in a dll (and should export symbols for example).
13726       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13727       ;;
13728
13729     darwin* | rhapsody*)
13730       # PIC is the default on this platform
13731       # Common symbols not allowed in MH_DYLIB files
13732       lt_prog_compiler_pic_F77='-fno-common'
13733       ;;
13734
13735     interix3*)
13736       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13737       # Instead, we relocate shared libraries at runtime.
13738       ;;
13739
13740     msdosdjgpp*)
13741       # Just because we use GCC doesn't mean we suddenly get shared libraries
13742       # on systems that don't support them.
13743       lt_prog_compiler_can_build_shared_F77=no
13744       enable_shared=no
13745       ;;
13746
13747     sysv4*MP*)
13748       if test -d /usr/nec; then
13749         lt_prog_compiler_pic_F77=-Kconform_pic
13750       fi
13751       ;;
13752
13753     hpux*)
13754       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13755       # not for PA HP-UX.
13756       case $host_cpu in
13757       hppa*64*|ia64*)
13758         # +Z the default
13759         ;;
13760       *)
13761         lt_prog_compiler_pic_F77='-fPIC'
13762         ;;
13763       esac
13764       ;;
13765
13766     *)
13767       lt_prog_compiler_pic_F77='-fPIC'
13768       ;;
13769     esac
13770   else
13771     # PORTME Check for flag to pass linker flags through the system compiler.
13772     case $host_os in
13773     aix*)
13774       lt_prog_compiler_wl_F77='-Wl,'
13775       if test "$host_cpu" = ia64; then
13776         # AIX 5 now supports IA64 processor
13777         lt_prog_compiler_static_F77='-Bstatic'
13778       else
13779         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13780       fi
13781       ;;
13782       darwin*)
13783         # PIC is the default on this platform
13784         # Common symbols not allowed in MH_DYLIB files
13785        case $cc_basename in
13786          xlc*)
13787          lt_prog_compiler_pic_F77='-qnocommon'
13788          lt_prog_compiler_wl_F77='-Wl,'
13789          ;;
13790        esac
13791        ;;
13792
13793     mingw* | pw32* | os2*)
13794       # This hack is so that the source file can tell whether it is being
13795       # built for inclusion in a dll (and should export symbols for example).
13796       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13797       ;;
13798
13799     hpux9* | hpux10* | hpux11*)
13800       lt_prog_compiler_wl_F77='-Wl,'
13801       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13802       # not for PA HP-UX.
13803       case $host_cpu in
13804       hppa*64*|ia64*)
13805         # +Z the default
13806         ;;
13807       *)
13808         lt_prog_compiler_pic_F77='+Z'
13809         ;;
13810       esac
13811       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13812       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13813       ;;
13814
13815     irix5* | irix6* | nonstopux*)
13816       lt_prog_compiler_wl_F77='-Wl,'
13817       # PIC (with -KPIC) is the default.
13818       lt_prog_compiler_static_F77='-non_shared'
13819       ;;
13820
13821     newsos6)
13822       lt_prog_compiler_pic_F77='-KPIC'
13823       lt_prog_compiler_static_F77='-Bstatic'
13824       ;;
13825
13826     linux* | k*bsd*-gnu)
13827       case $cc_basename in
13828       icc* | ecc*)
13829         lt_prog_compiler_wl_F77='-Wl,'
13830         lt_prog_compiler_pic_F77='-KPIC'
13831         lt_prog_compiler_static_F77='-static'
13832         ;;
13833       pgcc* | pgf77* | pgf90* | pgf95*)
13834         # Portland Group compilers (*not* the Pentium gcc compiler,
13835         # which looks to be a dead project)
13836         lt_prog_compiler_wl_F77='-Wl,'
13837         lt_prog_compiler_pic_F77='-fpic'
13838         lt_prog_compiler_static_F77='-Bstatic'
13839         ;;
13840       ccc*)
13841         lt_prog_compiler_wl_F77='-Wl,'
13842         # All Alpha code is PIC.
13843         lt_prog_compiler_static_F77='-non_shared'
13844         ;;
13845       esac
13846       ;;
13847
13848     osf3* | osf4* | osf5*)
13849       lt_prog_compiler_wl_F77='-Wl,'
13850       # All OSF/1 code is PIC.
13851       lt_prog_compiler_static_F77='-non_shared'
13852       ;;
13853
13854     solaris*)
13855       lt_prog_compiler_pic_F77='-KPIC'
13856       lt_prog_compiler_static_F77='-Bstatic'
13857       case $cc_basename in
13858       f77* | f90* | f95*)
13859         lt_prog_compiler_wl_F77='-Qoption ld ';;
13860       *)
13861         lt_prog_compiler_wl_F77='-Wl,';;
13862       esac
13863       ;;
13864
13865     sunos4*)
13866       lt_prog_compiler_wl_F77='-Qoption ld '
13867       lt_prog_compiler_pic_F77='-PIC'
13868       lt_prog_compiler_static_F77='-Bstatic'
13869       ;;
13870
13871     sysv4 | sysv4.2uw2* | sysv4.3*)
13872       lt_prog_compiler_wl_F77='-Wl,'
13873       lt_prog_compiler_pic_F77='-KPIC'
13874       lt_prog_compiler_static_F77='-Bstatic'
13875       ;;
13876
13877     sysv4*MP*)
13878       if test -d /usr/nec ;then
13879         lt_prog_compiler_pic_F77='-Kconform_pic'
13880         lt_prog_compiler_static_F77='-Bstatic'
13881       fi
13882       ;;
13883
13884     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13885       lt_prog_compiler_wl_F77='-Wl,'
13886       lt_prog_compiler_pic_F77='-KPIC'
13887       lt_prog_compiler_static_F77='-Bstatic'
13888       ;;
13889
13890     unicos*)
13891       lt_prog_compiler_wl_F77='-Wl,'
13892       lt_prog_compiler_can_build_shared_F77=no
13893       ;;
13894
13895     uts4*)
13896       lt_prog_compiler_pic_F77='-pic'
13897       lt_prog_compiler_static_F77='-Bstatic'
13898       ;;
13899
13900     *)
13901       lt_prog_compiler_can_build_shared_F77=no
13902       ;;
13903     esac
13904   fi
13905
13906 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13907 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13908
13909 #
13910 # Check to make sure the PIC flag actually works.
13911 #
13912 if test -n "$lt_prog_compiler_pic_F77"; then
13913
13914 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13915 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13916 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13917   echo $ECHO_N "(cached) $ECHO_C" >&6
13918 else
13919   lt_prog_compiler_pic_works_F77=no
13920   ac_outfile=conftest.$ac_objext
13921    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13922    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13923    # Insert the option either (1) after the last *FLAGS variable, or
13924    # (2) before a word containing "conftest.", or (3) at the end.
13925    # Note that $ac_compile itself does not contain backslashes and begins
13926    # with a dollar sign (not a hyphen), so the echo should work correctly.
13927    # The option is referenced via a variable to avoid confusing sed.
13928    lt_compile=`echo "$ac_compile" | $SED \
13929    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13930    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13931    -e 's:$: $lt_compiler_flag:'`
13932    (eval echo "\"\$as_me:13932: $lt_compile\"" >&5)
13933    (eval "$lt_compile" 2>conftest.err)
13934    ac_status=$?
13935    cat conftest.err >&5
13936    echo "$as_me:13936: \$? = $ac_status" >&5
13937    if (exit $ac_status) && test -s "$ac_outfile"; then
13938      # The compiler can only warn and ignore the option if not recognized
13939      # So say no if there are warnings other than the usual output.
13940      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13941      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13942      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13943        lt_prog_compiler_pic_works_F77=yes
13944      fi
13945    fi
13946    $rm conftest*
13947
13948 fi
13949 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13950 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13951
13952 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13953     case $lt_prog_compiler_pic_F77 in
13954      "" | " "*) ;;
13955      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13956      esac
13957 else
13958     lt_prog_compiler_pic_F77=
13959      lt_prog_compiler_can_build_shared_F77=no
13960 fi
13961
13962 fi
13963 case $host_os in
13964   # For platforms which do not support PIC, -DPIC is meaningless:
13965   *djgpp*)
13966     lt_prog_compiler_pic_F77=
13967     ;;
13968   *)
13969     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13970     ;;
13971 esac
13972
13973 #
13974 # Check to make sure the static flag actually works.
13975 #
13976 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13977 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13978 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13979 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13980   echo $ECHO_N "(cached) $ECHO_C" >&6
13981 else
13982   lt_prog_compiler_static_works_F77=no
13983    save_LDFLAGS="$LDFLAGS"
13984    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13985    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13986    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13987      # The linker can only warn and ignore the option if not recognized
13988      # So say no if there are warnings
13989      if test -s conftest.err; then
13990        # Append any errors to the config.log.
13991        cat conftest.err 1>&5
13992        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13993        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13994        if diff conftest.exp conftest.er2 >/dev/null; then
13995          lt_prog_compiler_static_works_F77=yes
13996        fi
13997      else
13998        lt_prog_compiler_static_works_F77=yes
13999      fi
14000    fi
14001    $rm conftest*
14002    LDFLAGS="$save_LDFLAGS"
14003
14004 fi
14005 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14006 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14007
14008 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14009     :
14010 else
14011     lt_prog_compiler_static_F77=
14012 fi
14013
14014
14015 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14016 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14017 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14018   echo $ECHO_N "(cached) $ECHO_C" >&6
14019 else
14020   lt_cv_prog_compiler_c_o_F77=no
14021    $rm -r conftest 2>/dev/null
14022    mkdir conftest
14023    cd conftest
14024    mkdir out
14025    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14026
14027    lt_compiler_flag="-o out/conftest2.$ac_objext"
14028    # Insert the option either (1) after the last *FLAGS variable, or
14029    # (2) before a word containing "conftest.", or (3) at the end.
14030    # Note that $ac_compile itself does not contain backslashes and begins
14031    # with a dollar sign (not a hyphen), so the echo should work correctly.
14032    lt_compile=`echo "$ac_compile" | $SED \
14033    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14034    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14035    -e 's:$: $lt_compiler_flag:'`
14036    (eval echo "\"\$as_me:14036: $lt_compile\"" >&5)
14037    (eval "$lt_compile" 2>out/conftest.err)
14038    ac_status=$?
14039    cat out/conftest.err >&5
14040    echo "$as_me:14040: \$? = $ac_status" >&5
14041    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14042    then
14043      # The compiler can only warn and ignore the option if not recognized
14044      # So say no if there are warnings
14045      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14046      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14047      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14048        lt_cv_prog_compiler_c_o_F77=yes
14049      fi
14050    fi
14051    chmod u+w . 2>&5
14052    $rm conftest*
14053    # SGI C++ compiler will create directory out/ii_files/ for
14054    # template instantiation
14055    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14056    $rm out/* && rmdir out
14057    cd ..
14058    rmdir conftest
14059    $rm conftest*
14060
14061 fi
14062 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14063 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14064
14065
14066 hard_links="nottested"
14067 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14068   # do not overwrite the value of need_locks provided by the user
14069   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14070 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14071   hard_links=yes
14072   $rm conftest*
14073   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14074   touch conftest.a
14075   ln conftest.a conftest.b 2>&5 || hard_links=no
14076   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14077   { echo "$as_me:$LINENO: result: $hard_links" >&5
14078 echo "${ECHO_T}$hard_links" >&6; }
14079   if test "$hard_links" = no; then
14080     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14081 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14082     need_locks=warn
14083   fi
14084 else
14085   need_locks=no
14086 fi
14087
14088 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14089 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14090
14091   runpath_var=
14092   allow_undefined_flag_F77=
14093   enable_shared_with_static_runtimes_F77=no
14094   archive_cmds_F77=
14095   archive_expsym_cmds_F77=
14096   old_archive_From_new_cmds_F77=
14097   old_archive_from_expsyms_cmds_F77=
14098   export_dynamic_flag_spec_F77=
14099   whole_archive_flag_spec_F77=
14100   thread_safe_flag_spec_F77=
14101   hardcode_libdir_flag_spec_F77=
14102   hardcode_libdir_flag_spec_ld_F77=
14103   hardcode_libdir_separator_F77=
14104   hardcode_direct_F77=no
14105   hardcode_minus_L_F77=no
14106   hardcode_shlibpath_var_F77=unsupported
14107   link_all_deplibs_F77=unknown
14108   hardcode_automatic_F77=no
14109   module_cmds_F77=
14110   module_expsym_cmds_F77=
14111   always_export_symbols_F77=no
14112   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14113   # include_expsyms should be a list of space-separated symbols to be *always*
14114   # included in the symbol list
14115   include_expsyms_F77=
14116   # exclude_expsyms can be an extended regexp of symbols to exclude
14117   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14118   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14119   # as well as any symbol that contains `d'.
14120   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14121   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14122   # platforms (ab)use it in PIC code, but their linkers get confused if
14123   # the symbol is explicitly referenced.  Since portable code cannot
14124   # rely on this symbol name, it's probably fine to never include it in
14125   # preloaded symbol tables.
14126   extract_expsyms_cmds=
14127   # Just being paranoid about ensuring that cc_basename is set.
14128   for cc_temp in $compiler""; do
14129   case $cc_temp in
14130     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14131     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14132     \-*) ;;
14133     *) break;;
14134   esac
14135 done
14136 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14137
14138   case $host_os in
14139   cygwin* | mingw* | pw32*)
14140     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14141     # When not using gcc, we currently assume that we are using
14142     # Microsoft Visual C++.
14143     if test "$GCC" != yes; then
14144       with_gnu_ld=no
14145     fi
14146     ;;
14147   interix*)
14148     # we just hope/assume this is gcc and not c89 (= MSVC++)
14149     with_gnu_ld=yes
14150     ;;
14151   openbsd*)
14152     with_gnu_ld=no
14153     ;;
14154   esac
14155
14156   ld_shlibs_F77=yes
14157   if test "$with_gnu_ld" = yes; then
14158     # If archive_cmds runs LD, not CC, wlarc should be empty
14159     wlarc='${wl}'
14160
14161     # Set some defaults for GNU ld with shared library support. These
14162     # are reset later if shared libraries are not supported. Putting them
14163     # here allows them to be overridden if necessary.
14164     runpath_var=LD_RUN_PATH
14165     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14166     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14167     # ancient GNU ld didn't support --whole-archive et. al.
14168     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14169         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14170       else
14171         whole_archive_flag_spec_F77=
14172     fi
14173     supports_anon_versioning=no
14174     case `$LD -v 2>/dev/null` in
14175       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14176       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14177       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14178       *\ 2.11.*) ;; # other 2.11 versions
14179       *) supports_anon_versioning=yes ;;
14180     esac
14181
14182     # See if GNU ld supports shared libraries.
14183     case $host_os in
14184     aix3* | aix4* | aix5*)
14185       # On AIX/PPC, the GNU linker is very broken
14186       if test "$host_cpu" != ia64; then
14187         ld_shlibs_F77=no
14188         cat <<EOF 1>&2
14189
14190 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14191 *** to be unable to reliably create shared libraries on AIX.
14192 *** Therefore, libtool is disabling shared libraries support.  If you
14193 *** really care for shared libraries, you may want to modify your PATH
14194 *** so that a non-GNU linker is found, and then restart.
14195
14196 EOF
14197       fi
14198       ;;
14199
14200     amigaos*)
14201       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)'
14202       hardcode_libdir_flag_spec_F77='-L$libdir'
14203       hardcode_minus_L_F77=yes
14204
14205       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14206       # that the semantics of dynamic libraries on AmigaOS, at least up
14207       # to version 4, is to share data among multiple programs linked
14208       # with the same dynamic library.  Since this doesn't match the
14209       # behavior of shared libraries on other platforms, we can't use
14210       # them.
14211       ld_shlibs_F77=no
14212       ;;
14213
14214     beos*)
14215       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14216         allow_undefined_flag_F77=unsupported
14217         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14218         # support --undefined.  This deserves some investigation.  FIXME
14219         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14220       else
14221         ld_shlibs_F77=no
14222       fi
14223       ;;
14224
14225     cygwin* | mingw* | pw32*)
14226       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14227       # as there is no search path for DLLs.
14228       hardcode_libdir_flag_spec_F77='-L$libdir'
14229       allow_undefined_flag_F77=unsupported
14230       always_export_symbols_F77=no
14231       enable_shared_with_static_runtimes_F77=yes
14232       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14233
14234       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14235         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14236         # If the export-symbols file already is a .def file (1st line
14237         # is EXPORTS), use it as is; otherwise, prepend...
14238         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14239           cp $export_symbols $output_objdir/$soname.def;
14240         else
14241           echo EXPORTS > $output_objdir/$soname.def;
14242           cat $export_symbols >> $output_objdir/$soname.def;
14243         fi~
14244         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14245       else
14246         ld_shlibs_F77=no
14247       fi
14248       ;;
14249
14250     interix3*)
14251       hardcode_direct_F77=no
14252       hardcode_shlibpath_var_F77=no
14253       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14254       export_dynamic_flag_spec_F77='${wl}-E'
14255       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14256       # Instead, shared libraries are loaded at an image base (0x10000000 by
14257       # default) and relocated if they conflict, which is a slow very memory
14258       # consuming and fragmenting process.  To avoid this, we pick a random,
14259       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14260       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14261       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'
14262       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'
14263       ;;
14264
14265     linux* | k*bsd*-gnu)
14266       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14267         tmp_addflag=
14268         case $cc_basename,$host_cpu in
14269         pgcc*)                          # Portland Group C compiler
14270           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'
14271           tmp_addflag=' $pic_flag'
14272           ;;
14273         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14274           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'
14275           tmp_addflag=' $pic_flag -Mnomain' ;;
14276         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14277           tmp_addflag=' -i_dynamic' ;;
14278         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14279           tmp_addflag=' -i_dynamic -nofor_main' ;;
14280         ifc* | ifort*)                  # Intel Fortran compiler
14281           tmp_addflag=' -nofor_main' ;;
14282         esac
14283         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14284
14285         if test $supports_anon_versioning = yes; then
14286           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14287   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14288   $echo "local: *; };" >> $output_objdir/$libname.ver~
14289           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14290         fi
14291         link_all_deplibs_F77=no
14292       else
14293         ld_shlibs_F77=no
14294       fi
14295       ;;
14296
14297     netbsd* | netbsdelf*-gnu)
14298       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14299         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14300         wlarc=
14301       else
14302         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14303         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14304       fi
14305       ;;
14306
14307     solaris*)
14308       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14309         ld_shlibs_F77=no
14310         cat <<EOF 1>&2
14311
14312 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14313 *** create shared libraries on Solaris systems.  Therefore, libtool
14314 *** is disabling shared libraries support.  We urge you to upgrade GNU
14315 *** binutils to release 2.9.1 or newer.  Another option is to modify
14316 *** your PATH or compiler configuration so that the native linker is
14317 *** used, and then restart.
14318
14319 EOF
14320       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14321         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14322         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14323       else
14324         ld_shlibs_F77=no
14325       fi
14326       ;;
14327
14328     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14329       case `$LD -v 2>&1` in
14330         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14331         ld_shlibs_F77=no
14332         cat <<_LT_EOF 1>&2
14333
14334 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14335 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14336 *** is disabling shared libraries support.  We urge you to upgrade GNU
14337 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14338 *** your PATH or compiler configuration so that the native linker is
14339 *** used, and then restart.
14340
14341 _LT_EOF
14342         ;;
14343         *)
14344           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14345             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14346             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14347             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14348           else
14349             ld_shlibs_F77=no
14350           fi
14351         ;;
14352       esac
14353       ;;
14354
14355     sunos4*)
14356       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14357       wlarc=
14358       hardcode_direct_F77=yes
14359       hardcode_shlibpath_var_F77=no
14360       ;;
14361
14362     *)
14363       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14364         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14365         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14366       else
14367         ld_shlibs_F77=no
14368       fi
14369       ;;
14370     esac
14371
14372     if test "$ld_shlibs_F77" = no; then
14373       runpath_var=
14374       hardcode_libdir_flag_spec_F77=
14375       export_dynamic_flag_spec_F77=
14376       whole_archive_flag_spec_F77=
14377     fi
14378   else
14379     # PORTME fill in a description of your system's linker (not GNU ld)
14380     case $host_os in
14381     aix3*)
14382       allow_undefined_flag_F77=unsupported
14383       always_export_symbols_F77=yes
14384       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'
14385       # Note: this linker hardcodes the directories in LIBPATH if there
14386       # are no directories specified by -L.
14387       hardcode_minus_L_F77=yes
14388       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14389         # Neither direct hardcoding nor static linking is supported with a
14390         # broken collect2.
14391         hardcode_direct_F77=unsupported
14392       fi
14393       ;;
14394
14395     aix4* | aix5*)
14396       if test "$host_cpu" = ia64; then
14397         # On IA64, the linker does run time linking by default, so we don't
14398         # have to do anything special.
14399         aix_use_runtimelinking=no
14400         exp_sym_flag='-Bexport'
14401         no_entry_flag=""
14402       else
14403         # If we're using GNU nm, then we don't want the "-C" option.
14404         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14405         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14406           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'
14407         else
14408           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'
14409         fi
14410         aix_use_runtimelinking=no
14411
14412         # Test if we are trying to use run time linking or normal
14413         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14414         # need to do runtime linking.
14415         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14416           for ld_flag in $LDFLAGS; do
14417           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14418             aix_use_runtimelinking=yes
14419             break
14420           fi
14421           done
14422           ;;
14423         esac
14424
14425         exp_sym_flag='-bexport'
14426         no_entry_flag='-bnoentry'
14427       fi
14428
14429       # When large executables or shared objects are built, AIX ld can
14430       # have problems creating the table of contents.  If linking a library
14431       # or program results in "error TOC overflow" add -mminimal-toc to
14432       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14433       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14434
14435       archive_cmds_F77=''
14436       hardcode_direct_F77=yes
14437       hardcode_libdir_separator_F77=':'
14438       link_all_deplibs_F77=yes
14439
14440       if test "$GCC" = yes; then
14441         case $host_os in aix4.[012]|aix4.[012].*)
14442         # We only want to do this on AIX 4.2 and lower, the check
14443         # below for broken collect2 doesn't work under 4.3+
14444           collect2name=`${CC} -print-prog-name=collect2`
14445           if test -f "$collect2name" && \
14446            strings "$collect2name" | grep resolve_lib_name >/dev/null
14447           then
14448           # We have reworked collect2
14449           hardcode_direct_F77=yes
14450           else
14451           # We have old collect2
14452           hardcode_direct_F77=unsupported
14453           # It fails to find uninstalled libraries when the uninstalled
14454           # path is not listed in the libpath.  Setting hardcode_minus_L
14455           # to unsupported forces relinking
14456           hardcode_minus_L_F77=yes
14457           hardcode_libdir_flag_spec_F77='-L$libdir'
14458           hardcode_libdir_separator_F77=
14459           fi
14460           ;;
14461         esac
14462         shared_flag='-shared'
14463         if test "$aix_use_runtimelinking" = yes; then
14464           shared_flag="$shared_flag "'${wl}-G'
14465         fi
14466       else
14467         # not using gcc
14468         if test "$host_cpu" = ia64; then
14469         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14470         # chokes on -Wl,-G. The following line is correct:
14471           shared_flag='-G'
14472         else
14473           if test "$aix_use_runtimelinking" = yes; then
14474             shared_flag='${wl}-G'
14475           else
14476             shared_flag='${wl}-bM:SRE'
14477           fi
14478         fi
14479       fi
14480
14481       # It seems that -bexpall does not export symbols beginning with
14482       # underscore (_), so it is better to generate a list of symbols to export.
14483       always_export_symbols_F77=yes
14484       if test "$aix_use_runtimelinking" = yes; then
14485         # Warning - without using the other runtime loading flags (-brtl),
14486         # -berok will link without error, but may produce a broken library.
14487         allow_undefined_flag_F77='-berok'
14488        # Determine the default libpath from the value encoded in an empty executable.
14489        cat >conftest.$ac_ext <<_ACEOF
14490       program main
14491
14492       end
14493 _ACEOF
14494 rm -f conftest.$ac_objext conftest$ac_exeext
14495 if { (ac_try="$ac_link"
14496 case "(($ac_try" in
14497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14498   *) ac_try_echo=$ac_try;;
14499 esac
14500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14501   (eval "$ac_link") 2>conftest.er1
14502   ac_status=$?
14503   grep -v '^ *+' conftest.er1 >conftest.err
14504   rm -f conftest.er1
14505   cat conftest.err >&5
14506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507   (exit $ac_status); } && {
14508          test -z "$ac_f77_werror_flag" ||
14509          test ! -s conftest.err
14510        } && test -s conftest$ac_exeext &&
14511        $as_test_x conftest$ac_exeext; then
14512
14513 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14514 }'`
14515 # Check for a 64-bit object if we didn't find anything.
14516 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; }
14517 }'`; fi
14518 else
14519   echo "$as_me: failed program was:" >&5
14520 sed 's/^/| /' conftest.$ac_ext >&5
14521
14522
14523 fi
14524
14525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14526       conftest$ac_exeext conftest.$ac_ext
14527 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14528
14529        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14530         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"
14531        else
14532         if test "$host_cpu" = ia64; then
14533           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14534           allow_undefined_flag_F77="-z nodefs"
14535           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"
14536         else
14537          # Determine the default libpath from the value encoded in an empty executable.
14538          cat >conftest.$ac_ext <<_ACEOF
14539       program main
14540
14541       end
14542 _ACEOF
14543 rm -f conftest.$ac_objext conftest$ac_exeext
14544 if { (ac_try="$ac_link"
14545 case "(($ac_try" in
14546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14547   *) ac_try_echo=$ac_try;;
14548 esac
14549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14550   (eval "$ac_link") 2>conftest.er1
14551   ac_status=$?
14552   grep -v '^ *+' conftest.er1 >conftest.err
14553   rm -f conftest.er1
14554   cat conftest.err >&5
14555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556   (exit $ac_status); } && {
14557          test -z "$ac_f77_werror_flag" ||
14558          test ! -s conftest.err
14559        } && test -s conftest$ac_exeext &&
14560        $as_test_x conftest$ac_exeext; then
14561
14562 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14563 }'`
14564 # Check for a 64-bit object if we didn't find anything.
14565 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; }
14566 }'`; fi
14567 else
14568   echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.$ac_ext >&5
14570
14571
14572 fi
14573
14574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14575       conftest$ac_exeext conftest.$ac_ext
14576 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14577
14578          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14579           # Warning - without using the other run time loading flags,
14580           # -berok will link without error, but may produce a broken library.
14581           no_undefined_flag_F77=' ${wl}-bernotok'
14582           allow_undefined_flag_F77=' ${wl}-berok'
14583           # Exported symbols can be pulled into shared objects from archives
14584           whole_archive_flag_spec_F77='$convenience'
14585           archive_cmds_need_lc_F77=yes
14586           # This is similar to how AIX traditionally builds its shared libraries.
14587           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'
14588         fi
14589       fi
14590       ;;
14591
14592     amigaos*)
14593       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)'
14594       hardcode_libdir_flag_spec_F77='-L$libdir'
14595       hardcode_minus_L_F77=yes
14596       # see comment about different semantics on the GNU ld section
14597       ld_shlibs_F77=no
14598       ;;
14599
14600     bsdi[45]*)
14601       export_dynamic_flag_spec_F77=-rdynamic
14602       ;;
14603
14604     cygwin* | mingw* | pw32*)
14605       # When not using gcc, we currently assume that we are using
14606       # Microsoft Visual C++.
14607       # hardcode_libdir_flag_spec is actually meaningless, as there is
14608       # no search path for DLLs.
14609       hardcode_libdir_flag_spec_F77=' '
14610       allow_undefined_flag_F77=unsupported
14611       # Tell ltmain to make .lib files, not .a files.
14612       libext=lib
14613       # Tell ltmain to make .dll files, not .so files.
14614       shrext_cmds=".dll"
14615       # FIXME: Setting linknames here is a bad hack.
14616       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14617       # The linker will automatically build a .lib file if we build a DLL.
14618       old_archive_From_new_cmds_F77='true'
14619       # FIXME: Should let the user specify the lib program.
14620       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14621       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14622       enable_shared_with_static_runtimes_F77=yes
14623       ;;
14624
14625     darwin* | rhapsody*)
14626       case $host_os in
14627         rhapsody* | darwin1.[012])
14628          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14629          ;;
14630        *) # Darwin 1.3 on
14631          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14632            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14633          else
14634            case ${MACOSX_DEPLOYMENT_TARGET} in
14635              10.[012])
14636                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14637                ;;
14638              10.*)
14639                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14640                ;;
14641            esac
14642          fi
14643          ;;
14644       esac
14645       archive_cmds_need_lc_F77=no
14646       hardcode_direct_F77=no
14647       hardcode_automatic_F77=yes
14648       hardcode_shlibpath_var_F77=unsupported
14649       whole_archive_flag_spec_F77=''
14650       link_all_deplibs_F77=yes
14651     if test "$GCC" = yes ; then
14652         output_verbose_link_cmd='echo'
14653         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14654       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14655       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14656       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}'
14657       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}'
14658     else
14659       case $cc_basename in
14660         xlc*)
14661          output_verbose_link_cmd='echo'
14662          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14663          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14664           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14665          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}'
14666           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}'
14667           ;;
14668        *)
14669          ld_shlibs_F77=no
14670           ;;
14671       esac
14672     fi
14673       ;;
14674
14675     dgux*)
14676       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14677       hardcode_libdir_flag_spec_F77='-L$libdir'
14678       hardcode_shlibpath_var_F77=no
14679       ;;
14680
14681     freebsd1*)
14682       ld_shlibs_F77=no
14683       ;;
14684
14685     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14686     # support.  Future versions do this automatically, but an explicit c++rt0.o
14687     # does not break anything, and helps significantly (at the cost of a little
14688     # extra space).
14689     freebsd2.2*)
14690       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14691       hardcode_libdir_flag_spec_F77='-R$libdir'
14692       hardcode_direct_F77=yes
14693       hardcode_shlibpath_var_F77=no
14694       ;;
14695
14696     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14697     freebsd2*)
14698       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14699       hardcode_direct_F77=yes
14700       hardcode_minus_L_F77=yes
14701       hardcode_shlibpath_var_F77=no
14702       ;;
14703
14704     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14705     freebsd* | dragonfly*)
14706       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14707       hardcode_libdir_flag_spec_F77='-R$libdir'
14708       hardcode_direct_F77=yes
14709       hardcode_shlibpath_var_F77=no
14710       ;;
14711
14712     hpux9*)
14713       if test "$GCC" = yes; then
14714         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'
14715       else
14716         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'
14717       fi
14718       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14719       hardcode_libdir_separator_F77=:
14720       hardcode_direct_F77=yes
14721
14722       # hardcode_minus_L: Not really in the search PATH,
14723       # but as the default location of the library.
14724       hardcode_minus_L_F77=yes
14725       export_dynamic_flag_spec_F77='${wl}-E'
14726       ;;
14727
14728     hpux10*)
14729       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14730         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14731       else
14732         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14733       fi
14734       if test "$with_gnu_ld" = no; then
14735         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14736         hardcode_libdir_separator_F77=:
14737
14738         hardcode_direct_F77=yes
14739         export_dynamic_flag_spec_F77='${wl}-E'
14740
14741         # hardcode_minus_L: Not really in the search PATH,
14742         # but as the default location of the library.
14743         hardcode_minus_L_F77=yes
14744       fi
14745       ;;
14746
14747     hpux11*)
14748       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14749         case $host_cpu in
14750         hppa*64*)
14751           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14752           ;;
14753         ia64*)
14754           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14755           ;;
14756         *)
14757           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14758           ;;
14759         esac
14760       else
14761         case $host_cpu in
14762         hppa*64*)
14763           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14764           ;;
14765         ia64*)
14766           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14767           ;;
14768         *)
14769           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14770           ;;
14771         esac
14772       fi
14773       if test "$with_gnu_ld" = no; then
14774         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14775         hardcode_libdir_separator_F77=:
14776
14777         case $host_cpu in
14778         hppa*64*|ia64*)
14779           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14780           hardcode_direct_F77=no
14781           hardcode_shlibpath_var_F77=no
14782           ;;
14783         *)
14784           hardcode_direct_F77=yes
14785           export_dynamic_flag_spec_F77='${wl}-E'
14786
14787           # hardcode_minus_L: Not really in the search PATH,
14788           # but as the default location of the library.
14789           hardcode_minus_L_F77=yes
14790           ;;
14791         esac
14792       fi
14793       ;;
14794
14795     irix5* | irix6* | nonstopux*)
14796       if test "$GCC" = yes; then
14797         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'
14798       else
14799         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'
14800         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14801       fi
14802       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14803       hardcode_libdir_separator_F77=:
14804       link_all_deplibs_F77=yes
14805       ;;
14806
14807     netbsd* | netbsdelf*-gnu)
14808       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14809         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14810       else
14811         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14812       fi
14813       hardcode_libdir_flag_spec_F77='-R$libdir'
14814       hardcode_direct_F77=yes
14815       hardcode_shlibpath_var_F77=no
14816       ;;
14817
14818     newsos6)
14819       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14820       hardcode_direct_F77=yes
14821       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14822       hardcode_libdir_separator_F77=:
14823       hardcode_shlibpath_var_F77=no
14824       ;;
14825
14826     openbsd*)
14827       hardcode_direct_F77=yes
14828       hardcode_shlibpath_var_F77=no
14829       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14830         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14831         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14832         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14833         export_dynamic_flag_spec_F77='${wl}-E'
14834       else
14835        case $host_os in
14836          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14837            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14838            hardcode_libdir_flag_spec_F77='-R$libdir'
14839            ;;
14840          *)
14841            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14842            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14843            ;;
14844        esac
14845       fi
14846       ;;
14847
14848     os2*)
14849       hardcode_libdir_flag_spec_F77='-L$libdir'
14850       hardcode_minus_L_F77=yes
14851       allow_undefined_flag_F77=unsupported
14852       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'
14853       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14854       ;;
14855
14856     osf3*)
14857       if test "$GCC" = yes; then
14858         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14859         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'
14860       else
14861         allow_undefined_flag_F77=' -expect_unresolved \*'
14862         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'
14863       fi
14864       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14865       hardcode_libdir_separator_F77=:
14866       ;;
14867
14868     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14869       if test "$GCC" = yes; then
14870         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14871         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'
14872         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14873       else
14874         allow_undefined_flag_F77=' -expect_unresolved \*'
14875         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'
14876         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~
14877         $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'
14878
14879         # Both c and cxx compiler support -rpath directly
14880         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14881       fi
14882       hardcode_libdir_separator_F77=:
14883       ;;
14884
14885     solaris*)
14886       no_undefined_flag_F77=' -z text'
14887       if test "$GCC" = yes; then
14888         wlarc='${wl}'
14889         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14890         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14891           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14892       else
14893         wlarc=''
14894         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14895         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14896         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14897       fi
14898       hardcode_libdir_flag_spec_F77='-R$libdir'
14899       hardcode_shlibpath_var_F77=no
14900       case $host_os in
14901       solaris2.[0-5] | solaris2.[0-5].*) ;;
14902       *)
14903         # The compiler driver will combine linker options so we
14904         # cannot just pass the convience library names through
14905         # without $wl, iff we do not link with $LD.
14906         # Luckily, gcc supports the same syntax we need for Sun Studio.
14907         # Supported since Solaris 2.6 (maybe 2.5.1?)
14908         case $wlarc in
14909         '')
14910           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14911         *)
14912           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' ;;
14913         esac ;;
14914       esac
14915       link_all_deplibs_F77=yes
14916       ;;
14917
14918     sunos4*)
14919       if test "x$host_vendor" = xsequent; then
14920         # Use $CC to link under sequent, because it throws in some extra .o
14921         # files that make .init and .fini sections work.
14922         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14923       else
14924         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14925       fi
14926       hardcode_libdir_flag_spec_F77='-L$libdir'
14927       hardcode_direct_F77=yes
14928       hardcode_minus_L_F77=yes
14929       hardcode_shlibpath_var_F77=no
14930       ;;
14931
14932     sysv4)
14933       case $host_vendor in
14934         sni)
14935           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14936           hardcode_direct_F77=yes # is this really true???
14937         ;;
14938         siemens)
14939           ## LD is ld it makes a PLAMLIB
14940           ## CC just makes a GrossModule.
14941           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14942           reload_cmds_F77='$CC -r -o $output$reload_objs'
14943           hardcode_direct_F77=no
14944         ;;
14945         motorola)
14946           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14947           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14948         ;;
14949       esac
14950       runpath_var='LD_RUN_PATH'
14951       hardcode_shlibpath_var_F77=no
14952       ;;
14953
14954     sysv4.3*)
14955       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14956       hardcode_shlibpath_var_F77=no
14957       export_dynamic_flag_spec_F77='-Bexport'
14958       ;;
14959
14960     sysv4*MP*)
14961       if test -d /usr/nec; then
14962         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14963         hardcode_shlibpath_var_F77=no
14964         runpath_var=LD_RUN_PATH
14965         hardcode_runpath_var=yes
14966         ld_shlibs_F77=yes
14967       fi
14968       ;;
14969
14970     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14971       no_undefined_flag_F77='${wl}-z,text'
14972       archive_cmds_need_lc_F77=no
14973       hardcode_shlibpath_var_F77=no
14974       runpath_var='LD_RUN_PATH'
14975
14976       if test "$GCC" = yes; then
14977         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14978         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14979       else
14980         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14981         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14982       fi
14983       ;;
14984
14985     sysv5* | sco3.2v5* | sco5v6*)
14986       # Note: We can NOT use -z defs as we might desire, because we do not
14987       # link with -lc, and that would cause any symbols used from libc to
14988       # always be unresolved, which means just about no library would
14989       # ever link correctly.  If we're not using GNU ld we use -z text
14990       # though, which does catch some bad symbols but isn't as heavy-handed
14991       # as -z defs.
14992       no_undefined_flag_F77='${wl}-z,text'
14993       allow_undefined_flag_F77='${wl}-z,nodefs'
14994       archive_cmds_need_lc_F77=no
14995       hardcode_shlibpath_var_F77=no
14996       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14997       hardcode_libdir_separator_F77=':'
14998       link_all_deplibs_F77=yes
14999       export_dynamic_flag_spec_F77='${wl}-Bexport'
15000       runpath_var='LD_RUN_PATH'
15001
15002       if test "$GCC" = yes; then
15003         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15004         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15005       else
15006         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15007         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15008       fi
15009       ;;
15010
15011     uts4*)
15012       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15013       hardcode_libdir_flag_spec_F77='-L$libdir'
15014       hardcode_shlibpath_var_F77=no
15015       ;;
15016
15017     *)
15018       ld_shlibs_F77=no
15019       ;;
15020     esac
15021   fi
15022
15023 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15024 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15025 test "$ld_shlibs_F77" = no && can_build_shared=no
15026
15027 #
15028 # Do we need to explicitly link libc?
15029 #
15030 case "x$archive_cmds_need_lc_F77" in
15031 x|xyes)
15032   # Assume -lc should be added
15033   archive_cmds_need_lc_F77=yes
15034
15035   if test "$enable_shared" = yes && test "$GCC" = yes; then
15036     case $archive_cmds_F77 in
15037     *'~'*)
15038       # FIXME: we may have to deal with multi-command sequences.
15039       ;;
15040     '$CC '*)
15041       # Test whether the compiler implicitly links with -lc since on some
15042       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15043       # to ld, don't add -lc before -lgcc.
15044       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15045 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15046       $rm conftest*
15047       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15048
15049       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15050   (eval $ac_compile) 2>&5
15051   ac_status=$?
15052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053   (exit $ac_status); } 2>conftest.err; then
15054         soname=conftest
15055         lib=conftest
15056         libobjs=conftest.$ac_objext
15057         deplibs=
15058         wl=$lt_prog_compiler_wl_F77
15059         pic_flag=$lt_prog_compiler_pic_F77
15060         compiler_flags=-v
15061         linker_flags=-v
15062         verstring=
15063         output_objdir=.
15064         libname=conftest
15065         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15066         allow_undefined_flag_F77=
15067         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15068   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15069   ac_status=$?
15070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071   (exit $ac_status); }
15072         then
15073           archive_cmds_need_lc_F77=no
15074         else
15075           archive_cmds_need_lc_F77=yes
15076         fi
15077         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15078       else
15079         cat conftest.err 1>&5
15080       fi
15081       $rm conftest*
15082       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15083 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15084       ;;
15085     esac
15086   fi
15087   ;;
15088 esac
15089
15090 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15091 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15092 library_names_spec=
15093 libname_spec='lib$name'
15094 soname_spec=
15095 shrext_cmds=".so"
15096 postinstall_cmds=
15097 postuninstall_cmds=
15098 finish_cmds=
15099 finish_eval=
15100 shlibpath_var=
15101 shlibpath_overrides_runpath=unknown
15102 version_type=none
15103 dynamic_linker="$host_os ld.so"
15104 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15105 if test "$GCC" = yes; then
15106   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15107   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15108     # if the path contains ";" then we assume it to be the separator
15109     # otherwise default to the standard path separator (i.e. ":") - it is
15110     # assumed that no part of a normal pathname contains ";" but that should
15111     # okay in the real world where ";" in dirpaths is itself problematic.
15112     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15113   else
15114     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15115   fi
15116 else
15117   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15118 fi
15119 need_lib_prefix=unknown
15120 hardcode_into_libs=no
15121
15122 # when you set need_version to no, make sure it does not cause -set_version
15123 # flags to be left without arguments
15124 need_version=unknown
15125
15126 case $host_os in
15127 aix3*)
15128   version_type=linux
15129   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15130   shlibpath_var=LIBPATH
15131
15132   # AIX 3 has no versioning support, so we append a major version to the name.
15133   soname_spec='${libname}${release}${shared_ext}$major'
15134   ;;
15135
15136 aix4* | aix5*)
15137   version_type=linux
15138   need_lib_prefix=no
15139   need_version=no
15140   hardcode_into_libs=yes
15141   if test "$host_cpu" = ia64; then
15142     # AIX 5 supports IA64
15143     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15144     shlibpath_var=LD_LIBRARY_PATH
15145   else
15146     # With GCC up to 2.95.x, collect2 would create an import file
15147     # for dependence libraries.  The import file would start with
15148     # the line `#! .'.  This would cause the generated library to
15149     # depend on `.', always an invalid library.  This was fixed in
15150     # development snapshots of GCC prior to 3.0.
15151     case $host_os in
15152       aix4 | aix4.[01] | aix4.[01].*)
15153       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15154            echo ' yes '
15155            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15156         :
15157       else
15158         can_build_shared=no
15159       fi
15160       ;;
15161     esac
15162     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15163     # soname into executable. Probably we can add versioning support to
15164     # collect2, so additional links can be useful in future.
15165     if test "$aix_use_runtimelinking" = yes; then
15166       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15167       # instead of lib<name>.a to let people know that these are not
15168       # typical AIX shared libraries.
15169       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15170     else
15171       # We preserve .a as extension for shared libraries through AIX4.2
15172       # and later when we are not doing run time linking.
15173       library_names_spec='${libname}${release}.a $libname.a'
15174       soname_spec='${libname}${release}${shared_ext}$major'
15175     fi
15176     shlibpath_var=LIBPATH
15177   fi
15178   ;;
15179
15180 amigaos*)
15181   library_names_spec='$libname.ixlibrary $libname.a'
15182   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15183   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'
15184   ;;
15185
15186 beos*)
15187   library_names_spec='${libname}${shared_ext}'
15188   dynamic_linker="$host_os ld.so"
15189   shlibpath_var=LIBRARY_PATH
15190   ;;
15191
15192 bsdi[45]*)
15193   version_type=linux
15194   need_version=no
15195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15196   soname_spec='${libname}${release}${shared_ext}$major'
15197   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15198   shlibpath_var=LD_LIBRARY_PATH
15199   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15200   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15201   # the default ld.so.conf also contains /usr/contrib/lib and
15202   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15203   # libtool to hard-code these into programs
15204   ;;
15205
15206 cygwin* | mingw* | pw32*)
15207   version_type=windows
15208   shrext_cmds=".dll"
15209   need_version=no
15210   need_lib_prefix=no
15211
15212   case $GCC,$host_os in
15213   yes,cygwin* | yes,mingw* | yes,pw32*)
15214     library_names_spec='$libname.dll.a'
15215     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15216     postinstall_cmds='base_file=`basename \${file}`~
15217       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15218       dldir=$destdir/`dirname \$dlpath`~
15219       test -d \$dldir || mkdir -p \$dldir~
15220       $install_prog $dir/$dlname \$dldir/$dlname~
15221       chmod a+x \$dldir/$dlname'
15222     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15223       dlpath=$dir/\$dldll~
15224        $rm \$dlpath'
15225     shlibpath_overrides_runpath=yes
15226
15227     case $host_os in
15228     cygwin*)
15229       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15230       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15231       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15232       ;;
15233     mingw*)
15234       # MinGW DLLs use traditional 'lib' prefix
15235       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15236       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15237       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15238         # It is most probably a Windows format PATH printed by
15239         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15240         # path with ; separators, and with drive letters. We can handle the
15241         # drive letters (cygwin fileutils understands them), so leave them,
15242         # especially as we might pass files found there to a mingw objdump,
15243         # which wouldn't understand a cygwinified path. Ahh.
15244         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15245       else
15246         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15247       fi
15248       ;;
15249     pw32*)
15250       # pw32 DLLs use 'pw' prefix rather than 'lib'
15251       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15252       ;;
15253     esac
15254     ;;
15255
15256   *)
15257     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15258     ;;
15259   esac
15260   dynamic_linker='Win32 ld.exe'
15261   # FIXME: first we should search . and the directory the executable is in
15262   shlibpath_var=PATH
15263   ;;
15264
15265 darwin* | rhapsody*)
15266   dynamic_linker="$host_os dyld"
15267   version_type=darwin
15268   need_lib_prefix=no
15269   need_version=no
15270   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15271   soname_spec='${libname}${release}${major}$shared_ext'
15272   shlibpath_overrides_runpath=yes
15273   shlibpath_var=DYLD_LIBRARY_PATH
15274   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15275   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15276   if test "$GCC" = yes; then
15277     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"`
15278   else
15279     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15280   fi
15281   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15282   ;;
15283
15284 dgux*)
15285   version_type=linux
15286   need_lib_prefix=no
15287   need_version=no
15288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15289   soname_spec='${libname}${release}${shared_ext}$major'
15290   shlibpath_var=LD_LIBRARY_PATH
15291   ;;
15292
15293 freebsd1*)
15294   dynamic_linker=no
15295   ;;
15296
15297 freebsd* | dragonfly*)
15298   # DragonFly does not have aout.  When/if they implement a new
15299   # versioning mechanism, adjust this.
15300   if test -x /usr/bin/objformat; then
15301     objformat=`/usr/bin/objformat`
15302   else
15303     case $host_os in
15304     freebsd[123]*) objformat=aout ;;
15305     *) objformat=elf ;;
15306     esac
15307   fi
15308   version_type=freebsd-$objformat
15309   case $version_type in
15310     freebsd-elf*)
15311       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15312       need_version=no
15313       need_lib_prefix=no
15314       ;;
15315     freebsd-*)
15316       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15317       need_version=yes
15318       ;;
15319   esac
15320   shlibpath_var=LD_LIBRARY_PATH
15321   case $host_os in
15322   freebsd2*)
15323     shlibpath_overrides_runpath=yes
15324     ;;
15325   freebsd3.[01]* | freebsdelf3.[01]*)
15326     shlibpath_overrides_runpath=yes
15327     hardcode_into_libs=yes
15328     ;;
15329   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15330   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15331     shlibpath_overrides_runpath=no
15332     hardcode_into_libs=yes
15333     ;;
15334   freebsd*) # from 4.6 on
15335     shlibpath_overrides_runpath=yes
15336     hardcode_into_libs=yes
15337     ;;
15338   esac
15339   ;;
15340
15341 gnu*)
15342   version_type=linux
15343   need_lib_prefix=no
15344   need_version=no
15345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15346   soname_spec='${libname}${release}${shared_ext}$major'
15347   shlibpath_var=LD_LIBRARY_PATH
15348   hardcode_into_libs=yes
15349   ;;
15350
15351 hpux9* | hpux10* | hpux11*)
15352   # Give a soname corresponding to the major version so that dld.sl refuses to
15353   # link against other versions.
15354   version_type=sunos
15355   need_lib_prefix=no
15356   need_version=no
15357   case $host_cpu in
15358   ia64*)
15359     shrext_cmds='.so'
15360     hardcode_into_libs=yes
15361     dynamic_linker="$host_os dld.so"
15362     shlibpath_var=LD_LIBRARY_PATH
15363     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15364     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15365     soname_spec='${libname}${release}${shared_ext}$major'
15366     if test "X$HPUX_IA64_MODE" = X32; then
15367       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15368     else
15369       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15370     fi
15371     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15372     ;;
15373    hppa*64*)
15374      shrext_cmds='.sl'
15375      hardcode_into_libs=yes
15376      dynamic_linker="$host_os dld.sl"
15377      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15378      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15379      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15380      soname_spec='${libname}${release}${shared_ext}$major'
15381      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15382      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15383      ;;
15384    *)
15385     shrext_cmds='.sl'
15386     dynamic_linker="$host_os dld.sl"
15387     shlibpath_var=SHLIB_PATH
15388     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15389     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15390     soname_spec='${libname}${release}${shared_ext}$major'
15391     ;;
15392   esac
15393   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15394   postinstall_cmds='chmod 555 $lib'
15395   ;;
15396
15397 interix3*)
15398   version_type=linux
15399   need_lib_prefix=no
15400   need_version=no
15401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15402   soname_spec='${libname}${release}${shared_ext}$major'
15403   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15404   shlibpath_var=LD_LIBRARY_PATH
15405   shlibpath_overrides_runpath=no
15406   hardcode_into_libs=yes
15407   ;;
15408
15409 irix5* | irix6* | nonstopux*)
15410   case $host_os in
15411     nonstopux*) version_type=nonstopux ;;
15412     *)
15413         if test "$lt_cv_prog_gnu_ld" = yes; then
15414                 version_type=linux
15415         else
15416                 version_type=irix
15417         fi ;;
15418   esac
15419   need_lib_prefix=no
15420   need_version=no
15421   soname_spec='${libname}${release}${shared_ext}$major'
15422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15423   case $host_os in
15424   irix5* | nonstopux*)
15425     libsuff= shlibsuff=
15426     ;;
15427   *)
15428     case $LD in # libtool.m4 will add one of these switches to LD
15429     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15430       libsuff= shlibsuff= libmagic=32-bit;;
15431     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15432       libsuff=32 shlibsuff=N32 libmagic=N32;;
15433     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15434       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15435     *) libsuff= shlibsuff= libmagic=never-match;;
15436     esac
15437     ;;
15438   esac
15439   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15440   shlibpath_overrides_runpath=no
15441   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15442   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15443   hardcode_into_libs=yes
15444   ;;
15445
15446 # No shared lib support for Linux oldld, aout, or coff.
15447 linux*oldld* | linux*aout* | linux*coff*)
15448   dynamic_linker=no
15449   ;;
15450
15451 # This must be Linux ELF.
15452 linux* | k*bsd*-gnu)
15453   version_type=linux
15454   need_lib_prefix=no
15455   need_version=no
15456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15457   soname_spec='${libname}${release}${shared_ext}$major'
15458   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15459   shlibpath_var=LD_LIBRARY_PATH
15460   shlibpath_overrides_runpath=no
15461   # This implies no fast_install, which is unacceptable.
15462   # Some rework will be needed to allow for fast_install
15463   # before this can be enabled.
15464   hardcode_into_libs=yes
15465
15466   # Append ld.so.conf contents to the search path
15467   if test -f /etc/ld.so.conf; then
15468     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' ' '`
15469     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15470   fi
15471
15472   # We used to test for /lib/ld.so.1 and disable shared libraries on
15473   # powerpc, because MkLinux only supported shared libraries with the
15474   # GNU dynamic linker.  Since this was broken with cross compilers,
15475   # most powerpc-linux boxes support dynamic linking these days and
15476   # people can always --disable-shared, the test was removed, and we
15477   # assume the GNU/Linux dynamic linker is in use.
15478   dynamic_linker='GNU/Linux ld.so'
15479   ;;
15480
15481 netbsdelf*-gnu)
15482   version_type=linux
15483   need_lib_prefix=no
15484   need_version=no
15485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15486   soname_spec='${libname}${release}${shared_ext}$major'
15487   shlibpath_var=LD_LIBRARY_PATH
15488   shlibpath_overrides_runpath=no
15489   hardcode_into_libs=yes
15490   dynamic_linker='NetBSD ld.elf_so'
15491   ;;
15492
15493 netbsd*)
15494   version_type=sunos
15495   need_lib_prefix=no
15496   need_version=no
15497   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15498     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15499     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15500     dynamic_linker='NetBSD (a.out) ld.so'
15501   else
15502     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15503     soname_spec='${libname}${release}${shared_ext}$major'
15504     dynamic_linker='NetBSD ld.elf_so'
15505   fi
15506   shlibpath_var=LD_LIBRARY_PATH
15507   shlibpath_overrides_runpath=yes
15508   hardcode_into_libs=yes
15509   ;;
15510
15511 newsos6)
15512   version_type=linux
15513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15514   shlibpath_var=LD_LIBRARY_PATH
15515   shlibpath_overrides_runpath=yes
15516   ;;
15517
15518 nto-qnx*)
15519   version_type=linux
15520   need_lib_prefix=no
15521   need_version=no
15522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15523   soname_spec='${libname}${release}${shared_ext}$major'
15524   shlibpath_var=LD_LIBRARY_PATH
15525   shlibpath_overrides_runpath=yes
15526   ;;
15527
15528 openbsd*)
15529   version_type=sunos
15530   sys_lib_dlsearch_path_spec="/usr/lib"
15531   need_lib_prefix=no
15532   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15533   case $host_os in
15534     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15535     *)                         need_version=no  ;;
15536   esac
15537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15538   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15539   shlibpath_var=LD_LIBRARY_PATH
15540   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15541     case $host_os in
15542       openbsd2.[89] | openbsd2.[89].*)
15543         shlibpath_overrides_runpath=no
15544         ;;
15545       *)
15546         shlibpath_overrides_runpath=yes
15547         ;;
15548       esac
15549   else
15550     shlibpath_overrides_runpath=yes
15551   fi
15552   ;;
15553
15554 os2*)
15555   libname_spec='$name'
15556   shrext_cmds=".dll"
15557   need_lib_prefix=no
15558   library_names_spec='$libname${shared_ext} $libname.a'
15559   dynamic_linker='OS/2 ld.exe'
15560   shlibpath_var=LIBPATH
15561   ;;
15562
15563 osf3* | osf4* | osf5*)
15564   version_type=osf
15565   need_lib_prefix=no
15566   need_version=no
15567   soname_spec='${libname}${release}${shared_ext}$major'
15568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15569   shlibpath_var=LD_LIBRARY_PATH
15570   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15571   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15572   ;;
15573
15574 solaris*)
15575   version_type=linux
15576   need_lib_prefix=no
15577   need_version=no
15578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15579   soname_spec='${libname}${release}${shared_ext}$major'
15580   shlibpath_var=LD_LIBRARY_PATH
15581   shlibpath_overrides_runpath=yes
15582   hardcode_into_libs=yes
15583   # ldd complains unless libraries are executable
15584   postinstall_cmds='chmod +x $lib'
15585   ;;
15586
15587 sunos4*)
15588   version_type=sunos
15589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15590   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15591   shlibpath_var=LD_LIBRARY_PATH
15592   shlibpath_overrides_runpath=yes
15593   if test "$with_gnu_ld" = yes; then
15594     need_lib_prefix=no
15595   fi
15596   need_version=yes
15597   ;;
15598
15599 sysv4 | sysv4.3*)
15600   version_type=linux
15601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15602   soname_spec='${libname}${release}${shared_ext}$major'
15603   shlibpath_var=LD_LIBRARY_PATH
15604   case $host_vendor in
15605     sni)
15606       shlibpath_overrides_runpath=no
15607       need_lib_prefix=no
15608       export_dynamic_flag_spec='${wl}-Blargedynsym'
15609       runpath_var=LD_RUN_PATH
15610       ;;
15611     siemens)
15612       need_lib_prefix=no
15613       ;;
15614     motorola)
15615       need_lib_prefix=no
15616       need_version=no
15617       shlibpath_overrides_runpath=no
15618       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15619       ;;
15620   esac
15621   ;;
15622
15623 sysv4*MP*)
15624   if test -d /usr/nec ;then
15625     version_type=linux
15626     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15627     soname_spec='$libname${shared_ext}.$major'
15628     shlibpath_var=LD_LIBRARY_PATH
15629   fi
15630   ;;
15631
15632 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15633   version_type=freebsd-elf
15634   need_lib_prefix=no
15635   need_version=no
15636   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15637   soname_spec='${libname}${release}${shared_ext}$major'
15638   shlibpath_var=LD_LIBRARY_PATH
15639   hardcode_into_libs=yes
15640   if test "$with_gnu_ld" = yes; then
15641     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15642     shlibpath_overrides_runpath=no
15643   else
15644     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15645     shlibpath_overrides_runpath=yes
15646     case $host_os in
15647       sco3.2v5*)
15648         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15649         ;;
15650     esac
15651   fi
15652   sys_lib_dlsearch_path_spec='/usr/lib'
15653   ;;
15654
15655 uts4*)
15656   version_type=linux
15657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15658   soname_spec='${libname}${release}${shared_ext}$major'
15659   shlibpath_var=LD_LIBRARY_PATH
15660   ;;
15661
15662 *)
15663   dynamic_linker=no
15664   ;;
15665 esac
15666 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15667 echo "${ECHO_T}$dynamic_linker" >&6; }
15668 test "$dynamic_linker" = no && can_build_shared=no
15669
15670 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15671 if test "$GCC" = yes; then
15672   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15673 fi
15674
15675 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15676 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15677 hardcode_action_F77=
15678 if test -n "$hardcode_libdir_flag_spec_F77" || \
15679    test -n "$runpath_var_F77" || \
15680    test "X$hardcode_automatic_F77" = "Xyes" ; then
15681
15682   # We can hardcode non-existant directories.
15683   if test "$hardcode_direct_F77" != no &&
15684      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15685      # have to relink, otherwise we might link with an installed library
15686      # when we should be linking with a yet-to-be-installed one
15687      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15688      test "$hardcode_minus_L_F77" != no; then
15689     # Linking always hardcodes the temporary library directory.
15690     hardcode_action_F77=relink
15691   else
15692     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15693     hardcode_action_F77=immediate
15694   fi
15695 else
15696   # We cannot hardcode anything, or else we can only hardcode existing
15697   # directories.
15698   hardcode_action_F77=unsupported
15699 fi
15700 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15701 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15702
15703 if test "$hardcode_action_F77" = relink; then
15704   # Fast installation is not supported
15705   enable_fast_install=no
15706 elif test "$shlibpath_overrides_runpath" = yes ||
15707      test "$enable_shared" = no; then
15708   # Fast installation is not necessary
15709   enable_fast_install=needless
15710 fi
15711
15712
15713 # The else clause should only fire when bootstrapping the
15714 # libtool distribution, otherwise you forgot to ship ltmain.sh
15715 # with your package, and you will get complaints that there are
15716 # no rules to generate ltmain.sh.
15717 if test -f "$ltmain"; then
15718   # See if we are running on zsh, and set the options which allow our commands through
15719   # without removal of \ escapes.
15720   if test -n "${ZSH_VERSION+set}" ; then
15721     setopt NO_GLOB_SUBST
15722   fi
15723   # Now quote all the things that may contain metacharacters while being
15724   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15725   # variables and quote the copies for generation of the libtool script.
15726   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15727     SED SHELL STRIP \
15728     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15729     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15730     deplibs_check_method reload_flag reload_cmds need_locks \
15731     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15732     lt_cv_sys_global_symbol_to_c_name_address \
15733     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15734     old_postinstall_cmds old_postuninstall_cmds \
15735     compiler_F77 \
15736     CC_F77 \
15737     LD_F77 \
15738     lt_prog_compiler_wl_F77 \
15739     lt_prog_compiler_pic_F77 \
15740     lt_prog_compiler_static_F77 \
15741     lt_prog_compiler_no_builtin_flag_F77 \
15742     export_dynamic_flag_spec_F77 \
15743     thread_safe_flag_spec_F77 \
15744     whole_archive_flag_spec_F77 \
15745     enable_shared_with_static_runtimes_F77 \
15746     old_archive_cmds_F77 \
15747     old_archive_from_new_cmds_F77 \
15748     predep_objects_F77 \
15749     postdep_objects_F77 \
15750     predeps_F77 \
15751     postdeps_F77 \
15752     compiler_lib_search_path_F77 \
15753     archive_cmds_F77 \
15754     archive_expsym_cmds_F77 \
15755     postinstall_cmds_F77 \
15756     postuninstall_cmds_F77 \
15757     old_archive_from_expsyms_cmds_F77 \
15758     allow_undefined_flag_F77 \
15759     no_undefined_flag_F77 \
15760     export_symbols_cmds_F77 \
15761     hardcode_libdir_flag_spec_F77 \
15762     hardcode_libdir_flag_spec_ld_F77 \
15763     hardcode_libdir_separator_F77 \
15764     hardcode_automatic_F77 \
15765     module_cmds_F77 \
15766     module_expsym_cmds_F77 \
15767     lt_cv_prog_compiler_c_o_F77 \
15768     exclude_expsyms_F77 \
15769     include_expsyms_F77; do
15770
15771     case $var in
15772     old_archive_cmds_F77 | \
15773     old_archive_from_new_cmds_F77 | \
15774     archive_cmds_F77 | \
15775     archive_expsym_cmds_F77 | \
15776     module_cmds_F77 | \
15777     module_expsym_cmds_F77 | \
15778     old_archive_from_expsyms_cmds_F77 | \
15779     export_symbols_cmds_F77 | \
15780     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15781     postinstall_cmds | postuninstall_cmds | \
15782     old_postinstall_cmds | old_postuninstall_cmds | \
15783     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15784       # Double-quote double-evaled strings.
15785       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15786       ;;
15787     *)
15788       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15789       ;;
15790     esac
15791   done
15792
15793   case $lt_echo in
15794   *'\$0 --fallback-echo"')
15795     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15796     ;;
15797   esac
15798
15799 cfgfile="$ofile"
15800
15801   cat <<__EOF__ >> "$cfgfile"
15802 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15803
15804 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15805
15806 # Shell to use when invoking shell scripts.
15807 SHELL=$lt_SHELL
15808
15809 # Whether or not to build shared libraries.
15810 build_libtool_libs=$enable_shared
15811
15812 # Whether or not to build static libraries.
15813 build_old_libs=$enable_static
15814
15815 # Whether or not to add -lc for building shared libraries.
15816 build_libtool_need_lc=$archive_cmds_need_lc_F77
15817
15818 # Whether or not to disallow shared libs when runtime libs are static
15819 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15820
15821 # Whether or not to optimize for fast installation.
15822 fast_install=$enable_fast_install
15823
15824 # The host system.
15825 host_alias=$host_alias
15826 host=$host
15827 host_os=$host_os
15828
15829 # The build system.
15830 build_alias=$build_alias
15831 build=$build
15832 build_os=$build_os
15833
15834 # An echo program that does not interpret backslashes.
15835 echo=$lt_echo
15836
15837 # The archiver.
15838 AR=$lt_AR
15839 AR_FLAGS=$lt_AR_FLAGS
15840
15841 # A C compiler.
15842 LTCC=$lt_LTCC
15843
15844 # LTCC compiler flags.
15845 LTCFLAGS=$lt_LTCFLAGS
15846
15847 # A language-specific compiler.
15848 CC=$lt_compiler_F77
15849
15850 # Is the compiler the GNU C compiler?
15851 with_gcc=$GCC_F77
15852
15853 # An ERE matcher.
15854 EGREP=$lt_EGREP
15855
15856 # The linker used to build libraries.
15857 LD=$lt_LD_F77
15858
15859 # Whether we need hard or soft links.
15860 LN_S=$lt_LN_S
15861
15862 # A BSD-compatible nm program.
15863 NM=$lt_NM
15864
15865 # A symbol stripping program
15866 STRIP=$lt_STRIP
15867
15868 # Used to examine libraries when file_magic_cmd begins "file"
15869 MAGIC_CMD=$MAGIC_CMD
15870
15871 # Used on cygwin: DLL creation program.
15872 DLLTOOL="$DLLTOOL"
15873
15874 # Used on cygwin: object dumper.
15875 OBJDUMP="$OBJDUMP"
15876
15877 # Used on cygwin: assembler.
15878 AS="$AS"
15879
15880 # The name of the directory that contains temporary libtool files.
15881 objdir=$objdir
15882
15883 # How to create reloadable object files.
15884 reload_flag=$lt_reload_flag
15885 reload_cmds=$lt_reload_cmds
15886
15887 # How to pass a linker flag through the compiler.
15888 wl=$lt_lt_prog_compiler_wl_F77
15889
15890 # Object file suffix (normally "o").
15891 objext="$ac_objext"
15892
15893 # Old archive suffix (normally "a").
15894 libext="$libext"
15895
15896 # Shared library suffix (normally ".so").
15897 shrext_cmds='$shrext_cmds'
15898
15899 # Executable file suffix (normally "").
15900 exeext="$exeext"
15901
15902 # Additional compiler flags for building library objects.
15903 pic_flag=$lt_lt_prog_compiler_pic_F77
15904 pic_mode=$pic_mode
15905
15906 # What is the maximum length of a command?
15907 max_cmd_len=$lt_cv_sys_max_cmd_len
15908
15909 # Does compiler simultaneously support -c and -o options?
15910 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15911
15912 # Must we lock files when doing compilation?
15913 need_locks=$lt_need_locks
15914
15915 # Do we need the lib prefix for modules?
15916 need_lib_prefix=$need_lib_prefix
15917
15918 # Do we need a version for libraries?
15919 need_version=$need_version
15920
15921 # Whether dlopen is supported.
15922 dlopen_support=$enable_dlopen
15923
15924 # Whether dlopen of programs is supported.
15925 dlopen_self=$enable_dlopen_self
15926
15927 # Whether dlopen of statically linked programs is supported.
15928 dlopen_self_static=$enable_dlopen_self_static
15929
15930 # Compiler flag to prevent dynamic linking.
15931 link_static_flag=$lt_lt_prog_compiler_static_F77
15932
15933 # Compiler flag to turn off builtin functions.
15934 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15935
15936 # Compiler flag to allow reflexive dlopens.
15937 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15938
15939 # Compiler flag to generate shared objects directly from archives.
15940 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15941
15942 # Compiler flag to generate thread-safe objects.
15943 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15944
15945 # Library versioning type.
15946 version_type=$version_type
15947
15948 # Format of library name prefix.
15949 libname_spec=$lt_libname_spec
15950
15951 # List of archive names.  First name is the real one, the rest are links.
15952 # The last name is the one that the linker finds with -lNAME.
15953 library_names_spec=$lt_library_names_spec
15954
15955 # The coded name of the library, if different from the real name.
15956 soname_spec=$lt_soname_spec
15957
15958 # Commands used to build and install an old-style archive.
15959 RANLIB=$lt_RANLIB
15960 old_archive_cmds=$lt_old_archive_cmds_F77
15961 old_postinstall_cmds=$lt_old_postinstall_cmds
15962 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15963
15964 # Create an old-style archive from a shared archive.
15965 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15966
15967 # Create a temporary old-style archive to link instead of a shared archive.
15968 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15969
15970 # Commands used to build and install a shared archive.
15971 archive_cmds=$lt_archive_cmds_F77
15972 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15973 postinstall_cmds=$lt_postinstall_cmds
15974 postuninstall_cmds=$lt_postuninstall_cmds
15975
15976 # Commands used to build a loadable module (assumed same as above if empty)
15977 module_cmds=$lt_module_cmds_F77
15978 module_expsym_cmds=$lt_module_expsym_cmds_F77
15979
15980 # Commands to strip libraries.
15981 old_striplib=$lt_old_striplib
15982 striplib=$lt_striplib
15983
15984 # Dependencies to place before the objects being linked to create a
15985 # shared library.
15986 predep_objects=$lt_predep_objects_F77
15987
15988 # Dependencies to place after the objects being linked to create a
15989 # shared library.
15990 postdep_objects=$lt_postdep_objects_F77
15991
15992 # Dependencies to place before the objects being linked to create a
15993 # shared library.
15994 predeps=$lt_predeps_F77
15995
15996 # Dependencies to place after the objects being linked to create a
15997 # shared library.
15998 postdeps=$lt_postdeps_F77
15999
16000 # The library search path used internally by the compiler when linking
16001 # a shared library.
16002 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16003
16004 # Method to check whether dependent libraries are shared objects.
16005 deplibs_check_method=$lt_deplibs_check_method
16006
16007 # Command to use when deplibs_check_method == file_magic.
16008 file_magic_cmd=$lt_file_magic_cmd
16009
16010 # Flag that allows shared libraries with undefined symbols to be built.
16011 allow_undefined_flag=$lt_allow_undefined_flag_F77
16012
16013 # Flag that forces no undefined symbols.
16014 no_undefined_flag=$lt_no_undefined_flag_F77
16015
16016 # Commands used to finish a libtool library installation in a directory.
16017 finish_cmds=$lt_finish_cmds
16018
16019 # Same as above, but a single script fragment to be evaled but not shown.
16020 finish_eval=$lt_finish_eval
16021
16022 # Take the output of nm and produce a listing of raw symbols and C names.
16023 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16024
16025 # Transform the output of nm in a proper C declaration
16026 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16027
16028 # Transform the output of nm in a C name address pair
16029 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16030
16031 # This is the shared library runtime path variable.
16032 runpath_var=$runpath_var
16033
16034 # This is the shared library path variable.
16035 shlibpath_var=$shlibpath_var
16036
16037 # Is shlibpath searched before the hard-coded library search path?
16038 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16039
16040 # How to hardcode a shared library path into an executable.
16041 hardcode_action=$hardcode_action_F77
16042
16043 # Whether we should hardcode library paths into libraries.
16044 hardcode_into_libs=$hardcode_into_libs
16045
16046 # Flag to hardcode \$libdir into a binary during linking.
16047 # This must work even if \$libdir does not exist.
16048 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16049
16050 # If ld is used when linking, flag to hardcode \$libdir into
16051 # a binary during linking. This must work even if \$libdir does
16052 # not exist.
16053 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16054
16055 # Whether we need a single -rpath flag with a separated argument.
16056 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16057
16058 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16059 # resulting binary.
16060 hardcode_direct=$hardcode_direct_F77
16061
16062 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16063 # resulting binary.
16064 hardcode_minus_L=$hardcode_minus_L_F77
16065
16066 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16067 # the resulting binary.
16068 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16069
16070 # Set to yes if building a shared library automatically hardcodes DIR into the library
16071 # and all subsequent libraries and executables linked against it.
16072 hardcode_automatic=$hardcode_automatic_F77
16073
16074 # Variables whose values should be saved in libtool wrapper scripts and
16075 # restored at relink time.
16076 variables_saved_for_relink="$variables_saved_for_relink"
16077
16078 # Whether libtool must link a program against all its dependency libraries.
16079 link_all_deplibs=$link_all_deplibs_F77
16080
16081 # Compile-time system search path for libraries
16082 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16083
16084 # Run-time system search path for libraries
16085 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16086
16087 # Fix the shell variable \$srcfile for the compiler.
16088 fix_srcfile_path="$fix_srcfile_path_F77"
16089
16090 # Set to yes if exported symbols are required.
16091 always_export_symbols=$always_export_symbols_F77
16092
16093 # The commands to list exported symbols.
16094 export_symbols_cmds=$lt_export_symbols_cmds_F77
16095
16096 # The commands to extract the exported symbol list from a shared archive.
16097 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16098
16099 # Symbols that should not be listed in the preloaded symbols.
16100 exclude_expsyms=$lt_exclude_expsyms_F77
16101
16102 # Symbols that must always be exported.
16103 include_expsyms=$lt_include_expsyms_F77
16104
16105 # ### END LIBTOOL TAG CONFIG: $tagname
16106
16107 __EOF__
16108
16109
16110 else
16111   # If there is no Makefile yet, we rely on a make rule to execute
16112   # `config.status --recheck' to rerun these tests and create the
16113   # libtool script then.
16114   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16115   if test -f "$ltmain_in"; then
16116     test -f Makefile && make "$ltmain"
16117   fi
16118 fi
16119
16120
16121 ac_ext=c
16122 ac_cpp='$CPP $CPPFLAGS'
16123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16126
16127 CC="$lt_save_CC"
16128
16129         else
16130           tagname=""
16131         fi
16132         ;;
16133
16134       GCJ)
16135         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16136
16137
16138 # Source file extension for Java test sources.
16139 ac_ext=java
16140
16141 # Object file extension for compiled Java test sources.
16142 objext=o
16143 objext_GCJ=$objext
16144
16145 # Code to be used in simple compile tests
16146 lt_simple_compile_test_code="class foo {}\n"
16147
16148 # Code to be used in simple link tests
16149 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16150
16151 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16152
16153 # If no C compiler was specified, use CC.
16154 LTCC=${LTCC-"$CC"}
16155
16156 # If no C compiler flags were specified, use CFLAGS.
16157 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16158
16159 # Allow CC to be a program name with arguments.
16160 compiler=$CC
16161
16162
16163 # save warnings/boilerplate of simple test code
16164 ac_outfile=conftest.$ac_objext
16165 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16166 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16167 _lt_compiler_boilerplate=`cat conftest.err`
16168 $rm conftest*
16169
16170 ac_outfile=conftest.$ac_objext
16171 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16172 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16173 _lt_linker_boilerplate=`cat conftest.err`
16174 $rm conftest*
16175
16176
16177 # Allow CC to be a program name with arguments.
16178 lt_save_CC="$CC"
16179 CC=${GCJ-"gcj"}
16180 compiler=$CC
16181 compiler_GCJ=$CC
16182 for cc_temp in $compiler""; do
16183   case $cc_temp in
16184     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16185     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16186     \-*) ;;
16187     *) break;;
16188   esac
16189 done
16190 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16191
16192
16193 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16194 archive_cmds_need_lc_GCJ=no
16195
16196 old_archive_cmds_GCJ=$old_archive_cmds
16197
16198
16199 lt_prog_compiler_no_builtin_flag_GCJ=
16200
16201 if test "$GCC" = yes; then
16202   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16203
16204
16205 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16206 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16207 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16208   echo $ECHO_N "(cached) $ECHO_C" >&6
16209 else
16210   lt_cv_prog_compiler_rtti_exceptions=no
16211   ac_outfile=conftest.$ac_objext
16212    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16213    lt_compiler_flag="-fno-rtti -fno-exceptions"
16214    # Insert the option either (1) after the last *FLAGS variable, or
16215    # (2) before a word containing "conftest.", or (3) at the end.
16216    # Note that $ac_compile itself does not contain backslashes and begins
16217    # with a dollar sign (not a hyphen), so the echo should work correctly.
16218    # The option is referenced via a variable to avoid confusing sed.
16219    lt_compile=`echo "$ac_compile" | $SED \
16220    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16221    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16222    -e 's:$: $lt_compiler_flag:'`
16223    (eval echo "\"\$as_me:16223: $lt_compile\"" >&5)
16224    (eval "$lt_compile" 2>conftest.err)
16225    ac_status=$?
16226    cat conftest.err >&5
16227    echo "$as_me:16227: \$? = $ac_status" >&5
16228    if (exit $ac_status) && test -s "$ac_outfile"; then
16229      # The compiler can only warn and ignore the option if not recognized
16230      # So say no if there are warnings other than the usual output.
16231      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16232      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16233      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16234        lt_cv_prog_compiler_rtti_exceptions=yes
16235      fi
16236    fi
16237    $rm conftest*
16238
16239 fi
16240 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16241 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16242
16243 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16244     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16245 else
16246     :
16247 fi
16248
16249 fi
16250
16251 lt_prog_compiler_wl_GCJ=
16252 lt_prog_compiler_pic_GCJ=
16253 lt_prog_compiler_static_GCJ=
16254
16255 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16256 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16257
16258   if test "$GCC" = yes; then
16259     lt_prog_compiler_wl_GCJ='-Wl,'
16260     lt_prog_compiler_static_GCJ='-static'
16261
16262     case $host_os in
16263       aix*)
16264       # All AIX code is PIC.
16265       if test "$host_cpu" = ia64; then
16266         # AIX 5 now supports IA64 processor
16267         lt_prog_compiler_static_GCJ='-Bstatic'
16268       fi
16269       ;;
16270
16271     amigaos*)
16272       # FIXME: we need at least 68020 code to build shared libraries, but
16273       # adding the `-m68020' flag to GCC prevents building anything better,
16274       # like `-m68040'.
16275       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16276       ;;
16277
16278     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16279       # PIC is the default for these OSes.
16280       ;;
16281
16282     mingw* | pw32* | os2*)
16283       # This hack is so that the source file can tell whether it is being
16284       # built for inclusion in a dll (and should export symbols for example).
16285       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16286       ;;
16287
16288     darwin* | rhapsody*)
16289       # PIC is the default on this platform
16290       # Common symbols not allowed in MH_DYLIB files
16291       lt_prog_compiler_pic_GCJ='-fno-common'
16292       ;;
16293
16294     interix3*)
16295       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16296       # Instead, we relocate shared libraries at runtime.
16297       ;;
16298
16299     msdosdjgpp*)
16300       # Just because we use GCC doesn't mean we suddenly get shared libraries
16301       # on systems that don't support them.
16302       lt_prog_compiler_can_build_shared_GCJ=no
16303       enable_shared=no
16304       ;;
16305
16306     sysv4*MP*)
16307       if test -d /usr/nec; then
16308         lt_prog_compiler_pic_GCJ=-Kconform_pic
16309       fi
16310       ;;
16311
16312     hpux*)
16313       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16314       # not for PA HP-UX.
16315       case $host_cpu in
16316       hppa*64*|ia64*)
16317         # +Z the default
16318         ;;
16319       *)
16320         lt_prog_compiler_pic_GCJ='-fPIC'
16321         ;;
16322       esac
16323       ;;
16324
16325     *)
16326       lt_prog_compiler_pic_GCJ='-fPIC'
16327       ;;
16328     esac
16329   else
16330     # PORTME Check for flag to pass linker flags through the system compiler.
16331     case $host_os in
16332     aix*)
16333       lt_prog_compiler_wl_GCJ='-Wl,'
16334       if test "$host_cpu" = ia64; then
16335         # AIX 5 now supports IA64 processor
16336         lt_prog_compiler_static_GCJ='-Bstatic'
16337       else
16338         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16339       fi
16340       ;;
16341       darwin*)
16342         # PIC is the default on this platform
16343         # Common symbols not allowed in MH_DYLIB files
16344        case $cc_basename in
16345          xlc*)
16346          lt_prog_compiler_pic_GCJ='-qnocommon'
16347          lt_prog_compiler_wl_GCJ='-Wl,'
16348          ;;
16349        esac
16350        ;;
16351
16352     mingw* | pw32* | os2*)
16353       # This hack is so that the source file can tell whether it is being
16354       # built for inclusion in a dll (and should export symbols for example).
16355       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16356       ;;
16357
16358     hpux9* | hpux10* | hpux11*)
16359       lt_prog_compiler_wl_GCJ='-Wl,'
16360       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16361       # not for PA HP-UX.
16362       case $host_cpu in
16363       hppa*64*|ia64*)
16364         # +Z the default
16365         ;;
16366       *)
16367         lt_prog_compiler_pic_GCJ='+Z'
16368         ;;
16369       esac
16370       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16371       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16372       ;;
16373
16374     irix5* | irix6* | nonstopux*)
16375       lt_prog_compiler_wl_GCJ='-Wl,'
16376       # PIC (with -KPIC) is the default.
16377       lt_prog_compiler_static_GCJ='-non_shared'
16378       ;;
16379
16380     newsos6)
16381       lt_prog_compiler_pic_GCJ='-KPIC'
16382       lt_prog_compiler_static_GCJ='-Bstatic'
16383       ;;
16384
16385     linux* | k*bsd*-gnu)
16386       case $cc_basename in
16387       icc* | ecc*)
16388         lt_prog_compiler_wl_GCJ='-Wl,'
16389         lt_prog_compiler_pic_GCJ='-KPIC'
16390         lt_prog_compiler_static_GCJ='-static'
16391         ;;
16392       pgcc* | pgf77* | pgf90* | pgf95*)
16393         # Portland Group compilers (*not* the Pentium gcc compiler,
16394         # which looks to be a dead project)
16395         lt_prog_compiler_wl_GCJ='-Wl,'
16396         lt_prog_compiler_pic_GCJ='-fpic'
16397         lt_prog_compiler_static_GCJ='-Bstatic'
16398         ;;
16399       ccc*)
16400         lt_prog_compiler_wl_GCJ='-Wl,'
16401         # All Alpha code is PIC.
16402         lt_prog_compiler_static_GCJ='-non_shared'
16403         ;;
16404       esac
16405       ;;
16406
16407     osf3* | osf4* | osf5*)
16408       lt_prog_compiler_wl_GCJ='-Wl,'
16409       # All OSF/1 code is PIC.
16410       lt_prog_compiler_static_GCJ='-non_shared'
16411       ;;
16412
16413     solaris*)
16414       lt_prog_compiler_pic_GCJ='-KPIC'
16415       lt_prog_compiler_static_GCJ='-Bstatic'
16416       case $cc_basename in
16417       f77* | f90* | f95*)
16418         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16419       *)
16420         lt_prog_compiler_wl_GCJ='-Wl,';;
16421       esac
16422       ;;
16423
16424     sunos4*)
16425       lt_prog_compiler_wl_GCJ='-Qoption ld '
16426       lt_prog_compiler_pic_GCJ='-PIC'
16427       lt_prog_compiler_static_GCJ='-Bstatic'
16428       ;;
16429
16430     sysv4 | sysv4.2uw2* | sysv4.3*)
16431       lt_prog_compiler_wl_GCJ='-Wl,'
16432       lt_prog_compiler_pic_GCJ='-KPIC'
16433       lt_prog_compiler_static_GCJ='-Bstatic'
16434       ;;
16435
16436     sysv4*MP*)
16437       if test -d /usr/nec ;then
16438         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16439         lt_prog_compiler_static_GCJ='-Bstatic'
16440       fi
16441       ;;
16442
16443     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16444       lt_prog_compiler_wl_GCJ='-Wl,'
16445       lt_prog_compiler_pic_GCJ='-KPIC'
16446       lt_prog_compiler_static_GCJ='-Bstatic'
16447       ;;
16448
16449     unicos*)
16450       lt_prog_compiler_wl_GCJ='-Wl,'
16451       lt_prog_compiler_can_build_shared_GCJ=no
16452       ;;
16453
16454     uts4*)
16455       lt_prog_compiler_pic_GCJ='-pic'
16456       lt_prog_compiler_static_GCJ='-Bstatic'
16457       ;;
16458
16459     *)
16460       lt_prog_compiler_can_build_shared_GCJ=no
16461       ;;
16462     esac
16463   fi
16464
16465 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16466 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16467
16468 #
16469 # Check to make sure the PIC flag actually works.
16470 #
16471 if test -n "$lt_prog_compiler_pic_GCJ"; then
16472
16473 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16474 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16475 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16476   echo $ECHO_N "(cached) $ECHO_C" >&6
16477 else
16478   lt_prog_compiler_pic_works_GCJ=no
16479   ac_outfile=conftest.$ac_objext
16480    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16481    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16482    # Insert the option either (1) after the last *FLAGS variable, or
16483    # (2) before a word containing "conftest.", or (3) at the end.
16484    # Note that $ac_compile itself does not contain backslashes and begins
16485    # with a dollar sign (not a hyphen), so the echo should work correctly.
16486    # The option is referenced via a variable to avoid confusing sed.
16487    lt_compile=`echo "$ac_compile" | $SED \
16488    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16489    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16490    -e 's:$: $lt_compiler_flag:'`
16491    (eval echo "\"\$as_me:16491: $lt_compile\"" >&5)
16492    (eval "$lt_compile" 2>conftest.err)
16493    ac_status=$?
16494    cat conftest.err >&5
16495    echo "$as_me:16495: \$? = $ac_status" >&5
16496    if (exit $ac_status) && test -s "$ac_outfile"; then
16497      # The compiler can only warn and ignore the option if not recognized
16498      # So say no if there are warnings other than the usual output.
16499      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16500      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16501      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16502        lt_prog_compiler_pic_works_GCJ=yes
16503      fi
16504    fi
16505    $rm conftest*
16506
16507 fi
16508 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16509 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16510
16511 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16512     case $lt_prog_compiler_pic_GCJ in
16513      "" | " "*) ;;
16514      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16515      esac
16516 else
16517     lt_prog_compiler_pic_GCJ=
16518      lt_prog_compiler_can_build_shared_GCJ=no
16519 fi
16520
16521 fi
16522 case $host_os in
16523   # For platforms which do not support PIC, -DPIC is meaningless:
16524   *djgpp*)
16525     lt_prog_compiler_pic_GCJ=
16526     ;;
16527   *)
16528     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16529     ;;
16530 esac
16531
16532 #
16533 # Check to make sure the static flag actually works.
16534 #
16535 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16536 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16537 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16538 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16539   echo $ECHO_N "(cached) $ECHO_C" >&6
16540 else
16541   lt_prog_compiler_static_works_GCJ=no
16542    save_LDFLAGS="$LDFLAGS"
16543    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16544    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16545    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16546      # The linker can only warn and ignore the option if not recognized
16547      # So say no if there are warnings
16548      if test -s conftest.err; then
16549        # Append any errors to the config.log.
16550        cat conftest.err 1>&5
16551        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16552        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16553        if diff conftest.exp conftest.er2 >/dev/null; then
16554          lt_prog_compiler_static_works_GCJ=yes
16555        fi
16556      else
16557        lt_prog_compiler_static_works_GCJ=yes
16558      fi
16559    fi
16560    $rm conftest*
16561    LDFLAGS="$save_LDFLAGS"
16562
16563 fi
16564 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16565 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16566
16567 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16568     :
16569 else
16570     lt_prog_compiler_static_GCJ=
16571 fi
16572
16573
16574 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16575 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16576 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16577   echo $ECHO_N "(cached) $ECHO_C" >&6
16578 else
16579   lt_cv_prog_compiler_c_o_GCJ=no
16580    $rm -r conftest 2>/dev/null
16581    mkdir conftest
16582    cd conftest
16583    mkdir out
16584    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16585
16586    lt_compiler_flag="-o out/conftest2.$ac_objext"
16587    # Insert the option either (1) after the last *FLAGS variable, or
16588    # (2) before a word containing "conftest.", or (3) at the end.
16589    # Note that $ac_compile itself does not contain backslashes and begins
16590    # with a dollar sign (not a hyphen), so the echo should work correctly.
16591    lt_compile=`echo "$ac_compile" | $SED \
16592    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16593    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16594    -e 's:$: $lt_compiler_flag:'`
16595    (eval echo "\"\$as_me:16595: $lt_compile\"" >&5)
16596    (eval "$lt_compile" 2>out/conftest.err)
16597    ac_status=$?
16598    cat out/conftest.err >&5
16599    echo "$as_me:16599: \$? = $ac_status" >&5
16600    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16601    then
16602      # The compiler can only warn and ignore the option if not recognized
16603      # So say no if there are warnings
16604      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16605      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16606      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16607        lt_cv_prog_compiler_c_o_GCJ=yes
16608      fi
16609    fi
16610    chmod u+w . 2>&5
16611    $rm conftest*
16612    # SGI C++ compiler will create directory out/ii_files/ for
16613    # template instantiation
16614    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16615    $rm out/* && rmdir out
16616    cd ..
16617    rmdir conftest
16618    $rm conftest*
16619
16620 fi
16621 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16622 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16623
16624
16625 hard_links="nottested"
16626 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16627   # do not overwrite the value of need_locks provided by the user
16628   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16629 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16630   hard_links=yes
16631   $rm conftest*
16632   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16633   touch conftest.a
16634   ln conftest.a conftest.b 2>&5 || hard_links=no
16635   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16636   { echo "$as_me:$LINENO: result: $hard_links" >&5
16637 echo "${ECHO_T}$hard_links" >&6; }
16638   if test "$hard_links" = no; then
16639     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16640 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16641     need_locks=warn
16642   fi
16643 else
16644   need_locks=no
16645 fi
16646
16647 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16648 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16649
16650   runpath_var=
16651   allow_undefined_flag_GCJ=
16652   enable_shared_with_static_runtimes_GCJ=no
16653   archive_cmds_GCJ=
16654   archive_expsym_cmds_GCJ=
16655   old_archive_From_new_cmds_GCJ=
16656   old_archive_from_expsyms_cmds_GCJ=
16657   export_dynamic_flag_spec_GCJ=
16658   whole_archive_flag_spec_GCJ=
16659   thread_safe_flag_spec_GCJ=
16660   hardcode_libdir_flag_spec_GCJ=
16661   hardcode_libdir_flag_spec_ld_GCJ=
16662   hardcode_libdir_separator_GCJ=
16663   hardcode_direct_GCJ=no
16664   hardcode_minus_L_GCJ=no
16665   hardcode_shlibpath_var_GCJ=unsupported
16666   link_all_deplibs_GCJ=unknown
16667   hardcode_automatic_GCJ=no
16668   module_cmds_GCJ=
16669   module_expsym_cmds_GCJ=
16670   always_export_symbols_GCJ=no
16671   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16672   # include_expsyms should be a list of space-separated symbols to be *always*
16673   # included in the symbol list
16674   include_expsyms_GCJ=
16675   # exclude_expsyms can be an extended regexp of symbols to exclude
16676   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16677   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16678   # as well as any symbol that contains `d'.
16679   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16680   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16681   # platforms (ab)use it in PIC code, but their linkers get confused if
16682   # the symbol is explicitly referenced.  Since portable code cannot
16683   # rely on this symbol name, it's probably fine to never include it in
16684   # preloaded symbol tables.
16685   extract_expsyms_cmds=
16686   # Just being paranoid about ensuring that cc_basename is set.
16687   for cc_temp in $compiler""; do
16688   case $cc_temp in
16689     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16690     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16691     \-*) ;;
16692     *) break;;
16693   esac
16694 done
16695 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16696
16697   case $host_os in
16698   cygwin* | mingw* | pw32*)
16699     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16700     # When not using gcc, we currently assume that we are using
16701     # Microsoft Visual C++.
16702     if test "$GCC" != yes; then
16703       with_gnu_ld=no
16704     fi
16705     ;;
16706   interix*)
16707     # we just hope/assume this is gcc and not c89 (= MSVC++)
16708     with_gnu_ld=yes
16709     ;;
16710   openbsd*)
16711     with_gnu_ld=no
16712     ;;
16713   esac
16714
16715   ld_shlibs_GCJ=yes
16716   if test "$with_gnu_ld" = yes; then
16717     # If archive_cmds runs LD, not CC, wlarc should be empty
16718     wlarc='${wl}'
16719
16720     # Set some defaults for GNU ld with shared library support. These
16721     # are reset later if shared libraries are not supported. Putting them
16722     # here allows them to be overridden if necessary.
16723     runpath_var=LD_RUN_PATH
16724     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16725     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16726     # ancient GNU ld didn't support --whole-archive et. al.
16727     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16728         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16729       else
16730         whole_archive_flag_spec_GCJ=
16731     fi
16732     supports_anon_versioning=no
16733     case `$LD -v 2>/dev/null` in
16734       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16735       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16736       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16737       *\ 2.11.*) ;; # other 2.11 versions
16738       *) supports_anon_versioning=yes ;;
16739     esac
16740
16741     # See if GNU ld supports shared libraries.
16742     case $host_os in
16743     aix3* | aix4* | aix5*)
16744       # On AIX/PPC, the GNU linker is very broken
16745       if test "$host_cpu" != ia64; then
16746         ld_shlibs_GCJ=no
16747         cat <<EOF 1>&2
16748
16749 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16750 *** to be unable to reliably create shared libraries on AIX.
16751 *** Therefore, libtool is disabling shared libraries support.  If you
16752 *** really care for shared libraries, you may want to modify your PATH
16753 *** so that a non-GNU linker is found, and then restart.
16754
16755 EOF
16756       fi
16757       ;;
16758
16759     amigaos*)
16760       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)'
16761       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16762       hardcode_minus_L_GCJ=yes
16763
16764       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16765       # that the semantics of dynamic libraries on AmigaOS, at least up
16766       # to version 4, is to share data among multiple programs linked
16767       # with the same dynamic library.  Since this doesn't match the
16768       # behavior of shared libraries on other platforms, we can't use
16769       # them.
16770       ld_shlibs_GCJ=no
16771       ;;
16772
16773     beos*)
16774       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16775         allow_undefined_flag_GCJ=unsupported
16776         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16777         # support --undefined.  This deserves some investigation.  FIXME
16778         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16779       else
16780         ld_shlibs_GCJ=no
16781       fi
16782       ;;
16783
16784     cygwin* | mingw* | pw32*)
16785       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16786       # as there is no search path for DLLs.
16787       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16788       allow_undefined_flag_GCJ=unsupported
16789       always_export_symbols_GCJ=no
16790       enable_shared_with_static_runtimes_GCJ=yes
16791       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16792
16793       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16794         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16795         # If the export-symbols file already is a .def file (1st line
16796         # is EXPORTS), use it as is; otherwise, prepend...
16797         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16798           cp $export_symbols $output_objdir/$soname.def;
16799         else
16800           echo EXPORTS > $output_objdir/$soname.def;
16801           cat $export_symbols >> $output_objdir/$soname.def;
16802         fi~
16803         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16804       else
16805         ld_shlibs_GCJ=no
16806       fi
16807       ;;
16808
16809     interix3*)
16810       hardcode_direct_GCJ=no
16811       hardcode_shlibpath_var_GCJ=no
16812       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16813       export_dynamic_flag_spec_GCJ='${wl}-E'
16814       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16815       # Instead, shared libraries are loaded at an image base (0x10000000 by
16816       # default) and relocated if they conflict, which is a slow very memory
16817       # consuming and fragmenting process.  To avoid this, we pick a random,
16818       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16819       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16820       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'
16821       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'
16822       ;;
16823
16824     linux* | k*bsd*-gnu)
16825       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16826         tmp_addflag=
16827         case $cc_basename,$host_cpu in
16828         pgcc*)                          # Portland Group C compiler
16829           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'
16830           tmp_addflag=' $pic_flag'
16831           ;;
16832         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16833           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'
16834           tmp_addflag=' $pic_flag -Mnomain' ;;
16835         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16836           tmp_addflag=' -i_dynamic' ;;
16837         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16838           tmp_addflag=' -i_dynamic -nofor_main' ;;
16839         ifc* | ifort*)                  # Intel Fortran compiler
16840           tmp_addflag=' -nofor_main' ;;
16841         esac
16842         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16843
16844         if test $supports_anon_versioning = yes; then
16845           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16846   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16847   $echo "local: *; };" >> $output_objdir/$libname.ver~
16848           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16849         fi
16850         link_all_deplibs_GCJ=no
16851       else
16852         ld_shlibs_GCJ=no
16853       fi
16854       ;;
16855
16856     netbsd* | netbsdelf*-gnu)
16857       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16858         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16859         wlarc=
16860       else
16861         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16862         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16863       fi
16864       ;;
16865
16866     solaris*)
16867       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16868         ld_shlibs_GCJ=no
16869         cat <<EOF 1>&2
16870
16871 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16872 *** create shared libraries on Solaris systems.  Therefore, libtool
16873 *** is disabling shared libraries support.  We urge you to upgrade GNU
16874 *** binutils to release 2.9.1 or newer.  Another option is to modify
16875 *** your PATH or compiler configuration so that the native linker is
16876 *** used, and then restart.
16877
16878 EOF
16879       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16880         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16881         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16882       else
16883         ld_shlibs_GCJ=no
16884       fi
16885       ;;
16886
16887     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16888       case `$LD -v 2>&1` in
16889         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16890         ld_shlibs_GCJ=no
16891         cat <<_LT_EOF 1>&2
16892
16893 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16894 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16895 *** is disabling shared libraries support.  We urge you to upgrade GNU
16896 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16897 *** your PATH or compiler configuration so that the native linker is
16898 *** used, and then restart.
16899
16900 _LT_EOF
16901         ;;
16902         *)
16903           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16904             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16905             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16906             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16907           else
16908             ld_shlibs_GCJ=no
16909           fi
16910         ;;
16911       esac
16912       ;;
16913
16914     sunos4*)
16915       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16916       wlarc=
16917       hardcode_direct_GCJ=yes
16918       hardcode_shlibpath_var_GCJ=no
16919       ;;
16920
16921     *)
16922       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16923         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16924         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16925       else
16926         ld_shlibs_GCJ=no
16927       fi
16928       ;;
16929     esac
16930
16931     if test "$ld_shlibs_GCJ" = no; then
16932       runpath_var=
16933       hardcode_libdir_flag_spec_GCJ=
16934       export_dynamic_flag_spec_GCJ=
16935       whole_archive_flag_spec_GCJ=
16936     fi
16937   else
16938     # PORTME fill in a description of your system's linker (not GNU ld)
16939     case $host_os in
16940     aix3*)
16941       allow_undefined_flag_GCJ=unsupported
16942       always_export_symbols_GCJ=yes
16943       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'
16944       # Note: this linker hardcodes the directories in LIBPATH if there
16945       # are no directories specified by -L.
16946       hardcode_minus_L_GCJ=yes
16947       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16948         # Neither direct hardcoding nor static linking is supported with a
16949         # broken collect2.
16950         hardcode_direct_GCJ=unsupported
16951       fi
16952       ;;
16953
16954     aix4* | aix5*)
16955       if test "$host_cpu" = ia64; then
16956         # On IA64, the linker does run time linking by default, so we don't
16957         # have to do anything special.
16958         aix_use_runtimelinking=no
16959         exp_sym_flag='-Bexport'
16960         no_entry_flag=""
16961       else
16962         # If we're using GNU nm, then we don't want the "-C" option.
16963         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16964         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16965           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'
16966         else
16967           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'
16968         fi
16969         aix_use_runtimelinking=no
16970
16971         # Test if we are trying to use run time linking or normal
16972         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16973         # need to do runtime linking.
16974         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16975           for ld_flag in $LDFLAGS; do
16976           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16977             aix_use_runtimelinking=yes
16978             break
16979           fi
16980           done
16981           ;;
16982         esac
16983
16984         exp_sym_flag='-bexport'
16985         no_entry_flag='-bnoentry'
16986       fi
16987
16988       # When large executables or shared objects are built, AIX ld can
16989       # have problems creating the table of contents.  If linking a library
16990       # or program results in "error TOC overflow" add -mminimal-toc to
16991       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16992       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16993
16994       archive_cmds_GCJ=''
16995       hardcode_direct_GCJ=yes
16996       hardcode_libdir_separator_GCJ=':'
16997       link_all_deplibs_GCJ=yes
16998
16999       if test "$GCC" = yes; then
17000         case $host_os in aix4.[012]|aix4.[012].*)
17001         # We only want to do this on AIX 4.2 and lower, the check
17002         # below for broken collect2 doesn't work under 4.3+
17003           collect2name=`${CC} -print-prog-name=collect2`
17004           if test -f "$collect2name" && \
17005            strings "$collect2name" | grep resolve_lib_name >/dev/null
17006           then
17007           # We have reworked collect2
17008           hardcode_direct_GCJ=yes
17009           else
17010           # We have old collect2
17011           hardcode_direct_GCJ=unsupported
17012           # It fails to find uninstalled libraries when the uninstalled
17013           # path is not listed in the libpath.  Setting hardcode_minus_L
17014           # to unsupported forces relinking
17015           hardcode_minus_L_GCJ=yes
17016           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17017           hardcode_libdir_separator_GCJ=
17018           fi
17019           ;;
17020         esac
17021         shared_flag='-shared'
17022         if test "$aix_use_runtimelinking" = yes; then
17023           shared_flag="$shared_flag "'${wl}-G'
17024         fi
17025       else
17026         # not using gcc
17027         if test "$host_cpu" = ia64; then
17028         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17029         # chokes on -Wl,-G. The following line is correct:
17030           shared_flag='-G'
17031         else
17032           if test "$aix_use_runtimelinking" = yes; then
17033             shared_flag='${wl}-G'
17034           else
17035             shared_flag='${wl}-bM:SRE'
17036           fi
17037         fi
17038       fi
17039
17040       # It seems that -bexpall does not export symbols beginning with
17041       # underscore (_), so it is better to generate a list of symbols to export.
17042       always_export_symbols_GCJ=yes
17043       if test "$aix_use_runtimelinking" = yes; then
17044         # Warning - without using the other runtime loading flags (-brtl),
17045         # -berok will link without error, but may produce a broken library.
17046         allow_undefined_flag_GCJ='-berok'
17047        # Determine the default libpath from the value encoded in an empty executable.
17048        cat >conftest.$ac_ext <<_ACEOF
17049 /* confdefs.h.  */
17050 _ACEOF
17051 cat confdefs.h >>conftest.$ac_ext
17052 cat >>conftest.$ac_ext <<_ACEOF
17053 /* end confdefs.h.  */
17054
17055 int
17056 main ()
17057 {
17058
17059   ;
17060   return 0;
17061 }
17062 _ACEOF
17063 rm -f conftest.$ac_objext conftest$ac_exeext
17064 if { (ac_try="$ac_link"
17065 case "(($ac_try" in
17066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067   *) ac_try_echo=$ac_try;;
17068 esac
17069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070   (eval "$ac_link") 2>conftest.er1
17071   ac_status=$?
17072   grep -v '^ *+' conftest.er1 >conftest.err
17073   rm -f conftest.er1
17074   cat conftest.err >&5
17075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076   (exit $ac_status); } && {
17077          test -z "$ac_c_werror_flag" ||
17078          test ! -s conftest.err
17079        } && test -s conftest$ac_exeext &&
17080        $as_test_x conftest$ac_exeext; then
17081
17082 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17083 }'`
17084 # Check for a 64-bit object if we didn't find anything.
17085 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; }
17086 }'`; fi
17087 else
17088   echo "$as_me: failed program was:" >&5
17089 sed 's/^/| /' conftest.$ac_ext >&5
17090
17091
17092 fi
17093
17094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17095       conftest$ac_exeext conftest.$ac_ext
17096 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17097
17098        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17099         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"
17100        else
17101         if test "$host_cpu" = ia64; then
17102           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17103           allow_undefined_flag_GCJ="-z nodefs"
17104           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"
17105         else
17106          # Determine the default libpath from the value encoded in an empty executable.
17107          cat >conftest.$ac_ext <<_ACEOF
17108 /* confdefs.h.  */
17109 _ACEOF
17110 cat confdefs.h >>conftest.$ac_ext
17111 cat >>conftest.$ac_ext <<_ACEOF
17112 /* end confdefs.h.  */
17113
17114 int
17115 main ()
17116 {
17117
17118   ;
17119   return 0;
17120 }
17121 _ACEOF
17122 rm -f conftest.$ac_objext conftest$ac_exeext
17123 if { (ac_try="$ac_link"
17124 case "(($ac_try" in
17125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17126   *) ac_try_echo=$ac_try;;
17127 esac
17128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17129   (eval "$ac_link") 2>conftest.er1
17130   ac_status=$?
17131   grep -v '^ *+' conftest.er1 >conftest.err
17132   rm -f conftest.er1
17133   cat conftest.err >&5
17134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135   (exit $ac_status); } && {
17136          test -z "$ac_c_werror_flag" ||
17137          test ! -s conftest.err
17138        } && test -s conftest$ac_exeext &&
17139        $as_test_x conftest$ac_exeext; then
17140
17141 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17142 }'`
17143 # Check for a 64-bit object if we didn't find anything.
17144 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; }
17145 }'`; fi
17146 else
17147   echo "$as_me: failed program was:" >&5
17148 sed 's/^/| /' conftest.$ac_ext >&5
17149
17150
17151 fi
17152
17153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17154       conftest$ac_exeext conftest.$ac_ext
17155 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17156
17157          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17158           # Warning - without using the other run time loading flags,
17159           # -berok will link without error, but may produce a broken library.
17160           no_undefined_flag_GCJ=' ${wl}-bernotok'
17161           allow_undefined_flag_GCJ=' ${wl}-berok'
17162           # Exported symbols can be pulled into shared objects from archives
17163           whole_archive_flag_spec_GCJ='$convenience'
17164           archive_cmds_need_lc_GCJ=yes
17165           # This is similar to how AIX traditionally builds its shared libraries.
17166           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'
17167         fi
17168       fi
17169       ;;
17170
17171     amigaos*)
17172       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)'
17173       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17174       hardcode_minus_L_GCJ=yes
17175       # see comment about different semantics on the GNU ld section
17176       ld_shlibs_GCJ=no
17177       ;;
17178
17179     bsdi[45]*)
17180       export_dynamic_flag_spec_GCJ=-rdynamic
17181       ;;
17182
17183     cygwin* | mingw* | pw32*)
17184       # When not using gcc, we currently assume that we are using
17185       # Microsoft Visual C++.
17186       # hardcode_libdir_flag_spec is actually meaningless, as there is
17187       # no search path for DLLs.
17188       hardcode_libdir_flag_spec_GCJ=' '
17189       allow_undefined_flag_GCJ=unsupported
17190       # Tell ltmain to make .lib files, not .a files.
17191       libext=lib
17192       # Tell ltmain to make .dll files, not .so files.
17193       shrext_cmds=".dll"
17194       # FIXME: Setting linknames here is a bad hack.
17195       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17196       # The linker will automatically build a .lib file if we build a DLL.
17197       old_archive_From_new_cmds_GCJ='true'
17198       # FIXME: Should let the user specify the lib program.
17199       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17200       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17201       enable_shared_with_static_runtimes_GCJ=yes
17202       ;;
17203
17204     darwin* | rhapsody*)
17205       case $host_os in
17206         rhapsody* | darwin1.[012])
17207          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17208          ;;
17209        *) # Darwin 1.3 on
17210          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17211            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17212          else
17213            case ${MACOSX_DEPLOYMENT_TARGET} in
17214              10.[012])
17215                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17216                ;;
17217              10.*)
17218                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17219                ;;
17220            esac
17221          fi
17222          ;;
17223       esac
17224       archive_cmds_need_lc_GCJ=no
17225       hardcode_direct_GCJ=no
17226       hardcode_automatic_GCJ=yes
17227       hardcode_shlibpath_var_GCJ=unsupported
17228       whole_archive_flag_spec_GCJ=''
17229       link_all_deplibs_GCJ=yes
17230     if test "$GCC" = yes ; then
17231         output_verbose_link_cmd='echo'
17232         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17233       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17234       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17235       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}'
17236       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}'
17237     else
17238       case $cc_basename in
17239         xlc*)
17240          output_verbose_link_cmd='echo'
17241          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17242          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17243           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17244          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}'
17245           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}'
17246           ;;
17247        *)
17248          ld_shlibs_GCJ=no
17249           ;;
17250       esac
17251     fi
17252       ;;
17253
17254     dgux*)
17255       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17256       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17257       hardcode_shlibpath_var_GCJ=no
17258       ;;
17259
17260     freebsd1*)
17261       ld_shlibs_GCJ=no
17262       ;;
17263
17264     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17265     # support.  Future versions do this automatically, but an explicit c++rt0.o
17266     # does not break anything, and helps significantly (at the cost of a little
17267     # extra space).
17268     freebsd2.2*)
17269       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17270       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17271       hardcode_direct_GCJ=yes
17272       hardcode_shlibpath_var_GCJ=no
17273       ;;
17274
17275     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17276     freebsd2*)
17277       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17278       hardcode_direct_GCJ=yes
17279       hardcode_minus_L_GCJ=yes
17280       hardcode_shlibpath_var_GCJ=no
17281       ;;
17282
17283     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17284     freebsd* | dragonfly*)
17285       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17286       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17287       hardcode_direct_GCJ=yes
17288       hardcode_shlibpath_var_GCJ=no
17289       ;;
17290
17291     hpux9*)
17292       if test "$GCC" = yes; then
17293         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'
17294       else
17295         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'
17296       fi
17297       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17298       hardcode_libdir_separator_GCJ=:
17299       hardcode_direct_GCJ=yes
17300
17301       # hardcode_minus_L: Not really in the search PATH,
17302       # but as the default location of the library.
17303       hardcode_minus_L_GCJ=yes
17304       export_dynamic_flag_spec_GCJ='${wl}-E'
17305       ;;
17306
17307     hpux10*)
17308       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17309         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17310       else
17311         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17312       fi
17313       if test "$with_gnu_ld" = no; then
17314         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17315         hardcode_libdir_separator_GCJ=:
17316
17317         hardcode_direct_GCJ=yes
17318         export_dynamic_flag_spec_GCJ='${wl}-E'
17319
17320         # hardcode_minus_L: Not really in the search PATH,
17321         # but as the default location of the library.
17322         hardcode_minus_L_GCJ=yes
17323       fi
17324       ;;
17325
17326     hpux11*)
17327       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17328         case $host_cpu in
17329         hppa*64*)
17330           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17331           ;;
17332         ia64*)
17333           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17334           ;;
17335         *)
17336           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17337           ;;
17338         esac
17339       else
17340         case $host_cpu in
17341         hppa*64*)
17342           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17343           ;;
17344         ia64*)
17345           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17346           ;;
17347         *)
17348           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17349           ;;
17350         esac
17351       fi
17352       if test "$with_gnu_ld" = no; then
17353         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17354         hardcode_libdir_separator_GCJ=:
17355
17356         case $host_cpu in
17357         hppa*64*|ia64*)
17358           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17359           hardcode_direct_GCJ=no
17360           hardcode_shlibpath_var_GCJ=no
17361           ;;
17362         *)
17363           hardcode_direct_GCJ=yes
17364           export_dynamic_flag_spec_GCJ='${wl}-E'
17365
17366           # hardcode_minus_L: Not really in the search PATH,
17367           # but as the default location of the library.
17368           hardcode_minus_L_GCJ=yes
17369           ;;
17370         esac
17371       fi
17372       ;;
17373
17374     irix5* | irix6* | nonstopux*)
17375       if test "$GCC" = yes; then
17376         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'
17377       else
17378         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'
17379         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17380       fi
17381       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17382       hardcode_libdir_separator_GCJ=:
17383       link_all_deplibs_GCJ=yes
17384       ;;
17385
17386     netbsd* | netbsdelf*-gnu)
17387       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17388         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17389       else
17390         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17391       fi
17392       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17393       hardcode_direct_GCJ=yes
17394       hardcode_shlibpath_var_GCJ=no
17395       ;;
17396
17397     newsos6)
17398       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17399       hardcode_direct_GCJ=yes
17400       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17401       hardcode_libdir_separator_GCJ=:
17402       hardcode_shlibpath_var_GCJ=no
17403       ;;
17404
17405     openbsd*)
17406       hardcode_direct_GCJ=yes
17407       hardcode_shlibpath_var_GCJ=no
17408       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17409         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17410         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17411         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17412         export_dynamic_flag_spec_GCJ='${wl}-E'
17413       else
17414        case $host_os in
17415          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17416            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17417            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17418            ;;
17419          *)
17420            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17421            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17422            ;;
17423        esac
17424       fi
17425       ;;
17426
17427     os2*)
17428       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17429       hardcode_minus_L_GCJ=yes
17430       allow_undefined_flag_GCJ=unsupported
17431       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'
17432       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17433       ;;
17434
17435     osf3*)
17436       if test "$GCC" = yes; then
17437         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17438         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'
17439       else
17440         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17441         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'
17442       fi
17443       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17444       hardcode_libdir_separator_GCJ=:
17445       ;;
17446
17447     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17448       if test "$GCC" = yes; then
17449         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17450         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'
17451         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17452       else
17453         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17454         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'
17455         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~
17456         $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'
17457
17458         # Both c and cxx compiler support -rpath directly
17459         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17460       fi
17461       hardcode_libdir_separator_GCJ=:
17462       ;;
17463
17464     solaris*)
17465       no_undefined_flag_GCJ=' -z text'
17466       if test "$GCC" = yes; then
17467         wlarc='${wl}'
17468         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17469         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17470           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17471       else
17472         wlarc=''
17473         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17474         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17475         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17476       fi
17477       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17478       hardcode_shlibpath_var_GCJ=no
17479       case $host_os in
17480       solaris2.[0-5] | solaris2.[0-5].*) ;;
17481       *)
17482         # The compiler driver will combine linker options so we
17483         # cannot just pass the convience library names through
17484         # without $wl, iff we do not link with $LD.
17485         # Luckily, gcc supports the same syntax we need for Sun Studio.
17486         # Supported since Solaris 2.6 (maybe 2.5.1?)
17487         case $wlarc in
17488         '')
17489           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17490         *)
17491           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' ;;
17492         esac ;;
17493       esac
17494       link_all_deplibs_GCJ=yes
17495       ;;
17496
17497     sunos4*)
17498       if test "x$host_vendor" = xsequent; then
17499         # Use $CC to link under sequent, because it throws in some extra .o
17500         # files that make .init and .fini sections work.
17501         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17502       else
17503         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17504       fi
17505       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17506       hardcode_direct_GCJ=yes
17507       hardcode_minus_L_GCJ=yes
17508       hardcode_shlibpath_var_GCJ=no
17509       ;;
17510
17511     sysv4)
17512       case $host_vendor in
17513         sni)
17514           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17515           hardcode_direct_GCJ=yes # is this really true???
17516         ;;
17517         siemens)
17518           ## LD is ld it makes a PLAMLIB
17519           ## CC just makes a GrossModule.
17520           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17521           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17522           hardcode_direct_GCJ=no
17523         ;;
17524         motorola)
17525           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17526           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17527         ;;
17528       esac
17529       runpath_var='LD_RUN_PATH'
17530       hardcode_shlibpath_var_GCJ=no
17531       ;;
17532
17533     sysv4.3*)
17534       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17535       hardcode_shlibpath_var_GCJ=no
17536       export_dynamic_flag_spec_GCJ='-Bexport'
17537       ;;
17538
17539     sysv4*MP*)
17540       if test -d /usr/nec; then
17541         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17542         hardcode_shlibpath_var_GCJ=no
17543         runpath_var=LD_RUN_PATH
17544         hardcode_runpath_var=yes
17545         ld_shlibs_GCJ=yes
17546       fi
17547       ;;
17548
17549     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17550       no_undefined_flag_GCJ='${wl}-z,text'
17551       archive_cmds_need_lc_GCJ=no
17552       hardcode_shlibpath_var_GCJ=no
17553       runpath_var='LD_RUN_PATH'
17554
17555       if test "$GCC" = yes; then
17556         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17557         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17558       else
17559         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17560         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17561       fi
17562       ;;
17563
17564     sysv5* | sco3.2v5* | sco5v6*)
17565       # Note: We can NOT use -z defs as we might desire, because we do not
17566       # link with -lc, and that would cause any symbols used from libc to
17567       # always be unresolved, which means just about no library would
17568       # ever link correctly.  If we're not using GNU ld we use -z text
17569       # though, which does catch some bad symbols but isn't as heavy-handed
17570       # as -z defs.
17571       no_undefined_flag_GCJ='${wl}-z,text'
17572       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17573       archive_cmds_need_lc_GCJ=no
17574       hardcode_shlibpath_var_GCJ=no
17575       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17576       hardcode_libdir_separator_GCJ=':'
17577       link_all_deplibs_GCJ=yes
17578       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17579       runpath_var='LD_RUN_PATH'
17580
17581       if test "$GCC" = yes; then
17582         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17583         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17584       else
17585         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17586         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17587       fi
17588       ;;
17589
17590     uts4*)
17591       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17592       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17593       hardcode_shlibpath_var_GCJ=no
17594       ;;
17595
17596     *)
17597       ld_shlibs_GCJ=no
17598       ;;
17599     esac
17600   fi
17601
17602 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17603 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17604 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17605
17606 #
17607 # Do we need to explicitly link libc?
17608 #
17609 case "x$archive_cmds_need_lc_GCJ" in
17610 x|xyes)
17611   # Assume -lc should be added
17612   archive_cmds_need_lc_GCJ=yes
17613
17614   if test "$enable_shared" = yes && test "$GCC" = yes; then
17615     case $archive_cmds_GCJ in
17616     *'~'*)
17617       # FIXME: we may have to deal with multi-command sequences.
17618       ;;
17619     '$CC '*)
17620       # Test whether the compiler implicitly links with -lc since on some
17621       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17622       # to ld, don't add -lc before -lgcc.
17623       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17624 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17625       $rm conftest*
17626       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17627
17628       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17629   (eval $ac_compile) 2>&5
17630   ac_status=$?
17631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632   (exit $ac_status); } 2>conftest.err; then
17633         soname=conftest
17634         lib=conftest
17635         libobjs=conftest.$ac_objext
17636         deplibs=
17637         wl=$lt_prog_compiler_wl_GCJ
17638         pic_flag=$lt_prog_compiler_pic_GCJ
17639         compiler_flags=-v
17640         linker_flags=-v
17641         verstring=
17642         output_objdir=.
17643         libname=conftest
17644         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17645         allow_undefined_flag_GCJ=
17646         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17647   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17648   ac_status=$?
17649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650   (exit $ac_status); }
17651         then
17652           archive_cmds_need_lc_GCJ=no
17653         else
17654           archive_cmds_need_lc_GCJ=yes
17655         fi
17656         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17657       else
17658         cat conftest.err 1>&5
17659       fi
17660       $rm conftest*
17661       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17662 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17663       ;;
17664     esac
17665   fi
17666   ;;
17667 esac
17668
17669 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17670 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17671 library_names_spec=
17672 libname_spec='lib$name'
17673 soname_spec=
17674 shrext_cmds=".so"
17675 postinstall_cmds=
17676 postuninstall_cmds=
17677 finish_cmds=
17678 finish_eval=
17679 shlibpath_var=
17680 shlibpath_overrides_runpath=unknown
17681 version_type=none
17682 dynamic_linker="$host_os ld.so"
17683 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17684 if test "$GCC" = yes; then
17685   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17686   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17687     # if the path contains ";" then we assume it to be the separator
17688     # otherwise default to the standard path separator (i.e. ":") - it is
17689     # assumed that no part of a normal pathname contains ";" but that should
17690     # okay in the real world where ";" in dirpaths is itself problematic.
17691     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17692   else
17693     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17694   fi
17695 else
17696   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17697 fi
17698 need_lib_prefix=unknown
17699 hardcode_into_libs=no
17700
17701 # when you set need_version to no, make sure it does not cause -set_version
17702 # flags to be left without arguments
17703 need_version=unknown
17704
17705 case $host_os in
17706 aix3*)
17707   version_type=linux
17708   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17709   shlibpath_var=LIBPATH
17710
17711   # AIX 3 has no versioning support, so we append a major version to the name.
17712   soname_spec='${libname}${release}${shared_ext}$major'
17713   ;;
17714
17715 aix4* | aix5*)
17716   version_type=linux
17717   need_lib_prefix=no
17718   need_version=no
17719   hardcode_into_libs=yes
17720   if test "$host_cpu" = ia64; then
17721     # AIX 5 supports IA64
17722     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17723     shlibpath_var=LD_LIBRARY_PATH
17724   else
17725     # With GCC up to 2.95.x, collect2 would create an import file
17726     # for dependence libraries.  The import file would start with
17727     # the line `#! .'.  This would cause the generated library to
17728     # depend on `.', always an invalid library.  This was fixed in
17729     # development snapshots of GCC prior to 3.0.
17730     case $host_os in
17731       aix4 | aix4.[01] | aix4.[01].*)
17732       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17733            echo ' yes '
17734            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17735         :
17736       else
17737         can_build_shared=no
17738       fi
17739       ;;
17740     esac
17741     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17742     # soname into executable. Probably we can add versioning support to
17743     # collect2, so additional links can be useful in future.
17744     if test "$aix_use_runtimelinking" = yes; then
17745       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17746       # instead of lib<name>.a to let people know that these are not
17747       # typical AIX shared libraries.
17748       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17749     else
17750       # We preserve .a as extension for shared libraries through AIX4.2
17751       # and later when we are not doing run time linking.
17752       library_names_spec='${libname}${release}.a $libname.a'
17753       soname_spec='${libname}${release}${shared_ext}$major'
17754     fi
17755     shlibpath_var=LIBPATH
17756   fi
17757   ;;
17758
17759 amigaos*)
17760   library_names_spec='$libname.ixlibrary $libname.a'
17761   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17762   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'
17763   ;;
17764
17765 beos*)
17766   library_names_spec='${libname}${shared_ext}'
17767   dynamic_linker="$host_os ld.so"
17768   shlibpath_var=LIBRARY_PATH
17769   ;;
17770
17771 bsdi[45]*)
17772   version_type=linux
17773   need_version=no
17774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17775   soname_spec='${libname}${release}${shared_ext}$major'
17776   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17777   shlibpath_var=LD_LIBRARY_PATH
17778   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17779   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17780   # the default ld.so.conf also contains /usr/contrib/lib and
17781   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17782   # libtool to hard-code these into programs
17783   ;;
17784
17785 cygwin* | mingw* | pw32*)
17786   version_type=windows
17787   shrext_cmds=".dll"
17788   need_version=no
17789   need_lib_prefix=no
17790
17791   case $GCC,$host_os in
17792   yes,cygwin* | yes,mingw* | yes,pw32*)
17793     library_names_spec='$libname.dll.a'
17794     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17795     postinstall_cmds='base_file=`basename \${file}`~
17796       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17797       dldir=$destdir/`dirname \$dlpath`~
17798       test -d \$dldir || mkdir -p \$dldir~
17799       $install_prog $dir/$dlname \$dldir/$dlname~
17800       chmod a+x \$dldir/$dlname'
17801     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17802       dlpath=$dir/\$dldll~
17803        $rm \$dlpath'
17804     shlibpath_overrides_runpath=yes
17805
17806     case $host_os in
17807     cygwin*)
17808       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17809       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17810       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17811       ;;
17812     mingw*)
17813       # MinGW DLLs use traditional 'lib' prefix
17814       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17815       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17816       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17817         # It is most probably a Windows format PATH printed by
17818         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17819         # path with ; separators, and with drive letters. We can handle the
17820         # drive letters (cygwin fileutils understands them), so leave them,
17821         # especially as we might pass files found there to a mingw objdump,
17822         # which wouldn't understand a cygwinified path. Ahh.
17823         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17824       else
17825         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17826       fi
17827       ;;
17828     pw32*)
17829       # pw32 DLLs use 'pw' prefix rather than 'lib'
17830       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17831       ;;
17832     esac
17833     ;;
17834
17835   *)
17836     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17837     ;;
17838   esac
17839   dynamic_linker='Win32 ld.exe'
17840   # FIXME: first we should search . and the directory the executable is in
17841   shlibpath_var=PATH
17842   ;;
17843
17844 darwin* | rhapsody*)
17845   dynamic_linker="$host_os dyld"
17846   version_type=darwin
17847   need_lib_prefix=no
17848   need_version=no
17849   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17850   soname_spec='${libname}${release}${major}$shared_ext'
17851   shlibpath_overrides_runpath=yes
17852   shlibpath_var=DYLD_LIBRARY_PATH
17853   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17854   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17855   if test "$GCC" = yes; then
17856     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"`
17857   else
17858     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17859   fi
17860   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17861   ;;
17862
17863 dgux*)
17864   version_type=linux
17865   need_lib_prefix=no
17866   need_version=no
17867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17868   soname_spec='${libname}${release}${shared_ext}$major'
17869   shlibpath_var=LD_LIBRARY_PATH
17870   ;;
17871
17872 freebsd1*)
17873   dynamic_linker=no
17874   ;;
17875
17876 freebsd* | dragonfly*)
17877   # DragonFly does not have aout.  When/if they implement a new
17878   # versioning mechanism, adjust this.
17879   if test -x /usr/bin/objformat; then
17880     objformat=`/usr/bin/objformat`
17881   else
17882     case $host_os in
17883     freebsd[123]*) objformat=aout ;;
17884     *) objformat=elf ;;
17885     esac
17886   fi
17887   version_type=freebsd-$objformat
17888   case $version_type in
17889     freebsd-elf*)
17890       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17891       need_version=no
17892       need_lib_prefix=no
17893       ;;
17894     freebsd-*)
17895       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17896       need_version=yes
17897       ;;
17898   esac
17899   shlibpath_var=LD_LIBRARY_PATH
17900   case $host_os in
17901   freebsd2*)
17902     shlibpath_overrides_runpath=yes
17903     ;;
17904   freebsd3.[01]* | freebsdelf3.[01]*)
17905     shlibpath_overrides_runpath=yes
17906     hardcode_into_libs=yes
17907     ;;
17908   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17909   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17910     shlibpath_overrides_runpath=no
17911     hardcode_into_libs=yes
17912     ;;
17913   freebsd*) # from 4.6 on
17914     shlibpath_overrides_runpath=yes
17915     hardcode_into_libs=yes
17916     ;;
17917   esac
17918   ;;
17919
17920 gnu*)
17921   version_type=linux
17922   need_lib_prefix=no
17923   need_version=no
17924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17925   soname_spec='${libname}${release}${shared_ext}$major'
17926   shlibpath_var=LD_LIBRARY_PATH
17927   hardcode_into_libs=yes
17928   ;;
17929
17930 hpux9* | hpux10* | hpux11*)
17931   # Give a soname corresponding to the major version so that dld.sl refuses to
17932   # link against other versions.
17933   version_type=sunos
17934   need_lib_prefix=no
17935   need_version=no
17936   case $host_cpu in
17937   ia64*)
17938     shrext_cmds='.so'
17939     hardcode_into_libs=yes
17940     dynamic_linker="$host_os dld.so"
17941     shlibpath_var=LD_LIBRARY_PATH
17942     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17943     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17944     soname_spec='${libname}${release}${shared_ext}$major'
17945     if test "X$HPUX_IA64_MODE" = X32; then
17946       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17947     else
17948       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17949     fi
17950     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17951     ;;
17952    hppa*64*)
17953      shrext_cmds='.sl'
17954      hardcode_into_libs=yes
17955      dynamic_linker="$host_os dld.sl"
17956      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17957      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17958      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17959      soname_spec='${libname}${release}${shared_ext}$major'
17960      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17961      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17962      ;;
17963    *)
17964     shrext_cmds='.sl'
17965     dynamic_linker="$host_os dld.sl"
17966     shlibpath_var=SHLIB_PATH
17967     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17968     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17969     soname_spec='${libname}${release}${shared_ext}$major'
17970     ;;
17971   esac
17972   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17973   postinstall_cmds='chmod 555 $lib'
17974   ;;
17975
17976 interix3*)
17977   version_type=linux
17978   need_lib_prefix=no
17979   need_version=no
17980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17981   soname_spec='${libname}${release}${shared_ext}$major'
17982   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17983   shlibpath_var=LD_LIBRARY_PATH
17984   shlibpath_overrides_runpath=no
17985   hardcode_into_libs=yes
17986   ;;
17987
17988 irix5* | irix6* | nonstopux*)
17989   case $host_os in
17990     nonstopux*) version_type=nonstopux ;;
17991     *)
17992         if test "$lt_cv_prog_gnu_ld" = yes; then
17993                 version_type=linux
17994         else
17995                 version_type=irix
17996         fi ;;
17997   esac
17998   need_lib_prefix=no
17999   need_version=no
18000   soname_spec='${libname}${release}${shared_ext}$major'
18001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18002   case $host_os in
18003   irix5* | nonstopux*)
18004     libsuff= shlibsuff=
18005     ;;
18006   *)
18007     case $LD in # libtool.m4 will add one of these switches to LD
18008     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18009       libsuff= shlibsuff= libmagic=32-bit;;
18010     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18011       libsuff=32 shlibsuff=N32 libmagic=N32;;
18012     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18013       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18014     *) libsuff= shlibsuff= libmagic=never-match;;
18015     esac
18016     ;;
18017   esac
18018   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18019   shlibpath_overrides_runpath=no
18020   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18021   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18022   hardcode_into_libs=yes
18023   ;;
18024
18025 # No shared lib support for Linux oldld, aout, or coff.
18026 linux*oldld* | linux*aout* | linux*coff*)
18027   dynamic_linker=no
18028   ;;
18029
18030 # This must be Linux ELF.
18031 linux* | k*bsd*-gnu)
18032   version_type=linux
18033   need_lib_prefix=no
18034   need_version=no
18035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18036   soname_spec='${libname}${release}${shared_ext}$major'
18037   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18038   shlibpath_var=LD_LIBRARY_PATH
18039   shlibpath_overrides_runpath=no
18040   # This implies no fast_install, which is unacceptable.
18041   # Some rework will be needed to allow for fast_install
18042   # before this can be enabled.
18043   hardcode_into_libs=yes
18044
18045   # Append ld.so.conf contents to the search path
18046   if test -f /etc/ld.so.conf; then
18047     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' ' '`
18048     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18049   fi
18050
18051   # We used to test for /lib/ld.so.1 and disable shared libraries on
18052   # powerpc, because MkLinux only supported shared libraries with the
18053   # GNU dynamic linker.  Since this was broken with cross compilers,
18054   # most powerpc-linux boxes support dynamic linking these days and
18055   # people can always --disable-shared, the test was removed, and we
18056   # assume the GNU/Linux dynamic linker is in use.
18057   dynamic_linker='GNU/Linux ld.so'
18058   ;;
18059
18060 netbsdelf*-gnu)
18061   version_type=linux
18062   need_lib_prefix=no
18063   need_version=no
18064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18065   soname_spec='${libname}${release}${shared_ext}$major'
18066   shlibpath_var=LD_LIBRARY_PATH
18067   shlibpath_overrides_runpath=no
18068   hardcode_into_libs=yes
18069   dynamic_linker='NetBSD ld.elf_so'
18070   ;;
18071
18072 netbsd*)
18073   version_type=sunos
18074   need_lib_prefix=no
18075   need_version=no
18076   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18077     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18078     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18079     dynamic_linker='NetBSD (a.out) ld.so'
18080   else
18081     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18082     soname_spec='${libname}${release}${shared_ext}$major'
18083     dynamic_linker='NetBSD ld.elf_so'
18084   fi
18085   shlibpath_var=LD_LIBRARY_PATH
18086   shlibpath_overrides_runpath=yes
18087   hardcode_into_libs=yes
18088   ;;
18089
18090 newsos6)
18091   version_type=linux
18092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18093   shlibpath_var=LD_LIBRARY_PATH
18094   shlibpath_overrides_runpath=yes
18095   ;;
18096
18097 nto-qnx*)
18098   version_type=linux
18099   need_lib_prefix=no
18100   need_version=no
18101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18102   soname_spec='${libname}${release}${shared_ext}$major'
18103   shlibpath_var=LD_LIBRARY_PATH
18104   shlibpath_overrides_runpath=yes
18105   ;;
18106
18107 openbsd*)
18108   version_type=sunos
18109   sys_lib_dlsearch_path_spec="/usr/lib"
18110   need_lib_prefix=no
18111   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18112   case $host_os in
18113     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18114     *)                         need_version=no  ;;
18115   esac
18116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18117   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18118   shlibpath_var=LD_LIBRARY_PATH
18119   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18120     case $host_os in
18121       openbsd2.[89] | openbsd2.[89].*)
18122         shlibpath_overrides_runpath=no
18123         ;;
18124       *)
18125         shlibpath_overrides_runpath=yes
18126         ;;
18127       esac
18128   else
18129     shlibpath_overrides_runpath=yes
18130   fi
18131   ;;
18132
18133 os2*)
18134   libname_spec='$name'
18135   shrext_cmds=".dll"
18136   need_lib_prefix=no
18137   library_names_spec='$libname${shared_ext} $libname.a'
18138   dynamic_linker='OS/2 ld.exe'
18139   shlibpath_var=LIBPATH
18140   ;;
18141
18142 osf3* | osf4* | osf5*)
18143   version_type=osf
18144   need_lib_prefix=no
18145   need_version=no
18146   soname_spec='${libname}${release}${shared_ext}$major'
18147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18148   shlibpath_var=LD_LIBRARY_PATH
18149   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18150   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18151   ;;
18152
18153 solaris*)
18154   version_type=linux
18155   need_lib_prefix=no
18156   need_version=no
18157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18158   soname_spec='${libname}${release}${shared_ext}$major'
18159   shlibpath_var=LD_LIBRARY_PATH
18160   shlibpath_overrides_runpath=yes
18161   hardcode_into_libs=yes
18162   # ldd complains unless libraries are executable
18163   postinstall_cmds='chmod +x $lib'
18164   ;;
18165
18166 sunos4*)
18167   version_type=sunos
18168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18169   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18170   shlibpath_var=LD_LIBRARY_PATH
18171   shlibpath_overrides_runpath=yes
18172   if test "$with_gnu_ld" = yes; then
18173     need_lib_prefix=no
18174   fi
18175   need_version=yes
18176   ;;
18177
18178 sysv4 | sysv4.3*)
18179   version_type=linux
18180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18181   soname_spec='${libname}${release}${shared_ext}$major'
18182   shlibpath_var=LD_LIBRARY_PATH
18183   case $host_vendor in
18184     sni)
18185       shlibpath_overrides_runpath=no
18186       need_lib_prefix=no
18187       export_dynamic_flag_spec='${wl}-Blargedynsym'
18188       runpath_var=LD_RUN_PATH
18189       ;;
18190     siemens)
18191       need_lib_prefix=no
18192       ;;
18193     motorola)
18194       need_lib_prefix=no
18195       need_version=no
18196       shlibpath_overrides_runpath=no
18197       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18198       ;;
18199   esac
18200   ;;
18201
18202 sysv4*MP*)
18203   if test -d /usr/nec ;then
18204     version_type=linux
18205     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18206     soname_spec='$libname${shared_ext}.$major'
18207     shlibpath_var=LD_LIBRARY_PATH
18208   fi
18209   ;;
18210
18211 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18212   version_type=freebsd-elf
18213   need_lib_prefix=no
18214   need_version=no
18215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18216   soname_spec='${libname}${release}${shared_ext}$major'
18217   shlibpath_var=LD_LIBRARY_PATH
18218   hardcode_into_libs=yes
18219   if test "$with_gnu_ld" = yes; then
18220     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18221     shlibpath_overrides_runpath=no
18222   else
18223     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18224     shlibpath_overrides_runpath=yes
18225     case $host_os in
18226       sco3.2v5*)
18227         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18228         ;;
18229     esac
18230   fi
18231   sys_lib_dlsearch_path_spec='/usr/lib'
18232   ;;
18233
18234 uts4*)
18235   version_type=linux
18236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18237   soname_spec='${libname}${release}${shared_ext}$major'
18238   shlibpath_var=LD_LIBRARY_PATH
18239   ;;
18240
18241 *)
18242   dynamic_linker=no
18243   ;;
18244 esac
18245 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18246 echo "${ECHO_T}$dynamic_linker" >&6; }
18247 test "$dynamic_linker" = no && can_build_shared=no
18248
18249 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18250 if test "$GCC" = yes; then
18251   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18252 fi
18253
18254 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18255 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18256 hardcode_action_GCJ=
18257 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18258    test -n "$runpath_var_GCJ" || \
18259    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18260
18261   # We can hardcode non-existant directories.
18262   if test "$hardcode_direct_GCJ" != no &&
18263      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18264      # have to relink, otherwise we might link with an installed library
18265      # when we should be linking with a yet-to-be-installed one
18266      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18267      test "$hardcode_minus_L_GCJ" != no; then
18268     # Linking always hardcodes the temporary library directory.
18269     hardcode_action_GCJ=relink
18270   else
18271     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18272     hardcode_action_GCJ=immediate
18273   fi
18274 else
18275   # We cannot hardcode anything, or else we can only hardcode existing
18276   # directories.
18277   hardcode_action_GCJ=unsupported
18278 fi
18279 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18280 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18281
18282 if test "$hardcode_action_GCJ" = relink; then
18283   # Fast installation is not supported
18284   enable_fast_install=no
18285 elif test "$shlibpath_overrides_runpath" = yes ||
18286      test "$enable_shared" = no; then
18287   # Fast installation is not necessary
18288   enable_fast_install=needless
18289 fi
18290
18291
18292 # The else clause should only fire when bootstrapping the
18293 # libtool distribution, otherwise you forgot to ship ltmain.sh
18294 # with your package, and you will get complaints that there are
18295 # no rules to generate ltmain.sh.
18296 if test -f "$ltmain"; then
18297   # See if we are running on zsh, and set the options which allow our commands through
18298   # without removal of \ escapes.
18299   if test -n "${ZSH_VERSION+set}" ; then
18300     setopt NO_GLOB_SUBST
18301   fi
18302   # Now quote all the things that may contain metacharacters while being
18303   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18304   # variables and quote the copies for generation of the libtool script.
18305   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18306     SED SHELL STRIP \
18307     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18308     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18309     deplibs_check_method reload_flag reload_cmds need_locks \
18310     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18311     lt_cv_sys_global_symbol_to_c_name_address \
18312     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18313     old_postinstall_cmds old_postuninstall_cmds \
18314     compiler_GCJ \
18315     CC_GCJ \
18316     LD_GCJ \
18317     lt_prog_compiler_wl_GCJ \
18318     lt_prog_compiler_pic_GCJ \
18319     lt_prog_compiler_static_GCJ \
18320     lt_prog_compiler_no_builtin_flag_GCJ \
18321     export_dynamic_flag_spec_GCJ \
18322     thread_safe_flag_spec_GCJ \
18323     whole_archive_flag_spec_GCJ \
18324     enable_shared_with_static_runtimes_GCJ \
18325     old_archive_cmds_GCJ \
18326     old_archive_from_new_cmds_GCJ \
18327     predep_objects_GCJ \
18328     postdep_objects_GCJ \
18329     predeps_GCJ \
18330     postdeps_GCJ \
18331     compiler_lib_search_path_GCJ \
18332     archive_cmds_GCJ \
18333     archive_expsym_cmds_GCJ \
18334     postinstall_cmds_GCJ \
18335     postuninstall_cmds_GCJ \
18336     old_archive_from_expsyms_cmds_GCJ \
18337     allow_undefined_flag_GCJ \
18338     no_undefined_flag_GCJ \
18339     export_symbols_cmds_GCJ \
18340     hardcode_libdir_flag_spec_GCJ \
18341     hardcode_libdir_flag_spec_ld_GCJ \
18342     hardcode_libdir_separator_GCJ \
18343     hardcode_automatic_GCJ \
18344     module_cmds_GCJ \
18345     module_expsym_cmds_GCJ \
18346     lt_cv_prog_compiler_c_o_GCJ \
18347     exclude_expsyms_GCJ \
18348     include_expsyms_GCJ; do
18349
18350     case $var in
18351     old_archive_cmds_GCJ | \
18352     old_archive_from_new_cmds_GCJ | \
18353     archive_cmds_GCJ | \
18354     archive_expsym_cmds_GCJ | \
18355     module_cmds_GCJ | \
18356     module_expsym_cmds_GCJ | \
18357     old_archive_from_expsyms_cmds_GCJ | \
18358     export_symbols_cmds_GCJ | \
18359     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18360     postinstall_cmds | postuninstall_cmds | \
18361     old_postinstall_cmds | old_postuninstall_cmds | \
18362     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18363       # Double-quote double-evaled strings.
18364       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18365       ;;
18366     *)
18367       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18368       ;;
18369     esac
18370   done
18371
18372   case $lt_echo in
18373   *'\$0 --fallback-echo"')
18374     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18375     ;;
18376   esac
18377
18378 cfgfile="$ofile"
18379
18380   cat <<__EOF__ >> "$cfgfile"
18381 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18382
18383 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18384
18385 # Shell to use when invoking shell scripts.
18386 SHELL=$lt_SHELL
18387
18388 # Whether or not to build shared libraries.
18389 build_libtool_libs=$enable_shared
18390
18391 # Whether or not to build static libraries.
18392 build_old_libs=$enable_static
18393
18394 # Whether or not to add -lc for building shared libraries.
18395 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18396
18397 # Whether or not to disallow shared libs when runtime libs are static
18398 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18399
18400 # Whether or not to optimize for fast installation.
18401 fast_install=$enable_fast_install
18402
18403 # The host system.
18404 host_alias=$host_alias
18405 host=$host
18406 host_os=$host_os
18407
18408 # The build system.
18409 build_alias=$build_alias
18410 build=$build
18411 build_os=$build_os
18412
18413 # An echo program that does not interpret backslashes.
18414 echo=$lt_echo
18415
18416 # The archiver.
18417 AR=$lt_AR
18418 AR_FLAGS=$lt_AR_FLAGS
18419
18420 # A C compiler.
18421 LTCC=$lt_LTCC
18422
18423 # LTCC compiler flags.
18424 LTCFLAGS=$lt_LTCFLAGS
18425
18426 # A language-specific compiler.
18427 CC=$lt_compiler_GCJ
18428
18429 # Is the compiler the GNU C compiler?
18430 with_gcc=$GCC_GCJ
18431
18432 # An ERE matcher.
18433 EGREP=$lt_EGREP
18434
18435 # The linker used to build libraries.
18436 LD=$lt_LD_GCJ
18437
18438 # Whether we need hard or soft links.
18439 LN_S=$lt_LN_S
18440
18441 # A BSD-compatible nm program.
18442 NM=$lt_NM
18443
18444 # A symbol stripping program
18445 STRIP=$lt_STRIP
18446
18447 # Used to examine libraries when file_magic_cmd begins "file"
18448 MAGIC_CMD=$MAGIC_CMD
18449
18450 # Used on cygwin: DLL creation program.
18451 DLLTOOL="$DLLTOOL"
18452
18453 # Used on cygwin: object dumper.
18454 OBJDUMP="$OBJDUMP"
18455
18456 # Used on cygwin: assembler.
18457 AS="$AS"
18458
18459 # The name of the directory that contains temporary libtool files.
18460 objdir=$objdir
18461
18462 # How to create reloadable object files.
18463 reload_flag=$lt_reload_flag
18464 reload_cmds=$lt_reload_cmds
18465
18466 # How to pass a linker flag through the compiler.
18467 wl=$lt_lt_prog_compiler_wl_GCJ
18468
18469 # Object file suffix (normally "o").
18470 objext="$ac_objext"
18471
18472 # Old archive suffix (normally "a").
18473 libext="$libext"
18474
18475 # Shared library suffix (normally ".so").
18476 shrext_cmds='$shrext_cmds'
18477
18478 # Executable file suffix (normally "").
18479 exeext="$exeext"
18480
18481 # Additional compiler flags for building library objects.
18482 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18483 pic_mode=$pic_mode
18484
18485 # What is the maximum length of a command?
18486 max_cmd_len=$lt_cv_sys_max_cmd_len
18487
18488 # Does compiler simultaneously support -c and -o options?
18489 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18490
18491 # Must we lock files when doing compilation?
18492 need_locks=$lt_need_locks
18493
18494 # Do we need the lib prefix for modules?
18495 need_lib_prefix=$need_lib_prefix
18496
18497 # Do we need a version for libraries?
18498 need_version=$need_version
18499
18500 # Whether dlopen is supported.
18501 dlopen_support=$enable_dlopen
18502
18503 # Whether dlopen of programs is supported.
18504 dlopen_self=$enable_dlopen_self
18505
18506 # Whether dlopen of statically linked programs is supported.
18507 dlopen_self_static=$enable_dlopen_self_static
18508
18509 # Compiler flag to prevent dynamic linking.
18510 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18511
18512 # Compiler flag to turn off builtin functions.
18513 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18514
18515 # Compiler flag to allow reflexive dlopens.
18516 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18517
18518 # Compiler flag to generate shared objects directly from archives.
18519 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18520
18521 # Compiler flag to generate thread-safe objects.
18522 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18523
18524 # Library versioning type.
18525 version_type=$version_type
18526
18527 # Format of library name prefix.
18528 libname_spec=$lt_libname_spec
18529
18530 # List of archive names.  First name is the real one, the rest are links.
18531 # The last name is the one that the linker finds with -lNAME.
18532 library_names_spec=$lt_library_names_spec
18533
18534 # The coded name of the library, if different from the real name.
18535 soname_spec=$lt_soname_spec
18536
18537 # Commands used to build and install an old-style archive.
18538 RANLIB=$lt_RANLIB
18539 old_archive_cmds=$lt_old_archive_cmds_GCJ
18540 old_postinstall_cmds=$lt_old_postinstall_cmds
18541 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18542
18543 # Create an old-style archive from a shared archive.
18544 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18545
18546 # Create a temporary old-style archive to link instead of a shared archive.
18547 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18548
18549 # Commands used to build and install a shared archive.
18550 archive_cmds=$lt_archive_cmds_GCJ
18551 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18552 postinstall_cmds=$lt_postinstall_cmds
18553 postuninstall_cmds=$lt_postuninstall_cmds
18554
18555 # Commands used to build a loadable module (assumed same as above if empty)
18556 module_cmds=$lt_module_cmds_GCJ
18557 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18558
18559 # Commands to strip libraries.
18560 old_striplib=$lt_old_striplib
18561 striplib=$lt_striplib
18562
18563 # Dependencies to place before the objects being linked to create a
18564 # shared library.
18565 predep_objects=$lt_predep_objects_GCJ
18566
18567 # Dependencies to place after the objects being linked to create a
18568 # shared library.
18569 postdep_objects=$lt_postdep_objects_GCJ
18570
18571 # Dependencies to place before the objects being linked to create a
18572 # shared library.
18573 predeps=$lt_predeps_GCJ
18574
18575 # Dependencies to place after the objects being linked to create a
18576 # shared library.
18577 postdeps=$lt_postdeps_GCJ
18578
18579 # The library search path used internally by the compiler when linking
18580 # a shared library.
18581 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18582
18583 # Method to check whether dependent libraries are shared objects.
18584 deplibs_check_method=$lt_deplibs_check_method
18585
18586 # Command to use when deplibs_check_method == file_magic.
18587 file_magic_cmd=$lt_file_magic_cmd
18588
18589 # Flag that allows shared libraries with undefined symbols to be built.
18590 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18591
18592 # Flag that forces no undefined symbols.
18593 no_undefined_flag=$lt_no_undefined_flag_GCJ
18594
18595 # Commands used to finish a libtool library installation in a directory.
18596 finish_cmds=$lt_finish_cmds
18597
18598 # Same as above, but a single script fragment to be evaled but not shown.
18599 finish_eval=$lt_finish_eval
18600
18601 # Take the output of nm and produce a listing of raw symbols and C names.
18602 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18603
18604 # Transform the output of nm in a proper C declaration
18605 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18606
18607 # Transform the output of nm in a C name address pair
18608 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18609
18610 # This is the shared library runtime path variable.
18611 runpath_var=$runpath_var
18612
18613 # This is the shared library path variable.
18614 shlibpath_var=$shlibpath_var
18615
18616 # Is shlibpath searched before the hard-coded library search path?
18617 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18618
18619 # How to hardcode a shared library path into an executable.
18620 hardcode_action=$hardcode_action_GCJ
18621
18622 # Whether we should hardcode library paths into libraries.
18623 hardcode_into_libs=$hardcode_into_libs
18624
18625 # Flag to hardcode \$libdir into a binary during linking.
18626 # This must work even if \$libdir does not exist.
18627 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18628
18629 # If ld is used when linking, flag to hardcode \$libdir into
18630 # a binary during linking. This must work even if \$libdir does
18631 # not exist.
18632 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18633
18634 # Whether we need a single -rpath flag with a separated argument.
18635 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18636
18637 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18638 # resulting binary.
18639 hardcode_direct=$hardcode_direct_GCJ
18640
18641 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18642 # resulting binary.
18643 hardcode_minus_L=$hardcode_minus_L_GCJ
18644
18645 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18646 # the resulting binary.
18647 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18648
18649 # Set to yes if building a shared library automatically hardcodes DIR into the library
18650 # and all subsequent libraries and executables linked against it.
18651 hardcode_automatic=$hardcode_automatic_GCJ
18652
18653 # Variables whose values should be saved in libtool wrapper scripts and
18654 # restored at relink time.
18655 variables_saved_for_relink="$variables_saved_for_relink"
18656
18657 # Whether libtool must link a program against all its dependency libraries.
18658 link_all_deplibs=$link_all_deplibs_GCJ
18659
18660 # Compile-time system search path for libraries
18661 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18662
18663 # Run-time system search path for libraries
18664 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18665
18666 # Fix the shell variable \$srcfile for the compiler.
18667 fix_srcfile_path="$fix_srcfile_path_GCJ"
18668
18669 # Set to yes if exported symbols are required.
18670 always_export_symbols=$always_export_symbols_GCJ
18671
18672 # The commands to list exported symbols.
18673 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18674
18675 # The commands to extract the exported symbol list from a shared archive.
18676 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18677
18678 # Symbols that should not be listed in the preloaded symbols.
18679 exclude_expsyms=$lt_exclude_expsyms_GCJ
18680
18681 # Symbols that must always be exported.
18682 include_expsyms=$lt_include_expsyms_GCJ
18683
18684 # ### END LIBTOOL TAG CONFIG: $tagname
18685
18686 __EOF__
18687
18688
18689 else
18690   # If there is no Makefile yet, we rely on a make rule to execute
18691   # `config.status --recheck' to rerun these tests and create the
18692   # libtool script then.
18693   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18694   if test -f "$ltmain_in"; then
18695     test -f Makefile && make "$ltmain"
18696   fi
18697 fi
18698
18699
18700 ac_ext=c
18701 ac_cpp='$CPP $CPPFLAGS'
18702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18705
18706 CC="$lt_save_CC"
18707
18708         else
18709           tagname=""
18710         fi
18711         ;;
18712
18713       RC)
18714
18715
18716 # Source file extension for RC test sources.
18717 ac_ext=rc
18718
18719 # Object file extension for compiled RC test sources.
18720 objext=o
18721 objext_RC=$objext
18722
18723 # Code to be used in simple compile tests
18724 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18725
18726 # Code to be used in simple link tests
18727 lt_simple_link_test_code="$lt_simple_compile_test_code"
18728
18729 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18730
18731 # If no C compiler was specified, use CC.
18732 LTCC=${LTCC-"$CC"}
18733
18734 # If no C compiler flags were specified, use CFLAGS.
18735 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18736
18737 # Allow CC to be a program name with arguments.
18738 compiler=$CC
18739
18740
18741 # save warnings/boilerplate of simple test code
18742 ac_outfile=conftest.$ac_objext
18743 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18744 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18745 _lt_compiler_boilerplate=`cat conftest.err`
18746 $rm conftest*
18747
18748 ac_outfile=conftest.$ac_objext
18749 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18750 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18751 _lt_linker_boilerplate=`cat conftest.err`
18752 $rm conftest*
18753
18754
18755 # Allow CC to be a program name with arguments.
18756 lt_save_CC="$CC"
18757 CC=${RC-"windres"}
18758 compiler=$CC
18759 compiler_RC=$CC
18760 for cc_temp in $compiler""; do
18761   case $cc_temp in
18762     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18763     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18764     \-*) ;;
18765     *) break;;
18766   esac
18767 done
18768 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18769
18770 lt_cv_prog_compiler_c_o_RC=yes
18771
18772 # The else clause should only fire when bootstrapping the
18773 # libtool distribution, otherwise you forgot to ship ltmain.sh
18774 # with your package, and you will get complaints that there are
18775 # no rules to generate ltmain.sh.
18776 if test -f "$ltmain"; then
18777   # See if we are running on zsh, and set the options which allow our commands through
18778   # without removal of \ escapes.
18779   if test -n "${ZSH_VERSION+set}" ; then
18780     setopt NO_GLOB_SUBST
18781   fi
18782   # Now quote all the things that may contain metacharacters while being
18783   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18784   # variables and quote the copies for generation of the libtool script.
18785   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18786     SED SHELL STRIP \
18787     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18788     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18789     deplibs_check_method reload_flag reload_cmds need_locks \
18790     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18791     lt_cv_sys_global_symbol_to_c_name_address \
18792     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18793     old_postinstall_cmds old_postuninstall_cmds \
18794     compiler_RC \
18795     CC_RC \
18796     LD_RC \
18797     lt_prog_compiler_wl_RC \
18798     lt_prog_compiler_pic_RC \
18799     lt_prog_compiler_static_RC \
18800     lt_prog_compiler_no_builtin_flag_RC \
18801     export_dynamic_flag_spec_RC \
18802     thread_safe_flag_spec_RC \
18803     whole_archive_flag_spec_RC \
18804     enable_shared_with_static_runtimes_RC \
18805     old_archive_cmds_RC \
18806     old_archive_from_new_cmds_RC \
18807     predep_objects_RC \
18808     postdep_objects_RC \
18809     predeps_RC \
18810     postdeps_RC \
18811     compiler_lib_search_path_RC \
18812     archive_cmds_RC \
18813     archive_expsym_cmds_RC \
18814     postinstall_cmds_RC \
18815     postuninstall_cmds_RC \
18816     old_archive_from_expsyms_cmds_RC \
18817     allow_undefined_flag_RC \
18818     no_undefined_flag_RC \
18819     export_symbols_cmds_RC \
18820     hardcode_libdir_flag_spec_RC \
18821     hardcode_libdir_flag_spec_ld_RC \
18822     hardcode_libdir_separator_RC \
18823     hardcode_automatic_RC \
18824     module_cmds_RC \
18825     module_expsym_cmds_RC \
18826     lt_cv_prog_compiler_c_o_RC \
18827     exclude_expsyms_RC \
18828     include_expsyms_RC; do
18829
18830     case $var in
18831     old_archive_cmds_RC | \
18832     old_archive_from_new_cmds_RC | \
18833     archive_cmds_RC | \
18834     archive_expsym_cmds_RC | \
18835     module_cmds_RC | \
18836     module_expsym_cmds_RC | \
18837     old_archive_from_expsyms_cmds_RC | \
18838     export_symbols_cmds_RC | \
18839     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18840     postinstall_cmds | postuninstall_cmds | \
18841     old_postinstall_cmds | old_postuninstall_cmds | \
18842     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18843       # Double-quote double-evaled strings.
18844       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18845       ;;
18846     *)
18847       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18848       ;;
18849     esac
18850   done
18851
18852   case $lt_echo in
18853   *'\$0 --fallback-echo"')
18854     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18855     ;;
18856   esac
18857
18858 cfgfile="$ofile"
18859
18860   cat <<__EOF__ >> "$cfgfile"
18861 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18862
18863 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18864
18865 # Shell to use when invoking shell scripts.
18866 SHELL=$lt_SHELL
18867
18868 # Whether or not to build shared libraries.
18869 build_libtool_libs=$enable_shared
18870
18871 # Whether or not to build static libraries.
18872 build_old_libs=$enable_static
18873
18874 # Whether or not to add -lc for building shared libraries.
18875 build_libtool_need_lc=$archive_cmds_need_lc_RC
18876
18877 # Whether or not to disallow shared libs when runtime libs are static
18878 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18879
18880 # Whether or not to optimize for fast installation.
18881 fast_install=$enable_fast_install
18882
18883 # The host system.
18884 host_alias=$host_alias
18885 host=$host
18886 host_os=$host_os
18887
18888 # The build system.
18889 build_alias=$build_alias
18890 build=$build
18891 build_os=$build_os
18892
18893 # An echo program that does not interpret backslashes.
18894 echo=$lt_echo
18895
18896 # The archiver.
18897 AR=$lt_AR
18898 AR_FLAGS=$lt_AR_FLAGS
18899
18900 # A C compiler.
18901 LTCC=$lt_LTCC
18902
18903 # LTCC compiler flags.
18904 LTCFLAGS=$lt_LTCFLAGS
18905
18906 # A language-specific compiler.
18907 CC=$lt_compiler_RC
18908
18909 # Is the compiler the GNU C compiler?
18910 with_gcc=$GCC_RC
18911
18912 # An ERE matcher.
18913 EGREP=$lt_EGREP
18914
18915 # The linker used to build libraries.
18916 LD=$lt_LD_RC
18917
18918 # Whether we need hard or soft links.
18919 LN_S=$lt_LN_S
18920
18921 # A BSD-compatible nm program.
18922 NM=$lt_NM
18923
18924 # A symbol stripping program
18925 STRIP=$lt_STRIP
18926
18927 # Used to examine libraries when file_magic_cmd begins "file"
18928 MAGIC_CMD=$MAGIC_CMD
18929
18930 # Used on cygwin: DLL creation program.
18931 DLLTOOL="$DLLTOOL"
18932
18933 # Used on cygwin: object dumper.
18934 OBJDUMP="$OBJDUMP"
18935
18936 # Used on cygwin: assembler.
18937 AS="$AS"
18938
18939 # The name of the directory that contains temporary libtool files.
18940 objdir=$objdir
18941
18942 # How to create reloadable object files.
18943 reload_flag=$lt_reload_flag
18944 reload_cmds=$lt_reload_cmds
18945
18946 # How to pass a linker flag through the compiler.
18947 wl=$lt_lt_prog_compiler_wl_RC
18948
18949 # Object file suffix (normally "o").
18950 objext="$ac_objext"
18951
18952 # Old archive suffix (normally "a").
18953 libext="$libext"
18954
18955 # Shared library suffix (normally ".so").
18956 shrext_cmds='$shrext_cmds'
18957
18958 # Executable file suffix (normally "").
18959 exeext="$exeext"
18960
18961 # Additional compiler flags for building library objects.
18962 pic_flag=$lt_lt_prog_compiler_pic_RC
18963 pic_mode=$pic_mode
18964
18965 # What is the maximum length of a command?
18966 max_cmd_len=$lt_cv_sys_max_cmd_len
18967
18968 # Does compiler simultaneously support -c and -o options?
18969 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18970
18971 # Must we lock files when doing compilation?
18972 need_locks=$lt_need_locks
18973
18974 # Do we need the lib prefix for modules?
18975 need_lib_prefix=$need_lib_prefix
18976
18977 # Do we need a version for libraries?
18978 need_version=$need_version
18979
18980 # Whether dlopen is supported.
18981 dlopen_support=$enable_dlopen
18982
18983 # Whether dlopen of programs is supported.
18984 dlopen_self=$enable_dlopen_self
18985
18986 # Whether dlopen of statically linked programs is supported.
18987 dlopen_self_static=$enable_dlopen_self_static
18988
18989 # Compiler flag to prevent dynamic linking.
18990 link_static_flag=$lt_lt_prog_compiler_static_RC
18991
18992 # Compiler flag to turn off builtin functions.
18993 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18994
18995 # Compiler flag to allow reflexive dlopens.
18996 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18997
18998 # Compiler flag to generate shared objects directly from archives.
18999 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19000
19001 # Compiler flag to generate thread-safe objects.
19002 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19003
19004 # Library versioning type.
19005 version_type=$version_type
19006
19007 # Format of library name prefix.
19008 libname_spec=$lt_libname_spec
19009
19010 # List of archive names.  First name is the real one, the rest are links.
19011 # The last name is the one that the linker finds with -lNAME.
19012 library_names_spec=$lt_library_names_spec
19013
19014 # The coded name of the library, if different from the real name.
19015 soname_spec=$lt_soname_spec
19016
19017 # Commands used to build and install an old-style archive.
19018 RANLIB=$lt_RANLIB
19019 old_archive_cmds=$lt_old_archive_cmds_RC
19020 old_postinstall_cmds=$lt_old_postinstall_cmds
19021 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19022
19023 # Create an old-style archive from a shared archive.
19024 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19025
19026 # Create a temporary old-style archive to link instead of a shared archive.
19027 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19028
19029 # Commands used to build and install a shared archive.
19030 archive_cmds=$lt_archive_cmds_RC
19031 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19032 postinstall_cmds=$lt_postinstall_cmds
19033 postuninstall_cmds=$lt_postuninstall_cmds
19034
19035 # Commands used to build a loadable module (assumed same as above if empty)
19036 module_cmds=$lt_module_cmds_RC
19037 module_expsym_cmds=$lt_module_expsym_cmds_RC
19038
19039 # Commands to strip libraries.
19040 old_striplib=$lt_old_striplib
19041 striplib=$lt_striplib
19042
19043 # Dependencies to place before the objects being linked to create a
19044 # shared library.
19045 predep_objects=$lt_predep_objects_RC
19046
19047 # Dependencies to place after the objects being linked to create a
19048 # shared library.
19049 postdep_objects=$lt_postdep_objects_RC
19050
19051 # Dependencies to place before the objects being linked to create a
19052 # shared library.
19053 predeps=$lt_predeps_RC
19054
19055 # Dependencies to place after the objects being linked to create a
19056 # shared library.
19057 postdeps=$lt_postdeps_RC
19058
19059 # The library search path used internally by the compiler when linking
19060 # a shared library.
19061 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19062
19063 # Method to check whether dependent libraries are shared objects.
19064 deplibs_check_method=$lt_deplibs_check_method
19065
19066 # Command to use when deplibs_check_method == file_magic.
19067 file_magic_cmd=$lt_file_magic_cmd
19068
19069 # Flag that allows shared libraries with undefined symbols to be built.
19070 allow_undefined_flag=$lt_allow_undefined_flag_RC
19071
19072 # Flag that forces no undefined symbols.
19073 no_undefined_flag=$lt_no_undefined_flag_RC
19074
19075 # Commands used to finish a libtool library installation in a directory.
19076 finish_cmds=$lt_finish_cmds
19077
19078 # Same as above, but a single script fragment to be evaled but not shown.
19079 finish_eval=$lt_finish_eval
19080
19081 # Take the output of nm and produce a listing of raw symbols and C names.
19082 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19083
19084 # Transform the output of nm in a proper C declaration
19085 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19086
19087 # Transform the output of nm in a C name address pair
19088 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19089
19090 # This is the shared library runtime path variable.
19091 runpath_var=$runpath_var
19092
19093 # This is the shared library path variable.
19094 shlibpath_var=$shlibpath_var
19095
19096 # Is shlibpath searched before the hard-coded library search path?
19097 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19098
19099 # How to hardcode a shared library path into an executable.
19100 hardcode_action=$hardcode_action_RC
19101
19102 # Whether we should hardcode library paths into libraries.
19103 hardcode_into_libs=$hardcode_into_libs
19104
19105 # Flag to hardcode \$libdir into a binary during linking.
19106 # This must work even if \$libdir does not exist.
19107 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19108
19109 # If ld is used when linking, flag to hardcode \$libdir into
19110 # a binary during linking. This must work even if \$libdir does
19111 # not exist.
19112 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19113
19114 # Whether we need a single -rpath flag with a separated argument.
19115 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19116
19117 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19118 # resulting binary.
19119 hardcode_direct=$hardcode_direct_RC
19120
19121 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19122 # resulting binary.
19123 hardcode_minus_L=$hardcode_minus_L_RC
19124
19125 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19126 # the resulting binary.
19127 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19128
19129 # Set to yes if building a shared library automatically hardcodes DIR into the library
19130 # and all subsequent libraries and executables linked against it.
19131 hardcode_automatic=$hardcode_automatic_RC
19132
19133 # Variables whose values should be saved in libtool wrapper scripts and
19134 # restored at relink time.
19135 variables_saved_for_relink="$variables_saved_for_relink"
19136
19137 # Whether libtool must link a program against all its dependency libraries.
19138 link_all_deplibs=$link_all_deplibs_RC
19139
19140 # Compile-time system search path for libraries
19141 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19142
19143 # Run-time system search path for libraries
19144 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19145
19146 # Fix the shell variable \$srcfile for the compiler.
19147 fix_srcfile_path="$fix_srcfile_path_RC"
19148
19149 # Set to yes if exported symbols are required.
19150 always_export_symbols=$always_export_symbols_RC
19151
19152 # The commands to list exported symbols.
19153 export_symbols_cmds=$lt_export_symbols_cmds_RC
19154
19155 # The commands to extract the exported symbol list from a shared archive.
19156 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19157
19158 # Symbols that should not be listed in the preloaded symbols.
19159 exclude_expsyms=$lt_exclude_expsyms_RC
19160
19161 # Symbols that must always be exported.
19162 include_expsyms=$lt_include_expsyms_RC
19163
19164 # ### END LIBTOOL TAG CONFIG: $tagname
19165
19166 __EOF__
19167
19168
19169 else
19170   # If there is no Makefile yet, we rely on a make rule to execute
19171   # `config.status --recheck' to rerun these tests and create the
19172   # libtool script then.
19173   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19174   if test -f "$ltmain_in"; then
19175     test -f Makefile && make "$ltmain"
19176   fi
19177 fi
19178
19179
19180 ac_ext=c
19181 ac_cpp='$CPP $CPPFLAGS'
19182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19185
19186 CC="$lt_save_CC"
19187
19188         ;;
19189
19190       *)
19191         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19192 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19193    { (exit 1); exit 1; }; }
19194         ;;
19195       esac
19196
19197       # Append the new tag name to the list of available tags.
19198       if test -n "$tagname" ; then
19199       available_tags="$available_tags $tagname"
19200     fi
19201     fi
19202   done
19203   IFS="$lt_save_ifs"
19204
19205   # Now substitute the updated list of available tags.
19206   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19207     mv "${ofile}T" "$ofile"
19208     chmod +x "$ofile"
19209   else
19210     rm -f "${ofile}T"
19211     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19212 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19213    { (exit 1); exit 1; }; }
19214   fi
19215 fi
19216
19217
19218
19219 # This can be used to rebuild libtool when needed
19220 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19221
19222 # Always use our own libtool.
19223 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19224
19225 # Prevent multiple expansion
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247 ###############
19248 ## System checks
19249 ##
19250
19251   { echo "$as_me:$LINENO: result: " >&5
19252 echo "${ECHO_T}" >&6; }
19253   { echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
19254 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6; }
19255
19256 ac_ext=c
19257 ac_cpp='$CPP $CPPFLAGS'
19258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19261 if test -n "$ac_tool_prefix"; then
19262   for ac_prog in xlC gcc cc
19263   do
19264     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19265 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19268 if test "${ac_cv_prog_CC+set}" = set; then
19269   echo $ECHO_N "(cached) $ECHO_C" >&6
19270 else
19271   if test -n "$CC"; then
19272   ac_cv_prog_CC="$CC" # Let the user override the test.
19273 else
19274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19275 for as_dir in $PATH
19276 do
19277   IFS=$as_save_IFS
19278   test -z "$as_dir" && as_dir=.
19279   for ac_exec_ext in '' $ac_executable_extensions; do
19280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19281     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19283     break 2
19284   fi
19285 done
19286 done
19287 IFS=$as_save_IFS
19288
19289 fi
19290 fi
19291 CC=$ac_cv_prog_CC
19292 if test -n "$CC"; then
19293   { echo "$as_me:$LINENO: result: $CC" >&5
19294 echo "${ECHO_T}$CC" >&6; }
19295 else
19296   { echo "$as_me:$LINENO: result: no" >&5
19297 echo "${ECHO_T}no" >&6; }
19298 fi
19299
19300
19301     test -n "$CC" && break
19302   done
19303 fi
19304 if test -z "$CC"; then
19305   ac_ct_CC=$CC
19306   for ac_prog in xlC gcc cc
19307 do
19308   # Extract the first word of "$ac_prog", so it can be a program name with args.
19309 set dummy $ac_prog; ac_word=$2
19310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19312 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19313   echo $ECHO_N "(cached) $ECHO_C" >&6
19314 else
19315   if test -n "$ac_ct_CC"; then
19316   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19317 else
19318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19319 for as_dir in $PATH
19320 do
19321   IFS=$as_save_IFS
19322   test -z "$as_dir" && as_dir=.
19323   for ac_exec_ext in '' $ac_executable_extensions; do
19324   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19325     ac_cv_prog_ac_ct_CC="$ac_prog"
19326     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19327     break 2
19328   fi
19329 done
19330 done
19331 IFS=$as_save_IFS
19332
19333 fi
19334 fi
19335 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19336 if test -n "$ac_ct_CC"; then
19337   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19338 echo "${ECHO_T}$ac_ct_CC" >&6; }
19339 else
19340   { echo "$as_me:$LINENO: result: no" >&5
19341 echo "${ECHO_T}no" >&6; }
19342 fi
19343
19344
19345   test -n "$ac_ct_CC" && break
19346 done
19347
19348   if test "x$ac_ct_CC" = x; then
19349     CC=""
19350   else
19351     case $cross_compiling:$ac_tool_warned in
19352 yes:)
19353 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19354 whose name does not start with the host triplet.  If you think this
19355 configuration is useful to you, please write to autoconf@gnu.org." >&5
19356 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19357 whose name does not start with the host triplet.  If you think this
19358 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19359 ac_tool_warned=yes ;;
19360 esac
19361     CC=$ac_ct_CC
19362   fi
19363 fi
19364
19365
19366 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19367 See \`config.log' for more details." >&5
19368 echo "$as_me: error: no acceptable C compiler found in \$PATH
19369 See \`config.log' for more details." >&2;}
19370    { (exit 1); exit 1; }; }
19371
19372 # Provide some information about the compiler.
19373 echo "$as_me:$LINENO: checking for C compiler version" >&5
19374 ac_compiler=`set X $ac_compile; echo $2`
19375 { (ac_try="$ac_compiler --version >&5"
19376 case "(($ac_try" in
19377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19378   *) ac_try_echo=$ac_try;;
19379 esac
19380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19381   (eval "$ac_compiler --version >&5") 2>&5
19382   ac_status=$?
19383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384   (exit $ac_status); }
19385 { (ac_try="$ac_compiler -v >&5"
19386 case "(($ac_try" in
19387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19388   *) ac_try_echo=$ac_try;;
19389 esac
19390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19391   (eval "$ac_compiler -v >&5") 2>&5
19392   ac_status=$?
19393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394   (exit $ac_status); }
19395 { (ac_try="$ac_compiler -V >&5"
19396 case "(($ac_try" in
19397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19398   *) ac_try_echo=$ac_try;;
19399 esac
19400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19401   (eval "$ac_compiler -V >&5") 2>&5
19402   ac_status=$?
19403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404   (exit $ac_status); }
19405
19406 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19407 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19408 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19409   echo $ECHO_N "(cached) $ECHO_C" >&6
19410 else
19411   cat >conftest.$ac_ext <<_ACEOF
19412 /* confdefs.h.  */
19413 _ACEOF
19414 cat confdefs.h >>conftest.$ac_ext
19415 cat >>conftest.$ac_ext <<_ACEOF
19416 /* end confdefs.h.  */
19417
19418 int
19419 main ()
19420 {
19421 #ifndef __GNUC__
19422        choke me
19423 #endif
19424
19425   ;
19426   return 0;
19427 }
19428 _ACEOF
19429 rm -f conftest.$ac_objext
19430 if { (ac_try="$ac_compile"
19431 case "(($ac_try" in
19432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19433   *) ac_try_echo=$ac_try;;
19434 esac
19435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19436   (eval "$ac_compile") 2>conftest.er1
19437   ac_status=$?
19438   grep -v '^ *+' conftest.er1 >conftest.err
19439   rm -f conftest.er1
19440   cat conftest.err >&5
19441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442   (exit $ac_status); } && {
19443          test -z "$ac_c_werror_flag" ||
19444          test ! -s conftest.err
19445        } && test -s conftest.$ac_objext; then
19446   ac_compiler_gnu=yes
19447 else
19448   echo "$as_me: failed program was:" >&5
19449 sed 's/^/| /' conftest.$ac_ext >&5
19450
19451         ac_compiler_gnu=no
19452 fi
19453
19454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19455 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19456
19457 fi
19458 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19459 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19460 GCC=`test $ac_compiler_gnu = yes && echo yes`
19461 ac_test_CFLAGS=${CFLAGS+set}
19462 ac_save_CFLAGS=$CFLAGS
19463 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19464 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19465 if test "${ac_cv_prog_cc_g+set}" = set; then
19466   echo $ECHO_N "(cached) $ECHO_C" >&6
19467 else
19468   ac_save_c_werror_flag=$ac_c_werror_flag
19469    ac_c_werror_flag=yes
19470    ac_cv_prog_cc_g=no
19471    CFLAGS="-g"
19472    cat >conftest.$ac_ext <<_ACEOF
19473 /* confdefs.h.  */
19474 _ACEOF
19475 cat confdefs.h >>conftest.$ac_ext
19476 cat >>conftest.$ac_ext <<_ACEOF
19477 /* end confdefs.h.  */
19478
19479 int
19480 main ()
19481 {
19482
19483   ;
19484   return 0;
19485 }
19486 _ACEOF
19487 rm -f conftest.$ac_objext
19488 if { (ac_try="$ac_compile"
19489 case "(($ac_try" in
19490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19491   *) ac_try_echo=$ac_try;;
19492 esac
19493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19494   (eval "$ac_compile") 2>conftest.er1
19495   ac_status=$?
19496   grep -v '^ *+' conftest.er1 >conftest.err
19497   rm -f conftest.er1
19498   cat conftest.err >&5
19499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500   (exit $ac_status); } && {
19501          test -z "$ac_c_werror_flag" ||
19502          test ! -s conftest.err
19503        } && test -s conftest.$ac_objext; then
19504   ac_cv_prog_cc_g=yes
19505 else
19506   echo "$as_me: failed program was:" >&5
19507 sed 's/^/| /' conftest.$ac_ext >&5
19508
19509         CFLAGS=""
19510       cat >conftest.$ac_ext <<_ACEOF
19511 /* confdefs.h.  */
19512 _ACEOF
19513 cat confdefs.h >>conftest.$ac_ext
19514 cat >>conftest.$ac_ext <<_ACEOF
19515 /* end confdefs.h.  */
19516
19517 int
19518 main ()
19519 {
19520
19521   ;
19522   return 0;
19523 }
19524 _ACEOF
19525 rm -f conftest.$ac_objext
19526 if { (ac_try="$ac_compile"
19527 case "(($ac_try" in
19528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19529   *) ac_try_echo=$ac_try;;
19530 esac
19531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19532   (eval "$ac_compile") 2>conftest.er1
19533   ac_status=$?
19534   grep -v '^ *+' conftest.er1 >conftest.err
19535   rm -f conftest.er1
19536   cat conftest.err >&5
19537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538   (exit $ac_status); } && {
19539          test -z "$ac_c_werror_flag" ||
19540          test ! -s conftest.err
19541        } && test -s conftest.$ac_objext; then
19542   :
19543 else
19544   echo "$as_me: failed program was:" >&5
19545 sed 's/^/| /' conftest.$ac_ext >&5
19546
19547         ac_c_werror_flag=$ac_save_c_werror_flag
19548          CFLAGS="-g"
19549          cat >conftest.$ac_ext <<_ACEOF
19550 /* confdefs.h.  */
19551 _ACEOF
19552 cat confdefs.h >>conftest.$ac_ext
19553 cat >>conftest.$ac_ext <<_ACEOF
19554 /* end confdefs.h.  */
19555
19556 int
19557 main ()
19558 {
19559
19560   ;
19561   return 0;
19562 }
19563 _ACEOF
19564 rm -f conftest.$ac_objext
19565 if { (ac_try="$ac_compile"
19566 case "(($ac_try" in
19567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19568   *) ac_try_echo=$ac_try;;
19569 esac
19570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19571   (eval "$ac_compile") 2>conftest.er1
19572   ac_status=$?
19573   grep -v '^ *+' conftest.er1 >conftest.err
19574   rm -f conftest.er1
19575   cat conftest.err >&5
19576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577   (exit $ac_status); } && {
19578          test -z "$ac_c_werror_flag" ||
19579          test ! -s conftest.err
19580        } && test -s conftest.$ac_objext; then
19581   ac_cv_prog_cc_g=yes
19582 else
19583   echo "$as_me: failed program was:" >&5
19584 sed 's/^/| /' conftest.$ac_ext >&5
19585
19586
19587 fi
19588
19589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19590 fi
19591
19592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19593 fi
19594
19595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19596    ac_c_werror_flag=$ac_save_c_werror_flag
19597 fi
19598 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19599 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19600 if test "$ac_test_CFLAGS" = set; then
19601   CFLAGS=$ac_save_CFLAGS
19602 elif test $ac_cv_prog_cc_g = yes; then
19603   if test "$GCC" = yes; then
19604     CFLAGS="-g -O2"
19605   else
19606     CFLAGS="-g"
19607   fi
19608 else
19609   if test "$GCC" = yes; then
19610     CFLAGS="-O2"
19611   else
19612     CFLAGS=
19613   fi
19614 fi
19615 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19616 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19617 if test "${ac_cv_prog_cc_c89+set}" = set; then
19618   echo $ECHO_N "(cached) $ECHO_C" >&6
19619 else
19620   ac_cv_prog_cc_c89=no
19621 ac_save_CC=$CC
19622 cat >conftest.$ac_ext <<_ACEOF
19623 /* confdefs.h.  */
19624 _ACEOF
19625 cat confdefs.h >>conftest.$ac_ext
19626 cat >>conftest.$ac_ext <<_ACEOF
19627 /* end confdefs.h.  */
19628 #include <stdarg.h>
19629 #include <stdio.h>
19630 #include <sys/types.h>
19631 #include <sys/stat.h>
19632 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19633 struct buf { int x; };
19634 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19635 static char *e (p, i)
19636      char **p;
19637      int i;
19638 {
19639   return p[i];
19640 }
19641 static char *f (char * (*g) (char **, int), char **p, ...)
19642 {
19643   char *s;
19644   va_list v;
19645   va_start (v,p);
19646   s = g (p, va_arg (v,int));
19647   va_end (v);
19648   return s;
19649 }
19650
19651 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19652    function prototypes and stuff, but not '\xHH' hex character constants.
19653    These don't provoke an error unfortunately, instead are silently treated
19654    as 'x'.  The following induces an error, until -std is added to get
19655    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19656    array size at least.  It's necessary to write '\x00'==0 to get something
19657    that's true only with -std.  */
19658 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19659
19660 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19661    inside strings and character constants.  */
19662 #define FOO(x) 'x'
19663 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19664
19665 int test (int i, double x);
19666 struct s1 {int (*f) (int a);};
19667 struct s2 {int (*f) (double a);};
19668 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19669 int argc;
19670 char **argv;
19671 int
19672 main ()
19673 {
19674 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19675   ;
19676   return 0;
19677 }
19678 _ACEOF
19679 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19680         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19681 do
19682   CC="$ac_save_CC $ac_arg"
19683   rm -f conftest.$ac_objext
19684 if { (ac_try="$ac_compile"
19685 case "(($ac_try" in
19686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19687   *) ac_try_echo=$ac_try;;
19688 esac
19689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19690   (eval "$ac_compile") 2>conftest.er1
19691   ac_status=$?
19692   grep -v '^ *+' conftest.er1 >conftest.err
19693   rm -f conftest.er1
19694   cat conftest.err >&5
19695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696   (exit $ac_status); } && {
19697          test -z "$ac_c_werror_flag" ||
19698          test ! -s conftest.err
19699        } && test -s conftest.$ac_objext; then
19700   ac_cv_prog_cc_c89=$ac_arg
19701 else
19702   echo "$as_me: failed program was:" >&5
19703 sed 's/^/| /' conftest.$ac_ext >&5
19704
19705
19706 fi
19707
19708 rm -f core conftest.err conftest.$ac_objext
19709   test "x$ac_cv_prog_cc_c89" != "xno" && break
19710 done
19711 rm -f conftest.$ac_ext
19712 CC=$ac_save_CC
19713
19714 fi
19715 # AC_CACHE_VAL
19716 case "x$ac_cv_prog_cc_c89" in
19717   x)
19718     { echo "$as_me:$LINENO: result: none needed" >&5
19719 echo "${ECHO_T}none needed" >&6; } ;;
19720   xno)
19721     { echo "$as_me:$LINENO: result: unsupported" >&5
19722 echo "${ECHO_T}unsupported" >&6; } ;;
19723   *)
19724     CC="$CC $ac_cv_prog_cc_c89"
19725     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19726 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19727 esac
19728
19729
19730 ac_ext=c
19731 ac_cpp='$CPP $CPPFLAGS'
19732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19735
19736 depcc="$CC"   am_compiler_list=
19737
19738 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19739 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19740 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19741   echo $ECHO_N "(cached) $ECHO_C" >&6
19742 else
19743   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19744   # We make a subdir and do the tests there.  Otherwise we can end up
19745   # making bogus files that we don't know about and never remove.  For
19746   # instance it was reported that on HP-UX the gcc test will end up
19747   # making a dummy file named `D' -- because `-MD' means `put the output
19748   # in D'.
19749   mkdir conftest.dir
19750   # Copy depcomp to subdir because otherwise we won't find it if we're
19751   # using a relative directory.
19752   cp "$am_depcomp" conftest.dir
19753   cd conftest.dir
19754   # We will build objects and dependencies in a subdirectory because
19755   # it helps to detect inapplicable dependency modes.  For instance
19756   # both Tru64's cc and ICC support -MD to output dependencies as a
19757   # side effect of compilation, but ICC will put the dependencies in
19758   # the current directory while Tru64 will put them in the object
19759   # directory.
19760   mkdir sub
19761
19762   am_cv_CC_dependencies_compiler_type=none
19763   if test "$am_compiler_list" = ""; then
19764      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19765   fi
19766   for depmode in $am_compiler_list; do
19767     # Setup a source with many dependencies, because some compilers
19768     # like to wrap large dependency lists on column 80 (with \), and
19769     # we should not choose a depcomp mode which is confused by this.
19770     #
19771     # We need to recreate these files for each test, as the compiler may
19772     # overwrite some of them when testing with obscure command lines.
19773     # This happens at least with the AIX C compiler.
19774     : > sub/conftest.c
19775     for i in 1 2 3 4 5 6; do
19776       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19777       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19778       # Solaris 8's {/usr,}/bin/sh.
19779       touch sub/conftst$i.h
19780     done
19781     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19782
19783     case $depmode in
19784     nosideeffect)
19785       # after this tag, mechanisms are not by side-effect, so they'll
19786       # only be used when explicitly requested
19787       if test "x$enable_dependency_tracking" = xyes; then
19788         continue
19789       else
19790         break
19791       fi
19792       ;;
19793     none) break ;;
19794     esac
19795     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19796     # mode.  It turns out that the SunPro C++ compiler does not properly
19797     # handle `-M -o', and we need to detect this.
19798     if depmode=$depmode \
19799        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19800        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19801        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19802          >/dev/null 2>conftest.err &&
19803        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19804        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19805        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19806       # icc doesn't choke on unknown options, it will just issue warnings
19807       # or remarks (even with -Werror).  So we grep stderr for any message
19808       # that says an option was ignored or not supported.
19809       # When given -MP, icc 7.0 and 7.1 complain thusly:
19810       #   icc: Command line warning: ignoring option '-M'; no argument required
19811       # The diagnosis changed in icc 8.0:
19812       #   icc: Command line remark: option '-MP' not supported
19813       if (grep 'ignoring option' conftest.err ||
19814           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19815         am_cv_CC_dependencies_compiler_type=$depmode
19816         break
19817       fi
19818     fi
19819   done
19820
19821   cd ..
19822   rm -rf conftest.dir
19823 else
19824   am_cv_CC_dependencies_compiler_type=none
19825 fi
19826
19827 fi
19828 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19829 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
19830 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19831
19832
19833
19834 if
19835   test "x$enable_dependency_tracking" != xno \
19836   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19837   am__fastdepCC_TRUE=
19838   am__fastdepCC_FALSE='#'
19839 else
19840   am__fastdepCC_TRUE='#'
19841   am__fastdepCC_FALSE=
19842 fi
19843
19844
19845 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
19846 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
19847 # Just in case
19848 sleep 1
19849 echo timestamp > conftest.file
19850 # Do `set' in a subshell so we don't clobber the current shell's
19851 # arguments.  Must try -L first in case configure is actually a
19852 # symlink; some systems play weird games with the mod time of symlinks
19853 # (eg FreeBSD returns the mod time of the symlink's containing
19854 # directory).
19855 if (
19856    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
19857    if test "$*" = "X"; then
19858       # -L didn't work.
19859       set X `ls -t $srcdir/configure conftest.file`
19860    fi
19861    rm -f conftest.file
19862    if test "$*" != "X $srcdir/configure conftest.file" \
19863       && test "$*" != "X conftest.file $srcdir/configure"; then
19864
19865       # If neither matched, then we have a broken ls.  This can happen
19866       # if, for instance, CONFIG_SHELL is bash and it inherits a
19867       # broken ls alias from the environment.  This has actually
19868       # happened.  Such a system could not be considered "sane".
19869       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
19870 alias in your environment" >&5
19871 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
19872 alias in your environment" >&2;}
19873    { (exit 1); exit 1; }; }
19874    fi
19875
19876    test "$2" = conftest.file
19877    )
19878 then
19879    # Ok.
19880    :
19881 else
19882    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
19883 Check your system clock" >&5
19884 echo "$as_me: error: newly created file is older than distributed files!
19885 Check your system clock" >&2;}
19886    { (exit 1); exit 1; }; }
19887 fi
19888 { echo "$as_me:$LINENO: result: yes" >&5
19889 echo "${ECHO_T}yes" >&6; }
19890 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19891 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
19892 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
19893 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
19894   echo $ECHO_N "(cached) $ECHO_C" >&6
19895 else
19896   cat >conftest.make <<\_ACEOF
19897 SHELL = /bin/sh
19898 all:
19899         @echo '@@@%%%=$(MAKE)=@@@%%%'
19900 _ACEOF
19901 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19902 case `${MAKE-make} -f conftest.make 2>/dev/null` in
19903   *@@@%%%=?*=@@@%%%*)
19904     eval ac_cv_prog_make_${ac_make}_set=yes;;
19905   *)
19906     eval ac_cv_prog_make_${ac_make}_set=no;;
19907 esac
19908 rm -f conftest.make
19909 fi
19910 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
19911   { echo "$as_me:$LINENO: result: yes" >&5
19912 echo "${ECHO_T}yes" >&6; }
19913   SET_MAKE=
19914 else
19915   { echo "$as_me:$LINENO: result: no" >&5
19916 echo "${ECHO_T}no" >&6; }
19917   SET_MAKE="MAKE=${MAKE-make}"
19918 fi
19919
19920
19921 { echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
19922 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6; }
19923 if test "$cross_compiling" = yes; then
19924   { echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
19925 echo "${ECHO_T}assuming the worse in cross-compilation" >&6; }
19926 else
19927   cat >conftest.$ac_ext <<_ACEOF
19928 /* confdefs.h.  */
19929 _ACEOF
19930 cat confdefs.h >>conftest.$ac_ext
19931 cat >>conftest.$ac_ext <<_ACEOF
19932 /* end confdefs.h.  */
19933 #include <stdio.h>
19934 int
19935 main ()
19936 {
19937 printf("%s",NULL);
19938   ;
19939   return 0;
19940 }
19941 _ACEOF
19942 rm -f conftest$ac_exeext
19943 if { (ac_try="$ac_link"
19944 case "(($ac_try" in
19945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19946   *) ac_try_echo=$ac_try;;
19947 esac
19948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19949   (eval "$ac_link") 2>&5
19950   ac_status=$?
19951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19953   { (case "(($ac_try" in
19954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19955   *) ac_try_echo=$ac_try;;
19956 esac
19957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19958   (eval "$ac_try") 2>&5
19959   ac_status=$?
19960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961   (exit $ac_status); }; }; then
19962
19963 cat >>confdefs.h <<\_ACEOF
19964 #define PRINTF_NULL_WORKING 1
19965 _ACEOF
19966
19967               { echo "$as_me:$LINENO: result: yes" >&5
19968 echo "${ECHO_T}yes" >&6; }
19969 else
19970   echo "$as_me: program exited with status $ac_status" >&5
19971 echo "$as_me: failed program was:" >&5
19972 sed 's/^/| /' conftest.$ac_ext >&5
19973
19974 ( exit $ac_status )
19975 { echo "$as_me:$LINENO: result: no" >&5
19976 echo "${ECHO_T}no" >&6; }
19977 fi
19978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19979 fi
19980
19981
19982
19983
19984     { echo "$as_me:$LINENO: checking for va_copy() function" >&5
19985 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6; }
19986     if test "${ac_cv_va_copy+set}" = set; then
19987   echo $ECHO_N "(cached) $ECHO_C" >&6
19988 else
19989
19990     ac_cv_va_copy=""
19991
19992
19993
19994     if test ".$ac_cv_va_copy" = .; then
19995         if test "$cross_compiling" = yes; then
19996   ac_cv_va_copy="C99"
19997 else
19998   cat >conftest.$ac_ext <<_ACEOF
19999 /* confdefs.h.  */
20000 _ACEOF
20001 cat confdefs.h >>conftest.$ac_ext
20002 cat >>conftest.$ac_ext <<_ACEOF
20003 /* end confdefs.h.  */
20004
20005 #include <stdlib.h>
20006 #include <stdarg.h>
20007 #include <string.h>
20008 #define DO_VA_COPY(d, s) va_copy((d), (s))
20009 void test(char *str, ...)
20010 {
20011     va_list ap, ap2;
20012     int i;
20013     va_start(ap, str);
20014     DO_VA_COPY(ap2, ap);
20015     for (i = 1; i <= 9; i++) {
20016         int k = (int)va_arg(ap, int);
20017         if (k != i)
20018             abort();
20019     }
20020     DO_VA_COPY(ap, ap2);
20021     for (i = 1; i <= 9; i++) {
20022         int k = (int)va_arg(ap, int);
20023         if (k != i)
20024             abort();
20025     }
20026     va_end(ap);
20027 }
20028 int main(int argc, char *argv[])
20029 {
20030     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20031     exit(0);
20032 }
20033
20034 _ACEOF
20035 rm -f conftest$ac_exeext
20036 if { (ac_try="$ac_link"
20037 case "(($ac_try" in
20038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039   *) ac_try_echo=$ac_try;;
20040 esac
20041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20042   (eval "$ac_link") 2>&5
20043   ac_status=$?
20044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20046   { (case "(($ac_try" in
20047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20048   *) ac_try_echo=$ac_try;;
20049 esac
20050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20051   (eval "$ac_try") 2>&5
20052   ac_status=$?
20053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054   (exit $ac_status); }; }; then
20055   ac_cv_va_copy="C99"
20056 else
20057   echo "$as_me: program exited with status $ac_status" >&5
20058 echo "$as_me: failed program was:" >&5
20059 sed 's/^/| /' conftest.$ac_ext >&5
20060
20061 fi
20062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20063 fi
20064
20065
20066             fi
20067
20068
20069
20070
20071     if test ".$ac_cv_va_copy" = .; then
20072         if test "$cross_compiling" = yes; then
20073   ac_cv_va_copy="GCM"
20074 else
20075   cat >conftest.$ac_ext <<_ACEOF
20076 /* confdefs.h.  */
20077 _ACEOF
20078 cat confdefs.h >>conftest.$ac_ext
20079 cat >>conftest.$ac_ext <<_ACEOF
20080 /* end confdefs.h.  */
20081
20082 #include <stdlib.h>
20083 #include <stdarg.h>
20084 #include <string.h>
20085 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
20086 void test(char *str, ...)
20087 {
20088     va_list ap, ap2;
20089     int i;
20090     va_start(ap, str);
20091     DO_VA_COPY(ap2, ap);
20092     for (i = 1; i <= 9; i++) {
20093         int k = (int)va_arg(ap, int);
20094         if (k != i)
20095             abort();
20096     }
20097     DO_VA_COPY(ap, ap2);
20098     for (i = 1; i <= 9; i++) {
20099         int k = (int)va_arg(ap, int);
20100         if (k != i)
20101             abort();
20102     }
20103     va_end(ap);
20104 }
20105 int main(int argc, char *argv[])
20106 {
20107     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20108     exit(0);
20109 }
20110
20111 _ACEOF
20112 rm -f conftest$ac_exeext
20113 if { (ac_try="$ac_link"
20114 case "(($ac_try" in
20115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20116   *) ac_try_echo=$ac_try;;
20117 esac
20118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20119   (eval "$ac_link") 2>&5
20120   ac_status=$?
20121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20123   { (case "(($ac_try" in
20124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20125   *) ac_try_echo=$ac_try;;
20126 esac
20127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20128   (eval "$ac_try") 2>&5
20129   ac_status=$?
20130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131   (exit $ac_status); }; }; then
20132   ac_cv_va_copy="GCM"
20133 else
20134   echo "$as_me: program exited with status $ac_status" >&5
20135 echo "$as_me: failed program was:" >&5
20136 sed 's/^/| /' conftest.$ac_ext >&5
20137
20138 fi
20139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20140 fi
20141
20142
20143             fi
20144
20145
20146
20147
20148     if test ".$ac_cv_va_copy" = .; then
20149         if test "$cross_compiling" = yes; then
20150   ac_cv_va_copy="GCH"
20151 else
20152   cat >conftest.$ac_ext <<_ACEOF
20153 /* confdefs.h.  */
20154 _ACEOF
20155 cat confdefs.h >>conftest.$ac_ext
20156 cat >>conftest.$ac_ext <<_ACEOF
20157 /* end confdefs.h.  */
20158
20159 #include <stdlib.h>
20160 #include <stdarg.h>
20161 #include <string.h>
20162 #define DO_VA_COPY(d, s) __va_copy((d), (s))
20163 void test(char *str, ...)
20164 {
20165     va_list ap, ap2;
20166     int i;
20167     va_start(ap, str);
20168     DO_VA_COPY(ap2, ap);
20169     for (i = 1; i <= 9; i++) {
20170         int k = (int)va_arg(ap, int);
20171         if (k != i)
20172             abort();
20173     }
20174     DO_VA_COPY(ap, ap2);
20175     for (i = 1; i <= 9; i++) {
20176         int k = (int)va_arg(ap, int);
20177         if (k != i)
20178             abort();
20179     }
20180     va_end(ap);
20181 }
20182 int main(int argc, char *argv[])
20183 {
20184     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20185     exit(0);
20186 }
20187
20188 _ACEOF
20189 rm -f conftest$ac_exeext
20190 if { (ac_try="$ac_link"
20191 case "(($ac_try" in
20192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20193   *) ac_try_echo=$ac_try;;
20194 esac
20195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20196   (eval "$ac_link") 2>&5
20197   ac_status=$?
20198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20200   { (case "(($ac_try" in
20201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20202   *) ac_try_echo=$ac_try;;
20203 esac
20204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20205   (eval "$ac_try") 2>&5
20206   ac_status=$?
20207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208   (exit $ac_status); }; }; then
20209   ac_cv_va_copy="GCH"
20210 else
20211   echo "$as_me: program exited with status $ac_status" >&5
20212 echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20214
20215 fi
20216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20217 fi
20218
20219
20220             fi
20221
20222
20223
20224
20225     if test ".$ac_cv_va_copy" = .; then
20226         if test "$cross_compiling" = yes; then
20227   ac_cv_va_copy="GCB"
20228 else
20229   cat >conftest.$ac_ext <<_ACEOF
20230 /* confdefs.h.  */
20231 _ACEOF
20232 cat confdefs.h >>conftest.$ac_ext
20233 cat >>conftest.$ac_ext <<_ACEOF
20234 /* end confdefs.h.  */
20235
20236 #include <stdlib.h>
20237 #include <stdarg.h>
20238 #include <string.h>
20239 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
20240 void test(char *str, ...)
20241 {
20242     va_list ap, ap2;
20243     int i;
20244     va_start(ap, str);
20245     DO_VA_COPY(ap2, ap);
20246     for (i = 1; i <= 9; i++) {
20247         int k = (int)va_arg(ap, int);
20248         if (k != i)
20249             abort();
20250     }
20251     DO_VA_COPY(ap, ap2);
20252     for (i = 1; i <= 9; i++) {
20253         int k = (int)va_arg(ap, int);
20254         if (k != i)
20255             abort();
20256     }
20257     va_end(ap);
20258 }
20259 int main(int argc, char *argv[])
20260 {
20261     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20262     exit(0);
20263 }
20264
20265 _ACEOF
20266 rm -f conftest$ac_exeext
20267 if { (ac_try="$ac_link"
20268 case "(($ac_try" in
20269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20270   *) ac_try_echo=$ac_try;;
20271 esac
20272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20273   (eval "$ac_link") 2>&5
20274   ac_status=$?
20275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20277   { (case "(($ac_try" in
20278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20279   *) ac_try_echo=$ac_try;;
20280 esac
20281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20282   (eval "$ac_try") 2>&5
20283   ac_status=$?
20284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285   (exit $ac_status); }; }; then
20286   ac_cv_va_copy="GCB"
20287 else
20288   echo "$as_me: program exited with status $ac_status" >&5
20289 echo "$as_me: failed program was:" >&5
20290 sed 's/^/| /' conftest.$ac_ext >&5
20291
20292 fi
20293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20294 fi
20295
20296
20297             fi
20298
20299
20300
20301
20302     if test ".$ac_cv_va_copy" = .; then
20303         if test "$cross_compiling" = yes; then
20304   ac_cv_va_copy="ASS"
20305 else
20306   cat >conftest.$ac_ext <<_ACEOF
20307 /* confdefs.h.  */
20308 _ACEOF
20309 cat confdefs.h >>conftest.$ac_ext
20310 cat >>conftest.$ac_ext <<_ACEOF
20311 /* end confdefs.h.  */
20312
20313 #include <stdlib.h>
20314 #include <stdarg.h>
20315 #include <string.h>
20316 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
20317 void test(char *str, ...)
20318 {
20319     va_list ap, ap2;
20320     int i;
20321     va_start(ap, str);
20322     DO_VA_COPY(ap2, ap);
20323     for (i = 1; i <= 9; i++) {
20324         int k = (int)va_arg(ap, int);
20325         if (k != i)
20326             abort();
20327     }
20328     DO_VA_COPY(ap, ap2);
20329     for (i = 1; i <= 9; i++) {
20330         int k = (int)va_arg(ap, int);
20331         if (k != i)
20332             abort();
20333     }
20334     va_end(ap);
20335 }
20336 int main(int argc, char *argv[])
20337 {
20338     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20339     exit(0);
20340 }
20341
20342 _ACEOF
20343 rm -f conftest$ac_exeext
20344 if { (ac_try="$ac_link"
20345 case "(($ac_try" in
20346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20347   *) ac_try_echo=$ac_try;;
20348 esac
20349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20350   (eval "$ac_link") 2>&5
20351   ac_status=$?
20352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20354   { (case "(($ac_try" in
20355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20356   *) ac_try_echo=$ac_try;;
20357 esac
20358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20359   (eval "$ac_try") 2>&5
20360   ac_status=$?
20361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362   (exit $ac_status); }; }; then
20363   ac_cv_va_copy="ASS"
20364 else
20365   echo "$as_me: program exited with status $ac_status" >&5
20366 echo "$as_me: failed program was:" >&5
20367 sed 's/^/| /' conftest.$ac_ext >&5
20368
20369 fi
20370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20371 fi
20372
20373
20374             fi
20375
20376
20377
20378
20379     if test ".$ac_cv_va_copy" = .; then
20380         if test "$cross_compiling" = yes; then
20381   ac_cv_va_copy="ASP"
20382 else
20383   cat >conftest.$ac_ext <<_ACEOF
20384 /* confdefs.h.  */
20385 _ACEOF
20386 cat confdefs.h >>conftest.$ac_ext
20387 cat >>conftest.$ac_ext <<_ACEOF
20388 /* end confdefs.h.  */
20389
20390 #include <stdlib.h>
20391 #include <stdarg.h>
20392 #include <string.h>
20393 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
20394 void test(char *str, ...)
20395 {
20396     va_list ap, ap2;
20397     int i;
20398     va_start(ap, str);
20399     DO_VA_COPY(ap2, ap);
20400     for (i = 1; i <= 9; i++) {
20401         int k = (int)va_arg(ap, int);
20402         if (k != i)
20403             abort();
20404     }
20405     DO_VA_COPY(ap, ap2);
20406     for (i = 1; i <= 9; i++) {
20407         int k = (int)va_arg(ap, int);
20408         if (k != i)
20409             abort();
20410     }
20411     va_end(ap);
20412 }
20413 int main(int argc, char *argv[])
20414 {
20415     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20416     exit(0);
20417 }
20418
20419 _ACEOF
20420 rm -f conftest$ac_exeext
20421 if { (ac_try="$ac_link"
20422 case "(($ac_try" in
20423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20424   *) ac_try_echo=$ac_try;;
20425 esac
20426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20427   (eval "$ac_link") 2>&5
20428   ac_status=$?
20429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20431   { (case "(($ac_try" in
20432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20433   *) ac_try_echo=$ac_try;;
20434 esac
20435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20436   (eval "$ac_try") 2>&5
20437   ac_status=$?
20438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439   (exit $ac_status); }; }; then
20440   ac_cv_va_copy="ASP"
20441 else
20442   echo "$as_me: program exited with status $ac_status" >&5
20443 echo "$as_me: failed program was:" >&5
20444 sed 's/^/| /' conftest.$ac_ext >&5
20445
20446 fi
20447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20448 fi
20449
20450
20451             fi
20452
20453
20454
20455
20456     if test ".$ac_cv_va_copy" = .; then
20457         if test "$cross_compiling" = yes; then
20458   ac_cv_va_copy="CPS"
20459 else
20460   cat >conftest.$ac_ext <<_ACEOF
20461 /* confdefs.h.  */
20462 _ACEOF
20463 cat confdefs.h >>conftest.$ac_ext
20464 cat >>conftest.$ac_ext <<_ACEOF
20465 /* end confdefs.h.  */
20466
20467 #include <stdlib.h>
20468 #include <stdarg.h>
20469 #include <string.h>
20470 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
20471 void test(char *str, ...)
20472 {
20473     va_list ap, ap2;
20474     int i;
20475     va_start(ap, str);
20476     DO_VA_COPY(ap2, ap);
20477     for (i = 1; i <= 9; i++) {
20478         int k = (int)va_arg(ap, int);
20479         if (k != i)
20480             abort();
20481     }
20482     DO_VA_COPY(ap, ap2);
20483     for (i = 1; i <= 9; i++) {
20484         int k = (int)va_arg(ap, int);
20485         if (k != i)
20486             abort();
20487     }
20488     va_end(ap);
20489 }
20490 int main(int argc, char *argv[])
20491 {
20492     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20493     exit(0);
20494 }
20495
20496 _ACEOF
20497 rm -f conftest$ac_exeext
20498 if { (ac_try="$ac_link"
20499 case "(($ac_try" in
20500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20501   *) ac_try_echo=$ac_try;;
20502 esac
20503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20504   (eval "$ac_link") 2>&5
20505   ac_status=$?
20506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20508   { (case "(($ac_try" in
20509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20510   *) ac_try_echo=$ac_try;;
20511 esac
20512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20513   (eval "$ac_try") 2>&5
20514   ac_status=$?
20515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516   (exit $ac_status); }; }; then
20517   ac_cv_va_copy="CPS"
20518 else
20519   echo "$as_me: program exited with status $ac_status" >&5
20520 echo "$as_me: failed program was:" >&5
20521 sed 's/^/| /' conftest.$ac_ext >&5
20522
20523 fi
20524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20525 fi
20526
20527
20528             fi
20529
20530
20531
20532
20533     if test ".$ac_cv_va_copy" = .; then
20534         if test "$cross_compiling" = yes; then
20535   ac_cv_va_copy="CPP"
20536 else
20537   cat >conftest.$ac_ext <<_ACEOF
20538 /* confdefs.h.  */
20539 _ACEOF
20540 cat confdefs.h >>conftest.$ac_ext
20541 cat >>conftest.$ac_ext <<_ACEOF
20542 /* end confdefs.h.  */
20543
20544 #include <stdlib.h>
20545 #include <stdarg.h>
20546 #include <string.h>
20547 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
20548 void test(char *str, ...)
20549 {
20550     va_list ap, ap2;
20551     int i;
20552     va_start(ap, str);
20553     DO_VA_COPY(ap2, ap);
20554     for (i = 1; i <= 9; i++) {
20555         int k = (int)va_arg(ap, int);
20556         if (k != i)
20557             abort();
20558     }
20559     DO_VA_COPY(ap, ap2);
20560     for (i = 1; i <= 9; i++) {
20561         int k = (int)va_arg(ap, int);
20562         if (k != i)
20563             abort();
20564     }
20565     va_end(ap);
20566 }
20567 int main(int argc, char *argv[])
20568 {
20569     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20570     exit(0);
20571 }
20572
20573 _ACEOF
20574 rm -f conftest$ac_exeext
20575 if { (ac_try="$ac_link"
20576 case "(($ac_try" in
20577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20578   *) ac_try_echo=$ac_try;;
20579 esac
20580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20581   (eval "$ac_link") 2>&5
20582   ac_status=$?
20583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20585   { (case "(($ac_try" in
20586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20587   *) ac_try_echo=$ac_try;;
20588 esac
20589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20590   (eval "$ac_try") 2>&5
20591   ac_status=$?
20592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593   (exit $ac_status); }; }; then
20594   ac_cv_va_copy="CPP"
20595 else
20596   echo "$as_me: program exited with status $ac_status" >&5
20597 echo "$as_me: failed program was:" >&5
20598 sed 's/^/| /' conftest.$ac_ext >&5
20599
20600 fi
20601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20602 fi
20603
20604
20605             fi
20606
20607     if test ".$ac_cv_va_copy" = .; then
20608         { { echo "$as_me:$LINENO: error: no working implementation found" >&5
20609 echo "$as_me: error: no working implementation found" >&2;}
20610    { (exit 1); exit 1; }; }
20611     fi
20612
20613 fi
20614
20615     if test ".$ac_cv_va_copy" = ".C99"; then
20616
20617 cat >>confdefs.h <<\_ACEOF
20618 #define HAVE_VA_COPY 1
20619 _ACEOF
20620
20621   fi
20622
20623 cat >>confdefs.h <<_ACEOF
20624 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
20625 _ACEOF
20626
20627
20628
20629     if test ".$ac_cv_va_copy" = ".C99"; then
20630       { echo "$as_me:$LINENO: result: yes" >&5
20631 echo "${ECHO_T}yes" >&6; }
20632   else
20633       { echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
20634 echo "${ECHO_T}no (using fallback implementation)" >&6; }
20635   fi
20636
20637
20638 # Checks for header files.
20639 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20640 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20641 if test "${ac_cv_header_stdc+set}" = set; then
20642   echo $ECHO_N "(cached) $ECHO_C" >&6
20643 else
20644   cat >conftest.$ac_ext <<_ACEOF
20645 /* confdefs.h.  */
20646 _ACEOF
20647 cat confdefs.h >>conftest.$ac_ext
20648 cat >>conftest.$ac_ext <<_ACEOF
20649 /* end confdefs.h.  */
20650 #include <stdlib.h>
20651 #include <stdarg.h>
20652 #include <string.h>
20653 #include <float.h>
20654
20655 int
20656 main ()
20657 {
20658
20659   ;
20660   return 0;
20661 }
20662 _ACEOF
20663 rm -f conftest.$ac_objext
20664 if { (ac_try="$ac_compile"
20665 case "(($ac_try" in
20666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20667   *) ac_try_echo=$ac_try;;
20668 esac
20669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20670   (eval "$ac_compile") 2>conftest.er1
20671   ac_status=$?
20672   grep -v '^ *+' conftest.er1 >conftest.err
20673   rm -f conftest.er1
20674   cat conftest.err >&5
20675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676   (exit $ac_status); } && {
20677          test -z "$ac_c_werror_flag" ||
20678          test ! -s conftest.err
20679        } && test -s conftest.$ac_objext; then
20680   ac_cv_header_stdc=yes
20681 else
20682   echo "$as_me: failed program was:" >&5
20683 sed 's/^/| /' conftest.$ac_ext >&5
20684
20685         ac_cv_header_stdc=no
20686 fi
20687
20688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20689
20690 if test $ac_cv_header_stdc = yes; then
20691   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20692   cat >conftest.$ac_ext <<_ACEOF
20693 /* confdefs.h.  */
20694 _ACEOF
20695 cat confdefs.h >>conftest.$ac_ext
20696 cat >>conftest.$ac_ext <<_ACEOF
20697 /* end confdefs.h.  */
20698 #include <string.h>
20699
20700 _ACEOF
20701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20702   $EGREP "memchr" >/dev/null 2>&1; then
20703   :
20704 else
20705   ac_cv_header_stdc=no
20706 fi
20707 rm -f conftest*
20708
20709 fi
20710
20711 if test $ac_cv_header_stdc = yes; then
20712   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20713   cat >conftest.$ac_ext <<_ACEOF
20714 /* confdefs.h.  */
20715 _ACEOF
20716 cat confdefs.h >>conftest.$ac_ext
20717 cat >>conftest.$ac_ext <<_ACEOF
20718 /* end confdefs.h.  */
20719 #include <stdlib.h>
20720
20721 _ACEOF
20722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20723   $EGREP "free" >/dev/null 2>&1; then
20724   :
20725 else
20726   ac_cv_header_stdc=no
20727 fi
20728 rm -f conftest*
20729
20730 fi
20731
20732 if test $ac_cv_header_stdc = yes; then
20733   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20734   if test "$cross_compiling" = yes; then
20735   :
20736 else
20737   cat >conftest.$ac_ext <<_ACEOF
20738 /* confdefs.h.  */
20739 _ACEOF
20740 cat confdefs.h >>conftest.$ac_ext
20741 cat >>conftest.$ac_ext <<_ACEOF
20742 /* end confdefs.h.  */
20743 #include <ctype.h>
20744 #include <stdlib.h>
20745 #if ((' ' & 0x0FF) == 0x020)
20746 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20747 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20748 #else
20749 # define ISLOWER(c) \
20750                    (('a' <= (c) && (c) <= 'i') \
20751                      || ('j' <= (c) && (c) <= 'r') \
20752                      || ('s' <= (c) && (c) <= 'z'))
20753 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20754 #endif
20755
20756 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20757 int
20758 main ()
20759 {
20760   int i;
20761   for (i = 0; i < 256; i++)
20762     if (XOR (islower (i), ISLOWER (i))
20763         || toupper (i) != TOUPPER (i))
20764       return 2;
20765   return 0;
20766 }
20767 _ACEOF
20768 rm -f conftest$ac_exeext
20769 if { (ac_try="$ac_link"
20770 case "(($ac_try" in
20771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20772   *) ac_try_echo=$ac_try;;
20773 esac
20774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20775   (eval "$ac_link") 2>&5
20776   ac_status=$?
20777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20779   { (case "(($ac_try" in
20780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20781   *) ac_try_echo=$ac_try;;
20782 esac
20783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20784   (eval "$ac_try") 2>&5
20785   ac_status=$?
20786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787   (exit $ac_status); }; }; then
20788   :
20789 else
20790   echo "$as_me: program exited with status $ac_status" >&5
20791 echo "$as_me: failed program was:" >&5
20792 sed 's/^/| /' conftest.$ac_ext >&5
20793
20794 ( exit $ac_status )
20795 ac_cv_header_stdc=no
20796 fi
20797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20798 fi
20799
20800
20801 fi
20802 fi
20803 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20804 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20805 if test $ac_cv_header_stdc = yes; then
20806
20807 cat >>confdefs.h <<\_ACEOF
20808 #define STDC_HEADERS 1
20809 _ACEOF
20810
20811 fi
20812
20813 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20814 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20815 if test "${ac_cv_header_time+set}" = set; then
20816   echo $ECHO_N "(cached) $ECHO_C" >&6
20817 else
20818   cat >conftest.$ac_ext <<_ACEOF
20819 /* confdefs.h.  */
20820 _ACEOF
20821 cat confdefs.h >>conftest.$ac_ext
20822 cat >>conftest.$ac_ext <<_ACEOF
20823 /* end confdefs.h.  */
20824 #include <sys/types.h>
20825 #include <sys/time.h>
20826 #include <time.h>
20827
20828 int
20829 main ()
20830 {
20831 if ((struct tm *) 0)
20832 return 0;
20833   ;
20834   return 0;
20835 }
20836 _ACEOF
20837 rm -f conftest.$ac_objext
20838 if { (ac_try="$ac_compile"
20839 case "(($ac_try" in
20840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20841   *) ac_try_echo=$ac_try;;
20842 esac
20843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20844   (eval "$ac_compile") 2>conftest.er1
20845   ac_status=$?
20846   grep -v '^ *+' conftest.er1 >conftest.err
20847   rm -f conftest.er1
20848   cat conftest.err >&5
20849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850   (exit $ac_status); } && {
20851          test -z "$ac_c_werror_flag" ||
20852          test ! -s conftest.err
20853        } && test -s conftest.$ac_objext; then
20854   ac_cv_header_time=yes
20855 else
20856   echo "$as_me: failed program was:" >&5
20857 sed 's/^/| /' conftest.$ac_ext >&5
20858
20859         ac_cv_header_time=no
20860 fi
20861
20862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20863 fi
20864 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20865 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20866 if test $ac_cv_header_time = yes; then
20867
20868 cat >>confdefs.h <<\_ACEOF
20869 #define TIME_WITH_SYS_TIME 1
20870 _ACEOF
20871
20872 fi
20873
20874
20875
20876
20877
20878
20879
20880
20881
20882
20883
20884 for ac_header in sys/socket.h \
20885                   sys/stat.h \
20886                   windows.h winsock.h winsock2.h \
20887                   sys/time.h \
20888                   errno.h unistd.h \
20889                   execinfo.h\
20890                   signal.h
20891 do
20892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20894   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20897   echo $ECHO_N "(cached) $ECHO_C" >&6
20898 fi
20899 ac_res=`eval echo '${'$as_ac_Header'}'`
20900                { echo "$as_me:$LINENO: result: $ac_res" >&5
20901 echo "${ECHO_T}$ac_res" >&6; }
20902 else
20903   # Is the header compilable?
20904 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20905 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20906 cat >conftest.$ac_ext <<_ACEOF
20907 /* confdefs.h.  */
20908 _ACEOF
20909 cat confdefs.h >>conftest.$ac_ext
20910 cat >>conftest.$ac_ext <<_ACEOF
20911 /* end confdefs.h.  */
20912 $ac_includes_default
20913 #include <$ac_header>
20914 _ACEOF
20915 rm -f conftest.$ac_objext
20916 if { (ac_try="$ac_compile"
20917 case "(($ac_try" in
20918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20919   *) ac_try_echo=$ac_try;;
20920 esac
20921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20922   (eval "$ac_compile") 2>conftest.er1
20923   ac_status=$?
20924   grep -v '^ *+' conftest.er1 >conftest.err
20925   rm -f conftest.er1
20926   cat conftest.err >&5
20927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928   (exit $ac_status); } && {
20929          test -z "$ac_c_werror_flag" ||
20930          test ! -s conftest.err
20931        } && test -s conftest.$ac_objext; then
20932   ac_header_compiler=yes
20933 else
20934   echo "$as_me: failed program was:" >&5
20935 sed 's/^/| /' conftest.$ac_ext >&5
20936
20937         ac_header_compiler=no
20938 fi
20939
20940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20942 echo "${ECHO_T}$ac_header_compiler" >&6; }
20943
20944 # Is the header present?
20945 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20947 cat >conftest.$ac_ext <<_ACEOF
20948 /* confdefs.h.  */
20949 _ACEOF
20950 cat confdefs.h >>conftest.$ac_ext
20951 cat >>conftest.$ac_ext <<_ACEOF
20952 /* end confdefs.h.  */
20953 #include <$ac_header>
20954 _ACEOF
20955 if { (ac_try="$ac_cpp conftest.$ac_ext"
20956 case "(($ac_try" in
20957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20958   *) ac_try_echo=$ac_try;;
20959 esac
20960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20961   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20962   ac_status=$?
20963   grep -v '^ *+' conftest.er1 >conftest.err
20964   rm -f conftest.er1
20965   cat conftest.err >&5
20966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967   (exit $ac_status); } >/dev/null && {
20968          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20969          test ! -s conftest.err
20970        }; then
20971   ac_header_preproc=yes
20972 else
20973   echo "$as_me: failed program was:" >&5
20974 sed 's/^/| /' conftest.$ac_ext >&5
20975
20976   ac_header_preproc=no
20977 fi
20978
20979 rm -f conftest.err conftest.$ac_ext
20980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20981 echo "${ECHO_T}$ac_header_preproc" >&6; }
20982
20983 # So?  What about this header?
20984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20985   yes:no: )
20986     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20988     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20990     ac_header_preproc=yes
20991     ;;
20992   no:yes:* )
20993     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20995     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20996 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20997     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20999     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21000 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21001     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21003     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21005     ( cat <<\_ASBOX
21006 ## -------------------------------------------------- ##
21007 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
21008 ## -------------------------------------------------- ##
21009 _ASBOX
21010      ) | sed "s/^/$as_me: WARNING:     /" >&2
21011     ;;
21012 esac
21013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21016   echo $ECHO_N "(cached) $ECHO_C" >&6
21017 else
21018   eval "$as_ac_Header=\$ac_header_preproc"
21019 fi
21020 ac_res=`eval echo '${'$as_ac_Header'}'`
21021                { echo "$as_me:$LINENO: result: $ac_res" >&5
21022 echo "${ECHO_T}$ac_res" >&6; }
21023
21024 fi
21025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21026   cat >>confdefs.h <<_ACEOF
21027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21028 _ACEOF
21029
21030 fi
21031
21032 done
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042 for ac_func in gettimeofday usleep \
21043                 getdtablesize \
21044                 sysconf\
21045                 readv\
21046                 popen\
21047                 signal\
21048                 getline
21049 do
21050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21051 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21053 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21054   echo $ECHO_N "(cached) $ECHO_C" >&6
21055 else
21056   cat >conftest.$ac_ext <<_ACEOF
21057 /* confdefs.h.  */
21058 _ACEOF
21059 cat confdefs.h >>conftest.$ac_ext
21060 cat >>conftest.$ac_ext <<_ACEOF
21061 /* end confdefs.h.  */
21062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21063    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21064 #define $ac_func innocuous_$ac_func
21065
21066 /* System header to define __stub macros and hopefully few prototypes,
21067     which can conflict with char $ac_func (); below.
21068     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21069     <limits.h> exists even on freestanding compilers.  */
21070
21071 #ifdef __STDC__
21072 # include <limits.h>
21073 #else
21074 # include <assert.h>
21075 #endif
21076
21077 #undef $ac_func
21078
21079 /* Override any GCC internal prototype to avoid an error.
21080    Use char because int might match the return type of a GCC
21081    builtin and then its argument prototype would still apply.  */
21082 #ifdef __cplusplus
21083 extern "C"
21084 #endif
21085 char $ac_func ();
21086 /* The GNU C library defines this for functions which it implements
21087     to always fail with ENOSYS.  Some functions are actually named
21088     something starting with __ and the normal name is an alias.  */
21089 #if defined __stub_$ac_func || defined __stub___$ac_func
21090 choke me
21091 #endif
21092
21093 int
21094 main ()
21095 {
21096 return $ac_func ();
21097   ;
21098   return 0;
21099 }
21100 _ACEOF
21101 rm -f conftest.$ac_objext conftest$ac_exeext
21102 if { (ac_try="$ac_link"
21103 case "(($ac_try" in
21104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21105   *) ac_try_echo=$ac_try;;
21106 esac
21107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21108   (eval "$ac_link") 2>conftest.er1
21109   ac_status=$?
21110   grep -v '^ *+' conftest.er1 >conftest.err
21111   rm -f conftest.er1
21112   cat conftest.err >&5
21113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114   (exit $ac_status); } && {
21115          test -z "$ac_c_werror_flag" ||
21116          test ! -s conftest.err
21117        } && test -s conftest$ac_exeext &&
21118        $as_test_x conftest$ac_exeext; then
21119   eval "$as_ac_var=yes"
21120 else
21121   echo "$as_me: failed program was:" >&5
21122 sed 's/^/| /' conftest.$ac_ext >&5
21123
21124         eval "$as_ac_var=no"
21125 fi
21126
21127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21128       conftest$ac_exeext conftest.$ac_ext
21129 fi
21130 ac_res=`eval echo '${'$as_ac_var'}'`
21131                { echo "$as_me:$LINENO: result: $ac_res" >&5
21132 echo "${ECHO_T}$ac_res" >&6; }
21133 if test `eval echo '${'$as_ac_var'}'` = yes; then
21134   cat >>confdefs.h <<_ACEOF
21135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21136 _ACEOF
21137
21138 fi
21139 done
21140
21141
21142 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
21143
21144
21145 for ac_func in snprintf vsnprintf
21146 do
21147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21148 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21150 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21151   echo $ECHO_N "(cached) $ECHO_C" >&6
21152 else
21153   cat >conftest.$ac_ext <<_ACEOF
21154 /* confdefs.h.  */
21155 _ACEOF
21156 cat confdefs.h >>conftest.$ac_ext
21157 cat >>conftest.$ac_ext <<_ACEOF
21158 /* end confdefs.h.  */
21159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21160    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21161 #define $ac_func innocuous_$ac_func
21162
21163 /* System header to define __stub macros and hopefully few prototypes,
21164     which can conflict with char $ac_func (); below.
21165     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21166     <limits.h> exists even on freestanding compilers.  */
21167
21168 #ifdef __STDC__
21169 # include <limits.h>
21170 #else
21171 # include <assert.h>
21172 #endif
21173
21174 #undef $ac_func
21175
21176 /* Override any GCC internal prototype to avoid an error.
21177    Use char because int might match the return type of a GCC
21178    builtin and then its argument prototype would still apply.  */
21179 #ifdef __cplusplus
21180 extern "C"
21181 #endif
21182 char $ac_func ();
21183 /* The GNU C library defines this for functions which it implements
21184     to always fail with ENOSYS.  Some functions are actually named
21185     something starting with __ and the normal name is an alias.  */
21186 #if defined __stub_$ac_func || defined __stub___$ac_func
21187 choke me
21188 #endif
21189
21190 int
21191 main ()
21192 {
21193 return $ac_func ();
21194   ;
21195   return 0;
21196 }
21197 _ACEOF
21198 rm -f conftest.$ac_objext conftest$ac_exeext
21199 if { (ac_try="$ac_link"
21200 case "(($ac_try" in
21201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21202   *) ac_try_echo=$ac_try;;
21203 esac
21204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21205   (eval "$ac_link") 2>conftest.er1
21206   ac_status=$?
21207   grep -v '^ *+' conftest.er1 >conftest.err
21208   rm -f conftest.er1
21209   cat conftest.err >&5
21210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211   (exit $ac_status); } && {
21212          test -z "$ac_c_werror_flag" ||
21213          test ! -s conftest.err
21214        } && test -s conftest$ac_exeext &&
21215        $as_test_x conftest$ac_exeext; then
21216   eval "$as_ac_var=yes"
21217 else
21218   echo "$as_me: failed program was:" >&5
21219 sed 's/^/| /' conftest.$ac_ext >&5
21220
21221         eval "$as_ac_var=no"
21222 fi
21223
21224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21225       conftest$ac_exeext conftest.$ac_ext
21226 fi
21227 ac_res=`eval echo '${'$as_ac_var'}'`
21228                { echo "$as_me:$LINENO: result: $ac_res" >&5
21229 echo "${ECHO_T}$ac_res" >&6; }
21230 if test `eval echo '${'$as_ac_var'}'` = yes; then
21231   cat >>confdefs.h <<_ACEOF
21232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21233 _ACEOF
21234
21235 fi
21236 done
21237
21238 { echo "$as_me:$LINENO: checking for working snprintf" >&5
21239 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
21240 if test "${ac_cv_have_working_snprintf+set}" = set; then
21241   echo $ECHO_N "(cached) $ECHO_C" >&6
21242 else
21243   if test "$cross_compiling" = yes; then
21244   ac_cv_have_working_snprintf=cross
21245 else
21246   cat >conftest.$ac_ext <<_ACEOF
21247 /* confdefs.h.  */
21248 _ACEOF
21249 cat confdefs.h >>conftest.$ac_ext
21250 cat >>conftest.$ac_ext <<_ACEOF
21251 /* end confdefs.h.  */
21252 #include <stdio.h>
21253
21254 int main(void)
21255 {
21256     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21257     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21258     int i;
21259     i = snprintf (bufs, 2, "%s", "111");
21260     if (strcmp (bufs, "1")) exit (1);
21261     if (i != 3) exit (1);
21262     i = snprintf (bufd, 2, "%d", 111);
21263     if (strcmp (bufd, "1")) exit (1);
21264     if (i != 3) exit (1);
21265     exit(0);
21266 }
21267 _ACEOF
21268 rm -f conftest$ac_exeext
21269 if { (ac_try="$ac_link"
21270 case "(($ac_try" in
21271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21272   *) ac_try_echo=$ac_try;;
21273 esac
21274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21275   (eval "$ac_link") 2>&5
21276   ac_status=$?
21277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21279   { (case "(($ac_try" in
21280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21281   *) ac_try_echo=$ac_try;;
21282 esac
21283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21284   (eval "$ac_try") 2>&5
21285   ac_status=$?
21286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287   (exit $ac_status); }; }; then
21288   ac_cv_have_working_snprintf=yes
21289 else
21290   echo "$as_me: program exited with status $ac_status" >&5
21291 echo "$as_me: failed program was:" >&5
21292 sed 's/^/| /' conftest.$ac_ext >&5
21293
21294 ( exit $ac_status )
21295 ac_cv_have_working_snprintf=no
21296 fi
21297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21298 fi
21299
21300
21301 fi
21302
21303 { echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
21304 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6; }
21305 { echo "$as_me:$LINENO: checking for working vsnprintf" >&5
21306 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
21307 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
21308   echo $ECHO_N "(cached) $ECHO_C" >&6
21309 else
21310   if test "$cross_compiling" = yes; then
21311   ac_cv_have_working_vsnprintf=cross
21312 else
21313   cat >conftest.$ac_ext <<_ACEOF
21314 /* confdefs.h.  */
21315 _ACEOF
21316 cat confdefs.h >>conftest.$ac_ext
21317 cat >>conftest.$ac_ext <<_ACEOF
21318 /* end confdefs.h.  */
21319 #include <stdio.h>
21320 #include <stdarg.h>
21321
21322 int my_vsnprintf (char *buf, const char *tmpl, ...)
21323 {
21324     int i;
21325     va_list args;
21326     va_start (args, tmpl);
21327     i = vsnprintf (buf, 2, tmpl, args);
21328     va_end (args);
21329     return i;
21330 }
21331
21332 int main(void)
21333 {
21334     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21335     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21336     int i;
21337     i = my_vsnprintf (bufs, "%s", "111");
21338     if (strcmp (bufs, "1")) exit (1);
21339     if (i != 3) exit (1);
21340     i = my_vsnprintf (bufd, "%d", 111);
21341     if (strcmp (bufd, "1")) exit (1);
21342     if (i != 3) exit (1);
21343     exit(0);
21344 }
21345 _ACEOF
21346 rm -f conftest$ac_exeext
21347 if { (ac_try="$ac_link"
21348 case "(($ac_try" in
21349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21350   *) ac_try_echo=$ac_try;;
21351 esac
21352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21353   (eval "$ac_link") 2>&5
21354   ac_status=$?
21355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21357   { (case "(($ac_try" in
21358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21359   *) ac_try_echo=$ac_try;;
21360 esac
21361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21362   (eval "$ac_try") 2>&5
21363   ac_status=$?
21364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365   (exit $ac_status); }; }; then
21366   ac_cv_have_working_vsnprintf=yes
21367 else
21368   echo "$as_me: program exited with status $ac_status" >&5
21369 echo "$as_me: failed program was:" >&5
21370 sed 's/^/| /' conftest.$ac_ext >&5
21371
21372 ( exit $ac_status )
21373 ac_cv_have_working_vsnprintf=no
21374 fi
21375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21376 fi
21377
21378
21379 fi
21380
21381 { echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
21382 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6; }
21383 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
21384   case " $LIBOBJS " in
21385   *" snprintf.$ac_objext "* ) ;;
21386   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
21387  ;;
21388 esac
21389
21390   { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
21391 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
21392
21393 cat >>confdefs.h <<\_ACEOF
21394 #define PREFER_PORTABLE_SNPRINTF 1
21395 _ACEOF
21396
21397 fi
21398 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
21399 { echo "$as_me:$LINENO: checking for asprintf" >&5
21400 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6; }
21401 if test "${ac_cv_func_asprintf+set}" = set; then
21402   echo $ECHO_N "(cached) $ECHO_C" >&6
21403 else
21404   cat >conftest.$ac_ext <<_ACEOF
21405 /* confdefs.h.  */
21406 _ACEOF
21407 cat confdefs.h >>conftest.$ac_ext
21408 cat >>conftest.$ac_ext <<_ACEOF
21409 /* end confdefs.h.  */
21410 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
21411    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21412 #define asprintf innocuous_asprintf
21413
21414 /* System header to define __stub macros and hopefully few prototypes,
21415     which can conflict with char asprintf (); below.
21416     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21417     <limits.h> exists even on freestanding compilers.  */
21418
21419 #ifdef __STDC__
21420 # include <limits.h>
21421 #else
21422 # include <assert.h>
21423 #endif
21424
21425 #undef asprintf
21426
21427 /* Override any GCC internal prototype to avoid an error.
21428    Use char because int might match the return type of a GCC
21429    builtin and then its argument prototype would still apply.  */
21430 #ifdef __cplusplus
21431 extern "C"
21432 #endif
21433 char asprintf ();
21434 /* The GNU C library defines this for functions which it implements
21435     to always fail with ENOSYS.  Some functions are actually named
21436     something starting with __ and the normal name is an alias.  */
21437 #if defined __stub_asprintf || defined __stub___asprintf
21438 choke me
21439 #endif
21440
21441 int
21442 main ()
21443 {
21444 return asprintf ();
21445   ;
21446   return 0;
21447 }
21448 _ACEOF
21449 rm -f conftest.$ac_objext conftest$ac_exeext
21450 if { (ac_try="$ac_link"
21451 case "(($ac_try" in
21452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21453   *) ac_try_echo=$ac_try;;
21454 esac
21455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21456   (eval "$ac_link") 2>conftest.er1
21457   ac_status=$?
21458   grep -v '^ *+' conftest.er1 >conftest.err
21459   rm -f conftest.er1
21460   cat conftest.err >&5
21461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462   (exit $ac_status); } && {
21463          test -z "$ac_c_werror_flag" ||
21464          test ! -s conftest.err
21465        } && test -s conftest$ac_exeext &&
21466        $as_test_x conftest$ac_exeext; then
21467   ac_cv_func_asprintf=yes
21468 else
21469   echo "$as_me: failed program was:" >&5
21470 sed 's/^/| /' conftest.$ac_ext >&5
21471
21472         ac_cv_func_asprintf=no
21473 fi
21474
21475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21476       conftest$ac_exeext conftest.$ac_ext
21477 fi
21478 { echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
21479 echo "${ECHO_T}$ac_cv_func_asprintf" >&6; }
21480 if test $ac_cv_func_asprintf = yes; then
21481   :
21482 else
21483
21484 cat >>confdefs.h <<\_ACEOF
21485 #define NEED_ASPRINTF 1
21486 _ACEOF
21487
21488 fi
21489
21490 { echo "$as_me:$LINENO: checking for vasprintf" >&5
21491 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6; }
21492 if test "${ac_cv_func_vasprintf+set}" = set; then
21493   echo $ECHO_N "(cached) $ECHO_C" >&6
21494 else
21495   cat >conftest.$ac_ext <<_ACEOF
21496 /* confdefs.h.  */
21497 _ACEOF
21498 cat confdefs.h >>conftest.$ac_ext
21499 cat >>conftest.$ac_ext <<_ACEOF
21500 /* end confdefs.h.  */
21501 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
21502    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21503 #define vasprintf innocuous_vasprintf
21504
21505 /* System header to define __stub macros and hopefully few prototypes,
21506     which can conflict with char vasprintf (); below.
21507     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21508     <limits.h> exists even on freestanding compilers.  */
21509
21510 #ifdef __STDC__
21511 # include <limits.h>
21512 #else
21513 # include <assert.h>
21514 #endif
21515
21516 #undef vasprintf
21517
21518 /* Override any GCC internal prototype to avoid an error.
21519    Use char because int might match the return type of a GCC
21520    builtin and then its argument prototype would still apply.  */
21521 #ifdef __cplusplus
21522 extern "C"
21523 #endif
21524 char vasprintf ();
21525 /* The GNU C library defines this for functions which it implements
21526     to always fail with ENOSYS.  Some functions are actually named
21527     something starting with __ and the normal name is an alias.  */
21528 #if defined __stub_vasprintf || defined __stub___vasprintf
21529 choke me
21530 #endif
21531
21532 int
21533 main ()
21534 {
21535 return vasprintf ();
21536   ;
21537   return 0;
21538 }
21539 _ACEOF
21540 rm -f conftest.$ac_objext conftest$ac_exeext
21541 if { (ac_try="$ac_link"
21542 case "(($ac_try" in
21543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21544   *) ac_try_echo=$ac_try;;
21545 esac
21546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21547   (eval "$ac_link") 2>conftest.er1
21548   ac_status=$?
21549   grep -v '^ *+' conftest.er1 >conftest.err
21550   rm -f conftest.er1
21551   cat conftest.err >&5
21552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553   (exit $ac_status); } && {
21554          test -z "$ac_c_werror_flag" ||
21555          test ! -s conftest.err
21556        } && test -s conftest$ac_exeext &&
21557        $as_test_x conftest$ac_exeext; then
21558   ac_cv_func_vasprintf=yes
21559 else
21560   echo "$as_me: failed program was:" >&5
21561 sed 's/^/| /' conftest.$ac_ext >&5
21562
21563         ac_cv_func_vasprintf=no
21564 fi
21565
21566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21567       conftest$ac_exeext conftest.$ac_ext
21568 fi
21569 { echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
21570 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6; }
21571 if test $ac_cv_func_vasprintf = yes; then
21572   :
21573 else
21574
21575 cat >>confdefs.h <<\_ACEOF
21576 #define NEED_VASPRINTF 1
21577 _ACEOF
21578
21579 fi
21580
21581
21582 # Checks for typedefs, structures, and compiler characteristics.
21583 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21584 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21585 if test "${ac_cv_c_const+set}" = set; then
21586   echo $ECHO_N "(cached) $ECHO_C" >&6
21587 else
21588   cat >conftest.$ac_ext <<_ACEOF
21589 /* confdefs.h.  */
21590 _ACEOF
21591 cat confdefs.h >>conftest.$ac_ext
21592 cat >>conftest.$ac_ext <<_ACEOF
21593 /* end confdefs.h.  */
21594
21595 int
21596 main ()
21597 {
21598 /* FIXME: Include the comments suggested by Paul. */
21599 #ifndef __cplusplus
21600   /* Ultrix mips cc rejects this.  */
21601   typedef int charset[2];
21602   const charset cs;
21603   /* SunOS 4.1.1 cc rejects this.  */
21604   char const *const *pcpcc;
21605   char **ppc;
21606   /* NEC SVR4.0.2 mips cc rejects this.  */
21607   struct point {int x, y;};
21608   static struct point const zero = {0,0};
21609   /* AIX XL C 1.02.0.0 rejects this.
21610      It does not let you subtract one const X* pointer from another in
21611      an arm of an if-expression whose if-part is not a constant
21612      expression */
21613   const char *g = "string";
21614   pcpcc = &g + (g ? g-g : 0);
21615   /* HPUX 7.0 cc rejects these. */
21616   ++pcpcc;
21617   ppc = (char**) pcpcc;
21618   pcpcc = (char const *const *) ppc;
21619   { /* SCO 3.2v4 cc rejects this.  */
21620     char *t;
21621     char const *s = 0 ? (char *) 0 : (char const *) 0;
21622
21623     *t++ = 0;
21624     if (s) return 0;
21625   }
21626   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21627     int x[] = {25, 17};
21628     const int *foo = &x[0];
21629     ++foo;
21630   }
21631   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21632     typedef const int *iptr;
21633     iptr p = 0;
21634     ++p;
21635   }
21636   { /* AIX XL C 1.02.0.0 rejects this saying
21637        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21638     struct s { int j; const int *ap[3]; };
21639     struct s *b; b->j = 5;
21640   }
21641   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21642     const int foo = 10;
21643     if (!foo) return 0;
21644   }
21645   return !cs[0] && !zero.x;
21646 #endif
21647
21648   ;
21649   return 0;
21650 }
21651 _ACEOF
21652 rm -f conftest.$ac_objext
21653 if { (ac_try="$ac_compile"
21654 case "(($ac_try" in
21655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21656   *) ac_try_echo=$ac_try;;
21657 esac
21658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21659   (eval "$ac_compile") 2>conftest.er1
21660   ac_status=$?
21661   grep -v '^ *+' conftest.er1 >conftest.err
21662   rm -f conftest.er1
21663   cat conftest.err >&5
21664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665   (exit $ac_status); } && {
21666          test -z "$ac_c_werror_flag" ||
21667          test ! -s conftest.err
21668        } && test -s conftest.$ac_objext; then
21669   ac_cv_c_const=yes
21670 else
21671   echo "$as_me: failed program was:" >&5
21672 sed 's/^/| /' conftest.$ac_ext >&5
21673
21674         ac_cv_c_const=no
21675 fi
21676
21677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21678 fi
21679 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21680 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21681 if test $ac_cv_c_const = no; then
21682
21683 cat >>confdefs.h <<\_ACEOF
21684 #define const
21685 _ACEOF
21686
21687 fi
21688
21689 { echo "$as_me:$LINENO: checking for inline" >&5
21690 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21691 if test "${ac_cv_c_inline+set}" = set; then
21692   echo $ECHO_N "(cached) $ECHO_C" >&6
21693 else
21694   ac_cv_c_inline=no
21695 for ac_kw in inline __inline__ __inline; do
21696   cat >conftest.$ac_ext <<_ACEOF
21697 /* confdefs.h.  */
21698 _ACEOF
21699 cat confdefs.h >>conftest.$ac_ext
21700 cat >>conftest.$ac_ext <<_ACEOF
21701 /* end confdefs.h.  */
21702 #ifndef __cplusplus
21703 typedef int foo_t;
21704 static $ac_kw foo_t static_foo () {return 0; }
21705 $ac_kw foo_t foo () {return 0; }
21706 #endif
21707
21708 _ACEOF
21709 rm -f conftest.$ac_objext
21710 if { (ac_try="$ac_compile"
21711 case "(($ac_try" in
21712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21713   *) ac_try_echo=$ac_try;;
21714 esac
21715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21716   (eval "$ac_compile") 2>conftest.er1
21717   ac_status=$?
21718   grep -v '^ *+' conftest.er1 >conftest.err
21719   rm -f conftest.er1
21720   cat conftest.err >&5
21721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722   (exit $ac_status); } && {
21723          test -z "$ac_c_werror_flag" ||
21724          test ! -s conftest.err
21725        } && test -s conftest.$ac_objext; then
21726   ac_cv_c_inline=$ac_kw
21727 else
21728   echo "$as_me: failed program was:" >&5
21729 sed 's/^/| /' conftest.$ac_ext >&5
21730
21731
21732 fi
21733
21734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21735   test "$ac_cv_c_inline" != no && break
21736 done
21737
21738 fi
21739 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21740 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21741
21742
21743 case $ac_cv_c_inline in
21744   inline | yes) ;;
21745   *)
21746     case $ac_cv_c_inline in
21747       no) ac_val=;;
21748       *) ac_val=$ac_cv_c_inline;;
21749     esac
21750     cat >>confdefs.h <<_ACEOF
21751 #ifndef __cplusplus
21752 #define inline $ac_val
21753 #endif
21754 _ACEOF
21755     ;;
21756 esac
21757
21758 { echo "$as_me:$LINENO: checking for size_t" >&5
21759 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21760 if test "${ac_cv_type_size_t+set}" = set; then
21761   echo $ECHO_N "(cached) $ECHO_C" >&6
21762 else
21763   cat >conftest.$ac_ext <<_ACEOF
21764 /* confdefs.h.  */
21765 _ACEOF
21766 cat confdefs.h >>conftest.$ac_ext
21767 cat >>conftest.$ac_ext <<_ACEOF
21768 /* end confdefs.h.  */
21769 $ac_includes_default
21770 typedef size_t ac__type_new_;
21771 int
21772 main ()
21773 {
21774 if ((ac__type_new_ *) 0)
21775   return 0;
21776 if (sizeof (ac__type_new_))
21777   return 0;
21778   ;
21779   return 0;
21780 }
21781 _ACEOF
21782 rm -f conftest.$ac_objext
21783 if { (ac_try="$ac_compile"
21784 case "(($ac_try" in
21785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21786   *) ac_try_echo=$ac_try;;
21787 esac
21788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21789   (eval "$ac_compile") 2>conftest.er1
21790   ac_status=$?
21791   grep -v '^ *+' conftest.er1 >conftest.err
21792   rm -f conftest.er1
21793   cat conftest.err >&5
21794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795   (exit $ac_status); } && {
21796          test -z "$ac_c_werror_flag" ||
21797          test ! -s conftest.err
21798        } && test -s conftest.$ac_objext; then
21799   ac_cv_type_size_t=yes
21800 else
21801   echo "$as_me: failed program was:" >&5
21802 sed 's/^/| /' conftest.$ac_ext >&5
21803
21804         ac_cv_type_size_t=no
21805 fi
21806
21807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21808 fi
21809 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21810 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21811 if test $ac_cv_type_size_t = yes; then
21812   :
21813 else
21814
21815 cat >>confdefs.h <<_ACEOF
21816 #define size_t unsigned int
21817 _ACEOF
21818
21819 fi
21820
21821
21822 ###################################
21823 ## SimGrid and GRAS specific checks
21824 ##
21825
21826
21827   { echo "$as_me:$LINENO: result: " >&5
21828 echo "${ECHO_T}" >&6; }
21829   { echo "$as_me:$LINENO: result: ${T_MD}Checking GRAS architecture signature...${T_ME}" >&5
21830 echo "${ECHO_T}${T_MD}Checking GRAS architecture signature...${T_ME}" >&6; }
21831
21832 # Check architecture signature begin
21833
21834 # Check for the architecture
21835 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21836 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
21837 if test "${ac_cv_c_bigendian+set}" = set; then
21838   echo $ECHO_N "(cached) $ECHO_C" >&6
21839 else
21840   # See if sys/param.h defines the BYTE_ORDER macro.
21841 cat >conftest.$ac_ext <<_ACEOF
21842 /* confdefs.h.  */
21843 _ACEOF
21844 cat confdefs.h >>conftest.$ac_ext
21845 cat >>conftest.$ac_ext <<_ACEOF
21846 /* end confdefs.h.  */
21847 #include <sys/types.h>
21848 #include <sys/param.h>
21849
21850 int
21851 main ()
21852 {
21853 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
21854         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
21855  bogus endian macros
21856 #endif
21857
21858   ;
21859   return 0;
21860 }
21861 _ACEOF
21862 rm -f conftest.$ac_objext
21863 if { (ac_try="$ac_compile"
21864 case "(($ac_try" in
21865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21866   *) ac_try_echo=$ac_try;;
21867 esac
21868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21869   (eval "$ac_compile") 2>conftest.er1
21870   ac_status=$?
21871   grep -v '^ *+' conftest.er1 >conftest.err
21872   rm -f conftest.er1
21873   cat conftest.err >&5
21874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875   (exit $ac_status); } && {
21876          test -z "$ac_c_werror_flag" ||
21877          test ! -s conftest.err
21878        } && test -s conftest.$ac_objext; then
21879   # It does; now see whether it defined to BIG_ENDIAN or not.
21880 cat >conftest.$ac_ext <<_ACEOF
21881 /* confdefs.h.  */
21882 _ACEOF
21883 cat confdefs.h >>conftest.$ac_ext
21884 cat >>conftest.$ac_ext <<_ACEOF
21885 /* end confdefs.h.  */
21886 #include <sys/types.h>
21887 #include <sys/param.h>
21888
21889 int
21890 main ()
21891 {
21892 #if BYTE_ORDER != BIG_ENDIAN
21893  not big endian
21894 #endif
21895
21896   ;
21897   return 0;
21898 }
21899 _ACEOF
21900 rm -f conftest.$ac_objext
21901 if { (ac_try="$ac_compile"
21902 case "(($ac_try" in
21903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21904   *) ac_try_echo=$ac_try;;
21905 esac
21906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21907   (eval "$ac_compile") 2>conftest.er1
21908   ac_status=$?
21909   grep -v '^ *+' conftest.er1 >conftest.err
21910   rm -f conftest.er1
21911   cat conftest.err >&5
21912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913   (exit $ac_status); } && {
21914          test -z "$ac_c_werror_flag" ||
21915          test ! -s conftest.err
21916        } && test -s conftest.$ac_objext; then
21917   ac_cv_c_bigendian=yes
21918 else
21919   echo "$as_me: failed program was:" >&5
21920 sed 's/^/| /' conftest.$ac_ext >&5
21921
21922         ac_cv_c_bigendian=no
21923 fi
21924
21925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21926 else
21927   echo "$as_me: failed program was:" >&5
21928 sed 's/^/| /' conftest.$ac_ext >&5
21929
21930         # It does not; compile a test program.
21931 if test "$cross_compiling" = yes; then
21932   # try to guess the endianness by grepping values into an object file
21933   ac_cv_c_bigendian=unknown
21934   cat >conftest.$ac_ext <<_ACEOF
21935 /* confdefs.h.  */
21936 _ACEOF
21937 cat confdefs.h >>conftest.$ac_ext
21938 cat >>conftest.$ac_ext <<_ACEOF
21939 /* end confdefs.h.  */
21940 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21941 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21942 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21943 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21944 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21945 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21946 int
21947 main ()
21948 {
21949  _ascii (); _ebcdic ();
21950   ;
21951   return 0;
21952 }
21953 _ACEOF
21954 rm -f conftest.$ac_objext
21955 if { (ac_try="$ac_compile"
21956 case "(($ac_try" in
21957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21958   *) ac_try_echo=$ac_try;;
21959 esac
21960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21961   (eval "$ac_compile") 2>conftest.er1
21962   ac_status=$?
21963   grep -v '^ *+' conftest.er1 >conftest.err
21964   rm -f conftest.er1
21965   cat conftest.err >&5
21966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967   (exit $ac_status); } && {
21968          test -z "$ac_c_werror_flag" ||
21969          test ! -s conftest.err
21970        } && test -s conftest.$ac_objext; then
21971   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21972   ac_cv_c_bigendian=yes
21973 fi
21974 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21975   if test "$ac_cv_c_bigendian" = unknown; then
21976     ac_cv_c_bigendian=no
21977   else
21978     # finding both strings is unlikely to happen, but who knows?
21979     ac_cv_c_bigendian=unknown
21980   fi
21981 fi
21982 else
21983   echo "$as_me: failed program was:" >&5
21984 sed 's/^/| /' conftest.$ac_ext >&5
21985
21986
21987 fi
21988
21989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21990 else
21991   cat >conftest.$ac_ext <<_ACEOF
21992 /* confdefs.h.  */
21993 _ACEOF
21994 cat confdefs.h >>conftest.$ac_ext
21995 cat >>conftest.$ac_ext <<_ACEOF
21996 /* end confdefs.h.  */
21997 $ac_includes_default
21998 int
21999 main ()
22000 {
22001
22002   /* Are we little or big endian?  From Harbison&Steele.  */
22003   union
22004   {
22005     long int l;
22006     char c[sizeof (long int)];
22007   } u;
22008   u.l = 1;
22009   return u.c[sizeof (long int) - 1] == 1;
22010
22011   ;
22012   return 0;
22013 }
22014 _ACEOF
22015 rm -f conftest$ac_exeext
22016 if { (ac_try="$ac_link"
22017 case "(($ac_try" in
22018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22019   *) ac_try_echo=$ac_try;;
22020 esac
22021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22022   (eval "$ac_link") 2>&5
22023   ac_status=$?
22024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22026   { (case "(($ac_try" in
22027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22028   *) ac_try_echo=$ac_try;;
22029 esac
22030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22031   (eval "$ac_try") 2>&5
22032   ac_status=$?
22033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034   (exit $ac_status); }; }; then
22035   ac_cv_c_bigendian=no
22036 else
22037   echo "$as_me: program exited with status $ac_status" >&5
22038 echo "$as_me: failed program was:" >&5
22039 sed 's/^/| /' conftest.$ac_ext >&5
22040
22041 ( exit $ac_status )
22042 ac_cv_c_bigendian=yes
22043 fi
22044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22045 fi
22046
22047
22048 fi
22049
22050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22051 fi
22052 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22053 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22054 case $ac_cv_c_bigendian in
22055   yes)
22056     endian=1 ;;
22057   no)
22058     endian=0 ;;
22059   *)
22060     { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
22061 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
22062    { (exit 1); exit 1; }; } ;;
22063 esac
22064
22065
22066 cat >>confdefs.h <<_ACEOF
22067 #define GRAS_BIGENDIAN $endian
22068 _ACEOF
22069
22070
22071 { echo "$as_me:$LINENO: checking size of char" >&5
22072 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
22073     if test "${ac_cv_sizeof_char+set}" = set; then
22074   echo $ECHO_N "(cached) $ECHO_C" >&6
22075 else
22076   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22077    cat >conftest.$ac_ext <<_ACEOF
22078 /* confdefs.h.  */
22079 _ACEOF
22080 cat confdefs.h >>conftest.$ac_ext
22081 cat >>conftest.$ac_ext <<_ACEOF
22082 /* end confdefs.h.  */
22083 #include "confdefs.h"
22084    #include <sys/types.h>
22085
22086
22087 int
22088 main ()
22089 {
22090 switch (0) case 0: case (sizeof (char) == $ac_size):;
22091   ;
22092   return 0;
22093 }
22094 _ACEOF
22095 rm -f conftest.$ac_objext
22096 if { (ac_try="$ac_compile"
22097 case "(($ac_try" in
22098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22099   *) ac_try_echo=$ac_try;;
22100 esac
22101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22102   (eval "$ac_compile") 2>conftest.er1
22103   ac_status=$?
22104   grep -v '^ *+' conftest.er1 >conftest.err
22105   rm -f conftest.er1
22106   cat conftest.err >&5
22107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108   (exit $ac_status); } && {
22109          test -z "$ac_c_werror_flag" ||
22110          test ! -s conftest.err
22111        } && test -s conftest.$ac_objext; then
22112   ac_cv_sizeof_char=$ac_size
22113 else
22114   echo "$as_me: failed program was:" >&5
22115 sed 's/^/| /' conftest.$ac_ext >&5
22116
22117
22118 fi
22119
22120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22121    if test x$ac_cv_sizeof_char != x ; then break; fi
22122   done
22123
22124 fi
22125
22126
22127 unspecif=$ac_cv_sizeof_char
22128 if test x$unspecif = x ; then
22129   { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
22130 echo "$as_me: error: cannot determine a size for char" >&2;}
22131    { (exit 1); exit 1; }; }
22132 fi
22133
22134     if test "${ac_cv_sizeof_signed_char+set}" = set; then
22135   echo $ECHO_N "(cached) $ECHO_C" >&6
22136 else
22137   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22138    cat >conftest.$ac_ext <<_ACEOF
22139 /* confdefs.h.  */
22140 _ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h.  */
22144 #include "confdefs.h"
22145    #include <sys/types.h>
22146
22147
22148 int
22149 main ()
22150 {
22151 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
22152   ;
22153   return 0;
22154 }
22155 _ACEOF
22156 rm -f conftest.$ac_objext
22157 if { (ac_try="$ac_compile"
22158 case "(($ac_try" in
22159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22160   *) ac_try_echo=$ac_try;;
22161 esac
22162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22163   (eval "$ac_compile") 2>conftest.er1
22164   ac_status=$?
22165   grep -v '^ *+' conftest.er1 >conftest.err
22166   rm -f conftest.er1
22167   cat conftest.err >&5
22168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169   (exit $ac_status); } && {
22170          test -z "$ac_c_werror_flag" ||
22171          test ! -s conftest.err
22172        } && test -s conftest.$ac_objext; then
22173   ac_cv_sizeof_signed_char=$ac_size
22174 else
22175   echo "$as_me: failed program was:" >&5
22176 sed 's/^/| /' conftest.$ac_ext >&5
22177
22178
22179 fi
22180
22181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22182    if test x$ac_cv_sizeof_signed_char != x ; then break; fi
22183   done
22184
22185 fi
22186
22187
22188 signed=$ac_cv_sizeof_signed_char
22189 if test x$signed = x ; then
22190   { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
22191 echo "$as_me: error: cannot determine a size for signed char" >&2;}
22192    { (exit 1); exit 1; }; }
22193 fi
22194 if test x$unspecif != x$signed ; then
22195   { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
22196 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
22197    { (exit 1); exit 1; }; }
22198 fi
22199
22200     if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
22201   echo $ECHO_N "(cached) $ECHO_C" >&6
22202 else
22203   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22204    cat >conftest.$ac_ext <<_ACEOF
22205 /* confdefs.h.  */
22206 _ACEOF
22207 cat confdefs.h >>conftest.$ac_ext
22208 cat >>conftest.$ac_ext <<_ACEOF
22209 /* end confdefs.h.  */
22210 #include "confdefs.h"
22211    #include <sys/types.h>
22212
22213
22214 int
22215 main ()
22216 {
22217 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
22218   ;
22219   return 0;
22220 }
22221 _ACEOF
22222 rm -f conftest.$ac_objext
22223 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
22230   ac_status=$?
22231   grep -v '^ *+' conftest.er1 >conftest.err
22232   rm -f conftest.er1
22233   cat conftest.err >&5
22234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235   (exit $ac_status); } && {
22236          test -z "$ac_c_werror_flag" ||
22237          test ! -s conftest.err
22238        } && test -s conftest.$ac_objext; then
22239   ac_cv_sizeof_unsigned_char=$ac_size
22240 else
22241   echo "$as_me: failed program was:" >&5
22242 sed 's/^/| /' conftest.$ac_ext >&5
22243
22244
22245 fi
22246
22247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22248    if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
22249   done
22250
22251 fi
22252
22253
22254 unsigned=$ac_cv_sizeof_unsigned_char
22255 if test x$unsigned = x ; then
22256   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
22257 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
22258    { (exit 1); exit 1; }; }
22259 fi
22260 if test x$unsigned != x$signed ; then
22261   { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
22262 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
22263    { (exit 1); exit 1; }; }
22264 fi
22265
22266 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
22267 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
22268                   { echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
22269 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6; }
22270
22271  if test "${ac_cv_struct_boundary_char+set}" = set; then
22272   echo $ECHO_N "(cached) $ECHO_C" >&6
22273 else
22274   for ac_size in 1 2 4 8 16 32 64 3 ; 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      struct s { char c; char i; };
22284
22285 int
22286 main ()
22287 {
22288 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
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_struct_boundary_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_struct_boundary_char != x ; then break; fi
22320   done
22321
22322 fi
22323
22324  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
22325 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6; }
22326  if test x$ac_cv_struct_boundary_char = x ; then
22327    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of char in structures" >&5
22328 echo "$as_me: error: Cannot determine the minimal alignment boundary of char in structures" >&2;}
22329    { (exit 1); exit 1; }; }
22330  fi
22331
22332 { echo "$as_me:$LINENO: checking size of short int" >&5
22333 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
22334     if test "${ac_cv_sizeof_short_int+set}" = set; then
22335   echo $ECHO_N "(cached) $ECHO_C" >&6
22336 else
22337   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22338    cat >conftest.$ac_ext <<_ACEOF
22339 /* confdefs.h.  */
22340 _ACEOF
22341 cat confdefs.h >>conftest.$ac_ext
22342 cat >>conftest.$ac_ext <<_ACEOF
22343 /* end confdefs.h.  */
22344 #include "confdefs.h"
22345    #include <sys/types.h>
22346
22347
22348 int
22349 main ()
22350 {
22351 switch (0) case 0: case (sizeof (short int) == $ac_size):;
22352   ;
22353   return 0;
22354 }
22355 _ACEOF
22356 rm -f conftest.$ac_objext
22357 if { (ac_try="$ac_compile"
22358 case "(($ac_try" in
22359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22360   *) ac_try_echo=$ac_try;;
22361 esac
22362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22363   (eval "$ac_compile") 2>conftest.er1
22364   ac_status=$?
22365   grep -v '^ *+' conftest.er1 >conftest.err
22366   rm -f conftest.er1
22367   cat conftest.err >&5
22368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369   (exit $ac_status); } && {
22370          test -z "$ac_c_werror_flag" ||
22371          test ! -s conftest.err
22372        } && test -s conftest.$ac_objext; then
22373   ac_cv_sizeof_short_int=$ac_size
22374 else
22375   echo "$as_me: failed program was:" >&5
22376 sed 's/^/| /' conftest.$ac_ext >&5
22377
22378
22379 fi
22380
22381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22382    if test x$ac_cv_sizeof_short_int != x ; then break; fi
22383   done
22384
22385 fi
22386
22387
22388 unspecif=$ac_cv_sizeof_short_int
22389 if test x$unspecif = x ; then
22390   { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
22391 echo "$as_me: error: cannot determine a size for short int" >&2;}
22392    { (exit 1); exit 1; }; }
22393 fi
22394
22395     if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
22396   echo $ECHO_N "(cached) $ECHO_C" >&6
22397 else
22398   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22399    cat >conftest.$ac_ext <<_ACEOF
22400 /* confdefs.h.  */
22401 _ACEOF
22402 cat confdefs.h >>conftest.$ac_ext
22403 cat >>conftest.$ac_ext <<_ACEOF
22404 /* end confdefs.h.  */
22405 #include "confdefs.h"
22406    #include <sys/types.h>
22407
22408
22409 int
22410 main ()
22411 {
22412 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
22413   ;
22414   return 0;
22415 }
22416 _ACEOF
22417 rm -f conftest.$ac_objext
22418 if { (ac_try="$ac_compile"
22419 case "(($ac_try" in
22420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22421   *) ac_try_echo=$ac_try;;
22422 esac
22423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22424   (eval "$ac_compile") 2>conftest.er1
22425   ac_status=$?
22426   grep -v '^ *+' conftest.er1 >conftest.err
22427   rm -f conftest.er1
22428   cat conftest.err >&5
22429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430   (exit $ac_status); } && {
22431          test -z "$ac_c_werror_flag" ||
22432          test ! -s conftest.err
22433        } && test -s conftest.$ac_objext; then
22434   ac_cv_sizeof_signed_short_int=$ac_size
22435 else
22436   echo "$as_me: failed program was:" >&5
22437 sed 's/^/| /' conftest.$ac_ext >&5
22438
22439
22440 fi
22441
22442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22443    if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
22444   done
22445
22446 fi
22447
22448
22449 signed=$ac_cv_sizeof_signed_short_int
22450 if test x$signed = x ; then
22451   { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
22452 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
22453    { (exit 1); exit 1; }; }
22454 fi
22455 if test x$unspecif != x$signed ; then
22456   { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
22457 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
22458    { (exit 1); exit 1; }; }
22459 fi
22460
22461     if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
22462   echo $ECHO_N "(cached) $ECHO_C" >&6
22463 else
22464   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22465    cat >conftest.$ac_ext <<_ACEOF
22466 /* confdefs.h.  */
22467 _ACEOF
22468 cat confdefs.h >>conftest.$ac_ext
22469 cat >>conftest.$ac_ext <<_ACEOF
22470 /* end confdefs.h.  */
22471 #include "confdefs.h"
22472    #include <sys/types.h>
22473
22474
22475 int
22476 main ()
22477 {
22478 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
22479   ;
22480   return 0;
22481 }
22482 _ACEOF
22483 rm -f conftest.$ac_objext
22484 if { (ac_try="$ac_compile"
22485 case "(($ac_try" in
22486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22487   *) ac_try_echo=$ac_try;;
22488 esac
22489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22490   (eval "$ac_compile") 2>conftest.er1
22491   ac_status=$?
22492   grep -v '^ *+' conftest.er1 >conftest.err
22493   rm -f conftest.er1
22494   cat conftest.err >&5
22495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496   (exit $ac_status); } && {
22497          test -z "$ac_c_werror_flag" ||
22498          test ! -s conftest.err
22499        } && test -s conftest.$ac_objext; then
22500   ac_cv_sizeof_unsigned_short_int=$ac_size
22501 else
22502   echo "$as_me: failed program was:" >&5
22503 sed 's/^/| /' conftest.$ac_ext >&5
22504
22505
22506 fi
22507
22508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22509    if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
22510   done
22511
22512 fi
22513
22514
22515 unsigned=$ac_cv_sizeof_unsigned_short_int
22516 if test x$unsigned = x ; then
22517   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
22518 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
22519    { (exit 1); exit 1; }; }
22520 fi
22521 if test x$unsigned != x$signed ; then
22522   { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
22523 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
22524    { (exit 1); exit 1; }; }
22525 fi
22526
22527 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
22528 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6; }
22529              { echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
22530 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6; }
22531
22532  if test "${ac_cv_struct_boundary_short_int+set}" = set; then
22533   echo $ECHO_N "(cached) $ECHO_C" >&6
22534 else
22535   for ac_size in 1 2 4 8 16 32 64 3 ; 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      struct s { char c; short int i; };
22545
22546 int
22547 main ()
22548 {
22549 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
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_struct_boundary_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_struct_boundary_short_int != x ; then break; fi
22581   done
22582
22583 fi
22584
22585  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
22586 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6; }
22587  if test x$ac_cv_struct_boundary_short_int = x ; then
22588    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of short int in structures" >&5
22589 echo "$as_me: error: Cannot determine the minimal alignment boundary of short int in structures" >&2;}
22590    { (exit 1); exit 1; }; }
22591  fi
22592
22593 { echo "$as_me:$LINENO: checking size of int" >&5
22594 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22595     if test "${ac_cv_sizeof_int+set}" = set; then
22596   echo $ECHO_N "(cached) $ECHO_C" >&6
22597 else
22598   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22599    cat >conftest.$ac_ext <<_ACEOF
22600 /* confdefs.h.  */
22601 _ACEOF
22602 cat confdefs.h >>conftest.$ac_ext
22603 cat >>conftest.$ac_ext <<_ACEOF
22604 /* end confdefs.h.  */
22605 #include "confdefs.h"
22606    #include <sys/types.h>
22607
22608
22609 int
22610 main ()
22611 {
22612 switch (0) case 0: case (sizeof (int) == $ac_size):;
22613   ;
22614   return 0;
22615 }
22616 _ACEOF
22617 rm -f conftest.$ac_objext
22618 if { (ac_try="$ac_compile"
22619 case "(($ac_try" in
22620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22621   *) ac_try_echo=$ac_try;;
22622 esac
22623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22624   (eval "$ac_compile") 2>conftest.er1
22625   ac_status=$?
22626   grep -v '^ *+' conftest.er1 >conftest.err
22627   rm -f conftest.er1
22628   cat conftest.err >&5
22629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630   (exit $ac_status); } && {
22631          test -z "$ac_c_werror_flag" ||
22632          test ! -s conftest.err
22633        } && test -s conftest.$ac_objext; then
22634   ac_cv_sizeof_int=$ac_size
22635 else
22636   echo "$as_me: failed program was:" >&5
22637 sed 's/^/| /' conftest.$ac_ext >&5
22638
22639
22640 fi
22641
22642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22643    if test x$ac_cv_sizeof_int != x ; then break; fi
22644   done
22645
22646 fi
22647
22648
22649 unspecif=$ac_cv_sizeof_int
22650 if test x$unspecif = x ; then
22651   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
22652 echo "$as_me: error: cannot determine a size for int" >&2;}
22653    { (exit 1); exit 1; }; }
22654 fi
22655
22656     if test "${ac_cv_sizeof_signed_int+set}" = set; then
22657   echo $ECHO_N "(cached) $ECHO_C" >&6
22658 else
22659   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22660    cat >conftest.$ac_ext <<_ACEOF
22661 /* confdefs.h.  */
22662 _ACEOF
22663 cat confdefs.h >>conftest.$ac_ext
22664 cat >>conftest.$ac_ext <<_ACEOF
22665 /* end confdefs.h.  */
22666 #include "confdefs.h"
22667    #include <sys/types.h>
22668
22669
22670 int
22671 main ()
22672 {
22673 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
22674   ;
22675   return 0;
22676 }
22677 _ACEOF
22678 rm -f conftest.$ac_objext
22679 if { (ac_try="$ac_compile"
22680 case "(($ac_try" in
22681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22682   *) ac_try_echo=$ac_try;;
22683 esac
22684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22685   (eval "$ac_compile") 2>conftest.er1
22686   ac_status=$?
22687   grep -v '^ *+' conftest.er1 >conftest.err
22688   rm -f conftest.er1
22689   cat conftest.err >&5
22690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691   (exit $ac_status); } && {
22692          test -z "$ac_c_werror_flag" ||
22693          test ! -s conftest.err
22694        } && test -s conftest.$ac_objext; then
22695   ac_cv_sizeof_signed_int=$ac_size
22696 else
22697   echo "$as_me: failed program was:" >&5
22698 sed 's/^/| /' conftest.$ac_ext >&5
22699
22700
22701 fi
22702
22703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22704    if test x$ac_cv_sizeof_signed_int != x ; then break; fi
22705   done
22706
22707 fi
22708
22709
22710 signed=$ac_cv_sizeof_signed_int
22711 if test x$signed = x ; then
22712   { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
22713 echo "$as_me: error: cannot determine a size for signed int" >&2;}
22714    { (exit 1); exit 1; }; }
22715 fi
22716 if test x$unspecif != x$signed ; then
22717   { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
22718 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
22719    { (exit 1); exit 1; }; }
22720 fi
22721
22722     if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
22723   echo $ECHO_N "(cached) $ECHO_C" >&6
22724 else
22725   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22726    cat >conftest.$ac_ext <<_ACEOF
22727 /* confdefs.h.  */
22728 _ACEOF
22729 cat confdefs.h >>conftest.$ac_ext
22730 cat >>conftest.$ac_ext <<_ACEOF
22731 /* end confdefs.h.  */
22732 #include "confdefs.h"
22733    #include <sys/types.h>
22734
22735
22736 int
22737 main ()
22738 {
22739 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
22740   ;
22741   return 0;
22742 }
22743 _ACEOF
22744 rm -f conftest.$ac_objext
22745 if { (ac_try="$ac_compile"
22746 case "(($ac_try" in
22747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22748   *) ac_try_echo=$ac_try;;
22749 esac
22750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22751   (eval "$ac_compile") 2>conftest.er1
22752   ac_status=$?
22753   grep -v '^ *+' conftest.er1 >conftest.err
22754   rm -f conftest.er1
22755   cat conftest.err >&5
22756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22757   (exit $ac_status); } && {
22758          test -z "$ac_c_werror_flag" ||
22759          test ! -s conftest.err
22760        } && test -s conftest.$ac_objext; then
22761   ac_cv_sizeof_unsigned_int=$ac_size
22762 else
22763   echo "$as_me: failed program was:" >&5
22764 sed 's/^/| /' conftest.$ac_ext >&5
22765
22766
22767 fi
22768
22769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22770    if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
22771   done
22772
22773 fi
22774
22775
22776 unsigned=$ac_cv_sizeof_unsigned_int
22777 if test x$unsigned = x ; then
22778   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
22779 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
22780    { (exit 1); exit 1; }; }
22781 fi
22782 if test x$unsigned != x$signed ; then
22783   { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
22784 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
22785    { (exit 1); exit 1; }; }
22786 fi
22787
22788 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
22789 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
22790                    { echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
22791 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6; }
22792
22793  if test "${ac_cv_struct_boundary_int+set}" = set; then
22794   echo $ECHO_N "(cached) $ECHO_C" >&6
22795 else
22796   for ac_size in 1 2 4 8 16 32 64 3 ; 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      struct s { char c; int i; };
22806
22807 int
22808 main ()
22809 {
22810 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
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_struct_boundary_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_struct_boundary_int != x ; then break; fi
22842   done
22843
22844 fi
22845
22846  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
22847 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6; }
22848  if test x$ac_cv_struct_boundary_int = x ; then
22849    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of int in structures" >&5
22850 echo "$as_me: error: Cannot determine the minimal alignment boundary of int in structures" >&2;}
22851    { (exit 1); exit 1; }; }
22852  fi
22853
22854 { echo "$as_me:$LINENO: checking size of long int" >&5
22855 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
22856     if test "${ac_cv_sizeof_long_int+set}" = set; then
22857   echo $ECHO_N "(cached) $ECHO_C" >&6
22858 else
22859   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22860    cat >conftest.$ac_ext <<_ACEOF
22861 /* confdefs.h.  */
22862 _ACEOF
22863 cat confdefs.h >>conftest.$ac_ext
22864 cat >>conftest.$ac_ext <<_ACEOF
22865 /* end confdefs.h.  */
22866 #include "confdefs.h"
22867    #include <sys/types.h>
22868
22869
22870 int
22871 main ()
22872 {
22873 switch (0) case 0: case (sizeof (long int) == $ac_size):;
22874   ;
22875   return 0;
22876 }
22877 _ACEOF
22878 rm -f conftest.$ac_objext
22879 if { (ac_try="$ac_compile"
22880 case "(($ac_try" in
22881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22882   *) ac_try_echo=$ac_try;;
22883 esac
22884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22885   (eval "$ac_compile") 2>conftest.er1
22886   ac_status=$?
22887   grep -v '^ *+' conftest.er1 >conftest.err
22888   rm -f conftest.er1
22889   cat conftest.err >&5
22890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891   (exit $ac_status); } && {
22892          test -z "$ac_c_werror_flag" ||
22893          test ! -s conftest.err
22894        } && test -s conftest.$ac_objext; then
22895   ac_cv_sizeof_long_int=$ac_size
22896 else
22897   echo "$as_me: failed program was:" >&5
22898 sed 's/^/| /' conftest.$ac_ext >&5
22899
22900
22901 fi
22902
22903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22904    if test x$ac_cv_sizeof_long_int != x ; then break; fi
22905   done
22906
22907 fi
22908
22909
22910 unspecif=$ac_cv_sizeof_long_int
22911 if test x$unspecif = x ; then
22912   { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
22913 echo "$as_me: error: cannot determine a size for long int" >&2;}
22914    { (exit 1); exit 1; }; }
22915 fi
22916
22917     if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
22918   echo $ECHO_N "(cached) $ECHO_C" >&6
22919 else
22920   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22921    cat >conftest.$ac_ext <<_ACEOF
22922 /* confdefs.h.  */
22923 _ACEOF
22924 cat confdefs.h >>conftest.$ac_ext
22925 cat >>conftest.$ac_ext <<_ACEOF
22926 /* end confdefs.h.  */
22927 #include "confdefs.h"
22928    #include <sys/types.h>
22929
22930
22931 int
22932 main ()
22933 {
22934 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
22935   ;
22936   return 0;
22937 }
22938 _ACEOF
22939 rm -f conftest.$ac_objext
22940 if { (ac_try="$ac_compile"
22941 case "(($ac_try" in
22942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22943   *) ac_try_echo=$ac_try;;
22944 esac
22945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22946   (eval "$ac_compile") 2>conftest.er1
22947   ac_status=$?
22948   grep -v '^ *+' conftest.er1 >conftest.err
22949   rm -f conftest.er1
22950   cat conftest.err >&5
22951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952   (exit $ac_status); } && {
22953          test -z "$ac_c_werror_flag" ||
22954          test ! -s conftest.err
22955        } && test -s conftest.$ac_objext; then
22956   ac_cv_sizeof_signed_long_int=$ac_size
22957 else
22958   echo "$as_me: failed program was:" >&5
22959 sed 's/^/| /' conftest.$ac_ext >&5
22960
22961
22962 fi
22963
22964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22965    if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
22966   done
22967
22968 fi
22969
22970
22971 signed=$ac_cv_sizeof_signed_long_int
22972 if test x$signed = x ; then
22973   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
22974 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
22975    { (exit 1); exit 1; }; }
22976 fi
22977 if test x$unspecif != x$signed ; then
22978   { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
22979 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
22980    { (exit 1); exit 1; }; }
22981 fi
22982
22983     if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
22984   echo $ECHO_N "(cached) $ECHO_C" >&6
22985 else
22986   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22987    cat >conftest.$ac_ext <<_ACEOF
22988 /* confdefs.h.  */
22989 _ACEOF
22990 cat confdefs.h >>conftest.$ac_ext
22991 cat >>conftest.$ac_ext <<_ACEOF
22992 /* end confdefs.h.  */
22993 #include "confdefs.h"
22994    #include <sys/types.h>
22995
22996
22997 int
22998 main ()
22999 {
23000 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
23001   ;
23002   return 0;
23003 }
23004 _ACEOF
23005 rm -f conftest.$ac_objext
23006 if { (ac_try="$ac_compile"
23007 case "(($ac_try" in
23008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23009   *) ac_try_echo=$ac_try;;
23010 esac
23011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23012   (eval "$ac_compile") 2>conftest.er1
23013   ac_status=$?
23014   grep -v '^ *+' conftest.er1 >conftest.err
23015   rm -f conftest.er1
23016   cat conftest.err >&5
23017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018   (exit $ac_status); } && {
23019          test -z "$ac_c_werror_flag" ||
23020          test ! -s conftest.err
23021        } && test -s conftest.$ac_objext; then
23022   ac_cv_sizeof_unsigned_long_int=$ac_size
23023 else
23024   echo "$as_me: failed program was:" >&5
23025 sed 's/^/| /' conftest.$ac_ext >&5
23026
23027
23028 fi
23029
23030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23031    if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
23032   done
23033
23034 fi
23035
23036
23037 unsigned=$ac_cv_sizeof_unsigned_long_int
23038 if test x$unsigned = x ; then
23039   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
23040 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
23041    { (exit 1); exit 1; }; }
23042 fi
23043 if test x$unsigned != x$signed ; then
23044   { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
23045 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
23046    { (exit 1); exit 1; }; }
23047 fi
23048
23049 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
23050 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6; }
23051               { echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
23052 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6; }
23053
23054  if test "${ac_cv_struct_boundary_long_int+set}" = set; then
23055   echo $ECHO_N "(cached) $ECHO_C" >&6
23056 else
23057   for ac_size in 1 2 4 8 16 32 64 3 ; 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      struct s { char c; long int i; };
23067
23068 int
23069 main ()
23070 {
23071 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
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_struct_boundary_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_struct_boundary_long_int != x ; then break; fi
23103   done
23104
23105 fi
23106
23107  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
23108 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6; }
23109  if test x$ac_cv_struct_boundary_long_int = x ; then
23110    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long int in structures" >&5
23111 echo "$as_me: error: Cannot determine the minimal alignment boundary of long int in structures" >&2;}
23112    { (exit 1); exit 1; }; }
23113  fi
23114
23115 { echo "$as_me:$LINENO: checking size of long long int" >&5
23116 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
23117     if test "${ac_cv_sizeof_long_long_int+set}" = set; then
23118   echo $ECHO_N "(cached) $ECHO_C" >&6
23119 else
23120   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23121    cat >conftest.$ac_ext <<_ACEOF
23122 /* confdefs.h.  */
23123 _ACEOF
23124 cat confdefs.h >>conftest.$ac_ext
23125 cat >>conftest.$ac_ext <<_ACEOF
23126 /* end confdefs.h.  */
23127 #include "confdefs.h"
23128    #include <sys/types.h>
23129
23130
23131 int
23132 main ()
23133 {
23134 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
23135   ;
23136   return 0;
23137 }
23138 _ACEOF
23139 rm -f conftest.$ac_objext
23140 if { (ac_try="$ac_compile"
23141 case "(($ac_try" in
23142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23143   *) ac_try_echo=$ac_try;;
23144 esac
23145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23146   (eval "$ac_compile") 2>conftest.er1
23147   ac_status=$?
23148   grep -v '^ *+' conftest.er1 >conftest.err
23149   rm -f conftest.er1
23150   cat conftest.err >&5
23151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152   (exit $ac_status); } && {
23153          test -z "$ac_c_werror_flag" ||
23154          test ! -s conftest.err
23155        } && test -s conftest.$ac_objext; then
23156   ac_cv_sizeof_long_long_int=$ac_size
23157 else
23158   echo "$as_me: failed program was:" >&5
23159 sed 's/^/| /' conftest.$ac_ext >&5
23160
23161
23162 fi
23163
23164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23165    if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
23166   done
23167
23168 fi
23169
23170
23171 unspecif=$ac_cv_sizeof_long_long_int
23172 if test x$unspecif = x ; then
23173   { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
23174 echo "$as_me: error: cannot determine a size for long long int" >&2;}
23175    { (exit 1); exit 1; }; }
23176 fi
23177
23178     if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
23179   echo $ECHO_N "(cached) $ECHO_C" >&6
23180 else
23181   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23182    cat >conftest.$ac_ext <<_ACEOF
23183 /* confdefs.h.  */
23184 _ACEOF
23185 cat confdefs.h >>conftest.$ac_ext
23186 cat >>conftest.$ac_ext <<_ACEOF
23187 /* end confdefs.h.  */
23188 #include "confdefs.h"
23189    #include <sys/types.h>
23190
23191
23192 int
23193 main ()
23194 {
23195 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
23196   ;
23197   return 0;
23198 }
23199 _ACEOF
23200 rm -f conftest.$ac_objext
23201 if { (ac_try="$ac_compile"
23202 case "(($ac_try" in
23203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23204   *) ac_try_echo=$ac_try;;
23205 esac
23206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23207   (eval "$ac_compile") 2>conftest.er1
23208   ac_status=$?
23209   grep -v '^ *+' conftest.er1 >conftest.err
23210   rm -f conftest.er1
23211   cat conftest.err >&5
23212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23213   (exit $ac_status); } && {
23214          test -z "$ac_c_werror_flag" ||
23215          test ! -s conftest.err
23216        } && test -s conftest.$ac_objext; then
23217   ac_cv_sizeof_signed_long_long_int=$ac_size
23218 else
23219   echo "$as_me: failed program was:" >&5
23220 sed 's/^/| /' conftest.$ac_ext >&5
23221
23222
23223 fi
23224
23225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23226    if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
23227   done
23228
23229 fi
23230
23231
23232 signed=$ac_cv_sizeof_signed_long_long_int
23233 if test x$signed = x ; then
23234   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
23235 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
23236    { (exit 1); exit 1; }; }
23237 fi
23238 if test x$unspecif != x$signed ; then
23239   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
23240 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
23241    { (exit 1); exit 1; }; }
23242 fi
23243
23244     if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
23245   echo $ECHO_N "(cached) $ECHO_C" >&6
23246 else
23247   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23248    cat >conftest.$ac_ext <<_ACEOF
23249 /* confdefs.h.  */
23250 _ACEOF
23251 cat confdefs.h >>conftest.$ac_ext
23252 cat >>conftest.$ac_ext <<_ACEOF
23253 /* end confdefs.h.  */
23254 #include "confdefs.h"
23255    #include <sys/types.h>
23256
23257
23258 int
23259 main ()
23260 {
23261 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
23262   ;
23263   return 0;
23264 }
23265 _ACEOF
23266 rm -f conftest.$ac_objext
23267 if { (ac_try="$ac_compile"
23268 case "(($ac_try" in
23269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23270   *) ac_try_echo=$ac_try;;
23271 esac
23272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23273   (eval "$ac_compile") 2>conftest.er1
23274   ac_status=$?
23275   grep -v '^ *+' conftest.er1 >conftest.err
23276   rm -f conftest.er1
23277   cat conftest.err >&5
23278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279   (exit $ac_status); } && {
23280          test -z "$ac_c_werror_flag" ||
23281          test ! -s conftest.err
23282        } && test -s conftest.$ac_objext; then
23283   ac_cv_sizeof_unsigned_long_long_int=$ac_size
23284 else
23285   echo "$as_me: failed program was:" >&5
23286 sed 's/^/| /' conftest.$ac_ext >&5
23287
23288
23289 fi
23290
23291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23292    if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
23293   done
23294
23295 fi
23296
23297
23298 unsigned=$ac_cv_sizeof_unsigned_long_long_int
23299 if test x$unsigned = x ; then
23300   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
23301 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
23302    { (exit 1); exit 1; }; }
23303 fi
23304 if test x$unsigned != x$signed ; then
23305   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
23306 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
23307    { (exit 1); exit 1; }; }
23308 fi
23309
23310 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
23311 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6; }
23312          { echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
23313 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6; }
23314
23315  if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
23316   echo $ECHO_N "(cached) $ECHO_C" >&6
23317 else
23318   for ac_size in 1 2 4 8 16 32 64 3 ; 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      struct s { char c; long long int i; };
23328
23329 int
23330 main ()
23331 {
23332 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
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_struct_boundary_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_struct_boundary_long_long_int != x ; then break; fi
23364   done
23365
23366 fi
23367
23368  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
23369 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6; }
23370  if test x$ac_cv_struct_boundary_long_long_int = x ; then
23371    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long long int in structures" >&5
23372 echo "$as_me: error: Cannot determine the minimal alignment boundary of long long int in structures" >&2;}
23373    { (exit 1); exit 1; }; }
23374  fi
23375
23376
23377     { echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
23378 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6; }
23379
23380  if test "${ac_cv_struct_boundary_float+set}" = set; then
23381   echo $ECHO_N "(cached) $ECHO_C" >&6
23382 else
23383   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23384    cat >conftest.$ac_ext <<_ACEOF
23385 /* confdefs.h.  */
23386 _ACEOF
23387 cat confdefs.h >>conftest.$ac_ext
23388 cat >>conftest.$ac_ext <<_ACEOF
23389 /* end confdefs.h.  */
23390 #include "confdefs.h"
23391      #include <sys/types.h>
23392      struct s { char c; float i; };
23393
23394 int
23395 main ()
23396 {
23397 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
23398   ;
23399   return 0;
23400 }
23401 _ACEOF
23402 rm -f conftest.$ac_objext
23403 if { (ac_try="$ac_compile"
23404 case "(($ac_try" in
23405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23406   *) ac_try_echo=$ac_try;;
23407 esac
23408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23409   (eval "$ac_compile") 2>conftest.er1
23410   ac_status=$?
23411   grep -v '^ *+' conftest.er1 >conftest.err
23412   rm -f conftest.er1
23413   cat conftest.err >&5
23414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415   (exit $ac_status); } && {
23416          test -z "$ac_c_werror_flag" ||
23417          test ! -s conftest.err
23418        } && test -s conftest.$ac_objext; then
23419   ac_cv_struct_boundary_float=$ac_size
23420 else
23421   echo "$as_me: failed program was:" >&5
23422 sed 's/^/| /' conftest.$ac_ext >&5
23423
23424
23425 fi
23426
23427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23428    if test x$ac_cv_struct_boundary_float != x ; then break; fi
23429   done
23430
23431 fi
23432
23433  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
23434 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6; }
23435  if test x$ac_cv_struct_boundary_float = x ; then
23436    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of float in structures" >&5
23437 echo "$as_me: error: Cannot determine the minimal alignment boundary of float in structures" >&2;}
23438    { (exit 1); exit 1; }; }
23439  fi
23440                { echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
23441 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6; }
23442
23443  if test "${ac_cv_struct_boundary_double+set}" = set; then
23444   echo $ECHO_N "(cached) $ECHO_C" >&6
23445 else
23446   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23447    cat >conftest.$ac_ext <<_ACEOF
23448 /* confdefs.h.  */
23449 _ACEOF
23450 cat confdefs.h >>conftest.$ac_ext
23451 cat >>conftest.$ac_ext <<_ACEOF
23452 /* end confdefs.h.  */
23453 #include "confdefs.h"
23454      #include <sys/types.h>
23455      struct s { char c; double i; };
23456
23457 int
23458 main ()
23459 {
23460 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
23461   ;
23462   return 0;
23463 }
23464 _ACEOF
23465 rm -f conftest.$ac_objext
23466 if { (ac_try="$ac_compile"
23467 case "(($ac_try" in
23468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23469   *) ac_try_echo=$ac_try;;
23470 esac
23471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23472   (eval "$ac_compile") 2>conftest.er1
23473   ac_status=$?
23474   grep -v '^ *+' conftest.er1 >conftest.err
23475   rm -f conftest.er1
23476   cat conftest.err >&5
23477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23478   (exit $ac_status); } && {
23479          test -z "$ac_c_werror_flag" ||
23480          test ! -s conftest.err
23481        } && test -s conftest.$ac_objext; then
23482   ac_cv_struct_boundary_double=$ac_size
23483 else
23484   echo "$as_me: failed program was:" >&5
23485 sed 's/^/| /' conftest.$ac_ext >&5
23486
23487
23488 fi
23489
23490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23491    if test x$ac_cv_struct_boundary_double != x ; then break; fi
23492   done
23493
23494 fi
23495
23496  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
23497 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6; }
23498  if test x$ac_cv_struct_boundary_double = x ; then
23499    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of double in structures" >&5
23500 echo "$as_me: error: Cannot determine the minimal alignment boundary of double in structures" >&2;}
23501    { (exit 1); exit 1; }; }
23502  fi
23503
23504
23505 { echo "$as_me:$LINENO: checking size of void *" >&5
23506 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
23507     if test "${ac_cv_sizeof_void_p+set}" = set; then
23508   echo $ECHO_N "(cached) $ECHO_C" >&6
23509 else
23510   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23511    cat >conftest.$ac_ext <<_ACEOF
23512 /* confdefs.h.  */
23513 _ACEOF
23514 cat confdefs.h >>conftest.$ac_ext
23515 cat >>conftest.$ac_ext <<_ACEOF
23516 /* end confdefs.h.  */
23517 #include "confdefs.h"
23518    #include <sys/types.h>
23519
23520
23521 int
23522 main ()
23523 {
23524 switch (0) case 0: case (sizeof (void *) == $ac_size):;
23525   ;
23526   return 0;
23527 }
23528 _ACEOF
23529 rm -f conftest.$ac_objext
23530 if { (ac_try="$ac_compile"
23531 case "(($ac_try" in
23532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23533   *) ac_try_echo=$ac_try;;
23534 esac
23535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23536   (eval "$ac_compile") 2>conftest.er1
23537   ac_status=$?
23538   grep -v '^ *+' conftest.er1 >conftest.err
23539   rm -f conftest.er1
23540   cat conftest.err >&5
23541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23542   (exit $ac_status); } && {
23543          test -z "$ac_c_werror_flag" ||
23544          test ! -s conftest.err
23545        } && test -s conftest.$ac_objext; then
23546   ac_cv_sizeof_void_p=$ac_size
23547 else
23548   echo "$as_me: failed program was:" >&5
23549 sed 's/^/| /' conftest.$ac_ext >&5
23550
23551
23552 fi
23553
23554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23555    if test x$ac_cv_sizeof_void_p != x ; then break; fi
23556   done
23557
23558 fi
23559
23560
23561 if test x$ac_cv_sizeof_void_p = x ; then
23562   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
23563 echo "$as_me: error: cannot determine a size for void *" >&2;}
23564    { (exit 1); exit 1; }; }
23565 fi
23566 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23567 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
23568                  { echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
23569 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6; }
23570
23571  if test "${ac_cv_struct_boundary_void_p+set}" = set; then
23572   echo $ECHO_N "(cached) $ECHO_C" >&6
23573 else
23574   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23575    cat >conftest.$ac_ext <<_ACEOF
23576 /* confdefs.h.  */
23577 _ACEOF
23578 cat confdefs.h >>conftest.$ac_ext
23579 cat >>conftest.$ac_ext <<_ACEOF
23580 /* end confdefs.h.  */
23581 #include "confdefs.h"
23582      #include <sys/types.h>
23583      struct s { char c; void * i; };
23584
23585 int
23586 main ()
23587 {
23588 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
23589   ;
23590   return 0;
23591 }
23592 _ACEOF
23593 rm -f conftest.$ac_objext
23594 if { (ac_try="$ac_compile"
23595 case "(($ac_try" in
23596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23597   *) ac_try_echo=$ac_try;;
23598 esac
23599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23600   (eval "$ac_compile") 2>conftest.er1
23601   ac_status=$?
23602   grep -v '^ *+' conftest.er1 >conftest.err
23603   rm -f conftest.er1
23604   cat conftest.err >&5
23605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606   (exit $ac_status); } && {
23607          test -z "$ac_c_werror_flag" ||
23608          test ! -s conftest.err
23609        } && test -s conftest.$ac_objext; then
23610   ac_cv_struct_boundary_void_p=$ac_size
23611 else
23612   echo "$as_me: failed program was:" >&5
23613 sed 's/^/| /' conftest.$ac_ext >&5
23614
23615
23616 fi
23617
23618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23619    if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
23620   done
23621
23622 fi
23623
23624  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
23625 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6; }
23626  if test x$ac_cv_struct_boundary_void_p = x ; then
23627    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of void * in structures" >&5
23628 echo "$as_me: error: Cannot determine the minimal alignment boundary of void * in structures" >&2;}
23629    { (exit 1); exit 1; }; }
23630  fi
23631
23632 { echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
23633 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6; }
23634     if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
23635   echo $ECHO_N "(cached) $ECHO_C" >&6
23636 else
23637   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23638    cat >conftest.$ac_ext <<_ACEOF
23639 /* confdefs.h.  */
23640 _ACEOF
23641 cat confdefs.h >>conftest.$ac_ext
23642 cat >>conftest.$ac_ext <<_ACEOF
23643 /* end confdefs.h.  */
23644 #include "confdefs.h"
23645    #include <sys/types.h>
23646
23647
23648 int
23649 main ()
23650 {
23651 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
23652   ;
23653   return 0;
23654 }
23655 _ACEOF
23656 rm -f conftest.$ac_objext
23657 if { (ac_try="$ac_compile"
23658 case "(($ac_try" in
23659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23660   *) ac_try_echo=$ac_try;;
23661 esac
23662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23663   (eval "$ac_compile") 2>conftest.er1
23664   ac_status=$?
23665   grep -v '^ *+' conftest.er1 >conftest.err
23666   rm -f conftest.er1
23667   cat conftest.err >&5
23668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669   (exit $ac_status); } && {
23670          test -z "$ac_c_werror_flag" ||
23671          test ! -s conftest.err
23672        } && test -s conftest.$ac_objext; then
23673   ac_cv_sizeof_void_LpR_LvoidR=$ac_size
23674 else
23675   echo "$as_me: failed program was:" >&5
23676 sed 's/^/| /' conftest.$ac_ext >&5
23677
23678
23679 fi
23680
23681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23682    if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
23683   done
23684
23685 fi
23686
23687
23688 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
23689   { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
23690 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
23691    { (exit 1); exit 1; }; }
23692 fi
23693 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
23694 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6; }
23695
23696
23697
23698 { echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
23699 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6; }
23700 if test x$endian = x1 ; then
23701   trace_endian=B
23702 else
23703   trace_endian=l
23704 fi
23705 gras_arch=unknown
23706 trace="$trace_endian"
23707
23708 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
23709
23710 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
23711 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
23712 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
23713 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
23714
23715 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
23716 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
23717
23718 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
23719
23720 # sizeof float/double are not tested since IEEE 754 is assumed.
23721 # Check README.IEEE for rational.
23722
23723 # The numbers after the _ in the arch name are the maximal packing boundary.
23724 # big32_2   means that all data are aligned on a 2 bytes boundary.              (ARM)
23725 # big32_8_4 means that some or them are aligned on 8 bytes, some are on 4 bytes (AIX)
23726 case $trace in
23727   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;;
23728   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;;
23729   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;;
23730   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;;
23731
23732   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;;
23733
23734   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;;
23735   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;;
23736   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;;
23737   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;;
23738
23739   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;;
23740   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;;
23741 esac
23742 if test x$gras_arch = xunknown ; then
23743   { echo "$as_me:$LINENO: result: damnit ($trace)" >&5
23744 echo "${ECHO_T}damnit ($trace)" >&6; }
23745   { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
23746 Please report this architecture trace ($trace) and what it corresponds to." >&5
23747 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
23748 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
23749    { (exit 1); exit 1; }; }
23750 fi
23751 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
23752
23753 cat >>confdefs.h <<_ACEOF
23754 #define GRAS_THISARCH $gras_arch
23755 _ACEOF
23756
23757 { echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
23758 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6; }
23759
23760
23761
23762 if test "$gras_size" = 32; then
23763   GRAS_ARCH_32_BITS_TRUE=
23764   GRAS_ARCH_32_BITS_FALSE='#'
23765 else
23766   GRAS_ARCH_32_BITS_TRUE='#'
23767   GRAS_ARCH_32_BITS_FALSE=
23768 fi
23769
23770
23771 { echo "$as_me:$LINENO: checking the maximal size of scalar" >&5
23772 echo $ECHO_N "checking the maximal size of scalar... $ECHO_C" >&6; }
23773 ac_cv_sizeof_max=0
23774 for s in $ac_cv_sizeof_char \
23775          $ac_cv_sizeof_short_int $ac_cv_sizeof_int $ac_cv_sizeof_long_int $ac_cv_sizeof_long_long_int \
23776          $ac_cv_sizeof_void_p $ac_cv_sizeof_void_LpR_LvoidR \
23777          4 8; do
23778
23779   if test $ac_cv_sizeof_max -lt $s ; then
23780     ac_cv_sizeof_max=$s
23781   fi
23782 done
23783 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_max" >&5
23784 echo "${ECHO_T}$ac_cv_sizeof_max" >&6; }
23785
23786 cat >>confdefs.h <<_ACEOF
23787 #define SIZEOF_MAX $ac_cv_sizeof_max
23788 _ACEOF
23789
23790
23791
23792 # Check architecture signature end
23793   { echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
23794 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6; }
23795    cat >conftest.$ac_ext <<_ACEOF
23796 /* confdefs.h.  */
23797 _ACEOF
23798 cat confdefs.h >>conftest.$ac_ext
23799 cat >>conftest.$ac_ext <<_ACEOF
23800 /* end confdefs.h.  */
23801 #include "confdefs.h"
23802         #include <sys/types.h>
23803         #include <stddef.h> /* offsetof() */
23804         struct s {char c; double d;};
23805
23806 int
23807 main ()
23808 {
23809 switch (0)
23810         case 0:
23811         case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
23812
23813   ;
23814   return 0;
23815 }
23816 _ACEOF
23817 rm -f conftest.$ac_objext
23818 if { (ac_try="$ac_compile"
23819 case "(($ac_try" in
23820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23821   *) ac_try_echo=$ac_try;;
23822 esac
23823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23824   (eval "$ac_compile") 2>conftest.er1
23825   ac_status=$?
23826   grep -v '^ *+' conftest.er1 >conftest.err
23827   rm -f conftest.er1
23828   cat conftest.err >&5
23829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830   (exit $ac_status); } && {
23831          test -z "$ac_c_werror_flag" ||
23832          test ! -s conftest.err
23833        } && test -s conftest.$ac_objext; then
23834   gras_struct_packed=yes
23835 else
23836   echo "$as_me: failed program was:" >&5
23837 sed 's/^/| /' conftest.$ac_ext >&5
23838
23839         gras_struct_packed=no
23840 fi
23841
23842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23843
23844    { echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
23845 echo "${ECHO_T}$gras_struct_packed" >&6; }
23846    if test x$gras_struct_packed = "xyes" ; then
23847      { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
23848 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
23849    { (exit 1); exit 1; }; }
23850    fi
23851
23852    { echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
23853 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6; }
23854    cat >conftest.$ac_ext <<_ACEOF
23855 /* confdefs.h.  */
23856 _ACEOF
23857 cat confdefs.h >>conftest.$ac_ext
23858 cat >>conftest.$ac_ext <<_ACEOF
23859 /* end confdefs.h.  */
23860 #include "confdefs.h"
23861         #include <sys/types.h>
23862         #include <stddef.h> /* offsetof() */
23863         struct s {double d; int i; char c;};
23864
23865 int
23866 main ()
23867 {
23868 switch (0)
23869         case 0:
23870         case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
23871
23872   ;
23873   return 0;
23874 }
23875 _ACEOF
23876 rm -f conftest.$ac_objext
23877 if { (ac_try="$ac_compile"
23878 case "(($ac_try" in
23879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23880   *) ac_try_echo=$ac_try;;
23881 esac
23882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23883   (eval "$ac_compile") 2>conftest.er1
23884   ac_status=$?
23885   grep -v '^ *+' conftest.er1 >conftest.err
23886   rm -f conftest.er1
23887   cat conftest.err >&5
23888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23889   (exit $ac_status); } && {
23890          test -z "$ac_c_werror_flag" ||
23891          test ! -s conftest.err
23892        } && test -s conftest.$ac_objext; then
23893   gras_struct_compact=yes
23894 else
23895   echo "$as_me: failed program was:" >&5
23896 sed 's/^/| /' conftest.$ac_ext >&5
23897
23898         gras_struct_compact=no
23899 fi
23900
23901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23902
23903    { echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
23904 echo "${ECHO_T}$gras_struct_compact" >&6; }
23905
23906    if test x$gras_struct_compact != xyes ; then
23907      { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
23908 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
23909    { (exit 1); exit 1; }; }
23910    fi
23911
23912 cat >>confdefs.h <<_ACEOF
23913 #define GRAS_STRUCT_COMPACT 1
23914 _ACEOF
23915
23916    { echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
23917 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6; }
23918
23919    cat >conftest.$ac_ext <<_ACEOF
23920 /* confdefs.h.  */
23921 _ACEOF
23922 cat confdefs.h >>conftest.$ac_ext
23923 cat >>conftest.$ac_ext <<_ACEOF
23924 /* end confdefs.h.  */
23925 #include "confdefs.h"
23926       #include <sys/types.h>
23927         #include <stddef.h> /* offsetof() */
23928         struct s { double d; int i; char c[6]; };
23929
23930 int
23931 main ()
23932 {
23933 switch (0)
23934       case 0:
23935       case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
23936
23937   ;
23938   return 0;
23939 }
23940 _ACEOF
23941 rm -f conftest.$ac_objext
23942 if { (ac_try="$ac_compile"
23943 case "(($ac_try" in
23944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23945   *) ac_try_echo=$ac_try;;
23946 esac
23947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23948   (eval "$ac_compile") 2>conftest.er1
23949   ac_status=$?
23950   grep -v '^ *+' conftest.er1 >conftest.err
23951   rm -f conftest.er1
23952   cat conftest.err >&5
23953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23954   (exit $ac_status); } && {
23955          test -z "$ac_c_werror_flag" ||
23956          test ! -s conftest.err
23957        } && test -s conftest.$ac_objext; then
23958   gras_array_straddle_struct=yes
23959 else
23960   echo "$as_me: failed program was:" >&5
23961 sed 's/^/| /' conftest.$ac_ext >&5
23962
23963         gras_array_straddle_struct=no
23964 fi
23965
23966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23967
23968    { echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
23969 echo "${ECHO_T}$gras_array_straddle_struct" >&6; }
23970
23971    if test x$gras_array_straddle_struct = xyes ; then
23972
23973 cat >>confdefs.h <<_ACEOF
23974 #define GRAS_ARRAY_STRADDLE_STRUCT 1
23975 _ACEOF
23976
23977    else
23978      { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
23979 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
23980    { (exit 1); exit 1; }; }
23981    fi
23982
23983
23984
23985
23986
23987   { echo "$as_me:$LINENO: result: " >&5
23988 echo "${ECHO_T}" >&6; }
23989   { echo "$as_me:$LINENO: result: ${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&5
23990 echo "${ECHO_T}${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&6; }
23991
23992
23993
23994
23995 { echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5
23996 echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6; }
23997 if test "${ac_cv_check_mcsc+set}" = set; then
23998   echo $ECHO_N "(cached) $ECHO_C" >&6
23999 else
24000
24001 if test "$cross_compiling" = yes; then
24002   ac_cv_check_mcsc=no
24003
24004 else
24005   cat >conftest.$ac_ext <<_ACEOF
24006 /* confdefs.h.  */
24007 _ACEOF
24008 cat confdefs.h >>conftest.$ac_ext
24009 cat >>conftest.$ac_ext <<_ACEOF
24010 /* end confdefs.h.  */
24011
24012
24013 #include <stdio.h>
24014 #include <stdlib.h>
24015 #include <ucontext.h>
24016
24017 ucontext_t uc_child;
24018 ucontext_t uc_main;
24019
24020 void child(void *arg)
24021 {
24022     if (arg != (void *)12345)
24023         exit(1);
24024     if (swapcontext(&uc_child, &uc_main) != 0)
24025         exit(2);
24026 }
24027
24028 int main(int argc, char *argv[])
24029 {
24030     FILE *fp;
24031     void *stack;
24032
24033     /* the default is that it fails */
24034     if ((fp = fopen("conftestval", "w")) == NULL)
24035         exit(3);
24036     fprintf(fp, "no\n");
24037     fclose(fp);
24038
24039     /* configure a child user-space context */
24040     if ((stack = malloc(64*1024)) == NULL)
24041         exit(4);
24042     if (getcontext(&uc_child) != 0)
24043         exit(5);
24044     uc_child.uc_link = NULL;
24045     uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
24046     uc_child.uc_stack.ss_size = 32*1024;
24047     uc_child.uc_stack.ss_flags = 0;
24048     makecontext(&uc_child, child, 2, (void *)12345);
24049
24050     /* switch into the user context */
24051     if (swapcontext(&uc_main, &uc_child) != 0)
24052         exit(6);
24053
24054     /* Fine, child came home */
24055     if ((fp = fopen("conftestval", "w")) == NULL)
24056         exit(7);
24057     fprintf(fp, "yes\n");
24058     fclose(fp);
24059
24060     /* die successfully */
24061     exit(0);
24062 }
24063
24064 _ACEOF
24065 rm -f conftest$ac_exeext
24066 if { (ac_try="$ac_link"
24067 case "(($ac_try" in
24068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24069   *) ac_try_echo=$ac_try;;
24070 esac
24071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24072   (eval "$ac_link") 2>&5
24073   ac_status=$?
24074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24075   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24076   { (case "(($ac_try" in
24077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24078   *) ac_try_echo=$ac_try;;
24079 esac
24080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24081   (eval "$ac_try") 2>&5
24082   ac_status=$?
24083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24084   (exit $ac_status); }; }; then
24085   ac_cv_check_mcsc=`cat conftestval`
24086 else
24087   echo "$as_me: program exited with status $ac_status" >&5
24088 echo "$as_me: failed program was:" >&5
24089 sed 's/^/| /' conftest.$ac_ext >&5
24090
24091 ( exit $ac_status )
24092 ac_cv_check_mcsc=no
24093 fi
24094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24095 fi
24096
24097
24098 fi
24099 { echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5
24100 echo "${ECHO_T}$ac_cv_check_mcsc" >&6; }
24101 if test ".$ac_cv_check_mcsc" = .yes; then
24102     mcsc=yes
24103 else
24104     mcsc=no
24105 fi
24106
24107
24108
24109 for ac_header in pthread.h
24110 do
24111 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24113   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24116   echo $ECHO_N "(cached) $ECHO_C" >&6
24117 fi
24118 ac_res=`eval echo '${'$as_ac_Header'}'`
24119                { echo "$as_me:$LINENO: result: $ac_res" >&5
24120 echo "${ECHO_T}$ac_res" >&6; }
24121 else
24122   # Is the header compilable?
24123 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24125 cat >conftest.$ac_ext <<_ACEOF
24126 /* confdefs.h.  */
24127 _ACEOF
24128 cat confdefs.h >>conftest.$ac_ext
24129 cat >>conftest.$ac_ext <<_ACEOF
24130 /* end confdefs.h.  */
24131 $ac_includes_default
24132 #include <$ac_header>
24133 _ACEOF
24134 rm -f conftest.$ac_objext
24135 if { (ac_try="$ac_compile"
24136 case "(($ac_try" in
24137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24138   *) ac_try_echo=$ac_try;;
24139 esac
24140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24141   (eval "$ac_compile") 2>conftest.er1
24142   ac_status=$?
24143   grep -v '^ *+' conftest.er1 >conftest.err
24144   rm -f conftest.er1
24145   cat conftest.err >&5
24146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24147   (exit $ac_status); } && {
24148          test -z "$ac_c_werror_flag" ||
24149          test ! -s conftest.err
24150        } && test -s conftest.$ac_objext; then
24151   ac_header_compiler=yes
24152 else
24153   echo "$as_me: failed program was:" >&5
24154 sed 's/^/| /' conftest.$ac_ext >&5
24155
24156         ac_header_compiler=no
24157 fi
24158
24159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24160 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24161 echo "${ECHO_T}$ac_header_compiler" >&6; }
24162
24163 # Is the header present?
24164 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24166 cat >conftest.$ac_ext <<_ACEOF
24167 /* confdefs.h.  */
24168 _ACEOF
24169 cat confdefs.h >>conftest.$ac_ext
24170 cat >>conftest.$ac_ext <<_ACEOF
24171 /* end confdefs.h.  */
24172 #include <$ac_header>
24173 _ACEOF
24174 if { (ac_try="$ac_cpp conftest.$ac_ext"
24175 case "(($ac_try" in
24176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24177   *) ac_try_echo=$ac_try;;
24178 esac
24179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24180   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24181   ac_status=$?
24182   grep -v '^ *+' conftest.er1 >conftest.err
24183   rm -f conftest.er1
24184   cat conftest.err >&5
24185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24186   (exit $ac_status); } >/dev/null && {
24187          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24188          test ! -s conftest.err
24189        }; then
24190   ac_header_preproc=yes
24191 else
24192   echo "$as_me: failed program was:" >&5
24193 sed 's/^/| /' conftest.$ac_ext >&5
24194
24195   ac_header_preproc=no
24196 fi
24197
24198 rm -f conftest.err conftest.$ac_ext
24199 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24200 echo "${ECHO_T}$ac_header_preproc" >&6; }
24201
24202 # So?  What about this header?
24203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24204   yes:no: )
24205     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24207     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24209     ac_header_preproc=yes
24210     ;;
24211   no:yes:* )
24212     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24214     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24215 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24216     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24218     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24219 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24220     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24222     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24224     ( cat <<\_ASBOX
24225 ## -------------------------------------------------- ##
24226 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24227 ## -------------------------------------------------- ##
24228 _ASBOX
24229      ) | sed "s/^/$as_me: WARNING:     /" >&2
24230     ;;
24231 esac
24232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24235   echo $ECHO_N "(cached) $ECHO_C" >&6
24236 else
24237   eval "$as_ac_Header=\$ac_header_preproc"
24238 fi
24239 ac_res=`eval echo '${'$as_ac_Header'}'`
24240                { echo "$as_me:$LINENO: result: $ac_res" >&5
24241 echo "${ECHO_T}$ac_res" >&6; }
24242
24243 fi
24244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24245   cat >>confdefs.h <<_ACEOF
24246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24247 _ACEOF
24248
24249 fi
24250
24251 done
24252
24253 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24254 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24255 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24256   echo $ECHO_N "(cached) $ECHO_C" >&6
24257 else
24258   ac_check_lib_save_LIBS=$LIBS
24259 LIBS="-lpthread  $LIBS"
24260 cat >conftest.$ac_ext <<_ACEOF
24261 /* confdefs.h.  */
24262 _ACEOF
24263 cat confdefs.h >>conftest.$ac_ext
24264 cat >>conftest.$ac_ext <<_ACEOF
24265 /* end confdefs.h.  */
24266
24267 /* Override any GCC internal prototype to avoid an error.
24268    Use char because int might match the return type of a GCC
24269    builtin and then its argument prototype would still apply.  */
24270 #ifdef __cplusplus
24271 extern "C"
24272 #endif
24273 char pthread_create ();
24274 int
24275 main ()
24276 {
24277 return pthread_create ();
24278   ;
24279   return 0;
24280 }
24281 _ACEOF
24282 rm -f conftest.$ac_objext conftest$ac_exeext
24283 if { (ac_try="$ac_link"
24284 case "(($ac_try" in
24285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24286   *) ac_try_echo=$ac_try;;
24287 esac
24288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24289   (eval "$ac_link") 2>conftest.er1
24290   ac_status=$?
24291   grep -v '^ *+' conftest.er1 >conftest.err
24292   rm -f conftest.er1
24293   cat conftest.err >&5
24294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24295   (exit $ac_status); } && {
24296          test -z "$ac_c_werror_flag" ||
24297          test ! -s conftest.err
24298        } && test -s conftest$ac_exeext &&
24299        $as_test_x conftest$ac_exeext; then
24300   ac_cv_lib_pthread_pthread_create=yes
24301 else
24302   echo "$as_me: failed program was:" >&5
24303 sed 's/^/| /' conftest.$ac_ext >&5
24304
24305         ac_cv_lib_pthread_pthread_create=no
24306 fi
24307
24308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24309       conftest$ac_exeext conftest.$ac_ext
24310 LIBS=$ac_check_lib_save_LIBS
24311 fi
24312 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24313 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24314 if test $ac_cv_lib_pthread_pthread_create = yes; then
24315   pthread=yes
24316 else
24317   pthread=no
24318 fi
24319
24320
24321
24322 if test ".$mcsc" = .yes; then
24323    mcsc=yes
24324 elif test ".$pthread" = .yes; then
24325    pthread=yes
24326 else
24327     ac_header=windows.h
24328     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24329     if test `eval echo '${'$as_ac_Header'}'` = yes; then
24330       windows_context=yes
24331     else
24332       { { echo "$as_me:$LINENO: error: no appropriate backend found" >&5
24333 echo "$as_me: error: no appropriate backend found" >&2;}
24334    { (exit 1); exit 1; }; }
24335     fi
24336 fi
24337
24338
24339 { echo "$as_me:$LINENO: checking what kind of backend should we use" >&5
24340 echo $ECHO_N "checking what kind of backend should we use... $ECHO_C" >&6; }
24341
24342
24343 # Check whether --with-pthread was given.
24344 if test "${with_pthread+set}" = set; then
24345   withval=$with_pthread; with_context=pthread
24346 fi
24347
24348
24349 # Check whether --with-pthread was given.
24350 if test "${with_pthread+set}" = set; then
24351   withval=$with_pthread; with_context=pthread
24352 fi
24353
24354
24355
24356 # Check whether --with-context was given.
24357 if test "${with_context+set}" = set; then
24358   withval=$with_context;
24359 else
24360   with_context=auto
24361 fi
24362
24363
24364 if test "x$with_context$mcsc" = "xucontextno" ; then
24365   { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
24366 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
24367    { (exit 77); exit 77; }; }
24368 fi
24369
24370 case $with_context in
24371  ucontext) ;;
24372  pthread) ;;
24373  pthreads) ;;
24374  windows) ;;
24375  auto) with_context=ucontext;;
24376  *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
24377 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
24378    { (exit 1); exit 1; }; } ;;
24379 esac
24380
24381 if test "x$with_context" = "xucontext" ; then
24382   if test ".$mcsc" = .yes; then
24383     { echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
24384 echo "${ECHO_T}found working ucontext. Great!" >&6; }
24385
24386 cat >>confdefs.h <<\_ACEOF
24387 #define CONTEXT_UCONTEXT 1
24388 _ACEOF
24389
24390   else
24391     if test ".$windows_context" = .yes ; then
24392       { echo "$as_me:$LINENO: result: use windows context portability layer." >&5
24393 echo "${ECHO_T}use windows context portability layer." >&6; }
24394       with_context=windows
24395     else
24396       { echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
24397 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6; }
24398       with_context=pthread
24399     fi
24400   fi
24401 fi
24402
24403 if test "x$with_context" = "xpthreads"; then
24404   with_context=pthread
24405 fi
24406 if test "x$with_context" = "xpthread"; then
24407
24408 for ac_header in pthread.h
24409 do
24410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24412   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24415   echo $ECHO_N "(cached) $ECHO_C" >&6
24416 fi
24417 ac_res=`eval echo '${'$as_ac_Header'}'`
24418                { echo "$as_me:$LINENO: result: $ac_res" >&5
24419 echo "${ECHO_T}$ac_res" >&6; }
24420 else
24421   # Is the header compilable?
24422 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24424 cat >conftest.$ac_ext <<_ACEOF
24425 /* confdefs.h.  */
24426 _ACEOF
24427 cat confdefs.h >>conftest.$ac_ext
24428 cat >>conftest.$ac_ext <<_ACEOF
24429 /* end confdefs.h.  */
24430 $ac_includes_default
24431 #include <$ac_header>
24432 _ACEOF
24433 rm -f conftest.$ac_objext
24434 if { (ac_try="$ac_compile"
24435 case "(($ac_try" in
24436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24437   *) ac_try_echo=$ac_try;;
24438 esac
24439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24440   (eval "$ac_compile") 2>conftest.er1
24441   ac_status=$?
24442   grep -v '^ *+' conftest.er1 >conftest.err
24443   rm -f conftest.er1
24444   cat conftest.err >&5
24445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24446   (exit $ac_status); } && {
24447          test -z "$ac_c_werror_flag" ||
24448          test ! -s conftest.err
24449        } && test -s conftest.$ac_objext; then
24450   ac_header_compiler=yes
24451 else
24452   echo "$as_me: failed program was:" >&5
24453 sed 's/^/| /' conftest.$ac_ext >&5
24454
24455         ac_header_compiler=no
24456 fi
24457
24458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24459 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24460 echo "${ECHO_T}$ac_header_compiler" >&6; }
24461
24462 # Is the header present?
24463 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24464 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24465 cat >conftest.$ac_ext <<_ACEOF
24466 /* confdefs.h.  */
24467 _ACEOF
24468 cat confdefs.h >>conftest.$ac_ext
24469 cat >>conftest.$ac_ext <<_ACEOF
24470 /* end confdefs.h.  */
24471 #include <$ac_header>
24472 _ACEOF
24473 if { (ac_try="$ac_cpp conftest.$ac_ext"
24474 case "(($ac_try" in
24475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24476   *) ac_try_echo=$ac_try;;
24477 esac
24478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24479   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24480   ac_status=$?
24481   grep -v '^ *+' conftest.er1 >conftest.err
24482   rm -f conftest.er1
24483   cat conftest.err >&5
24484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24485   (exit $ac_status); } >/dev/null && {
24486          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24487          test ! -s conftest.err
24488        }; then
24489   ac_header_preproc=yes
24490 else
24491   echo "$as_me: failed program was:" >&5
24492 sed 's/^/| /' conftest.$ac_ext >&5
24493
24494   ac_header_preproc=no
24495 fi
24496
24497 rm -f conftest.err conftest.$ac_ext
24498 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24499 echo "${ECHO_T}$ac_header_preproc" >&6; }
24500
24501 # So?  What about this header?
24502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24503   yes:no: )
24504     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24506     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24508     ac_header_preproc=yes
24509     ;;
24510   no:yes:* )
24511     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24513     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24514 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24515     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24517     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24518 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24519     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24521     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24523     ( cat <<\_ASBOX
24524 ## -------------------------------------------------- ##
24525 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24526 ## -------------------------------------------------- ##
24527 _ASBOX
24528      ) | sed "s/^/$as_me: WARNING:     /" >&2
24529     ;;
24530 esac
24531 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24534   echo $ECHO_N "(cached) $ECHO_C" >&6
24535 else
24536   eval "$as_ac_Header=\$ac_header_preproc"
24537 fi
24538 ac_res=`eval echo '${'$as_ac_Header'}'`
24539                { echo "$as_me:$LINENO: result: $ac_res" >&5
24540 echo "${ECHO_T}$ac_res" >&6; }
24541
24542 fi
24543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24544   cat >>confdefs.h <<_ACEOF
24545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24546 _ACEOF
24547
24548 fi
24549
24550 done
24551
24552
24553 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24554 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24555 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24556   echo $ECHO_N "(cached) $ECHO_C" >&6
24557 else
24558   ac_check_lib_save_LIBS=$LIBS
24559 LIBS="-lpthread  $LIBS"
24560 cat >conftest.$ac_ext <<_ACEOF
24561 /* confdefs.h.  */
24562 _ACEOF
24563 cat confdefs.h >>conftest.$ac_ext
24564 cat >>conftest.$ac_ext <<_ACEOF
24565 /* end confdefs.h.  */
24566
24567 /* Override any GCC internal prototype to avoid an error.
24568    Use char because int might match the return type of a GCC
24569    builtin and then its argument prototype would still apply.  */
24570 #ifdef __cplusplus
24571 extern "C"
24572 #endif
24573 char pthread_create ();
24574 int
24575 main ()
24576 {
24577 return pthread_create ();
24578   ;
24579   return 0;
24580 }
24581 _ACEOF
24582 rm -f conftest.$ac_objext conftest$ac_exeext
24583 if { (ac_try="$ac_link"
24584 case "(($ac_try" in
24585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24586   *) ac_try_echo=$ac_try;;
24587 esac
24588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24589   (eval "$ac_link") 2>conftest.er1
24590   ac_status=$?
24591   grep -v '^ *+' conftest.er1 >conftest.err
24592   rm -f conftest.er1
24593   cat conftest.err >&5
24594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595   (exit $ac_status); } && {
24596          test -z "$ac_c_werror_flag" ||
24597          test ! -s conftest.err
24598        } && test -s conftest$ac_exeext &&
24599        $as_test_x conftest$ac_exeext; then
24600   ac_cv_lib_pthread_pthread_create=yes
24601 else
24602   echo "$as_me: failed program was:" >&5
24603 sed 's/^/| /' conftest.$ac_ext >&5
24604
24605         ac_cv_lib_pthread_pthread_create=no
24606 fi
24607
24608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24609       conftest$ac_exeext conftest.$ac_ext
24610 LIBS=$ac_check_lib_save_LIBS
24611 fi
24612 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24613 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24614 if test $ac_cv_lib_pthread_pthread_create = yes; then
24615   cat >>confdefs.h <<_ACEOF
24616 #define HAVE_LIBPTHREAD 1
24617 _ACEOF
24618
24619   LIBS="-lpthread $LIBS"
24620
24621 else
24622   { { echo "$as_me:$LINENO: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&5
24623 echo "$as_me: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&2;}
24624    { (exit 1); exit 1; }; }
24625 fi
24626
24627
24628 cat >>confdefs.h <<\_ACEOF
24629 #define CONTEXT_THREADS 1
24630 _ACEOF
24631
24632   { echo "$as_me:$LINENO: result: You have pthreads. Let's use them." >&5
24633 echo "${ECHO_T}You have pthreads. Let's use them." >&6; }
24634 fi
24635
24636
24637 if test "x$with_context" = "xucontext" ; then
24638   { echo "$as_me:$LINENO: checking for direction of stack growth" >&5
24639 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6; }
24640 if test "${ac_cv_check_stackgrowth+set}" = set; then
24641   echo $ECHO_N "(cached) $ECHO_C" >&6
24642 else
24643
24644 cross_compiling=no
24645 if test "$cross_compiling" = yes; then
24646   ac_cv_check_stackgrowth=down
24647
24648 else
24649   cat >conftest.$ac_ext <<_ACEOF
24650 /* confdefs.h.  */
24651 _ACEOF
24652 cat confdefs.h >>conftest.$ac_ext
24653 cat >>conftest.$ac_ext <<_ACEOF
24654 /* end confdefs.h.  */
24655
24656 #include <stdio.h>
24657 #include <stdlib.h>
24658 static int iterate = 10;
24659 static int growsdown(int *x)
24660 {
24661     auto int y;
24662     y = (x > &y);
24663     if (--iterate > 0)
24664         y = growsdown(&y);
24665     if (y != (x > &y))
24666         exit(1);
24667     return y;
24668 }
24669 int main(int argc, char *argv[])
24670 {
24671     FILE *f;
24672     auto int x;
24673     if ((f = fopen("conftestval", "w")) == NULL)
24674         exit(1);
24675     fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
24676     fclose(f);
24677     exit(0);
24678 }
24679
24680
24681 _ACEOF
24682 rm -f conftest$ac_exeext
24683 if { (ac_try="$ac_link"
24684 case "(($ac_try" in
24685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24686   *) ac_try_echo=$ac_try;;
24687 esac
24688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24689   (eval "$ac_link") 2>&5
24690   ac_status=$?
24691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24693   { (case "(($ac_try" in
24694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24695   *) ac_try_echo=$ac_try;;
24696 esac
24697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24698   (eval "$ac_try") 2>&5
24699   ac_status=$?
24700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24701   (exit $ac_status); }; }; then
24702   ac_cv_check_stackgrowth=`cat conftestval`
24703 else
24704   echo "$as_me: program exited with status $ac_status" >&5
24705 echo "$as_me: failed program was:" >&5
24706 sed 's/^/| /' conftest.$ac_ext >&5
24707
24708 ( exit $ac_status )
24709 ac_cv_check_stackgrowth=down
24710 fi
24711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24712 fi
24713
24714
24715 fi
24716 { echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
24717 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6; }
24718 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24719     val="-1"
24720 else
24721     val="+1"
24722 fi
24723
24724 cat >>confdefs.h <<_ACEOF
24725 #define PTH_STACKGROWTH $val
24726 _ACEOF
24727
24728
24729   if test ".$ac_cv_check_stackgrowth" = ".down"; then
24730       PTH_STACK_GROWTH="down"
24731   else
24732       PTH_STACK_GROWTH="up"
24733   fi
24734
24735
24736
24737
24738
24739
24740 for ac_func in makecontext
24741 do
24742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24743 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24745 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24746   echo $ECHO_N "(cached) $ECHO_C" >&6
24747 else
24748   cat >conftest.$ac_ext <<_ACEOF
24749 /* confdefs.h.  */
24750 _ACEOF
24751 cat confdefs.h >>conftest.$ac_ext
24752 cat >>conftest.$ac_ext <<_ACEOF
24753 /* end confdefs.h.  */
24754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24755    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24756 #define $ac_func innocuous_$ac_func
24757
24758 /* System header to define __stub macros and hopefully few prototypes,
24759     which can conflict with char $ac_func (); below.
24760     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24761     <limits.h> exists even on freestanding compilers.  */
24762
24763 #ifdef __STDC__
24764 # include <limits.h>
24765 #else
24766 # include <assert.h>
24767 #endif
24768
24769 #undef $ac_func
24770
24771 /* Override any GCC internal prototype to avoid an error.
24772    Use char because int might match the return type of a GCC
24773    builtin and then its argument prototype would still apply.  */
24774 #ifdef __cplusplus
24775 extern "C"
24776 #endif
24777 char $ac_func ();
24778 /* The GNU C library defines this for functions which it implements
24779     to always fail with ENOSYS.  Some functions are actually named
24780     something starting with __ and the normal name is an alias.  */
24781 #if defined __stub_$ac_func || defined __stub___$ac_func
24782 choke me
24783 #endif
24784
24785 int
24786 main ()
24787 {
24788 return $ac_func ();
24789   ;
24790   return 0;
24791 }
24792 _ACEOF
24793 rm -f conftest.$ac_objext conftest$ac_exeext
24794 if { (ac_try="$ac_link"
24795 case "(($ac_try" in
24796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24797   *) ac_try_echo=$ac_try;;
24798 esac
24799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24800   (eval "$ac_link") 2>conftest.er1
24801   ac_status=$?
24802   grep -v '^ *+' conftest.er1 >conftest.err
24803   rm -f conftest.er1
24804   cat conftest.err >&5
24805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806   (exit $ac_status); } && {
24807          test -z "$ac_c_werror_flag" ||
24808          test ! -s conftest.err
24809        } && test -s conftest$ac_exeext &&
24810        $as_test_x conftest$ac_exeext; then
24811   eval "$as_ac_var=yes"
24812 else
24813   echo "$as_me: failed program was:" >&5
24814 sed 's/^/| /' conftest.$ac_ext >&5
24815
24816         eval "$as_ac_var=no"
24817 fi
24818
24819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24820       conftest$ac_exeext conftest.$ac_ext
24821 fi
24822 ac_res=`eval echo '${'$as_ac_var'}'`
24823                { echo "$as_me:$LINENO: result: $ac_res" >&5
24824 echo "${ECHO_T}$ac_res" >&6; }
24825 if test `eval echo '${'$as_ac_var'}'` = yes; then
24826   cat >>confdefs.h <<_ACEOF
24827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24828 _ACEOF
24829
24830 fi
24831 done
24832
24833
24834 { echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
24835 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6; }
24836 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
24837   echo $ECHO_N "(cached) $ECHO_C" >&6
24838 else
24839
24840 if test ".$ac_cv_func_makecontext" = .no; then
24841         ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
24842 else
24843         OCFLAGS="$CFLAGS"
24844     CFLAGS="$CFLAGS -DTEST_makecontext"
24845     cross_compiling=no
24846         if test "$cross_compiling" = yes; then
24847
24848 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
24849
24850 else
24851   cat >conftest.$ac_ext <<_ACEOF
24852 /* confdefs.h.  */
24853 _ACEOF
24854 cat confdefs.h >>conftest.$ac_ext
24855 cat >>conftest.$ac_ext <<_ACEOF
24856 /* end confdefs.h.  */
24857
24858 #include <stdio.h>
24859 #include <stdlib.h>
24860 #include <string.h>
24861 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
24862 #include <sys/types.h>
24863 #include <signal.h>
24864 #include <unistd.h>
24865 #endif
24866 #if defined(TEST_makecontext)
24867 #include <ucontext.h>
24868 #endif
24869 union alltypes {
24870     long   l;
24871     double d;
24872     void  *vp;
24873     void (*fp)(void);
24874     char  *cp;
24875 };
24876 static volatile char *handler_addr = (char *)0xDEAD;
24877 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
24878 static volatile int handler_done = 0;
24879 void handler(int sig)
24880 {
24881     char garbage[1024];
24882     int i;
24883     auto int dummy;
24884     for (i = 0; i < 1024; i++)
24885         garbage[i] = 'X';
24886     handler_addr = (char *)&dummy;
24887     handler_done = 1;
24888     return;
24889 }
24890 #endif
24891 #if defined(TEST_makecontext)
24892 static ucontext_t uc_handler;
24893 static ucontext_t uc_main;
24894 void handler(void)
24895 {
24896     char garbage[1024];
24897     int i;
24898     auto int dummy;
24899     for (i = 0; i < 1024; i++)
24900         garbage[i] = 'X';
24901     handler_addr = (char *)&dummy;
24902     swapcontext(&uc_handler, &uc_main);
24903     return;
24904 }
24905 #endif
24906 int main(int argc, char *argv[])
24907 {
24908     FILE *f;
24909     char *skaddr;
24910     char *skbuf;
24911     int sksize;
24912     char result[1024];
24913     int i;
24914     sksize = 32768;
24915     skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
24916     if (skbuf == NULL)
24917         exit(1);
24918     for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
24919         skbuf[i] = 'A';
24920     skaddr = skbuf+sizeof(union alltypes);
24921 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
24922     {
24923         struct sigaction sa;
24924 #if defined(TEST_sigstack)
24925         struct sigstack ss;
24926 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
24927         stack_t ss;
24928 #else
24929         struct sigaltstack ss;
24930 #endif
24931 #if defined(TEST_sigstack)
24932         ss.ss_sp      = (void *)(skaddr + sksize);
24933         ss.ss_onstack = 0;
24934         if (sigstack(&ss, NULL) < 0)
24935             exit(1);
24936 #elif defined(TEST_sigaltstack)
24937         ss.ss_sp    = (void *)(skaddr + sksize);
24938         ss.ss_size  = sksize;
24939         ss.ss_flags = 0;
24940         if (sigaltstack(&ss, NULL) < 0)
24941             exit(1);
24942 #endif
24943         memset((void *)&sa, 0, sizeof(struct sigaction));
24944         sa.sa_handler = handler;
24945         sa.sa_flags = SA_ONSTACK;
24946         sigemptyset(&sa.sa_mask);
24947         sigaction(SIGUSR1, &sa, NULL);
24948         kill(getpid(), SIGUSR1);
24949         while (!handler_done)
24950             /*nop*/;
24951     }
24952 #endif
24953 #if defined(TEST_makecontext)
24954     {
24955         if (getcontext(&uc_handler) != 0)
24956             exit(1);
24957         uc_handler.uc_link = NULL;
24958         uc_handler.uc_stack.ss_sp    = (void *)(skaddr + sksize);
24959         uc_handler.uc_stack.ss_size  = sksize;
24960         uc_handler.uc_stack.ss_flags = 0;
24961         makecontext(&uc_handler, handler, 1);
24962         swapcontext(&uc_main, &uc_handler);
24963     }
24964 #endif
24965     if (handler_addr == (char *)0xDEAD)
24966         exit(1);
24967     if (handler_addr < skaddr+sksize) {
24968         /* stack was placed into lower area */
24969         if (*(skaddr+sksize) != 'A')
24970              sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
24971                      sizeof(union alltypes), sizeof(union alltypes));
24972         else
24973              strcpy(result, "(skaddr)+(sksize),(sksize)");
24974     }
24975     else {
24976         /* stack was placed into higher area */
24977         if (*(skaddr+sksize*2) != 'A')
24978             sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
24979         else
24980             strcpy(result, "(skaddr),(sksize)");
24981     }
24982     if ((f = fopen("conftestval", "w")) == NULL)
24983         exit(1);
24984     fprintf(f, "%s\n", result);
24985     fclose(f);
24986     exit(0);
24987 }
24988
24989 _ACEOF
24990 rm -f conftest$ac_exeext
24991 if { (ac_try="$ac_link"
24992 case "(($ac_try" in
24993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24994   *) ac_try_echo=$ac_try;;
24995 esac
24996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24997   (eval "$ac_link") 2>&5
24998   ac_status=$?
24999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25000   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25001   { (case "(($ac_try" in
25002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25003   *) ac_try_echo=$ac_try;;
25004 esac
25005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25006   (eval "$ac_try") 2>&5
25007   ac_status=$?
25008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009   (exit $ac_status); }; }; then
25010
25011 ac_cv_stacksetup_makecontext=`cat conftestval`
25012 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
25013
25014 else
25015   echo "$as_me: program exited with status $ac_status" >&5
25016 echo "$as_me: failed program was:" >&5
25017 sed 's/^/| /' conftest.$ac_ext >&5
25018
25019 ( exit $ac_status )
25020
25021 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25022
25023 fi
25024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25025 fi
25026
25027
25028 CFLAGS="$OCFLAGS"
25029
25030 fi
25031 fi
25032 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
25033 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
25034 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
25035 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
25036 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
25037 { echo "$as_me:$LINENO: result: $type" >&5
25038 echo "${ECHO_T}$type" >&6; }
25039 if test ".$verbose" = .yes; then
25040     { echo "$as_me:$LINENO: result:   $pth_skaddr_makecontext" >&5
25041 echo "${ECHO_T}  $pth_skaddr_makecontext" >&6; }
25042 fi
25043
25044 if test ".$verbose" = .yes; then
25045     { echo "$as_me:$LINENO: result:   $pth_sksize_makecontext" >&5
25046 echo "${ECHO_T}  $pth_sksize_makecontext" >&6; }
25047 fi
25048
25049
25050 fi
25051
25052 #########################################
25053 ## Check for libraries extra-dependencies
25054 ##
25055
25056
25057   { echo "$as_me:$LINENO: result: " >&5
25058 echo "${ECHO_T}" >&6; }
25059   { echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
25060 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6; }
25061
25062
25063 SIMGRID_DEP=""
25064 GRAS_DEP=""
25065
25066 #########################################
25067 ## Build optional modules (gtnets)
25068 ##
25069
25070 # Check whether --with-gtnets was given.
25071 if test "${with_gtnets+set}" = set; then
25072   withval=$with_gtnets; gtnets_path="$withval"
25073 else
25074   gtnets_path="NO"
25075 fi
25076
25077 if test "x$gtnets_path" = "xNO" ; then
25078   { echo "$as_me:$LINENO: result: Eventually you will come to GTNetS." >&5
25079 echo "${ECHO_T}Eventually you will come to GTNetS." >&6; }
25080 else
25081   { echo "$as_me:$LINENO: result: ***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. ****" >&5
25082 echo "${ECHO_T}***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. ****" >&6; }
25083
25084 cat >>confdefs.h <<\_ACEOF
25085 #define USE_GTNETS 1
25086 _ACEOF
25087
25088   if ! test -e $gtnets_path ; then
25089     { { echo "$as_me:$LINENO: error: Provided path to GTNetS include files ($gtnets_path) do not exist!" >&5
25090 echo "$as_me: error: Provided path to GTNetS include files ($gtnets_path) do not exist!" >&2;}
25091    { (exit 1); exit 1; }; }
25092   fi
25093   GTNETS_CFLAGS=-I$gtnets_path/include
25094
25095   GTNETS_LDFLAGS=-L$gtnets_path/lib
25096
25097   SIMGRID_DEP="$SIMGRID_DEP $GTNETS_LDFLAGS -lgtnets"
25098 fi
25099
25100
25101 if test "x$gtnets_path" != xNO; then
25102   USE_GTNETS_TRUE=
25103   USE_GTNETS_FALSE='#'
25104 else
25105   USE_GTNETS_TRUE='#'
25106   USE_GTNETS_FALSE=
25107 fi
25108
25109
25110 if test xpthread=xyes ; then
25111   # if the pthreads are usable
25112   if test "x$with_context" = "xpthread" ; then
25113     # if we use them to implement the xbt_context
25114     SIMGRID_DEP="-lpthread"
25115   fi
25116   # we need them in any case for the gras lib (which is multithreaded)
25117   GRAS_DEP="-lpthread"
25118 fi
25119
25120 { echo "$as_me:$LINENO: checking for csdp" >&5
25121 echo $ECHO_N "checking for csdp... $ECHO_C" >&6; }
25122 sdp=no
25123 { echo "$as_me:$LINENO: checking for sdp in -lsdp" >&5
25124 echo $ECHO_N "checking for sdp in -lsdp... $ECHO_C" >&6; }
25125 if test "${ac_cv_lib_sdp_sdp+set}" = set; then
25126   echo $ECHO_N "(cached) $ECHO_C" >&6
25127 else
25128   ac_check_lib_save_LIBS=$LIBS
25129 LIBS="-lsdp -llapack -lblas -lm $LIBS"
25130 cat >conftest.$ac_ext <<_ACEOF
25131 /* confdefs.h.  */
25132 _ACEOF
25133 cat confdefs.h >>conftest.$ac_ext
25134 cat >>conftest.$ac_ext <<_ACEOF
25135 /* end confdefs.h.  */
25136
25137 /* Override any GCC internal prototype to avoid an error.
25138    Use char because int might match the return type of a GCC
25139    builtin and then its argument prototype would still apply.  */
25140 #ifdef __cplusplus
25141 extern "C"
25142 #endif
25143 char sdp ();
25144 int
25145 main ()
25146 {
25147 return sdp ();
25148   ;
25149   return 0;
25150 }
25151 _ACEOF
25152 rm -f conftest.$ac_objext conftest$ac_exeext
25153 if { (ac_try="$ac_link"
25154 case "(($ac_try" in
25155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25156   *) ac_try_echo=$ac_try;;
25157 esac
25158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25159   (eval "$ac_link") 2>conftest.er1
25160   ac_status=$?
25161   grep -v '^ *+' conftest.er1 >conftest.err
25162   rm -f conftest.er1
25163   cat conftest.err >&5
25164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165   (exit $ac_status); } && {
25166          test -z "$ac_c_werror_flag" ||
25167          test ! -s conftest.err
25168        } && test -s conftest$ac_exeext &&
25169        $as_test_x conftest$ac_exeext; then
25170   ac_cv_lib_sdp_sdp=yes
25171 else
25172   echo "$as_me: failed program was:" >&5
25173 sed 's/^/| /' conftest.$ac_ext >&5
25174
25175         ac_cv_lib_sdp_sdp=no
25176 fi
25177
25178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25179       conftest$ac_exeext conftest.$ac_ext
25180 LIBS=$ac_check_lib_save_LIBS
25181 fi
25182 { echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_sdp" >&5
25183 echo "${ECHO_T}$ac_cv_lib_sdp_sdp" >&6; }
25184 if test $ac_cv_lib_sdp_sdp = yes; then
25185   csdp=yes
25186 else
25187   csdp=no
25188 fi
25189
25190 if test "x$csdp" = xyes; then
25191   SIMGRID_DEP="$SIMGRID_DEP -lsdp -llapack -lblas -lm"
25192   { echo "$as_me:$LINENO: result: Found working sdp library." >&5
25193 echo "${ECHO_T}Found working sdp library." >&6; }
25194
25195 cat >>confdefs.h <<\_ACEOF
25196 #define HAVE_SDP 1
25197 _ACEOF
25198
25199 else
25200   { echo "$as_me:$LINENO: result: Could not find any working sdp library." >&5
25201 echo "${ECHO_T}Could not find any working sdp library." >&6; }
25202 fi;
25203
25204
25205 if test x$csdp != xno; then
25206   HAVE_SDP_TRUE=
25207   HAVE_SDP_FALSE='#'
25208 else
25209   HAVE_SDP_TRUE='#'
25210   HAVE_SDP_FALSE=
25211 fi
25212
25213
25214
25215
25216 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25217 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
25218 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25219   echo $ECHO_N "(cached) $ECHO_C" >&6
25220 else
25221   ac_check_lib_save_LIBS=$LIBS
25222 LIBS="-lnsl  $LIBS"
25223 cat >conftest.$ac_ext <<_ACEOF
25224 /* confdefs.h.  */
25225 _ACEOF
25226 cat confdefs.h >>conftest.$ac_ext
25227 cat >>conftest.$ac_ext <<_ACEOF
25228 /* end confdefs.h.  */
25229
25230 /* Override any GCC internal prototype to avoid an error.
25231    Use char because int might match the return type of a GCC
25232    builtin and then its argument prototype would still apply.  */
25233 #ifdef __cplusplus
25234 extern "C"
25235 #endif
25236 char gethostbyname ();
25237 int
25238 main ()
25239 {
25240 return gethostbyname ();
25241   ;
25242   return 0;
25243 }
25244 _ACEOF
25245 rm -f conftest.$ac_objext conftest$ac_exeext
25246 if { (ac_try="$ac_link"
25247 case "(($ac_try" in
25248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25249   *) ac_try_echo=$ac_try;;
25250 esac
25251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25252   (eval "$ac_link") 2>conftest.er1
25253   ac_status=$?
25254   grep -v '^ *+' conftest.er1 >conftest.err
25255   rm -f conftest.er1
25256   cat conftest.err >&5
25257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258   (exit $ac_status); } && {
25259          test -z "$ac_c_werror_flag" ||
25260          test ! -s conftest.err
25261        } && test -s conftest$ac_exeext &&
25262        $as_test_x conftest$ac_exeext; then
25263   ac_cv_lib_nsl_gethostbyname=yes
25264 else
25265   echo "$as_me: failed program was:" >&5
25266 sed 's/^/| /' conftest.$ac_ext >&5
25267
25268         ac_cv_lib_nsl_gethostbyname=no
25269 fi
25270
25271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25272       conftest$ac_exeext conftest.$ac_ext
25273 LIBS=$ac_check_lib_save_LIBS
25274 fi
25275 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25276 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
25277 if test $ac_cv_lib_nsl_gethostbyname = yes; then
25278   GRAS_DEP="$GRAS_DEP -lnsl"
25279 fi
25280
25281 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25282 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
25283 if test "${ac_cv_lib_socket_connect+set}" = set; then
25284   echo $ECHO_N "(cached) $ECHO_C" >&6
25285 else
25286   ac_check_lib_save_LIBS=$LIBS
25287 LIBS="-lsocket  $LIBS"
25288 cat >conftest.$ac_ext <<_ACEOF
25289 /* confdefs.h.  */
25290 _ACEOF
25291 cat confdefs.h >>conftest.$ac_ext
25292 cat >>conftest.$ac_ext <<_ACEOF
25293 /* end confdefs.h.  */
25294
25295 /* Override any GCC internal prototype to avoid an error.
25296    Use char because int might match the return type of a GCC
25297    builtin and then its argument prototype would still apply.  */
25298 #ifdef __cplusplus
25299 extern "C"
25300 #endif
25301 char connect ();
25302 int
25303 main ()
25304 {
25305 return connect ();
25306   ;
25307   return 0;
25308 }
25309 _ACEOF
25310 rm -f conftest.$ac_objext conftest$ac_exeext
25311 if { (ac_try="$ac_link"
25312 case "(($ac_try" in
25313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25314   *) ac_try_echo=$ac_try;;
25315 esac
25316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25317   (eval "$ac_link") 2>conftest.er1
25318   ac_status=$?
25319   grep -v '^ *+' conftest.er1 >conftest.err
25320   rm -f conftest.er1
25321   cat conftest.err >&5
25322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25323   (exit $ac_status); } && {
25324          test -z "$ac_c_werror_flag" ||
25325          test ! -s conftest.err
25326        } && test -s conftest$ac_exeext &&
25327        $as_test_x conftest$ac_exeext; then
25328   ac_cv_lib_socket_connect=yes
25329 else
25330   echo "$as_me: failed program was:" >&5
25331 sed 's/^/| /' conftest.$ac_ext >&5
25332
25333         ac_cv_lib_socket_connect=no
25334 fi
25335
25336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25337       conftest$ac_exeext conftest.$ac_ext
25338 LIBS=$ac_check_lib_save_LIBS
25339 fi
25340 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25341 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
25342 if test $ac_cv_lib_socket_connect = yes; then
25343   GRAS_DEP="$GRAS_DEP -lsocket"
25344 fi
25345
25346
25347 { echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
25348 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6; }
25349 case $host_os in
25350   *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32";
25351             AM_CFLAGS=-DDLL_EXPORT
25352
25353             cat >>confdefs.h <<\_ACEOF
25354 #define CONTEXT_THREADS 1
25355 _ACEOF
25356 ;;
25357 esac
25358
25359 if test "x$GRAS_DEP" = x; then
25360    { echo "$as_me:$LINENO: result: none" >&5
25361 echo "${ECHO_T}none" >&6; }
25362 else
25363    { echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
25364 echo "${ECHO_T}$GRAS_DEP" >&6; }
25365 fi
25366
25367
25368
25369 ##############################################
25370 ## Enhance maintainer mode and SUBST variables
25371 ## (must be placed after any compilation tests since our overprotective flags
25372 ##  let some tests fail)
25373
25374 # Check whether we are doing a regular build or a GRAMINE (minimal) one
25375 # Next line is modified by sed when building gramine source tree
25376 gramine_mode=no
25377 if test x$gramine_mode = xyes
25378 then
25379   USE_MAINTAINER_MODE=no
25380 fi
25381
25382
25383 if test x$gramine_mode != xno; then
25384   GRAMINE_MODE_TRUE=
25385   GRAMINE_MODE_FALSE='#'
25386 else
25387   GRAMINE_MODE_TRUE='#'
25388   GRAMINE_MODE_FALSE=
25389 fi
25390
25391
25392
25393 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
25394 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
25395     # Check whether --enable-maintainer-mode was given.
25396 if test "${enable_maintainer_mode+set}" = set; then
25397   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
25398 else
25399   USE_MAINTAINER_MODE=no
25400 fi
25401
25402   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
25403 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
25404
25405
25406 if test $USE_MAINTAINER_MODE = yes; then
25407   MAINTAINER_MODE_TRUE=
25408   MAINTAINER_MODE_FALSE='#'
25409 else
25410   MAINTAINER_MODE_TRUE='#'
25411   MAINTAINER_MODE_FALSE=
25412 fi
25413
25414   MAINT=$MAINTAINER_MODE_TRUE
25415
25416
25417 if test x$USE_MAINTAINER_MODE = xyes
25418 then
25419    # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
25420    enable_compile_warnings=yes
25421 fi
25422
25423   # Check whether --enable-compile-warnings was given.
25424 if test "${enable_compile_warnings+set}" = set; then
25425   enableval=$enable_compile_warnings; enable_compile_warnings=$enableval
25426 else
25427   enable_compile_warnings=no
25428 fi
25429
25430
25431   # Check whether --enable-compile-optimizations was given.
25432 if test "${enable_compile_optimizations+set}" = set; then
25433   enableval=$enable_compile_optimizations; enable_compile_optimizations=$enableval
25434 else
25435   enable_compile_optimizations=auto
25436 fi
25437
25438
25439   if test "x$cflags_set" != "xyes" ; then
25440     # if user didn't specify CFLAGS explicitely
25441
25442     # AC PROG CC tests whether -g is accepted.
25443     # Cool, but it also tries to set -O2. I don't want it with gcc
25444     saveCFLAGS="$CFLAGS"
25445     CFLAGS=
25446     case " $saveCFLAGS " in
25447     *-g*) CFLAGS="-g" ;;
25448     esac
25449     case " $saveCFLAGS " in
25450     *-O2*) test "x$CC" = xgcc || CFLAGS="$CFLAGS -O2" ;;
25451     esac
25452
25453     # damn AC PROG CC, why did you set -O??
25454     CFLAGS="-g"
25455   fi
25456
25457   if test "x$enable_compile_warnings" = "xyes" ; then
25458     { echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
25459 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6; }
25460     warnCFLAGS=
25461     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25462       case " $CFLAGS " in
25463       *-Wall*) ;;
25464       *) warnCFLAGS="-Wall -Wunused" ;;
25465       esac
25466
25467       ## -W is not all that useful.  And it cannot be controlled
25468       ## with individual -Wno-xxx flags, unlike -Wall
25469
25470       ## -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
25471       ## -Wshadow chokes on try{ try{} } constructs
25472       if test "x$enable_compile_warnings" = "xyes"; then
25473         warnCFLAGS=`echo $warnCFLAGS  -Wmissing-prototypes -Wmissing-declarations \
25474         -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
25475         -Wno-unused-function  \
25476         -Werror \
25477         | sed 's/ +/ /g'`
25478         # -Wno-unused-variable  -Wno-unused-label
25479       fi
25480     fi
25481     { echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
25482 echo "${ECHO_T}$warnCFLAGS" >&6; }
25483     # placed before since gcc remembers the last one on conflict
25484     CFLAGS="$warnCFLAGS $CFLAGS"
25485   fi
25486
25487   if test "x$enable_compile_optimizations" = "xyes" ||
25488      test "x$enable_compile_optimizations" = "xauto" ; then
25489     { echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
25490 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6; }
25491     optCFLAGS=
25492     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25493         case " $CFLAGS " in
25494         *-O*) ;;
25495         *) optCFLAGS="$optCFLAGS -O3" ;;
25496         esac
25497         optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
25498
25499         GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
25500         GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
25501         if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" != "x2" ; then
25502           # avoid gcc bug #12828, which is fixed in 3.4.0, but this version
25503           # isn't propagated enough to desserve an extra check
25504
25505           # Note that the flag didn't exist before gcc 3.0
25506           optCFLAGS="$optCFLAGS -fno-loop-optimize"
25507         fi
25508             fi
25509     { echo "$as_me:$LINENO: result: $optCFLAGS" >&5
25510 echo "${ECHO_T}$optCFLAGS" >&6; }
25511     # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
25512     if test "x$cflags_set" != "xyes" ; then
25513       CFLAGS="$optCFLAGS $CFLAGS"
25514     fi
25515   fi
25516
25517   if test x$lt_cv_prog_gnu_ld = xyes ; then
25518     LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
25519   else
25520     LD_DYNAMIC_FLAGS=
25521   fi
25522
25523
25524
25525
25526
25527
25528
25529
25530
25531
25532
25533
25534 #####################
25535 ## Check for programs
25536 ##
25537
25538
25539   { echo "$as_me:$LINENO: result: " >&5
25540 echo "${ECHO_T}" >&6; }
25541   { echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
25542 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6; }
25543
25544 # Extract the first word of "bash", so it can be a program name with args.
25545 set dummy bash; ac_word=$2
25546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25548 if test "${ac_cv_prog_BASH+set}" = set; then
25549   echo $ECHO_N "(cached) $ECHO_C" >&6
25550 else
25551   if test -n "$BASH"; then
25552   ac_cv_prog_BASH="$BASH" # Let the user override the test.
25553 else
25554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25555 for as_dir in $PATH
25556 do
25557   IFS=$as_save_IFS
25558   test -z "$as_dir" && as_dir=.
25559   for ac_exec_ext in '' $ac_executable_extensions; do
25560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25561     ac_cv_prog_BASH="`which bash`"
25562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25563     break 2
25564   fi
25565 done
25566 done
25567 IFS=$as_save_IFS
25568
25569   test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
25570 fi
25571 fi
25572 BASH=$ac_cv_prog_BASH
25573 if test -n "$BASH"; then
25574   { echo "$as_me:$LINENO: result: $BASH" >&5
25575 echo "${ECHO_T}$BASH" >&6; }
25576 else
25577   { echo "$as_me:$LINENO: result: no" >&5
25578 echo "${ECHO_T}no" >&6; }
25579 fi
25580
25581
25582 WARNING="This file is generated, do not edit"
25583
25584
25585
25586 # Can we rebuild the parsers?
25587 # We really want flex and refuse other lex. So, the parser is portable and
25588 # does not induce extra lib dependency
25589 for ac_prog in flex lex
25590 do
25591   # Extract the first word of "$ac_prog", so it can be a program name with args.
25592 set dummy $ac_prog; ac_word=$2
25593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25595 if test "${ac_cv_prog_LEX+set}" = set; then
25596   echo $ECHO_N "(cached) $ECHO_C" >&6
25597 else
25598   if test -n "$LEX"; then
25599   ac_cv_prog_LEX="$LEX" # Let the user override the test.
25600 else
25601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25602 for as_dir in $PATH
25603 do
25604   IFS=$as_save_IFS
25605   test -z "$as_dir" && as_dir=.
25606   for ac_exec_ext in '' $ac_executable_extensions; do
25607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25608     ac_cv_prog_LEX="$ac_prog"
25609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25610     break 2
25611   fi
25612 done
25613 done
25614 IFS=$as_save_IFS
25615
25616 fi
25617 fi
25618 LEX=$ac_cv_prog_LEX
25619 if test -n "$LEX"; then
25620   { echo "$as_me:$LINENO: result: $LEX" >&5
25621 echo "${ECHO_T}$LEX" >&6; }
25622 else
25623   { echo "$as_me:$LINENO: result: no" >&5
25624 echo "${ECHO_T}no" >&6; }
25625 fi
25626
25627
25628   test -n "$LEX" && break
25629 done
25630 test -n "$LEX" || LEX=":"
25631
25632 if test "x$LEX" != "x:"; then
25633   cat >conftest.l <<_ACEOF
25634 %%
25635 a { ECHO; }
25636 b { REJECT; }
25637 c { yymore (); }
25638 d { yyless (1); }
25639 e { yyless (input () != 0); }
25640 f { unput (yytext[0]); }
25641 . { BEGIN INITIAL; }
25642 %%
25643 #ifdef YYTEXT_POINTER
25644 extern char *yytext;
25645 #endif
25646 int
25647 main (void)
25648 {
25649   return ! yylex () + ! yywrap ();
25650 }
25651 _ACEOF
25652 { (ac_try="$LEX conftest.l"
25653 case "(($ac_try" in
25654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25655   *) ac_try_echo=$ac_try;;
25656 esac
25657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25658   (eval "$LEX conftest.l") 2>&5
25659   ac_status=$?
25660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25661   (exit $ac_status); }
25662 { echo "$as_me:$LINENO: checking lex output file root" >&5
25663 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
25664 if test "${ac_cv_prog_lex_root+set}" = set; then
25665   echo $ECHO_N "(cached) $ECHO_C" >&6
25666 else
25667
25668 if test -f lex.yy.c; then
25669   ac_cv_prog_lex_root=lex.yy
25670 elif test -f lexyy.c; then
25671   ac_cv_prog_lex_root=lexyy
25672 else
25673   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
25674 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
25675    { (exit 1); exit 1; }; }
25676 fi
25677 fi
25678 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
25679 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
25680 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
25681
25682 if test -z "${LEXLIB+set}"; then
25683   { echo "$as_me:$LINENO: checking lex library" >&5
25684 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
25685 if test "${ac_cv_lib_lex+set}" = set; then
25686   echo $ECHO_N "(cached) $ECHO_C" >&6
25687 else
25688
25689     ac_save_LIBS=$LIBS
25690     ac_cv_lib_lex='none needed'
25691     for ac_lib in '' -lfl -ll; do
25692       LIBS="$ac_lib $ac_save_LIBS"
25693       cat >conftest.$ac_ext <<_ACEOF
25694 `cat $LEX_OUTPUT_ROOT.c`
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_lex=$ac_lib
25715 else
25716   echo "$as_me: failed program was:" >&5
25717 sed 's/^/| /' conftest.$ac_ext >&5
25718
25719
25720 fi
25721
25722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25723       conftest$ac_exeext conftest.$ac_ext
25724       test "$ac_cv_lib_lex" != 'none needed' && break
25725     done
25726     LIBS=$ac_save_LIBS
25727
25728 fi
25729 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
25730 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
25731   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
25732 fi
25733
25734
25735 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
25736 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
25737 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
25738   echo $ECHO_N "(cached) $ECHO_C" >&6
25739 else
25740   # POSIX says lex can declare yytext either as a pointer or an array; the
25741 # default is implementation-dependent.  Figure out which it is, since
25742 # not all implementations provide the %pointer and %array declarations.
25743 ac_cv_prog_lex_yytext_pointer=no
25744 ac_save_LIBS=$LIBS
25745 LIBS="$LEXLIB $ac_save_LIBS"
25746 cat >conftest.$ac_ext <<_ACEOF
25747 #define YYTEXT_POINTER 1
25748 `cat $LEX_OUTPUT_ROOT.c`
25749 _ACEOF
25750 rm -f conftest.$ac_objext conftest$ac_exeext
25751 if { (ac_try="$ac_link"
25752 case "(($ac_try" in
25753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25754   *) ac_try_echo=$ac_try;;
25755 esac
25756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25757   (eval "$ac_link") 2>conftest.er1
25758   ac_status=$?
25759   grep -v '^ *+' conftest.er1 >conftest.err
25760   rm -f conftest.er1
25761   cat conftest.err >&5
25762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25763   (exit $ac_status); } && {
25764          test -z "$ac_c_werror_flag" ||
25765          test ! -s conftest.err
25766        } && test -s conftest$ac_exeext &&
25767        $as_test_x conftest$ac_exeext; then
25768   ac_cv_prog_lex_yytext_pointer=yes
25769 else
25770   echo "$as_me: failed program was:" >&5
25771 sed 's/^/| /' conftest.$ac_ext >&5
25772
25773
25774 fi
25775
25776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25777       conftest$ac_exeext conftest.$ac_ext
25778 LIBS=$ac_save_LIBS
25779
25780 fi
25781 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
25782 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
25783 if test $ac_cv_prog_lex_yytext_pointer = yes; then
25784
25785 cat >>confdefs.h <<\_ACEOF
25786 #define YYTEXT_POINTER 1
25787 _ACEOF
25788
25789 fi
25790 rm -f conftest.l $LEX_OUTPUT_ROOT.c
25791
25792 fi
25793
25794   if test "$LEX" != flex; then
25795     { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
25796 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
25797     LEX=${am_missing_run}flex
25798     LEXLIB=''
25799
25800   else
25801     if test "x2.5.30" != "x" ; then
25802                               FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
25803
25804       FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
25805       FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
25806       FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
25807
25808       WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
25809       WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
25810       WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
25811
25812       if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
25813          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED"  ||
25814          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
25815       then
25816         { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
25817 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
25818         LEX=${am_missing_run}flex
25819         LEXLIB=''
25820
25821       else
25822         { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
25823 echo "$as_me: Flex found. Parsers will get updated" >&6;}
25824       fi
25825     fi
25826   fi
25827
25828
25829 # Can we rebuild the xml-lexers from the XML specification?
25830 # if not, simply touch the flex source files (which are distributed in
25831 #  tarballs even if generated by flexml) and hope for the best.
25832 # Extract the first word of "flexml", so it can be a program name with args.
25833 set dummy flexml; ac_word=$2
25834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25836 if test "${ac_cv_prog_FLEXML+set}" = set; then
25837   echo $ECHO_N "(cached) $ECHO_C" >&6
25838 else
25839   if test -n "$FLEXML"; then
25840   ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
25841 else
25842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25843 for as_dir in $PATH
25844 do
25845   IFS=$as_save_IFS
25846   test -z "$as_dir" && as_dir=.
25847   for ac_exec_ext in '' $ac_executable_extensions; do
25848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25849     ac_cv_prog_FLEXML="`which flexml`"
25850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25851     break 2
25852   fi
25853 done
25854 done
25855 IFS=$as_save_IFS
25856
25857   test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
25858 fi
25859 fi
25860 FLEXML=$ac_cv_prog_FLEXML
25861 if test -n "$FLEXML"; then
25862   { echo "$as_me:$LINENO: result: $FLEXML" >&5
25863 echo "${ECHO_T}$FLEXML" >&6; }
25864 else
25865   { echo "$as_me:$LINENO: result: no" >&5
25866 echo "${ECHO_T}no" >&6; }
25867 fi
25868
25869
25870
25871
25872 if test x$FLEXML != xNOTFOUND; then
25873   HAVE_FLEXML_TRUE=
25874   HAVE_FLEXML_FALSE='#'
25875 else
25876   HAVE_FLEXML_TRUE='#'
25877   HAVE_FLEXML_FALSE=
25878 fi
25879
25880
25881 if test x$USE_MAINTAINER_MODE = xyes
25882 then
25883    # Check for doxygen when in maintainer mode since dist* targets fail
25884    # without it
25885    # Extract the first word of "doxygen", so it can be a program name with args.
25886 set dummy doxygen; ac_word=$2
25887 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25889 if test "${ac_cv_path_DOXYGEN+set}" = set; then
25890   echo $ECHO_N "(cached) $ECHO_C" >&6
25891 else
25892   case $DOXYGEN in
25893   [\\/]* | ?:[\\/]*)
25894   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
25895   ;;
25896   *)
25897   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25898 for as_dir in $PATH
25899 do
25900   IFS=$as_save_IFS
25901   test -z "$as_dir" && as_dir=.
25902   for ac_exec_ext in '' $ac_executable_extensions; do
25903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25904     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
25905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25906     break 2
25907   fi
25908 done
25909 done
25910 IFS=$as_save_IFS
25911
25912   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
25913   ;;
25914 esac
25915 fi
25916 DOXYGEN=$ac_cv_path_DOXYGEN
25917 if test -n "$DOXYGEN"; then
25918   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
25919 echo "${ECHO_T}$DOXYGEN" >&6; }
25920 else
25921   { echo "$as_me:$LINENO: result: no" >&5
25922 echo "${ECHO_T}no" >&6; }
25923 fi
25924
25925
25926    if test x$DOXYGEN = x ; then
25927      { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
25928 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
25929    { (exit 1); exit 1; }; }
25930    fi
25931 fi
25932
25933 # Can we extract really usable backtraces? (also need the popen function)
25934 # Extract the first word of "addr2line", so it can be a program name with args.
25935 set dummy addr2line; ac_word=$2
25936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25938 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
25939   echo $ECHO_N "(cached) $ECHO_C" >&6
25940 else
25941   case $ADDR2LINE in
25942   [\\/]* | ?:[\\/]*)
25943   ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
25944   ;;
25945   *)
25946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25947 for as_dir in $PATH
25948 do
25949   IFS=$as_save_IFS
25950   test -z "$as_dir" && as_dir=.
25951   for ac_exec_ext in '' $ac_executable_extensions; do
25952   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25953     ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
25954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25955     break 2
25956   fi
25957 done
25958 done
25959 IFS=$as_save_IFS
25960
25961   ;;
25962 esac
25963 fi
25964 ADDR2LINE=$ac_cv_path_ADDR2LINE
25965 if test -n "$ADDR2LINE"; then
25966   { echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
25967 echo "${ECHO_T}$ADDR2LINE" >&6; }
25968 else
25969   { echo "$as_me:$LINENO: result: no" >&5
25970 echo "${ECHO_T}no" >&6; }
25971 fi
25972
25973
25974 if test x$ADDR2LINE != x ; then
25975
25976 cat >>confdefs.h <<_ACEOF
25977 #define ADDR2LINE "$ADDR2LINE"
25978 _ACEOF
25979
25980 fi
25981
25982
25983 # Can we make status line about the compilation result?
25984 # Extract the first word of "md5sum", so it can be a program name with args.
25985 set dummy md5sum; ac_word=$2
25986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25988 if test "${ac_cv_prog_MD5SUM+set}" = set; then
25989   echo $ECHO_N "(cached) $ECHO_C" >&6
25990 else
25991   if test -n "$MD5SUM"; then
25992   ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
25993 else
25994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25995 for as_dir in $PATH
25996 do
25997   IFS=$as_save_IFS
25998   test -z "$as_dir" && as_dir=.
25999   for ac_exec_ext in '' $ac_executable_extensions; do
26000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26001     ac_cv_prog_MD5SUM="`which md5sum`"
26002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26003     break 2
26004   fi
26005 done
26006 done
26007 IFS=$as_save_IFS
26008
26009 fi
26010 fi
26011 MD5SUM=$ac_cv_prog_MD5SUM
26012 if test -n "$MD5SUM"; then
26013   { echo "$as_me:$LINENO: result: $MD5SUM" >&5
26014 echo "${ECHO_T}$MD5SUM" >&6; }
26015 else
26016   { echo "$as_me:$LINENO: result: no" >&5
26017 echo "${ECHO_T}no" >&6; }
26018 fi
26019
26020
26021 if test x$MD5SUM != xno ; then
26022   build_version=`find -name '*.ch' |grep -v src/ucontext_stack.h | grep -v src/gras_config.h |\
26023                  xargs cat| $MD5SUM | sed 's/ .*$//'`
26024 else
26025   build_version="no_md5sum_binary"
26026 fi
26027 build_id="$PACKAGE ver=$VERSION build=$build_version args=\"$ac_configure_args\""
26028
26029
26030 ###################
26031 ## Makes the output
26032 ##
26033
26034
26035 #
26036 #      examples/gras/chord/Makefile  examples/gras/chord/test_sg examples/gras/chord/test_rl
26037 #  src/amok/Makefile
26038
26039
26040   { echo "$as_me:$LINENO: result: " >&5
26041 echo "${ECHO_T}" >&6; }
26042   { echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
26043 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6; }
26044
26045
26046 # Core of the libraries
26047
26048 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/ucontext_stack.h"
26049
26050
26051 # Tools being embeeded in gramine (stub generator)
26052 ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile tools/tesh/Makefile"
26053
26054
26055
26056 # GRAMINE_CUT_BEGIN
26057
26058 # Tools NOT being embeeded in gramine
26059 ac_config_files="$ac_config_files tools/graspe-slave"
26060
26061
26062 # Testsuite
26063
26064 ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage"
26065
26066
26067 # Documentation
26068 ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
26069
26070
26071 # Examples
26072
26073 #      examples/gras/p2p/Makefile
26074 #      examples/gras/p2p/chord/Makefile
26075 #      examples/gras/p2p/can/Makefile
26076
26077 ac_config_files="$ac_config_files examples/Makefile examples/msg/Makefile examples/msg/basic.tesh examples/msg/small_plat.tesh examples/msg/suspend.tesh examples/msg/flexml_bypass.tesh examples/simdag/Makefile examples/simdag/test_simdag examples/gras/Makefile examples/gras/ping/Makefile examples/gras/rpc/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"
26078
26079
26080
26081 # GRAMINE_CUT_END
26082
26083 cat >confcache <<\_ACEOF
26084 # This file is a shell script that caches the results of configure
26085 # tests run on this system so they can be shared between configure
26086 # scripts and configure runs, see configure's option --config-cache.
26087 # It is not useful on other systems.  If it contains results you don't
26088 # want to keep, you may remove or edit it.
26089 #
26090 # config.status only pays attention to the cache file if you give it
26091 # the --recheck option to rerun configure.
26092 #
26093 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26094 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26095 # following values.
26096
26097 _ACEOF
26098
26099 # The following way of writing the cache mishandles newlines in values,
26100 # but we know of no workaround that is simple, portable, and efficient.
26101 # So, we kill variables containing newlines.
26102 # Ultrix sh set writes to stderr and can't be redirected directly,
26103 # and sets the high bit in the cache file unless we assign to the vars.
26104 (
26105   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26106     eval ac_val=\$$ac_var
26107     case $ac_val in #(
26108     *${as_nl}*)
26109       case $ac_var in #(
26110       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26111 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26112       esac
26113       case $ac_var in #(
26114       _ | IFS | as_nl) ;; #(
26115       *) $as_unset $ac_var ;;
26116       esac ;;
26117     esac
26118   done
26119
26120   (set) 2>&1 |
26121     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26122     *${as_nl}ac_space=\ *)
26123       # `set' does not quote correctly, so add quotes (double-quote
26124       # substitution turns \\\\ into \\, and sed turns \\ into \).
26125       sed -n \
26126         "s/'/'\\\\''/g;
26127           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26128       ;; #(
26129     *)
26130       # `set' quotes correctly as required by POSIX, so do not add quotes.
26131       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26132       ;;
26133     esac |
26134     sort
26135 ) |
26136   sed '
26137      /^ac_cv_env_/b end
26138      t clear
26139      :clear
26140      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26141      t end
26142      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26143      :end' >>confcache
26144 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26145   if test -w "$cache_file"; then
26146     test "x$cache_file" != "x/dev/null" &&
26147       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26148 echo "$as_me: updating cache $cache_file" >&6;}
26149     cat confcache >$cache_file
26150   else
26151     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26152 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26153   fi
26154 fi
26155 rm -f confcache
26156
26157 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26158 # Let make expand exec_prefix.
26159 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26160
26161 DEFS=-DHAVE_CONFIG_H
26162
26163 ac_libobjs=
26164 ac_ltlibobjs=
26165 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26166   # 1. Remove the extension, and $U if already installed.
26167   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26168   ac_i=`echo "$ac_i" | sed "$ac_script"`
26169   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26170   #    will be set to the directory where LIBOBJS objects are built.
26171   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26172   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26173 done
26174 LIBOBJS=$ac_libobjs
26175
26176 LTLIBOBJS=$ac_ltlibobjs
26177
26178
26179 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26180   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26181 Usually this means the macro was only invoked conditionally." >&5
26182 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26183 Usually this means the macro was only invoked conditionally." >&2;}
26184    { (exit 1); exit 1; }; }
26185 fi
26186 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26187   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26188 Usually this means the macro was only invoked conditionally." >&5
26189 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26190 Usually this means the macro was only invoked conditionally." >&2;}
26191    { (exit 1); exit 1; }; }
26192 fi
26193 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26194   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26195 Usually this means the macro was only invoked conditionally." >&5
26196 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26197 Usually this means the macro was only invoked conditionally." >&2;}
26198    { (exit 1); exit 1; }; }
26199 fi
26200 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26201   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26202 Usually this means the macro was only invoked conditionally." >&5
26203 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26204 Usually this means the macro was only invoked conditionally." >&2;}
26205    { (exit 1); exit 1; }; }
26206 fi
26207 if test -z "${GRAS_ARCH_32_BITS_TRUE}" && test -z "${GRAS_ARCH_32_BITS_FALSE}"; then
26208   { { echo "$as_me:$LINENO: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
26209 Usually this means the macro was only invoked conditionally." >&5
26210 echo "$as_me: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
26211 Usually this means the macro was only invoked conditionally." >&2;}
26212    { (exit 1); exit 1; }; }
26213 fi
26214 if test -z "${USE_GTNETS_TRUE}" && test -z "${USE_GTNETS_FALSE}"; then
26215   { { echo "$as_me:$LINENO: error: conditional \"USE_GTNETS\" was never defined.
26216 Usually this means the macro was only invoked conditionally." >&5
26217 echo "$as_me: error: conditional \"USE_GTNETS\" was never defined.
26218 Usually this means the macro was only invoked conditionally." >&2;}
26219    { (exit 1); exit 1; }; }
26220 fi
26221 if test -z "${HAVE_SDP_TRUE}" && test -z "${HAVE_SDP_FALSE}"; then
26222   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SDP\" was never defined.
26223 Usually this means the macro was only invoked conditionally." >&5
26224 echo "$as_me: error: conditional \"HAVE_SDP\" was never defined.
26225 Usually this means the macro was only invoked conditionally." >&2;}
26226    { (exit 1); exit 1; }; }
26227 fi
26228 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
26229   { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
26230 Usually this means the macro was only invoked conditionally." >&5
26231 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
26232 Usually this means the macro was only invoked conditionally." >&2;}
26233    { (exit 1); exit 1; }; }
26234 fi
26235 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26236   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
26237 Usually this means the macro was only invoked conditionally." >&5
26238 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
26239 Usually this means the macro was only invoked conditionally." >&2;}
26240    { (exit 1); exit 1; }; }
26241 fi
26242 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
26243   { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
26244 Usually this means the macro was only invoked conditionally." >&5
26245 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
26246 Usually this means the macro was only invoked conditionally." >&2;}
26247    { (exit 1); exit 1; }; }
26248 fi
26249
26250 : ${CONFIG_STATUS=./config.status}
26251 ac_clean_files_save=$ac_clean_files
26252 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26253 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26254 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26255 cat >$CONFIG_STATUS <<_ACEOF
26256 #! $SHELL
26257 # Generated by $as_me.
26258 # Run this file to recreate the current configuration.
26259 # Compiler output produced by configure, useful for debugging
26260 # configure, is in config.log if it exists.
26261
26262 debug=false
26263 ac_cs_recheck=false
26264 ac_cs_silent=false
26265 SHELL=\${CONFIG_SHELL-$SHELL}
26266 _ACEOF
26267
26268 cat >>$CONFIG_STATUS <<\_ACEOF
26269 ## --------------------- ##
26270 ## M4sh Initialization.  ##
26271 ## --------------------- ##
26272
26273 # Be more Bourne compatible
26274 DUALCASE=1; export DUALCASE # for MKS sh
26275 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26276   emulate sh
26277   NULLCMD=:
26278   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26279   # is contrary to our usage.  Disable this feature.
26280   alias -g '${1+"$@"}'='"$@"'
26281   setopt NO_GLOB_SUBST
26282 else
26283   case `(set -o) 2>/dev/null` in
26284   *posix*) set -o posix ;;
26285 esac
26286
26287 fi
26288
26289
26290
26291
26292 # PATH needs CR
26293 # Avoid depending upon Character Ranges.
26294 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26295 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26296 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26297 as_cr_digits='0123456789'
26298 as_cr_alnum=$as_cr_Letters$as_cr_digits
26299
26300 # The user is always right.
26301 if test "${PATH_SEPARATOR+set}" != set; then
26302   echo "#! /bin/sh" >conf$$.sh
26303   echo  "exit 0"   >>conf$$.sh
26304   chmod +x conf$$.sh
26305   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26306     PATH_SEPARATOR=';'
26307   else
26308     PATH_SEPARATOR=:
26309   fi
26310   rm -f conf$$.sh
26311 fi
26312
26313 # Support unset when possible.
26314 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26315   as_unset=unset
26316 else
26317   as_unset=false
26318 fi
26319
26320
26321 # IFS
26322 # We need space, tab and new line, in precisely that order.  Quoting is
26323 # there to prevent editors from complaining about space-tab.
26324 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26325 # splitting by setting IFS to empty value.)
26326 as_nl='
26327 '
26328 IFS=" ""        $as_nl"
26329
26330 # Find who we are.  Look in the path if we contain no directory separator.
26331 case $0 in
26332   *[\\/]* ) as_myself=$0 ;;
26333   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26334 for as_dir in $PATH
26335 do
26336   IFS=$as_save_IFS
26337   test -z "$as_dir" && as_dir=.
26338   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26339 done
26340 IFS=$as_save_IFS
26341
26342      ;;
26343 esac
26344 # We did not find ourselves, most probably we were run as `sh COMMAND'
26345 # in which case we are not to be found in the path.
26346 if test "x$as_myself" = x; then
26347   as_myself=$0
26348 fi
26349 if test ! -f "$as_myself"; then
26350   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26351   { (exit 1); exit 1; }
26352 fi
26353
26354 # Work around bugs in pre-3.0 UWIN ksh.
26355 for as_var in ENV MAIL MAILPATH
26356 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26357 done
26358 PS1='$ '
26359 PS2='> '
26360 PS4='+ '
26361
26362 # NLS nuisances.
26363 for as_var in \
26364   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26365   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26366   LC_TELEPHONE LC_TIME
26367 do
26368   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26369     eval $as_var=C; export $as_var
26370   else
26371     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26372   fi
26373 done
26374
26375 # Required to use basename.
26376 if expr a : '\(a\)' >/dev/null 2>&1 &&
26377    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26378   as_expr=expr
26379 else
26380   as_expr=false
26381 fi
26382
26383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26384   as_basename=basename
26385 else
26386   as_basename=false
26387 fi
26388
26389
26390 # Name of the executable.
26391 as_me=`$as_basename -- "$0" ||
26392 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26393          X"$0" : 'X\(//\)$' \| \
26394          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26395 echo X/"$0" |
26396     sed '/^.*\/\([^/][^/]*\)\/*$/{
26397             s//\1/
26398             q
26399           }
26400           /^X\/\(\/\/\)$/{
26401             s//\1/
26402             q
26403           }
26404           /^X\/\(\/\).*/{
26405             s//\1/
26406             q
26407           }
26408           s/.*/./; q'`
26409
26410 # CDPATH.
26411 $as_unset CDPATH
26412
26413
26414
26415   as_lineno_1=$LINENO
26416   as_lineno_2=$LINENO
26417   test "x$as_lineno_1" != "x$as_lineno_2" &&
26418   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26419
26420   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26421   # uniformly replaced by the line number.  The first 'sed' inserts a
26422   # line-number line after each line using $LINENO; the second 'sed'
26423   # does the real work.  The second script uses 'N' to pair each
26424   # line-number line with the line containing $LINENO, and appends
26425   # trailing '-' during substitution so that $LINENO is not a special
26426   # case at line end.
26427   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26428   # scripts with optimization help from Paolo Bonzini.  Blame Lee
26429   # E. McMahon (1931-1989) for sed's syntax.  :-)
26430   sed -n '
26431     p
26432     /[$]LINENO/=
26433   ' <$as_myself |
26434     sed '
26435       s/[$]LINENO.*/&-/
26436       t lineno
26437       b
26438       :lineno
26439       N
26440       :loop
26441       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26442       t loop
26443       s/-\n.*//
26444     ' >$as_me.lineno &&
26445   chmod +x "$as_me.lineno" ||
26446     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26447    { (exit 1); exit 1; }; }
26448
26449   # Don't try to exec as it changes $[0], causing all sort of problems
26450   # (the dirname of $[0] is not the place where we might find the
26451   # original and so on.  Autoconf is especially sensitive to this).
26452   . "./$as_me.lineno"
26453   # Exit status is that of the last command.
26454   exit
26455 }
26456
26457
26458 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26459   as_dirname=dirname
26460 else
26461   as_dirname=false
26462 fi
26463
26464 ECHO_C= ECHO_N= ECHO_T=
26465 case `echo -n x` in
26466 -n*)
26467   case `echo 'x\c'` in
26468   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26469   *)   ECHO_C='\c';;
26470   esac;;
26471 *)
26472   ECHO_N='-n';;
26473 esac
26474
26475 if expr a : '\(a\)' >/dev/null 2>&1 &&
26476    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26477   as_expr=expr
26478 else
26479   as_expr=false
26480 fi
26481
26482 rm -f conf$$ conf$$.exe conf$$.file
26483 if test -d conf$$.dir; then
26484   rm -f conf$$.dir/conf$$.file
26485 else
26486   rm -f conf$$.dir
26487   mkdir conf$$.dir
26488 fi
26489 echo >conf$$.file
26490 if ln -s conf$$.file conf$$ 2>/dev/null; then
26491   as_ln_s='ln -s'
26492   # ... but there are two gotchas:
26493   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26494   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26495   # In both cases, we have to default to `cp -p'.
26496   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26497     as_ln_s='cp -p'
26498 elif ln conf$$.file conf$$ 2>/dev/null; then
26499   as_ln_s=ln
26500 else
26501   as_ln_s='cp -p'
26502 fi
26503 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26504 rmdir conf$$.dir 2>/dev/null
26505
26506 if mkdir -p . 2>/dev/null; then
26507   as_mkdir_p=:
26508 else
26509   test -d ./-p && rmdir ./-p
26510   as_mkdir_p=false
26511 fi
26512
26513 if test -x / >/dev/null 2>&1; then
26514   as_test_x='test -x'
26515 else
26516   if ls -dL / >/dev/null 2>&1; then
26517     as_ls_L_option=L
26518   else
26519     as_ls_L_option=
26520   fi
26521   as_test_x='
26522     eval sh -c '\''
26523       if test -d "$1"; then
26524         test -d "$1/.";
26525       else
26526         case $1 in
26527         -*)set "./$1";;
26528         esac;
26529         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26530         ???[sx]*):;;*)false;;esac;fi
26531     '\'' sh
26532   '
26533 fi
26534 as_executable_p=$as_test_x
26535
26536 # Sed expression to map a string onto a valid CPP name.
26537 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26538
26539 # Sed expression to map a string onto a valid variable name.
26540 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26541
26542
26543 exec 6>&1
26544
26545 # Save the log message, to keep $[0] and so on meaningful, and to
26546 # report actual input values of CONFIG_FILES etc. instead of their
26547 # values after options handling.
26548 ac_log="
26549 This file was extended by simgrid $as_me 3.3-cvs, which was
26550 generated by GNU Autoconf 2.61.  Invocation command line was
26551
26552   CONFIG_FILES    = $CONFIG_FILES
26553   CONFIG_HEADERS  = $CONFIG_HEADERS
26554   CONFIG_LINKS    = $CONFIG_LINKS
26555   CONFIG_COMMANDS = $CONFIG_COMMANDS
26556   $ $0 $@
26557
26558 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26559 "
26560
26561 _ACEOF
26562
26563 cat >>$CONFIG_STATUS <<_ACEOF
26564 # Files that config.status was made for.
26565 config_files="$ac_config_files"
26566 config_headers="$ac_config_headers"
26567 config_commands="$ac_config_commands"
26568
26569 _ACEOF
26570
26571 cat >>$CONFIG_STATUS <<\_ACEOF
26572 ac_cs_usage="\
26573 \`$as_me' instantiates files from templates according to the
26574 current configuration.
26575
26576 Usage: $0 [OPTIONS] [FILE]...
26577
26578   -h, --help       print this help, then exit
26579   -V, --version    print version number and configuration settings, then exit
26580   -q, --quiet      do not print progress messages
26581   -d, --debug      don't remove temporary files
26582       --recheck    update $as_me by reconfiguring in the same conditions
26583   --file=FILE[:TEMPLATE]
26584                    instantiate the configuration file FILE
26585   --header=FILE[:TEMPLATE]
26586                    instantiate the configuration header FILE
26587
26588 Configuration files:
26589 $config_files
26590
26591 Configuration headers:
26592 $config_headers
26593
26594 Configuration commands:
26595 $config_commands
26596
26597 Report bugs to <bug-autoconf@gnu.org>."
26598
26599 _ACEOF
26600 cat >>$CONFIG_STATUS <<_ACEOF
26601 ac_cs_version="\\
26602 simgrid config.status 3.3-cvs
26603 configured by $0, generated by GNU Autoconf 2.61,
26604   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26605
26606 Copyright (C) 2006 Free Software Foundation, Inc.
26607 This config.status script is free software; the Free Software Foundation
26608 gives unlimited permission to copy, distribute and modify it."
26609
26610 ac_pwd='$ac_pwd'
26611 srcdir='$srcdir'
26612 INSTALL='$INSTALL'
26613 _ACEOF
26614
26615 cat >>$CONFIG_STATUS <<\_ACEOF
26616 # If no file are specified by the user, then we need to provide default
26617 # value.  By we need to know if files were specified by the user.
26618 ac_need_defaults=:
26619 while test $# != 0
26620 do
26621   case $1 in
26622   --*=*)
26623     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26624     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26625     ac_shift=:
26626     ;;
26627   *)
26628     ac_option=$1
26629     ac_optarg=$2
26630     ac_shift=shift
26631     ;;
26632   esac
26633
26634   case $ac_option in
26635   # Handling of the options.
26636   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26637     ac_cs_recheck=: ;;
26638   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26639     echo "$ac_cs_version"; exit ;;
26640   --debug | --debu | --deb | --de | --d | -d )
26641     debug=: ;;
26642   --file | --fil | --fi | --f )
26643     $ac_shift
26644     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26645     ac_need_defaults=false;;
26646   --header | --heade | --head | --hea )
26647     $ac_shift
26648     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26649     ac_need_defaults=false;;
26650   --he | --h)
26651     # Conflict between --help and --header
26652     { echo "$as_me: error: ambiguous option: $1
26653 Try \`$0 --help' for more information." >&2
26654    { (exit 1); exit 1; }; };;
26655   --help | --hel | -h )
26656     echo "$ac_cs_usage"; exit ;;
26657   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26658   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26659     ac_cs_silent=: ;;
26660
26661   # This is an error.
26662   -*) { echo "$as_me: error: unrecognized option: $1
26663 Try \`$0 --help' for more information." >&2
26664    { (exit 1); exit 1; }; } ;;
26665
26666   *) ac_config_targets="$ac_config_targets $1"
26667      ac_need_defaults=false ;;
26668
26669   esac
26670   shift
26671 done
26672
26673 ac_configure_extra_args=
26674
26675 if $ac_cs_silent; then
26676   exec 6>/dev/null
26677   ac_configure_extra_args="$ac_configure_extra_args --silent"
26678 fi
26679
26680 _ACEOF
26681 cat >>$CONFIG_STATUS <<_ACEOF
26682 if \$ac_cs_recheck; then
26683   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26684   CONFIG_SHELL=$SHELL
26685   export CONFIG_SHELL
26686   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26687 fi
26688
26689 _ACEOF
26690 cat >>$CONFIG_STATUS <<\_ACEOF
26691 exec 5>>config.log
26692 {
26693   echo
26694   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26695 ## Running $as_me. ##
26696 _ASBOX
26697   echo "$ac_log"
26698 } >&5
26699
26700 _ACEOF
26701 cat >>$CONFIG_STATUS <<_ACEOF
26702 #
26703 # INIT-COMMANDS
26704 #
26705 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26706
26707 _ACEOF
26708
26709 cat >>$CONFIG_STATUS <<\_ACEOF
26710
26711 # Handling of arguments.
26712 for ac_config_target in $ac_config_targets
26713 do
26714   case $ac_config_target in
26715     "src/gras_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
26716     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26717     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26718     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26719     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26720     "src/ucontext_stack.h") CONFIG_FILES="$CONFIG_FILES src/ucontext_stack.h" ;;
26721     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
26722     "tools/gras/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
26723     "tools/tesh/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tesh/Makefile" ;;
26724     "tools/graspe-slave") CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
26725     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26726     "testsuite/run_tests") CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
26727     "testsuite/gras/trp_tcp_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_tcp_usage" ;;
26728     "testsuite/gras/trp_file_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_file_usage" ;;
26729     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26730     "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
26731     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
26732     "examples/msg/Makefile") CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
26733     "examples/msg/basic.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/basic.tesh" ;;
26734     "examples/msg/small_plat.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/small_plat.tesh" ;;
26735     "examples/msg/suspend.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/suspend.tesh" ;;
26736     "examples/msg/flexml_bypass.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/flexml_bypass.tesh" ;;
26737     "examples/simdag/Makefile") CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
26738     "examples/simdag/test_simdag") CONFIG_FILES="$CONFIG_FILES examples/simdag/test_simdag" ;;
26739     "examples/gras/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
26740     "examples/gras/ping/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
26741     "examples/gras/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
26742     "examples/gras/timer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
26743     "examples/gras/chrono/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
26744     "examples/gras/mutual_exclusion/simple_token/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
26745     "examples/gras/mmrpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
26746     "examples/gras/pmm/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
26747     "examples/gras/all2all/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
26748     "examples/amok/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
26749     "examples/amok/bandwidth/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/Makefile" ;;
26750     "examples/amok/bandwidth/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_sg" ;;
26751     "examples/amok/bandwidth/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_rl" ;;
26752     "examples/amok/saturate/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/Makefile" ;;
26753     "examples/amok/saturate/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_sg" ;;
26754     "examples/amok/saturate/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_rl" ;;
26755
26756   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26757 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26758    { (exit 1); exit 1; }; };;
26759   esac
26760 done
26761
26762
26763 # If the user did not use the arguments to specify the items to instantiate,
26764 # then the envvar interface is used.  Set only those that are not.
26765 # We use the long form for the default assignment because of an extremely
26766 # bizarre bug on SunOS 4.1.3.
26767 if $ac_need_defaults; then
26768   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26769   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26770   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26771 fi
26772
26773 # Have a temporary directory for convenience.  Make it in the build tree
26774 # simply because there is no reason against having it here, and in addition,
26775 # creating and moving files from /tmp can sometimes cause problems.
26776 # Hook for its removal unless debugging.
26777 # Note that there is a small window in which the directory will not be cleaned:
26778 # after its creation but before its name has been assigned to `$tmp'.
26779 $debug ||
26780 {
26781   tmp=
26782   trap 'exit_status=$?
26783   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26784 ' 0
26785   trap '{ (exit 1); exit 1; }' 1 2 13 15
26786 }
26787 # Create a (secure) tmp directory for tmp files.
26788
26789 {
26790   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26791   test -n "$tmp" && test -d "$tmp"
26792 }  ||
26793 {
26794   tmp=./conf$$-$RANDOM
26795   (umask 077 && mkdir "$tmp")
26796 } ||
26797 {
26798    echo "$me: cannot create a temporary directory in ." >&2
26799    { (exit 1); exit 1; }
26800 }
26801
26802 #
26803 # Set up the sed scripts for CONFIG_FILES section.
26804 #
26805
26806 # No need to generate the scripts if there are no CONFIG_FILES.
26807 # This happens for instance when ./config.status config.h
26808 if test -n "$CONFIG_FILES"; then
26809
26810 _ACEOF
26811
26812
26813
26814 ac_delim='%!_!# '
26815 for ac_last_try in false false false false false :; do
26816   cat >conf$$subs.sed <<_ACEOF
26817 SHELL!$SHELL$ac_delim
26818 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26819 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26820 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26821 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26822 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26823 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26824 exec_prefix!$exec_prefix$ac_delim
26825 prefix!$prefix$ac_delim
26826 program_transform_name!$program_transform_name$ac_delim
26827 bindir!$bindir$ac_delim
26828 sbindir!$sbindir$ac_delim
26829 libexecdir!$libexecdir$ac_delim
26830 datarootdir!$datarootdir$ac_delim
26831 datadir!$datadir$ac_delim
26832 sysconfdir!$sysconfdir$ac_delim
26833 sharedstatedir!$sharedstatedir$ac_delim
26834 localstatedir!$localstatedir$ac_delim
26835 includedir!$includedir$ac_delim
26836 oldincludedir!$oldincludedir$ac_delim
26837 docdir!$docdir$ac_delim
26838 infodir!$infodir$ac_delim
26839 htmldir!$htmldir$ac_delim
26840 dvidir!$dvidir$ac_delim
26841 pdfdir!$pdfdir$ac_delim
26842 psdir!$psdir$ac_delim
26843 libdir!$libdir$ac_delim
26844 localedir!$localedir$ac_delim
26845 mandir!$mandir$ac_delim
26846 DEFS!$DEFS$ac_delim
26847 ECHO_C!$ECHO_C$ac_delim
26848 ECHO_N!$ECHO_N$ac_delim
26849 ECHO_T!$ECHO_T$ac_delim
26850 LIBS!$LIBS$ac_delim
26851 build_alias!$build_alias$ac_delim
26852 host_alias!$host_alias$ac_delim
26853 target_alias!$target_alias$ac_delim
26854 build!$build$ac_delim
26855 build_cpu!$build_cpu$ac_delim
26856 build_vendor!$build_vendor$ac_delim
26857 build_os!$build_os$ac_delim
26858 host!$host$ac_delim
26859 host_cpu!$host_cpu$ac_delim
26860 host_vendor!$host_vendor$ac_delim
26861 host_os!$host_os$ac_delim
26862 target!$target$ac_delim
26863 target_cpu!$target_cpu$ac_delim
26864 target_vendor!$target_vendor$ac_delim
26865 target_os!$target_os$ac_delim
26866 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26867 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26868 INSTALL_DATA!$INSTALL_DATA$ac_delim
26869 CYGPATH_W!$CYGPATH_W$ac_delim
26870 PACKAGE!$PACKAGE$ac_delim
26871 VERSION!$VERSION$ac_delim
26872 ACLOCAL!$ACLOCAL$ac_delim
26873 AUTOCONF!$AUTOCONF$ac_delim
26874 AUTOMAKE!$AUTOMAKE$ac_delim
26875 AUTOHEADER!$AUTOHEADER$ac_delim
26876 MAKEINFO!$MAKEINFO$ac_delim
26877 install_sh!$install_sh$ac_delim
26878 STRIP!$STRIP$ac_delim
26879 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
26880 mkdir_p!$mkdir_p$ac_delim
26881 AWK!$AWK$ac_delim
26882 SET_MAKE!$SET_MAKE$ac_delim
26883 am__leading_dot!$am__leading_dot$ac_delim
26884 AMTAR!$AMTAR$ac_delim
26885 am__tar!$am__tar$ac_delim
26886 am__untar!$am__untar$ac_delim
26887 CC!$CC$ac_delim
26888 CFLAGS!$CFLAGS$ac_delim
26889 LDFLAGS!$LDFLAGS$ac_delim
26890 CPPFLAGS!$CPPFLAGS$ac_delim
26891 ac_ct_CC!$ac_ct_CC$ac_delim
26892 EXEEXT!$EXEEXT$ac_delim
26893 OBJEXT!$OBJEXT$ac_delim
26894 DEPDIR!$DEPDIR$ac_delim
26895 am__include!$am__include$ac_delim
26896 am__quote!$am__quote$ac_delim
26897 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
26898 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
26899 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
26900 CCDEPMODE!$CCDEPMODE$ac_delim
26901 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
26902 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
26903 GREP!$GREP$ac_delim
26904 EGREP!$EGREP$ac_delim
26905 LN_S!$LN_S$ac_delim
26906 ECHO!$ECHO$ac_delim
26907 AR!$AR$ac_delim
26908 RANLIB!$RANLIB$ac_delim
26909 DLLTOOL!$DLLTOOL$ac_delim
26910 AS!$AS$ac_delim
26911 OBJDUMP!$OBJDUMP$ac_delim
26912 CPP!$CPP$ac_delim
26913 CXX!$CXX$ac_delim
26914 _ACEOF
26915
26916   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26917     break
26918   elif $ac_last_try; then
26919     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26920 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26921    { (exit 1); exit 1; }; }
26922   else
26923     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26924   fi
26925 done
26926
26927 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26928 if test -n "$ac_eof"; then
26929   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26930   ac_eof=`expr $ac_eof + 1`
26931 fi
26932
26933 cat >>$CONFIG_STATUS <<_ACEOF
26934 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26935 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26936 _ACEOF
26937 sed '
26938 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26939 s/^/s,@/; s/!/@,|#_!!_#|/
26940 :n
26941 t n
26942 s/'"$ac_delim"'$/,g/; t
26943 s/$/\\/; p
26944 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26945 ' >>$CONFIG_STATUS <conf$$subs.sed
26946 rm -f conf$$subs.sed
26947 cat >>$CONFIG_STATUS <<_ACEOF
26948 CEOF$ac_eof
26949 _ACEOF
26950
26951
26952 ac_delim='%!_!# '
26953 for ac_last_try in false false false false false :; do
26954   cat >conf$$subs.sed <<_ACEOF
26955 CXXFLAGS!$CXXFLAGS$ac_delim
26956 ac_ct_CXX!$ac_ct_CXX$ac_delim
26957 CXXDEPMODE!$CXXDEPMODE$ac_delim
26958 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
26959 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
26960 CXXCPP!$CXXCPP$ac_delim
26961 LIBTOOL!$LIBTOOL$ac_delim
26962 LIBOBJS!$LIBOBJS$ac_delim
26963 GRAS_ARCH_32_BITS_TRUE!$GRAS_ARCH_32_BITS_TRUE$ac_delim
26964 GRAS_ARCH_32_BITS_FALSE!$GRAS_ARCH_32_BITS_FALSE$ac_delim
26965 PTH_STACK_GROWTH!$PTH_STACK_GROWTH$ac_delim
26966 pth_skaddr_makecontext!$pth_skaddr_makecontext$ac_delim
26967 pth_sksize_makecontext!$pth_sksize_makecontext$ac_delim
26968 GTNETS_CFLAGS!$GTNETS_CFLAGS$ac_delim
26969 GTNETS_LDFLAGS!$GTNETS_LDFLAGS$ac_delim
26970 USE_GTNETS_TRUE!$USE_GTNETS_TRUE$ac_delim
26971 USE_GTNETS_FALSE!$USE_GTNETS_FALSE$ac_delim
26972 HAVE_SDP_TRUE!$HAVE_SDP_TRUE$ac_delim
26973 HAVE_SDP_FALSE!$HAVE_SDP_FALSE$ac_delim
26974 SIMGRID_DEP!$SIMGRID_DEP$ac_delim
26975 AM_CFLAGS!$AM_CFLAGS$ac_delim
26976 GRAS_DEP!$GRAS_DEP$ac_delim
26977 GRAMINE_MODE_TRUE!$GRAMINE_MODE_TRUE$ac_delim
26978 GRAMINE_MODE_FALSE!$GRAMINE_MODE_FALSE$ac_delim
26979 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
26980 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
26981 MAINT!$MAINT$ac_delim
26982 LD_DYNAMIC_FLAGS!$LD_DYNAMIC_FLAGS$ac_delim
26983 abs_builddir!$abs_builddir$ac_delim
26984 abs_srcdir!$abs_srcdir$ac_delim
26985 abs_top_builddir!$abs_top_builddir$ac_delim
26986 abs_top_srcdir!$abs_top_srcdir$ac_delim
26987 BASH!$BASH$ac_delim
26988 WARNING!$WARNING$ac_delim
26989 LEX!$LEX$ac_delim
26990 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
26991 LEXLIB!$LEXLIB$ac_delim
26992 FLEXML!$FLEXML$ac_delim
26993 HAVE_FLEXML_TRUE!$HAVE_FLEXML_TRUE$ac_delim
26994 HAVE_FLEXML_FALSE!$HAVE_FLEXML_FALSE$ac_delim
26995 DOXYGEN!$DOXYGEN$ac_delim
26996 ADDR2LINE!$ADDR2LINE$ac_delim
26997 ac_configure_args!$ac_configure_args$ac_delim
26998 MD5SUM!$MD5SUM$ac_delim
26999 build_id!$build_id$ac_delim
27000 LTLIBOBJS!$LTLIBOBJS$ac_delim
27001 _ACEOF
27002
27003   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 46; then
27004     break
27005   elif $ac_last_try; then
27006     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27007 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27008    { (exit 1); exit 1; }; }
27009   else
27010     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27011   fi
27012 done
27013
27014 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27015 if test -n "$ac_eof"; then
27016   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27017   ac_eof=`expr $ac_eof + 1`
27018 fi
27019
27020 cat >>$CONFIG_STATUS <<_ACEOF
27021 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27022 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27023 _ACEOF
27024 sed '
27025 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27026 s/^/s,@/; s/!/@,|#_!!_#|/
27027 :n
27028 t n
27029 s/'"$ac_delim"'$/,g/; t
27030 s/$/\\/; p
27031 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27032 ' >>$CONFIG_STATUS <conf$$subs.sed
27033 rm -f conf$$subs.sed
27034 cat >>$CONFIG_STATUS <<_ACEOF
27035 :end
27036 s/|#_!!_#|//g
27037 CEOF$ac_eof
27038 _ACEOF
27039
27040
27041 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27042 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27043 # trailing colons and then remove the whole line if VPATH becomes empty
27044 # (actually we leave an empty line to preserve line numbers).
27045 if test "x$srcdir" = x.; then
27046   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27047 s/:*\$(srcdir):*/:/
27048 s/:*\${srcdir}:*/:/
27049 s/:*@srcdir@:*/:/
27050 s/^\([^=]*=[     ]*\):*/\1/
27051 s/:*$//
27052 s/^[^=]*=[       ]*$//
27053 }'
27054 fi
27055
27056 cat >>$CONFIG_STATUS <<\_ACEOF
27057 fi # test -n "$CONFIG_FILES"
27058
27059
27060 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
27061 do
27062   case $ac_tag in
27063   :[FHLC]) ac_mode=$ac_tag; continue;;
27064   esac
27065   case $ac_mode$ac_tag in
27066   :[FHL]*:*);;
27067   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27068 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27069    { (exit 1); exit 1; }; };;
27070   :[FH]-) ac_tag=-:-;;
27071   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27072   esac
27073   ac_save_IFS=$IFS
27074   IFS=:
27075   set x $ac_tag
27076   IFS=$ac_save_IFS
27077   shift
27078   ac_file=$1
27079   shift
27080
27081   case $ac_mode in
27082   :L) ac_source=$1;;
27083   :[FH])
27084     ac_file_inputs=
27085     for ac_f
27086     do
27087       case $ac_f in
27088       -) ac_f="$tmp/stdin";;
27089       *) # Look for the file first in the build tree, then in the source tree
27090          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27091          # because $ac_f cannot contain `:'.
27092          test -f "$ac_f" ||
27093            case $ac_f in
27094            [\\/$]*) false;;
27095            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27096            esac ||
27097            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27098 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27099    { (exit 1); exit 1; }; };;
27100       esac
27101       ac_file_inputs="$ac_file_inputs $ac_f"
27102     done
27103
27104     # Let's still pretend it is `configure' which instantiates (i.e., don't
27105     # use $as_me), people would be surprised to read:
27106     #    /* config.h.  Generated by config.status.  */
27107     configure_input="Generated from "`IFS=:
27108           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27109     if test x"$ac_file" != x-; then
27110       configure_input="$ac_file.  $configure_input"
27111       { echo "$as_me:$LINENO: creating $ac_file" >&5
27112 echo "$as_me: creating $ac_file" >&6;}
27113     fi
27114
27115     case $ac_tag in
27116     *:-:* | *:-) cat >"$tmp/stdin";;
27117     esac
27118     ;;
27119   esac
27120
27121   ac_dir=`$as_dirname -- "$ac_file" ||
27122 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27123          X"$ac_file" : 'X\(//\)[^/]' \| \
27124          X"$ac_file" : 'X\(//\)$' \| \
27125          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27126 echo X"$ac_file" |
27127     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27128             s//\1/
27129             q
27130           }
27131           /^X\(\/\/\)[^/].*/{
27132             s//\1/
27133             q
27134           }
27135           /^X\(\/\/\)$/{
27136             s//\1/
27137             q
27138           }
27139           /^X\(\/\).*/{
27140             s//\1/
27141             q
27142           }
27143           s/.*/./; q'`
27144   { as_dir="$ac_dir"
27145   case $as_dir in #(
27146   -*) as_dir=./$as_dir;;
27147   esac
27148   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27149     as_dirs=
27150     while :; do
27151       case $as_dir in #(
27152       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27153       *) as_qdir=$as_dir;;
27154       esac
27155       as_dirs="'$as_qdir' $as_dirs"
27156       as_dir=`$as_dirname -- "$as_dir" ||
27157 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27158          X"$as_dir" : 'X\(//\)[^/]' \| \
27159          X"$as_dir" : 'X\(//\)$' \| \
27160          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27161 echo X"$as_dir" |
27162     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27163             s//\1/
27164             q
27165           }
27166           /^X\(\/\/\)[^/].*/{
27167             s//\1/
27168             q
27169           }
27170           /^X\(\/\/\)$/{
27171             s//\1/
27172             q
27173           }
27174           /^X\(\/\).*/{
27175             s//\1/
27176             q
27177           }
27178           s/.*/./; q'`
27179       test -d "$as_dir" && break
27180     done
27181     test -z "$as_dirs" || eval "mkdir $as_dirs"
27182   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27183 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27184    { (exit 1); exit 1; }; }; }
27185   ac_builddir=.
27186
27187 case "$ac_dir" in
27188 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27189 *)
27190   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27191   # A ".." for each directory in $ac_dir_suffix.
27192   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27193   case $ac_top_builddir_sub in
27194   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27195   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27196   esac ;;
27197 esac
27198 ac_abs_top_builddir=$ac_pwd
27199 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27200 # for backward compatibility:
27201 ac_top_builddir=$ac_top_build_prefix
27202
27203 case $srcdir in
27204   .)  # We are building in place.
27205     ac_srcdir=.
27206     ac_top_srcdir=$ac_top_builddir_sub
27207     ac_abs_top_srcdir=$ac_pwd ;;
27208   [\\/]* | ?:[\\/]* )  # Absolute name.
27209     ac_srcdir=$srcdir$ac_dir_suffix;
27210     ac_top_srcdir=$srcdir
27211     ac_abs_top_srcdir=$srcdir ;;
27212   *) # Relative name.
27213     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27214     ac_top_srcdir=$ac_top_build_prefix$srcdir
27215     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27216 esac
27217 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27218
27219
27220   case $ac_mode in
27221   :F)
27222   #
27223   # CONFIG_FILE
27224   #
27225
27226   case $INSTALL in
27227   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27228   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27229   esac
27230 _ACEOF
27231
27232 cat >>$CONFIG_STATUS <<\_ACEOF
27233 # If the template does not know about datarootdir, expand it.
27234 # FIXME: This hack should be removed a few years after 2.60.
27235 ac_datarootdir_hack=; ac_datarootdir_seen=
27236
27237 case `sed -n '/datarootdir/ {
27238   p
27239   q
27240 }
27241 /@datadir@/p
27242 /@docdir@/p
27243 /@infodir@/p
27244 /@localedir@/p
27245 /@mandir@/p
27246 ' $ac_file_inputs` in
27247 *datarootdir*) ac_datarootdir_seen=yes;;
27248 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27249   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27250 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27251 _ACEOF
27252 cat >>$CONFIG_STATUS <<_ACEOF
27253   ac_datarootdir_hack='
27254   s&@datadir@&$datadir&g
27255   s&@docdir@&$docdir&g
27256   s&@infodir@&$infodir&g
27257   s&@localedir@&$localedir&g
27258   s&@mandir@&$mandir&g
27259     s&\\\${datarootdir}&$datarootdir&g' ;;
27260 esac
27261 _ACEOF
27262
27263 # Neutralize VPATH when `$srcdir' = `.'.
27264 # Shell code in configure.ac might set extrasub.
27265 # FIXME: do we really want to maintain this feature?
27266 cat >>$CONFIG_STATUS <<_ACEOF
27267   sed "$ac_vpsub
27268 $extrasub
27269 _ACEOF
27270 cat >>$CONFIG_STATUS <<\_ACEOF
27271 :t
27272 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27273 s&@configure_input@&$configure_input&;t t
27274 s&@top_builddir@&$ac_top_builddir_sub&;t t
27275 s&@srcdir@&$ac_srcdir&;t t
27276 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27277 s&@top_srcdir@&$ac_top_srcdir&;t t
27278 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27279 s&@builddir@&$ac_builddir&;t t
27280 s&@abs_builddir@&$ac_abs_builddir&;t t
27281 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27282 s&@INSTALL@&$ac_INSTALL&;t t
27283 $ac_datarootdir_hack
27284 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27285
27286 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27287   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27288   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27289   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27290 which seems to be undefined.  Please make sure it is defined." >&5
27291 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27292 which seems to be undefined.  Please make sure it is defined." >&2;}
27293
27294   rm -f "$tmp/stdin"
27295   case $ac_file in
27296   -) cat "$tmp/out"; rm -f "$tmp/out";;
27297   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27298   esac
27299  ;;
27300   :H)
27301   #
27302   # CONFIG_HEADER
27303   #
27304 _ACEOF
27305
27306 # Transform confdefs.h into a sed script `conftest.defines', that
27307 # substitutes the proper values into config.h.in to produce config.h.
27308 rm -f conftest.defines conftest.tail
27309 # First, append a space to every undef/define line, to ease matching.
27310 echo 's/$/ /' >conftest.defines
27311 # Then, protect against being on the right side of a sed subst, or in
27312 # an unquoted here document, in config.status.  If some macros were
27313 # called several times there might be several #defines for the same
27314 # symbol, which is useless.  But do not sort them, since the last
27315 # AC_DEFINE must be honored.
27316 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27317 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27318 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27319 # PARAMS is the parameter list in the macro definition--in most cases, it's
27320 # just an empty string.
27321 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
27322 ac_dB='\\)[      (].*,\\1define\\2'
27323 ac_dC=' '
27324 ac_dD=' ,'
27325
27326 uniq confdefs.h |
27327   sed -n '
27328         t rset
27329         :rset
27330         s/^[     ]*#[    ]*define[       ][      ]*//
27331         t ok
27332         d
27333         :ok
27334         s/[\\&,]/\\&/g
27335         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27336         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27337   ' >>conftest.defines
27338
27339 # Remove the space that was appended to ease matching.
27340 # Then replace #undef with comments.  This is necessary, for
27341 # example, in the case of _POSIX_SOURCE, which is predefined and required
27342 # on some systems where configure will not decide to define it.
27343 # (The regexp can be short, since the line contains either #define or #undef.)
27344 echo 's/ $//
27345 s,^[     #]*u.*,/* & */,' >>conftest.defines
27346
27347 # Break up conftest.defines:
27348 ac_max_sed_lines=50
27349
27350 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27351 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27352 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27353 # et cetera.
27354 ac_in='$ac_file_inputs'
27355 ac_out='"$tmp/out1"'
27356 ac_nxt='"$tmp/out2"'
27357
27358 while :
27359 do
27360   # Write a here document:
27361     cat >>$CONFIG_STATUS <<_ACEOF
27362     # First, check the format of the line:
27363     cat >"\$tmp/defines.sed" <<\\CEOF
27364 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
27365 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
27366 b
27367 :def
27368 _ACEOF
27369   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27370   echo 'CEOF
27371     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27372   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27373   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27374   grep . conftest.tail >/dev/null || break
27375   rm -f conftest.defines
27376   mv conftest.tail conftest.defines
27377 done
27378 rm -f conftest.defines conftest.tail
27379
27380 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27381 cat >>$CONFIG_STATUS <<\_ACEOF
27382   if test x"$ac_file" != x-; then
27383     echo "/* $configure_input  */" >"$tmp/config.h"
27384     cat "$ac_result" >>"$tmp/config.h"
27385     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27386       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27387 echo "$as_me: $ac_file is unchanged" >&6;}
27388     else
27389       rm -f $ac_file
27390       mv "$tmp/config.h" $ac_file
27391     fi
27392   else
27393     echo "/* $configure_input  */"
27394     cat "$ac_result"
27395   fi
27396   rm -f "$tmp/out12"
27397 # Compute $ac_file's index in $config_headers.
27398 _am_stamp_count=1
27399 for _am_header in $config_headers :; do
27400   case $_am_header in
27401     $ac_file | $ac_file:* )
27402       break ;;
27403     * )
27404       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27405   esac
27406 done
27407 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
27408 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27409          X$ac_file : 'X\(//\)[^/]' \| \
27410          X$ac_file : 'X\(//\)$' \| \
27411          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
27412 echo X$ac_file |
27413     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27414             s//\1/
27415             q
27416           }
27417           /^X\(\/\/\)[^/].*/{
27418             s//\1/
27419             q
27420           }
27421           /^X\(\/\/\)$/{
27422             s//\1/
27423             q
27424           }
27425           /^X\(\/\).*/{
27426             s//\1/
27427             q
27428           }
27429           s/.*/./; q'`/stamp-h$_am_stamp_count
27430  ;;
27431
27432   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27433 echo "$as_me: executing $ac_file commands" >&6;}
27434  ;;
27435   esac
27436
27437
27438   case $ac_file$ac_mode in
27439     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27440   # Strip MF so we end up with the name of the file.
27441   mf=`echo "$mf" | sed -e 's/:.*$//'`
27442   # Check whether this is an Automake generated Makefile or not.
27443   # We used to match only the files named `Makefile.in', but
27444   # some people rename them; so instead we look at the file content.
27445   # Grep'ing the first line is not enough: some people post-process
27446   # each Makefile.in and add a new line on top of each file to say so.
27447   # So let's grep whole file.
27448   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27449     dirpart=`$as_dirname -- "$mf" ||
27450 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27451          X"$mf" : 'X\(//\)[^/]' \| \
27452          X"$mf" : 'X\(//\)$' \| \
27453          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27454 echo X"$mf" |
27455     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27456             s//\1/
27457             q
27458           }
27459           /^X\(\/\/\)[^/].*/{
27460             s//\1/
27461             q
27462           }
27463           /^X\(\/\/\)$/{
27464             s//\1/
27465             q
27466           }
27467           /^X\(\/\).*/{
27468             s//\1/
27469             q
27470           }
27471           s/.*/./; q'`
27472   else
27473     continue
27474   fi
27475   # Extract the definition of DEPDIR, am__include, and am__quote
27476   # from the Makefile without running `make'.
27477   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27478   test -z "$DEPDIR" && continue
27479   am__include=`sed -n 's/^am__include = //p' < "$mf"`
27480   test -z "am__include" && continue
27481   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27482   # When using ansi2knr, U may be empty or an underscore; expand it
27483   U=`sed -n 's/^U = //p' < "$mf"`
27484   # Find all dependency output files, they are included files with
27485   # $(DEPDIR) in their names.  We invoke sed twice because it is the
27486   # simplest approach to changing $(DEPDIR) to its actual value in the
27487   # expansion.
27488   for file in `sed -n "
27489     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27490        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27491     # Make sure the directory exists.
27492     test -f "$dirpart/$file" && continue
27493     fdir=`$as_dirname -- "$file" ||
27494 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27495          X"$file" : 'X\(//\)[^/]' \| \
27496          X"$file" : 'X\(//\)$' \| \
27497          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27498 echo X"$file" |
27499     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27500             s//\1/
27501             q
27502           }
27503           /^X\(\/\/\)[^/].*/{
27504             s//\1/
27505             q
27506           }
27507           /^X\(\/\/\)$/{
27508             s//\1/
27509             q
27510           }
27511           /^X\(\/\).*/{
27512             s//\1/
27513             q
27514           }
27515           s/.*/./; q'`
27516     { as_dir=$dirpart/$fdir
27517   case $as_dir in #(
27518   -*) as_dir=./$as_dir;;
27519   esac
27520   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27521     as_dirs=
27522     while :; do
27523       case $as_dir in #(
27524       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27525       *) as_qdir=$as_dir;;
27526       esac
27527       as_dirs="'$as_qdir' $as_dirs"
27528       as_dir=`$as_dirname -- "$as_dir" ||
27529 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27530          X"$as_dir" : 'X\(//\)[^/]' \| \
27531          X"$as_dir" : 'X\(//\)$' \| \
27532          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27533 echo X"$as_dir" |
27534     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27535             s//\1/
27536             q
27537           }
27538           /^X\(\/\/\)[^/].*/{
27539             s//\1/
27540             q
27541           }
27542           /^X\(\/\/\)$/{
27543             s//\1/
27544             q
27545           }
27546           /^X\(\/\).*/{
27547             s//\1/
27548             q
27549           }
27550           s/.*/./; q'`
27551       test -d "$as_dir" && break
27552     done
27553     test -z "$as_dirs" || eval "mkdir $as_dirs"
27554   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27555 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27556    { (exit 1); exit 1; }; }; }
27557     # echo "creating $dirpart/$file"
27558     echo '# dummy' > "$dirpart/$file"
27559   done
27560 done
27561  ;;
27562     "tools/graspe-slave":F)
27563     for file in                                                 \
27564      tools/graspe-slave           tools/graspe-master           \
27565     ; do                                                        \
27566       test -e $file && chmod +x $file;                          \
27567     done
27568  ;;
27569     "testsuite/Makefile":F)
27570     for file in                                                 \
27571      testsuite/run_tests                                        \
27572      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27573     ; do                                                        \
27574       test -e $file && chmod +x $file;                          \
27575     done
27576  ;;
27577     "testsuite/run_tests":F)
27578     for file in                                                 \
27579      testsuite/run_tests                                        \
27580      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27581     ; do                                                        \
27582       test -e $file && chmod +x $file;                          \
27583     done
27584  ;;
27585     "testsuite/gras/trp_tcp_usage":F)
27586     for file in                                                 \
27587      testsuite/run_tests                                        \
27588      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27589     ; do                                                        \
27590       test -e $file && chmod +x $file;                          \
27591     done
27592  ;;
27593     "testsuite/gras/trp_file_usage":F)
27594     for file in                                                 \
27595      testsuite/run_tests                                        \
27596      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27597     ; do                                                        \
27598       test -e $file && chmod +x $file;                          \
27599     done
27600  ;;
27601     "examples/Makefile":F)
27602     for file in                                                 \
27603      \
27604      examples/msg/run_msg_test                                  \
27605      examples/simdag/test_simdag                                \
27606      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27607      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27608     ; do                                                        \
27609       test -e $file && chmod +x $file;                          \
27610     done
27611  ;;
27612     "examples/msg/Makefile":F)
27613     for file in                                                 \
27614      \
27615      examples/msg/run_msg_test                                  \
27616      examples/simdag/test_simdag                                \
27617      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27618      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27619     ; do                                                        \
27620       test -e $file && chmod +x $file;                          \
27621     done
27622  ;;
27623     "examples/msg/basic.tesh":F)
27624     for file in                                                 \
27625      \
27626      examples/msg/run_msg_test                                  \
27627      examples/simdag/test_simdag                                \
27628      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27629      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27630     ; do                                                        \
27631       test -e $file && chmod +x $file;                          \
27632     done
27633  ;;
27634     "examples/msg/small_plat.tesh":F)
27635     for file in                                                 \
27636      \
27637      examples/msg/run_msg_test                                  \
27638      examples/simdag/test_simdag                                \
27639      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27640      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27641     ; do                                                        \
27642       test -e $file && chmod +x $file;                          \
27643     done
27644  ;;
27645     "examples/msg/suspend.tesh":F)
27646     for file in                                                 \
27647      \
27648      examples/msg/run_msg_test                                  \
27649      examples/simdag/test_simdag                                \
27650      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27651      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27652     ; do                                                        \
27653       test -e $file && chmod +x $file;                          \
27654     done
27655  ;;
27656     "examples/msg/flexml_bypass.tesh":F)
27657     for file in                                                 \
27658      \
27659      examples/msg/run_msg_test                                  \
27660      examples/simdag/test_simdag                                \
27661      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27662      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27663     ; do                                                        \
27664       test -e $file && chmod +x $file;                          \
27665     done
27666  ;;
27667     "examples/simdag/Makefile":F)
27668     for file in                                                 \
27669      \
27670      examples/msg/run_msg_test                                  \
27671      examples/simdag/test_simdag                                \
27672      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27673      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27674     ; do                                                        \
27675       test -e $file && chmod +x $file;                          \
27676     done
27677  ;;
27678     "examples/simdag/test_simdag":F)
27679     for file in                                                 \
27680      \
27681      examples/msg/run_msg_test                                  \
27682      examples/simdag/test_simdag                                \
27683      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27684      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27685     ; do                                                        \
27686       test -e $file && chmod +x $file;                          \
27687     done
27688  ;;
27689     "examples/gras/Makefile":F)
27690     for file in                                                 \
27691      \
27692      examples/msg/run_msg_test                                  \
27693      examples/simdag/test_simdag                                \
27694      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27695      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27696     ; do                                                        \
27697       test -e $file && chmod +x $file;                          \
27698     done
27699  ;;
27700     "examples/gras/ping/Makefile":F)
27701     for file in                                                 \
27702      \
27703      examples/msg/run_msg_test                                  \
27704      examples/simdag/test_simdag                                \
27705      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27706      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27707     ; do                                                        \
27708       test -e $file && chmod +x $file;                          \
27709     done
27710  ;;
27711     "examples/gras/rpc/Makefile":F)
27712     for file in                                                 \
27713      \
27714      examples/msg/run_msg_test                                  \
27715      examples/simdag/test_simdag                                \
27716      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27717      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27718     ; do                                                        \
27719       test -e $file && chmod +x $file;                          \
27720     done
27721  ;;
27722     "examples/gras/timer/Makefile":F)
27723     for file in                                                 \
27724      \
27725      examples/msg/run_msg_test                                  \
27726      examples/simdag/test_simdag                                \
27727      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27728      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27729     ; do                                                        \
27730       test -e $file && chmod +x $file;                          \
27731     done
27732  ;;
27733     "examples/gras/chrono/Makefile":F)
27734     for file in                                                 \
27735      \
27736      examples/msg/run_msg_test                                  \
27737      examples/simdag/test_simdag                                \
27738      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27739      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27740     ; do                                                        \
27741       test -e $file && chmod +x $file;                          \
27742     done
27743  ;;
27744     "examples/gras/mutual_exclusion/simple_token/Makefile":F)
27745     for file in                                                 \
27746      \
27747      examples/msg/run_msg_test                                  \
27748      examples/simdag/test_simdag                                \
27749      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27750      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27751     ; do                                                        \
27752       test -e $file && chmod +x $file;                          \
27753     done
27754  ;;
27755     "examples/gras/mmrpc/Makefile":F)
27756     for file in                                                 \
27757      \
27758      examples/msg/run_msg_test                                  \
27759      examples/simdag/test_simdag                                \
27760      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27761      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27762     ; do                                                        \
27763       test -e $file && chmod +x $file;                          \
27764     done
27765  ;;
27766     "examples/gras/pmm/Makefile":F)
27767     for file in                                                 \
27768      \
27769      examples/msg/run_msg_test                                  \
27770      examples/simdag/test_simdag                                \
27771      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27772      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27773     ; do                                                        \
27774       test -e $file && chmod +x $file;                          \
27775     done
27776  ;;
27777     "examples/gras/all2all/Makefile":F)
27778     for file in                                                 \
27779      \
27780      examples/msg/run_msg_test                                  \
27781      examples/simdag/test_simdag                                \
27782      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27783      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27784     ; do                                                        \
27785       test -e $file && chmod +x $file;                          \
27786     done
27787  ;;
27788     "examples/amok/Makefile":F)
27789     for file in                                                 \
27790      \
27791      examples/msg/run_msg_test                                  \
27792      examples/simdag/test_simdag                                \
27793      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27794      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27795     ; do                                                        \
27796       test -e $file && chmod +x $file;                          \
27797     done
27798  ;;
27799     "examples/amok/bandwidth/Makefile":F)
27800     for file in                                                 \
27801      \
27802      examples/msg/run_msg_test                                  \
27803      examples/simdag/test_simdag                                \
27804      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27805      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27806     ; do                                                        \
27807       test -e $file && chmod +x $file;                          \
27808     done
27809  ;;
27810     "examples/amok/bandwidth/test_sg":F)
27811     for file in                                                 \
27812      \
27813      examples/msg/run_msg_test                                  \
27814      examples/simdag/test_simdag                                \
27815      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27816      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27817     ; do                                                        \
27818       test -e $file && chmod +x $file;                          \
27819     done
27820  ;;
27821     "examples/amok/bandwidth/test_rl":F)
27822     for file in                                                 \
27823      \
27824      examples/msg/run_msg_test                                  \
27825      examples/simdag/test_simdag                                \
27826      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27827      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27828     ; do                                                        \
27829       test -e $file && chmod +x $file;                          \
27830     done
27831  ;;
27832     "examples/amok/saturate/Makefile":F)
27833     for file in                                                 \
27834      \
27835      examples/msg/run_msg_test                                  \
27836      examples/simdag/test_simdag                                \
27837      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27838      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27839     ; do                                                        \
27840       test -e $file && chmod +x $file;                          \
27841     done
27842  ;;
27843     "examples/amok/saturate/test_sg":F)
27844     for file in                                                 \
27845      \
27846      examples/msg/run_msg_test                                  \
27847      examples/simdag/test_simdag                                \
27848      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27849      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27850     ; do                                                        \
27851       test -e $file && chmod +x $file;                          \
27852     done
27853  ;;
27854     "examples/amok/saturate/test_rl":F)
27855     for file in                                                 \
27856      \
27857      examples/msg/run_msg_test                                  \
27858      examples/simdag/test_simdag                                \
27859      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27860      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27861     ; do                                                        \
27862       test -e $file && chmod +x $file;                          \
27863     done
27864  ;;
27865
27866   esac
27867 done # for ac_tag
27868
27869
27870 { (exit 0); exit 0; }
27871 _ACEOF
27872 chmod +x $CONFIG_STATUS
27873 ac_clean_files=$ac_clean_files_save
27874
27875
27876 # configure is writing to config.log, and then calls config.status.
27877 # config.status does its own redirection, appending to config.log.
27878 # Unfortunately, on DOS this fails, as config.log is still kept open
27879 # by configure, so config.status won't be able to write to it; its
27880 # output is simply discarded.  So we exec the FD to /dev/null,
27881 # effectively closing config.log, so it can be properly (re)opened and
27882 # appended to by config.status.  When coming back to configure, we
27883 # need to make the FD available again.
27884 if test "$no_create" != yes; then
27885   ac_cs_success=:
27886   ac_config_status_args=
27887   test "$silent" = yes &&
27888     ac_config_status_args="$ac_config_status_args --quiet"
27889   exec 5>/dev/null
27890   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27891   exec 5>>config.log
27892   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27893   # would make configure fail if this is the last instruction.
27894   $ac_cs_success || { (exit 1); exit 1; }
27895 fi
27896
27897
27898 echo "
27899
27900 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
27901
27902         Compiler:        ${CC} (version: ${GCC_VERSION})
27903
27904         CFlags:          ${CFLAGS}
27905         CPPFlags:        ${CPPFLAGS}
27906         LDFlags:         ${LDFLAGS}
27907
27908         Context backend: ${with_context}
27909 "
27910
27911 if test -e CVS && test x$USE_MAINTAINER_MODE != xyes ; then
27912   echo "WARNING:"
27913   echo "WARNING: you seem to compile the CVS version without the maintainer mode."
27914   echo "WARNING: You won't be able to build archives that way (make dist is likely to fail). "
27915   echo "WARNING: If you want to enable the maintainer mode, juste specify it like this:"
27916   echo "WARNING:"
27917   echo "WARNING: ./configure '--enable-maintainer-mode' $ac_configure_args"
27918   echo "WARNING:"
27919 fi
27920 echo $build_id > stamp.configure
27921
27922 exit 0;