Move the sources to trunk
[opencv] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.46 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.60 for opencv 1.1.0.
5 #
6 # Report bugs to <opencvlibrary-devel@lists.sourceforge.net>.
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 Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26 fi
27 BIN_SH=xpg4; export BIN_SH # for Tru64
28 DUALCASE=1; export DUALCASE # for MKS sh
29
30
31 # PATH needs CR
32 # Avoid depending upon Character Ranges.
33 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36 as_cr_digits='0123456789'
37 as_cr_alnum=$as_cr_Letters$as_cr_digits
38
39 # The user is always right.
40 if test "${PATH_SEPARATOR+set}" != set; then
41   echo "#! /bin/sh" >conf$$.sh
42   echo  "exit 0"   >>conf$$.sh
43   chmod +x conf$$.sh
44   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45     PATH_SEPARATOR=';'
46   else
47     PATH_SEPARATOR=:
48   fi
49   rm -f conf$$.sh
50 fi
51
52 # Support unset when possible.
53 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
54   as_unset=unset
55 else
56   as_unset=false
57 fi
58
59
60 # IFS
61 # We need space, tab and new line, in precisely that order.  Quoting is
62 # there to prevent editors from complaining about space-tab.
63 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
64 # splitting by setting IFS to empty value.)
65 as_nl='
66 '
67 IFS=" ""        $as_nl"
68
69 # Find who we are.  Look in the path if we contain no directory separator.
70 case $0 in
71   *[\\/]* ) as_myself=$0 ;;
72   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 for as_dir in $PATH
74 do
75   IFS=$as_save_IFS
76   test -z "$as_dir" && as_dir=.
77   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
78 done
79 IFS=$as_save_IFS
80
81      ;;
82 esac
83 # We did not find ourselves, most probably we were run as `sh COMMAND'
84 # in which case we are not to be found in the path.
85 if test "x$as_myself" = x; then
86   as_myself=$0
87 fi
88 if test ! -f "$as_myself"; then
89   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90   { (exit 1); exit 1; }
91 fi
92
93 # Work around bugs in pre-3.0 UWIN ksh.
94 for as_var in ENV MAIL MAILPATH
95 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
96 done
97 PS1='$ '
98 PS2='> '
99 PS4='+ '
100
101 # NLS nuisances.
102 for as_var in \
103   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
104   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
105   LC_TELEPHONE LC_TIME
106 do
107   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
108     eval $as_var=C; export $as_var
109   else
110     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111   fi
112 done
113
114 # Required to use basename.
115 if expr a : '\(a\)' >/dev/null 2>&1 &&
116    test "X`expr 00001 : '.*\(...\)'`" = X001; then
117   as_expr=expr
118 else
119   as_expr=false
120 fi
121
122 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
123   as_basename=basename
124 else
125   as_basename=false
126 fi
127
128
129 # Name of the executable.
130 as_me=`$as_basename -- "$0" ||
131 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
132          X"$0" : 'X\(//\)$' \| \
133          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134 echo X/"$0" |
135     sed '/^.*\/\([^/][^/]*\)\/*$/{
136             s//\1/
137             q
138           }
139           /^X\/\(\/\/\)$/{
140             s//\1/
141             q
142           }
143           /^X\/\(\/\).*/{
144             s//\1/
145             q
146           }
147           s/.*/./; q'`
148
149 # CDPATH.
150 $as_unset CDPATH
151
152
153 if test "x$CONFIG_SHELL" = x; then
154   if (eval ":") 2>/dev/null; then
155   as_have_required=yes
156 else
157   as_have_required=no
158 fi
159
160   if test $as_have_required = yes &&     (eval ":
161 (as_func_return () {
162   (exit \$1)
163 }
164 as_func_success () {
165   as_func_return 0
166 }
167 as_func_failure () {
168   as_func_return 1
169 }
170 as_func_ret_success () {
171   return 0
172 }
173 as_func_ret_failure () {
174   return 1
175 }
176
177 exitcode=0
178 if as_func_success; then
179   :
180 else
181   exitcode=1
182   echo as_func_success failed.
183 fi
184
185 if as_func_failure; then
186   exitcode=1
187   echo as_func_failure succeeded.
188 fi
189
190 if as_func_ret_success; then
191   :
192 else
193   exitcode=1
194   echo as_func_ret_success failed.
195 fi
196
197 if as_func_ret_failure; then
198   exitcode=1
199   echo as_func_ret_failure succeeded.
200 fi
201
202 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203   :
204 else
205   exitcode=1
206   echo positional parameters were not saved.
207 fi
208
209 test \$exitcode = 0) || { (exit 1); exit 1; }
210
211 (
212   as_lineno_1=\$LINENO
213   as_lineno_2=\$LINENO
214   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
215   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
216 ") 2> /dev/null; then
217   :
218 else
219   as_candidate_shells=
220     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 do
223   IFS=$as_save_IFS
224   test -z "$as_dir" && as_dir=.
225   case $as_dir in
226          /*)
227            for as_base in sh bash ksh sh5; do
228              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
229            done;;
230        esac
231 done
232 IFS=$as_save_IFS
233
234
235       for as_shell in $as_candidate_shells $SHELL; do
236          # Try only shells that exist, to save several forks.
237          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
238                 { ("$as_shell") 2> /dev/null <<\_ASEOF
239 # Be Bourne compatible
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
249 fi
250 BIN_SH=xpg4; export BIN_SH # for Tru64
251 DUALCASE=1; export DUALCASE # for MKS sh
252
253 :
254 _ASEOF
255 }; then
256   CONFIG_SHELL=$as_shell
257                as_have_required=yes
258                if { "$as_shell" 2> /dev/null <<\_ASEOF
259 # Be Bourne compatible
260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
261   emulate sh
262   NULLCMD=:
263   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
264   # is contrary to our usage.  Disable this feature.
265   alias -g '${1+"$@"}'='"$@"'
266   setopt NO_GLOB_SUBST
267 else
268   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269 fi
270 BIN_SH=xpg4; export BIN_SH # for Tru64
271 DUALCASE=1; export DUALCASE # for MKS sh
272
273 :
274 (as_func_return () {
275   (exit $1)
276 }
277 as_func_success () {
278   as_func_return 0
279 }
280 as_func_failure () {
281   as_func_return 1
282 }
283 as_func_ret_success () {
284   return 0
285 }
286 as_func_ret_failure () {
287   return 1
288 }
289
290 exitcode=0
291 if as_func_success; then
292   :
293 else
294   exitcode=1
295   echo as_func_success failed.
296 fi
297
298 if as_func_failure; then
299   exitcode=1
300   echo as_func_failure succeeded.
301 fi
302
303 if as_func_ret_success; then
304   :
305 else
306   exitcode=1
307   echo as_func_ret_success failed.
308 fi
309
310 if as_func_ret_failure; then
311   exitcode=1
312   echo as_func_ret_failure succeeded.
313 fi
314
315 if ( set x; as_func_ret_success y && test x = "$1" ); then
316   :
317 else
318   exitcode=1
319   echo positional parameters were not saved.
320 fi
321
322 test $exitcode = 0) || { (exit 1); exit 1; }
323
324 (
325   as_lineno_1=$LINENO
326   as_lineno_2=$LINENO
327   test "x$as_lineno_1" != "x$as_lineno_2" &&
328   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
329
330 _ASEOF
331 }; then
332   break
333 fi
334
335 fi
336
337       done
338
339       if test "x$CONFIG_SHELL" != x; then
340   for as_var in BASH_ENV ENV
341         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
342         done
343         export CONFIG_SHELL
344         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345 fi
346
347
348     if test $as_have_required = no; then
349   echo This script requires a shell more modern than all the
350       echo shells that I found on your system.  Please install a
351       echo modern shell, or manually run the script under such a
352       echo shell if you do have one.
353       { (exit 1); exit 1; }
354 fi
355
356
357 fi
358
359 fi
360
361
362
363 (eval "as_func_return () {
364   (exit \$1)
365 }
366 as_func_success () {
367   as_func_return 0
368 }
369 as_func_failure () {
370   as_func_return 1
371 }
372 as_func_ret_success () {
373   return 0
374 }
375 as_func_ret_failure () {
376   return 1
377 }
378
379 exitcode=0
380 if as_func_success; then
381   :
382 else
383   exitcode=1
384   echo as_func_success failed.
385 fi
386
387 if as_func_failure; then
388   exitcode=1
389   echo as_func_failure succeeded.
390 fi
391
392 if as_func_ret_success; then
393   :
394 else
395   exitcode=1
396   echo as_func_ret_success failed.
397 fi
398
399 if as_func_ret_failure; then
400   exitcode=1
401   echo as_func_ret_failure succeeded.
402 fi
403
404 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405   :
406 else
407   exitcode=1
408   echo positional parameters were not saved.
409 fi
410
411 test \$exitcode = 0") || {
412   echo No shell found that supports shell functions.
413   echo Please tell autoconf@gnu.org about your system,
414   echo including any error possibly output before this
415   echo message
416 }
417
418
419
420   as_lineno_1=$LINENO
421   as_lineno_2=$LINENO
422   test "x$as_lineno_1" != "x$as_lineno_2" &&
423   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
424
425   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
426   # uniformly replaced by the line number.  The first 'sed' inserts a
427   # line-number line after each line using $LINENO; the second 'sed'
428   # does the real work.  The second script uses 'N' to pair each
429   # line-number line with the line containing $LINENO, and appends
430   # trailing '-' during substitution so that $LINENO is not a special
431   # case at line end.
432   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
433   # scripts with optimization help from Paolo Bonzini.  Blame Lee
434   # E. McMahon (1931-1989) for sed's syntax.  :-)
435   sed -n '
436     p
437     /[$]LINENO/=
438   ' <$as_myself |
439     sed '
440       s/[$]LINENO.*/&-/
441       t lineno
442       b
443       :lineno
444       N
445       :loop
446       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447       t loop
448       s/-\n.*//
449     ' >$as_me.lineno &&
450   chmod +x "$as_me.lineno" ||
451     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
452    { (exit 1); exit 1; }; }
453
454   # Don't try to exec as it changes $[0], causing all sort of problems
455   # (the dirname of $[0] is not the place where we might find the
456   # original and so on.  Autoconf is especially sensitive to this).
457   . "./$as_me.lineno"
458   # Exit status is that of the last command.
459   exit
460 }
461
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464   as_dirname=dirname
465 else
466   as_dirname=false
467 fi
468
469 ECHO_C= ECHO_N= ECHO_T=
470 case `echo -n x` in
471 -n*)
472   case `echo 'x\c'` in
473   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
474   *)   ECHO_C='\c';;
475   esac;;
476 *)
477   ECHO_N='-n';;
478 esac
479
480 if expr a : '\(a\)' >/dev/null 2>&1 &&
481    test "X`expr 00001 : '.*\(...\)'`" = X001; then
482   as_expr=expr
483 else
484   as_expr=false
485 fi
486
487 rm -f conf$$ conf$$.exe conf$$.file
488 if test -d conf$$.dir; then
489   rm -f conf$$.dir/conf$$.file
490 else
491   rm -f conf$$.dir
492   mkdir conf$$.dir
493 fi
494 echo >conf$$.file
495 if ln -s conf$$.file conf$$ 2>/dev/null; then
496   as_ln_s='ln -s'
497   # ... but there are two gotchas:
498   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
499   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
500   # In both cases, we have to default to `cp -p'.
501   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
502     as_ln_s='cp -p'
503 elif ln conf$$.file conf$$ 2>/dev/null; then
504   as_ln_s=ln
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p=:
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
519 # systems may use methods other than mode bits to determine executability.
520 cat >conf$$.file <<_ASEOF
521 #! /bin/sh
522 exit 0
523 _ASEOF
524 chmod +x conf$$.file
525 if test -x conf$$.file >/dev/null 2>&1; then
526   as_executable_p="test -x"
527 else
528   as_executable_p=:
529 fi
530 rm -f conf$$.file
531
532 # Sed expression to map a string onto a valid CPP name.
533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534
535 # Sed expression to map a string onto a valid variable name.
536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537
538
539
540
541 # Check that we are running under the correct shell.
542 SHELL=${CONFIG_SHELL-/bin/sh}
543
544 case X$ECHO in
545 X*--fallback-echo)
546   # Remove one level of quotation (which was required for Make).
547   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
548   ;;
549 esac
550
551 echo=${ECHO-echo}
552 if test "X$1" = X--no-reexec; then
553   # Discard the --no-reexec flag, and continue.
554   shift
555 elif test "X$1" = X--fallback-echo; then
556   # Avoid inline document here, it may be left over
557   :
558 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
559   # Yippee, $echo works!
560   :
561 else
562   # Restart under the correct shell.
563   exec $SHELL "$0" --no-reexec ${1+"$@"}
564 fi
565
566 if test "X$1" = X--fallback-echo; then
567   # used as fallback echo
568   shift
569   cat <<EOF
570 $*
571 EOF
572   exit 0
573 fi
574
575 # The HP-UX ksh and POSIX shell print the target directory to stdout
576 # if CDPATH is set.
577 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
578
579 if test -z "$ECHO"; then
580 if test "X${echo_test_string+set}" != Xset; then
581 # find a string as large as possible, as long as the shell can cope with it
582   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
583     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
584     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
585        echo_test_string=`eval $cmd` &&
586        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
587     then
588       break
589     fi
590   done
591 fi
592
593 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
594    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
595    test "X$echo_testing_string" = "X$echo_test_string"; then
596   :
597 else
598   # The Solaris, AIX, and Digital Unix default echo programs unquote
599   # backslashes.  This makes it impossible to quote backslashes using
600   #   echo "$something" | sed 's/\\/\\\\/g'
601   #
602   # So, first we look for a working echo in the user's PATH.
603
604   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
605   for dir in $PATH /usr/ucb; do
606     IFS="$lt_save_ifs"
607     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
608        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
609        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
610        test "X$echo_testing_string" = "X$echo_test_string"; then
611       echo="$dir/echo"
612       break
613     fi
614   done
615   IFS="$lt_save_ifs"
616
617   if test "X$echo" = Xecho; then
618     # We didn't find a better echo, so look for alternatives.
619     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
620        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
621        test "X$echo_testing_string" = "X$echo_test_string"; then
622       # This shell has a builtin print -r that does the trick.
623       echo='print -r'
624     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
625          test "X$CONFIG_SHELL" != X/bin/ksh; then
626       # If we have ksh, try running configure again with it.
627       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
628       export ORIGINAL_CONFIG_SHELL
629       CONFIG_SHELL=/bin/ksh
630       export CONFIG_SHELL
631       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
632     else
633       # Try using printf.
634       echo='printf %s\n'
635       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
636          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
637          test "X$echo_testing_string" = "X$echo_test_string"; then
638         # Cool, printf works
639         :
640       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641            test "X$echo_testing_string" = 'X\t' &&
642            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643            test "X$echo_testing_string" = "X$echo_test_string"; then
644         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
645         export CONFIG_SHELL
646         SHELL="$CONFIG_SHELL"
647         export SHELL
648         echo="$CONFIG_SHELL $0 --fallback-echo"
649       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
650            test "X$echo_testing_string" = 'X\t' &&
651            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
652            test "X$echo_testing_string" = "X$echo_test_string"; then
653         echo="$CONFIG_SHELL $0 --fallback-echo"
654       else
655         # maybe with a smaller string...
656         prev=:
657
658         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
659           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
660           then
661             break
662           fi
663           prev="$cmd"
664         done
665
666         if test "$prev" != 'sed 50q "$0"'; then
667           echo_test_string=`eval $prev`
668           export echo_test_string
669           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
670         else
671           # Oops.  We lost completely, so just stick with echo.
672           echo=echo
673         fi
674       fi
675     fi
676   fi
677 fi
678 fi
679
680 # Copy echo and quote the copy suitably for passing to libtool from
681 # the Makefile, instead of quoting the original, which is used later.
682 ECHO=$echo
683 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
684    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
685 fi
686
687
688
689
690 tagnames=${tagnames+${tagnames},}CXX
691
692 tagnames=${tagnames+${tagnames},}F77
693
694 exec 7<&0 </dev/null 6>&1
695
696 # Name of the host.
697 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
698 # so uname gets run too.
699 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
700
701 #
702 # Initializations.
703 #
704 ac_default_prefix=/usr/local
705 ac_clean_files=
706 ac_config_libobj_dir=.
707 LIBOBJS=
708 cross_compiling=no
709 subdirs=
710 MFLAGS=
711 MAKEFLAGS=
712 SHELL=${CONFIG_SHELL-/bin/sh}
713
714 # Identity of this package.
715 PACKAGE_NAME='opencv'
716 PACKAGE_TARNAME='opencv'
717 PACKAGE_VERSION='1.1.0'
718 PACKAGE_STRING='opencv 1.1.0'
719 PACKAGE_BUGREPORT='opencvlibrary-devel@lists.sourceforge.net'
720
721 ac_unique_file="opencv.pc.in"
722 # Factoring default headers for most tests.
723 ac_includes_default="\
724 #include <stdio.h>
725 #if HAVE_SYS_TYPES_H
726 # include <sys/types.h>
727 #endif
728 #if HAVE_SYS_STAT_H
729 # include <sys/stat.h>
730 #endif
731 #if STDC_HEADERS
732 # include <stdlib.h>
733 # include <stddef.h>
734 #else
735 # if HAVE_STDLIB_H
736 #  include <stdlib.h>
737 # endif
738 #endif
739 #if HAVE_STRING_H
740 # if !STDC_HEADERS && HAVE_MEMORY_H
741 #  include <memory.h>
742 # endif
743 # include <string.h>
744 #endif
745 #if HAVE_STRINGS_H
746 # include <strings.h>
747 #endif
748 #if HAVE_INTTYPES_H
749 # include <inttypes.h>
750 #endif
751 #if HAVE_STDINT_H
752 # include <stdint.h>
753 #endif
754 #if HAVE_UNISTD_H
755 # include <unistd.h>
756 #endif"
757
758 ac_subst_vars='SHELL
759 PATH_SEPARATOR
760 PACKAGE_NAME
761 PACKAGE_TARNAME
762 PACKAGE_VERSION
763 PACKAGE_STRING
764 PACKAGE_BUGREPORT
765 exec_prefix
766 prefix
767 program_transform_name
768 bindir
769 sbindir
770 libexecdir
771 datarootdir
772 datadir
773 sysconfdir
774 sharedstatedir
775 localstatedir
776 includedir
777 oldincludedir
778 docdir
779 infodir
780 htmldir
781 dvidir
782 pdfdir
783 psdir
784 libdir
785 localedir
786 mandir
787 DEFS
788 ECHO_C
789 ECHO_N
790 ECHO_T
791 LIBS
792 build_alias
793 host_alias
794 target_alias
795 build
796 build_cpu
797 build_vendor
798 build_os
799 host
800 host_cpu
801 host_vendor
802 host_os
803 target
804 target_cpu
805 target_vendor
806 target_os
807 INSTALL_PROGRAM
808 INSTALL_SCRIPT
809 INSTALL_DATA
810 CYGPATH_W
811 PACKAGE
812 VERSION
813 ACLOCAL
814 AUTOCONF
815 AUTOMAKE
816 AUTOHEADER
817 MAKEINFO
818 install_sh
819 STRIP
820 INSTALL_STRIP_PROGRAM
821 mkdir_p
822 AWK
823 SET_MAKE
824 am__leading_dot
825 AMTAR
826 am__tar
827 am__untar
828 MMAJOR
829 MMINOR
830 MSUBMINOR
831 LT_VERSION
832 CXX
833 CXXFLAGS
834 LDFLAGS
835 CPPFLAGS
836 ac_ct_CXX
837 EXEEXT
838 OBJEXT
839 DEPDIR
840 am__include
841 am__quote
842 AMDEP_TRUE
843 AMDEP_FALSE
844 AMDEPBACKSLASH
845 CXXDEPMODE
846 am__fastdepCXX_TRUE
847 am__fastdepCXX_FALSE
848 CC
849 CFLAGS
850 ac_ct_CC
851 CCDEPMODE
852 am__fastdepCC_TRUE
853 am__fastdepCC_FALSE
854 CPP
855 GREP
856 EGREP
857 LN_S
858 ECHO
859 AR
860 RANLIB
861 DLLTOOL
862 AS
863 OBJDUMP
864 CXXCPP
865 F77
866 FFLAGS
867 ac_ct_F77
868 LIBTOOL
869 BUILD_APPS_TRUE
870 BUILD_APPS_FALSE
871 PY_CXXFLAGS
872 ALLOCA
873 CARBON_CFLAGS
874 CARBON_LIBS
875 BUILD_CARBON_TRUE
876 BUILD_CARBON_FALSE
877 PKG_CONFIG
878 GTK_CFLAGS
879 GTK_LIBS
880 GTHREAD_CFLAGS
881 GTHREAD_LIBS
882 BUILD_GTK_TRUE
883 BUILD_GTK_FALSE
884 QUICKTIME_CFLAGS
885 QUICKTIME_LIBS
886 BUILD_QUICKTIME_TRUE
887 BUILD_QUICKTIME_FALSE
888 XINE_LIBS
889 BUILD_XINE_TRUE
890 BUILD_XINE_FALSE
891 FFMPEGLIBS
892 BUILD_FFMPEG_TRUE
893 BUILD_FFMPEG_FALSE
894 IEEE1394LIBS
895 BUILD_DC1394_TRUE
896 BUILD_DC1394_FALSE
897 BUILD_V4L_TRUE
898 BUILD_V4L_FALSE
899 IMAGELIBS
900 BUILD_IMAGEIO_TRUE
901 BUILD_IMAGEIO_FALSE
902 PYTHON
903 PYTHON_VERSION
904 PYTHON_PREFIX
905 PYTHON_EXEC_PREFIX
906 PYTHON_PLATFORM
907 pythondir
908 pkgpythondir
909 pyexecdir
910 pkgpyexecdir
911 PYTHON_CSPEC
912 PYTHON_LSPEC
913 BUILD_PYTHON_WRAPPERS_TRUE
914 BUILD_PYTHON_WRAPPERS_FALSE
915 SWIG
916 SWIG_VERSION
917 SWIG_RUNTIME_LIBS_DIR
918 SWIG_PYTHON_OPT
919 SWIG_PYTHON_LIBS
920 UPDATE_SWIG_WRAPPERS_TRUE
921 UPDATE_SWIG_WRAPPERS_FALSE
922 DEBUG
923 LIBOBJS
924 LTLIBOBJS'
925 ac_subst_files=''
926       ac_precious_vars='build_alias
927 host_alias
928 target_alias
929 CXX
930 CXXFLAGS
931 LDFLAGS
932 CPPFLAGS
933 CCC
934 CC
935 CFLAGS
936 CPP
937 CXXCPP
938 F77
939 FFLAGS
940 PYTHON
941 SWIG'
942
943
944 # Initialize some variables set by options.
945 ac_init_help=
946 ac_init_version=false
947 # The variables have the same names as the options, with
948 # dashes changed to underlines.
949 cache_file=/dev/null
950 exec_prefix=NONE
951 no_create=
952 no_recursion=
953 prefix=NONE
954 program_prefix=NONE
955 program_suffix=NONE
956 program_transform_name=s,x,x,
957 silent=
958 site=
959 srcdir=
960 verbose=
961 x_includes=NONE
962 x_libraries=NONE
963
964 # Installation directory options.
965 # These are left unexpanded so users can "make install exec_prefix=/foo"
966 # and all the variables that are supposed to be based on exec_prefix
967 # by default will actually change.
968 # Use braces instead of parens because sh, perl, etc. also accept them.
969 # (The list follows the same order as the GNU Coding Standards.)
970 bindir='${exec_prefix}/bin'
971 sbindir='${exec_prefix}/sbin'
972 libexecdir='${exec_prefix}/libexec'
973 datarootdir='${prefix}/share'
974 datadir='${datarootdir}'
975 sysconfdir='${prefix}/etc'
976 sharedstatedir='${prefix}/com'
977 localstatedir='${prefix}/var'
978 includedir='${prefix}/include'
979 oldincludedir='/usr/include'
980 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
981 infodir='${datarootdir}/info'
982 htmldir='${docdir}'
983 dvidir='${docdir}'
984 pdfdir='${docdir}'
985 psdir='${docdir}'
986 libdir='${exec_prefix}/lib'
987 localedir='${datarootdir}/locale'
988 mandir='${datarootdir}/man'
989
990 ac_prev=
991 ac_dashdash=
992 for ac_option
993 do
994   # If the previous option needs an argument, assign it.
995   if test -n "$ac_prev"; then
996     eval $ac_prev=\$ac_option
997     ac_prev=
998     continue
999   fi
1000
1001   case $ac_option in
1002   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1003   *)    ac_optarg=yes ;;
1004   esac
1005
1006   # Accept the important Cygnus configure options, so we can diagnose typos.
1007
1008   case $ac_dashdash$ac_option in
1009   --)
1010     ac_dashdash=yes ;;
1011
1012   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1013     ac_prev=bindir ;;
1014   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1015     bindir=$ac_optarg ;;
1016
1017   -build | --build | --buil | --bui | --bu)
1018     ac_prev=build_alias ;;
1019   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1020     build_alias=$ac_optarg ;;
1021
1022   -cache-file | --cache-file | --cache-fil | --cache-fi \
1023   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1024     ac_prev=cache_file ;;
1025   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1026   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1027     cache_file=$ac_optarg ;;
1028
1029   --config-cache | -C)
1030     cache_file=config.cache ;;
1031
1032   -datadir | --datadir | --datadi | --datad)
1033     ac_prev=datadir ;;
1034   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1035     datadir=$ac_optarg ;;
1036
1037   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1038   | --dataroo | --dataro | --datar)
1039     ac_prev=datarootdir ;;
1040   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1041   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1042     datarootdir=$ac_optarg ;;
1043
1044   -disable-* | --disable-*)
1045     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1046     # Reject names that are not valid shell variable names.
1047     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1048       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1049    { (exit 1); exit 1; }; }
1050     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1051     eval enable_$ac_feature=no ;;
1052
1053   -docdir | --docdir | --docdi | --doc | --do)
1054     ac_prev=docdir ;;
1055   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1056     docdir=$ac_optarg ;;
1057
1058   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1059     ac_prev=dvidir ;;
1060   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1061     dvidir=$ac_optarg ;;
1062
1063   -enable-* | --enable-*)
1064     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1065     # Reject names that are not valid shell variable names.
1066     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1067       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1068    { (exit 1); exit 1; }; }
1069     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1070     eval enable_$ac_feature=\$ac_optarg ;;
1071
1072   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1073   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1074   | --exec | --exe | --ex)
1075     ac_prev=exec_prefix ;;
1076   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1077   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1078   | --exec=* | --exe=* | --ex=*)
1079     exec_prefix=$ac_optarg ;;
1080
1081   -gas | --gas | --ga | --g)
1082     # Obsolete; use --with-gas.
1083     with_gas=yes ;;
1084
1085   -help | --help | --hel | --he | -h)
1086     ac_init_help=long ;;
1087   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1088     ac_init_help=recursive ;;
1089   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1090     ac_init_help=short ;;
1091
1092   -host | --host | --hos | --ho)
1093     ac_prev=host_alias ;;
1094   -host=* | --host=* | --hos=* | --ho=*)
1095     host_alias=$ac_optarg ;;
1096
1097   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1098     ac_prev=htmldir ;;
1099   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1100   | --ht=*)
1101     htmldir=$ac_optarg ;;
1102
1103   -includedir | --includedir | --includedi | --included | --include \
1104   | --includ | --inclu | --incl | --inc)
1105     ac_prev=includedir ;;
1106   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1107   | --includ=* | --inclu=* | --incl=* | --inc=*)
1108     includedir=$ac_optarg ;;
1109
1110   -infodir | --infodir | --infodi | --infod | --info | --inf)
1111     ac_prev=infodir ;;
1112   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1113     infodir=$ac_optarg ;;
1114
1115   -libdir | --libdir | --libdi | --libd)
1116     ac_prev=libdir ;;
1117   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1118     libdir=$ac_optarg ;;
1119
1120   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1121   | --libexe | --libex | --libe)
1122     ac_prev=libexecdir ;;
1123   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1124   | --libexe=* | --libex=* | --libe=*)
1125     libexecdir=$ac_optarg ;;
1126
1127   -localedir | --localedir | --localedi | --localed | --locale)
1128     ac_prev=localedir ;;
1129   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1130     localedir=$ac_optarg ;;
1131
1132   -localstatedir | --localstatedir | --localstatedi | --localstated \
1133   | --localstate | --localstat | --localsta | --localst | --locals)
1134     ac_prev=localstatedir ;;
1135   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1136   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1137     localstatedir=$ac_optarg ;;
1138
1139   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1140     ac_prev=mandir ;;
1141   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1142     mandir=$ac_optarg ;;
1143
1144   -nfp | --nfp | --nf)
1145     # Obsolete; use --without-fp.
1146     with_fp=no ;;
1147
1148   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1149   | --no-cr | --no-c | -n)
1150     no_create=yes ;;
1151
1152   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1153   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1154     no_recursion=yes ;;
1155
1156   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1157   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1158   | --oldin | --oldi | --old | --ol | --o)
1159     ac_prev=oldincludedir ;;
1160   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1161   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1162   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1163     oldincludedir=$ac_optarg ;;
1164
1165   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1166     ac_prev=prefix ;;
1167   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1168     prefix=$ac_optarg ;;
1169
1170   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1171   | --program-pre | --program-pr | --program-p)
1172     ac_prev=program_prefix ;;
1173   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1174   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1175     program_prefix=$ac_optarg ;;
1176
1177   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1178   | --program-suf | --program-su | --program-s)
1179     ac_prev=program_suffix ;;
1180   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1181   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1182     program_suffix=$ac_optarg ;;
1183
1184   -program-transform-name | --program-transform-name \
1185   | --program-transform-nam | --program-transform-na \
1186   | --program-transform-n | --program-transform- \
1187   | --program-transform | --program-transfor \
1188   | --program-transfo | --program-transf \
1189   | --program-trans | --program-tran \
1190   | --progr-tra | --program-tr | --program-t)
1191     ac_prev=program_transform_name ;;
1192   -program-transform-name=* | --program-transform-name=* \
1193   | --program-transform-nam=* | --program-transform-na=* \
1194   | --program-transform-n=* | --program-transform-=* \
1195   | --program-transform=* | --program-transfor=* \
1196   | --program-transfo=* | --program-transf=* \
1197   | --program-trans=* | --program-tran=* \
1198   | --progr-tra=* | --program-tr=* | --program-t=*)
1199     program_transform_name=$ac_optarg ;;
1200
1201   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1202     ac_prev=pdfdir ;;
1203   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1204     pdfdir=$ac_optarg ;;
1205
1206   -psdir | --psdir | --psdi | --psd | --ps)
1207     ac_prev=psdir ;;
1208   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1209     psdir=$ac_optarg ;;
1210
1211   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1212   | -silent | --silent | --silen | --sile | --sil)
1213     silent=yes ;;
1214
1215   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1216     ac_prev=sbindir ;;
1217   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1218   | --sbi=* | --sb=*)
1219     sbindir=$ac_optarg ;;
1220
1221   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1222   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1223   | --sharedst | --shareds | --shared | --share | --shar \
1224   | --sha | --sh)
1225     ac_prev=sharedstatedir ;;
1226   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1227   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1228   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1229   | --sha=* | --sh=*)
1230     sharedstatedir=$ac_optarg ;;
1231
1232   -site | --site | --sit)
1233     ac_prev=site ;;
1234   -site=* | --site=* | --sit=*)
1235     site=$ac_optarg ;;
1236
1237   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1238     ac_prev=srcdir ;;
1239   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1240     srcdir=$ac_optarg ;;
1241
1242   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1243   | --syscon | --sysco | --sysc | --sys | --sy)
1244     ac_prev=sysconfdir ;;
1245   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1246   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1247     sysconfdir=$ac_optarg ;;
1248
1249   -target | --target | --targe | --targ | --tar | --ta | --t)
1250     ac_prev=target_alias ;;
1251   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1252     target_alias=$ac_optarg ;;
1253
1254   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1255     verbose=yes ;;
1256
1257   -version | --version | --versio | --versi | --vers | -V)
1258     ac_init_version=: ;;
1259
1260   -with-* | --with-*)
1261     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1262     # Reject names that are not valid shell variable names.
1263     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1264       { echo "$as_me: error: invalid package name: $ac_package" >&2
1265    { (exit 1); exit 1; }; }
1266     ac_package=`echo $ac_package| sed 's/-/_/g'`
1267     eval with_$ac_package=\$ac_optarg ;;
1268
1269   -without-* | --without-*)
1270     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1271     # Reject names that are not valid shell variable names.
1272     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1273       { echo "$as_me: error: invalid package name: $ac_package" >&2
1274    { (exit 1); exit 1; }; }
1275     ac_package=`echo $ac_package | sed 's/-/_/g'`
1276     eval with_$ac_package=no ;;
1277
1278   --x)
1279     # Obsolete; use --with-x.
1280     with_x=yes ;;
1281
1282   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1283   | --x-incl | --x-inc | --x-in | --x-i)
1284     ac_prev=x_includes ;;
1285   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1286   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1287     x_includes=$ac_optarg ;;
1288
1289   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1290   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1291     ac_prev=x_libraries ;;
1292   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1293   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1294     x_libraries=$ac_optarg ;;
1295
1296   -*) { echo "$as_me: error: unrecognized option: $ac_option
1297 Try \`$0 --help' for more information." >&2
1298    { (exit 1); exit 1; }; }
1299     ;;
1300
1301   *=*)
1302     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1303     # Reject names that are not valid shell variable names.
1304     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1305       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1306    { (exit 1); exit 1; }; }
1307     eval $ac_envvar=\$ac_optarg
1308     export $ac_envvar ;;
1309
1310   *)
1311     # FIXME: should be removed in autoconf 3.0.
1312     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1313     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1314       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1315     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1316     ;;
1317
1318   esac
1319 done
1320
1321 if test -n "$ac_prev"; then
1322   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1323   { echo "$as_me: error: missing argument to $ac_option" >&2
1324    { (exit 1); exit 1; }; }
1325 fi
1326
1327 # Be sure to have absolute directory names.
1328 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1329                 datadir sysconfdir sharedstatedir localstatedir includedir \
1330                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1331                 libdir localedir mandir
1332 do
1333   eval ac_val=\$$ac_var
1334   case $ac_val in
1335     [\\/$]* | ?:[\\/]* )  continue;;
1336     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1337   esac
1338   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1339    { (exit 1); exit 1; }; }
1340 done
1341
1342 # There might be people who depend on the old broken behavior: `$host'
1343 # used to hold the argument of --host etc.
1344 # FIXME: To remove some day.
1345 build=$build_alias
1346 host=$host_alias
1347 target=$target_alias
1348
1349 # FIXME: To remove some day.
1350 if test "x$host_alias" != x; then
1351   if test "x$build_alias" = x; then
1352     cross_compiling=maybe
1353     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1354     If a cross compiler is detected then cross compile mode will be used." >&2
1355   elif test "x$build_alias" != "x$host_alias"; then
1356     cross_compiling=yes
1357   fi
1358 fi
1359
1360 ac_tool_prefix=
1361 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1362
1363 test "$silent" = yes && exec 6>/dev/null
1364
1365
1366 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1367 ac_ls_di=`ls -di .` &&
1368 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1369   { echo "$as_me: error: Working directory cannot be determined" >&2
1370    { (exit 1); exit 1; }; }
1371 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1372   { echo "$as_me: error: pwd does not report name of working directory" >&2
1373    { (exit 1); exit 1; }; }
1374
1375
1376 # Find the source files, if location was not specified.
1377 if test -z "$srcdir"; then
1378   ac_srcdir_defaulted=yes
1379   # Try the directory containing this script, then the parent directory.
1380   ac_confdir=`$as_dirname -- "$0" ||
1381 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1382          X"$0" : 'X\(//\)[^/]' \| \
1383          X"$0" : 'X\(//\)$' \| \
1384          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1385 echo X"$0" |
1386     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1387             s//\1/
1388             q
1389           }
1390           /^X\(\/\/\)[^/].*/{
1391             s//\1/
1392             q
1393           }
1394           /^X\(\/\/\)$/{
1395             s//\1/
1396             q
1397           }
1398           /^X\(\/\).*/{
1399             s//\1/
1400             q
1401           }
1402           s/.*/./; q'`
1403   srcdir=$ac_confdir
1404   if test ! -r "$srcdir/$ac_unique_file"; then
1405     srcdir=..
1406   fi
1407 else
1408   ac_srcdir_defaulted=no
1409 fi
1410 if test ! -r "$srcdir/$ac_unique_file"; then
1411   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1412   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1413    { (exit 1); exit 1; }; }
1414 fi
1415 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1416 ac_abs_confdir=`(
1417         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1418    { (exit 1); exit 1; }; }
1419         pwd)`
1420 # When building in place, set srcdir=.
1421 if test "$ac_abs_confdir" = "$ac_pwd"; then
1422   srcdir=.
1423 fi
1424 # Remove unnecessary trailing slashes from srcdir.
1425 # Double slashes in file names in object file debugging info
1426 # mess up M-x gdb in Emacs.
1427 case $srcdir in
1428 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1429 esac
1430 for ac_var in $ac_precious_vars; do
1431   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1432   eval ac_env_${ac_var}_value=\$${ac_var}
1433   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1434   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1435 done
1436
1437 #
1438 # Report the --help message.
1439 #
1440 if test "$ac_init_help" = "long"; then
1441   # Omit some internal or obsolete options to make the list less imposing.
1442   # This message is too long to be a string in the A/UX 3.1 sh.
1443   cat <<_ACEOF
1444 \`configure' configures opencv 1.1.0 to adapt to many kinds of systems.
1445
1446 Usage: $0 [OPTION]... [VAR=VALUE]...
1447
1448 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1449 VAR=VALUE.  See below for descriptions of some of the useful variables.
1450
1451 Defaults for the options are specified in brackets.
1452
1453 Configuration:
1454   -h, --help              display this help and exit
1455       --help=short        display options specific to this package
1456       --help=recursive    display the short help of all the included packages
1457   -V, --version           display version information and exit
1458   -q, --quiet, --silent   do not print \`checking...' messages
1459       --cache-file=FILE   cache test results in FILE [disabled]
1460   -C, --config-cache      alias for \`--cache-file=config.cache'
1461   -n, --no-create         do not create output files
1462       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1463
1464 Installation directories:
1465   --prefix=PREFIX         install architecture-independent files in PREFIX
1466                           [$ac_default_prefix]
1467   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1468                           [PREFIX]
1469
1470 By default, \`make install' will install all the files in
1471 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1472 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1473 for instance \`--prefix=\$HOME'.
1474
1475 For better control, use the options below.
1476
1477 Fine tuning of the installation directories:
1478   --bindir=DIR           user executables [EPREFIX/bin]
1479   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1480   --libexecdir=DIR       program executables [EPREFIX/libexec]
1481   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1482   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1483   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1484   --libdir=DIR           object code libraries [EPREFIX/lib]
1485   --includedir=DIR       C header files [PREFIX/include]
1486   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1487   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1488   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1489   --infodir=DIR          info documentation [DATAROOTDIR/info]
1490   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1491   --mandir=DIR           man documentation [DATAROOTDIR/man]
1492   --docdir=DIR           documentation root [DATAROOTDIR/doc/opencv]
1493   --htmldir=DIR          html documentation [DOCDIR]
1494   --dvidir=DIR           dvi documentation [DOCDIR]
1495   --pdfdir=DIR           pdf documentation [DOCDIR]
1496   --psdir=DIR            ps documentation [DOCDIR]
1497 _ACEOF
1498
1499   cat <<\_ACEOF
1500
1501 Program names:
1502   --program-prefix=PREFIX            prepend PREFIX to installed program names
1503   --program-suffix=SUFFIX            append SUFFIX to installed program names
1504   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1505
1506 System types:
1507   --build=BUILD     configure for building on BUILD [guessed]
1508   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1509   --target=TARGET   configure for building compilers for TARGET [HOST]
1510 _ACEOF
1511 fi
1512
1513 if test -n "$ac_init_help"; then
1514   case $ac_init_help in
1515      short | recursive ) echo "Configuration of opencv 1.1.0:";;
1516    esac
1517   cat <<\_ACEOF
1518
1519 Optional Features:
1520   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1521   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1522   --enable-static[=PKGS]  build static libraries [default=no]
1523   --disable-dependency-tracking  speeds up one-time build
1524   --enable-dependency-tracking   do not reject slow dependency extractors
1525   --enable-shared[=PKGS]  build shared libraries [default=yes]
1526   --enable-fast-install[=PKGS]
1527                           optimize for fast installation [default=yes]
1528   --disable-libtool-lock  avoid locking (might break parallel builds)
1529   --enable-debug          build debug version without optimization [no]
1530   --enable-apps           build demo applications [yes]
1531
1532 Optional Packages:
1533   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1534   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1535   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1536   --with-pic              try to use only PIC/non-PIC objects [default=use
1537                           both]
1538   --with-tags[=TAGS]      include additional configurations [automatic]
1539   --with-swig             use swig wrapper generator [no]
1540   --with-python           use python for wrapping [yes]
1541   --with-xine             use xine libraries (see LICENSE) [no]
1542   --with-ffmpeg           use ffmpeg libraries (see LICENSE) [automatic]
1543   --with-1394libs         use libraw1394/libdc1394 [automatic]
1544   --with-v4l              use video4linux [automatic]
1545   --with-imageio          use ImageIO libraries [automatic]
1546   --with-quicktime        use QuickTime libraries [automatic]
1547   --with-carbon           use Carbon windows [automatic]
1548   --with-gtk              use gtk+ 2.0 windows [automatic]
1549   --with-gthread          use gthread in addition to gtk+ [automatic]
1550
1551 Some influential environment variables:
1552   CXX         C++ compiler command
1553   CXXFLAGS    C++ compiler flags
1554   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1555               nonstandard directory <lib dir>
1556   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1557               you have headers in a nonstandard directory <include dir>
1558   CC          C compiler command
1559   CFLAGS      C compiler flags
1560   CPP         C preprocessor
1561   CXXCPP      C++ preprocessor
1562   F77         Fortran 77 compiler command
1563   FFLAGS      Fortran 77 compiler flags
1564   PYTHON      Python Executable Path
1565   SWIG        Simplified Wrapper and Interface Generator, used for Python
1566               bindings
1567
1568 Use these variables to override the choices made by `configure' or to help
1569 it to find libraries and programs with nonstandard names/locations.
1570
1571 Report bugs to <opencvlibrary-devel@lists.sourceforge.net>.
1572 _ACEOF
1573 ac_status=$?
1574 fi
1575
1576 if test "$ac_init_help" = "recursive"; then
1577   # If there are subdirs, report their specific --help.
1578   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1579     test -d "$ac_dir" || continue
1580     ac_builddir=.
1581
1582 case "$ac_dir" in
1583 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 *)
1585   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1586   # A ".." for each directory in $ac_dir_suffix.
1587   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1588   case $ac_top_builddir_sub in
1589   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1591   esac ;;
1592 esac
1593 ac_abs_top_builddir=$ac_pwd
1594 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1595 # for backward compatibility:
1596 ac_top_builddir=$ac_top_build_prefix
1597
1598 case $srcdir in
1599   .)  # We are building in place.
1600     ac_srcdir=.
1601     ac_top_srcdir=$ac_top_builddir_sub
1602     ac_abs_top_srcdir=$ac_pwd ;;
1603   [\\/]* | ?:[\\/]* )  # Absolute name.
1604     ac_srcdir=$srcdir$ac_dir_suffix;
1605     ac_top_srcdir=$srcdir
1606     ac_abs_top_srcdir=$srcdir ;;
1607   *) # Relative name.
1608     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1609     ac_top_srcdir=$ac_top_build_prefix$srcdir
1610     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611 esac
1612 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1613
1614     cd "$ac_dir" || { ac_status=$?; continue; }
1615     # Check for guested configure.
1616     if test -f "$ac_srcdir/configure.gnu"; then
1617       echo &&
1618       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1619     elif test -f "$ac_srcdir/configure"; then
1620       echo &&
1621       $SHELL "$ac_srcdir/configure" --help=recursive
1622     else
1623       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624     fi || ac_status=$?
1625     cd "$ac_pwd" || { ac_status=$?; break; }
1626   done
1627 fi
1628
1629 test -n "$ac_init_help" && exit $ac_status
1630 if $ac_init_version; then
1631   cat <<\_ACEOF
1632 opencv configure 1.1.0
1633 generated by GNU Autoconf 2.60
1634
1635 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1636 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1637 This configure script is free software; the Free Software Foundation
1638 gives unlimited permission to copy, distribute and modify it.
1639 _ACEOF
1640   exit
1641 fi
1642 cat >config.log <<_ACEOF
1643 This file contains any messages produced by compilers while
1644 running configure, to aid debugging if configure makes a mistake.
1645
1646 It was created by opencv $as_me 1.1.0, which was
1647 generated by GNU Autoconf 2.60.  Invocation command line was
1648
1649   $ $0 $@
1650
1651 _ACEOF
1652 exec 5>>config.log
1653 {
1654 cat <<_ASUNAME
1655 ## --------- ##
1656 ## Platform. ##
1657 ## --------- ##
1658
1659 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1660 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1661 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1662 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1663 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1664
1665 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1666 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1667
1668 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1669 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1670 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1671 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1672 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1673 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1674 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1675
1676 _ASUNAME
1677
1678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679 for as_dir in $PATH
1680 do
1681   IFS=$as_save_IFS
1682   test -z "$as_dir" && as_dir=.
1683   echo "PATH: $as_dir"
1684 done
1685 IFS=$as_save_IFS
1686
1687 } >&5
1688
1689 cat >&5 <<_ACEOF
1690
1691
1692 ## ----------- ##
1693 ## Core tests. ##
1694 ## ----------- ##
1695
1696 _ACEOF
1697
1698
1699 # Keep a trace of the command line.
1700 # Strip out --no-create and --no-recursion so they do not pile up.
1701 # Strip out --silent because we don't want to record it for future runs.
1702 # Also quote any args containing shell meta-characters.
1703 # Make two passes to allow for proper duplicate-argument suppression.
1704 ac_configure_args=
1705 ac_configure_args0=
1706 ac_configure_args1=
1707 ac_must_keep_next=false
1708 for ac_pass in 1 2
1709 do
1710   for ac_arg
1711   do
1712     case $ac_arg in
1713     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1714     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1715     | -silent | --silent | --silen | --sile | --sil)
1716       continue ;;
1717     *\'*)
1718       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1719     esac
1720     case $ac_pass in
1721     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1722     2)
1723       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1724       if test $ac_must_keep_next = true; then
1725         ac_must_keep_next=false # Got value, back to normal.
1726       else
1727         case $ac_arg in
1728           *=* | --config-cache | -C | -disable-* | --disable-* \
1729           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1730           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1731           | -with-* | --with-* | -without-* | --without-* | --x)
1732             case "$ac_configure_args0 " in
1733               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1734             esac
1735             ;;
1736           -* ) ac_must_keep_next=true ;;
1737         esac
1738       fi
1739       ac_configure_args="$ac_configure_args '$ac_arg'"
1740       ;;
1741     esac
1742   done
1743 done
1744 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1745 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1746
1747 # When interrupted or exit'd, cleanup temporary files, and complete
1748 # config.log.  We remove comments because anyway the quotes in there
1749 # would cause problems or look ugly.
1750 # WARNING: Use '\'' to represent an apostrophe within the trap.
1751 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1752 trap 'exit_status=$?
1753   # Save into config.log some information that might help in debugging.
1754   {
1755     echo
1756
1757     cat <<\_ASBOX
1758 ## ---------------- ##
1759 ## Cache variables. ##
1760 ## ---------------- ##
1761 _ASBOX
1762     echo
1763     # The following way of writing the cache mishandles newlines in values,
1764 (
1765   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1766     eval ac_val=\$$ac_var
1767     case $ac_val in #(
1768     *${as_nl}*)
1769       case $ac_var in #(
1770       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1771 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1772       esac
1773       case $ac_var in #(
1774       _ | IFS | as_nl) ;; #(
1775       *) $as_unset $ac_var ;;
1776       esac ;;
1777     esac
1778   done
1779   (set) 2>&1 |
1780     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1781     *${as_nl}ac_space=\ *)
1782       sed -n \
1783         "s/'\''/'\''\\\\'\'''\''/g;
1784           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1785       ;; #(
1786     *)
1787       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1788       ;;
1789     esac |
1790     sort
1791 )
1792     echo
1793
1794     cat <<\_ASBOX
1795 ## ----------------- ##
1796 ## Output variables. ##
1797 ## ----------------- ##
1798 _ASBOX
1799     echo
1800     for ac_var in $ac_subst_vars
1801     do
1802       eval ac_val=\$$ac_var
1803       case $ac_val in
1804       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1805       esac
1806       echo "$ac_var='\''$ac_val'\''"
1807     done | sort
1808     echo
1809
1810     if test -n "$ac_subst_files"; then
1811       cat <<\_ASBOX
1812 ## ------------------- ##
1813 ## File substitutions. ##
1814 ## ------------------- ##
1815 _ASBOX
1816       echo
1817       for ac_var in $ac_subst_files
1818       do
1819         eval ac_val=\$$ac_var
1820         case $ac_val in
1821         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1822         esac
1823         echo "$ac_var='\''$ac_val'\''"
1824       done | sort
1825       echo
1826     fi
1827
1828     if test -s confdefs.h; then
1829       cat <<\_ASBOX
1830 ## ----------- ##
1831 ## confdefs.h. ##
1832 ## ----------- ##
1833 _ASBOX
1834       echo
1835       cat confdefs.h
1836       echo
1837     fi
1838     test "$ac_signal" != 0 &&
1839       echo "$as_me: caught signal $ac_signal"
1840     echo "$as_me: exit $exit_status"
1841   } >&5
1842   rm -f core *.core core.conftest.* &&
1843     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1844     exit $exit_status
1845 ' 0
1846 for ac_signal in 1 2 13 15; do
1847   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1848 done
1849 ac_signal=0
1850
1851 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1852 rm -f -r conftest* confdefs.h
1853
1854 # Predefined preprocessor variables.
1855
1856 cat >>confdefs.h <<_ACEOF
1857 #define PACKAGE_NAME "$PACKAGE_NAME"
1858 _ACEOF
1859
1860
1861 cat >>confdefs.h <<_ACEOF
1862 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1863 _ACEOF
1864
1865
1866 cat >>confdefs.h <<_ACEOF
1867 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1868 _ACEOF
1869
1870
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_STRING "$PACKAGE_STRING"
1873 _ACEOF
1874
1875
1876 cat >>confdefs.h <<_ACEOF
1877 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1878 _ACEOF
1879
1880
1881 # Let the site file select an alternate cache file if it wants to.
1882 # Prefer explicitly selected file to automatically selected ones.
1883 if test -n "$CONFIG_SITE"; then
1884   set x "$CONFIG_SITE"
1885 elif test "x$prefix" != xNONE; then
1886   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1887 else
1888   set x "$ac_default_prefix/share/config.site" \
1889         "$ac_default_prefix/etc/config.site"
1890 fi
1891 shift
1892 for ac_site_file
1893 do
1894   if test -r "$ac_site_file"; then
1895     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1896 echo "$as_me: loading site script $ac_site_file" >&6;}
1897     sed 's/^/| /' "$ac_site_file" >&5
1898     . "$ac_site_file"
1899   fi
1900 done
1901
1902 if test -r "$cache_file"; then
1903   # Some versions of bash will fail to source /dev/null (special
1904   # files actually), so we avoid doing that.
1905   if test -f "$cache_file"; then
1906     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1907 echo "$as_me: loading cache $cache_file" >&6;}
1908     case $cache_file in
1909       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1910       *)                      . "./$cache_file";;
1911     esac
1912   fi
1913 else
1914   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1915 echo "$as_me: creating cache $cache_file" >&6;}
1916   >$cache_file
1917 fi
1918
1919 # Check that the precious variables saved in the cache have kept the same
1920 # value.
1921 ac_cache_corrupted=false
1922 for ac_var in $ac_precious_vars; do
1923   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1924   eval ac_new_set=\$ac_env_${ac_var}_set
1925   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1926   eval ac_new_val=\$ac_env_${ac_var}_value
1927   case $ac_old_set,$ac_new_set in
1928     set,)
1929       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1930 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1931       ac_cache_corrupted=: ;;
1932     ,set)
1933       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1934 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1935       ac_cache_corrupted=: ;;
1936     ,);;
1937     *)
1938       if test "x$ac_old_val" != "x$ac_new_val"; then
1939         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1940 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1941         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1942 echo "$as_me:   former value:  $ac_old_val" >&2;}
1943         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1944 echo "$as_me:   current value: $ac_new_val" >&2;}
1945         ac_cache_corrupted=:
1946       fi;;
1947   esac
1948   # Pass precious variables to config.status.
1949   if test "$ac_new_set" = set; then
1950     case $ac_new_val in
1951     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1952     *) ac_arg=$ac_var=$ac_new_val ;;
1953     esac
1954     case " $ac_configure_args " in
1955       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1956       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1957     esac
1958   fi
1959 done
1960 if $ac_cache_corrupted; then
1961   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1962 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1963   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1964 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1965    { (exit 1); exit 1; }; }
1966 fi
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992 ac_ext=c
1993 ac_cpp='$CPP $CPPFLAGS'
1994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1997
1998
1999
2000 ac_aux_dir=
2001 for ac_dir in autotools "$srcdir"/autotools; do
2002   if test -f "$ac_dir/install-sh"; then
2003     ac_aux_dir=$ac_dir
2004     ac_install_sh="$ac_aux_dir/install-sh -c"
2005     break
2006   elif test -f "$ac_dir/install.sh"; then
2007     ac_aux_dir=$ac_dir
2008     ac_install_sh="$ac_aux_dir/install.sh -c"
2009     break
2010   elif test -f "$ac_dir/shtool"; then
2011     ac_aux_dir=$ac_dir
2012     ac_install_sh="$ac_aux_dir/shtool install -c"
2013     break
2014   fi
2015 done
2016 if test -z "$ac_aux_dir"; then
2017   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autotools \"$srcdir\"/autotools" >&5
2018 echo "$as_me: error: cannot find install-sh or install.sh in autotools \"$srcdir\"/autotools" >&2;}
2019    { (exit 1); exit 1; }; }
2020 fi
2021
2022 # These three variables are undocumented and unsupported,
2023 # and are intended to be withdrawn in a future Autoconf release.
2024 # They can cause serious problems if a builder's source tree is in a directory
2025 # whose full name contains unusual characters.
2026 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2027 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2028 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2029
2030
2031 case autotools/aclocal in
2032   [\\/]* | ?:[\\/]* ) ac_macro_dir=autotools/aclocal         ;;
2033   *)                      ac_macro_dir=$srcdir/autotools/aclocal ;;
2034 esac
2035 test -d "$ac_macro_dir" ||
2036   { { echo "$as_me:$LINENO: error: cannot find macro directory \`autotools/aclocal'" >&5
2037 echo "$as_me: error: cannot find macro directory \`autotools/aclocal'" >&2;}
2038    { (exit 1); exit 1; }; }
2039
2040
2041 # put CVS revision of this configure.in into the resulting configure script
2042
2043
2044 # Detect the canonical host and target build environment
2045 # Make sure we can run config.sub.
2046 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2047   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2048 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2049    { (exit 1); exit 1; }; }
2050
2051 { echo "$as_me:$LINENO: checking build system type" >&5
2052 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2053 if test "${ac_cv_build+set}" = set; then
2054   echo $ECHO_N "(cached) $ECHO_C" >&6
2055 else
2056   ac_build_alias=$build_alias
2057 test "x$ac_build_alias" = x &&
2058   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2059 test "x$ac_build_alias" = x &&
2060   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2061 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2062    { (exit 1); exit 1; }; }
2063 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2064   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2065 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2066    { (exit 1); exit 1; }; }
2067
2068 fi
2069 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2070 echo "${ECHO_T}$ac_cv_build" >&6; }
2071 case $ac_cv_build in
2072 *-*-*) ;;
2073 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2074 echo "$as_me: error: invalid value of canonical build" >&2;}
2075    { (exit 1); exit 1; }; };;
2076 esac
2077 build=$ac_cv_build
2078 ac_save_IFS=$IFS; IFS='-'
2079 set x $ac_cv_build
2080 shift
2081 build_cpu=$1
2082 build_vendor=$2
2083 shift; shift
2084 # Remember, the first character of IFS is used to create $*,
2085 # except with old shells:
2086 build_os=$*
2087 IFS=$ac_save_IFS
2088 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2089
2090
2091 { echo "$as_me:$LINENO: checking host system type" >&5
2092 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2093 if test "${ac_cv_host+set}" = set; then
2094   echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096   if test "x$host_alias" = x; then
2097   ac_cv_host=$ac_cv_build
2098 else
2099   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2100     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2101 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2102    { (exit 1); exit 1; }; }
2103 fi
2104
2105 fi
2106 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2107 echo "${ECHO_T}$ac_cv_host" >&6; }
2108 case $ac_cv_host in
2109 *-*-*) ;;
2110 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2111 echo "$as_me: error: invalid value of canonical host" >&2;}
2112    { (exit 1); exit 1; }; };;
2113 esac
2114 host=$ac_cv_host
2115 ac_save_IFS=$IFS; IFS='-'
2116 set x $ac_cv_host
2117 shift
2118 host_cpu=$1
2119 host_vendor=$2
2120 shift; shift
2121 # Remember, the first character of IFS is used to create $*,
2122 # except with old shells:
2123 host_os=$*
2124 IFS=$ac_save_IFS
2125 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2126
2127
2128 { echo "$as_me:$LINENO: checking target system type" >&5
2129 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2130 if test "${ac_cv_target+set}" = set; then
2131   echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133   if test "x$target_alias" = x; then
2134   ac_cv_target=$ac_cv_host
2135 else
2136   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2137     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2138 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2139    { (exit 1); exit 1; }; }
2140 fi
2141
2142 fi
2143 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2144 echo "${ECHO_T}$ac_cv_target" >&6; }
2145 case $ac_cv_target in
2146 *-*-*) ;;
2147 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2148 echo "$as_me: error: invalid value of canonical target" >&2;}
2149    { (exit 1); exit 1; }; };;
2150 esac
2151 target=$ac_cv_target
2152 ac_save_IFS=$IFS; IFS='-'
2153 set x $ac_cv_target
2154 shift
2155 target_cpu=$1
2156 target_vendor=$2
2157 shift; shift
2158 # Remember, the first character of IFS is used to create $*,
2159 # except with old shells:
2160 target_os=$*
2161 IFS=$ac_save_IFS
2162 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2163
2164
2165 # The aliases save the names the user supplied, while $host etc.
2166 # will get canonicalized.
2167 test -n "$target_alias" &&
2168   test "$program_prefix$program_suffix$program_transform_name" = \
2169     NONENONEs,x,x, &&
2170   program_prefix=${target_alias}-
2171
2172 # setup automake - we need >= 1.6 because of python and aclocal support
2173 #                  we updated to 1.9 because of cross-platform issues
2174 ac_config_headers="$ac_config_headers cvconfig.h"
2175
2176 am__api_version="1.9"
2177 # Find a good install program.  We prefer a C program (faster),
2178 # so one script is as good as another.  But avoid the broken or
2179 # incompatible versions:
2180 # SysV /etc/install, /usr/sbin/install
2181 # SunOS /usr/etc/install
2182 # IRIX /sbin/install
2183 # AIX /bin/install
2184 # AmigaOS /C/install, which installs bootblocks on floppy discs
2185 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2186 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2187 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2188 # OS/2's system install, which has a completely different semantic
2189 # ./install, which can be erroneously created by make from ./install.sh.
2190 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2191 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2192 if test -z "$INSTALL"; then
2193 if test "${ac_cv_path_install+set}" = set; then
2194   echo $ECHO_N "(cached) $ECHO_C" >&6
2195 else
2196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 for as_dir in $PATH
2198 do
2199   IFS=$as_save_IFS
2200   test -z "$as_dir" && as_dir=.
2201   # Account for people who put trailing slashes in PATH elements.
2202 case $as_dir/ in
2203   ./ | .// | /cC/* | \
2204   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2205   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2206   /usr/ucb/* ) ;;
2207   *)
2208     # OSF1 and SCO ODT 3.0 have their own names for install.
2209     # Don't use installbsd from OSF since it installs stuff as root
2210     # by default.
2211     for ac_prog in ginstall scoinst install; do
2212       for ac_exec_ext in '' $ac_executable_extensions; do
2213         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2214           if test $ac_prog = install &&
2215             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2216             # AIX install.  It has an incompatible calling convention.
2217             :
2218           elif test $ac_prog = install &&
2219             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2220             # program-specific install script used by HP pwplus--don't use.
2221             :
2222           else
2223             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2224             break 3
2225           fi
2226         fi
2227       done
2228     done
2229     ;;
2230 esac
2231 done
2232 IFS=$as_save_IFS
2233
2234
2235 fi
2236   if test "${ac_cv_path_install+set}" = set; then
2237     INSTALL=$ac_cv_path_install
2238   else
2239     # As a last resort, use the slow shell script.  Don't cache a
2240     # value for INSTALL within a source directory, because that will
2241     # break other packages using the cache if that directory is
2242     # removed, or if the value is a relative name.
2243     INSTALL=$ac_install_sh
2244   fi
2245 fi
2246 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2247 echo "${ECHO_T}$INSTALL" >&6; }
2248
2249 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2250 # It thinks the first close brace ends the variable substitution.
2251 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2252
2253 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2254
2255 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2256
2257 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2258 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2259 # Just in case
2260 sleep 1
2261 echo timestamp > conftest.file
2262 # Do `set' in a subshell so we don't clobber the current shell's
2263 # arguments.  Must try -L first in case configure is actually a
2264 # symlink; some systems play weird games with the mod time of symlinks
2265 # (eg FreeBSD returns the mod time of the symlink's containing
2266 # directory).
2267 if (
2268    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2269    if test "$*" = "X"; then
2270       # -L didn't work.
2271       set X `ls -t $srcdir/configure conftest.file`
2272    fi
2273    rm -f conftest.file
2274    if test "$*" != "X $srcdir/configure conftest.file" \
2275       && test "$*" != "X conftest.file $srcdir/configure"; then
2276
2277       # If neither matched, then we have a broken ls.  This can happen
2278       # if, for instance, CONFIG_SHELL is bash and it inherits a
2279       # broken ls alias from the environment.  This has actually
2280       # happened.  Such a system could not be considered "sane".
2281       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2282 alias in your environment" >&5
2283 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2284 alias in your environment" >&2;}
2285    { (exit 1); exit 1; }; }
2286    fi
2287
2288    test "$2" = conftest.file
2289    )
2290 then
2291    # Ok.
2292    :
2293 else
2294    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2295 Check your system clock" >&5
2296 echo "$as_me: error: newly created file is older than distributed files!
2297 Check your system clock" >&2;}
2298    { (exit 1); exit 1; }; }
2299 fi
2300 { echo "$as_me:$LINENO: result: yes" >&5
2301 echo "${ECHO_T}yes" >&6; }
2302 test "$program_prefix" != NONE &&
2303   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2304 # Use a double $ so make ignores it.
2305 test "$program_suffix" != NONE &&
2306   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2307 # Double any \ or $.  echo might interpret backslashes.
2308 # By default was `s,x,x', remove it if useless.
2309 cat <<\_ACEOF >conftest.sed
2310 s/[\\$]/&&/g;s/;s,x,x,$//
2311 _ACEOF
2312 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2313 rm -f conftest.sed
2314
2315 # expand $ac_aux_dir to an absolute path
2316 am_aux_dir=`cd $ac_aux_dir && pwd`
2317
2318 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2319 # Use eval to expand $SHELL
2320 if eval "$MISSING --run true"; then
2321   am_missing_run="$MISSING --run "
2322 else
2323   am_missing_run=
2324   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2325 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2326 fi
2327
2328 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2329   # We used to keeping the `.' as first argument, in order to
2330   # allow $(mkdir_p) to be used without argument.  As in
2331   #   $(mkdir_p) $(somedir)
2332   # where $(somedir) is conditionally defined.  However this is wrong
2333   # for two reasons:
2334   #  1. if the package is installed by a user who cannot write `.'
2335   #     make install will fail,
2336   #  2. the above comment should most certainly read
2337   #     $(mkdir_p) $(DESTDIR)$(somedir)
2338   #     so it does not work when $(somedir) is undefined and
2339   #     $(DESTDIR) is not.
2340   #  To support the latter case, we have to write
2341   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2342   #  so the `.' trick is pointless.
2343   mkdir_p='mkdir -p --'
2344 else
2345   # On NextStep and OpenStep, the `mkdir' command does not
2346   # recognize any option.  It will interpret all options as
2347   # directories to create, and then abort because `.' already
2348   # exists.
2349   for d in ./-p ./--version;
2350   do
2351     test -d $d && rmdir $d
2352   done
2353   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2354   if test -f "$ac_aux_dir/mkinstalldirs"; then
2355     mkdir_p='$(mkinstalldirs)'
2356   else
2357     mkdir_p='$(install_sh) -d'
2358   fi
2359 fi
2360
2361 for ac_prog in gawk mawk nawk awk
2362 do
2363   # Extract the first word of "$ac_prog", so it can be a program name with args.
2364 set dummy $ac_prog; ac_word=$2
2365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2367 if test "${ac_cv_prog_AWK+set}" = set; then
2368   echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370   if test -n "$AWK"; then
2371   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2372 else
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 for as_dir in $PATH
2375 do
2376   IFS=$as_save_IFS
2377   test -z "$as_dir" && as_dir=.
2378   for ac_exec_ext in '' $ac_executable_extensions; do
2379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2380     ac_cv_prog_AWK="$ac_prog"
2381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382     break 2
2383   fi
2384 done
2385 done
2386 IFS=$as_save_IFS
2387
2388 fi
2389 fi
2390 AWK=$ac_cv_prog_AWK
2391 if test -n "$AWK"; then
2392   { echo "$as_me:$LINENO: result: $AWK" >&5
2393 echo "${ECHO_T}$AWK" >&6; }
2394 else
2395   { echo "$as_me:$LINENO: result: no" >&5
2396 echo "${ECHO_T}no" >&6; }
2397 fi
2398
2399
2400   test -n "$AWK" && break
2401 done
2402
2403 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2404 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2405 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2406 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2407   echo $ECHO_N "(cached) $ECHO_C" >&6
2408 else
2409   cat >conftest.make <<\_ACEOF
2410 SHELL = /bin/sh
2411 all:
2412         @echo '@@@%%%=$(MAKE)=@@@%%%'
2413 _ACEOF
2414 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2415 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2416   *@@@%%%=?*=@@@%%%*)
2417     eval ac_cv_prog_make_${ac_make}_set=yes;;
2418   *)
2419     eval ac_cv_prog_make_${ac_make}_set=no;;
2420 esac
2421 rm -f conftest.make
2422 fi
2423 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2424   { echo "$as_me:$LINENO: result: yes" >&5
2425 echo "${ECHO_T}yes" >&6; }
2426   SET_MAKE=
2427 else
2428   { echo "$as_me:$LINENO: result: no" >&5
2429 echo "${ECHO_T}no" >&6; }
2430   SET_MAKE="MAKE=${MAKE-make}"
2431 fi
2432
2433 rm -rf .tst 2>/dev/null
2434 mkdir .tst 2>/dev/null
2435 if test -d .tst; then
2436   am__leading_dot=.
2437 else
2438   am__leading_dot=_
2439 fi
2440 rmdir .tst 2>/dev/null
2441
2442 # test to see if srcdir already configured
2443 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2444    test -f $srcdir/config.status; then
2445   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2446 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2447    { (exit 1); exit 1; }; }
2448 fi
2449
2450 # test whether we have cygpath
2451 if test -z "$CYGPATH_W"; then
2452   if (cygpath --version) >/dev/null 2>/dev/null; then
2453     CYGPATH_W='cygpath -w'
2454   else
2455     CYGPATH_W=echo
2456   fi
2457 fi
2458
2459
2460 # Define the identity of the package.
2461  PACKAGE='opencv'
2462  VERSION='1.1.0'
2463
2464
2465 cat >>confdefs.h <<_ACEOF
2466 #define PACKAGE "$PACKAGE"
2467 _ACEOF
2468
2469
2470 cat >>confdefs.h <<_ACEOF
2471 #define VERSION "$VERSION"
2472 _ACEOF
2473
2474 # Some tools Automake needs.
2475
2476 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2477
2478
2479 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2480
2481
2482 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2483
2484
2485 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2486
2487
2488 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2489
2490 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2491
2492 # Installed binaries are usually stripped using `strip' when the user
2493 # run `make install-strip'.  However `strip' might not be the right
2494 # tool to use in cross-compilation environments, therefore Automake
2495 # will honor the `STRIP' environment variable to overrule this program.
2496 if test "$cross_compiling" != no; then
2497   if test -n "$ac_tool_prefix"; then
2498   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2499 set dummy ${ac_tool_prefix}strip; ac_word=$2
2500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2502 if test "${ac_cv_prog_STRIP+set}" = set; then
2503   echo $ECHO_N "(cached) $ECHO_C" >&6
2504 else
2505   if test -n "$STRIP"; then
2506   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2507 else
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 for as_dir in $PATH
2510 do
2511   IFS=$as_save_IFS
2512   test -z "$as_dir" && as_dir=.
2513   for ac_exec_ext in '' $ac_executable_extensions; do
2514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2515     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2517     break 2
2518   fi
2519 done
2520 done
2521 IFS=$as_save_IFS
2522
2523 fi
2524 fi
2525 STRIP=$ac_cv_prog_STRIP
2526 if test -n "$STRIP"; then
2527   { echo "$as_me:$LINENO: result: $STRIP" >&5
2528 echo "${ECHO_T}$STRIP" >&6; }
2529 else
2530   { echo "$as_me:$LINENO: result: no" >&5
2531 echo "${ECHO_T}no" >&6; }
2532 fi
2533
2534
2535 fi
2536 if test -z "$ac_cv_prog_STRIP"; then
2537   ac_ct_STRIP=$STRIP
2538   # Extract the first word of "strip", so it can be a program name with args.
2539 set dummy strip; ac_word=$2
2540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2542 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2543   echo $ECHO_N "(cached) $ECHO_C" >&6
2544 else
2545   if test -n "$ac_ct_STRIP"; then
2546   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2547 else
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 for as_dir in $PATH
2550 do
2551   IFS=$as_save_IFS
2552   test -z "$as_dir" && as_dir=.
2553   for ac_exec_ext in '' $ac_executable_extensions; do
2554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2555     ac_cv_prog_ac_ct_STRIP="strip"
2556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2557     break 2
2558   fi
2559 done
2560 done
2561 IFS=$as_save_IFS
2562
2563 fi
2564 fi
2565 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2566 if test -n "$ac_ct_STRIP"; then
2567   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2568 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2569 else
2570   { echo "$as_me:$LINENO: result: no" >&5
2571 echo "${ECHO_T}no" >&6; }
2572 fi
2573
2574   if test "x$ac_ct_STRIP" = x; then
2575     STRIP=":"
2576   else
2577     case $cross_compiling:$ac_tool_warned in
2578 yes:)
2579 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2580 whose name does not start with the host triplet.  If you think this
2581 configuration is useful to you, please write to autoconf@gnu.org." >&5
2582 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2583 whose name does not start with the host triplet.  If you think this
2584 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2585 ac_tool_warned=yes ;;
2586 esac
2587     STRIP=$ac_ct_STRIP
2588   fi
2589 else
2590   STRIP="$ac_cv_prog_STRIP"
2591 fi
2592
2593 fi
2594 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2595
2596 # We need awk for the "check" target.  The system "awk" is bad on
2597 # some platforms.
2598 # Always define AMTAR for backward compatibility.
2599
2600 AMTAR=${AMTAR-"${am_missing_run}tar"}
2601
2602 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2603
2604
2605
2606
2607
2608 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2609 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2610 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2611 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2612   echo $ECHO_N "(cached) $ECHO_C" >&6
2613 else
2614   cat >conftest.make <<\_ACEOF
2615 SHELL = /bin/sh
2616 all:
2617         @echo '@@@%%%=$(MAKE)=@@@%%%'
2618 _ACEOF
2619 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2620 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2621   *@@@%%%=?*=@@@%%%*)
2622     eval ac_cv_prog_make_${ac_make}_set=yes;;
2623   *)
2624     eval ac_cv_prog_make_${ac_make}_set=no;;
2625 esac
2626 rm -f conftest.make
2627 fi
2628 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2629   { echo "$as_me:$LINENO: result: yes" >&5
2630 echo "${ECHO_T}yes" >&6; }
2631   SET_MAKE=
2632 else
2633   { echo "$as_me:$LINENO: result: no" >&5
2634 echo "${ECHO_T}no" >&6; }
2635   SET_MAKE="MAKE=${MAKE-make}"
2636 fi
2637
2638
2639 # use 'gly maintainer-mode flag to help CVS users that do not want to
2640 # help developing OpenCV but just need to compile the latest version
2641 # AM_MAINTAINER_MODE
2642
2643 # substitute versionnumbers
2644 MMAJOR=1
2645
2646 MMINOR=1
2647
2648 MSUBMINOR=0
2649
2650 VERSION=1.1.0
2651
2652 LT_VERSION=2:0:0
2653
2654
2655 # disable building static libraries,
2656 # allow Cygwin to build DLLs
2657 # Check whether --enable-static was given.
2658 if test "${enable_static+set}" = set; then
2659   enableval=$enable_static; p=${PACKAGE-default}
2660     case $enableval in
2661     yes) enable_static=yes ;;
2662     no) enable_static=no ;;
2663     *)
2664      enable_static=no
2665       # Look at the argument we got.  We use all the common list separators.
2666       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2667       for pkg in $enableval; do
2668         IFS="$lt_save_ifs"
2669         if test "X$pkg" = "X$p"; then
2670           enable_static=yes
2671         fi
2672       done
2673       IFS="$lt_save_ifs"
2674       ;;
2675     esac
2676 else
2677   enable_static=no
2678 fi
2679
2680
2681
2682
2683
2684
2685 # checks for programs.
2686 ac_ext=cpp
2687 ac_cpp='$CXXCPP $CPPFLAGS'
2688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2691 if test -z "$CXX"; then
2692   if test -n "$CCC"; then
2693     CXX=$CCC
2694   else
2695     if test -n "$ac_tool_prefix"; then
2696   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2697   do
2698     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2699 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2702 if test "${ac_cv_prog_CXX+set}" = set; then
2703   echo $ECHO_N "(cached) $ECHO_C" >&6
2704 else
2705   if test -n "$CXX"; then
2706   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2707 else
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 for as_dir in $PATH
2710 do
2711   IFS=$as_save_IFS
2712   test -z "$as_dir" && as_dir=.
2713   for ac_exec_ext in '' $ac_executable_extensions; do
2714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2715     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2717     break 2
2718   fi
2719 done
2720 done
2721 IFS=$as_save_IFS
2722
2723 fi
2724 fi
2725 CXX=$ac_cv_prog_CXX
2726 if test -n "$CXX"; then
2727   { echo "$as_me:$LINENO: result: $CXX" >&5
2728 echo "${ECHO_T}$CXX" >&6; }
2729 else
2730   { echo "$as_me:$LINENO: result: no" >&5
2731 echo "${ECHO_T}no" >&6; }
2732 fi
2733
2734
2735     test -n "$CXX" && break
2736   done
2737 fi
2738 if test -z "$CXX"; then
2739   ac_ct_CXX=$CXX
2740   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2741 do
2742   # Extract the first word of "$ac_prog", so it can be a program name with args.
2743 set dummy $ac_prog; ac_word=$2
2744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2746 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2747   echo $ECHO_N "(cached) $ECHO_C" >&6
2748 else
2749   if test -n "$ac_ct_CXX"; then
2750   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2751 else
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in $PATH
2754 do
2755   IFS=$as_save_IFS
2756   test -z "$as_dir" && as_dir=.
2757   for ac_exec_ext in '' $ac_executable_extensions; do
2758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2759     ac_cv_prog_ac_ct_CXX="$ac_prog"
2760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2761     break 2
2762   fi
2763 done
2764 done
2765 IFS=$as_save_IFS
2766
2767 fi
2768 fi
2769 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2770 if test -n "$ac_ct_CXX"; then
2771   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2772 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2773 else
2774   { echo "$as_me:$LINENO: result: no" >&5
2775 echo "${ECHO_T}no" >&6; }
2776 fi
2777
2778
2779   test -n "$ac_ct_CXX" && break
2780 done
2781
2782   if test "x$ac_ct_CXX" = x; then
2783     CXX="g++"
2784   else
2785     case $cross_compiling:$ac_tool_warned in
2786 yes:)
2787 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2788 whose name does not start with the host triplet.  If you think this
2789 configuration is useful to you, please write to autoconf@gnu.org." >&5
2790 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2791 whose name does not start with the host triplet.  If you think this
2792 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2793 ac_tool_warned=yes ;;
2794 esac
2795     CXX=$ac_ct_CXX
2796   fi
2797 fi
2798
2799   fi
2800 fi
2801 # Provide some information about the compiler.
2802 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2803 ac_compiler=`set X $ac_compile; echo $2`
2804 { (ac_try="$ac_compiler --version >&5"
2805 case "(($ac_try" in
2806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807   *) ac_try_echo=$ac_try;;
2808 esac
2809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2810   (eval "$ac_compiler --version >&5") 2>&5
2811   ac_status=$?
2812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813   (exit $ac_status); }
2814 { (ac_try="$ac_compiler -v >&5"
2815 case "(($ac_try" in
2816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817   *) ac_try_echo=$ac_try;;
2818 esac
2819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2820   (eval "$ac_compiler -v >&5") 2>&5
2821   ac_status=$?
2822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823   (exit $ac_status); }
2824 { (ac_try="$ac_compiler -V >&5"
2825 case "(($ac_try" in
2826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827   *) ac_try_echo=$ac_try;;
2828 esac
2829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2830   (eval "$ac_compiler -V >&5") 2>&5
2831   ac_status=$?
2832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833   (exit $ac_status); }
2834
2835 cat >conftest.$ac_ext <<_ACEOF
2836 /* confdefs.h.  */
2837 _ACEOF
2838 cat confdefs.h >>conftest.$ac_ext
2839 cat >>conftest.$ac_ext <<_ACEOF
2840 /* end confdefs.h.  */
2841
2842 int
2843 main ()
2844 {
2845
2846   ;
2847   return 0;
2848 }
2849 _ACEOF
2850 ac_clean_files_save=$ac_clean_files
2851 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2852 # Try to create an executable without -o first, disregard a.out.
2853 # It will help us diagnose broken compilers, and finding out an intuition
2854 # of exeext.
2855 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2856 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2857 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2858 #
2859 # List of possible output files, starting from the most likely.
2860 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2861 # only as a last resort.  b.out is created by i960 compilers.
2862 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2863 #
2864 # The IRIX 6 linker writes into existing files which may not be
2865 # executable, retaining their permissions.  Remove them first so a
2866 # subsequent execution test works.
2867 ac_rmfiles=
2868 for ac_file in $ac_files
2869 do
2870   case $ac_file in
2871     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2872     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2873   esac
2874 done
2875 rm -f $ac_rmfiles
2876
2877 if { (ac_try="$ac_link_default"
2878 case "(($ac_try" in
2879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880   *) ac_try_echo=$ac_try;;
2881 esac
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883   (eval "$ac_link_default") 2>&5
2884   ac_status=$?
2885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886   (exit $ac_status); }; then
2887   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2888 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2889 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2890 # so that the user can short-circuit this test for compilers unknown to
2891 # Autoconf.
2892 for ac_file in $ac_files
2893 do
2894   test -f "$ac_file" || continue
2895   case $ac_file in
2896     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2897         ;;
2898     [ab].out )
2899         # We found the default executable, but exeext='' is most
2900         # certainly right.
2901         break;;
2902     *.* )
2903         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2904         then :; else
2905            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2906         fi
2907         # We set ac_cv_exeext here because the later test for it is not
2908         # safe: cross compilers may not add the suffix if given an `-o'
2909         # argument, so we may need to know it at that point already.
2910         # Even if this section looks crufty: it has the advantage of
2911         # actually working.
2912         break;;
2913     * )
2914         break;;
2915   esac
2916 done
2917 test "$ac_cv_exeext" = no && ac_cv_exeext=
2918
2919 else
2920   echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.$ac_ext >&5
2922
2923 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2924 See \`config.log' for more details." >&5
2925 echo "$as_me: error: C++ compiler cannot create executables
2926 See \`config.log' for more details." >&2;}
2927    { (exit 77); exit 77; }; }
2928 fi
2929
2930 ac_exeext=$ac_cv_exeext
2931 { echo "$as_me:$LINENO: result: $ac_file" >&5
2932 echo "${ECHO_T}$ac_file" >&6; }
2933
2934 # Check that the compiler produces executables we can run.  If not, either
2935 # the compiler is broken, or we cross compile.
2936 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2937 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2938 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2939 # If not cross compiling, check that we can run a simple program.
2940 if test "$cross_compiling" != yes; then
2941   if { ac_try='./$ac_file'
2942   { (case "(($ac_try" in
2943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944   *) ac_try_echo=$ac_try;;
2945 esac
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947   (eval "$ac_try") 2>&5
2948   ac_status=$?
2949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950   (exit $ac_status); }; }; then
2951     cross_compiling=no
2952   else
2953     if test "$cross_compiling" = maybe; then
2954         cross_compiling=yes
2955     else
2956         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2957 If you meant to cross compile, use \`--host'.
2958 See \`config.log' for more details." >&5
2959 echo "$as_me: error: cannot run C++ compiled programs.
2960 If you meant to cross compile, use \`--host'.
2961 See \`config.log' for more details." >&2;}
2962    { (exit 1); exit 1; }; }
2963     fi
2964   fi
2965 fi
2966 { echo "$as_me:$LINENO: result: yes" >&5
2967 echo "${ECHO_T}yes" >&6; }
2968
2969 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2970 ac_clean_files=$ac_clean_files_save
2971 # Check that the compiler produces executables we can run.  If not, either
2972 # the compiler is broken, or we cross compile.
2973 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2974 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2975 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2976 echo "${ECHO_T}$cross_compiling" >&6; }
2977
2978 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2979 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2980 if { (ac_try="$ac_link"
2981 case "(($ac_try" in
2982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983   *) ac_try_echo=$ac_try;;
2984 esac
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986   (eval "$ac_link") 2>&5
2987   ac_status=$?
2988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989   (exit $ac_status); }; then
2990   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2991 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2992 # work properly (i.e., refer to `conftest.exe'), while it won't with
2993 # `rm'.
2994 for ac_file in conftest.exe conftest conftest.*; do
2995   test -f "$ac_file" || continue
2996   case $ac_file in
2997     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2998     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2999           break;;
3000     * ) break;;
3001   esac
3002 done
3003 else
3004   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3005 See \`config.log' for more details." >&5
3006 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3007 See \`config.log' for more details." >&2;}
3008    { (exit 1); exit 1; }; }
3009 fi
3010
3011 rm -f conftest$ac_cv_exeext
3012 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3013 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3014
3015 rm -f conftest.$ac_ext
3016 EXEEXT=$ac_cv_exeext
3017 ac_exeext=$EXEEXT
3018 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3019 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3020 if test "${ac_cv_objext+set}" = set; then
3021   echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023   cat >conftest.$ac_ext <<_ACEOF
3024 /* confdefs.h.  */
3025 _ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h.  */
3029
3030 int
3031 main ()
3032 {
3033
3034   ;
3035   return 0;
3036 }
3037 _ACEOF
3038 rm -f conftest.o conftest.obj
3039 if { (ac_try="$ac_compile"
3040 case "(($ac_try" in
3041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042   *) ac_try_echo=$ac_try;;
3043 esac
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045   (eval "$ac_compile") 2>&5
3046   ac_status=$?
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); }; then
3049   for ac_file in conftest.o conftest.obj conftest.*; do
3050   test -f "$ac_file" || continue;
3051   case $ac_file in
3052     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3053     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3054        break;;
3055   esac
3056 done
3057 else
3058   echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3060
3061 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3062 See \`config.log' for more details." >&5
3063 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3064 See \`config.log' for more details." >&2;}
3065    { (exit 1); exit 1; }; }
3066 fi
3067
3068 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3069 fi
3070 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3071 echo "${ECHO_T}$ac_cv_objext" >&6; }
3072 OBJEXT=$ac_cv_objext
3073 ac_objext=$OBJEXT
3074 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3075 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3076 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3077   echo $ECHO_N "(cached) $ECHO_C" >&6
3078 else
3079   cat >conftest.$ac_ext <<_ACEOF
3080 /* confdefs.h.  */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h.  */
3085
3086 int
3087 main ()
3088 {
3089 #ifndef __GNUC__
3090        choke me
3091 #endif
3092
3093   ;
3094   return 0;
3095 }
3096 _ACEOF
3097 rm -f conftest.$ac_objext
3098 if { (ac_try="$ac_compile"
3099 case "(($ac_try" in
3100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101   *) ac_try_echo=$ac_try;;
3102 esac
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104   (eval "$ac_compile") 2>conftest.er1
3105   ac_status=$?
3106   grep -v '^ *+' conftest.er1 >conftest.err
3107   rm -f conftest.er1
3108   cat conftest.err >&5
3109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110   (exit $ac_status); } &&
3111          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3112   { (case "(($ac_try" in
3113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114   *) ac_try_echo=$ac_try;;
3115 esac
3116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117   (eval "$ac_try") 2>&5
3118   ac_status=$?
3119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120   (exit $ac_status); }; } &&
3121          { ac_try='test -s conftest.$ac_objext'
3122   { (case "(($ac_try" in
3123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124   *) ac_try_echo=$ac_try;;
3125 esac
3126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3127   (eval "$ac_try") 2>&5
3128   ac_status=$?
3129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130   (exit $ac_status); }; }; then
3131   ac_compiler_gnu=yes
3132 else
3133   echo "$as_me: failed program was:" >&5
3134 sed 's/^/| /' conftest.$ac_ext >&5
3135
3136         ac_compiler_gnu=no
3137 fi
3138
3139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3140 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3141
3142 fi
3143 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3144 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3145 GXX=`test $ac_compiler_gnu = yes && echo yes`
3146 ac_test_CXXFLAGS=${CXXFLAGS+set}
3147 ac_save_CXXFLAGS=$CXXFLAGS
3148 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3149 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3150 if test "${ac_cv_prog_cxx_g+set}" = set; then
3151   echo $ECHO_N "(cached) $ECHO_C" >&6
3152 else
3153   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3154    ac_cxx_werror_flag=yes
3155    ac_cv_prog_cxx_g=no
3156    CXXFLAGS="-g"
3157    cat >conftest.$ac_ext <<_ACEOF
3158 /* confdefs.h.  */
3159 _ACEOF
3160 cat confdefs.h >>conftest.$ac_ext
3161 cat >>conftest.$ac_ext <<_ACEOF
3162 /* end confdefs.h.  */
3163
3164 int
3165 main ()
3166 {
3167
3168   ;
3169   return 0;
3170 }
3171 _ACEOF
3172 rm -f conftest.$ac_objext
3173 if { (ac_try="$ac_compile"
3174 case "(($ac_try" in
3175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176   *) ac_try_echo=$ac_try;;
3177 esac
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179   (eval "$ac_compile") 2>conftest.er1
3180   ac_status=$?
3181   grep -v '^ *+' conftest.er1 >conftest.err
3182   rm -f conftest.er1
3183   cat conftest.err >&5
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); } &&
3186          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
3196          { ac_try='test -s conftest.$ac_objext'
3197   { (case "(($ac_try" in
3198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199   *) ac_try_echo=$ac_try;;
3200 esac
3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202   (eval "$ac_try") 2>&5
3203   ac_status=$?
3204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205   (exit $ac_status); }; }; then
3206   ac_cv_prog_cxx_g=yes
3207 else
3208   echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3210
3211         CXXFLAGS=""
3212       cat >conftest.$ac_ext <<_ACEOF
3213 /* confdefs.h.  */
3214 _ACEOF
3215 cat confdefs.h >>conftest.$ac_ext
3216 cat >>conftest.$ac_ext <<_ACEOF
3217 /* end confdefs.h.  */
3218
3219 int
3220 main ()
3221 {
3222
3223   ;
3224   return 0;
3225 }
3226 _ACEOF
3227 rm -f conftest.$ac_objext
3228 if { (ac_try="$ac_compile"
3229 case "(($ac_try" in
3230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231   *) ac_try_echo=$ac_try;;
3232 esac
3233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3234   (eval "$ac_compile") 2>conftest.er1
3235   ac_status=$?
3236   grep -v '^ *+' conftest.er1 >conftest.err
3237   rm -f conftest.er1
3238   cat conftest.err >&5
3239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240   (exit $ac_status); } &&
3241          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3242   { (case "(($ac_try" in
3243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244   *) ac_try_echo=$ac_try;;
3245 esac
3246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3247   (eval "$ac_try") 2>&5
3248   ac_status=$?
3249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250   (exit $ac_status); }; } &&
3251          { ac_try='test -s conftest.$ac_objext'
3252   { (case "(($ac_try" in
3253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254   *) ac_try_echo=$ac_try;;
3255 esac
3256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3257   (eval "$ac_try") 2>&5
3258   ac_status=$?
3259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260   (exit $ac_status); }; }; then
3261   :
3262 else
3263   echo "$as_me: failed program was:" >&5
3264 sed 's/^/| /' conftest.$ac_ext >&5
3265
3266         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3267          CXXFLAGS="-g"
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.$ac_objext
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>conftest.er1
3291   ac_status=$?
3292   grep -v '^ *+' conftest.er1 >conftest.err
3293   rm -f conftest.er1
3294   cat conftest.err >&5
3295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296   (exit $ac_status); } &&
3297          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3298   { (case "(($ac_try" in
3299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300   *) ac_try_echo=$ac_try;;
3301 esac
3302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3303   (eval "$ac_try") 2>&5
3304   ac_status=$?
3305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306   (exit $ac_status); }; } &&
3307          { ac_try='test -s conftest.$ac_objext'
3308   { (case "(($ac_try" in
3309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310   *) ac_try_echo=$ac_try;;
3311 esac
3312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3313   (eval "$ac_try") 2>&5
3314   ac_status=$?
3315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316   (exit $ac_status); }; }; then
3317   ac_cv_prog_cxx_g=yes
3318 else
3319   echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3321
3322
3323 fi
3324
3325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3326 fi
3327
3328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3329 fi
3330
3331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3332    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3333 fi
3334 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3335 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3336 if test "$ac_test_CXXFLAGS" = set; then
3337   CXXFLAGS=$ac_save_CXXFLAGS
3338 elif test $ac_cv_prog_cxx_g = yes; then
3339   if test "$GXX" = yes; then
3340     CXXFLAGS="-g -O2"
3341   else
3342     CXXFLAGS="-g"
3343   fi
3344 else
3345   if test "$GXX" = yes; then
3346     CXXFLAGS="-O2"
3347   else
3348     CXXFLAGS=
3349   fi
3350 fi
3351 ac_ext=c
3352 ac_cpp='$CPP $CPPFLAGS'
3353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3356 DEPDIR="${am__leading_dot}deps"
3357
3358 ac_config_commands="$ac_config_commands depfiles"
3359
3360
3361 am_make=${MAKE-make}
3362 cat > confinc << 'END'
3363 am__doit:
3364         @echo done
3365 .PHONY: am__doit
3366 END
3367 # If we don't find an include directive, just comment out the code.
3368 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3369 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3370 am__include="#"
3371 am__quote=
3372 _am_result=none
3373 # First try GNU make style include.
3374 echo "include confinc" > confmf
3375 # We grep out `Entering directory' and `Leaving directory'
3376 # messages which can occur if `w' ends up in MAKEFLAGS.
3377 # In particular we don't look at `^make:' because GNU make might
3378 # be invoked under some other name (usually "gmake"), in which
3379 # case it prints its new name instead of `make'.
3380 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3381    am__include=include
3382    am__quote=
3383    _am_result=GNU
3384 fi
3385 # Now try BSD make style include.
3386 if test "$am__include" = "#"; then
3387    echo '.include "confinc"' > confmf
3388    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3389       am__include=.include
3390       am__quote="\""
3391       _am_result=BSD
3392    fi
3393 fi
3394
3395
3396 { echo "$as_me:$LINENO: result: $_am_result" >&5
3397 echo "${ECHO_T}$_am_result" >&6; }
3398 rm -f confinc confmf
3399
3400 # Check whether --enable-dependency-tracking was given.
3401 if test "${enable_dependency_tracking+set}" = set; then
3402   enableval=$enable_dependency_tracking;
3403 fi
3404
3405 if test "x$enable_dependency_tracking" != xno; then
3406   am_depcomp="$ac_aux_dir/depcomp"
3407   AMDEPBACKSLASH='\'
3408 fi
3409
3410
3411 if test "x$enable_dependency_tracking" != xno; then
3412   AMDEP_TRUE=
3413   AMDEP_FALSE='#'
3414 else
3415   AMDEP_TRUE='#'
3416   AMDEP_FALSE=
3417 fi
3418
3419
3420
3421
3422 depcc="$CXX"  am_compiler_list=
3423
3424 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3425 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3426 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3427   echo $ECHO_N "(cached) $ECHO_C" >&6
3428 else
3429   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3430   # We make a subdir and do the tests there.  Otherwise we can end up
3431   # making bogus files that we don't know about and never remove.  For
3432   # instance it was reported that on HP-UX the gcc test will end up
3433   # making a dummy file named `D' -- because `-MD' means `put the output
3434   # in D'.
3435   mkdir conftest.dir
3436   # Copy depcomp to subdir because otherwise we won't find it if we're
3437   # using a relative directory.
3438   cp "$am_depcomp" conftest.dir
3439   cd conftest.dir
3440   # We will build objects and dependencies in a subdirectory because
3441   # it helps to detect inapplicable dependency modes.  For instance
3442   # both Tru64's cc and ICC support -MD to output dependencies as a
3443   # side effect of compilation, but ICC will put the dependencies in
3444   # the current directory while Tru64 will put them in the object
3445   # directory.
3446   mkdir sub
3447
3448   am_cv_CXX_dependencies_compiler_type=none
3449   if test "$am_compiler_list" = ""; then
3450      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3451   fi
3452   for depmode in $am_compiler_list; do
3453     # Setup a source with many dependencies, because some compilers
3454     # like to wrap large dependency lists on column 80 (with \), and
3455     # we should not choose a depcomp mode which is confused by this.
3456     #
3457     # We need to recreate these files for each test, as the compiler may
3458     # overwrite some of them when testing with obscure command lines.
3459     # This happens at least with the AIX C compiler.
3460     : > sub/conftest.c
3461     for i in 1 2 3 4 5 6; do
3462       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3463       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3464       # Solaris 8's {/usr,}/bin/sh.
3465       touch sub/conftst$i.h
3466     done
3467     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3468
3469     case $depmode in
3470     nosideeffect)
3471       # after this tag, mechanisms are not by side-effect, so they'll
3472       # only be used when explicitly requested
3473       if test "x$enable_dependency_tracking" = xyes; then
3474         continue
3475       else
3476         break
3477       fi
3478       ;;
3479     none) break ;;
3480     esac
3481     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3482     # mode.  It turns out that the SunPro C++ compiler does not properly
3483     # handle `-M -o', and we need to detect this.
3484     if depmode=$depmode \
3485        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3486        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3487        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3488          >/dev/null 2>conftest.err &&
3489        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3490        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3491        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3492       # icc doesn't choke on unknown options, it will just issue warnings
3493       # or remarks (even with -Werror).  So we grep stderr for any message
3494       # that says an option was ignored or not supported.
3495       # When given -MP, icc 7.0 and 7.1 complain thusly:
3496       #   icc: Command line warning: ignoring option '-M'; no argument required
3497       # The diagnosis changed in icc 8.0:
3498       #   icc: Command line remark: option '-MP' not supported
3499       if (grep 'ignoring option' conftest.err ||
3500           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3501         am_cv_CXX_dependencies_compiler_type=$depmode
3502         break
3503       fi
3504     fi
3505   done
3506
3507   cd ..
3508   rm -rf conftest.dir
3509 else
3510   am_cv_CXX_dependencies_compiler_type=none
3511 fi
3512
3513 fi
3514 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3515 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3516 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3517
3518
3519
3520 if
3521   test "x$enable_dependency_tracking" != xno \
3522   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3523   am__fastdepCXX_TRUE=
3524   am__fastdepCXX_FALSE='#'
3525 else
3526   am__fastdepCXX_TRUE='#'
3527   am__fastdepCXX_FALSE=
3528 fi
3529
3530
3531 ac_ext=c
3532 ac_cpp='$CPP $CPPFLAGS'
3533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3536 if test -n "$ac_tool_prefix"; then
3537   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3538 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3541 if test "${ac_cv_prog_CC+set}" = set; then
3542   echo $ECHO_N "(cached) $ECHO_C" >&6
3543 else
3544   if test -n "$CC"; then
3545   ac_cv_prog_CC="$CC" # Let the user override the test.
3546 else
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 for as_dir in $PATH
3549 do
3550   IFS=$as_save_IFS
3551   test -z "$as_dir" && as_dir=.
3552   for ac_exec_ext in '' $ac_executable_extensions; do
3553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3554     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3556     break 2
3557   fi
3558 done
3559 done
3560 IFS=$as_save_IFS
3561
3562 fi
3563 fi
3564 CC=$ac_cv_prog_CC
3565 if test -n "$CC"; then
3566   { echo "$as_me:$LINENO: result: $CC" >&5
3567 echo "${ECHO_T}$CC" >&6; }
3568 else
3569   { echo "$as_me:$LINENO: result: no" >&5
3570 echo "${ECHO_T}no" >&6; }
3571 fi
3572
3573
3574 fi
3575 if test -z "$ac_cv_prog_CC"; then
3576   ac_ct_CC=$CC
3577   # Extract the first word of "gcc", so it can be a program name with args.
3578 set dummy gcc; ac_word=$2
3579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3581 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3582   echo $ECHO_N "(cached) $ECHO_C" >&6
3583 else
3584   if test -n "$ac_ct_CC"; then
3585   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3586 else
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588 for as_dir in $PATH
3589 do
3590   IFS=$as_save_IFS
3591   test -z "$as_dir" && as_dir=.
3592   for ac_exec_ext in '' $ac_executable_extensions; do
3593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3594     ac_cv_prog_ac_ct_CC="gcc"
3595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3596     break 2
3597   fi
3598 done
3599 done
3600 IFS=$as_save_IFS
3601
3602 fi
3603 fi
3604 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3605 if test -n "$ac_ct_CC"; then
3606   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3607 echo "${ECHO_T}$ac_ct_CC" >&6; }
3608 else
3609   { echo "$as_me:$LINENO: result: no" >&5
3610 echo "${ECHO_T}no" >&6; }
3611 fi
3612
3613   if test "x$ac_ct_CC" = x; then
3614     CC=""
3615   else
3616     case $cross_compiling:$ac_tool_warned in
3617 yes:)
3618 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3619 whose name does not start with the host triplet.  If you think this
3620 configuration is useful to you, please write to autoconf@gnu.org." >&5
3621 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3622 whose name does not start with the host triplet.  If you think this
3623 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3624 ac_tool_warned=yes ;;
3625 esac
3626     CC=$ac_ct_CC
3627   fi
3628 else
3629   CC="$ac_cv_prog_CC"
3630 fi
3631
3632 if test -z "$CC"; then
3633           if test -n "$ac_tool_prefix"; then
3634     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3635 set dummy ${ac_tool_prefix}cc; ac_word=$2
3636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3638 if test "${ac_cv_prog_CC+set}" = set; then
3639   echo $ECHO_N "(cached) $ECHO_C" >&6
3640 else
3641   if test -n "$CC"; then
3642   ac_cv_prog_CC="$CC" # Let the user override the test.
3643 else
3644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645 for as_dir in $PATH
3646 do
3647   IFS=$as_save_IFS
3648   test -z "$as_dir" && as_dir=.
3649   for ac_exec_ext in '' $ac_executable_extensions; do
3650   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3651     ac_cv_prog_CC="${ac_tool_prefix}cc"
3652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3653     break 2
3654   fi
3655 done
3656 done
3657 IFS=$as_save_IFS
3658
3659 fi
3660 fi
3661 CC=$ac_cv_prog_CC
3662 if test -n "$CC"; then
3663   { echo "$as_me:$LINENO: result: $CC" >&5
3664 echo "${ECHO_T}$CC" >&6; }
3665 else
3666   { echo "$as_me:$LINENO: result: no" >&5
3667 echo "${ECHO_T}no" >&6; }
3668 fi
3669
3670
3671   fi
3672 fi
3673 if test -z "$CC"; then
3674   # Extract the first word of "cc", so it can be a program name with args.
3675 set dummy cc; ac_word=$2
3676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3678 if test "${ac_cv_prog_CC+set}" = set; then
3679   echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681   if test -n "$CC"; then
3682   ac_cv_prog_CC="$CC" # Let the user override the test.
3683 else
3684   ac_prog_rejected=no
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 for as_dir in $PATH
3687 do
3688   IFS=$as_save_IFS
3689   test -z "$as_dir" && as_dir=.
3690   for ac_exec_ext in '' $ac_executable_extensions; do
3691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3692     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3693        ac_prog_rejected=yes
3694        continue
3695      fi
3696     ac_cv_prog_CC="cc"
3697     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3698     break 2
3699   fi
3700 done
3701 done
3702 IFS=$as_save_IFS
3703
3704 if test $ac_prog_rejected = yes; then
3705   # We found a bogon in the path, so make sure we never use it.
3706   set dummy $ac_cv_prog_CC
3707   shift
3708   if test $# != 0; then
3709     # We chose a different compiler from the bogus one.
3710     # However, it has the same basename, so the bogon will be chosen
3711     # first if we set CC to just the basename; use the full file name.
3712     shift
3713     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3714   fi
3715 fi
3716 fi
3717 fi
3718 CC=$ac_cv_prog_CC
3719 if test -n "$CC"; then
3720   { echo "$as_me:$LINENO: result: $CC" >&5
3721 echo "${ECHO_T}$CC" >&6; }
3722 else
3723   { echo "$as_me:$LINENO: result: no" >&5
3724 echo "${ECHO_T}no" >&6; }
3725 fi
3726
3727
3728 fi
3729 if test -z "$CC"; then
3730   if test -n "$ac_tool_prefix"; then
3731   for ac_prog in cl.exe
3732   do
3733     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3734 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3737 if test "${ac_cv_prog_CC+set}" = set; then
3738   echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740   if test -n "$CC"; then
3741   ac_cv_prog_CC="$CC" # Let the user override the test.
3742 else
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744 for as_dir in $PATH
3745 do
3746   IFS=$as_save_IFS
3747   test -z "$as_dir" && as_dir=.
3748   for ac_exec_ext in '' $ac_executable_extensions; do
3749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3750     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3752     break 2
3753   fi
3754 done
3755 done
3756 IFS=$as_save_IFS
3757
3758 fi
3759 fi
3760 CC=$ac_cv_prog_CC
3761 if test -n "$CC"; then
3762   { echo "$as_me:$LINENO: result: $CC" >&5
3763 echo "${ECHO_T}$CC" >&6; }
3764 else
3765   { echo "$as_me:$LINENO: result: no" >&5
3766 echo "${ECHO_T}no" >&6; }
3767 fi
3768
3769
3770     test -n "$CC" && break
3771   done
3772 fi
3773 if test -z "$CC"; then
3774   ac_ct_CC=$CC
3775   for ac_prog in cl.exe
3776 do
3777   # Extract the first word of "$ac_prog", so it can be a program name with args.
3778 set dummy $ac_prog; ac_word=$2
3779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3781 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3782   echo $ECHO_N "(cached) $ECHO_C" >&6
3783 else
3784   if test -n "$ac_ct_CC"; then
3785   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3786 else
3787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788 for as_dir in $PATH
3789 do
3790   IFS=$as_save_IFS
3791   test -z "$as_dir" && as_dir=.
3792   for ac_exec_ext in '' $ac_executable_extensions; do
3793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3794     ac_cv_prog_ac_ct_CC="$ac_prog"
3795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3796     break 2
3797   fi
3798 done
3799 done
3800 IFS=$as_save_IFS
3801
3802 fi
3803 fi
3804 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3805 if test -n "$ac_ct_CC"; then
3806   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3807 echo "${ECHO_T}$ac_ct_CC" >&6; }
3808 else
3809   { echo "$as_me:$LINENO: result: no" >&5
3810 echo "${ECHO_T}no" >&6; }
3811 fi
3812
3813
3814   test -n "$ac_ct_CC" && break
3815 done
3816
3817   if test "x$ac_ct_CC" = x; then
3818     CC=""
3819   else
3820     case $cross_compiling:$ac_tool_warned in
3821 yes:)
3822 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3823 whose name does not start with the host triplet.  If you think this
3824 configuration is useful to you, please write to autoconf@gnu.org." >&5
3825 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3826 whose name does not start with the host triplet.  If you think this
3827 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3828 ac_tool_warned=yes ;;
3829 esac
3830     CC=$ac_ct_CC
3831   fi
3832 fi
3833
3834 fi
3835
3836
3837 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3838 See \`config.log' for more details." >&5
3839 echo "$as_me: error: no acceptable C compiler found in \$PATH
3840 See \`config.log' for more details." >&2;}
3841    { (exit 1); exit 1; }; }
3842
3843 # Provide some information about the compiler.
3844 echo "$as_me:$LINENO: checking for C compiler version" >&5
3845 ac_compiler=`set X $ac_compile; echo $2`
3846 { (ac_try="$ac_compiler --version >&5"
3847 case "(($ac_try" in
3848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849   *) ac_try_echo=$ac_try;;
3850 esac
3851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3852   (eval "$ac_compiler --version >&5") 2>&5
3853   ac_status=$?
3854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); }
3856 { (ac_try="$ac_compiler -v >&5"
3857 case "(($ac_try" in
3858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859   *) ac_try_echo=$ac_try;;
3860 esac
3861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862   (eval "$ac_compiler -v >&5") 2>&5
3863   ac_status=$?
3864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865   (exit $ac_status); }
3866 { (ac_try="$ac_compiler -V >&5"
3867 case "(($ac_try" in
3868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869   *) ac_try_echo=$ac_try;;
3870 esac
3871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3872   (eval "$ac_compiler -V >&5") 2>&5
3873   ac_status=$?
3874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875   (exit $ac_status); }
3876
3877 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3878 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3879 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3880   echo $ECHO_N "(cached) $ECHO_C" >&6
3881 else
3882   cat >conftest.$ac_ext <<_ACEOF
3883 /* confdefs.h.  */
3884 _ACEOF
3885 cat confdefs.h >>conftest.$ac_ext
3886 cat >>conftest.$ac_ext <<_ACEOF
3887 /* end confdefs.h.  */
3888
3889 int
3890 main ()
3891 {
3892 #ifndef __GNUC__
3893        choke me
3894 #endif
3895
3896   ;
3897   return 0;
3898 }
3899 _ACEOF
3900 rm -f conftest.$ac_objext
3901 if { (ac_try="$ac_compile"
3902 case "(($ac_try" in
3903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904   *) ac_try_echo=$ac_try;;
3905 esac
3906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3907   (eval "$ac_compile") 2>conftest.er1
3908   ac_status=$?
3909   grep -v '^ *+' conftest.er1 >conftest.err
3910   rm -f conftest.er1
3911   cat conftest.err >&5
3912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913   (exit $ac_status); } &&
3914          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3915   { (case "(($ac_try" in
3916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917   *) ac_try_echo=$ac_try;;
3918 esac
3919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3920   (eval "$ac_try") 2>&5
3921   ac_status=$?
3922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923   (exit $ac_status); }; } &&
3924          { ac_try='test -s conftest.$ac_objext'
3925   { (case "(($ac_try" in
3926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927   *) ac_try_echo=$ac_try;;
3928 esac
3929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3930   (eval "$ac_try") 2>&5
3931   ac_status=$?
3932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933   (exit $ac_status); }; }; then
3934   ac_compiler_gnu=yes
3935 else
3936   echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3938
3939         ac_compiler_gnu=no
3940 fi
3941
3942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3943 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3944
3945 fi
3946 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3947 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3948 GCC=`test $ac_compiler_gnu = yes && echo yes`
3949 ac_test_CFLAGS=${CFLAGS+set}
3950 ac_save_CFLAGS=$CFLAGS
3951 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3952 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3953 if test "${ac_cv_prog_cc_g+set}" = set; then
3954   echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956   ac_save_c_werror_flag=$ac_c_werror_flag
3957    ac_c_werror_flag=yes
3958    ac_cv_prog_cc_g=no
3959    CFLAGS="-g"
3960    cat >conftest.$ac_ext <<_ACEOF
3961 /* confdefs.h.  */
3962 _ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h.  */
3966
3967 int
3968 main ()
3969 {
3970
3971   ;
3972   return 0;
3973 }
3974 _ACEOF
3975 rm -f conftest.$ac_objext
3976 if { (ac_try="$ac_compile"
3977 case "(($ac_try" in
3978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979   *) ac_try_echo=$ac_try;;
3980 esac
3981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3982   (eval "$ac_compile") 2>conftest.er1
3983   ac_status=$?
3984   grep -v '^ *+' conftest.er1 >conftest.err
3985   rm -f conftest.er1
3986   cat conftest.err >&5
3987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988   (exit $ac_status); } &&
3989          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3990   { (case "(($ac_try" in
3991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992   *) ac_try_echo=$ac_try;;
3993 esac
3994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3995   (eval "$ac_try") 2>&5
3996   ac_status=$?
3997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998   (exit $ac_status); }; } &&
3999          { ac_try='test -s conftest.$ac_objext'
4000   { (case "(($ac_try" in
4001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002   *) ac_try_echo=$ac_try;;
4003 esac
4004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4005   (eval "$ac_try") 2>&5
4006   ac_status=$?
4007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008   (exit $ac_status); }; }; then
4009   ac_cv_prog_cc_g=yes
4010 else
4011   echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4013
4014         CFLAGS=""
4015       cat >conftest.$ac_ext <<_ACEOF
4016 /* confdefs.h.  */
4017 _ACEOF
4018 cat confdefs.h >>conftest.$ac_ext
4019 cat >>conftest.$ac_ext <<_ACEOF
4020 /* end confdefs.h.  */
4021
4022 int
4023 main ()
4024 {
4025
4026   ;
4027   return 0;
4028 }
4029 _ACEOF
4030 rm -f conftest.$ac_objext
4031 if { (ac_try="$ac_compile"
4032 case "(($ac_try" in
4033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034   *) ac_try_echo=$ac_try;;
4035 esac
4036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4037   (eval "$ac_compile") 2>conftest.er1
4038   ac_status=$?
4039   grep -v '^ *+' conftest.er1 >conftest.err
4040   rm -f conftest.er1
4041   cat conftest.err >&5
4042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043   (exit $ac_status); } &&
4044          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4045   { (case "(($ac_try" in
4046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4047   *) ac_try_echo=$ac_try;;
4048 esac
4049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4050   (eval "$ac_try") 2>&5
4051   ac_status=$?
4052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053   (exit $ac_status); }; } &&
4054          { ac_try='test -s conftest.$ac_objext'
4055   { (case "(($ac_try" in
4056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057   *) ac_try_echo=$ac_try;;
4058 esac
4059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060   (eval "$ac_try") 2>&5
4061   ac_status=$?
4062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063   (exit $ac_status); }; }; then
4064   :
4065 else
4066   echo "$as_me: failed program was:" >&5
4067 sed 's/^/| /' conftest.$ac_ext >&5
4068
4069         ac_c_werror_flag=$ac_save_c_werror_flag
4070          CFLAGS="-g"
4071          cat >conftest.$ac_ext <<_ACEOF
4072 /* confdefs.h.  */
4073 _ACEOF
4074 cat confdefs.h >>conftest.$ac_ext
4075 cat >>conftest.$ac_ext <<_ACEOF
4076 /* end confdefs.h.  */
4077
4078 int
4079 main ()
4080 {
4081
4082   ;
4083   return 0;
4084 }
4085 _ACEOF
4086 rm -f conftest.$ac_objext
4087 if { (ac_try="$ac_compile"
4088 case "(($ac_try" in
4089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090   *) ac_try_echo=$ac_try;;
4091 esac
4092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4093   (eval "$ac_compile") 2>conftest.er1
4094   ac_status=$?
4095   grep -v '^ *+' conftest.er1 >conftest.err
4096   rm -f conftest.er1
4097   cat conftest.err >&5
4098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099   (exit $ac_status); } &&
4100          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4101   { (case "(($ac_try" in
4102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103   *) ac_try_echo=$ac_try;;
4104 esac
4105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106   (eval "$ac_try") 2>&5
4107   ac_status=$?
4108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109   (exit $ac_status); }; } &&
4110          { ac_try='test -s conftest.$ac_objext'
4111   { (case "(($ac_try" in
4112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113   *) ac_try_echo=$ac_try;;
4114 esac
4115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4116   (eval "$ac_try") 2>&5
4117   ac_status=$?
4118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119   (exit $ac_status); }; }; then
4120   ac_cv_prog_cc_g=yes
4121 else
4122   echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.$ac_ext >&5
4124
4125
4126 fi
4127
4128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4129 fi
4130
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132 fi
4133
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135    ac_c_werror_flag=$ac_save_c_werror_flag
4136 fi
4137 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4138 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4139 if test "$ac_test_CFLAGS" = set; then
4140   CFLAGS=$ac_save_CFLAGS
4141 elif test $ac_cv_prog_cc_g = yes; then
4142   if test "$GCC" = yes; then
4143     CFLAGS="-g -O2"
4144   else
4145     CFLAGS="-g"
4146   fi
4147 else
4148   if test "$GCC" = yes; then
4149     CFLAGS="-O2"
4150   else
4151     CFLAGS=
4152   fi
4153 fi
4154 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4155 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4156 if test "${ac_cv_prog_cc_c89+set}" = set; then
4157   echo $ECHO_N "(cached) $ECHO_C" >&6
4158 else
4159   ac_cv_prog_cc_c89=no
4160 ac_save_CC=$CC
4161 cat >conftest.$ac_ext <<_ACEOF
4162 /* confdefs.h.  */
4163 _ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h.  */
4167 #include <stdarg.h>
4168 #include <stdio.h>
4169 #include <sys/types.h>
4170 #include <sys/stat.h>
4171 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4172 struct buf { int x; };
4173 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4174 static char *e (p, i)
4175      char **p;
4176      int i;
4177 {
4178   return p[i];
4179 }
4180 static char *f (char * (*g) (char **, int), char **p, ...)
4181 {
4182   char *s;
4183   va_list v;
4184   va_start (v,p);
4185   s = g (p, va_arg (v,int));
4186   va_end (v);
4187   return s;
4188 }
4189
4190 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4191    function prototypes and stuff, but not '\xHH' hex character constants.
4192    These don't provoke an error unfortunately, instead are silently treated
4193    as 'x'.  The following induces an error, until -std is added to get
4194    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4195    array size at least.  It's necessary to write '\x00'==0 to get something
4196    that's true only with -std.  */
4197 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4198
4199 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4200    inside strings and character constants.  */
4201 #define FOO(x) 'x'
4202 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4203
4204 int test (int i, double x);
4205 struct s1 {int (*f) (int a);};
4206 struct s2 {int (*f) (double a);};
4207 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4208 int argc;
4209 char **argv;
4210 int
4211 main ()
4212 {
4213 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4214   ;
4215   return 0;
4216 }
4217 _ACEOF
4218 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4219         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4220 do
4221   CC="$ac_save_CC $ac_arg"
4222   rm -f conftest.$ac_objext
4223 if { (ac_try="$ac_compile"
4224 case "(($ac_try" in
4225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4226   *) ac_try_echo=$ac_try;;
4227 esac
4228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4229   (eval "$ac_compile") 2>conftest.er1
4230   ac_status=$?
4231   grep -v '^ *+' conftest.er1 >conftest.err
4232   rm -f conftest.er1
4233   cat conftest.err >&5
4234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235   (exit $ac_status); } &&
4236          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4237   { (case "(($ac_try" in
4238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239   *) ac_try_echo=$ac_try;;
4240 esac
4241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4242   (eval "$ac_try") 2>&5
4243   ac_status=$?
4244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245   (exit $ac_status); }; } &&
4246          { ac_try='test -s conftest.$ac_objext'
4247   { (case "(($ac_try" in
4248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249   *) ac_try_echo=$ac_try;;
4250 esac
4251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4252   (eval "$ac_try") 2>&5
4253   ac_status=$?
4254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255   (exit $ac_status); }; }; then
4256   ac_cv_prog_cc_c89=$ac_arg
4257 else
4258   echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.$ac_ext >&5
4260
4261
4262 fi
4263
4264 rm -f core conftest.err conftest.$ac_objext
4265   test "x$ac_cv_prog_cc_c89" != "xno" && break
4266 done
4267 rm -f conftest.$ac_ext
4268 CC=$ac_save_CC
4269
4270 fi
4271 # AC_CACHE_VAL
4272 case "x$ac_cv_prog_cc_c89" in
4273   x)
4274     { echo "$as_me:$LINENO: result: none needed" >&5
4275 echo "${ECHO_T}none needed" >&6; } ;;
4276   xno)
4277     { echo "$as_me:$LINENO: result: unsupported" >&5
4278 echo "${ECHO_T}unsupported" >&6; } ;;
4279   *)
4280     CC="$CC $ac_cv_prog_cc_c89"
4281     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4282 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4283 esac
4284
4285
4286 ac_ext=c
4287 ac_cpp='$CPP $CPPFLAGS'
4288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4291
4292 depcc="$CC"   am_compiler_list=
4293
4294 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4295 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4296 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4297   echo $ECHO_N "(cached) $ECHO_C" >&6
4298 else
4299   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4300   # We make a subdir and do the tests there.  Otherwise we can end up
4301   # making bogus files that we don't know about and never remove.  For
4302   # instance it was reported that on HP-UX the gcc test will end up
4303   # making a dummy file named `D' -- because `-MD' means `put the output
4304   # in D'.
4305   mkdir conftest.dir
4306   # Copy depcomp to subdir because otherwise we won't find it if we're
4307   # using a relative directory.
4308   cp "$am_depcomp" conftest.dir
4309   cd conftest.dir
4310   # We will build objects and dependencies in a subdirectory because
4311   # it helps to detect inapplicable dependency modes.  For instance
4312   # both Tru64's cc and ICC support -MD to output dependencies as a
4313   # side effect of compilation, but ICC will put the dependencies in
4314   # the current directory while Tru64 will put them in the object
4315   # directory.
4316   mkdir sub
4317
4318   am_cv_CC_dependencies_compiler_type=none
4319   if test "$am_compiler_list" = ""; then
4320      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4321   fi
4322   for depmode in $am_compiler_list; do
4323     # Setup a source with many dependencies, because some compilers
4324     # like to wrap large dependency lists on column 80 (with \), and
4325     # we should not choose a depcomp mode which is confused by this.
4326     #
4327     # We need to recreate these files for each test, as the compiler may
4328     # overwrite some of them when testing with obscure command lines.
4329     # This happens at least with the AIX C compiler.
4330     : > sub/conftest.c
4331     for i in 1 2 3 4 5 6; do
4332       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4333       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4334       # Solaris 8's {/usr,}/bin/sh.
4335       touch sub/conftst$i.h
4336     done
4337     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4338
4339     case $depmode in
4340     nosideeffect)
4341       # after this tag, mechanisms are not by side-effect, so they'll
4342       # only be used when explicitly requested
4343       if test "x$enable_dependency_tracking" = xyes; then
4344         continue
4345       else
4346         break
4347       fi
4348       ;;
4349     none) break ;;
4350     esac
4351     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4352     # mode.  It turns out that the SunPro C++ compiler does not properly
4353     # handle `-M -o', and we need to detect this.
4354     if depmode=$depmode \
4355        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4356        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4357        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4358          >/dev/null 2>conftest.err &&
4359        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4360        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4361        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4362       # icc doesn't choke on unknown options, it will just issue warnings
4363       # or remarks (even with -Werror).  So we grep stderr for any message
4364       # that says an option was ignored or not supported.
4365       # When given -MP, icc 7.0 and 7.1 complain thusly:
4366       #   icc: Command line warning: ignoring option '-M'; no argument required
4367       # The diagnosis changed in icc 8.0:
4368       #   icc: Command line remark: option '-MP' not supported
4369       if (grep 'ignoring option' conftest.err ||
4370           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4371         am_cv_CC_dependencies_compiler_type=$depmode
4372         break
4373       fi
4374     fi
4375   done
4376
4377   cd ..
4378   rm -rf conftest.dir
4379 else
4380   am_cv_CC_dependencies_compiler_type=none
4381 fi
4382
4383 fi
4384 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4385 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4386 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4387
4388
4389
4390 if
4391   test "x$enable_dependency_tracking" != xno \
4392   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4393   am__fastdepCC_TRUE=
4394   am__fastdepCC_FALSE='#'
4395 else
4396   am__fastdepCC_TRUE='#'
4397   am__fastdepCC_FALSE=
4398 fi
4399
4400
4401 ac_ext=c
4402 ac_cpp='$CPP $CPPFLAGS'
4403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4406 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4407 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4408 # On Suns, sometimes $CPP names a directory.
4409 if test -n "$CPP" && test -d "$CPP"; then
4410   CPP=
4411 fi
4412 if test -z "$CPP"; then
4413   if test "${ac_cv_prog_CPP+set}" = set; then
4414   echo $ECHO_N "(cached) $ECHO_C" >&6
4415 else
4416       # Double quotes because CPP needs to be expanded
4417     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4418     do
4419       ac_preproc_ok=false
4420 for ac_c_preproc_warn_flag in '' yes
4421 do
4422   # Use a header file that comes with gcc, so configuring glibc
4423   # with a fresh cross-compiler works.
4424   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4425   # <limits.h> exists even on freestanding compilers.
4426   # On the NeXT, cc -E runs the code through the compiler's parser,
4427   # not just through cpp. "Syntax error" is here to catch this case.
4428   cat >conftest.$ac_ext <<_ACEOF
4429 /* confdefs.h.  */
4430 _ACEOF
4431 cat confdefs.h >>conftest.$ac_ext
4432 cat >>conftest.$ac_ext <<_ACEOF
4433 /* end confdefs.h.  */
4434 #ifdef __STDC__
4435 # include <limits.h>
4436 #else
4437 # include <assert.h>
4438 #endif
4439                      Syntax error
4440 _ACEOF
4441 if { (ac_try="$ac_cpp conftest.$ac_ext"
4442 case "(($ac_try" in
4443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444   *) ac_try_echo=$ac_try;;
4445 esac
4446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4447   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4448   ac_status=$?
4449   grep -v '^ *+' conftest.er1 >conftest.err
4450   rm -f conftest.er1
4451   cat conftest.err >&5
4452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453   (exit $ac_status); } >/dev/null; then
4454   if test -s conftest.err; then
4455     ac_cpp_err=$ac_c_preproc_warn_flag
4456     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4457   else
4458     ac_cpp_err=
4459   fi
4460 else
4461   ac_cpp_err=yes
4462 fi
4463 if test -z "$ac_cpp_err"; then
4464   :
4465 else
4466   echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.$ac_ext >&5
4468
4469   # Broken: fails on valid input.
4470 continue
4471 fi
4472
4473 rm -f conftest.err conftest.$ac_ext
4474
4475   # OK, works on sane cases.  Now check whether nonexistent headers
4476   # can be detected and how.
4477   cat >conftest.$ac_ext <<_ACEOF
4478 /* confdefs.h.  */
4479 _ACEOF
4480 cat confdefs.h >>conftest.$ac_ext
4481 cat >>conftest.$ac_ext <<_ACEOF
4482 /* end confdefs.h.  */
4483 #include <ac_nonexistent.h>
4484 _ACEOF
4485 if { (ac_try="$ac_cpp conftest.$ac_ext"
4486 case "(($ac_try" in
4487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488   *) ac_try_echo=$ac_try;;
4489 esac
4490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4491   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4492   ac_status=$?
4493   grep -v '^ *+' conftest.er1 >conftest.err
4494   rm -f conftest.er1
4495   cat conftest.err >&5
4496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497   (exit $ac_status); } >/dev/null; then
4498   if test -s conftest.err; then
4499     ac_cpp_err=$ac_c_preproc_warn_flag
4500     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4501   else
4502     ac_cpp_err=
4503   fi
4504 else
4505   ac_cpp_err=yes
4506 fi
4507 if test -z "$ac_cpp_err"; then
4508   # Broken: success on invalid input.
4509 continue
4510 else
4511   echo "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.$ac_ext >&5
4513
4514   # Passes both tests.
4515 ac_preproc_ok=:
4516 break
4517 fi
4518
4519 rm -f conftest.err conftest.$ac_ext
4520
4521 done
4522 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4523 rm -f conftest.err conftest.$ac_ext
4524 if $ac_preproc_ok; then
4525   break
4526 fi
4527
4528     done
4529     ac_cv_prog_CPP=$CPP
4530
4531 fi
4532   CPP=$ac_cv_prog_CPP
4533 else
4534   ac_cv_prog_CPP=$CPP
4535 fi
4536 { echo "$as_me:$LINENO: result: $CPP" >&5
4537 echo "${ECHO_T}$CPP" >&6; }
4538 ac_preproc_ok=false
4539 for ac_c_preproc_warn_flag in '' yes
4540 do
4541   # Use a header file that comes with gcc, so configuring glibc
4542   # with a fresh cross-compiler works.
4543   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4544   # <limits.h> exists even on freestanding compilers.
4545   # On the NeXT, cc -E runs the code through the compiler's parser,
4546   # not just through cpp. "Syntax error" is here to catch this case.
4547   cat >conftest.$ac_ext <<_ACEOF
4548 /* confdefs.h.  */
4549 _ACEOF
4550 cat confdefs.h >>conftest.$ac_ext
4551 cat >>conftest.$ac_ext <<_ACEOF
4552 /* end confdefs.h.  */
4553 #ifdef __STDC__
4554 # include <limits.h>
4555 #else
4556 # include <assert.h>
4557 #endif
4558                      Syntax error
4559 _ACEOF
4560 if { (ac_try="$ac_cpp conftest.$ac_ext"
4561 case "(($ac_try" in
4562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4563   *) ac_try_echo=$ac_try;;
4564 esac
4565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4566   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4567   ac_status=$?
4568   grep -v '^ *+' conftest.er1 >conftest.err
4569   rm -f conftest.er1
4570   cat conftest.err >&5
4571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572   (exit $ac_status); } >/dev/null; then
4573   if test -s conftest.err; then
4574     ac_cpp_err=$ac_c_preproc_warn_flag
4575     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4576   else
4577     ac_cpp_err=
4578   fi
4579 else
4580   ac_cpp_err=yes
4581 fi
4582 if test -z "$ac_cpp_err"; then
4583   :
4584 else
4585   echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4587
4588   # Broken: fails on valid input.
4589 continue
4590 fi
4591
4592 rm -f conftest.err conftest.$ac_ext
4593
4594   # OK, works on sane cases.  Now check whether nonexistent headers
4595   # can be detected and how.
4596   cat >conftest.$ac_ext <<_ACEOF
4597 /* confdefs.h.  */
4598 _ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h.  */
4602 #include <ac_nonexistent.h>
4603 _ACEOF
4604 if { (ac_try="$ac_cpp conftest.$ac_ext"
4605 case "(($ac_try" in
4606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607   *) ac_try_echo=$ac_try;;
4608 esac
4609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4610   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4611   ac_status=$?
4612   grep -v '^ *+' conftest.er1 >conftest.err
4613   rm -f conftest.er1
4614   cat conftest.err >&5
4615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616   (exit $ac_status); } >/dev/null; then
4617   if test -s conftest.err; then
4618     ac_cpp_err=$ac_c_preproc_warn_flag
4619     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4620   else
4621     ac_cpp_err=
4622   fi
4623 else
4624   ac_cpp_err=yes
4625 fi
4626 if test -z "$ac_cpp_err"; then
4627   # Broken: success on invalid input.
4628 continue
4629 else
4630   echo "$as_me: failed program was:" >&5
4631 sed 's/^/| /' conftest.$ac_ext >&5
4632
4633   # Passes both tests.
4634 ac_preproc_ok=:
4635 break
4636 fi
4637
4638 rm -f conftest.err conftest.$ac_ext
4639
4640 done
4641 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4642 rm -f conftest.err conftest.$ac_ext
4643 if $ac_preproc_ok; then
4644   :
4645 else
4646   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4647 See \`config.log' for more details." >&5
4648 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4649 See \`config.log' for more details." >&2;}
4650    { (exit 1); exit 1; }; }
4651 fi
4652
4653 ac_ext=c
4654 ac_cpp='$CPP $CPPFLAGS'
4655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4658
4659 # Check whether --enable-shared was given.
4660 if test "${enable_shared+set}" = set; then
4661   enableval=$enable_shared; p=${PACKAGE-default}
4662     case $enableval in
4663     yes) enable_shared=yes ;;
4664     no) enable_shared=no ;;
4665     *)
4666       enable_shared=no
4667       # Look at the argument we got.  We use all the common list separators.
4668       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4669       for pkg in $enableval; do
4670         IFS="$lt_save_ifs"
4671         if test "X$pkg" = "X$p"; then
4672           enable_shared=yes
4673         fi
4674       done
4675       IFS="$lt_save_ifs"
4676       ;;
4677     esac
4678 else
4679   enable_shared=yes
4680 fi
4681
4682
4683 # Check whether --enable-fast-install was given.
4684 if test "${enable_fast_install+set}" = set; then
4685   enableval=$enable_fast_install; p=${PACKAGE-default}
4686     case $enableval in
4687     yes) enable_fast_install=yes ;;
4688     no) enable_fast_install=no ;;
4689     *)
4690       enable_fast_install=no
4691       # Look at the argument we got.  We use all the common list separators.
4692       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4693       for pkg in $enableval; do
4694         IFS="$lt_save_ifs"
4695         if test "X$pkg" = "X$p"; then
4696           enable_fast_install=yes
4697         fi
4698       done
4699       IFS="$lt_save_ifs"
4700       ;;
4701     esac
4702 else
4703   enable_fast_install=yes
4704 fi
4705
4706
4707 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4708 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4709 if test "${lt_cv_path_SED+set}" = set; then
4710   echo $ECHO_N "(cached) $ECHO_C" >&6
4711 else
4712   # Loop through the user's path and test for sed and gsed.
4713 # Then use that list of sed's as ones to test for truncation.
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in $PATH
4716 do
4717   IFS=$as_save_IFS
4718   test -z "$as_dir" && as_dir=.
4719   for lt_ac_prog in sed gsed; do
4720     for ac_exec_ext in '' $ac_executable_extensions; do
4721       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4722         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4723       fi
4724     done
4725   done
4726 done
4727 lt_ac_max=0
4728 lt_ac_count=0
4729 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4730 # along with /bin/sed that truncates output.
4731 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4732   test ! -f $lt_ac_sed && continue
4733   cat /dev/null > conftest.in
4734   lt_ac_count=0
4735   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4736   # Check for GNU sed and select it if it is found.
4737   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4738     lt_cv_path_SED=$lt_ac_sed
4739     break
4740   fi
4741   while true; do
4742     cat conftest.in conftest.in >conftest.tmp
4743     mv conftest.tmp conftest.in
4744     cp conftest.in conftest.nl
4745     echo >>conftest.nl
4746     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4747     cmp -s conftest.out conftest.nl || break
4748     # 10000 chars as input seems more than enough
4749     test $lt_ac_count -gt 10 && break
4750     lt_ac_count=`expr $lt_ac_count + 1`
4751     if test $lt_ac_count -gt $lt_ac_max; then
4752       lt_ac_max=$lt_ac_count
4753       lt_cv_path_SED=$lt_ac_sed
4754     fi
4755   done
4756 done
4757
4758 fi
4759
4760 SED=$lt_cv_path_SED
4761 { echo "$as_me:$LINENO: result: $SED" >&5
4762 echo "${ECHO_T}$SED" >&6; }
4763
4764 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4765 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4766 if test "${ac_cv_path_GREP+set}" = set; then
4767   echo $ECHO_N "(cached) $ECHO_C" >&6
4768 else
4769   # Extract the first word of "grep ggrep" to use in msg output
4770 if test -z "$GREP"; then
4771 set dummy grep ggrep; ac_prog_name=$2
4772 if test "${ac_cv_path_GREP+set}" = set; then
4773   echo $ECHO_N "(cached) $ECHO_C" >&6
4774 else
4775   ac_path_GREP_found=false
4776 # Loop through the user's path and test for each of PROGNAME-LIST
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4779 do
4780   IFS=$as_save_IFS
4781   test -z "$as_dir" && as_dir=.
4782   for ac_prog in grep ggrep; do
4783   for ac_exec_ext in '' $ac_executable_extensions; do
4784     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4785     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4786     # Check for GNU ac_path_GREP and select it if it is found.
4787   # Check for GNU $ac_path_GREP
4788 case `"$ac_path_GREP" --version 2>&1` in
4789 *GNU*)
4790   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4791 *)
4792   ac_count=0
4793   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4794   while :
4795   do
4796     cat "conftest.in" "conftest.in" >"conftest.tmp"
4797     mv "conftest.tmp" "conftest.in"
4798     cp "conftest.in" "conftest.nl"
4799     echo 'GREP' >> "conftest.nl"
4800     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4801     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4802     ac_count=`expr $ac_count + 1`
4803     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4804       # Best one so far, save it but keep looking for a better one
4805       ac_cv_path_GREP="$ac_path_GREP"
4806       ac_path_GREP_max=$ac_count
4807     fi
4808     # 10*(2^10) chars as input seems more than enough
4809     test $ac_count -gt 10 && break
4810   done
4811   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4812 esac
4813
4814
4815     $ac_path_GREP_found && break 3
4816   done
4817 done
4818
4819 done
4820 IFS=$as_save_IFS
4821
4822
4823 fi
4824
4825 GREP="$ac_cv_path_GREP"
4826 if test -z "$GREP"; then
4827   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4828 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4829    { (exit 1); exit 1; }; }
4830 fi
4831
4832 else
4833   ac_cv_path_GREP=$GREP
4834 fi
4835
4836
4837 fi
4838 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4839 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4840  GREP="$ac_cv_path_GREP"
4841
4842
4843 { echo "$as_me:$LINENO: checking for egrep" >&5
4844 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4845 if test "${ac_cv_path_EGREP+set}" = set; then
4846   echo $ECHO_N "(cached) $ECHO_C" >&6
4847 else
4848   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4849    then ac_cv_path_EGREP="$GREP -E"
4850    else
4851      # Extract the first word of "egrep" to use in msg output
4852 if test -z "$EGREP"; then
4853 set dummy egrep; ac_prog_name=$2
4854 if test "${ac_cv_path_EGREP+set}" = set; then
4855   echo $ECHO_N "(cached) $ECHO_C" >&6
4856 else
4857   ac_path_EGREP_found=false
4858 # Loop through the user's path and test for each of PROGNAME-LIST
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4861 do
4862   IFS=$as_save_IFS
4863   test -z "$as_dir" && as_dir=.
4864   for ac_prog in egrep; do
4865   for ac_exec_ext in '' $ac_executable_extensions; do
4866     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4867     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4868     # Check for GNU ac_path_EGREP and select it if it is found.
4869   # Check for GNU $ac_path_EGREP
4870 case `"$ac_path_EGREP" --version 2>&1` in
4871 *GNU*)
4872   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4873 *)
4874   ac_count=0
4875   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4876   while :
4877   do
4878     cat "conftest.in" "conftest.in" >"conftest.tmp"
4879     mv "conftest.tmp" "conftest.in"
4880     cp "conftest.in" "conftest.nl"
4881     echo 'EGREP' >> "conftest.nl"
4882     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4883     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4884     ac_count=`expr $ac_count + 1`
4885     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4886       # Best one so far, save it but keep looking for a better one
4887       ac_cv_path_EGREP="$ac_path_EGREP"
4888       ac_path_EGREP_max=$ac_count
4889     fi
4890     # 10*(2^10) chars as input seems more than enough
4891     test $ac_count -gt 10 && break
4892   done
4893   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4894 esac
4895
4896
4897     $ac_path_EGREP_found && break 3
4898   done
4899 done
4900
4901 done
4902 IFS=$as_save_IFS
4903
4904
4905 fi
4906
4907 EGREP="$ac_cv_path_EGREP"
4908 if test -z "$EGREP"; then
4909   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4910 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4911    { (exit 1); exit 1; }; }
4912 fi
4913
4914 else
4915   ac_cv_path_EGREP=$EGREP
4916 fi
4917
4918
4919    fi
4920 fi
4921 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4922 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4923  EGREP="$ac_cv_path_EGREP"
4924
4925
4926
4927 # Check whether --with-gnu-ld was given.
4928 if test "${with_gnu_ld+set}" = set; then
4929   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4930 else
4931   with_gnu_ld=no
4932 fi
4933
4934 ac_prog=ld
4935 if test "$GCC" = yes; then
4936   # Check if gcc -print-prog-name=ld gives a path.
4937   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4938 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4939   case $host in
4940   *-*-mingw*)
4941     # gcc leaves a trailing carriage return which upsets mingw
4942     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4943   *)
4944     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4945   esac
4946   case $ac_prog in
4947     # Accept absolute paths.
4948     [\\/]* | ?:[\\/]*)
4949       re_direlt='/[^/][^/]*/\.\./'
4950       # Canonicalize the pathname of ld
4951       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4952       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4953         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4954       done
4955       test -z "$LD" && LD="$ac_prog"
4956       ;;
4957   "")
4958     # If it fails, then pretend we aren't using GCC.
4959     ac_prog=ld
4960     ;;
4961   *)
4962     # If it is relative, then search for the first ld in PATH.
4963     with_gnu_ld=unknown
4964     ;;
4965   esac
4966 elif test "$with_gnu_ld" = yes; then
4967   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4968 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4969 else
4970   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4971 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4972 fi
4973 if test "${lt_cv_path_LD+set}" = set; then
4974   echo $ECHO_N "(cached) $ECHO_C" >&6
4975 else
4976   if test -z "$LD"; then
4977   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4978   for ac_dir in $PATH; do
4979     IFS="$lt_save_ifs"
4980     test -z "$ac_dir" && ac_dir=.
4981     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4982       lt_cv_path_LD="$ac_dir/$ac_prog"
4983       # Check to see if the program is GNU ld.  I'd rather use --version,
4984       # but apparently some variants of GNU ld only accept -v.
4985       # Break only if it was the GNU/non-GNU ld that we prefer.
4986       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4987       *GNU* | *'with BFD'*)
4988         test "$with_gnu_ld" != no && break
4989         ;;
4990       *)
4991         test "$with_gnu_ld" != yes && break
4992         ;;
4993       esac
4994     fi
4995   done
4996   IFS="$lt_save_ifs"
4997 else
4998   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4999 fi
5000 fi
5001
5002 LD="$lt_cv_path_LD"
5003 if test -n "$LD"; then
5004   { echo "$as_me:$LINENO: result: $LD" >&5
5005 echo "${ECHO_T}$LD" >&6; }
5006 else
5007   { echo "$as_me:$LINENO: result: no" >&5
5008 echo "${ECHO_T}no" >&6; }
5009 fi
5010 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5011 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5012    { (exit 1); exit 1; }; }
5013 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5014 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5015 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5016   echo $ECHO_N "(cached) $ECHO_C" >&6
5017 else
5018   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5019 case `$LD -v 2>&1 </dev/null` in
5020 *GNU* | *'with BFD'*)
5021   lt_cv_prog_gnu_ld=yes
5022   ;;
5023 *)
5024   lt_cv_prog_gnu_ld=no
5025   ;;
5026 esac
5027 fi
5028 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5029 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5030 with_gnu_ld=$lt_cv_prog_gnu_ld
5031
5032
5033 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5034 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5035 if test "${lt_cv_ld_reload_flag+set}" = set; then
5036   echo $ECHO_N "(cached) $ECHO_C" >&6
5037 else
5038   lt_cv_ld_reload_flag='-r'
5039 fi
5040 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5041 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5042 reload_flag=$lt_cv_ld_reload_flag
5043 case $reload_flag in
5044 "" | " "*) ;;
5045 *) reload_flag=" $reload_flag" ;;
5046 esac
5047 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5048 case $host_os in
5049   darwin*)
5050     if test "$GCC" = yes; then
5051       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5052     else
5053       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5054     fi
5055     ;;
5056 esac
5057
5058 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5059 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5060 if test "${lt_cv_path_NM+set}" = set; then
5061   echo $ECHO_N "(cached) $ECHO_C" >&6
5062 else
5063   if test -n "$NM"; then
5064   # Let the user override the test.
5065   lt_cv_path_NM="$NM"
5066 else
5067   lt_nm_to_check="${ac_tool_prefix}nm"
5068   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5069     lt_nm_to_check="$lt_nm_to_check nm"
5070   fi
5071   for lt_tmp_nm in $lt_nm_to_check; do
5072     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5073     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5074       IFS="$lt_save_ifs"
5075       test -z "$ac_dir" && ac_dir=.
5076       tmp_nm="$ac_dir/$lt_tmp_nm"
5077       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5078         # Check to see if the nm accepts a BSD-compat flag.
5079         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5080         #   nm: unknown option "B" ignored
5081         # Tru64's nm complains that /dev/null is an invalid object file
5082         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5083         */dev/null* | *'Invalid file or object type'*)
5084           lt_cv_path_NM="$tmp_nm -B"
5085           break
5086           ;;
5087         *)
5088           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5089           */dev/null*)
5090             lt_cv_path_NM="$tmp_nm -p"
5091             break
5092             ;;
5093           *)
5094             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5095             continue # so that we can try to find one that supports BSD flags
5096             ;;
5097           esac
5098           ;;
5099         esac
5100       fi
5101     done
5102     IFS="$lt_save_ifs"
5103   done
5104   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5105 fi
5106 fi
5107 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5108 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5109 NM="$lt_cv_path_NM"
5110
5111 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5112 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5113 LN_S=$as_ln_s
5114 if test "$LN_S" = "ln -s"; then
5115   { echo "$as_me:$LINENO: result: yes" >&5
5116 echo "${ECHO_T}yes" >&6; }
5117 else
5118   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5119 echo "${ECHO_T}no, using $LN_S" >&6; }
5120 fi
5121
5122 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5123 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5124 if test "${lt_cv_deplibs_check_method+set}" = set; then
5125   echo $ECHO_N "(cached) $ECHO_C" >&6
5126 else
5127   lt_cv_file_magic_cmd='$MAGIC_CMD'
5128 lt_cv_file_magic_test_file=
5129 lt_cv_deplibs_check_method='unknown'
5130 # Need to set the preceding variable on all platforms that support
5131 # interlibrary dependencies.
5132 # 'none' -- dependencies not supported.
5133 # `unknown' -- same as none, but documents that we really don't know.
5134 # 'pass_all' -- all dependencies passed with no checks.
5135 # 'test_compile' -- check by making test program.
5136 # 'file_magic [[regex]]' -- check by looking for files in library path
5137 # which responds to the $file_magic_cmd with a given extended regex.
5138 # If you have `file' or equivalent on your system and you're not sure
5139 # whether `pass_all' will *always* work, you probably want this one.
5140
5141 case $host_os in
5142 aix4* | aix5*)
5143   lt_cv_deplibs_check_method=pass_all
5144   ;;
5145
5146 beos*)
5147   lt_cv_deplibs_check_method=pass_all
5148   ;;
5149
5150 bsdi[45]*)
5151   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5152   lt_cv_file_magic_cmd='/usr/bin/file -L'
5153   lt_cv_file_magic_test_file=/shlib/libc.so
5154   ;;
5155
5156 cygwin*)
5157   # func_win32_libid is a shell function defined in ltmain.sh
5158   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5159   lt_cv_file_magic_cmd='func_win32_libid'
5160   ;;
5161
5162 mingw* | pw32*)
5163   # Base MSYS/MinGW do not provide the 'file' command needed by
5164   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5165   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5166   lt_cv_file_magic_cmd='$OBJDUMP -f'
5167   ;;
5168
5169 darwin* | rhapsody*)
5170   lt_cv_deplibs_check_method=pass_all
5171   ;;
5172
5173 freebsd* | dragonfly*)
5174   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5175     case $host_cpu in
5176     i*86 )
5177       # Not sure whether the presence of OpenBSD here was a mistake.
5178       # Let's accept both of them until this is cleared up.
5179       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5180       lt_cv_file_magic_cmd=/usr/bin/file
5181       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5182       ;;
5183     esac
5184   else
5185     lt_cv_deplibs_check_method=pass_all
5186   fi
5187   ;;
5188
5189 gnu*)
5190   lt_cv_deplibs_check_method=pass_all
5191   ;;
5192
5193 hpux10.20* | hpux11*)
5194   lt_cv_file_magic_cmd=/usr/bin/file
5195   case $host_cpu in
5196   ia64*)
5197     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5198     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5199     ;;
5200   hppa*64*)
5201     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]'
5202     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5203     ;;
5204   *)
5205     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5206     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5207     ;;
5208   esac
5209   ;;
5210
5211 interix3*)
5212   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5213   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5214   ;;
5215
5216 irix5* | irix6* | nonstopux*)
5217   case $LD in
5218   *-32|*"-32 ") libmagic=32-bit;;
5219   *-n32|*"-n32 ") libmagic=N32;;
5220   *-64|*"-64 ") libmagic=64-bit;;
5221   *) libmagic=never-match;;
5222   esac
5223   lt_cv_deplibs_check_method=pass_all
5224   ;;
5225
5226 # This must be Linux ELF.
5227 linux* | k*bsd*-gnu)
5228   lt_cv_deplibs_check_method=pass_all
5229   ;;
5230
5231 netbsd* | netbsdelf*-gnu)
5232   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5233     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5234   else
5235     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5236   fi
5237   ;;
5238
5239 newos6*)
5240   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5241   lt_cv_file_magic_cmd=/usr/bin/file
5242   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5243   ;;
5244
5245 nto-qnx*)
5246   lt_cv_deplibs_check_method=unknown
5247   ;;
5248
5249 openbsd*)
5250   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5251     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5252   else
5253     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5254   fi
5255   ;;
5256
5257 osf3* | osf4* | osf5*)
5258   lt_cv_deplibs_check_method=pass_all
5259   ;;
5260
5261 solaris*)
5262   lt_cv_deplibs_check_method=pass_all
5263   ;;
5264
5265 sysv4 | sysv4.3*)
5266   case $host_vendor in
5267   motorola)
5268     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]'
5269     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5270     ;;
5271   ncr)
5272     lt_cv_deplibs_check_method=pass_all
5273     ;;
5274   sequent)
5275     lt_cv_file_magic_cmd='/bin/file'
5276     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5277     ;;
5278   sni)
5279     lt_cv_file_magic_cmd='/bin/file'
5280     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5281     lt_cv_file_magic_test_file=/lib/libc.so
5282     ;;
5283   siemens)
5284     lt_cv_deplibs_check_method=pass_all
5285     ;;
5286   pc)
5287     lt_cv_deplibs_check_method=pass_all
5288     ;;
5289   esac
5290   ;;
5291
5292 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5293   lt_cv_deplibs_check_method=pass_all
5294   ;;
5295 esac
5296
5297 fi
5298 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5299 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5300 file_magic_cmd=$lt_cv_file_magic_cmd
5301 deplibs_check_method=$lt_cv_deplibs_check_method
5302 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5303
5304
5305
5306
5307 # If no C compiler was specified, use CC.
5308 LTCC=${LTCC-"$CC"}
5309
5310 # If no C compiler flags were specified, use CFLAGS.
5311 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5312
5313 # Allow CC to be a program name with arguments.
5314 compiler=$CC
5315
5316
5317 # Check whether --enable-libtool-lock was given.
5318 if test "${enable_libtool_lock+set}" = set; then
5319   enableval=$enable_libtool_lock;
5320 fi
5321
5322 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5323
5324 # Some flags need to be propagated to the compiler or linker for good
5325 # libtool support.
5326 case $host in
5327 ia64-*-hpux*)
5328   # Find out which ABI we are using.
5329   echo 'int i;' > conftest.$ac_ext
5330   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5331   (eval $ac_compile) 2>&5
5332   ac_status=$?
5333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334   (exit $ac_status); }; then
5335     case `/usr/bin/file conftest.$ac_objext` in
5336     *ELF-32*)
5337       HPUX_IA64_MODE="32"
5338       ;;
5339     *ELF-64*)
5340       HPUX_IA64_MODE="64"
5341       ;;
5342     esac
5343   fi
5344   rm -rf conftest*
5345   ;;
5346 *-*-irix6*)
5347   # Find out which ABI we are using.
5348   echo '#line 5348 "configure"' > conftest.$ac_ext
5349   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5350   (eval $ac_compile) 2>&5
5351   ac_status=$?
5352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353   (exit $ac_status); }; then
5354    if test "$lt_cv_prog_gnu_ld" = yes; then
5355     case `/usr/bin/file conftest.$ac_objext` in
5356     *32-bit*)
5357       LD="${LD-ld} -melf32bsmip"
5358       ;;
5359     *N32*)
5360       LD="${LD-ld} -melf32bmipn32"
5361       ;;
5362     *64-bit*)
5363       LD="${LD-ld} -melf64bmip"
5364       ;;
5365     esac
5366    else
5367     case `/usr/bin/file conftest.$ac_objext` in
5368     *32-bit*)
5369       LD="${LD-ld} -32"
5370       ;;
5371     *N32*)
5372       LD="${LD-ld} -n32"
5373       ;;
5374     *64-bit*)
5375       LD="${LD-ld} -64"
5376       ;;
5377     esac
5378    fi
5379   fi
5380   rm -rf conftest*
5381   ;;
5382
5383 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5384   # Find out which ABI we are using.
5385   echo 'int i;' > conftest.$ac_ext
5386   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5387   (eval $ac_compile) 2>&5
5388   ac_status=$?
5389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390   (exit $ac_status); }; then
5391     case `/usr/bin/file conftest.o` in
5392     *32-bit*)
5393       case $host in
5394         x86_64-*linux*)
5395           LD="${LD-ld} -m elf_i386"
5396           ;;
5397         ppc64-*linux*|powerpc64-*linux*)
5398           LD="${LD-ld} -m elf32ppclinux"
5399           ;;
5400         s390x-*linux*)
5401           LD="${LD-ld} -m elf_s390"
5402           ;;
5403         sparc64-*linux*)
5404           LD="${LD-ld} -m elf32_sparc"
5405           ;;
5406       esac
5407       ;;
5408     *64-bit*)
5409       case $host in
5410         x86_64-*linux*)
5411           LD="${LD-ld} -m elf_x86_64"
5412           ;;
5413         ppc*-*linux*|powerpc*-*linux*)
5414           LD="${LD-ld} -m elf64ppc"
5415           ;;
5416         s390*-*linux*)
5417           LD="${LD-ld} -m elf64_s390"
5418           ;;
5419         sparc*-*linux*)
5420           LD="${LD-ld} -m elf64_sparc"
5421           ;;
5422       esac
5423       ;;
5424     esac
5425   fi
5426   rm -rf conftest*
5427   ;;
5428
5429 *-*-sco3.2v5*)
5430   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5431   SAVE_CFLAGS="$CFLAGS"
5432   CFLAGS="$CFLAGS -belf"
5433   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5434 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5435 if test "${lt_cv_cc_needs_belf+set}" = set; then
5436   echo $ECHO_N "(cached) $ECHO_C" >&6
5437 else
5438   ac_ext=c
5439 ac_cpp='$CPP $CPPFLAGS'
5440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5443
5444      cat >conftest.$ac_ext <<_ACEOF
5445 /* confdefs.h.  */
5446 _ACEOF
5447 cat confdefs.h >>conftest.$ac_ext
5448 cat >>conftest.$ac_ext <<_ACEOF
5449 /* end confdefs.h.  */
5450
5451 int
5452 main ()
5453 {
5454
5455   ;
5456   return 0;
5457 }
5458 _ACEOF
5459 rm -f conftest.$ac_objext conftest$ac_exeext
5460 if { (ac_try="$ac_link"
5461 case "(($ac_try" in
5462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463   *) ac_try_echo=$ac_try;;
5464 esac
5465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5466   (eval "$ac_link") 2>conftest.er1
5467   ac_status=$?
5468   grep -v '^ *+' conftest.er1 >conftest.err
5469   rm -f conftest.er1
5470   cat conftest.err >&5
5471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472   (exit $ac_status); } &&
5473          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5474   { (case "(($ac_try" in
5475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5476   *) ac_try_echo=$ac_try;;
5477 esac
5478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5479   (eval "$ac_try") 2>&5
5480   ac_status=$?
5481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482   (exit $ac_status); }; } &&
5483          { ac_try='test -s conftest$ac_exeext'
5484   { (case "(($ac_try" in
5485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486   *) ac_try_echo=$ac_try;;
5487 esac
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489   (eval "$ac_try") 2>&5
5490   ac_status=$?
5491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492   (exit $ac_status); }; }; then
5493   lt_cv_cc_needs_belf=yes
5494 else
5495   echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.$ac_ext >&5
5497
5498         lt_cv_cc_needs_belf=no
5499 fi
5500
5501 rm -f core conftest.err conftest.$ac_objext \
5502       conftest$ac_exeext conftest.$ac_ext
5503      ac_ext=c
5504 ac_cpp='$CPP $CPPFLAGS'
5505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5508
5509 fi
5510 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5511 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5512   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5513     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5514     CFLAGS="$SAVE_CFLAGS"
5515   fi
5516   ;;
5517 sparc*-*solaris*)
5518   # Find out which ABI we are using.
5519   echo 'int i;' > conftest.$ac_ext
5520   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5521   (eval $ac_compile) 2>&5
5522   ac_status=$?
5523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524   (exit $ac_status); }; then
5525     case `/usr/bin/file conftest.o` in
5526     *64-bit*)
5527       case $lt_cv_prog_gnu_ld in
5528       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5529       *)    LD="${LD-ld} -64" ;;
5530       esac
5531       ;;
5532     esac
5533   fi
5534   rm -rf conftest*
5535   ;;
5536
5537 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5538   if test -n "$ac_tool_prefix"; then
5539   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5540 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5543 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5544   echo $ECHO_N "(cached) $ECHO_C" >&6
5545 else
5546   if test -n "$DLLTOOL"; then
5547   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5548 else
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH
5551 do
5552   IFS=$as_save_IFS
5553   test -z "$as_dir" && as_dir=.
5554   for ac_exec_ext in '' $ac_executable_extensions; do
5555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5556     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5558     break 2
5559   fi
5560 done
5561 done
5562 IFS=$as_save_IFS
5563
5564 fi
5565 fi
5566 DLLTOOL=$ac_cv_prog_DLLTOOL
5567 if test -n "$DLLTOOL"; then
5568   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5569 echo "${ECHO_T}$DLLTOOL" >&6; }
5570 else
5571   { echo "$as_me:$LINENO: result: no" >&5
5572 echo "${ECHO_T}no" >&6; }
5573 fi
5574
5575
5576 fi
5577 if test -z "$ac_cv_prog_DLLTOOL"; then
5578   ac_ct_DLLTOOL=$DLLTOOL
5579   # Extract the first word of "dlltool", so it can be a program name with args.
5580 set dummy dlltool; ac_word=$2
5581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5583 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5584   echo $ECHO_N "(cached) $ECHO_C" >&6
5585 else
5586   if test -n "$ac_ct_DLLTOOL"; then
5587   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5588 else
5589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590 for as_dir in $PATH
5591 do
5592   IFS=$as_save_IFS
5593   test -z "$as_dir" && as_dir=.
5594   for ac_exec_ext in '' $ac_executable_extensions; do
5595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5596     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5597     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5598     break 2
5599   fi
5600 done
5601 done
5602 IFS=$as_save_IFS
5603
5604 fi
5605 fi
5606 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5607 if test -n "$ac_ct_DLLTOOL"; then
5608   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5609 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
5610 else
5611   { echo "$as_me:$LINENO: result: no" >&5
5612 echo "${ECHO_T}no" >&6; }
5613 fi
5614
5615   if test "x$ac_ct_DLLTOOL" = x; then
5616     DLLTOOL="false"
5617   else
5618     case $cross_compiling:$ac_tool_warned in
5619 yes:)
5620 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5621 whose name does not start with the host triplet.  If you think this
5622 configuration is useful to you, please write to autoconf@gnu.org." >&5
5623 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5624 whose name does not start with the host triplet.  If you think this
5625 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5626 ac_tool_warned=yes ;;
5627 esac
5628     DLLTOOL=$ac_ct_DLLTOOL
5629   fi
5630 else
5631   DLLTOOL="$ac_cv_prog_DLLTOOL"
5632 fi
5633
5634   if test -n "$ac_tool_prefix"; then
5635   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5636 set dummy ${ac_tool_prefix}as; ac_word=$2
5637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5639 if test "${ac_cv_prog_AS+set}" = set; then
5640   echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642   if test -n "$AS"; then
5643   ac_cv_prog_AS="$AS" # Let the user override the test.
5644 else
5645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 for as_dir in $PATH
5647 do
5648   IFS=$as_save_IFS
5649   test -z "$as_dir" && as_dir=.
5650   for ac_exec_ext in '' $ac_executable_extensions; do
5651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5652     ac_cv_prog_AS="${ac_tool_prefix}as"
5653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5654     break 2
5655   fi
5656 done
5657 done
5658 IFS=$as_save_IFS
5659
5660 fi
5661 fi
5662 AS=$ac_cv_prog_AS
5663 if test -n "$AS"; then
5664   { echo "$as_me:$LINENO: result: $AS" >&5
5665 echo "${ECHO_T}$AS" >&6; }
5666 else
5667   { echo "$as_me:$LINENO: result: no" >&5
5668 echo "${ECHO_T}no" >&6; }
5669 fi
5670
5671
5672 fi
5673 if test -z "$ac_cv_prog_AS"; then
5674   ac_ct_AS=$AS
5675   # Extract the first word of "as", so it can be a program name with args.
5676 set dummy as; ac_word=$2
5677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5679 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5680   echo $ECHO_N "(cached) $ECHO_C" >&6
5681 else
5682   if test -n "$ac_ct_AS"; then
5683   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5684 else
5685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686 for as_dir in $PATH
5687 do
5688   IFS=$as_save_IFS
5689   test -z "$as_dir" && as_dir=.
5690   for ac_exec_ext in '' $ac_executable_extensions; do
5691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5692     ac_cv_prog_ac_ct_AS="as"
5693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5694     break 2
5695   fi
5696 done
5697 done
5698 IFS=$as_save_IFS
5699
5700 fi
5701 fi
5702 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5703 if test -n "$ac_ct_AS"; then
5704   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5705 echo "${ECHO_T}$ac_ct_AS" >&6; }
5706 else
5707   { echo "$as_me:$LINENO: result: no" >&5
5708 echo "${ECHO_T}no" >&6; }
5709 fi
5710
5711   if test "x$ac_ct_AS" = x; then
5712     AS="false"
5713   else
5714     case $cross_compiling:$ac_tool_warned in
5715 yes:)
5716 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5717 whose name does not start with the host triplet.  If you think this
5718 configuration is useful to you, please write to autoconf@gnu.org." >&5
5719 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5720 whose name does not start with the host triplet.  If you think this
5721 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5722 ac_tool_warned=yes ;;
5723 esac
5724     AS=$ac_ct_AS
5725   fi
5726 else
5727   AS="$ac_cv_prog_AS"
5728 fi
5729
5730   if test -n "$ac_tool_prefix"; then
5731   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5732 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5735 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5736   echo $ECHO_N "(cached) $ECHO_C" >&6
5737 else
5738   if test -n "$OBJDUMP"; then
5739   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5740 else
5741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742 for as_dir in $PATH
5743 do
5744   IFS=$as_save_IFS
5745   test -z "$as_dir" && as_dir=.
5746   for ac_exec_ext in '' $ac_executable_extensions; do
5747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5748     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5750     break 2
5751   fi
5752 done
5753 done
5754 IFS=$as_save_IFS
5755
5756 fi
5757 fi
5758 OBJDUMP=$ac_cv_prog_OBJDUMP
5759 if test -n "$OBJDUMP"; then
5760   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5761 echo "${ECHO_T}$OBJDUMP" >&6; }
5762 else
5763   { echo "$as_me:$LINENO: result: no" >&5
5764 echo "${ECHO_T}no" >&6; }
5765 fi
5766
5767
5768 fi
5769 if test -z "$ac_cv_prog_OBJDUMP"; then
5770   ac_ct_OBJDUMP=$OBJDUMP
5771   # Extract the first word of "objdump", so it can be a program name with args.
5772 set dummy objdump; ac_word=$2
5773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5775 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5776   echo $ECHO_N "(cached) $ECHO_C" >&6
5777 else
5778   if test -n "$ac_ct_OBJDUMP"; then
5779   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5780 else
5781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5782 for as_dir in $PATH
5783 do
5784   IFS=$as_save_IFS
5785   test -z "$as_dir" && as_dir=.
5786   for ac_exec_ext in '' $ac_executable_extensions; do
5787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5788     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5790     break 2
5791   fi
5792 done
5793 done
5794 IFS=$as_save_IFS
5795
5796 fi
5797 fi
5798 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5799 if test -n "$ac_ct_OBJDUMP"; then
5800   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5801 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5802 else
5803   { echo "$as_me:$LINENO: result: no" >&5
5804 echo "${ECHO_T}no" >&6; }
5805 fi
5806
5807   if test "x$ac_ct_OBJDUMP" = x; then
5808     OBJDUMP="false"
5809   else
5810     case $cross_compiling:$ac_tool_warned in
5811 yes:)
5812 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5813 whose name does not start with the host triplet.  If you think this
5814 configuration is useful to you, please write to autoconf@gnu.org." >&5
5815 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5816 whose name does not start with the host triplet.  If you think this
5817 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5818 ac_tool_warned=yes ;;
5819 esac
5820     OBJDUMP=$ac_ct_OBJDUMP
5821   fi
5822 else
5823   OBJDUMP="$ac_cv_prog_OBJDUMP"
5824 fi
5825
5826   ;;
5827
5828 esac
5829
5830 need_locks="$enable_libtool_lock"
5831
5832
5833
5834 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5835 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5836 if test "${ac_cv_header_stdc+set}" = set; then
5837   echo $ECHO_N "(cached) $ECHO_C" >&6
5838 else
5839   cat >conftest.$ac_ext <<_ACEOF
5840 /* confdefs.h.  */
5841 _ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h.  */
5845 #include <stdlib.h>
5846 #include <stdarg.h>
5847 #include <string.h>
5848 #include <float.h>
5849
5850 int
5851 main ()
5852 {
5853
5854   ;
5855   return 0;
5856 }
5857 _ACEOF
5858 rm -f conftest.$ac_objext
5859 if { (ac_try="$ac_compile"
5860 case "(($ac_try" in
5861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862   *) ac_try_echo=$ac_try;;
5863 esac
5864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865   (eval "$ac_compile") 2>conftest.er1
5866   ac_status=$?
5867   grep -v '^ *+' conftest.er1 >conftest.err
5868   rm -f conftest.er1
5869   cat conftest.err >&5
5870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871   (exit $ac_status); } &&
5872          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5873   { (case "(($ac_try" in
5874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875   *) ac_try_echo=$ac_try;;
5876 esac
5877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878   (eval "$ac_try") 2>&5
5879   ac_status=$?
5880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881   (exit $ac_status); }; } &&
5882          { ac_try='test -s conftest.$ac_objext'
5883   { (case "(($ac_try" in
5884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885   *) ac_try_echo=$ac_try;;
5886 esac
5887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888   (eval "$ac_try") 2>&5
5889   ac_status=$?
5890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891   (exit $ac_status); }; }; then
5892   ac_cv_header_stdc=yes
5893 else
5894   echo "$as_me: failed program was:" >&5
5895 sed 's/^/| /' conftest.$ac_ext >&5
5896
5897         ac_cv_header_stdc=no
5898 fi
5899
5900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5901
5902 if test $ac_cv_header_stdc = yes; then
5903   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5904   cat >conftest.$ac_ext <<_ACEOF
5905 /* confdefs.h.  */
5906 _ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h.  */
5910 #include <string.h>
5911
5912 _ACEOF
5913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5914   $EGREP "memchr" >/dev/null 2>&1; then
5915   :
5916 else
5917   ac_cv_header_stdc=no
5918 fi
5919 rm -f conftest*
5920
5921 fi
5922
5923 if test $ac_cv_header_stdc = yes; then
5924   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5925   cat >conftest.$ac_ext <<_ACEOF
5926 /* confdefs.h.  */
5927 _ACEOF
5928 cat confdefs.h >>conftest.$ac_ext
5929 cat >>conftest.$ac_ext <<_ACEOF
5930 /* end confdefs.h.  */
5931 #include <stdlib.h>
5932
5933 _ACEOF
5934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5935   $EGREP "free" >/dev/null 2>&1; then
5936   :
5937 else
5938   ac_cv_header_stdc=no
5939 fi
5940 rm -f conftest*
5941
5942 fi
5943
5944 if test $ac_cv_header_stdc = yes; then
5945   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5946   if test "$cross_compiling" = yes; then
5947   :
5948 else
5949   cat >conftest.$ac_ext <<_ACEOF
5950 /* confdefs.h.  */
5951 _ACEOF
5952 cat confdefs.h >>conftest.$ac_ext
5953 cat >>conftest.$ac_ext <<_ACEOF
5954 /* end confdefs.h.  */
5955 #include <ctype.h>
5956 #include <stdlib.h>
5957 #if ((' ' & 0x0FF) == 0x020)
5958 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5959 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5960 #else
5961 # define ISLOWER(c) \
5962                    (('a' <= (c) && (c) <= 'i') \
5963                      || ('j' <= (c) && (c) <= 'r') \
5964                      || ('s' <= (c) && (c) <= 'z'))
5965 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5966 #endif
5967
5968 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5969 int
5970 main ()
5971 {
5972   int i;
5973   for (i = 0; i < 256; i++)
5974     if (XOR (islower (i), ISLOWER (i))
5975         || toupper (i) != TOUPPER (i))
5976       return 2;
5977   return 0;
5978 }
5979 _ACEOF
5980 rm -f conftest$ac_exeext
5981 if { (ac_try="$ac_link"
5982 case "(($ac_try" in
5983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5984   *) ac_try_echo=$ac_try;;
5985 esac
5986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5987   (eval "$ac_link") 2>&5
5988   ac_status=$?
5989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5991   { (case "(($ac_try" in
5992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5993   *) ac_try_echo=$ac_try;;
5994 esac
5995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5996   (eval "$ac_try") 2>&5
5997   ac_status=$?
5998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999   (exit $ac_status); }; }; then
6000   :
6001 else
6002   echo "$as_me: program exited with status $ac_status" >&5
6003 echo "$as_me: failed program was:" >&5
6004 sed 's/^/| /' conftest.$ac_ext >&5
6005
6006 ( exit $ac_status )
6007 ac_cv_header_stdc=no
6008 fi
6009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6010 fi
6011
6012
6013 fi
6014 fi
6015 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6016 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6017 if test $ac_cv_header_stdc = yes; then
6018
6019 cat >>confdefs.h <<\_ACEOF
6020 #define STDC_HEADERS 1
6021 _ACEOF
6022
6023 fi
6024
6025 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6036                   inttypes.h stdint.h unistd.h
6037 do
6038 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6039 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6042   echo $ECHO_N "(cached) $ECHO_C" >&6
6043 else
6044   cat >conftest.$ac_ext <<_ACEOF
6045 /* confdefs.h.  */
6046 _ACEOF
6047 cat confdefs.h >>conftest.$ac_ext
6048 cat >>conftest.$ac_ext <<_ACEOF
6049 /* end confdefs.h.  */
6050 $ac_includes_default
6051
6052 #include <$ac_header>
6053 _ACEOF
6054 rm -f conftest.$ac_objext
6055 if { (ac_try="$ac_compile"
6056 case "(($ac_try" in
6057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058   *) ac_try_echo=$ac_try;;
6059 esac
6060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061   (eval "$ac_compile") 2>conftest.er1
6062   ac_status=$?
6063   grep -v '^ *+' conftest.er1 >conftest.err
6064   rm -f conftest.er1
6065   cat conftest.err >&5
6066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067   (exit $ac_status); } &&
6068          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6069   { (case "(($ac_try" in
6070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6071   *) ac_try_echo=$ac_try;;
6072 esac
6073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6074   (eval "$ac_try") 2>&5
6075   ac_status=$?
6076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077   (exit $ac_status); }; } &&
6078          { ac_try='test -s conftest.$ac_objext'
6079   { (case "(($ac_try" in
6080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6081   *) ac_try_echo=$ac_try;;
6082 esac
6083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6084   (eval "$ac_try") 2>&5
6085   ac_status=$?
6086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087   (exit $ac_status); }; }; then
6088   eval "$as_ac_Header=yes"
6089 else
6090   echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.$ac_ext >&5
6092
6093         eval "$as_ac_Header=no"
6094 fi
6095
6096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6097 fi
6098 ac_res=`eval echo '${'$as_ac_Header'}'`
6099                { echo "$as_me:$LINENO: result: $ac_res" >&5
6100 echo "${ECHO_T}$ac_res" >&6; }
6101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6102   cat >>confdefs.h <<_ACEOF
6103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6104 _ACEOF
6105
6106 fi
6107
6108 done
6109
6110
6111
6112 for ac_header in dlfcn.h
6113 do
6114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6116   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6119   echo $ECHO_N "(cached) $ECHO_C" >&6
6120 fi
6121 ac_res=`eval echo '${'$as_ac_Header'}'`
6122                { echo "$as_me:$LINENO: result: $ac_res" >&5
6123 echo "${ECHO_T}$ac_res" >&6; }
6124 else
6125   # Is the header compilable?
6126 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6127 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6128 cat >conftest.$ac_ext <<_ACEOF
6129 /* confdefs.h.  */
6130 _ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h.  */
6134 $ac_includes_default
6135 #include <$ac_header>
6136 _ACEOF
6137 rm -f conftest.$ac_objext
6138 if { (ac_try="$ac_compile"
6139 case "(($ac_try" in
6140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6141   *) ac_try_echo=$ac_try;;
6142 esac
6143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6144   (eval "$ac_compile") 2>conftest.er1
6145   ac_status=$?
6146   grep -v '^ *+' conftest.er1 >conftest.err
6147   rm -f conftest.er1
6148   cat conftest.err >&5
6149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150   (exit $ac_status); } &&
6151          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6152   { (case "(($ac_try" in
6153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6154   *) ac_try_echo=$ac_try;;
6155 esac
6156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6157   (eval "$ac_try") 2>&5
6158   ac_status=$?
6159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160   (exit $ac_status); }; } &&
6161          { ac_try='test -s conftest.$ac_objext'
6162   { (case "(($ac_try" in
6163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6164   *) ac_try_echo=$ac_try;;
6165 esac
6166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6167   (eval "$ac_try") 2>&5
6168   ac_status=$?
6169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170   (exit $ac_status); }; }; then
6171   ac_header_compiler=yes
6172 else
6173   echo "$as_me: failed program was:" >&5
6174 sed 's/^/| /' conftest.$ac_ext >&5
6175
6176         ac_header_compiler=no
6177 fi
6178
6179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6180 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6181 echo "${ECHO_T}$ac_header_compiler" >&6; }
6182
6183 # Is the header present?
6184 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6185 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6186 cat >conftest.$ac_ext <<_ACEOF
6187 /* confdefs.h.  */
6188 _ACEOF
6189 cat confdefs.h >>conftest.$ac_ext
6190 cat >>conftest.$ac_ext <<_ACEOF
6191 /* end confdefs.h.  */
6192 #include <$ac_header>
6193 _ACEOF
6194 if { (ac_try="$ac_cpp conftest.$ac_ext"
6195 case "(($ac_try" in
6196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197   *) ac_try_echo=$ac_try;;
6198 esac
6199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6200   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6201   ac_status=$?
6202   grep -v '^ *+' conftest.er1 >conftest.err
6203   rm -f conftest.er1
6204   cat conftest.err >&5
6205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206   (exit $ac_status); } >/dev/null; then
6207   if test -s conftest.err; then
6208     ac_cpp_err=$ac_c_preproc_warn_flag
6209     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6210   else
6211     ac_cpp_err=
6212   fi
6213 else
6214   ac_cpp_err=yes
6215 fi
6216 if test -z "$ac_cpp_err"; then
6217   ac_header_preproc=yes
6218 else
6219   echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.$ac_ext >&5
6221
6222   ac_header_preproc=no
6223 fi
6224
6225 rm -f conftest.err conftest.$ac_ext
6226 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6227 echo "${ECHO_T}$ac_header_preproc" >&6; }
6228
6229 # So?  What about this header?
6230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6231   yes:no: )
6232     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6233 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6234     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6235 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6236     ac_header_preproc=yes
6237     ;;
6238   no:yes:* )
6239     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6240 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6241     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6242 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6243     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6244 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6245     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6246 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6247     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6248 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6249     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6250 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6251     ( cat <<\_ASBOX
6252 ## -------------------------------------------------------- ##
6253 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
6254 ## -------------------------------------------------------- ##
6255 _ASBOX
6256      ) | sed "s/^/$as_me: WARNING:     /" >&2
6257     ;;
6258 esac
6259 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6262   echo $ECHO_N "(cached) $ECHO_C" >&6
6263 else
6264   eval "$as_ac_Header=\$ac_header_preproc"
6265 fi
6266 ac_res=`eval echo '${'$as_ac_Header'}'`
6267                { echo "$as_me:$LINENO: result: $ac_res" >&5
6268 echo "${ECHO_T}$ac_res" >&6; }
6269
6270 fi
6271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6272   cat >>confdefs.h <<_ACEOF
6273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6274 _ACEOF
6275
6276 fi
6277
6278 done
6279
6280
6281
6282 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6283     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6284     (test "X$CXX" != "Xg++"))) ; then
6285   ac_ext=cpp
6286 ac_cpp='$CXXCPP $CPPFLAGS'
6287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6290 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6291 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6292 if test -z "$CXXCPP"; then
6293   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6294   echo $ECHO_N "(cached) $ECHO_C" >&6
6295 else
6296       # Double quotes because CXXCPP needs to be expanded
6297     for CXXCPP in "$CXX -E" "/lib/cpp"
6298     do
6299       ac_preproc_ok=false
6300 for ac_cxx_preproc_warn_flag in '' yes
6301 do
6302   # Use a header file that comes with gcc, so configuring glibc
6303   # with a fresh cross-compiler works.
6304   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6305   # <limits.h> exists even on freestanding compilers.
6306   # On the NeXT, cc -E runs the code through the compiler's parser,
6307   # not just through cpp. "Syntax error" is here to catch this case.
6308   cat >conftest.$ac_ext <<_ACEOF
6309 /* confdefs.h.  */
6310 _ACEOF
6311 cat confdefs.h >>conftest.$ac_ext
6312 cat >>conftest.$ac_ext <<_ACEOF
6313 /* end confdefs.h.  */
6314 #ifdef __STDC__
6315 # include <limits.h>
6316 #else
6317 # include <assert.h>
6318 #endif
6319                      Syntax error
6320 _ACEOF
6321 if { (ac_try="$ac_cpp conftest.$ac_ext"
6322 case "(($ac_try" in
6323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6324   *) ac_try_echo=$ac_try;;
6325 esac
6326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6327   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6328   ac_status=$?
6329   grep -v '^ *+' conftest.er1 >conftest.err
6330   rm -f conftest.er1
6331   cat conftest.err >&5
6332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333   (exit $ac_status); } >/dev/null; then
6334   if test -s conftest.err; then
6335     ac_cpp_err=$ac_cxx_preproc_warn_flag
6336     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6337   else
6338     ac_cpp_err=
6339   fi
6340 else
6341   ac_cpp_err=yes
6342 fi
6343 if test -z "$ac_cpp_err"; then
6344   :
6345 else
6346   echo "$as_me: failed program was:" >&5
6347 sed 's/^/| /' conftest.$ac_ext >&5
6348
6349   # Broken: fails on valid input.
6350 continue
6351 fi
6352
6353 rm -f conftest.err conftest.$ac_ext
6354
6355   # OK, works on sane cases.  Now check whether nonexistent headers
6356   # can be detected and how.
6357   cat >conftest.$ac_ext <<_ACEOF
6358 /* confdefs.h.  */
6359 _ACEOF
6360 cat confdefs.h >>conftest.$ac_ext
6361 cat >>conftest.$ac_ext <<_ACEOF
6362 /* end confdefs.h.  */
6363 #include <ac_nonexistent.h>
6364 _ACEOF
6365 if { (ac_try="$ac_cpp conftest.$ac_ext"
6366 case "(($ac_try" in
6367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6368   *) ac_try_echo=$ac_try;;
6369 esac
6370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6371   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6372   ac_status=$?
6373   grep -v '^ *+' conftest.er1 >conftest.err
6374   rm -f conftest.er1
6375   cat conftest.err >&5
6376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377   (exit $ac_status); } >/dev/null; then
6378   if test -s conftest.err; then
6379     ac_cpp_err=$ac_cxx_preproc_warn_flag
6380     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6381   else
6382     ac_cpp_err=
6383   fi
6384 else
6385   ac_cpp_err=yes
6386 fi
6387 if test -z "$ac_cpp_err"; then
6388   # Broken: success on invalid input.
6389 continue
6390 else
6391   echo "$as_me: failed program was:" >&5
6392 sed 's/^/| /' conftest.$ac_ext >&5
6393
6394   # Passes both tests.
6395 ac_preproc_ok=:
6396 break
6397 fi
6398
6399 rm -f conftest.err conftest.$ac_ext
6400
6401 done
6402 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6403 rm -f conftest.err conftest.$ac_ext
6404 if $ac_preproc_ok; then
6405   break
6406 fi
6407
6408     done
6409     ac_cv_prog_CXXCPP=$CXXCPP
6410
6411 fi
6412   CXXCPP=$ac_cv_prog_CXXCPP
6413 else
6414   ac_cv_prog_CXXCPP=$CXXCPP
6415 fi
6416 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6417 echo "${ECHO_T}$CXXCPP" >&6; }
6418 ac_preproc_ok=false
6419 for ac_cxx_preproc_warn_flag in '' yes
6420 do
6421   # Use a header file that comes with gcc, so configuring glibc
6422   # with a fresh cross-compiler works.
6423   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6424   # <limits.h> exists even on freestanding compilers.
6425   # On the NeXT, cc -E runs the code through the compiler's parser,
6426   # not just through cpp. "Syntax error" is here to catch this case.
6427   cat >conftest.$ac_ext <<_ACEOF
6428 /* confdefs.h.  */
6429 _ACEOF
6430 cat confdefs.h >>conftest.$ac_ext
6431 cat >>conftest.$ac_ext <<_ACEOF
6432 /* end confdefs.h.  */
6433 #ifdef __STDC__
6434 # include <limits.h>
6435 #else
6436 # include <assert.h>
6437 #endif
6438                      Syntax error
6439 _ACEOF
6440 if { (ac_try="$ac_cpp conftest.$ac_ext"
6441 case "(($ac_try" in
6442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6443   *) ac_try_echo=$ac_try;;
6444 esac
6445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6446   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6447   ac_status=$?
6448   grep -v '^ *+' conftest.er1 >conftest.err
6449   rm -f conftest.er1
6450   cat conftest.err >&5
6451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452   (exit $ac_status); } >/dev/null; then
6453   if test -s conftest.err; then
6454     ac_cpp_err=$ac_cxx_preproc_warn_flag
6455     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6456   else
6457     ac_cpp_err=
6458   fi
6459 else
6460   ac_cpp_err=yes
6461 fi
6462 if test -z "$ac_cpp_err"; then
6463   :
6464 else
6465   echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.$ac_ext >&5
6467
6468   # Broken: fails on valid input.
6469 continue
6470 fi
6471
6472 rm -f conftest.err conftest.$ac_ext
6473
6474   # OK, works on sane cases.  Now check whether nonexistent headers
6475   # can be detected and how.
6476   cat >conftest.$ac_ext <<_ACEOF
6477 /* confdefs.h.  */
6478 _ACEOF
6479 cat confdefs.h >>conftest.$ac_ext
6480 cat >>conftest.$ac_ext <<_ACEOF
6481 /* end confdefs.h.  */
6482 #include <ac_nonexistent.h>
6483 _ACEOF
6484 if { (ac_try="$ac_cpp conftest.$ac_ext"
6485 case "(($ac_try" in
6486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6487   *) ac_try_echo=$ac_try;;
6488 esac
6489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6490   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6491   ac_status=$?
6492   grep -v '^ *+' conftest.er1 >conftest.err
6493   rm -f conftest.er1
6494   cat conftest.err >&5
6495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496   (exit $ac_status); } >/dev/null; then
6497   if test -s conftest.err; then
6498     ac_cpp_err=$ac_cxx_preproc_warn_flag
6499     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6500   else
6501     ac_cpp_err=
6502   fi
6503 else
6504   ac_cpp_err=yes
6505 fi
6506 if test -z "$ac_cpp_err"; then
6507   # Broken: success on invalid input.
6508 continue
6509 else
6510   echo "$as_me: failed program was:" >&5
6511 sed 's/^/| /' conftest.$ac_ext >&5
6512
6513   # Passes both tests.
6514 ac_preproc_ok=:
6515 break
6516 fi
6517
6518 rm -f conftest.err conftest.$ac_ext
6519
6520 done
6521 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6522 rm -f conftest.err conftest.$ac_ext
6523 if $ac_preproc_ok; then
6524   :
6525 else
6526   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6527 See \`config.log' for more details." >&5
6528 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6529 See \`config.log' for more details." >&2;}
6530    { (exit 1); exit 1; }; }
6531 fi
6532
6533 ac_ext=cpp
6534 ac_cpp='$CXXCPP $CPPFLAGS'
6535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6538
6539 fi
6540
6541
6542 ac_ext=f
6543 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6544 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6545 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6546 if test -n "$ac_tool_prefix"; then
6547   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6548   do
6549     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6550 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6553 if test "${ac_cv_prog_F77+set}" = set; then
6554   echo $ECHO_N "(cached) $ECHO_C" >&6
6555 else
6556   if test -n "$F77"; then
6557   ac_cv_prog_F77="$F77" # Let the user override the test.
6558 else
6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560 for as_dir in $PATH
6561 do
6562   IFS=$as_save_IFS
6563   test -z "$as_dir" && as_dir=.
6564   for ac_exec_ext in '' $ac_executable_extensions; do
6565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6566     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6568     break 2
6569   fi
6570 done
6571 done
6572 IFS=$as_save_IFS
6573
6574 fi
6575 fi
6576 F77=$ac_cv_prog_F77
6577 if test -n "$F77"; then
6578   { echo "$as_me:$LINENO: result: $F77" >&5
6579 echo "${ECHO_T}$F77" >&6; }
6580 else
6581   { echo "$as_me:$LINENO: result: no" >&5
6582 echo "${ECHO_T}no" >&6; }
6583 fi
6584
6585
6586     test -n "$F77" && break
6587   done
6588 fi
6589 if test -z "$F77"; then
6590   ac_ct_F77=$F77
6591   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6592 do
6593   # Extract the first word of "$ac_prog", so it can be a program name with args.
6594 set dummy $ac_prog; ac_word=$2
6595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6597 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6598   echo $ECHO_N "(cached) $ECHO_C" >&6
6599 else
6600   if test -n "$ac_ct_F77"; then
6601   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6602 else
6603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604 for as_dir in $PATH
6605 do
6606   IFS=$as_save_IFS
6607   test -z "$as_dir" && as_dir=.
6608   for ac_exec_ext in '' $ac_executable_extensions; do
6609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6610     ac_cv_prog_ac_ct_F77="$ac_prog"
6611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6612     break 2
6613   fi
6614 done
6615 done
6616 IFS=$as_save_IFS
6617
6618 fi
6619 fi
6620 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6621 if test -n "$ac_ct_F77"; then
6622   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6623 echo "${ECHO_T}$ac_ct_F77" >&6; }
6624 else
6625   { echo "$as_me:$LINENO: result: no" >&5
6626 echo "${ECHO_T}no" >&6; }
6627 fi
6628
6629
6630   test -n "$ac_ct_F77" && break
6631 done
6632
6633   if test "x$ac_ct_F77" = x; then
6634     F77=""
6635   else
6636     case $cross_compiling:$ac_tool_warned in
6637 yes:)
6638 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6639 whose name does not start with the host triplet.  If you think this
6640 configuration is useful to you, please write to autoconf@gnu.org." >&5
6641 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6642 whose name does not start with the host triplet.  If you think this
6643 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6644 ac_tool_warned=yes ;;
6645 esac
6646     F77=$ac_ct_F77
6647   fi
6648 fi
6649
6650
6651 # Provide some information about the compiler.
6652 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6653 ac_compiler=`set X $ac_compile; echo $2`
6654 { (ac_try="$ac_compiler --version >&5"
6655 case "(($ac_try" in
6656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6657   *) ac_try_echo=$ac_try;;
6658 esac
6659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6660   (eval "$ac_compiler --version >&5") 2>&5
6661   ac_status=$?
6662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663   (exit $ac_status); }
6664 { (ac_try="$ac_compiler -v >&5"
6665 case "(($ac_try" in
6666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6667   *) ac_try_echo=$ac_try;;
6668 esac
6669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6670   (eval "$ac_compiler -v >&5") 2>&5
6671   ac_status=$?
6672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673   (exit $ac_status); }
6674 { (ac_try="$ac_compiler -V >&5"
6675 case "(($ac_try" in
6676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6677   *) ac_try_echo=$ac_try;;
6678 esac
6679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6680   (eval "$ac_compiler -V >&5") 2>&5
6681   ac_status=$?
6682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683   (exit $ac_status); }
6684 rm -f a.out
6685
6686 # If we don't use `.F' as extension, the preprocessor is not run on the
6687 # input file.  (Note that this only needs to work for GNU compilers.)
6688 ac_save_ext=$ac_ext
6689 ac_ext=F
6690 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6691 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6692 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6693   echo $ECHO_N "(cached) $ECHO_C" >&6
6694 else
6695   cat >conftest.$ac_ext <<_ACEOF
6696       program main
6697 #ifndef __GNUC__
6698        choke me
6699 #endif
6700
6701       end
6702 _ACEOF
6703 rm -f conftest.$ac_objext
6704 if { (ac_try="$ac_compile"
6705 case "(($ac_try" in
6706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6707   *) ac_try_echo=$ac_try;;
6708 esac
6709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6710   (eval "$ac_compile") 2>conftest.er1
6711   ac_status=$?
6712   grep -v '^ *+' conftest.er1 >conftest.err
6713   rm -f conftest.er1
6714   cat conftest.err >&5
6715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716   (exit $ac_status); } &&
6717          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6718   { (case "(($ac_try" in
6719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6720   *) ac_try_echo=$ac_try;;
6721 esac
6722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6723   (eval "$ac_try") 2>&5
6724   ac_status=$?
6725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726   (exit $ac_status); }; } &&
6727          { ac_try='test -s conftest.$ac_objext'
6728   { (case "(($ac_try" in
6729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6730   *) ac_try_echo=$ac_try;;
6731 esac
6732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6733   (eval "$ac_try") 2>&5
6734   ac_status=$?
6735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736   (exit $ac_status); }; }; then
6737   ac_compiler_gnu=yes
6738 else
6739   echo "$as_me: failed program was:" >&5
6740 sed 's/^/| /' conftest.$ac_ext >&5
6741
6742         ac_compiler_gnu=no
6743 fi
6744
6745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6746 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6747
6748 fi
6749 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6750 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6751 ac_ext=$ac_save_ext
6752 ac_test_FFLAGS=${FFLAGS+set}
6753 ac_save_FFLAGS=$FFLAGS
6754 FFLAGS=
6755 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6756 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6757 if test "${ac_cv_prog_f77_g+set}" = set; then
6758   echo $ECHO_N "(cached) $ECHO_C" >&6
6759 else
6760   FFLAGS=-g
6761 cat >conftest.$ac_ext <<_ACEOF
6762       program main
6763
6764       end
6765 _ACEOF
6766 rm -f conftest.$ac_objext
6767 if { (ac_try="$ac_compile"
6768 case "(($ac_try" in
6769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6770   *) ac_try_echo=$ac_try;;
6771 esac
6772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6773   (eval "$ac_compile") 2>conftest.er1
6774   ac_status=$?
6775   grep -v '^ *+' conftest.er1 >conftest.err
6776   rm -f conftest.er1
6777   cat conftest.err >&5
6778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779   (exit $ac_status); } &&
6780          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6781   { (case "(($ac_try" in
6782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6783   *) ac_try_echo=$ac_try;;
6784 esac
6785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6786   (eval "$ac_try") 2>&5
6787   ac_status=$?
6788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789   (exit $ac_status); }; } &&
6790          { ac_try='test -s conftest.$ac_objext'
6791   { (case "(($ac_try" in
6792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6793   *) ac_try_echo=$ac_try;;
6794 esac
6795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6796   (eval "$ac_try") 2>&5
6797   ac_status=$?
6798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799   (exit $ac_status); }; }; then
6800   ac_cv_prog_f77_g=yes
6801 else
6802   echo "$as_me: failed program was:" >&5
6803 sed 's/^/| /' conftest.$ac_ext >&5
6804
6805         ac_cv_prog_f77_g=no
6806 fi
6807
6808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6809
6810 fi
6811 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6812 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6813 if test "$ac_test_FFLAGS" = set; then
6814   FFLAGS=$ac_save_FFLAGS
6815 elif test $ac_cv_prog_f77_g = yes; then
6816   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6817     FFLAGS="-g -O2"
6818   else
6819     FFLAGS="-g"
6820   fi
6821 else
6822   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6823     FFLAGS="-O2"
6824   else
6825     FFLAGS=
6826   fi
6827 fi
6828
6829 G77=`test $ac_compiler_gnu = yes && echo yes`
6830 ac_ext=c
6831 ac_cpp='$CPP $CPPFLAGS'
6832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6835
6836
6837
6838 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6839
6840 # find the maximum length of command line arguments
6841 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6842 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6843 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6844   echo $ECHO_N "(cached) $ECHO_C" >&6
6845 else
6846     i=0
6847   teststring="ABCD"
6848
6849   case $build_os in
6850   msdosdjgpp*)
6851     # On DJGPP, this test can blow up pretty badly due to problems in libc
6852     # (any single argument exceeding 2000 bytes causes a buffer overrun
6853     # during glob expansion).  Even if it were fixed, the result of this
6854     # check would be larger than it should be.
6855     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6856     ;;
6857
6858   gnu*)
6859     # Under GNU Hurd, this test is not required because there is
6860     # no limit to the length of command line arguments.
6861     # Libtool will interpret -1 as no limit whatsoever
6862     lt_cv_sys_max_cmd_len=-1;
6863     ;;
6864
6865   cygwin* | mingw*)
6866     # On Win9x/ME, this test blows up -- it succeeds, but takes
6867     # about 5 minutes as the teststring grows exponentially.
6868     # Worse, since 9x/ME are not pre-emptively multitasking,
6869     # you end up with a "frozen" computer, even though with patience
6870     # the test eventually succeeds (with a max line length of 256k).
6871     # Instead, let's just punt: use the minimum linelength reported by
6872     # all of the supported platforms: 8192 (on NT/2K/XP).
6873     lt_cv_sys_max_cmd_len=8192;
6874     ;;
6875
6876   amigaos*)
6877     # On AmigaOS with pdksh, this test takes hours, literally.
6878     # So we just punt and use a minimum line length of 8192.
6879     lt_cv_sys_max_cmd_len=8192;
6880     ;;
6881
6882   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6883     # This has been around since 386BSD, at least.  Likely further.
6884     if test -x /sbin/sysctl; then
6885       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6886     elif test -x /usr/sbin/sysctl; then
6887       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6888     else
6889       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6890     fi
6891     # And add a safety zone
6892     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6893     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6894     ;;
6895
6896   interix*)
6897     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6898     lt_cv_sys_max_cmd_len=196608
6899     ;;
6900
6901   osf*)
6902     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6903     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6904     # nice to cause kernel panics so lets avoid the loop below.
6905     # First set a reasonable default.
6906     lt_cv_sys_max_cmd_len=16384
6907     #
6908     if test -x /sbin/sysconfig; then
6909       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6910         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6911       esac
6912     fi
6913     ;;
6914   sco3.2v5*)
6915     lt_cv_sys_max_cmd_len=102400
6916     ;;
6917   sysv5* | sco5v6* | sysv4.2uw2*)
6918     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6919     if test -n "$kargmax"; then
6920       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6921     else
6922       lt_cv_sys_max_cmd_len=32768
6923     fi
6924     ;;
6925   *)
6926     # If test is not a shell built-in, we'll probably end up computing a
6927     # maximum length that is only half of the actual maximum length, but
6928     # we can't tell.
6929     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6930     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6931                = "XX$teststring") >/dev/null 2>&1 &&
6932             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6933             lt_cv_sys_max_cmd_len=$new_result &&
6934             test $i != 17 # 1/2 MB should be enough
6935     do
6936       i=`expr $i + 1`
6937       teststring=$teststring$teststring
6938     done
6939     teststring=
6940     # Add a significant safety factor because C++ compilers can tack on massive
6941     # amounts of additional arguments before passing them to the linker.
6942     # It appears as though 1/2 is a usable value.
6943     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6944     ;;
6945   esac
6946
6947 fi
6948
6949 if test -n $lt_cv_sys_max_cmd_len ; then
6950   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6951 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6952 else
6953   { echo "$as_me:$LINENO: result: none" >&5
6954 echo "${ECHO_T}none" >&6; }
6955 fi
6956
6957
6958
6959
6960 # Check for command to grab the raw symbol name followed by C symbol from nm.
6961 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6962 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6963 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6964   echo $ECHO_N "(cached) $ECHO_C" >&6
6965 else
6966
6967 # These are sane defaults that work on at least a few old systems.
6968 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6969
6970 # Character class describing NM global symbol codes.
6971 symcode='[BCDEGRST]'
6972
6973 # Regexp to match symbols that can be accessed directly from C.
6974 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6975
6976 # Transform an extracted symbol line into a proper C declaration
6977 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6978
6979 # Transform an extracted symbol line into symbol name and symbol address
6980 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'"
6981
6982 # Define system-specific variables.
6983 case $host_os in
6984 aix*)
6985   symcode='[BCDT]'
6986   ;;
6987 cygwin* | mingw* | pw32*)
6988   symcode='[ABCDGISTW]'
6989   ;;
6990 hpux*) # Its linker distinguishes data from code symbols
6991   if test "$host_cpu" = ia64; then
6992     symcode='[ABCDEGRST]'
6993   fi
6994   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6995   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'"
6996   ;;
6997 linux* | k*bsd*-gnu)
6998   if test "$host_cpu" = ia64; then
6999     symcode='[ABCDGIRSTW]'
7000     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7001     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'"
7002   fi
7003   ;;
7004 irix* | nonstopux*)
7005   symcode='[BCDEGRST]'
7006   ;;
7007 osf*)
7008   symcode='[BCDEGQRST]'
7009   ;;
7010 solaris*)
7011   symcode='[BDRT]'
7012   ;;
7013 sco3.2v5*)
7014   symcode='[DT]'
7015   ;;
7016 sysv4.2uw2*)
7017   symcode='[DT]'
7018   ;;
7019 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7020   symcode='[ABDT]'
7021   ;;
7022 sysv4)
7023   symcode='[DFNSTU]'
7024   ;;
7025 esac
7026
7027 # Handle CRLF in mingw tool chain
7028 opt_cr=
7029 case $build_os in
7030 mingw*)
7031   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7032   ;;
7033 esac
7034
7035 # If we're using GNU nm, then use its standard symbol codes.
7036 case `$NM -V 2>&1` in
7037 *GNU* | *'with BFD'*)
7038   symcode='[ABCDGIRSTW]' ;;
7039 esac
7040
7041 # Try without a prefix undercore, then with it.
7042 for ac_symprfx in "" "_"; do
7043
7044   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7045   symxfrm="\\1 $ac_symprfx\\2 \\2"
7046
7047   # Write the raw and C identifiers.
7048   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7049
7050   # Check to see that the pipe works correctly.
7051   pipe_works=no
7052
7053   rm -f conftest*
7054   cat > conftest.$ac_ext <<EOF
7055 #ifdef __cplusplus
7056 extern "C" {
7057 #endif
7058 char nm_test_var;
7059 void nm_test_func(){}
7060 #ifdef __cplusplus
7061 }
7062 #endif
7063 int main(){nm_test_var='a';nm_test_func();return(0);}
7064 EOF
7065
7066   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7067   (eval $ac_compile) 2>&5
7068   ac_status=$?
7069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070   (exit $ac_status); }; then
7071     # Now try to grab the symbols.
7072     nlist=conftest.nm
7073     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7074   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7075   ac_status=$?
7076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077   (exit $ac_status); } && test -s "$nlist"; then
7078       # Try sorting and uniquifying the output.
7079       if sort "$nlist" | uniq > "$nlist"T; then
7080         mv -f "$nlist"T "$nlist"
7081       else
7082         rm -f "$nlist"T
7083       fi
7084
7085       # Make sure that we snagged all the symbols we need.
7086       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7087         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7088           cat <<EOF > conftest.$ac_ext
7089 #ifdef __cplusplus
7090 extern "C" {
7091 #endif
7092
7093 EOF
7094           # Now generate the symbol file.
7095           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7096
7097           cat <<EOF >> conftest.$ac_ext
7098 #if defined (__STDC__) && __STDC__
7099 # define lt_ptr_t void *
7100 #else
7101 # define lt_ptr_t char *
7102 # define const
7103 #endif
7104
7105 /* The mapping between symbol names and symbols. */
7106 const struct {
7107   const char *name;
7108   lt_ptr_t address;
7109 }
7110 lt_preloaded_symbols[] =
7111 {
7112 EOF
7113           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7114           cat <<\EOF >> conftest.$ac_ext
7115   {0, (lt_ptr_t) 0}
7116 };
7117
7118 #ifdef __cplusplus
7119 }
7120 #endif
7121 EOF
7122           # Now try linking the two files.
7123           mv conftest.$ac_objext conftstm.$ac_objext
7124           lt_save_LIBS="$LIBS"
7125           lt_save_CFLAGS="$CFLAGS"
7126           LIBS="conftstm.$ac_objext"
7127           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7128           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7129   (eval $ac_link) 2>&5
7130   ac_status=$?
7131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7133             pipe_works=yes
7134           fi
7135           LIBS="$lt_save_LIBS"
7136           CFLAGS="$lt_save_CFLAGS"
7137         else
7138           echo "cannot find nm_test_func in $nlist" >&5
7139         fi
7140       else
7141         echo "cannot find nm_test_var in $nlist" >&5
7142       fi
7143     else
7144       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7145     fi
7146   else
7147     echo "$progname: failed program was:" >&5
7148     cat conftest.$ac_ext >&5
7149   fi
7150   rm -f conftest* conftst*
7151
7152   # Do not use the global_symbol_pipe unless it works.
7153   if test "$pipe_works" = yes; then
7154     break
7155   else
7156     lt_cv_sys_global_symbol_pipe=
7157   fi
7158 done
7159
7160 fi
7161
7162 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7163   lt_cv_sys_global_symbol_to_cdecl=
7164 fi
7165 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7166   { echo "$as_me:$LINENO: result: failed" >&5
7167 echo "${ECHO_T}failed" >&6; }
7168 else
7169   { echo "$as_me:$LINENO: result: ok" >&5
7170 echo "${ECHO_T}ok" >&6; }
7171 fi
7172
7173 { echo "$as_me:$LINENO: checking for objdir" >&5
7174 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7175 if test "${lt_cv_objdir+set}" = set; then
7176   echo $ECHO_N "(cached) $ECHO_C" >&6
7177 else
7178   rm -f .libs 2>/dev/null
7179 mkdir .libs 2>/dev/null
7180 if test -d .libs; then
7181   lt_cv_objdir=.libs
7182 else
7183   # MS-DOS does not allow filenames that begin with a dot.
7184   lt_cv_objdir=_libs
7185 fi
7186 rmdir .libs 2>/dev/null
7187 fi
7188 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7189 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7190 objdir=$lt_cv_objdir
7191
7192
7193
7194
7195
7196 case $host_os in
7197 aix3*)
7198   # AIX sometimes has problems with the GCC collect2 program.  For some
7199   # reason, if we set the COLLECT_NAMES environment variable, the problems
7200   # vanish in a puff of smoke.
7201   if test "X${COLLECT_NAMES+set}" != Xset; then
7202     COLLECT_NAMES=
7203     export COLLECT_NAMES
7204   fi
7205   ;;
7206 esac
7207
7208 # Sed substitution that helps us do robust quoting.  It backslashifies
7209 # metacharacters that are still active within double-quoted strings.
7210 Xsed='sed -e 1s/^X//'
7211 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7212
7213 # Same as above, but do not quote variable references.
7214 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7215
7216 # Sed substitution to delay expansion of an escaped shell variable in a
7217 # double_quote_subst'ed string.
7218 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7219
7220 # Sed substitution to avoid accidental globbing in evaled expressions
7221 no_glob_subst='s/\*/\\\*/g'
7222
7223 # Constants:
7224 rm="rm -f"
7225
7226 # Global variables:
7227 default_ofile=libtool
7228 can_build_shared=yes
7229
7230 # All known linkers require a `.a' archive for static linking (except MSVC,
7231 # which needs '.lib').
7232 libext=a
7233 ltmain="$ac_aux_dir/ltmain.sh"
7234 ofile="$default_ofile"
7235 with_gnu_ld="$lt_cv_prog_gnu_ld"
7236
7237 if test -n "$ac_tool_prefix"; then
7238   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7239 set dummy ${ac_tool_prefix}ar; ac_word=$2
7240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7242 if test "${ac_cv_prog_AR+set}" = set; then
7243   echo $ECHO_N "(cached) $ECHO_C" >&6
7244 else
7245   if test -n "$AR"; then
7246   ac_cv_prog_AR="$AR" # Let the user override the test.
7247 else
7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249 for as_dir in $PATH
7250 do
7251   IFS=$as_save_IFS
7252   test -z "$as_dir" && as_dir=.
7253   for ac_exec_ext in '' $ac_executable_extensions; do
7254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7255     ac_cv_prog_AR="${ac_tool_prefix}ar"
7256     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7257     break 2
7258   fi
7259 done
7260 done
7261 IFS=$as_save_IFS
7262
7263 fi
7264 fi
7265 AR=$ac_cv_prog_AR
7266 if test -n "$AR"; then
7267   { echo "$as_me:$LINENO: result: $AR" >&5
7268 echo "${ECHO_T}$AR" >&6; }
7269 else
7270   { echo "$as_me:$LINENO: result: no" >&5
7271 echo "${ECHO_T}no" >&6; }
7272 fi
7273
7274
7275 fi
7276 if test -z "$ac_cv_prog_AR"; then
7277   ac_ct_AR=$AR
7278   # Extract the first word of "ar", so it can be a program name with args.
7279 set dummy ar; ac_word=$2
7280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7282 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7283   echo $ECHO_N "(cached) $ECHO_C" >&6
7284 else
7285   if test -n "$ac_ct_AR"; then
7286   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7287 else
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289 for as_dir in $PATH
7290 do
7291   IFS=$as_save_IFS
7292   test -z "$as_dir" && as_dir=.
7293   for ac_exec_ext in '' $ac_executable_extensions; do
7294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7295     ac_cv_prog_ac_ct_AR="ar"
7296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7297     break 2
7298   fi
7299 done
7300 done
7301 IFS=$as_save_IFS
7302
7303 fi
7304 fi
7305 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7306 if test -n "$ac_ct_AR"; then
7307   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7308 echo "${ECHO_T}$ac_ct_AR" >&6; }
7309 else
7310   { echo "$as_me:$LINENO: result: no" >&5
7311 echo "${ECHO_T}no" >&6; }
7312 fi
7313
7314   if test "x$ac_ct_AR" = x; then
7315     AR="false"
7316   else
7317     case $cross_compiling:$ac_tool_warned in
7318 yes:)
7319 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7320 whose name does not start with the host triplet.  If you think this
7321 configuration is useful to you, please write to autoconf@gnu.org." >&5
7322 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7323 whose name does not start with the host triplet.  If you think this
7324 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7325 ac_tool_warned=yes ;;
7326 esac
7327     AR=$ac_ct_AR
7328   fi
7329 else
7330   AR="$ac_cv_prog_AR"
7331 fi
7332
7333 if test -n "$ac_tool_prefix"; then
7334   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7335 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7338 if test "${ac_cv_prog_RANLIB+set}" = set; then
7339   echo $ECHO_N "(cached) $ECHO_C" >&6
7340 else
7341   if test -n "$RANLIB"; then
7342   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7343 else
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7346 do
7347   IFS=$as_save_IFS
7348   test -z "$as_dir" && as_dir=.
7349   for ac_exec_ext in '' $ac_executable_extensions; do
7350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7351     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7352     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7353     break 2
7354   fi
7355 done
7356 done
7357 IFS=$as_save_IFS
7358
7359 fi
7360 fi
7361 RANLIB=$ac_cv_prog_RANLIB
7362 if test -n "$RANLIB"; then
7363   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7364 echo "${ECHO_T}$RANLIB" >&6; }
7365 else
7366   { echo "$as_me:$LINENO: result: no" >&5
7367 echo "${ECHO_T}no" >&6; }
7368 fi
7369
7370
7371 fi
7372 if test -z "$ac_cv_prog_RANLIB"; then
7373   ac_ct_RANLIB=$RANLIB
7374   # Extract the first word of "ranlib", so it can be a program name with args.
7375 set dummy ranlib; ac_word=$2
7376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7378 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7379   echo $ECHO_N "(cached) $ECHO_C" >&6
7380 else
7381   if test -n "$ac_ct_RANLIB"; then
7382   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7383 else
7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385 for as_dir in $PATH
7386 do
7387   IFS=$as_save_IFS
7388   test -z "$as_dir" && as_dir=.
7389   for ac_exec_ext in '' $ac_executable_extensions; do
7390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7391     ac_cv_prog_ac_ct_RANLIB="ranlib"
7392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7393     break 2
7394   fi
7395 done
7396 done
7397 IFS=$as_save_IFS
7398
7399 fi
7400 fi
7401 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7402 if test -n "$ac_ct_RANLIB"; then
7403   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7404 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7405 else
7406   { echo "$as_me:$LINENO: result: no" >&5
7407 echo "${ECHO_T}no" >&6; }
7408 fi
7409
7410   if test "x$ac_ct_RANLIB" = x; then
7411     RANLIB=":"
7412   else
7413     case $cross_compiling:$ac_tool_warned in
7414 yes:)
7415 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7416 whose name does not start with the host triplet.  If you think this
7417 configuration is useful to you, please write to autoconf@gnu.org." >&5
7418 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7419 whose name does not start with the host triplet.  If you think this
7420 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7421 ac_tool_warned=yes ;;
7422 esac
7423     RANLIB=$ac_ct_RANLIB
7424   fi
7425 else
7426   RANLIB="$ac_cv_prog_RANLIB"
7427 fi
7428
7429 if test -n "$ac_tool_prefix"; then
7430   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7431 set dummy ${ac_tool_prefix}strip; ac_word=$2
7432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7434 if test "${ac_cv_prog_STRIP+set}" = set; then
7435   echo $ECHO_N "(cached) $ECHO_C" >&6
7436 else
7437   if test -n "$STRIP"; then
7438   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7439 else
7440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441 for as_dir in $PATH
7442 do
7443   IFS=$as_save_IFS
7444   test -z "$as_dir" && as_dir=.
7445   for ac_exec_ext in '' $ac_executable_extensions; do
7446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7447     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7449     break 2
7450   fi
7451 done
7452 done
7453 IFS=$as_save_IFS
7454
7455 fi
7456 fi
7457 STRIP=$ac_cv_prog_STRIP
7458 if test -n "$STRIP"; then
7459   { echo "$as_me:$LINENO: result: $STRIP" >&5
7460 echo "${ECHO_T}$STRIP" >&6; }
7461 else
7462   { echo "$as_me:$LINENO: result: no" >&5
7463 echo "${ECHO_T}no" >&6; }
7464 fi
7465
7466
7467 fi
7468 if test -z "$ac_cv_prog_STRIP"; then
7469   ac_ct_STRIP=$STRIP
7470   # Extract the first word of "strip", so it can be a program name with args.
7471 set dummy strip; ac_word=$2
7472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7474 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7475   echo $ECHO_N "(cached) $ECHO_C" >&6
7476 else
7477   if test -n "$ac_ct_STRIP"; then
7478   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7479 else
7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481 for as_dir in $PATH
7482 do
7483   IFS=$as_save_IFS
7484   test -z "$as_dir" && as_dir=.
7485   for ac_exec_ext in '' $ac_executable_extensions; do
7486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7487     ac_cv_prog_ac_ct_STRIP="strip"
7488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7489     break 2
7490   fi
7491 done
7492 done
7493 IFS=$as_save_IFS
7494
7495 fi
7496 fi
7497 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7498 if test -n "$ac_ct_STRIP"; then
7499   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7500 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7501 else
7502   { echo "$as_me:$LINENO: result: no" >&5
7503 echo "${ECHO_T}no" >&6; }
7504 fi
7505
7506   if test "x$ac_ct_STRIP" = x; then
7507     STRIP=":"
7508   else
7509     case $cross_compiling:$ac_tool_warned in
7510 yes:)
7511 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7512 whose name does not start with the host triplet.  If you think this
7513 configuration is useful to you, please write to autoconf@gnu.org." >&5
7514 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7515 whose name does not start with the host triplet.  If you think this
7516 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7517 ac_tool_warned=yes ;;
7518 esac
7519     STRIP=$ac_ct_STRIP
7520   fi
7521 else
7522   STRIP="$ac_cv_prog_STRIP"
7523 fi
7524
7525
7526 old_CC="$CC"
7527 old_CFLAGS="$CFLAGS"
7528
7529 # Set sane defaults for various variables
7530 test -z "$AR" && AR=ar
7531 test -z "$AR_FLAGS" && AR_FLAGS=cru
7532 test -z "$AS" && AS=as
7533 test -z "$CC" && CC=cc
7534 test -z "$LTCC" && LTCC=$CC
7535 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7536 test -z "$DLLTOOL" && DLLTOOL=dlltool
7537 test -z "$LD" && LD=ld
7538 test -z "$LN_S" && LN_S="ln -s"
7539 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7540 test -z "$NM" && NM=nm
7541 test -z "$SED" && SED=sed
7542 test -z "$OBJDUMP" && OBJDUMP=objdump
7543 test -z "$RANLIB" && RANLIB=:
7544 test -z "$STRIP" && STRIP=:
7545 test -z "$ac_objext" && ac_objext=o
7546
7547 # Determine commands to create old-style static archives.
7548 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7549 old_postinstall_cmds='chmod 644 $oldlib'
7550 old_postuninstall_cmds=
7551
7552 if test -n "$RANLIB"; then
7553   case $host_os in
7554   openbsd*)
7555     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7556     ;;
7557   *)
7558     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7559     ;;
7560   esac
7561   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7562 fi
7563
7564 for cc_temp in $compiler""; do
7565   case $cc_temp in
7566     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7567     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7568     \-*) ;;
7569     *) break;;
7570   esac
7571 done
7572 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7573
7574
7575 # Only perform the check for file, if the check method requires it
7576 case $deplibs_check_method in
7577 file_magic*)
7578   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7579     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7580 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7581 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7582   echo $ECHO_N "(cached) $ECHO_C" >&6
7583 else
7584   case $MAGIC_CMD in
7585 [\\/*] |  ?:[\\/]*)
7586   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7587   ;;
7588 *)
7589   lt_save_MAGIC_CMD="$MAGIC_CMD"
7590   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7591   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7592   for ac_dir in $ac_dummy; do
7593     IFS="$lt_save_ifs"
7594     test -z "$ac_dir" && ac_dir=.
7595     if test -f $ac_dir/${ac_tool_prefix}file; then
7596       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7597       if test -n "$file_magic_test_file"; then
7598         case $deplibs_check_method in
7599         "file_magic "*)
7600           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7601           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7602           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7603             $EGREP "$file_magic_regex" > /dev/null; then
7604             :
7605           else
7606             cat <<EOF 1>&2
7607
7608 *** Warning: the command libtool uses to detect shared libraries,
7609 *** $file_magic_cmd, produces output that libtool cannot recognize.
7610 *** The result is that libtool may fail to recognize shared libraries
7611 *** as such.  This will affect the creation of libtool libraries that
7612 *** depend on shared libraries, but programs linked with such libtool
7613 *** libraries will work regardless of this problem.  Nevertheless, you
7614 *** may want to report the problem to your system manager and/or to
7615 *** bug-libtool@gnu.org
7616
7617 EOF
7618           fi ;;
7619         esac
7620       fi
7621       break
7622     fi
7623   done
7624   IFS="$lt_save_ifs"
7625   MAGIC_CMD="$lt_save_MAGIC_CMD"
7626   ;;
7627 esac
7628 fi
7629
7630 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7631 if test -n "$MAGIC_CMD"; then
7632   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7633 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7634 else
7635   { echo "$as_me:$LINENO: result: no" >&5
7636 echo "${ECHO_T}no" >&6; }
7637 fi
7638
7639 if test -z "$lt_cv_path_MAGIC_CMD"; then
7640   if test -n "$ac_tool_prefix"; then
7641     { echo "$as_me:$LINENO: checking for file" >&5
7642 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7643 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7644   echo $ECHO_N "(cached) $ECHO_C" >&6
7645 else
7646   case $MAGIC_CMD in
7647 [\\/*] |  ?:[\\/]*)
7648   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7649   ;;
7650 *)
7651   lt_save_MAGIC_CMD="$MAGIC_CMD"
7652   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7653   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7654   for ac_dir in $ac_dummy; do
7655     IFS="$lt_save_ifs"
7656     test -z "$ac_dir" && ac_dir=.
7657     if test -f $ac_dir/file; then
7658       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7659       if test -n "$file_magic_test_file"; then
7660         case $deplibs_check_method in
7661         "file_magic "*)
7662           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7663           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7664           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7665             $EGREP "$file_magic_regex" > /dev/null; then
7666             :
7667           else
7668             cat <<EOF 1>&2
7669
7670 *** Warning: the command libtool uses to detect shared libraries,
7671 *** $file_magic_cmd, produces output that libtool cannot recognize.
7672 *** The result is that libtool may fail to recognize shared libraries
7673 *** as such.  This will affect the creation of libtool libraries that
7674 *** depend on shared libraries, but programs linked with such libtool
7675 *** libraries will work regardless of this problem.  Nevertheless, you
7676 *** may want to report the problem to your system manager and/or to
7677 *** bug-libtool@gnu.org
7678
7679 EOF
7680           fi ;;
7681         esac
7682       fi
7683       break
7684     fi
7685   done
7686   IFS="$lt_save_ifs"
7687   MAGIC_CMD="$lt_save_MAGIC_CMD"
7688   ;;
7689 esac
7690 fi
7691
7692 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7693 if test -n "$MAGIC_CMD"; then
7694   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7695 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7696 else
7697   { echo "$as_me:$LINENO: result: no" >&5
7698 echo "${ECHO_T}no" >&6; }
7699 fi
7700
7701   else
7702     MAGIC_CMD=:
7703   fi
7704 fi
7705
7706   fi
7707   ;;
7708 esac
7709
7710 enable_dlopen=no
7711 enable_win32_dll=yes
7712
7713 # Check whether --enable-libtool-lock was given.
7714 if test "${enable_libtool_lock+set}" = set; then
7715   enableval=$enable_libtool_lock;
7716 fi
7717
7718 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7719
7720
7721 # Check whether --with-pic was given.
7722 if test "${with_pic+set}" = set; then
7723   withval=$with_pic; pic_mode="$withval"
7724 else
7725   pic_mode=default
7726 fi
7727
7728 test -z "$pic_mode" && pic_mode=default
7729
7730 # Use C for the default configuration in the libtool script
7731 tagname=
7732 lt_save_CC="$CC"
7733 ac_ext=c
7734 ac_cpp='$CPP $CPPFLAGS'
7735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7738
7739
7740 # Source file extension for C test sources.
7741 ac_ext=c
7742
7743 # Object file extension for compiled C test sources.
7744 objext=o
7745 objext=$objext
7746
7747 # Code to be used in simple compile tests
7748 lt_simple_compile_test_code="int some_variable = 0;\n"
7749
7750 # Code to be used in simple link tests
7751 lt_simple_link_test_code='int main(){return(0);}\n'
7752
7753
7754 # If no C compiler was specified, use CC.
7755 LTCC=${LTCC-"$CC"}
7756
7757 # If no C compiler flags were specified, use CFLAGS.
7758 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7759
7760 # Allow CC to be a program name with arguments.
7761 compiler=$CC
7762
7763
7764 # save warnings/boilerplate of simple test code
7765 ac_outfile=conftest.$ac_objext
7766 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7767 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7768 _lt_compiler_boilerplate=`cat conftest.err`
7769 $rm conftest*
7770
7771 ac_outfile=conftest.$ac_objext
7772 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7773 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7774 _lt_linker_boilerplate=`cat conftest.err`
7775 $rm conftest*
7776
7777
7778
7779 lt_prog_compiler_no_builtin_flag=
7780
7781 if test "$GCC" = yes; then
7782   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7783
7784
7785 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7786 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7787 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7788   echo $ECHO_N "(cached) $ECHO_C" >&6
7789 else
7790   lt_cv_prog_compiler_rtti_exceptions=no
7791   ac_outfile=conftest.$ac_objext
7792    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7793    lt_compiler_flag="-fno-rtti -fno-exceptions"
7794    # Insert the option either (1) after the last *FLAGS variable, or
7795    # (2) before a word containing "conftest.", or (3) at the end.
7796    # Note that $ac_compile itself does not contain backslashes and begins
7797    # with a dollar sign (not a hyphen), so the echo should work correctly.
7798    # The option is referenced via a variable to avoid confusing sed.
7799    lt_compile=`echo "$ac_compile" | $SED \
7800    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7801    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7802    -e 's:$: $lt_compiler_flag:'`
7803    (eval echo "\"\$as_me:7803: $lt_compile\"" >&5)
7804    (eval "$lt_compile" 2>conftest.err)
7805    ac_status=$?
7806    cat conftest.err >&5
7807    echo "$as_me:7807: \$? = $ac_status" >&5
7808    if (exit $ac_status) && test -s "$ac_outfile"; then
7809      # The compiler can only warn and ignore the option if not recognized
7810      # So say no if there are warnings other than the usual output.
7811      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7812      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7813      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7814        lt_cv_prog_compiler_rtti_exceptions=yes
7815      fi
7816    fi
7817    $rm conftest*
7818
7819 fi
7820 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7821 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7822
7823 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7824     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7825 else
7826     :
7827 fi
7828
7829 fi
7830
7831 lt_prog_compiler_wl=
7832 lt_prog_compiler_pic=
7833 lt_prog_compiler_static=
7834
7835 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7836 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7837
7838   if test "$GCC" = yes; then
7839     lt_prog_compiler_wl='-Wl,'
7840     lt_prog_compiler_static='-static'
7841
7842     case $host_os in
7843       aix*)
7844       # All AIX code is PIC.
7845       if test "$host_cpu" = ia64; then
7846         # AIX 5 now supports IA64 processor
7847         lt_prog_compiler_static='-Bstatic'
7848       fi
7849       ;;
7850
7851     amigaos*)
7852       # FIXME: we need at least 68020 code to build shared libraries, but
7853       # adding the `-m68020' flag to GCC prevents building anything better,
7854       # like `-m68040'.
7855       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7856       ;;
7857
7858     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7859       # PIC is the default for these OSes.
7860       ;;
7861
7862     mingw* | pw32* | os2*)
7863       # This hack is so that the source file can tell whether it is being
7864       # built for inclusion in a dll (and should export symbols for example).
7865       lt_prog_compiler_pic='-DDLL_EXPORT'
7866       ;;
7867
7868     darwin* | rhapsody*)
7869       # PIC is the default on this platform
7870       # Common symbols not allowed in MH_DYLIB files
7871       lt_prog_compiler_pic='-fno-common'
7872       ;;
7873
7874     interix3*)
7875       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7876       # Instead, we relocate shared libraries at runtime.
7877       ;;
7878
7879     msdosdjgpp*)
7880       # Just because we use GCC doesn't mean we suddenly get shared libraries
7881       # on systems that don't support them.
7882       lt_prog_compiler_can_build_shared=no
7883       enable_shared=no
7884       ;;
7885
7886     sysv4*MP*)
7887       if test -d /usr/nec; then
7888         lt_prog_compiler_pic=-Kconform_pic
7889       fi
7890       ;;
7891
7892     hpux*)
7893       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7894       # not for PA HP-UX.
7895       case $host_cpu in
7896       hppa*64*|ia64*)
7897         # +Z the default
7898         ;;
7899       *)
7900         lt_prog_compiler_pic='-fPIC'
7901         ;;
7902       esac
7903       ;;
7904
7905     *)
7906       lt_prog_compiler_pic='-fPIC'
7907       ;;
7908     esac
7909   else
7910     # PORTME Check for flag to pass linker flags through the system compiler.
7911     case $host_os in
7912     aix*)
7913       lt_prog_compiler_wl='-Wl,'
7914       if test "$host_cpu" = ia64; then
7915         # AIX 5 now supports IA64 processor
7916         lt_prog_compiler_static='-Bstatic'
7917       else
7918         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7919       fi
7920       ;;
7921       darwin*)
7922         # PIC is the default on this platform
7923         # Common symbols not allowed in MH_DYLIB files
7924        case $cc_basename in
7925          xlc*)
7926          lt_prog_compiler_pic='-qnocommon'
7927          lt_prog_compiler_wl='-Wl,'
7928          ;;
7929        esac
7930        ;;
7931
7932     mingw* | pw32* | os2*)
7933       # This hack is so that the source file can tell whether it is being
7934       # built for inclusion in a dll (and should export symbols for example).
7935       lt_prog_compiler_pic='-DDLL_EXPORT'
7936       ;;
7937
7938     hpux9* | hpux10* | hpux11*)
7939       lt_prog_compiler_wl='-Wl,'
7940       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7941       # not for PA HP-UX.
7942       case $host_cpu in
7943       hppa*64*|ia64*)
7944         # +Z the default
7945         ;;
7946       *)
7947         lt_prog_compiler_pic='+Z'
7948         ;;
7949       esac
7950       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7951       lt_prog_compiler_static='${wl}-a ${wl}archive'
7952       ;;
7953
7954     irix5* | irix6* | nonstopux*)
7955       lt_prog_compiler_wl='-Wl,'
7956       # PIC (with -KPIC) is the default.
7957       lt_prog_compiler_static='-non_shared'
7958       ;;
7959
7960     newsos6)
7961       lt_prog_compiler_pic='-KPIC'
7962       lt_prog_compiler_static='-Bstatic'
7963       ;;
7964
7965     linux* | k*bsd*-gnu)
7966       case $cc_basename in
7967       icc* | ecc*)
7968         lt_prog_compiler_wl='-Wl,'
7969         lt_prog_compiler_pic='-KPIC'
7970         lt_prog_compiler_static='-static'
7971         ;;
7972       pgcc* | pgf77* | pgf90* | pgf95*)
7973         # Portland Group compilers (*not* the Pentium gcc compiler,
7974         # which looks to be a dead project)
7975         lt_prog_compiler_wl='-Wl,'
7976         lt_prog_compiler_pic='-fpic'
7977         lt_prog_compiler_static='-Bstatic'
7978         ;;
7979       ccc*)
7980         lt_prog_compiler_wl='-Wl,'
7981         # All Alpha code is PIC.
7982         lt_prog_compiler_static='-non_shared'
7983         ;;
7984       esac
7985       ;;
7986
7987     osf3* | osf4* | osf5*)
7988       lt_prog_compiler_wl='-Wl,'
7989       # All OSF/1 code is PIC.
7990       lt_prog_compiler_static='-non_shared'
7991       ;;
7992
7993     solaris*)
7994       lt_prog_compiler_pic='-KPIC'
7995       lt_prog_compiler_static='-Bstatic'
7996       case $cc_basename in
7997       f77* | f90* | f95*)
7998         lt_prog_compiler_wl='-Qoption ld ';;
7999       *)
8000         lt_prog_compiler_wl='-Wl,';;
8001       esac
8002       ;;
8003
8004     sunos4*)
8005       lt_prog_compiler_wl='-Qoption ld '
8006       lt_prog_compiler_pic='-PIC'
8007       lt_prog_compiler_static='-Bstatic'
8008       ;;
8009
8010     sysv4 | sysv4.2uw2* | sysv4.3*)
8011       lt_prog_compiler_wl='-Wl,'
8012       lt_prog_compiler_pic='-KPIC'
8013       lt_prog_compiler_static='-Bstatic'
8014       ;;
8015
8016     sysv4*MP*)
8017       if test -d /usr/nec ;then
8018         lt_prog_compiler_pic='-Kconform_pic'
8019         lt_prog_compiler_static='-Bstatic'
8020       fi
8021       ;;
8022
8023     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8024       lt_prog_compiler_wl='-Wl,'
8025       lt_prog_compiler_pic='-KPIC'
8026       lt_prog_compiler_static='-Bstatic'
8027       ;;
8028
8029     unicos*)
8030       lt_prog_compiler_wl='-Wl,'
8031       lt_prog_compiler_can_build_shared=no
8032       ;;
8033
8034     uts4*)
8035       lt_prog_compiler_pic='-pic'
8036       lt_prog_compiler_static='-Bstatic'
8037       ;;
8038
8039     *)
8040       lt_prog_compiler_can_build_shared=no
8041       ;;
8042     esac
8043   fi
8044
8045 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8046 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8047
8048 #
8049 # Check to make sure the PIC flag actually works.
8050 #
8051 if test -n "$lt_prog_compiler_pic"; then
8052
8053 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8054 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8055 if test "${lt_prog_compiler_pic_works+set}" = set; then
8056   echo $ECHO_N "(cached) $ECHO_C" >&6
8057 else
8058   lt_prog_compiler_pic_works=no
8059   ac_outfile=conftest.$ac_objext
8060    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8061    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8062    # Insert the option either (1) after the last *FLAGS variable, or
8063    # (2) before a word containing "conftest.", or (3) at the end.
8064    # Note that $ac_compile itself does not contain backslashes and begins
8065    # with a dollar sign (not a hyphen), so the echo should work correctly.
8066    # The option is referenced via a variable to avoid confusing sed.
8067    lt_compile=`echo "$ac_compile" | $SED \
8068    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8069    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8070    -e 's:$: $lt_compiler_flag:'`
8071    (eval echo "\"\$as_me:8071: $lt_compile\"" >&5)
8072    (eval "$lt_compile" 2>conftest.err)
8073    ac_status=$?
8074    cat conftest.err >&5
8075    echo "$as_me:8075: \$? = $ac_status" >&5
8076    if (exit $ac_status) && test -s "$ac_outfile"; then
8077      # The compiler can only warn and ignore the option if not recognized
8078      # So say no if there are warnings other than the usual output.
8079      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8080      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8081      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8082        lt_prog_compiler_pic_works=yes
8083      fi
8084    fi
8085    $rm conftest*
8086
8087 fi
8088 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8089 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8090
8091 if test x"$lt_prog_compiler_pic_works" = xyes; then
8092     case $lt_prog_compiler_pic in
8093      "" | " "*) ;;
8094      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8095      esac
8096 else
8097     lt_prog_compiler_pic=
8098      lt_prog_compiler_can_build_shared=no
8099 fi
8100
8101 fi
8102 case $host_os in
8103   # For platforms which do not support PIC, -DPIC is meaningless:
8104   *djgpp*)
8105     lt_prog_compiler_pic=
8106     ;;
8107   *)
8108     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8109     ;;
8110 esac
8111
8112 #
8113 # Check to make sure the static flag actually works.
8114 #
8115 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8116 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8117 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8118 if test "${lt_prog_compiler_static_works+set}" = set; then
8119   echo $ECHO_N "(cached) $ECHO_C" >&6
8120 else
8121   lt_prog_compiler_static_works=no
8122    save_LDFLAGS="$LDFLAGS"
8123    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8124    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8125    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8126      # The linker can only warn and ignore the option if not recognized
8127      # So say no if there are warnings
8128      if test -s conftest.err; then
8129        # Append any errors to the config.log.
8130        cat conftest.err 1>&5
8131        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8132        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8133        if diff conftest.exp conftest.er2 >/dev/null; then
8134          lt_prog_compiler_static_works=yes
8135        fi
8136      else
8137        lt_prog_compiler_static_works=yes
8138      fi
8139    fi
8140    $rm conftest*
8141    LDFLAGS="$save_LDFLAGS"
8142
8143 fi
8144 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8145 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8146
8147 if test x"$lt_prog_compiler_static_works" = xyes; then
8148     :
8149 else
8150     lt_prog_compiler_static=
8151 fi
8152
8153
8154 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8155 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8156 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8157   echo $ECHO_N "(cached) $ECHO_C" >&6
8158 else
8159   lt_cv_prog_compiler_c_o=no
8160    $rm -r conftest 2>/dev/null
8161    mkdir conftest
8162    cd conftest
8163    mkdir out
8164    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8165
8166    lt_compiler_flag="-o out/conftest2.$ac_objext"
8167    # Insert the option either (1) after the last *FLAGS variable, or
8168    # (2) before a word containing "conftest.", or (3) at the end.
8169    # Note that $ac_compile itself does not contain backslashes and begins
8170    # with a dollar sign (not a hyphen), so the echo should work correctly.
8171    lt_compile=`echo "$ac_compile" | $SED \
8172    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8173    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8174    -e 's:$: $lt_compiler_flag:'`
8175    (eval echo "\"\$as_me:8175: $lt_compile\"" >&5)
8176    (eval "$lt_compile" 2>out/conftest.err)
8177    ac_status=$?
8178    cat out/conftest.err >&5
8179    echo "$as_me:8179: \$? = $ac_status" >&5
8180    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8181    then
8182      # The compiler can only warn and ignore the option if not recognized
8183      # So say no if there are warnings
8184      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8185      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8186      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8187        lt_cv_prog_compiler_c_o=yes
8188      fi
8189    fi
8190    chmod u+w . 2>&5
8191    $rm conftest*
8192    # SGI C++ compiler will create directory out/ii_files/ for
8193    # template instantiation
8194    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8195    $rm out/* && rmdir out
8196    cd ..
8197    rmdir conftest
8198    $rm conftest*
8199
8200 fi
8201 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8202 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8203
8204
8205 hard_links="nottested"
8206 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8207   # do not overwrite the value of need_locks provided by the user
8208   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8209 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8210   hard_links=yes
8211   $rm conftest*
8212   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8213   touch conftest.a
8214   ln conftest.a conftest.b 2>&5 || hard_links=no
8215   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8216   { echo "$as_me:$LINENO: result: $hard_links" >&5
8217 echo "${ECHO_T}$hard_links" >&6; }
8218   if test "$hard_links" = no; then
8219     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8220 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8221     need_locks=warn
8222   fi
8223 else
8224   need_locks=no
8225 fi
8226
8227 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8228 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8229
8230   runpath_var=
8231   allow_undefined_flag=
8232   enable_shared_with_static_runtimes=no
8233   archive_cmds=
8234   archive_expsym_cmds=
8235   old_archive_From_new_cmds=
8236   old_archive_from_expsyms_cmds=
8237   export_dynamic_flag_spec=
8238   whole_archive_flag_spec=
8239   thread_safe_flag_spec=
8240   hardcode_libdir_flag_spec=
8241   hardcode_libdir_flag_spec_ld=
8242   hardcode_libdir_separator=
8243   hardcode_direct=no
8244   hardcode_minus_L=no
8245   hardcode_shlibpath_var=unsupported
8246   link_all_deplibs=unknown
8247   hardcode_automatic=no
8248   module_cmds=
8249   module_expsym_cmds=
8250   always_export_symbols=no
8251   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8252   # include_expsyms should be a list of space-separated symbols to be *always*
8253   # included in the symbol list
8254   include_expsyms=
8255   # exclude_expsyms can be an extended regexp of symbols to exclude
8256   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8257   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8258   # as well as any symbol that contains `d'.
8259   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8260   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8261   # platforms (ab)use it in PIC code, but their linkers get confused if
8262   # the symbol is explicitly referenced.  Since portable code cannot
8263   # rely on this symbol name, it's probably fine to never include it in
8264   # preloaded symbol tables.
8265   extract_expsyms_cmds=
8266   # Just being paranoid about ensuring that cc_basename is set.
8267   for cc_temp in $compiler""; do
8268   case $cc_temp in
8269     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8270     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8271     \-*) ;;
8272     *) break;;
8273   esac
8274 done
8275 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8276
8277   case $host_os in
8278   cygwin* | mingw* | pw32*)
8279     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8280     # When not using gcc, we currently assume that we are using
8281     # Microsoft Visual C++.
8282     if test "$GCC" != yes; then
8283       with_gnu_ld=no
8284     fi
8285     ;;
8286   interix*)
8287     # we just hope/assume this is gcc and not c89 (= MSVC++)
8288     with_gnu_ld=yes
8289     ;;
8290   openbsd*)
8291     with_gnu_ld=no
8292     ;;
8293   esac
8294
8295   ld_shlibs=yes
8296   if test "$with_gnu_ld" = yes; then
8297     # If archive_cmds runs LD, not CC, wlarc should be empty
8298     wlarc='${wl}'
8299
8300     # Set some defaults for GNU ld with shared library support. These
8301     # are reset later if shared libraries are not supported. Putting them
8302     # here allows them to be overridden if necessary.
8303     runpath_var=LD_RUN_PATH
8304     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8305     export_dynamic_flag_spec='${wl}--export-dynamic'
8306     # ancient GNU ld didn't support --whole-archive et. al.
8307     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8308         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8309       else
8310         whole_archive_flag_spec=
8311     fi
8312     supports_anon_versioning=no
8313     case `$LD -v 2>/dev/null` in
8314       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8315       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8316       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8317       *\ 2.11.*) ;; # other 2.11 versions
8318       *) supports_anon_versioning=yes ;;
8319     esac
8320
8321     # See if GNU ld supports shared libraries.
8322     case $host_os in
8323     aix3* | aix4* | aix5*)
8324       # On AIX/PPC, the GNU linker is very broken
8325       if test "$host_cpu" != ia64; then
8326         ld_shlibs=no
8327         cat <<EOF 1>&2
8328
8329 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8330 *** to be unable to reliably create shared libraries on AIX.
8331 *** Therefore, libtool is disabling shared libraries support.  If you
8332 *** really care for shared libraries, you may want to modify your PATH
8333 *** so that a non-GNU linker is found, and then restart.
8334
8335 EOF
8336       fi
8337       ;;
8338
8339     amigaos*)
8340       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)'
8341       hardcode_libdir_flag_spec='-L$libdir'
8342       hardcode_minus_L=yes
8343
8344       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8345       # that the semantics of dynamic libraries on AmigaOS, at least up
8346       # to version 4, is to share data among multiple programs linked
8347       # with the same dynamic library.  Since this doesn't match the
8348       # behavior of shared libraries on other platforms, we can't use
8349       # them.
8350       ld_shlibs=no
8351       ;;
8352
8353     beos*)
8354       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8355         allow_undefined_flag=unsupported
8356         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8357         # support --undefined.  This deserves some investigation.  FIXME
8358         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8359       else
8360         ld_shlibs=no
8361       fi
8362       ;;
8363
8364     cygwin* | mingw* | pw32*)
8365       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8366       # as there is no search path for DLLs.
8367       hardcode_libdir_flag_spec='-L$libdir'
8368       allow_undefined_flag=unsupported
8369       always_export_symbols=no
8370       enable_shared_with_static_runtimes=yes
8371       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8372
8373       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8374         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8375         # If the export-symbols file already is a .def file (1st line
8376         # is EXPORTS), use it as is; otherwise, prepend...
8377         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8378           cp $export_symbols $output_objdir/$soname.def;
8379         else
8380           echo EXPORTS > $output_objdir/$soname.def;
8381           cat $export_symbols >> $output_objdir/$soname.def;
8382         fi~
8383         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8384       else
8385         ld_shlibs=no
8386       fi
8387       ;;
8388
8389     interix3*)
8390       hardcode_direct=no
8391       hardcode_shlibpath_var=no
8392       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8393       export_dynamic_flag_spec='${wl}-E'
8394       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8395       # Instead, shared libraries are loaded at an image base (0x10000000 by
8396       # default) and relocated if they conflict, which is a slow very memory
8397       # consuming and fragmenting process.  To avoid this, we pick a random,
8398       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8399       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8400       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8401       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'
8402       ;;
8403
8404     linux* | k*bsd*-gnu)
8405       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8406         tmp_addflag=
8407         case $cc_basename,$host_cpu in
8408         pgcc*)                          # Portland Group C compiler
8409           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'
8410           tmp_addflag=' $pic_flag'
8411           ;;
8412         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8413           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'
8414           tmp_addflag=' $pic_flag -Mnomain' ;;
8415         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8416           tmp_addflag=' -i_dynamic' ;;
8417         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8418           tmp_addflag=' -i_dynamic -nofor_main' ;;
8419         ifc* | ifort*)                  # Intel Fortran compiler
8420           tmp_addflag=' -nofor_main' ;;
8421         esac
8422         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8423
8424         if test $supports_anon_versioning = yes; then
8425           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8426   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8427   $echo "local: *; };" >> $output_objdir/$libname.ver~
8428           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8429         fi
8430         link_all_deplibs=no
8431       else
8432         ld_shlibs=no
8433       fi
8434       ;;
8435
8436     netbsd* | netbsdelf*-gnu)
8437       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8438         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8439         wlarc=
8440       else
8441         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8442         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8443       fi
8444       ;;
8445
8446     solaris*)
8447       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8448         ld_shlibs=no
8449         cat <<EOF 1>&2
8450
8451 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8452 *** create shared libraries on Solaris systems.  Therefore, libtool
8453 *** is disabling shared libraries support.  We urge you to upgrade GNU
8454 *** binutils to release 2.9.1 or newer.  Another option is to modify
8455 *** your PATH or compiler configuration so that the native linker is
8456 *** used, and then restart.
8457
8458 EOF
8459       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8460         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8461         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8462       else
8463         ld_shlibs=no
8464       fi
8465       ;;
8466
8467     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8468       case `$LD -v 2>&1` in
8469         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8470         ld_shlibs=no
8471         cat <<_LT_EOF 1>&2
8472
8473 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8474 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8475 *** is disabling shared libraries support.  We urge you to upgrade GNU
8476 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8477 *** your PATH or compiler configuration so that the native linker is
8478 *** used, and then restart.
8479
8480 _LT_EOF
8481         ;;
8482         *)
8483           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8484             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8485             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8486             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8487           else
8488             ld_shlibs=no
8489           fi
8490         ;;
8491       esac
8492       ;;
8493
8494     sunos4*)
8495       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8496       wlarc=
8497       hardcode_direct=yes
8498       hardcode_shlibpath_var=no
8499       ;;
8500
8501     *)
8502       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8503         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8504         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8505       else
8506         ld_shlibs=no
8507       fi
8508       ;;
8509     esac
8510
8511     if test "$ld_shlibs" = no; then
8512       runpath_var=
8513       hardcode_libdir_flag_spec=
8514       export_dynamic_flag_spec=
8515       whole_archive_flag_spec=
8516     fi
8517   else
8518     # PORTME fill in a description of your system's linker (not GNU ld)
8519     case $host_os in
8520     aix3*)
8521       allow_undefined_flag=unsupported
8522       always_export_symbols=yes
8523       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'
8524       # Note: this linker hardcodes the directories in LIBPATH if there
8525       # are no directories specified by -L.
8526       hardcode_minus_L=yes
8527       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8528         # Neither direct hardcoding nor static linking is supported with a
8529         # broken collect2.
8530         hardcode_direct=unsupported
8531       fi
8532       ;;
8533
8534     aix4* | aix5*)
8535       if test "$host_cpu" = ia64; then
8536         # On IA64, the linker does run time linking by default, so we don't
8537         # have to do anything special.
8538         aix_use_runtimelinking=no
8539         exp_sym_flag='-Bexport'
8540         no_entry_flag=""
8541       else
8542         # If we're using GNU nm, then we don't want the "-C" option.
8543         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8544         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8545           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'
8546         else
8547           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'
8548         fi
8549         aix_use_runtimelinking=no
8550
8551         # Test if we are trying to use run time linking or normal
8552         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8553         # need to do runtime linking.
8554         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8555           for ld_flag in $LDFLAGS; do
8556           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8557             aix_use_runtimelinking=yes
8558             break
8559           fi
8560           done
8561           ;;
8562         esac
8563
8564         exp_sym_flag='-bexport'
8565         no_entry_flag='-bnoentry'
8566       fi
8567
8568       # When large executables or shared objects are built, AIX ld can
8569       # have problems creating the table of contents.  If linking a library
8570       # or program results in "error TOC overflow" add -mminimal-toc to
8571       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8572       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8573
8574       archive_cmds=''
8575       hardcode_direct=yes
8576       hardcode_libdir_separator=':'
8577       link_all_deplibs=yes
8578
8579       if test "$GCC" = yes; then
8580         case $host_os in aix4.[012]|aix4.[012].*)
8581         # We only want to do this on AIX 4.2 and lower, the check
8582         # below for broken collect2 doesn't work under 4.3+
8583           collect2name=`${CC} -print-prog-name=collect2`
8584           if test -f "$collect2name" && \
8585            strings "$collect2name" | grep resolve_lib_name >/dev/null
8586           then
8587           # We have reworked collect2
8588           hardcode_direct=yes
8589           else
8590           # We have old collect2
8591           hardcode_direct=unsupported
8592           # It fails to find uninstalled libraries when the uninstalled
8593           # path is not listed in the libpath.  Setting hardcode_minus_L
8594           # to unsupported forces relinking
8595           hardcode_minus_L=yes
8596           hardcode_libdir_flag_spec='-L$libdir'
8597           hardcode_libdir_separator=
8598           fi
8599           ;;
8600         esac
8601         shared_flag='-shared'
8602         if test "$aix_use_runtimelinking" = yes; then
8603           shared_flag="$shared_flag "'${wl}-G'
8604         fi
8605       else
8606         # not using gcc
8607         if test "$host_cpu" = ia64; then
8608         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8609         # chokes on -Wl,-G. The following line is correct:
8610           shared_flag='-G'
8611         else
8612           if test "$aix_use_runtimelinking" = yes; then
8613             shared_flag='${wl}-G'
8614           else
8615             shared_flag='${wl}-bM:SRE'
8616           fi
8617         fi
8618       fi
8619
8620       # It seems that -bexpall does not export symbols beginning with
8621       # underscore (_), so it is better to generate a list of symbols to export.
8622       always_export_symbols=yes
8623       if test "$aix_use_runtimelinking" = yes; then
8624         # Warning - without using the other runtime loading flags (-brtl),
8625         # -berok will link without error, but may produce a broken library.
8626         allow_undefined_flag='-berok'
8627        # Determine the default libpath from the value encoded in an empty executable.
8628        cat >conftest.$ac_ext <<_ACEOF
8629 /* confdefs.h.  */
8630 _ACEOF
8631 cat confdefs.h >>conftest.$ac_ext
8632 cat >>conftest.$ac_ext <<_ACEOF
8633 /* end confdefs.h.  */
8634
8635 int
8636 main ()
8637 {
8638
8639   ;
8640   return 0;
8641 }
8642 _ACEOF
8643 rm -f conftest.$ac_objext conftest$ac_exeext
8644 if { (ac_try="$ac_link"
8645 case "(($ac_try" in
8646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8647   *) ac_try_echo=$ac_try;;
8648 esac
8649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8650   (eval "$ac_link") 2>conftest.er1
8651   ac_status=$?
8652   grep -v '^ *+' conftest.er1 >conftest.err
8653   rm -f conftest.er1
8654   cat conftest.err >&5
8655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656   (exit $ac_status); } &&
8657          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8658   { (case "(($ac_try" in
8659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8660   *) ac_try_echo=$ac_try;;
8661 esac
8662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8663   (eval "$ac_try") 2>&5
8664   ac_status=$?
8665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666   (exit $ac_status); }; } &&
8667          { ac_try='test -s conftest$ac_exeext'
8668   { (case "(($ac_try" in
8669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8670   *) ac_try_echo=$ac_try;;
8671 esac
8672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8673   (eval "$ac_try") 2>&5
8674   ac_status=$?
8675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676   (exit $ac_status); }; }; then
8677
8678 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8679 }'`
8680 # Check for a 64-bit object if we didn't find anything.
8681 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; }
8682 }'`; fi
8683 else
8684   echo "$as_me: failed program was:" >&5
8685 sed 's/^/| /' conftest.$ac_ext >&5
8686
8687
8688 fi
8689
8690 rm -f core conftest.err conftest.$ac_objext \
8691       conftest$ac_exeext conftest.$ac_ext
8692 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8693
8694        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8695         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"
8696        else
8697         if test "$host_cpu" = ia64; then
8698           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8699           allow_undefined_flag="-z nodefs"
8700           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"
8701         else
8702          # Determine the default libpath from the value encoded in an empty executable.
8703          cat >conftest.$ac_ext <<_ACEOF
8704 /* confdefs.h.  */
8705 _ACEOF
8706 cat confdefs.h >>conftest.$ac_ext
8707 cat >>conftest.$ac_ext <<_ACEOF
8708 /* end confdefs.h.  */
8709
8710 int
8711 main ()
8712 {
8713
8714   ;
8715   return 0;
8716 }
8717 _ACEOF
8718 rm -f conftest.$ac_objext conftest$ac_exeext
8719 if { (ac_try="$ac_link"
8720 case "(($ac_try" in
8721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8722   *) ac_try_echo=$ac_try;;
8723 esac
8724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8725   (eval "$ac_link") 2>conftest.er1
8726   ac_status=$?
8727   grep -v '^ *+' conftest.er1 >conftest.err
8728   rm -f conftest.er1
8729   cat conftest.err >&5
8730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731   (exit $ac_status); } &&
8732          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8733   { (case "(($ac_try" in
8734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8735   *) ac_try_echo=$ac_try;;
8736 esac
8737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8738   (eval "$ac_try") 2>&5
8739   ac_status=$?
8740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741   (exit $ac_status); }; } &&
8742          { ac_try='test -s conftest$ac_exeext'
8743   { (case "(($ac_try" in
8744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8745   *) ac_try_echo=$ac_try;;
8746 esac
8747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8748   (eval "$ac_try") 2>&5
8749   ac_status=$?
8750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751   (exit $ac_status); }; }; then
8752
8753 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8754 }'`
8755 # Check for a 64-bit object if we didn't find anything.
8756 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; }
8757 }'`; fi
8758 else
8759   echo "$as_me: failed program was:" >&5
8760 sed 's/^/| /' conftest.$ac_ext >&5
8761
8762
8763 fi
8764
8765 rm -f core conftest.err conftest.$ac_objext \
8766       conftest$ac_exeext conftest.$ac_ext
8767 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8768
8769          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8770           # Warning - without using the other run time loading flags,
8771           # -berok will link without error, but may produce a broken library.
8772           no_undefined_flag=' ${wl}-bernotok'
8773           allow_undefined_flag=' ${wl}-berok'
8774           # Exported symbols can be pulled into shared objects from archives
8775           whole_archive_flag_spec='$convenience'
8776           archive_cmds_need_lc=yes
8777           # This is similar to how AIX traditionally builds its shared libraries.
8778           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'
8779         fi
8780       fi
8781       ;;
8782
8783     amigaos*)
8784       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)'
8785       hardcode_libdir_flag_spec='-L$libdir'
8786       hardcode_minus_L=yes
8787       # see comment about different semantics on the GNU ld section
8788       ld_shlibs=no
8789       ;;
8790
8791     bsdi[45]*)
8792       export_dynamic_flag_spec=-rdynamic
8793       ;;
8794
8795     cygwin* | mingw* | pw32*)
8796       # When not using gcc, we currently assume that we are using
8797       # Microsoft Visual C++.
8798       # hardcode_libdir_flag_spec is actually meaningless, as there is
8799       # no search path for DLLs.
8800       hardcode_libdir_flag_spec=' '
8801       allow_undefined_flag=unsupported
8802       # Tell ltmain to make .lib files, not .a files.
8803       libext=lib
8804       # Tell ltmain to make .dll files, not .so files.
8805       shrext_cmds=".dll"
8806       # FIXME: Setting linknames here is a bad hack.
8807       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8808       # The linker will automatically build a .lib file if we build a DLL.
8809       old_archive_From_new_cmds='true'
8810       # FIXME: Should let the user specify the lib program.
8811       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8812       fix_srcfile_path='`cygpath -w "$srcfile"`'
8813       enable_shared_with_static_runtimes=yes
8814       ;;
8815
8816     darwin* | rhapsody*)
8817       case $host_os in
8818         rhapsody* | darwin1.[012])
8819          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8820          ;;
8821        *) # Darwin 1.3 on
8822          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8823            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8824          else
8825            case ${MACOSX_DEPLOYMENT_TARGET} in
8826              10.[012])
8827                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8828                ;;
8829              10.*)
8830                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8831                ;;
8832            esac
8833          fi
8834          ;;
8835       esac
8836       archive_cmds_need_lc=no
8837       hardcode_direct=no
8838       hardcode_automatic=yes
8839       hardcode_shlibpath_var=unsupported
8840       whole_archive_flag_spec=''
8841       link_all_deplibs=yes
8842     if test "$GCC" = yes ; then
8843         output_verbose_link_cmd='echo'
8844         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8845       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8846       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8847       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}'
8848       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}'
8849     else
8850       case $cc_basename in
8851         xlc*)
8852          output_verbose_link_cmd='echo'
8853          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8854          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8855           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8856          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}'
8857           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}'
8858           ;;
8859        *)
8860          ld_shlibs=no
8861           ;;
8862       esac
8863     fi
8864       ;;
8865
8866     dgux*)
8867       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8868       hardcode_libdir_flag_spec='-L$libdir'
8869       hardcode_shlibpath_var=no
8870       ;;
8871
8872     freebsd1*)
8873       ld_shlibs=no
8874       ;;
8875
8876     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8877     # support.  Future versions do this automatically, but an explicit c++rt0.o
8878     # does not break anything, and helps significantly (at the cost of a little
8879     # extra space).
8880     freebsd2.2*)
8881       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8882       hardcode_libdir_flag_spec='-R$libdir'
8883       hardcode_direct=yes
8884       hardcode_shlibpath_var=no
8885       ;;
8886
8887     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8888     freebsd2*)
8889       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8890       hardcode_direct=yes
8891       hardcode_minus_L=yes
8892       hardcode_shlibpath_var=no
8893       ;;
8894
8895     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8896     freebsd* | dragonfly*)
8897       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8898       hardcode_libdir_flag_spec='-R$libdir'
8899       hardcode_direct=yes
8900       hardcode_shlibpath_var=no
8901       ;;
8902
8903     hpux9*)
8904       if test "$GCC" = yes; then
8905         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'
8906       else
8907         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'
8908       fi
8909       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8910       hardcode_libdir_separator=:
8911       hardcode_direct=yes
8912
8913       # hardcode_minus_L: Not really in the search PATH,
8914       # but as the default location of the library.
8915       hardcode_minus_L=yes
8916       export_dynamic_flag_spec='${wl}-E'
8917       ;;
8918
8919     hpux10*)
8920       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8921         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8922       else
8923         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8924       fi
8925       if test "$with_gnu_ld" = no; then
8926         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8927         hardcode_libdir_separator=:
8928
8929         hardcode_direct=yes
8930         export_dynamic_flag_spec='${wl}-E'
8931
8932         # hardcode_minus_L: Not really in the search PATH,
8933         # but as the default location of the library.
8934         hardcode_minus_L=yes
8935       fi
8936       ;;
8937
8938     hpux11*)
8939       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8940         case $host_cpu in
8941         hppa*64*)
8942           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8943           ;;
8944         ia64*)
8945           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8946           ;;
8947         *)
8948           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8949           ;;
8950         esac
8951       else
8952         case $host_cpu in
8953         hppa*64*)
8954           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8955           ;;
8956         ia64*)
8957           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8958           ;;
8959         *)
8960           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8961           ;;
8962         esac
8963       fi
8964       if test "$with_gnu_ld" = no; then
8965         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8966         hardcode_libdir_separator=:
8967
8968         case $host_cpu in
8969         hppa*64*|ia64*)
8970           hardcode_libdir_flag_spec_ld='+b $libdir'
8971           hardcode_direct=no
8972           hardcode_shlibpath_var=no
8973           ;;
8974         *)
8975           hardcode_direct=yes
8976           export_dynamic_flag_spec='${wl}-E'
8977
8978           # hardcode_minus_L: Not really in the search PATH,
8979           # but as the default location of the library.
8980           hardcode_minus_L=yes
8981           ;;
8982         esac
8983       fi
8984       ;;
8985
8986     irix5* | irix6* | nonstopux*)
8987       if test "$GCC" = yes; then
8988         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'
8989       else
8990         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'
8991         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8992       fi
8993       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8994       hardcode_libdir_separator=:
8995       link_all_deplibs=yes
8996       ;;
8997
8998     netbsd* | netbsdelf*-gnu)
8999       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9000         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9001       else
9002         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9003       fi
9004       hardcode_libdir_flag_spec='-R$libdir'
9005       hardcode_direct=yes
9006       hardcode_shlibpath_var=no
9007       ;;
9008
9009     newsos6)
9010       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9011       hardcode_direct=yes
9012       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9013       hardcode_libdir_separator=:
9014       hardcode_shlibpath_var=no
9015       ;;
9016
9017     openbsd*)
9018       hardcode_direct=yes
9019       hardcode_shlibpath_var=no
9020       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9021         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9022         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9023         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9024         export_dynamic_flag_spec='${wl}-E'
9025       else
9026        case $host_os in
9027          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9028            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9029            hardcode_libdir_flag_spec='-R$libdir'
9030            ;;
9031          *)
9032            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9033            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9034            ;;
9035        esac
9036       fi
9037       ;;
9038
9039     os2*)
9040       hardcode_libdir_flag_spec='-L$libdir'
9041       hardcode_minus_L=yes
9042       allow_undefined_flag=unsupported
9043       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'
9044       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9045       ;;
9046
9047     osf3*)
9048       if test "$GCC" = yes; then
9049         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9050         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'
9051       else
9052         allow_undefined_flag=' -expect_unresolved \*'
9053         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'
9054       fi
9055       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9056       hardcode_libdir_separator=:
9057       ;;
9058
9059     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9060       if test "$GCC" = yes; then
9061         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9062         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'
9063         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9064       else
9065         allow_undefined_flag=' -expect_unresolved \*'
9066         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'
9067         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9068         $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'
9069
9070         # Both c and cxx compiler support -rpath directly
9071         hardcode_libdir_flag_spec='-rpath $libdir'
9072       fi
9073       hardcode_libdir_separator=:
9074       ;;
9075
9076     solaris*)
9077       no_undefined_flag=' -z text'
9078       if test "$GCC" = yes; then
9079         wlarc='${wl}'
9080         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9081         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9082           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9083       else
9084         wlarc=''
9085         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9086         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9087         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9088       fi
9089       hardcode_libdir_flag_spec='-R$libdir'
9090       hardcode_shlibpath_var=no
9091       case $host_os in
9092       solaris2.[0-5] | solaris2.[0-5].*) ;;
9093       *)
9094         # The compiler driver will combine linker options so we
9095         # cannot just pass the convience library names through
9096         # without $wl, iff we do not link with $LD.
9097         # Luckily, gcc supports the same syntax we need for Sun Studio.
9098         # Supported since Solaris 2.6 (maybe 2.5.1?)
9099         case $wlarc in
9100         '')
9101           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9102         *)
9103           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' ;;
9104         esac ;;
9105       esac
9106       link_all_deplibs=yes
9107       ;;
9108
9109     sunos4*)
9110       if test "x$host_vendor" = xsequent; then
9111         # Use $CC to link under sequent, because it throws in some extra .o
9112         # files that make .init and .fini sections work.
9113         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9114       else
9115         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9116       fi
9117       hardcode_libdir_flag_spec='-L$libdir'
9118       hardcode_direct=yes
9119       hardcode_minus_L=yes
9120       hardcode_shlibpath_var=no
9121       ;;
9122
9123     sysv4)
9124       case $host_vendor in
9125         sni)
9126           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9127           hardcode_direct=yes # is this really true???
9128         ;;
9129         siemens)
9130           ## LD is ld it makes a PLAMLIB
9131           ## CC just makes a GrossModule.
9132           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9133           reload_cmds='$CC -r -o $output$reload_objs'
9134           hardcode_direct=no
9135         ;;
9136         motorola)
9137           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9138           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9139         ;;
9140       esac
9141       runpath_var='LD_RUN_PATH'
9142       hardcode_shlibpath_var=no
9143       ;;
9144
9145     sysv4.3*)
9146       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9147       hardcode_shlibpath_var=no
9148       export_dynamic_flag_spec='-Bexport'
9149       ;;
9150
9151     sysv4*MP*)
9152       if test -d /usr/nec; then
9153         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9154         hardcode_shlibpath_var=no
9155         runpath_var=LD_RUN_PATH
9156         hardcode_runpath_var=yes
9157         ld_shlibs=yes
9158       fi
9159       ;;
9160
9161     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9162       no_undefined_flag='${wl}-z,text'
9163       archive_cmds_need_lc=no
9164       hardcode_shlibpath_var=no
9165       runpath_var='LD_RUN_PATH'
9166
9167       if test "$GCC" = yes; then
9168         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9169         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9170       else
9171         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9172         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9173       fi
9174       ;;
9175
9176     sysv5* | sco3.2v5* | sco5v6*)
9177       # Note: We can NOT use -z defs as we might desire, because we do not
9178       # link with -lc, and that would cause any symbols used from libc to
9179       # always be unresolved, which means just about no library would
9180       # ever link correctly.  If we're not using GNU ld we use -z text
9181       # though, which does catch some bad symbols but isn't as heavy-handed
9182       # as -z defs.
9183       no_undefined_flag='${wl}-z,text'
9184       allow_undefined_flag='${wl}-z,nodefs'
9185       archive_cmds_need_lc=no
9186       hardcode_shlibpath_var=no
9187       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9188       hardcode_libdir_separator=':'
9189       link_all_deplibs=yes
9190       export_dynamic_flag_spec='${wl}-Bexport'
9191       runpath_var='LD_RUN_PATH'
9192
9193       if test "$GCC" = yes; then
9194         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9195         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9196       else
9197         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9198         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9199       fi
9200       ;;
9201
9202     uts4*)
9203       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9204       hardcode_libdir_flag_spec='-L$libdir'
9205       hardcode_shlibpath_var=no
9206       ;;
9207
9208     *)
9209       ld_shlibs=no
9210       ;;
9211     esac
9212   fi
9213
9214 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9215 echo "${ECHO_T}$ld_shlibs" >&6; }
9216 test "$ld_shlibs" = no && can_build_shared=no
9217
9218 #
9219 # Do we need to explicitly link libc?
9220 #
9221 case "x$archive_cmds_need_lc" in
9222 x|xyes)
9223   # Assume -lc should be added
9224   archive_cmds_need_lc=yes
9225
9226   if test "$enable_shared" = yes && test "$GCC" = yes; then
9227     case $archive_cmds in
9228     *'~'*)
9229       # FIXME: we may have to deal with multi-command sequences.
9230       ;;
9231     '$CC '*)
9232       # Test whether the compiler implicitly links with -lc since on some
9233       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9234       # to ld, don't add -lc before -lgcc.
9235       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9236 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9237       $rm conftest*
9238       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9239
9240       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9241   (eval $ac_compile) 2>&5
9242   ac_status=$?
9243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244   (exit $ac_status); } 2>conftest.err; then
9245         soname=conftest
9246         lib=conftest
9247         libobjs=conftest.$ac_objext
9248         deplibs=
9249         wl=$lt_prog_compiler_wl
9250         pic_flag=$lt_prog_compiler_pic
9251         compiler_flags=-v
9252         linker_flags=-v
9253         verstring=
9254         output_objdir=.
9255         libname=conftest
9256         lt_save_allow_undefined_flag=$allow_undefined_flag
9257         allow_undefined_flag=
9258         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9259   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9260   ac_status=$?
9261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262   (exit $ac_status); }
9263         then
9264           archive_cmds_need_lc=no
9265         else
9266           archive_cmds_need_lc=yes
9267         fi
9268         allow_undefined_flag=$lt_save_allow_undefined_flag
9269       else
9270         cat conftest.err 1>&5
9271       fi
9272       $rm conftest*
9273       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9274 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9275       ;;
9276     esac
9277   fi
9278   ;;
9279 esac
9280
9281 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9282 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9283 library_names_spec=
9284 libname_spec='lib$name'
9285 soname_spec=
9286 shrext_cmds=".so"
9287 postinstall_cmds=
9288 postuninstall_cmds=
9289 finish_cmds=
9290 finish_eval=
9291 shlibpath_var=
9292 shlibpath_overrides_runpath=unknown
9293 version_type=none
9294 dynamic_linker="$host_os ld.so"
9295 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9296 if test "$GCC" = yes; then
9297   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9298   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9299     # if the path contains ";" then we assume it to be the separator
9300     # otherwise default to the standard path separator (i.e. ":") - it is
9301     # assumed that no part of a normal pathname contains ";" but that should
9302     # okay in the real world where ";" in dirpaths is itself problematic.
9303     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9304   else
9305     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9306   fi
9307 else
9308   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9309 fi
9310 need_lib_prefix=unknown
9311 hardcode_into_libs=no
9312
9313 # when you set need_version to no, make sure it does not cause -set_version
9314 # flags to be left without arguments
9315 need_version=unknown
9316
9317 case $host_os in
9318 aix3*)
9319   version_type=linux
9320   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9321   shlibpath_var=LIBPATH
9322
9323   # AIX 3 has no versioning support, so we append a major version to the name.
9324   soname_spec='${libname}${release}${shared_ext}$major'
9325   ;;
9326
9327 aix4* | aix5*)
9328   version_type=linux
9329   need_lib_prefix=no
9330   need_version=no
9331   hardcode_into_libs=yes
9332   if test "$host_cpu" = ia64; then
9333     # AIX 5 supports IA64
9334     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9335     shlibpath_var=LD_LIBRARY_PATH
9336   else
9337     # With GCC up to 2.95.x, collect2 would create an import file
9338     # for dependence libraries.  The import file would start with
9339     # the line `#! .'.  This would cause the generated library to
9340     # depend on `.', always an invalid library.  This was fixed in
9341     # development snapshots of GCC prior to 3.0.
9342     case $host_os in
9343       aix4 | aix4.[01] | aix4.[01].*)
9344       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9345            echo ' yes '
9346            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9347         :
9348       else
9349         can_build_shared=no
9350       fi
9351       ;;
9352     esac
9353     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9354     # soname into executable. Probably we can add versioning support to
9355     # collect2, so additional links can be useful in future.
9356     if test "$aix_use_runtimelinking" = yes; then
9357       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9358       # instead of lib<name>.a to let people know that these are not
9359       # typical AIX shared libraries.
9360       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9361     else
9362       # We preserve .a as extension for shared libraries through AIX4.2
9363       # and later when we are not doing run time linking.
9364       library_names_spec='${libname}${release}.a $libname.a'
9365       soname_spec='${libname}${release}${shared_ext}$major'
9366     fi
9367     shlibpath_var=LIBPATH
9368   fi
9369   ;;
9370
9371 amigaos*)
9372   library_names_spec='$libname.ixlibrary $libname.a'
9373   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9374   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'
9375   ;;
9376
9377 beos*)
9378   library_names_spec='${libname}${shared_ext}'
9379   dynamic_linker="$host_os ld.so"
9380   shlibpath_var=LIBRARY_PATH
9381   ;;
9382
9383 bsdi[45]*)
9384   version_type=linux
9385   need_version=no
9386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9387   soname_spec='${libname}${release}${shared_ext}$major'
9388   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9389   shlibpath_var=LD_LIBRARY_PATH
9390   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9391   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9392   # the default ld.so.conf also contains /usr/contrib/lib and
9393   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9394   # libtool to hard-code these into programs
9395   ;;
9396
9397 cygwin* | mingw* | pw32*)
9398   version_type=windows
9399   shrext_cmds=".dll"
9400   need_version=no
9401   need_lib_prefix=no
9402
9403   case $GCC,$host_os in
9404   yes,cygwin* | yes,mingw* | yes,pw32*)
9405     library_names_spec='$libname.dll.a'
9406     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9407     postinstall_cmds='base_file=`basename \${file}`~
9408       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9409       dldir=$destdir/`dirname \$dlpath`~
9410       test -d \$dldir || mkdir -p \$dldir~
9411       $install_prog $dir/$dlname \$dldir/$dlname~
9412       chmod a+x \$dldir/$dlname'
9413     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9414       dlpath=$dir/\$dldll~
9415        $rm \$dlpath'
9416     shlibpath_overrides_runpath=yes
9417
9418     case $host_os in
9419     cygwin*)
9420       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9421       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9422       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9423       ;;
9424     mingw*)
9425       # MinGW DLLs use traditional 'lib' prefix
9426       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9427       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9428       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9429         # It is most probably a Windows format PATH printed by
9430         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9431         # path with ; separators, and with drive letters. We can handle the
9432         # drive letters (cygwin fileutils understands them), so leave them,
9433         # especially as we might pass files found there to a mingw objdump,
9434         # which wouldn't understand a cygwinified path. Ahh.
9435         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9436       else
9437         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9438       fi
9439       ;;
9440     pw32*)
9441       # pw32 DLLs use 'pw' prefix rather than 'lib'
9442       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9443       ;;
9444     esac
9445     ;;
9446
9447   *)
9448     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9449     ;;
9450   esac
9451   dynamic_linker='Win32 ld.exe'
9452   # FIXME: first we should search . and the directory the executable is in
9453   shlibpath_var=PATH
9454   ;;
9455
9456 darwin* | rhapsody*)
9457   dynamic_linker="$host_os dyld"
9458   version_type=darwin
9459   need_lib_prefix=no
9460   need_version=no
9461   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9462   soname_spec='${libname}${release}${major}$shared_ext'
9463   shlibpath_overrides_runpath=yes
9464   shlibpath_var=DYLD_LIBRARY_PATH
9465   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9466   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9467   if test "$GCC" = yes; then
9468     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"`
9469   else
9470     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9471   fi
9472   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9473   ;;
9474
9475 dgux*)
9476   version_type=linux
9477   need_lib_prefix=no
9478   need_version=no
9479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9480   soname_spec='${libname}${release}${shared_ext}$major'
9481   shlibpath_var=LD_LIBRARY_PATH
9482   ;;
9483
9484 freebsd1*)
9485   dynamic_linker=no
9486   ;;
9487
9488 freebsd* | dragonfly*)
9489   # DragonFly does not have aout.  When/if they implement a new
9490   # versioning mechanism, adjust this.
9491   if test -x /usr/bin/objformat; then
9492     objformat=`/usr/bin/objformat`
9493   else
9494     case $host_os in
9495     freebsd[123]*) objformat=aout ;;
9496     *) objformat=elf ;;
9497     esac
9498   fi
9499   version_type=freebsd-$objformat
9500   case $version_type in
9501     freebsd-elf*)
9502       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9503       need_version=no
9504       need_lib_prefix=no
9505       ;;
9506     freebsd-*)
9507       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9508       need_version=yes
9509       ;;
9510   esac
9511   shlibpath_var=LD_LIBRARY_PATH
9512   case $host_os in
9513   freebsd2*)
9514     shlibpath_overrides_runpath=yes
9515     ;;
9516   freebsd3.[01]* | freebsdelf3.[01]*)
9517     shlibpath_overrides_runpath=yes
9518     hardcode_into_libs=yes
9519     ;;
9520   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9521   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9522     shlibpath_overrides_runpath=no
9523     hardcode_into_libs=yes
9524     ;;
9525   freebsd*) # from 4.6 on
9526     shlibpath_overrides_runpath=yes
9527     hardcode_into_libs=yes
9528     ;;
9529   esac
9530   ;;
9531
9532 gnu*)
9533   version_type=linux
9534   need_lib_prefix=no
9535   need_version=no
9536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9537   soname_spec='${libname}${release}${shared_ext}$major'
9538   shlibpath_var=LD_LIBRARY_PATH
9539   hardcode_into_libs=yes
9540   ;;
9541
9542 hpux9* | hpux10* | hpux11*)
9543   # Give a soname corresponding to the major version so that dld.sl refuses to
9544   # link against other versions.
9545   version_type=sunos
9546   need_lib_prefix=no
9547   need_version=no
9548   case $host_cpu in
9549   ia64*)
9550     shrext_cmds='.so'
9551     hardcode_into_libs=yes
9552     dynamic_linker="$host_os dld.so"
9553     shlibpath_var=LD_LIBRARY_PATH
9554     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9555     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9556     soname_spec='${libname}${release}${shared_ext}$major'
9557     if test "X$HPUX_IA64_MODE" = X32; then
9558       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9559     else
9560       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9561     fi
9562     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9563     ;;
9564    hppa*64*)
9565      shrext_cmds='.sl'
9566      hardcode_into_libs=yes
9567      dynamic_linker="$host_os dld.sl"
9568      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9569      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9570      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9571      soname_spec='${libname}${release}${shared_ext}$major'
9572      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9573      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9574      ;;
9575    *)
9576     shrext_cmds='.sl'
9577     dynamic_linker="$host_os dld.sl"
9578     shlibpath_var=SHLIB_PATH
9579     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9580     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9581     soname_spec='${libname}${release}${shared_ext}$major'
9582     ;;
9583   esac
9584   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9585   postinstall_cmds='chmod 555 $lib'
9586   ;;
9587
9588 interix3*)
9589   version_type=linux
9590   need_lib_prefix=no
9591   need_version=no
9592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9593   soname_spec='${libname}${release}${shared_ext}$major'
9594   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9595   shlibpath_var=LD_LIBRARY_PATH
9596   shlibpath_overrides_runpath=no
9597   hardcode_into_libs=yes
9598   ;;
9599
9600 irix5* | irix6* | nonstopux*)
9601   case $host_os in
9602     nonstopux*) version_type=nonstopux ;;
9603     *)
9604         if test "$lt_cv_prog_gnu_ld" = yes; then
9605                 version_type=linux
9606         else
9607                 version_type=irix
9608         fi ;;
9609   esac
9610   need_lib_prefix=no
9611   need_version=no
9612   soname_spec='${libname}${release}${shared_ext}$major'
9613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9614   case $host_os in
9615   irix5* | nonstopux*)
9616     libsuff= shlibsuff=
9617     ;;
9618   *)
9619     case $LD in # libtool.m4 will add one of these switches to LD
9620     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9621       libsuff= shlibsuff= libmagic=32-bit;;
9622     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9623       libsuff=32 shlibsuff=N32 libmagic=N32;;
9624     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9625       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9626     *) libsuff= shlibsuff= libmagic=never-match;;
9627     esac
9628     ;;
9629   esac
9630   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9631   shlibpath_overrides_runpath=no
9632   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9633   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9634   hardcode_into_libs=yes
9635   ;;
9636
9637 # No shared lib support for Linux oldld, aout, or coff.
9638 linux*oldld* | linux*aout* | linux*coff*)
9639   dynamic_linker=no
9640   ;;
9641
9642 # This must be Linux ELF.
9643 linux* | k*bsd*-gnu)
9644   version_type=linux
9645   need_lib_prefix=no
9646   need_version=no
9647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9648   soname_spec='${libname}${release}${shared_ext}$major'
9649   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9650   shlibpath_var=LD_LIBRARY_PATH
9651   shlibpath_overrides_runpath=no
9652   # This implies no fast_install, which is unacceptable.
9653   # Some rework will be needed to allow for fast_install
9654   # before this can be enabled.
9655   hardcode_into_libs=yes
9656
9657   # Append ld.so.conf contents to the search path
9658   if test -f /etc/ld.so.conf; then
9659     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' ' '`
9660     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9661   fi
9662
9663   # We used to test for /lib/ld.so.1 and disable shared libraries on
9664   # powerpc, because MkLinux only supported shared libraries with the
9665   # GNU dynamic linker.  Since this was broken with cross compilers,
9666   # most powerpc-linux boxes support dynamic linking these days and
9667   # people can always --disable-shared, the test was removed, and we
9668   # assume the GNU/Linux dynamic linker is in use.
9669   dynamic_linker='GNU/Linux ld.so'
9670   ;;
9671
9672 netbsdelf*-gnu)
9673   version_type=linux
9674   need_lib_prefix=no
9675   need_version=no
9676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9677   soname_spec='${libname}${release}${shared_ext}$major'
9678   shlibpath_var=LD_LIBRARY_PATH
9679   shlibpath_overrides_runpath=no
9680   hardcode_into_libs=yes
9681   dynamic_linker='NetBSD ld.elf_so'
9682   ;;
9683
9684 netbsd*)
9685   version_type=sunos
9686   need_lib_prefix=no
9687   need_version=no
9688   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9689     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9690     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9691     dynamic_linker='NetBSD (a.out) ld.so'
9692   else
9693     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9694     soname_spec='${libname}${release}${shared_ext}$major'
9695     dynamic_linker='NetBSD ld.elf_so'
9696   fi
9697   shlibpath_var=LD_LIBRARY_PATH
9698   shlibpath_overrides_runpath=yes
9699   hardcode_into_libs=yes
9700   ;;
9701
9702 newsos6)
9703   version_type=linux
9704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9705   shlibpath_var=LD_LIBRARY_PATH
9706   shlibpath_overrides_runpath=yes
9707   ;;
9708
9709 nto-qnx*)
9710   version_type=linux
9711   need_lib_prefix=no
9712   need_version=no
9713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9714   soname_spec='${libname}${release}${shared_ext}$major'
9715   shlibpath_var=LD_LIBRARY_PATH
9716   shlibpath_overrides_runpath=yes
9717   ;;
9718
9719 openbsd*)
9720   version_type=sunos
9721   sys_lib_dlsearch_path_spec="/usr/lib"
9722   need_lib_prefix=no
9723   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9724   case $host_os in
9725     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9726     *)                         need_version=no  ;;
9727   esac
9728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9729   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9730   shlibpath_var=LD_LIBRARY_PATH
9731   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9732     case $host_os in
9733       openbsd2.[89] | openbsd2.[89].*)
9734         shlibpath_overrides_runpath=no
9735         ;;
9736       *)
9737         shlibpath_overrides_runpath=yes
9738         ;;
9739       esac
9740   else
9741     shlibpath_overrides_runpath=yes
9742   fi
9743   ;;
9744
9745 os2*)
9746   libname_spec='$name'
9747   shrext_cmds=".dll"
9748   need_lib_prefix=no
9749   library_names_spec='$libname${shared_ext} $libname.a'
9750   dynamic_linker='OS/2 ld.exe'
9751   shlibpath_var=LIBPATH
9752   ;;
9753
9754 osf3* | osf4* | osf5*)
9755   version_type=osf
9756   need_lib_prefix=no
9757   need_version=no
9758   soname_spec='${libname}${release}${shared_ext}$major'
9759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9760   shlibpath_var=LD_LIBRARY_PATH
9761   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9762   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9763   ;;
9764
9765 solaris*)
9766   version_type=linux
9767   need_lib_prefix=no
9768   need_version=no
9769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9770   soname_spec='${libname}${release}${shared_ext}$major'
9771   shlibpath_var=LD_LIBRARY_PATH
9772   shlibpath_overrides_runpath=yes
9773   hardcode_into_libs=yes
9774   # ldd complains unless libraries are executable
9775   postinstall_cmds='chmod +x $lib'
9776   ;;
9777
9778 sunos4*)
9779   version_type=sunos
9780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9781   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9782   shlibpath_var=LD_LIBRARY_PATH
9783   shlibpath_overrides_runpath=yes
9784   if test "$with_gnu_ld" = yes; then
9785     need_lib_prefix=no
9786   fi
9787   need_version=yes
9788   ;;
9789
9790 sysv4 | sysv4.3*)
9791   version_type=linux
9792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9793   soname_spec='${libname}${release}${shared_ext}$major'
9794   shlibpath_var=LD_LIBRARY_PATH
9795   case $host_vendor in
9796     sni)
9797       shlibpath_overrides_runpath=no
9798       need_lib_prefix=no
9799       export_dynamic_flag_spec='${wl}-Blargedynsym'
9800       runpath_var=LD_RUN_PATH
9801       ;;
9802     siemens)
9803       need_lib_prefix=no
9804       ;;
9805     motorola)
9806       need_lib_prefix=no
9807       need_version=no
9808       shlibpath_overrides_runpath=no
9809       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9810       ;;
9811   esac
9812   ;;
9813
9814 sysv4*MP*)
9815   if test -d /usr/nec ;then
9816     version_type=linux
9817     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9818     soname_spec='$libname${shared_ext}.$major'
9819     shlibpath_var=LD_LIBRARY_PATH
9820   fi
9821   ;;
9822
9823 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9824   version_type=freebsd-elf
9825   need_lib_prefix=no
9826   need_version=no
9827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9828   soname_spec='${libname}${release}${shared_ext}$major'
9829   shlibpath_var=LD_LIBRARY_PATH
9830   hardcode_into_libs=yes
9831   if test "$with_gnu_ld" = yes; then
9832     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9833     shlibpath_overrides_runpath=no
9834   else
9835     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9836     shlibpath_overrides_runpath=yes
9837     case $host_os in
9838       sco3.2v5*)
9839         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9840         ;;
9841     esac
9842   fi
9843   sys_lib_dlsearch_path_spec='/usr/lib'
9844   ;;
9845
9846 uts4*)
9847   version_type=linux
9848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9849   soname_spec='${libname}${release}${shared_ext}$major'
9850   shlibpath_var=LD_LIBRARY_PATH
9851   ;;
9852
9853 *)
9854   dynamic_linker=no
9855   ;;
9856 esac
9857 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9858 echo "${ECHO_T}$dynamic_linker" >&6; }
9859 test "$dynamic_linker" = no && can_build_shared=no
9860
9861 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9862 if test "$GCC" = yes; then
9863   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9864 fi
9865
9866 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9867 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9868 hardcode_action=
9869 if test -n "$hardcode_libdir_flag_spec" || \
9870    test -n "$runpath_var" || \
9871    test "X$hardcode_automatic" = "Xyes" ; then
9872
9873   # We can hardcode non-existant directories.
9874   if test "$hardcode_direct" != no &&
9875      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9876      # have to relink, otherwise we might link with an installed library
9877      # when we should be linking with a yet-to-be-installed one
9878      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9879      test "$hardcode_minus_L" != no; then
9880     # Linking always hardcodes the temporary library directory.
9881     hardcode_action=relink
9882   else
9883     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9884     hardcode_action=immediate
9885   fi
9886 else
9887   # We cannot hardcode anything, or else we can only hardcode existing
9888   # directories.
9889   hardcode_action=unsupported
9890 fi
9891 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9892 echo "${ECHO_T}$hardcode_action" >&6; }
9893
9894 if test "$hardcode_action" = relink; then
9895   # Fast installation is not supported
9896   enable_fast_install=no
9897 elif test "$shlibpath_overrides_runpath" = yes ||
9898      test "$enable_shared" = no; then
9899   # Fast installation is not necessary
9900   enable_fast_install=needless
9901 fi
9902
9903 striplib=
9904 old_striplib=
9905 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9906 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9907 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9908   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9909   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9910   { echo "$as_me:$LINENO: result: yes" >&5
9911 echo "${ECHO_T}yes" >&6; }
9912 else
9913 # FIXME - insert some real tests, host_os isn't really good enough
9914   case $host_os in
9915    darwin*)
9916        if test -n "$STRIP" ; then
9917          striplib="$STRIP -x"
9918          { echo "$as_me:$LINENO: result: yes" >&5
9919 echo "${ECHO_T}yes" >&6; }
9920        else
9921   { echo "$as_me:$LINENO: result: no" >&5
9922 echo "${ECHO_T}no" >&6; }
9923 fi
9924        ;;
9925    *)
9926   { echo "$as_me:$LINENO: result: no" >&5
9927 echo "${ECHO_T}no" >&6; }
9928     ;;
9929   esac
9930 fi
9931
9932 if test "x$enable_dlopen" != xyes; then
9933   enable_dlopen=unknown
9934   enable_dlopen_self=unknown
9935   enable_dlopen_self_static=unknown
9936 else
9937   lt_cv_dlopen=no
9938   lt_cv_dlopen_libs=
9939
9940   case $host_os in
9941   beos*)
9942     lt_cv_dlopen="load_add_on"
9943     lt_cv_dlopen_libs=
9944     lt_cv_dlopen_self=yes
9945     ;;
9946
9947   mingw* | pw32*)
9948     lt_cv_dlopen="LoadLibrary"
9949     lt_cv_dlopen_libs=
9950    ;;
9951
9952   cygwin*)
9953     lt_cv_dlopen="dlopen"
9954     lt_cv_dlopen_libs=
9955    ;;
9956
9957   darwin*)
9958   # if libdl is installed we need to link against it
9959     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9960 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9961 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9962   echo $ECHO_N "(cached) $ECHO_C" >&6
9963 else
9964   ac_check_lib_save_LIBS=$LIBS
9965 LIBS="-ldl  $LIBS"
9966 cat >conftest.$ac_ext <<_ACEOF
9967 /* confdefs.h.  */
9968 _ACEOF
9969 cat confdefs.h >>conftest.$ac_ext
9970 cat >>conftest.$ac_ext <<_ACEOF
9971 /* end confdefs.h.  */
9972
9973 /* Override any GCC internal prototype to avoid an error.
9974    Use char because int might match the return type of a GCC
9975    builtin and then its argument prototype would still apply.  */
9976 #ifdef __cplusplus
9977 extern "C"
9978 #endif
9979 char dlopen ();
9980 int
9981 main ()
9982 {
9983 return dlopen ();
9984   ;
9985   return 0;
9986 }
9987 _ACEOF
9988 rm -f conftest.$ac_objext conftest$ac_exeext
9989 if { (ac_try="$ac_link"
9990 case "(($ac_try" in
9991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9992   *) ac_try_echo=$ac_try;;
9993 esac
9994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9995   (eval "$ac_link") 2>conftest.er1
9996   ac_status=$?
9997   grep -v '^ *+' conftest.er1 >conftest.err
9998   rm -f conftest.er1
9999   cat conftest.err >&5
10000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001   (exit $ac_status); } &&
10002          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10003   { (case "(($ac_try" in
10004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10005   *) ac_try_echo=$ac_try;;
10006 esac
10007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10008   (eval "$ac_try") 2>&5
10009   ac_status=$?
10010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011   (exit $ac_status); }; } &&
10012          { ac_try='test -s conftest$ac_exeext'
10013   { (case "(($ac_try" in
10014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10015   *) ac_try_echo=$ac_try;;
10016 esac
10017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10018   (eval "$ac_try") 2>&5
10019   ac_status=$?
10020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021   (exit $ac_status); }; }; then
10022   ac_cv_lib_dl_dlopen=yes
10023 else
10024   echo "$as_me: failed program was:" >&5
10025 sed 's/^/| /' conftest.$ac_ext >&5
10026
10027         ac_cv_lib_dl_dlopen=no
10028 fi
10029
10030 rm -f core conftest.err conftest.$ac_objext \
10031       conftest$ac_exeext conftest.$ac_ext
10032 LIBS=$ac_check_lib_save_LIBS
10033 fi
10034 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10035 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10036 if test $ac_cv_lib_dl_dlopen = yes; then
10037   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10038 else
10039
10040     lt_cv_dlopen="dyld"
10041     lt_cv_dlopen_libs=
10042     lt_cv_dlopen_self=yes
10043
10044 fi
10045
10046    ;;
10047
10048   *)
10049     { echo "$as_me:$LINENO: checking for shl_load" >&5
10050 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10051 if test "${ac_cv_func_shl_load+set}" = set; then
10052   echo $ECHO_N "(cached) $ECHO_C" >&6
10053 else
10054   cat >conftest.$ac_ext <<_ACEOF
10055 /* confdefs.h.  */
10056 _ACEOF
10057 cat confdefs.h >>conftest.$ac_ext
10058 cat >>conftest.$ac_ext <<_ACEOF
10059 /* end confdefs.h.  */
10060 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10061    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10062 #define shl_load innocuous_shl_load
10063
10064 /* System header to define __stub macros and hopefully few prototypes,
10065     which can conflict with char shl_load (); below.
10066     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10067     <limits.h> exists even on freestanding compilers.  */
10068
10069 #ifdef __STDC__
10070 # include <limits.h>
10071 #else
10072 # include <assert.h>
10073 #endif
10074
10075 #undef shl_load
10076
10077 /* Override any GCC internal prototype to avoid an error.
10078    Use char because int might match the return type of a GCC
10079    builtin and then its argument prototype would still apply.  */
10080 #ifdef __cplusplus
10081 extern "C"
10082 #endif
10083 char shl_load ();
10084 /* The GNU C library defines this for functions which it implements
10085     to always fail with ENOSYS.  Some functions are actually named
10086     something starting with __ and the normal name is an alias.  */
10087 #if defined __stub_shl_load || defined __stub___shl_load
10088 choke me
10089 #endif
10090
10091 int
10092 main ()
10093 {
10094 return shl_load ();
10095   ;
10096   return 0;
10097 }
10098 _ACEOF
10099 rm -f conftest.$ac_objext conftest$ac_exeext
10100 if { (ac_try="$ac_link"
10101 case "(($ac_try" in
10102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10103   *) ac_try_echo=$ac_try;;
10104 esac
10105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10106   (eval "$ac_link") 2>conftest.er1
10107   ac_status=$?
10108   grep -v '^ *+' conftest.er1 >conftest.err
10109   rm -f conftest.er1
10110   cat conftest.err >&5
10111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112   (exit $ac_status); } &&
10113          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10114   { (case "(($ac_try" in
10115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10116   *) ac_try_echo=$ac_try;;
10117 esac
10118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10119   (eval "$ac_try") 2>&5
10120   ac_status=$?
10121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122   (exit $ac_status); }; } &&
10123          { ac_try='test -s conftest$ac_exeext'
10124   { (case "(($ac_try" in
10125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10126   *) ac_try_echo=$ac_try;;
10127 esac
10128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10129   (eval "$ac_try") 2>&5
10130   ac_status=$?
10131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132   (exit $ac_status); }; }; then
10133   ac_cv_func_shl_load=yes
10134 else
10135   echo "$as_me: failed program was:" >&5
10136 sed 's/^/| /' conftest.$ac_ext >&5
10137
10138         ac_cv_func_shl_load=no
10139 fi
10140
10141 rm -f core conftest.err conftest.$ac_objext \
10142       conftest$ac_exeext conftest.$ac_ext
10143 fi
10144 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10145 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10146 if test $ac_cv_func_shl_load = yes; then
10147   lt_cv_dlopen="shl_load"
10148 else
10149   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10150 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10151 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10152   echo $ECHO_N "(cached) $ECHO_C" >&6
10153 else
10154   ac_check_lib_save_LIBS=$LIBS
10155 LIBS="-ldld  $LIBS"
10156 cat >conftest.$ac_ext <<_ACEOF
10157 /* confdefs.h.  */
10158 _ACEOF
10159 cat confdefs.h >>conftest.$ac_ext
10160 cat >>conftest.$ac_ext <<_ACEOF
10161 /* end confdefs.h.  */
10162
10163 /* Override any GCC internal prototype to avoid an error.
10164    Use char because int might match the return type of a GCC
10165    builtin and then its argument prototype would still apply.  */
10166 #ifdef __cplusplus
10167 extern "C"
10168 #endif
10169 char shl_load ();
10170 int
10171 main ()
10172 {
10173 return shl_load ();
10174   ;
10175   return 0;
10176 }
10177 _ACEOF
10178 rm -f conftest.$ac_objext conftest$ac_exeext
10179 if { (ac_try="$ac_link"
10180 case "(($ac_try" in
10181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10182   *) ac_try_echo=$ac_try;;
10183 esac
10184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10185   (eval "$ac_link") 2>conftest.er1
10186   ac_status=$?
10187   grep -v '^ *+' conftest.er1 >conftest.err
10188   rm -f conftest.er1
10189   cat conftest.err >&5
10190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191   (exit $ac_status); } &&
10192          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10193   { (case "(($ac_try" in
10194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10195   *) ac_try_echo=$ac_try;;
10196 esac
10197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10198   (eval "$ac_try") 2>&5
10199   ac_status=$?
10200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201   (exit $ac_status); }; } &&
10202          { ac_try='test -s conftest$ac_exeext'
10203   { (case "(($ac_try" in
10204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205   *) ac_try_echo=$ac_try;;
10206 esac
10207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10208   (eval "$ac_try") 2>&5
10209   ac_status=$?
10210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211   (exit $ac_status); }; }; then
10212   ac_cv_lib_dld_shl_load=yes
10213 else
10214   echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.$ac_ext >&5
10216
10217         ac_cv_lib_dld_shl_load=no
10218 fi
10219
10220 rm -f core conftest.err conftest.$ac_objext \
10221       conftest$ac_exeext conftest.$ac_ext
10222 LIBS=$ac_check_lib_save_LIBS
10223 fi
10224 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10225 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10226 if test $ac_cv_lib_dld_shl_load = yes; then
10227   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10228 else
10229   { echo "$as_me:$LINENO: checking for dlopen" >&5
10230 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10231 if test "${ac_cv_func_dlopen+set}" = set; then
10232   echo $ECHO_N "(cached) $ECHO_C" >&6
10233 else
10234   cat >conftest.$ac_ext <<_ACEOF
10235 /* confdefs.h.  */
10236 _ACEOF
10237 cat confdefs.h >>conftest.$ac_ext
10238 cat >>conftest.$ac_ext <<_ACEOF
10239 /* end confdefs.h.  */
10240 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10241    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10242 #define dlopen innocuous_dlopen
10243
10244 /* System header to define __stub macros and hopefully few prototypes,
10245     which can conflict with char dlopen (); below.
10246     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10247     <limits.h> exists even on freestanding compilers.  */
10248
10249 #ifdef __STDC__
10250 # include <limits.h>
10251 #else
10252 # include <assert.h>
10253 #endif
10254
10255 #undef dlopen
10256
10257 /* Override any GCC internal prototype to avoid an error.
10258    Use char because int might match the return type of a GCC
10259    builtin and then its argument prototype would still apply.  */
10260 #ifdef __cplusplus
10261 extern "C"
10262 #endif
10263 char dlopen ();
10264 /* The GNU C library defines this for functions which it implements
10265     to always fail with ENOSYS.  Some functions are actually named
10266     something starting with __ and the normal name is an alias.  */
10267 #if defined __stub_dlopen || defined __stub___dlopen
10268 choke me
10269 #endif
10270
10271 int
10272 main ()
10273 {
10274 return dlopen ();
10275   ;
10276   return 0;
10277 }
10278 _ACEOF
10279 rm -f conftest.$ac_objext conftest$ac_exeext
10280 if { (ac_try="$ac_link"
10281 case "(($ac_try" in
10282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10283   *) ac_try_echo=$ac_try;;
10284 esac
10285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10286   (eval "$ac_link") 2>conftest.er1
10287   ac_status=$?
10288   grep -v '^ *+' conftest.er1 >conftest.err
10289   rm -f conftest.er1
10290   cat conftest.err >&5
10291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292   (exit $ac_status); } &&
10293          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10294   { (case "(($ac_try" in
10295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10296   *) ac_try_echo=$ac_try;;
10297 esac
10298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10299   (eval "$ac_try") 2>&5
10300   ac_status=$?
10301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302   (exit $ac_status); }; } &&
10303          { ac_try='test -s conftest$ac_exeext'
10304   { (case "(($ac_try" in
10305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10306   *) ac_try_echo=$ac_try;;
10307 esac
10308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10309   (eval "$ac_try") 2>&5
10310   ac_status=$?
10311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312   (exit $ac_status); }; }; then
10313   ac_cv_func_dlopen=yes
10314 else
10315   echo "$as_me: failed program was:" >&5
10316 sed 's/^/| /' conftest.$ac_ext >&5
10317
10318         ac_cv_func_dlopen=no
10319 fi
10320
10321 rm -f core conftest.err conftest.$ac_objext \
10322       conftest$ac_exeext conftest.$ac_ext
10323 fi
10324 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10325 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10326 if test $ac_cv_func_dlopen = yes; then
10327   lt_cv_dlopen="dlopen"
10328 else
10329   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10330 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10331 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10332   echo $ECHO_N "(cached) $ECHO_C" >&6
10333 else
10334   ac_check_lib_save_LIBS=$LIBS
10335 LIBS="-ldl  $LIBS"
10336 cat >conftest.$ac_ext <<_ACEOF
10337 /* confdefs.h.  */
10338 _ACEOF
10339 cat confdefs.h >>conftest.$ac_ext
10340 cat >>conftest.$ac_ext <<_ACEOF
10341 /* end confdefs.h.  */
10342
10343 /* Override any GCC internal prototype to avoid an error.
10344    Use char because int might match the return type of a GCC
10345    builtin and then its argument prototype would still apply.  */
10346 #ifdef __cplusplus
10347 extern "C"
10348 #endif
10349 char dlopen ();
10350 int
10351 main ()
10352 {
10353 return dlopen ();
10354   ;
10355   return 0;
10356 }
10357 _ACEOF
10358 rm -f conftest.$ac_objext conftest$ac_exeext
10359 if { (ac_try="$ac_link"
10360 case "(($ac_try" in
10361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362   *) ac_try_echo=$ac_try;;
10363 esac
10364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365   (eval "$ac_link") 2>conftest.er1
10366   ac_status=$?
10367   grep -v '^ *+' conftest.er1 >conftest.err
10368   rm -f conftest.er1
10369   cat conftest.err >&5
10370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371   (exit $ac_status); } &&
10372          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10373   { (case "(($ac_try" in
10374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375   *) ac_try_echo=$ac_try;;
10376 esac
10377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10378   (eval "$ac_try") 2>&5
10379   ac_status=$?
10380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381   (exit $ac_status); }; } &&
10382          { ac_try='test -s conftest$ac_exeext'
10383   { (case "(($ac_try" in
10384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10385   *) ac_try_echo=$ac_try;;
10386 esac
10387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10388   (eval "$ac_try") 2>&5
10389   ac_status=$?
10390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391   (exit $ac_status); }; }; then
10392   ac_cv_lib_dl_dlopen=yes
10393 else
10394   echo "$as_me: failed program was:" >&5
10395 sed 's/^/| /' conftest.$ac_ext >&5
10396
10397         ac_cv_lib_dl_dlopen=no
10398 fi
10399
10400 rm -f core conftest.err conftest.$ac_objext \
10401       conftest$ac_exeext conftest.$ac_ext
10402 LIBS=$ac_check_lib_save_LIBS
10403 fi
10404 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10405 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10406 if test $ac_cv_lib_dl_dlopen = yes; then
10407   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10408 else
10409   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10410 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10411 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10412   echo $ECHO_N "(cached) $ECHO_C" >&6
10413 else
10414   ac_check_lib_save_LIBS=$LIBS
10415 LIBS="-lsvld  $LIBS"
10416 cat >conftest.$ac_ext <<_ACEOF
10417 /* confdefs.h.  */
10418 _ACEOF
10419 cat confdefs.h >>conftest.$ac_ext
10420 cat >>conftest.$ac_ext <<_ACEOF
10421 /* end confdefs.h.  */
10422
10423 /* Override any GCC internal prototype to avoid an error.
10424    Use char because int might match the return type of a GCC
10425    builtin and then its argument prototype would still apply.  */
10426 #ifdef __cplusplus
10427 extern "C"
10428 #endif
10429 char dlopen ();
10430 int
10431 main ()
10432 {
10433 return dlopen ();
10434   ;
10435   return 0;
10436 }
10437 _ACEOF
10438 rm -f conftest.$ac_objext conftest$ac_exeext
10439 if { (ac_try="$ac_link"
10440 case "(($ac_try" in
10441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10442   *) ac_try_echo=$ac_try;;
10443 esac
10444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10445   (eval "$ac_link") 2>conftest.er1
10446   ac_status=$?
10447   grep -v '^ *+' conftest.er1 >conftest.err
10448   rm -f conftest.er1
10449   cat conftest.err >&5
10450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451   (exit $ac_status); } &&
10452          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10453   { (case "(($ac_try" in
10454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455   *) ac_try_echo=$ac_try;;
10456 esac
10457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10458   (eval "$ac_try") 2>&5
10459   ac_status=$?
10460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461   (exit $ac_status); }; } &&
10462          { ac_try='test -s conftest$ac_exeext'
10463   { (case "(($ac_try" in
10464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10465   *) ac_try_echo=$ac_try;;
10466 esac
10467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10468   (eval "$ac_try") 2>&5
10469   ac_status=$?
10470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471   (exit $ac_status); }; }; then
10472   ac_cv_lib_svld_dlopen=yes
10473 else
10474   echo "$as_me: failed program was:" >&5
10475 sed 's/^/| /' conftest.$ac_ext >&5
10476
10477         ac_cv_lib_svld_dlopen=no
10478 fi
10479
10480 rm -f core conftest.err conftest.$ac_objext \
10481       conftest$ac_exeext conftest.$ac_ext
10482 LIBS=$ac_check_lib_save_LIBS
10483 fi
10484 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10485 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10486 if test $ac_cv_lib_svld_dlopen = yes; then
10487   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10488 else
10489   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10490 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10491 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10492   echo $ECHO_N "(cached) $ECHO_C" >&6
10493 else
10494   ac_check_lib_save_LIBS=$LIBS
10495 LIBS="-ldld  $LIBS"
10496 cat >conftest.$ac_ext <<_ACEOF
10497 /* confdefs.h.  */
10498 _ACEOF
10499 cat confdefs.h >>conftest.$ac_ext
10500 cat >>conftest.$ac_ext <<_ACEOF
10501 /* end confdefs.h.  */
10502
10503 /* Override any GCC internal prototype to avoid an error.
10504    Use char because int might match the return type of a GCC
10505    builtin and then its argument prototype would still apply.  */
10506 #ifdef __cplusplus
10507 extern "C"
10508 #endif
10509 char dld_link ();
10510 int
10511 main ()
10512 {
10513 return dld_link ();
10514   ;
10515   return 0;
10516 }
10517 _ACEOF
10518 rm -f conftest.$ac_objext conftest$ac_exeext
10519 if { (ac_try="$ac_link"
10520 case "(($ac_try" in
10521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10522   *) ac_try_echo=$ac_try;;
10523 esac
10524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10525   (eval "$ac_link") 2>conftest.er1
10526   ac_status=$?
10527   grep -v '^ *+' conftest.er1 >conftest.err
10528   rm -f conftest.er1
10529   cat conftest.err >&5
10530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531   (exit $ac_status); } &&
10532          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10533   { (case "(($ac_try" in
10534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535   *) ac_try_echo=$ac_try;;
10536 esac
10537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10538   (eval "$ac_try") 2>&5
10539   ac_status=$?
10540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541   (exit $ac_status); }; } &&
10542          { ac_try='test -s conftest$ac_exeext'
10543   { (case "(($ac_try" in
10544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10545   *) ac_try_echo=$ac_try;;
10546 esac
10547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10548   (eval "$ac_try") 2>&5
10549   ac_status=$?
10550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551   (exit $ac_status); }; }; then
10552   ac_cv_lib_dld_dld_link=yes
10553 else
10554   echo "$as_me: failed program was:" >&5
10555 sed 's/^/| /' conftest.$ac_ext >&5
10556
10557         ac_cv_lib_dld_dld_link=no
10558 fi
10559
10560 rm -f core conftest.err conftest.$ac_objext \
10561       conftest$ac_exeext conftest.$ac_ext
10562 LIBS=$ac_check_lib_save_LIBS
10563 fi
10564 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10565 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10566 if test $ac_cv_lib_dld_dld_link = yes; then
10567   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10568 fi
10569
10570
10571 fi
10572
10573
10574 fi
10575
10576
10577 fi
10578
10579
10580 fi
10581
10582
10583 fi
10584
10585     ;;
10586   esac
10587
10588   if test "x$lt_cv_dlopen" != xno; then
10589     enable_dlopen=yes
10590   else
10591     enable_dlopen=no
10592   fi
10593
10594   case $lt_cv_dlopen in
10595   dlopen)
10596     save_CPPFLAGS="$CPPFLAGS"
10597     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10598
10599     save_LDFLAGS="$LDFLAGS"
10600     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10601
10602     save_LIBS="$LIBS"
10603     LIBS="$lt_cv_dlopen_libs $LIBS"
10604
10605     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10606 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10607 if test "${lt_cv_dlopen_self+set}" = set; then
10608   echo $ECHO_N "(cached) $ECHO_C" >&6
10609 else
10610           if test "$cross_compiling" = yes; then :
10611   lt_cv_dlopen_self=cross
10612 else
10613   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10614   lt_status=$lt_dlunknown
10615   cat > conftest.$ac_ext <<EOF
10616 #line 10616 "configure"
10617 #include "confdefs.h"
10618
10619 #if HAVE_DLFCN_H
10620 #include <dlfcn.h>
10621 #endif
10622
10623 #include <stdio.h>
10624
10625 #ifdef RTLD_GLOBAL
10626 #  define LT_DLGLOBAL           RTLD_GLOBAL
10627 #else
10628 #  ifdef DL_GLOBAL
10629 #    define LT_DLGLOBAL         DL_GLOBAL
10630 #  else
10631 #    define LT_DLGLOBAL         0
10632 #  endif
10633 #endif
10634
10635 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10636    find out it does not work in some platform. */
10637 #ifndef LT_DLLAZY_OR_NOW
10638 #  ifdef RTLD_LAZY
10639 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10640 #  else
10641 #    ifdef DL_LAZY
10642 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10643 #    else
10644 #      ifdef RTLD_NOW
10645 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10646 #      else
10647 #        ifdef DL_NOW
10648 #          define LT_DLLAZY_OR_NOW      DL_NOW
10649 #        else
10650 #          define LT_DLLAZY_OR_NOW      0
10651 #        endif
10652 #      endif
10653 #    endif
10654 #  endif
10655 #endif
10656
10657 #ifdef __cplusplus
10658 extern "C" void exit (int);
10659 #endif
10660
10661 void fnord() { int i=42;}
10662 int main ()
10663 {
10664   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10665   int status = $lt_dlunknown;
10666
10667   if (self)
10668     {
10669       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10670       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10671       /* dlclose (self); */
10672     }
10673   else
10674     puts (dlerror ());
10675
10676     exit (status);
10677 }
10678 EOF
10679   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10680   (eval $ac_link) 2>&5
10681   ac_status=$?
10682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10684     (./conftest; exit; ) >&5 2>/dev/null
10685     lt_status=$?
10686     case x$lt_status in
10687       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10688       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10689       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10690     esac
10691   else :
10692     # compilation failed
10693     lt_cv_dlopen_self=no
10694   fi
10695 fi
10696 rm -fr conftest*
10697
10698
10699 fi
10700 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10701 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10702
10703     if test "x$lt_cv_dlopen_self" = xyes; then
10704       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10705       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10706 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10707 if test "${lt_cv_dlopen_self_static+set}" = set; then
10708   echo $ECHO_N "(cached) $ECHO_C" >&6
10709 else
10710           if test "$cross_compiling" = yes; then :
10711   lt_cv_dlopen_self_static=cross
10712 else
10713   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10714   lt_status=$lt_dlunknown
10715   cat > conftest.$ac_ext <<EOF
10716 #line 10716 "configure"
10717 #include "confdefs.h"
10718
10719 #if HAVE_DLFCN_H
10720 #include <dlfcn.h>
10721 #endif
10722
10723 #include <stdio.h>
10724
10725 #ifdef RTLD_GLOBAL
10726 #  define LT_DLGLOBAL           RTLD_GLOBAL
10727 #else
10728 #  ifdef DL_GLOBAL
10729 #    define LT_DLGLOBAL         DL_GLOBAL
10730 #  else
10731 #    define LT_DLGLOBAL         0
10732 #  endif
10733 #endif
10734
10735 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10736    find out it does not work in some platform. */
10737 #ifndef LT_DLLAZY_OR_NOW
10738 #  ifdef RTLD_LAZY
10739 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10740 #  else
10741 #    ifdef DL_LAZY
10742 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10743 #    else
10744 #      ifdef RTLD_NOW
10745 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10746 #      else
10747 #        ifdef DL_NOW
10748 #          define LT_DLLAZY_OR_NOW      DL_NOW
10749 #        else
10750 #          define LT_DLLAZY_OR_NOW      0
10751 #        endif
10752 #      endif
10753 #    endif
10754 #  endif
10755 #endif
10756
10757 #ifdef __cplusplus
10758 extern "C" void exit (int);
10759 #endif
10760
10761 void fnord() { int i=42;}
10762 int main ()
10763 {
10764   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10765   int status = $lt_dlunknown;
10766
10767   if (self)
10768     {
10769       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10770       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10771       /* dlclose (self); */
10772     }
10773   else
10774     puts (dlerror ());
10775
10776     exit (status);
10777 }
10778 EOF
10779   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10780   (eval $ac_link) 2>&5
10781   ac_status=$?
10782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10784     (./conftest; exit; ) >&5 2>/dev/null
10785     lt_status=$?
10786     case x$lt_status in
10787       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10788       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10789       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10790     esac
10791   else :
10792     # compilation failed
10793     lt_cv_dlopen_self_static=no
10794   fi
10795 fi
10796 rm -fr conftest*
10797
10798
10799 fi
10800 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10801 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10802     fi
10803
10804     CPPFLAGS="$save_CPPFLAGS"
10805     LDFLAGS="$save_LDFLAGS"
10806     LIBS="$save_LIBS"
10807     ;;
10808   esac
10809
10810   case $lt_cv_dlopen_self in
10811   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10812   *) enable_dlopen_self=unknown ;;
10813   esac
10814
10815   case $lt_cv_dlopen_self_static in
10816   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10817   *) enable_dlopen_self_static=unknown ;;
10818   esac
10819 fi
10820
10821
10822 # Report which library types will actually be built
10823 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10824 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10825 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10826 echo "${ECHO_T}$can_build_shared" >&6; }
10827
10828 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10829 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10830 test "$can_build_shared" = "no" && enable_shared=no
10831
10832 # On AIX, shared libraries and static libraries use the same namespace, and
10833 # are all built from PIC.
10834 case $host_os in
10835 aix3*)
10836   test "$enable_shared" = yes && enable_static=no
10837   if test -n "$RANLIB"; then
10838     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10839     postinstall_cmds='$RANLIB $lib'
10840   fi
10841   ;;
10842
10843 aix4* | aix5*)
10844   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10845     test "$enable_shared" = yes && enable_static=no
10846   fi
10847     ;;
10848 esac
10849 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10850 echo "${ECHO_T}$enable_shared" >&6; }
10851
10852 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10853 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10854 # Make sure either enable_shared or enable_static is yes.
10855 test "$enable_shared" = yes || enable_static=yes
10856 { echo "$as_me:$LINENO: result: $enable_static" >&5
10857 echo "${ECHO_T}$enable_static" >&6; }
10858
10859 # The else clause should only fire when bootstrapping the
10860 # libtool distribution, otherwise you forgot to ship ltmain.sh
10861 # with your package, and you will get complaints that there are
10862 # no rules to generate ltmain.sh.
10863 if test -f "$ltmain"; then
10864   # See if we are running on zsh, and set the options which allow our commands through
10865   # without removal of \ escapes.
10866   if test -n "${ZSH_VERSION+set}" ; then
10867     setopt NO_GLOB_SUBST
10868   fi
10869   # Now quote all the things that may contain metacharacters while being
10870   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10871   # variables and quote the copies for generation of the libtool script.
10872   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10873     SED SHELL STRIP \
10874     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10875     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10876     deplibs_check_method reload_flag reload_cmds need_locks \
10877     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10878     lt_cv_sys_global_symbol_to_c_name_address \
10879     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10880     old_postinstall_cmds old_postuninstall_cmds \
10881     compiler \
10882     CC \
10883     LD \
10884     lt_prog_compiler_wl \
10885     lt_prog_compiler_pic \
10886     lt_prog_compiler_static \
10887     lt_prog_compiler_no_builtin_flag \
10888     export_dynamic_flag_spec \
10889     thread_safe_flag_spec \
10890     whole_archive_flag_spec \
10891     enable_shared_with_static_runtimes \
10892     old_archive_cmds \
10893     old_archive_from_new_cmds \
10894     predep_objects \
10895     postdep_objects \
10896     predeps \
10897     postdeps \
10898     compiler_lib_search_path \
10899     archive_cmds \
10900     archive_expsym_cmds \
10901     postinstall_cmds \
10902     postuninstall_cmds \
10903     old_archive_from_expsyms_cmds \
10904     allow_undefined_flag \
10905     no_undefined_flag \
10906     export_symbols_cmds \
10907     hardcode_libdir_flag_spec \
10908     hardcode_libdir_flag_spec_ld \
10909     hardcode_libdir_separator \
10910     hardcode_automatic \
10911     module_cmds \
10912     module_expsym_cmds \
10913     lt_cv_prog_compiler_c_o \
10914     exclude_expsyms \
10915     include_expsyms; do
10916
10917     case $var in
10918     old_archive_cmds | \
10919     old_archive_from_new_cmds | \
10920     archive_cmds | \
10921     archive_expsym_cmds | \
10922     module_cmds | \
10923     module_expsym_cmds | \
10924     old_archive_from_expsyms_cmds | \
10925     export_symbols_cmds | \
10926     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10927     postinstall_cmds | postuninstall_cmds | \
10928     old_postinstall_cmds | old_postuninstall_cmds | \
10929     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10930       # Double-quote double-evaled strings.
10931       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10932       ;;
10933     *)
10934       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10935       ;;
10936     esac
10937   done
10938
10939   case $lt_echo in
10940   *'\$0 --fallback-echo"')
10941     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10942     ;;
10943   esac
10944
10945 cfgfile="${ofile}T"
10946   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10947   $rm -f "$cfgfile"
10948   { echo "$as_me:$LINENO: creating $ofile" >&5
10949 echo "$as_me: creating $ofile" >&6;}
10950
10951   cat <<__EOF__ >> "$cfgfile"
10952 #! $SHELL
10953
10954 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10955 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10956 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10957 #
10958 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10959 # Free Software Foundation, Inc.
10960 #
10961 # This file is part of GNU Libtool:
10962 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10963 #
10964 # This program is free software; you can redistribute it and/or modify
10965 # it under the terms of the GNU General Public License as published by
10966 # the Free Software Foundation; either version 2 of the License, or
10967 # (at your option) any later version.
10968 #
10969 # This program is distributed in the hope that it will be useful, but
10970 # WITHOUT ANY WARRANTY; without even the implied warranty of
10971 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10972 # General Public License for more details.
10973 #
10974 # You should have received a copy of the GNU General Public License
10975 # along with this program; if not, write to the Free Software
10976 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10977 #
10978 # As a special exception to the GNU General Public License, if you
10979 # distribute this file as part of a program that contains a
10980 # configuration script generated by Autoconf, you may include it under
10981 # the same distribution terms that you use for the rest of that program.
10982
10983 # A sed program that does not truncate output.
10984 SED=$lt_SED
10985
10986 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10987 Xsed="$SED -e 1s/^X//"
10988
10989 # The HP-UX ksh and POSIX shell print the target directory to stdout
10990 # if CDPATH is set.
10991 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10992
10993 # The names of the tagged configurations supported by this script.
10994 available_tags=
10995
10996 # ### BEGIN LIBTOOL CONFIG
10997
10998 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10999
11000 # Shell to use when invoking shell scripts.
11001 SHELL=$lt_SHELL
11002
11003 # Whether or not to build shared libraries.
11004 build_libtool_libs=$enable_shared
11005
11006 # Whether or not to build static libraries.
11007 build_old_libs=$enable_static
11008
11009 # Whether or not to add -lc for building shared libraries.
11010 build_libtool_need_lc=$archive_cmds_need_lc
11011
11012 # Whether or not to disallow shared libs when runtime libs are static
11013 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11014
11015 # Whether or not to optimize for fast installation.
11016 fast_install=$enable_fast_install
11017
11018 # The host system.
11019 host_alias=$host_alias
11020 host=$host
11021 host_os=$host_os
11022
11023 # The build system.
11024 build_alias=$build_alias
11025 build=$build
11026 build_os=$build_os
11027
11028 # An echo program that does not interpret backslashes.
11029 echo=$lt_echo
11030
11031 # The archiver.
11032 AR=$lt_AR
11033 AR_FLAGS=$lt_AR_FLAGS
11034
11035 # A C compiler.
11036 LTCC=$lt_LTCC
11037
11038 # LTCC compiler flags.
11039 LTCFLAGS=$lt_LTCFLAGS
11040
11041 # A language-specific compiler.
11042 CC=$lt_compiler
11043
11044 # Is the compiler the GNU C compiler?
11045 with_gcc=$GCC
11046
11047 # An ERE matcher.
11048 EGREP=$lt_EGREP
11049
11050 # The linker used to build libraries.
11051 LD=$lt_LD
11052
11053 # Whether we need hard or soft links.
11054 LN_S=$lt_LN_S
11055
11056 # A BSD-compatible nm program.
11057 NM=$lt_NM
11058
11059 # A symbol stripping program
11060 STRIP=$lt_STRIP
11061
11062 # Used to examine libraries when file_magic_cmd begins "file"
11063 MAGIC_CMD=$MAGIC_CMD
11064
11065 # Used on cygwin: DLL creation program.
11066 DLLTOOL="$DLLTOOL"
11067
11068 # Used on cygwin: object dumper.
11069 OBJDUMP="$OBJDUMP"
11070
11071 # Used on cygwin: assembler.
11072 AS="$AS"
11073
11074 # The name of the directory that contains temporary libtool files.
11075 objdir=$objdir
11076
11077 # How to create reloadable object files.
11078 reload_flag=$lt_reload_flag
11079 reload_cmds=$lt_reload_cmds
11080
11081 # How to pass a linker flag through the compiler.
11082 wl=$lt_lt_prog_compiler_wl
11083
11084 # Object file suffix (normally "o").
11085 objext="$ac_objext"
11086
11087 # Old archive suffix (normally "a").
11088 libext="$libext"
11089
11090 # Shared library suffix (normally ".so").
11091 shrext_cmds='$shrext_cmds'
11092
11093 # Executable file suffix (normally "").
11094 exeext="$exeext"
11095
11096 # Additional compiler flags for building library objects.
11097 pic_flag=$lt_lt_prog_compiler_pic
11098 pic_mode=$pic_mode
11099
11100 # What is the maximum length of a command?
11101 max_cmd_len=$lt_cv_sys_max_cmd_len
11102
11103 # Does compiler simultaneously support -c and -o options?
11104 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11105
11106 # Must we lock files when doing compilation?
11107 need_locks=$lt_need_locks
11108
11109 # Do we need the lib prefix for modules?
11110 need_lib_prefix=$need_lib_prefix
11111
11112 # Do we need a version for libraries?
11113 need_version=$need_version
11114
11115 # Whether dlopen is supported.
11116 dlopen_support=$enable_dlopen
11117
11118 # Whether dlopen of programs is supported.
11119 dlopen_self=$enable_dlopen_self
11120
11121 # Whether dlopen of statically linked programs is supported.
11122 dlopen_self_static=$enable_dlopen_self_static
11123
11124 # Compiler flag to prevent dynamic linking.
11125 link_static_flag=$lt_lt_prog_compiler_static
11126
11127 # Compiler flag to turn off builtin functions.
11128 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11129
11130 # Compiler flag to allow reflexive dlopens.
11131 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11132
11133 # Compiler flag to generate shared objects directly from archives.
11134 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11135
11136 # Compiler flag to generate thread-safe objects.
11137 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11138
11139 # Library versioning type.
11140 version_type=$version_type
11141
11142 # Format of library name prefix.
11143 libname_spec=$lt_libname_spec
11144
11145 # List of archive names.  First name is the real one, the rest are links.
11146 # The last name is the one that the linker finds with -lNAME.
11147 library_names_spec=$lt_library_names_spec
11148
11149 # The coded name of the library, if different from the real name.
11150 soname_spec=$lt_soname_spec
11151
11152 # Commands used to build and install an old-style archive.
11153 RANLIB=$lt_RANLIB
11154 old_archive_cmds=$lt_old_archive_cmds
11155 old_postinstall_cmds=$lt_old_postinstall_cmds
11156 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11157
11158 # Create an old-style archive from a shared archive.
11159 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11160
11161 # Create a temporary old-style archive to link instead of a shared archive.
11162 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11163
11164 # Commands used to build and install a shared archive.
11165 archive_cmds=$lt_archive_cmds
11166 archive_expsym_cmds=$lt_archive_expsym_cmds
11167 postinstall_cmds=$lt_postinstall_cmds
11168 postuninstall_cmds=$lt_postuninstall_cmds
11169
11170 # Commands used to build a loadable module (assumed same as above if empty)
11171 module_cmds=$lt_module_cmds
11172 module_expsym_cmds=$lt_module_expsym_cmds
11173
11174 # Commands to strip libraries.
11175 old_striplib=$lt_old_striplib
11176 striplib=$lt_striplib
11177
11178 # Dependencies to place before the objects being linked to create a
11179 # shared library.
11180 predep_objects=$lt_predep_objects
11181
11182 # Dependencies to place after the objects being linked to create a
11183 # shared library.
11184 postdep_objects=$lt_postdep_objects
11185
11186 # Dependencies to place before the objects being linked to create a
11187 # shared library.
11188 predeps=$lt_predeps
11189
11190 # Dependencies to place after the objects being linked to create a
11191 # shared library.
11192 postdeps=$lt_postdeps
11193
11194 # The library search path used internally by the compiler when linking
11195 # a shared library.
11196 compiler_lib_search_path=$lt_compiler_lib_search_path
11197
11198 # Method to check whether dependent libraries are shared objects.
11199 deplibs_check_method=$lt_deplibs_check_method
11200
11201 # Command to use when deplibs_check_method == file_magic.
11202 file_magic_cmd=$lt_file_magic_cmd
11203
11204 # Flag that allows shared libraries with undefined symbols to be built.
11205 allow_undefined_flag=$lt_allow_undefined_flag
11206
11207 # Flag that forces no undefined symbols.
11208 no_undefined_flag=$lt_no_undefined_flag
11209
11210 # Commands used to finish a libtool library installation in a directory.
11211 finish_cmds=$lt_finish_cmds
11212
11213 # Same as above, but a single script fragment to be evaled but not shown.
11214 finish_eval=$lt_finish_eval
11215
11216 # Take the output of nm and produce a listing of raw symbols and C names.
11217 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11218
11219 # Transform the output of nm in a proper C declaration
11220 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11221
11222 # Transform the output of nm in a C name address pair
11223 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11224
11225 # This is the shared library runtime path variable.
11226 runpath_var=$runpath_var
11227
11228 # This is the shared library path variable.
11229 shlibpath_var=$shlibpath_var
11230
11231 # Is shlibpath searched before the hard-coded library search path?
11232 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11233
11234 # How to hardcode a shared library path into an executable.
11235 hardcode_action=$hardcode_action
11236
11237 # Whether we should hardcode library paths into libraries.
11238 hardcode_into_libs=$hardcode_into_libs
11239
11240 # Flag to hardcode \$libdir into a binary during linking.
11241 # This must work even if \$libdir does not exist.
11242 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11243
11244 # If ld is used when linking, flag to hardcode \$libdir into
11245 # a binary during linking. This must work even if \$libdir does
11246 # not exist.
11247 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11248
11249 # Whether we need a single -rpath flag with a separated argument.
11250 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11251
11252 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11253 # resulting binary.
11254 hardcode_direct=$hardcode_direct
11255
11256 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11257 # resulting binary.
11258 hardcode_minus_L=$hardcode_minus_L
11259
11260 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11261 # the resulting binary.
11262 hardcode_shlibpath_var=$hardcode_shlibpath_var
11263
11264 # Set to yes if building a shared library automatically hardcodes DIR into the library
11265 # and all subsequent libraries and executables linked against it.
11266 hardcode_automatic=$hardcode_automatic
11267
11268 # Variables whose values should be saved in libtool wrapper scripts and
11269 # restored at relink time.
11270 variables_saved_for_relink="$variables_saved_for_relink"
11271
11272 # Whether libtool must link a program against all its dependency libraries.
11273 link_all_deplibs=$link_all_deplibs
11274
11275 # Compile-time system search path for libraries
11276 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11277
11278 # Run-time system search path for libraries
11279 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11280
11281 # Fix the shell variable \$srcfile for the compiler.
11282 fix_srcfile_path="$fix_srcfile_path"
11283
11284 # Set to yes if exported symbols are required.
11285 always_export_symbols=$always_export_symbols
11286
11287 # The commands to list exported symbols.
11288 export_symbols_cmds=$lt_export_symbols_cmds
11289
11290 # The commands to extract the exported symbol list from a shared archive.
11291 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11292
11293 # Symbols that should not be listed in the preloaded symbols.
11294 exclude_expsyms=$lt_exclude_expsyms
11295
11296 # Symbols that must always be exported.
11297 include_expsyms=$lt_include_expsyms
11298
11299 # ### END LIBTOOL CONFIG
11300
11301 __EOF__
11302
11303
11304   case $host_os in
11305   aix3*)
11306     cat <<\EOF >> "$cfgfile"
11307
11308 # AIX sometimes has problems with the GCC collect2 program.  For some
11309 # reason, if we set the COLLECT_NAMES environment variable, the problems
11310 # vanish in a puff of smoke.
11311 if test "X${COLLECT_NAMES+set}" != Xset; then
11312   COLLECT_NAMES=
11313   export COLLECT_NAMES
11314 fi
11315 EOF
11316     ;;
11317   esac
11318
11319   # We use sed instead of cat because bash on DJGPP gets confused if
11320   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11321   # text mode, it properly converts lines to CR/LF.  This bash problem
11322   # is reportedly fixed, but why not run on old versions too?
11323   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11324
11325   mv -f "$cfgfile" "$ofile" || \
11326     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11327   chmod +x "$ofile"
11328
11329 else
11330   # If there is no Makefile yet, we rely on a make rule to execute
11331   # `config.status --recheck' to rerun these tests and create the
11332   # libtool script then.
11333   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11334   if test -f "$ltmain_in"; then
11335     test -f Makefile && make "$ltmain"
11336   fi
11337 fi
11338
11339
11340 ac_ext=c
11341 ac_cpp='$CPP $CPPFLAGS'
11342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11345
11346 CC="$lt_save_CC"
11347
11348
11349 # Check whether --with-tags was given.
11350 if test "${with_tags+set}" = set; then
11351   withval=$with_tags; tagnames="$withval"
11352 fi
11353
11354
11355 if test -f "$ltmain" && test -n "$tagnames"; then
11356   if test ! -f "${ofile}"; then
11357     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11358 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11359   fi
11360
11361   if test -z "$LTCC"; then
11362     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11363     if test -z "$LTCC"; then
11364       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11365 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11366     else
11367       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11368 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11369     fi
11370   fi
11371   if test -z "$LTCFLAGS"; then
11372     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11373   fi
11374
11375   # Extract list of available tagged configurations in $ofile.
11376   # Note that this assumes the entire list is on one line.
11377   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11378
11379   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11380   for tagname in $tagnames; do
11381     IFS="$lt_save_ifs"
11382     # Check whether tagname contains only valid characters
11383     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11384     "") ;;
11385     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11386 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11387    { (exit 1); exit 1; }; }
11388         ;;
11389     esac
11390
11391     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11392     then
11393       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11394 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11395    { (exit 1); exit 1; }; }
11396     fi
11397
11398     # Update the list of available tags.
11399     if test -n "$tagname"; then
11400       echo appending configuration tag \"$tagname\" to $ofile
11401
11402       case $tagname in
11403       CXX)
11404         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11405             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11406             (test "X$CXX" != "Xg++"))) ; then
11407           ac_ext=cpp
11408 ac_cpp='$CXXCPP $CPPFLAGS'
11409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11412
11413
11414
11415
11416 archive_cmds_need_lc_CXX=no
11417 allow_undefined_flag_CXX=
11418 always_export_symbols_CXX=no
11419 archive_expsym_cmds_CXX=
11420 export_dynamic_flag_spec_CXX=
11421 hardcode_direct_CXX=no
11422 hardcode_libdir_flag_spec_CXX=
11423 hardcode_libdir_flag_spec_ld_CXX=
11424 hardcode_libdir_separator_CXX=
11425 hardcode_minus_L_CXX=no
11426 hardcode_shlibpath_var_CXX=unsupported
11427 hardcode_automatic_CXX=no
11428 module_cmds_CXX=
11429 module_expsym_cmds_CXX=
11430 link_all_deplibs_CXX=unknown
11431 old_archive_cmds_CXX=$old_archive_cmds
11432 no_undefined_flag_CXX=
11433 whole_archive_flag_spec_CXX=
11434 enable_shared_with_static_runtimes_CXX=no
11435
11436 # Dependencies to place before and after the object being linked:
11437 predep_objects_CXX=
11438 postdep_objects_CXX=
11439 predeps_CXX=
11440 postdeps_CXX=
11441 compiler_lib_search_path_CXX=
11442
11443 # Source file extension for C++ test sources.
11444 ac_ext=cpp
11445
11446 # Object file extension for compiled C++ test sources.
11447 objext=o
11448 objext_CXX=$objext
11449
11450 # Code to be used in simple compile tests
11451 lt_simple_compile_test_code="int some_variable = 0;\n"
11452
11453 # Code to be used in simple link tests
11454 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11455
11456 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11457
11458 # If no C compiler was specified, use CC.
11459 LTCC=${LTCC-"$CC"}
11460
11461 # If no C compiler flags were specified, use CFLAGS.
11462 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11463
11464 # Allow CC to be a program name with arguments.
11465 compiler=$CC
11466
11467
11468 # save warnings/boilerplate of simple test code
11469 ac_outfile=conftest.$ac_objext
11470 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11471 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11472 _lt_compiler_boilerplate=`cat conftest.err`
11473 $rm conftest*
11474
11475 ac_outfile=conftest.$ac_objext
11476 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11477 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11478 _lt_linker_boilerplate=`cat conftest.err`
11479 $rm conftest*
11480
11481
11482 # Allow CC to be a program name with arguments.
11483 lt_save_CC=$CC
11484 lt_save_LD=$LD
11485 lt_save_GCC=$GCC
11486 GCC=$GXX
11487 lt_save_with_gnu_ld=$with_gnu_ld
11488 lt_save_path_LD=$lt_cv_path_LD
11489 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11490   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11491 else
11492   $as_unset lt_cv_prog_gnu_ld
11493 fi
11494 if test -n "${lt_cv_path_LDCXX+set}"; then
11495   lt_cv_path_LD=$lt_cv_path_LDCXX
11496 else
11497   $as_unset lt_cv_path_LD
11498 fi
11499 test -z "${LDCXX+set}" || LD=$LDCXX
11500 CC=${CXX-"c++"}
11501 compiler=$CC
11502 compiler_CXX=$CC
11503 for cc_temp in $compiler""; do
11504   case $cc_temp in
11505     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11506     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11507     \-*) ;;
11508     *) break;;
11509   esac
11510 done
11511 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11512
11513
11514 # We don't want -fno-exception wen compiling C++ code, so set the
11515 # no_builtin_flag separately
11516 if test "$GXX" = yes; then
11517   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11518 else
11519   lt_prog_compiler_no_builtin_flag_CXX=
11520 fi
11521
11522 if test "$GXX" = yes; then
11523   # Set up default GNU C++ configuration
11524
11525
11526 # Check whether --with-gnu-ld was given.
11527 if test "${with_gnu_ld+set}" = set; then
11528   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11529 else
11530   with_gnu_ld=no
11531 fi
11532
11533 ac_prog=ld
11534 if test "$GCC" = yes; then
11535   # Check if gcc -print-prog-name=ld gives a path.
11536   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11537 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11538   case $host in
11539   *-*-mingw*)
11540     # gcc leaves a trailing carriage return which upsets mingw
11541     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11542   *)
11543     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11544   esac
11545   case $ac_prog in
11546     # Accept absolute paths.
11547     [\\/]* | ?:[\\/]*)
11548       re_direlt='/[^/][^/]*/\.\./'
11549       # Canonicalize the pathname of ld
11550       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11551       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11552         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11553       done
11554       test -z "$LD" && LD="$ac_prog"
11555       ;;
11556   "")
11557     # If it fails, then pretend we aren't using GCC.
11558     ac_prog=ld
11559     ;;
11560   *)
11561     # If it is relative, then search for the first ld in PATH.
11562     with_gnu_ld=unknown
11563     ;;
11564   esac
11565 elif test "$with_gnu_ld" = yes; then
11566   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11567 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11568 else
11569   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11570 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11571 fi
11572 if test "${lt_cv_path_LD+set}" = set; then
11573   echo $ECHO_N "(cached) $ECHO_C" >&6
11574 else
11575   if test -z "$LD"; then
11576   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11577   for ac_dir in $PATH; do
11578     IFS="$lt_save_ifs"
11579     test -z "$ac_dir" && ac_dir=.
11580     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11581       lt_cv_path_LD="$ac_dir/$ac_prog"
11582       # Check to see if the program is GNU ld.  I'd rather use --version,
11583       # but apparently some variants of GNU ld only accept -v.
11584       # Break only if it was the GNU/non-GNU ld that we prefer.
11585       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11586       *GNU* | *'with BFD'*)
11587         test "$with_gnu_ld" != no && break
11588         ;;
11589       *)
11590         test "$with_gnu_ld" != yes && break
11591         ;;
11592       esac
11593     fi
11594   done
11595   IFS="$lt_save_ifs"
11596 else
11597   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11598 fi
11599 fi
11600
11601 LD="$lt_cv_path_LD"
11602 if test -n "$LD"; then
11603   { echo "$as_me:$LINENO: result: $LD" >&5
11604 echo "${ECHO_T}$LD" >&6; }
11605 else
11606   { echo "$as_me:$LINENO: result: no" >&5
11607 echo "${ECHO_T}no" >&6; }
11608 fi
11609 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11610 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11611    { (exit 1); exit 1; }; }
11612 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11613 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11614 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11615   echo $ECHO_N "(cached) $ECHO_C" >&6
11616 else
11617   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11618 case `$LD -v 2>&1 </dev/null` in
11619 *GNU* | *'with BFD'*)
11620   lt_cv_prog_gnu_ld=yes
11621   ;;
11622 *)
11623   lt_cv_prog_gnu_ld=no
11624   ;;
11625 esac
11626 fi
11627 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11628 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11629 with_gnu_ld=$lt_cv_prog_gnu_ld
11630
11631
11632
11633   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11634   # archiving commands below assume that GNU ld is being used.
11635   if test "$with_gnu_ld" = yes; then
11636     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11637     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'
11638
11639     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11640     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11641
11642     # If archive_cmds runs LD, not CC, wlarc should be empty
11643     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11644     #     investigate it a little bit more. (MM)
11645     wlarc='${wl}'
11646
11647     # ancient GNU ld didn't support --whole-archive et. al.
11648     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11649         grep 'no-whole-archive' > /dev/null; then
11650       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11651     else
11652       whole_archive_flag_spec_CXX=
11653     fi
11654   else
11655     with_gnu_ld=no
11656     wlarc=
11657
11658     # A generic and very simple default shared library creation
11659     # command for GNU C++ for the case where it uses the native
11660     # linker, instead of GNU ld.  If possible, this setting should
11661     # overridden to take advantage of the native linker features on
11662     # the platform it is being used on.
11663     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11664   fi
11665
11666   # Commands to make compiler produce verbose output that lists
11667   # what "hidden" libraries, object files and flags are used when
11668   # linking a shared library.
11669   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11670
11671 else
11672   GXX=no
11673   with_gnu_ld=no
11674   wlarc=
11675 fi
11676
11677 # PORTME: fill in a description of your system's C++ link characteristics
11678 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11679 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11680 ld_shlibs_CXX=yes
11681 case $host_os in
11682   aix3*)
11683     # FIXME: insert proper C++ library support
11684     ld_shlibs_CXX=no
11685     ;;
11686   aix4* | aix5*)
11687     if test "$host_cpu" = ia64; then
11688       # On IA64, the linker does run time linking by default, so we don't
11689       # have to do anything special.
11690       aix_use_runtimelinking=no
11691       exp_sym_flag='-Bexport'
11692       no_entry_flag=""
11693     else
11694       aix_use_runtimelinking=no
11695
11696       # Test if we are trying to use run time linking or normal
11697       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11698       # need to do runtime linking.
11699       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11700         for ld_flag in $LDFLAGS; do
11701           case $ld_flag in
11702           *-brtl*)
11703             aix_use_runtimelinking=yes
11704             break
11705             ;;
11706           esac
11707         done
11708         ;;
11709       esac
11710
11711       exp_sym_flag='-bexport'
11712       no_entry_flag='-bnoentry'
11713     fi
11714
11715     # When large executables or shared objects are built, AIX ld can
11716     # have problems creating the table of contents.  If linking a library
11717     # or program results in "error TOC overflow" add -mminimal-toc to
11718     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11719     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11720
11721     archive_cmds_CXX=''
11722     hardcode_direct_CXX=yes
11723     hardcode_libdir_separator_CXX=':'
11724     link_all_deplibs_CXX=yes
11725
11726     if test "$GXX" = yes; then
11727       case $host_os in aix4.[012]|aix4.[012].*)
11728       # We only want to do this on AIX 4.2 and lower, the check
11729       # below for broken collect2 doesn't work under 4.3+
11730         collect2name=`${CC} -print-prog-name=collect2`
11731         if test -f "$collect2name" && \
11732            strings "$collect2name" | grep resolve_lib_name >/dev/null
11733         then
11734           # We have reworked collect2
11735           hardcode_direct_CXX=yes
11736         else
11737           # We have old collect2
11738           hardcode_direct_CXX=unsupported
11739           # It fails to find uninstalled libraries when the uninstalled
11740           # path is not listed in the libpath.  Setting hardcode_minus_L
11741           # to unsupported forces relinking
11742           hardcode_minus_L_CXX=yes
11743           hardcode_libdir_flag_spec_CXX='-L$libdir'
11744           hardcode_libdir_separator_CXX=
11745         fi
11746         ;;
11747       esac
11748       shared_flag='-shared'
11749       if test "$aix_use_runtimelinking" = yes; then
11750         shared_flag="$shared_flag "'${wl}-G'
11751       fi
11752     else
11753       # not using gcc
11754       if test "$host_cpu" = ia64; then
11755         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11756         # chokes on -Wl,-G. The following line is correct:
11757         shared_flag='-G'
11758       else
11759         if test "$aix_use_runtimelinking" = yes; then
11760           shared_flag='${wl}-G'
11761         else
11762           shared_flag='${wl}-bM:SRE'
11763         fi
11764       fi
11765     fi
11766
11767     # It seems that -bexpall does not export symbols beginning with
11768     # underscore (_), so it is better to generate a list of symbols to export.
11769     always_export_symbols_CXX=yes
11770     if test "$aix_use_runtimelinking" = yes; then
11771       # Warning - without using the other runtime loading flags (-brtl),
11772       # -berok will link without error, but may produce a broken library.
11773       allow_undefined_flag_CXX='-berok'
11774       # Determine the default libpath from the value encoded in an empty executable.
11775       cat >conftest.$ac_ext <<_ACEOF
11776 /* confdefs.h.  */
11777 _ACEOF
11778 cat confdefs.h >>conftest.$ac_ext
11779 cat >>conftest.$ac_ext <<_ACEOF
11780 /* end confdefs.h.  */
11781
11782 int
11783 main ()
11784 {
11785
11786   ;
11787   return 0;
11788 }
11789 _ACEOF
11790 rm -f conftest.$ac_objext conftest$ac_exeext
11791 if { (ac_try="$ac_link"
11792 case "(($ac_try" in
11793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794   *) ac_try_echo=$ac_try;;
11795 esac
11796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797   (eval "$ac_link") 2>conftest.er1
11798   ac_status=$?
11799   grep -v '^ *+' conftest.er1 >conftest.err
11800   rm -f conftest.er1
11801   cat conftest.err >&5
11802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803   (exit $ac_status); } &&
11804          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11805   { (case "(($ac_try" in
11806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11807   *) ac_try_echo=$ac_try;;
11808 esac
11809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11810   (eval "$ac_try") 2>&5
11811   ac_status=$?
11812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813   (exit $ac_status); }; } &&
11814          { ac_try='test -s conftest$ac_exeext'
11815   { (case "(($ac_try" in
11816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11817   *) ac_try_echo=$ac_try;;
11818 esac
11819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11820   (eval "$ac_try") 2>&5
11821   ac_status=$?
11822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823   (exit $ac_status); }; }; then
11824
11825 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11826 }'`
11827 # Check for a 64-bit object if we didn't find anything.
11828 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; }
11829 }'`; fi
11830 else
11831   echo "$as_me: failed program was:" >&5
11832 sed 's/^/| /' conftest.$ac_ext >&5
11833
11834
11835 fi
11836
11837 rm -f core conftest.err conftest.$ac_objext \
11838       conftest$ac_exeext conftest.$ac_ext
11839 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11840
11841       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11842
11843       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"
11844      else
11845       if test "$host_cpu" = ia64; then
11846         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11847         allow_undefined_flag_CXX="-z nodefs"
11848         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"
11849       else
11850         # Determine the default libpath from the value encoded in an empty executable.
11851         cat >conftest.$ac_ext <<_ACEOF
11852 /* confdefs.h.  */
11853 _ACEOF
11854 cat confdefs.h >>conftest.$ac_ext
11855 cat >>conftest.$ac_ext <<_ACEOF
11856 /* end confdefs.h.  */
11857
11858 int
11859 main ()
11860 {
11861
11862   ;
11863   return 0;
11864 }
11865 _ACEOF
11866 rm -f conftest.$ac_objext conftest$ac_exeext
11867 if { (ac_try="$ac_link"
11868 case "(($ac_try" in
11869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11870   *) ac_try_echo=$ac_try;;
11871 esac
11872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11873   (eval "$ac_link") 2>conftest.er1
11874   ac_status=$?
11875   grep -v '^ *+' conftest.er1 >conftest.err
11876   rm -f conftest.er1
11877   cat conftest.err >&5
11878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879   (exit $ac_status); } &&
11880          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11881   { (case "(($ac_try" in
11882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883   *) ac_try_echo=$ac_try;;
11884 esac
11885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886   (eval "$ac_try") 2>&5
11887   ac_status=$?
11888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889   (exit $ac_status); }; } &&
11890          { ac_try='test -s conftest$ac_exeext'
11891   { (case "(($ac_try" in
11892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11893   *) ac_try_echo=$ac_try;;
11894 esac
11895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11896   (eval "$ac_try") 2>&5
11897   ac_status=$?
11898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899   (exit $ac_status); }; }; then
11900
11901 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11902 }'`
11903 # Check for a 64-bit object if we didn't find anything.
11904 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; }
11905 }'`; fi
11906 else
11907   echo "$as_me: failed program was:" >&5
11908 sed 's/^/| /' conftest.$ac_ext >&5
11909
11910
11911 fi
11912
11913 rm -f core conftest.err conftest.$ac_objext \
11914       conftest$ac_exeext conftest.$ac_ext
11915 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11916
11917         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11918         # Warning - without using the other run time loading flags,
11919         # -berok will link without error, but may produce a broken library.
11920         no_undefined_flag_CXX=' ${wl}-bernotok'
11921         allow_undefined_flag_CXX=' ${wl}-berok'
11922         # Exported symbols can be pulled into shared objects from archives
11923         whole_archive_flag_spec_CXX='$convenience'
11924         archive_cmds_need_lc_CXX=yes
11925         # This is similar to how AIX traditionally builds its shared libraries.
11926         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'
11927       fi
11928     fi
11929     ;;
11930
11931   beos*)
11932     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11933       allow_undefined_flag_CXX=unsupported
11934       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11935       # support --undefined.  This deserves some investigation.  FIXME
11936       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11937     else
11938       ld_shlibs_CXX=no
11939     fi
11940     ;;
11941
11942   chorus*)
11943     case $cc_basename in
11944       *)
11945         # FIXME: insert proper C++ library support
11946         ld_shlibs_CXX=no
11947         ;;
11948     esac
11949     ;;
11950
11951   cygwin* | mingw* | pw32*)
11952     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11953     # as there is no search path for DLLs.
11954     hardcode_libdir_flag_spec_CXX='-L$libdir'
11955     allow_undefined_flag_CXX=unsupported
11956     always_export_symbols_CXX=no
11957     enable_shared_with_static_runtimes_CXX=yes
11958
11959     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11960       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'
11961       # If the export-symbols file already is a .def file (1st line
11962       # is EXPORTS), use it as is; otherwise, prepend...
11963       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11964         cp $export_symbols $output_objdir/$soname.def;
11965       else
11966         echo EXPORTS > $output_objdir/$soname.def;
11967         cat $export_symbols >> $output_objdir/$soname.def;
11968       fi~
11969       $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'
11970     else
11971       ld_shlibs_CXX=no
11972     fi
11973   ;;
11974       darwin* | rhapsody*)
11975         case $host_os in
11976         rhapsody* | darwin1.[012])
11977          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11978          ;;
11979        *) # Darwin 1.3 on
11980          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11981            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11982          else
11983            case ${MACOSX_DEPLOYMENT_TARGET} in
11984              10.[012])
11985                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11986                ;;
11987              10.*)
11988                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11989                ;;
11990            esac
11991          fi
11992          ;;
11993         esac
11994       archive_cmds_need_lc_CXX=no
11995       hardcode_direct_CXX=no
11996       hardcode_automatic_CXX=yes
11997       hardcode_shlibpath_var_CXX=unsupported
11998       whole_archive_flag_spec_CXX=''
11999       link_all_deplibs_CXX=yes
12000
12001     if test "$GXX" = yes ; then
12002       lt_int_apple_cc_single_mod=no
12003       output_verbose_link_cmd='echo'
12004       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12005        lt_int_apple_cc_single_mod=yes
12006       fi
12007       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12008        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12009       else
12010           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'
12011         fi
12012         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12013         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12014           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12015             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}'
12016           else
12017             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}'
12018           fi
12019             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}'
12020       else
12021       case $cc_basename in
12022         xlc*)
12023          output_verbose_link_cmd='echo'
12024           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'
12025           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12026           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12027           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}'
12028           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}'
12029           ;;
12030        *)
12031          ld_shlibs_CXX=no
12032           ;;
12033       esac
12034       fi
12035         ;;
12036
12037   dgux*)
12038     case $cc_basename in
12039       ec++*)
12040         # FIXME: insert proper C++ library support
12041         ld_shlibs_CXX=no
12042         ;;
12043       ghcx*)
12044         # Green Hills C++ Compiler
12045         # FIXME: insert proper C++ library support
12046         ld_shlibs_CXX=no
12047         ;;
12048       *)
12049         # FIXME: insert proper C++ library support
12050         ld_shlibs_CXX=no
12051         ;;
12052     esac
12053     ;;
12054   freebsd[12]*)
12055     # C++ shared libraries reported to be fairly broken before switch to ELF
12056     ld_shlibs_CXX=no
12057     ;;
12058   freebsd-elf*)
12059     archive_cmds_need_lc_CXX=no
12060     ;;
12061   freebsd* | dragonfly*)
12062     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12063     # conventions
12064     ld_shlibs_CXX=yes
12065     ;;
12066   gnu*)
12067     ;;
12068   hpux9*)
12069     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12070     hardcode_libdir_separator_CXX=:
12071     export_dynamic_flag_spec_CXX='${wl}-E'
12072     hardcode_direct_CXX=yes
12073     hardcode_minus_L_CXX=yes # Not in the search PATH,
12074                                 # but as the default
12075                                 # location of the library.
12076
12077     case $cc_basename in
12078     CC*)
12079       # FIXME: insert proper C++ library support
12080       ld_shlibs_CXX=no
12081       ;;
12082     aCC*)
12083       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'
12084       # Commands to make compiler produce verbose output that lists
12085       # what "hidden" libraries, object files and flags are used when
12086       # linking a shared library.
12087       #
12088       # There doesn't appear to be a way to prevent this compiler from
12089       # explicitly linking system object files so we need to strip them
12090       # from the output so that they don't get included in the library
12091       # dependencies.
12092       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'
12093       ;;
12094     *)
12095       if test "$GXX" = yes; then
12096         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'
12097       else
12098         # FIXME: insert proper C++ library support
12099         ld_shlibs_CXX=no
12100       fi
12101       ;;
12102     esac
12103     ;;
12104   hpux10*|hpux11*)
12105     if test $with_gnu_ld = no; then
12106       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12107       hardcode_libdir_separator_CXX=:
12108
12109       case $host_cpu in
12110       hppa*64*|ia64*)
12111         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12112         ;;
12113       *)
12114         export_dynamic_flag_spec_CXX='${wl}-E'
12115         ;;
12116       esac
12117     fi
12118     case $host_cpu in
12119     hppa*64*|ia64*)
12120       hardcode_direct_CXX=no
12121       hardcode_shlibpath_var_CXX=no
12122       ;;
12123     *)
12124       hardcode_direct_CXX=yes
12125       hardcode_minus_L_CXX=yes # Not in the search PATH,
12126                                               # but as the default
12127                                               # location of the library.
12128       ;;
12129     esac
12130
12131     case $cc_basename in
12132       CC*)
12133         # FIXME: insert proper C++ library support
12134         ld_shlibs_CXX=no
12135         ;;
12136       aCC*)
12137         case $host_cpu in
12138         hppa*64*)
12139           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12140           ;;
12141         ia64*)
12142           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12143           ;;
12144         *)
12145           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12146           ;;
12147         esac
12148         # Commands to make compiler produce verbose output that lists
12149         # what "hidden" libraries, object files and flags are used when
12150         # linking a shared library.
12151         #
12152         # There doesn't appear to be a way to prevent this compiler from
12153         # explicitly linking system object files so we need to strip them
12154         # from the output so that they don't get included in the library
12155         # dependencies.
12156         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'
12157         ;;
12158       *)
12159         if test "$GXX" = yes; then
12160           if test $with_gnu_ld = no; then
12161             case $host_cpu in
12162             hppa*64*)
12163               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12164               ;;
12165             ia64*)
12166               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12167               ;;
12168             *)
12169               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'
12170               ;;
12171             esac
12172           fi
12173         else
12174           # FIXME: insert proper C++ library support
12175           ld_shlibs_CXX=no
12176         fi
12177         ;;
12178     esac
12179     ;;
12180   interix3*)
12181     hardcode_direct_CXX=no
12182     hardcode_shlibpath_var_CXX=no
12183     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12184     export_dynamic_flag_spec_CXX='${wl}-E'
12185     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12186     # Instead, shared libraries are loaded at an image base (0x10000000 by
12187     # default) and relocated if they conflict, which is a slow very memory
12188     # consuming and fragmenting process.  To avoid this, we pick a random,
12189     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12190     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12191     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'
12192     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'
12193     ;;
12194   irix5* | irix6*)
12195     case $cc_basename in
12196       CC*)
12197         # SGI C++
12198         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'
12199
12200         # Archives containing C++ object files must be created using
12201         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12202         # necessary to make sure instantiated templates are included
12203         # in the archive.
12204         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12205         ;;
12206       *)
12207         if test "$GXX" = yes; then
12208           if test "$with_gnu_ld" = no; then
12209             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'
12210           else
12211             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'
12212           fi
12213         fi
12214         link_all_deplibs_CXX=yes
12215         ;;
12216     esac
12217     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12218     hardcode_libdir_separator_CXX=:
12219     ;;
12220   linux* | k*bsd*-gnu)
12221     case $cc_basename in
12222       KCC*)
12223         # Kuck and Associates, Inc. (KAI) C++ Compiler
12224
12225         # KCC will only create a shared library if the output file
12226         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12227         # to its proper name (with version) after linking.
12228         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'
12229         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'
12230         # Commands to make compiler produce verbose output that lists
12231         # what "hidden" libraries, object files and flags are used when
12232         # linking a shared library.
12233         #
12234         # There doesn't appear to be a way to prevent this compiler from
12235         # explicitly linking system object files so we need to strip them
12236         # from the output so that they don't get included in the library
12237         # dependencies.
12238         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'
12239
12240         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12241         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12242
12243         # Archives containing C++ object files must be created using
12244         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12245         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12246         ;;
12247       icpc*)
12248         # Intel C++
12249         with_gnu_ld=yes
12250         # version 8.0 and above of icpc choke on multiply defined symbols
12251         # if we add $predep_objects and $postdep_objects, however 7.1 and
12252         # earlier do not add the objects themselves.
12253         case `$CC -V 2>&1` in
12254         *"Version 7."*)
12255           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12256           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'
12257           ;;
12258         *)  # Version 8.0 or newer
12259           tmp_idyn=
12260           case $host_cpu in
12261             ia64*) tmp_idyn=' -i_dynamic';;
12262           esac
12263           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12264           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'
12265           ;;
12266         esac
12267         archive_cmds_need_lc_CXX=no
12268         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12269         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12270         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12271         ;;
12272       pgCC*)
12273         # Portland Group C++ compiler
12274         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12275         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'
12276
12277         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12278         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12279         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'
12280         ;;
12281       cxx*)
12282         # Compaq C++
12283         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12284         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'
12285
12286         runpath_var=LD_RUN_PATH
12287         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12288         hardcode_libdir_separator_CXX=:
12289
12290         # Commands to make compiler produce verbose output that lists
12291         # what "hidden" libraries, object files and flags are used when
12292         # linking a shared library.
12293         #
12294         # There doesn't appear to be a way to prevent this compiler from
12295         # explicitly linking system object files so we need to strip them
12296         # from the output so that they don't get included in the library
12297         # dependencies.
12298         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'
12299         ;;
12300     esac
12301     ;;
12302   lynxos*)
12303     # FIXME: insert proper C++ library support
12304     ld_shlibs_CXX=no
12305     ;;
12306   m88k*)
12307     # FIXME: insert proper C++ library support
12308     ld_shlibs_CXX=no
12309     ;;
12310   mvs*)
12311     case $cc_basename in
12312       cxx*)
12313         # FIXME: insert proper C++ library support
12314         ld_shlibs_CXX=no
12315         ;;
12316       *)
12317         # FIXME: insert proper C++ library support
12318         ld_shlibs_CXX=no
12319         ;;
12320     esac
12321     ;;
12322   netbsd* | netbsdelf*-gnu)
12323     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12324       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12325       wlarc=
12326       hardcode_libdir_flag_spec_CXX='-R$libdir'
12327       hardcode_direct_CXX=yes
12328       hardcode_shlibpath_var_CXX=no
12329     fi
12330     # Workaround some broken pre-1.5 toolchains
12331     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12332     ;;
12333   openbsd2*)
12334     # C++ shared libraries are fairly broken
12335     ld_shlibs_CXX=no
12336     ;;
12337   openbsd*)
12338     hardcode_direct_CXX=yes
12339     hardcode_shlibpath_var_CXX=no
12340     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12341     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12342     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12343       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12344       export_dynamic_flag_spec_CXX='${wl}-E'
12345       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12346     fi
12347     output_verbose_link_cmd='echo'
12348     ;;
12349   osf3*)
12350     case $cc_basename in
12351       KCC*)
12352         # Kuck and Associates, Inc. (KAI) C++ Compiler
12353
12354         # KCC will only create a shared library if the output file
12355         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12356         # to its proper name (with version) after linking.
12357         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'
12358
12359         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12360         hardcode_libdir_separator_CXX=:
12361
12362         # Archives containing C++ object files must be created using
12363         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12364         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12365
12366         ;;
12367       RCC*)
12368         # Rational C++ 2.4.1
12369         # FIXME: insert proper C++ library support
12370         ld_shlibs_CXX=no
12371         ;;
12372       cxx*)
12373         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12374         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'
12375
12376         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12377         hardcode_libdir_separator_CXX=:
12378
12379         # Commands to make compiler produce verbose output that lists
12380         # what "hidden" libraries, object files and flags are used when
12381         # linking a shared library.
12382         #
12383         # There doesn't appear to be a way to prevent this compiler from
12384         # explicitly linking system object files so we need to strip them
12385         # from the output so that they don't get included in the library
12386         # dependencies.
12387         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'
12388         ;;
12389       *)
12390         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12391           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12392           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'
12393
12394           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12395           hardcode_libdir_separator_CXX=:
12396
12397           # Commands to make compiler produce verbose output that lists
12398           # what "hidden" libraries, object files and flags are used when
12399           # linking a shared library.
12400           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12401
12402         else
12403           # FIXME: insert proper C++ library support
12404           ld_shlibs_CXX=no
12405         fi
12406         ;;
12407     esac
12408     ;;
12409   osf4* | osf5*)
12410     case $cc_basename in
12411       KCC*)
12412         # Kuck and Associates, Inc. (KAI) C++ Compiler
12413
12414         # KCC will only create a shared library if the output file
12415         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12416         # to its proper name (with version) after linking.
12417         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'
12418
12419         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12420         hardcode_libdir_separator_CXX=:
12421
12422         # Archives containing C++ object files must be created using
12423         # the KAI C++ compiler.
12424         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12425         ;;
12426       RCC*)
12427         # Rational C++ 2.4.1
12428         # FIXME: insert proper C++ library support
12429         ld_shlibs_CXX=no
12430         ;;
12431       cxx*)
12432         allow_undefined_flag_CXX=' -expect_unresolved \*'
12433         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'
12434         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12435           echo "-hidden">> $lib.exp~
12436           $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~
12437           $rm $lib.exp'
12438
12439         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12440         hardcode_libdir_separator_CXX=:
12441
12442         # Commands to make compiler produce verbose output that lists
12443         # what "hidden" libraries, object files and flags are used when
12444         # linking a shared library.
12445         #
12446         # There doesn't appear to be a way to prevent this compiler from
12447         # explicitly linking system object files so we need to strip them
12448         # from the output so that they don't get included in the library
12449         # dependencies.
12450         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'
12451         ;;
12452       *)
12453         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12454           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12455          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'
12456
12457           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12458           hardcode_libdir_separator_CXX=:
12459
12460           # Commands to make compiler produce verbose output that lists
12461           # what "hidden" libraries, object files and flags are used when
12462           # linking a shared library.
12463           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12464
12465         else
12466           # FIXME: insert proper C++ library support
12467           ld_shlibs_CXX=no
12468         fi
12469         ;;
12470     esac
12471     ;;
12472   psos*)
12473     # FIXME: insert proper C++ library support
12474     ld_shlibs_CXX=no
12475     ;;
12476   sunos4*)
12477     case $cc_basename in
12478       CC*)
12479         # Sun C++ 4.x
12480         # FIXME: insert proper C++ library support
12481         ld_shlibs_CXX=no
12482         ;;
12483       lcc*)
12484         # Lucid
12485         # FIXME: insert proper C++ library support
12486         ld_shlibs_CXX=no
12487         ;;
12488       *)
12489         # FIXME: insert proper C++ library support
12490         ld_shlibs_CXX=no
12491         ;;
12492     esac
12493     ;;
12494   solaris*)
12495     case $cc_basename in
12496       CC*)
12497         # Sun C++ 4.2, 5.x and Centerline C++
12498         archive_cmds_need_lc_CXX=yes
12499         no_undefined_flag_CXX=' -zdefs'
12500         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12501         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12502         $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'
12503
12504         hardcode_libdir_flag_spec_CXX='-R$libdir'
12505         hardcode_shlibpath_var_CXX=no
12506         case $host_os in
12507           solaris2.[0-5] | solaris2.[0-5].*) ;;
12508           *)
12509             # The C++ compiler is used as linker so we must use $wl
12510             # flag to pass the commands to the underlying system
12511             # linker. We must also pass each convience library through
12512             # to the system linker between allextract/defaultextract.
12513             # The C++ compiler will combine linker options so we
12514             # cannot just pass the convience library names through
12515             # without $wl.
12516             # Supported since Solaris 2.6 (maybe 2.5.1?)
12517             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'
12518             ;;
12519         esac
12520         link_all_deplibs_CXX=yes
12521
12522         output_verbose_link_cmd='echo'
12523
12524         # Archives containing C++ object files must be created using
12525         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12526         # necessary to make sure instantiated templates are included
12527         # in the archive.
12528         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12529         ;;
12530       gcx*)
12531         # Green Hills C++ Compiler
12532         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12533
12534         # The C++ compiler must be used to create the archive.
12535         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12536         ;;
12537       *)
12538         # GNU C++ compiler with Solaris linker
12539         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12540           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12541           if $CC --version | grep -v '^2\.7' > /dev/null; then
12542             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12543             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12544                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12545
12546             # Commands to make compiler produce verbose output that lists
12547             # what "hidden" libraries, object files and flags are used when
12548             # linking a shared library.
12549             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12550           else
12551             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12552             # platform.
12553             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12554             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12555                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12556
12557             # Commands to make compiler produce verbose output that lists
12558             # what "hidden" libraries, object files and flags are used when
12559             # linking a shared library.
12560             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12561           fi
12562
12563           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12564         fi
12565         ;;
12566     esac
12567     ;;
12568   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12569     no_undefined_flag_CXX='${wl}-z,text'
12570     archive_cmds_need_lc_CXX=no
12571     hardcode_shlibpath_var_CXX=no
12572     runpath_var='LD_RUN_PATH'
12573
12574     case $cc_basename in
12575       CC*)
12576         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12577         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12578         ;;
12579       *)
12580         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12581         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12582         ;;
12583     esac
12584     ;;
12585   sysv5* | sco3.2v5* | sco5v6*)
12586     # Note: We can NOT use -z defs as we might desire, because we do not
12587     # link with -lc, and that would cause any symbols used from libc to
12588     # always be unresolved, which means just about no library would
12589     # ever link correctly.  If we're not using GNU ld we use -z text
12590     # though, which does catch some bad symbols but isn't as heavy-handed
12591     # as -z defs.
12592     # For security reasons, it is highly recommended that you always
12593     # use absolute paths for naming shared libraries, and exclude the
12594     # DT_RUNPATH tag from executables and libraries.  But doing so
12595     # requires that you compile everything twice, which is a pain.
12596     # So that behaviour is only enabled if SCOABSPATH is set to a
12597     # non-empty value in the environment.  Most likely only useful for
12598     # creating official distributions of packages.
12599     # This is a hack until libtool officially supports absolute path
12600     # names for shared libraries.
12601     no_undefined_flag_CXX='${wl}-z,text'
12602     allow_undefined_flag_CXX='${wl}-z,nodefs'
12603     archive_cmds_need_lc_CXX=no
12604     hardcode_shlibpath_var_CXX=no
12605     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12606     hardcode_libdir_separator_CXX=':'
12607     link_all_deplibs_CXX=yes
12608     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12609     runpath_var='LD_RUN_PATH'
12610
12611     case $cc_basename in
12612       CC*)
12613         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12614         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12615         ;;
12616       *)
12617         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12618         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12619         ;;
12620     esac
12621     ;;
12622   tandem*)
12623     case $cc_basename in
12624       NCC*)
12625         # NonStop-UX NCC 3.20
12626         # FIXME: insert proper C++ library support
12627         ld_shlibs_CXX=no
12628         ;;
12629       *)
12630         # FIXME: insert proper C++ library support
12631         ld_shlibs_CXX=no
12632         ;;
12633     esac
12634     ;;
12635   vxworks*)
12636     # FIXME: insert proper C++ library support
12637     ld_shlibs_CXX=no
12638     ;;
12639   *)
12640     # FIXME: insert proper C++ library support
12641     ld_shlibs_CXX=no
12642     ;;
12643 esac
12644 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12645 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12646 test "$ld_shlibs_CXX" = no && can_build_shared=no
12647
12648 GCC_CXX="$GXX"
12649 LD_CXX="$LD"
12650
12651
12652 cat > conftest.$ac_ext <<EOF
12653 class Foo
12654 {
12655 public:
12656   Foo (void) { a = 0; }
12657 private:
12658   int a;
12659 };
12660 EOF
12661
12662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12663   (eval $ac_compile) 2>&5
12664   ac_status=$?
12665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666   (exit $ac_status); }; then
12667   # Parse the compiler output and extract the necessary
12668   # objects, libraries and library flags.
12669
12670   # Sentinel used to keep track of whether or not we are before
12671   # the conftest object file.
12672   pre_test_object_deps_done=no
12673
12674   # The `*' in the case matches for architectures that use `case' in
12675   # $output_verbose_cmd can trigger glob expansion during the loop
12676   # eval without this substitution.
12677   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12678
12679   for p in `eval $output_verbose_link_cmd`; do
12680     case $p in
12681
12682     -L* | -R* | -l*)
12683        # Some compilers place space between "-{L,R}" and the path.
12684        # Remove the space.
12685        if test $p = "-L" \
12686           || test $p = "-R"; then
12687          prev=$p
12688          continue
12689        else
12690          prev=
12691        fi
12692
12693        if test "$pre_test_object_deps_done" = no; then
12694          case $p in
12695          -L* | -R*)
12696            # Internal compiler library paths should come after those
12697            # provided the user.  The postdeps already come after the
12698            # user supplied libs so there is no need to process them.
12699            if test -z "$compiler_lib_search_path_CXX"; then
12700              compiler_lib_search_path_CXX="${prev}${p}"
12701            else
12702              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12703            fi
12704            ;;
12705          # The "-l" case would never come before the object being
12706          # linked, so don't bother handling this case.
12707          esac
12708        else
12709          if test -z "$postdeps_CXX"; then
12710            postdeps_CXX="${prev}${p}"
12711          else
12712            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12713          fi
12714        fi
12715        ;;
12716
12717     *.$objext)
12718        # This assumes that the test object file only shows up
12719        # once in the compiler output.
12720        if test "$p" = "conftest.$objext"; then
12721          pre_test_object_deps_done=yes
12722          continue
12723        fi
12724
12725        if test "$pre_test_object_deps_done" = no; then
12726          if test -z "$predep_objects_CXX"; then
12727            predep_objects_CXX="$p"
12728          else
12729            predep_objects_CXX="$predep_objects_CXX $p"
12730          fi
12731        else
12732          if test -z "$postdep_objects_CXX"; then
12733            postdep_objects_CXX="$p"
12734          else
12735            postdep_objects_CXX="$postdep_objects_CXX $p"
12736          fi
12737        fi
12738        ;;
12739
12740     *) ;; # Ignore the rest.
12741
12742     esac
12743   done
12744
12745   # Clean up.
12746   rm -f a.out a.exe
12747 else
12748   echo "libtool.m4: error: problem compiling CXX test program"
12749 fi
12750
12751 $rm -f confest.$objext
12752
12753 # PORTME: override above test on systems where it is broken
12754 case $host_os in
12755 interix3*)
12756   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12757   # hack all around it, let's just trust "g++" to DTRT.
12758   predep_objects_CXX=
12759   postdep_objects_CXX=
12760   postdeps_CXX=
12761   ;;
12762
12763 solaris*)
12764   case $cc_basename in
12765   CC*)
12766     # Adding this requires a known-good setup of shared libraries for
12767     # Sun compiler versions before 5.6, else PIC objects from an old
12768     # archive will be linked into the output, leading to subtle bugs.
12769     postdeps_CXX='-lCstd -lCrun'
12770     ;;
12771   esac
12772   ;;
12773 esac
12774
12775
12776 case " $postdeps_CXX " in
12777 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12778 esac
12779
12780 lt_prog_compiler_wl_CXX=
12781 lt_prog_compiler_pic_CXX=
12782 lt_prog_compiler_static_CXX=
12783
12784 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12785 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12786
12787   # C++ specific cases for pic, static, wl, etc.
12788   if test "$GXX" = yes; then
12789     lt_prog_compiler_wl_CXX='-Wl,'
12790     lt_prog_compiler_static_CXX='-static'
12791
12792     case $host_os in
12793     aix*)
12794       # All AIX code is PIC.
12795       if test "$host_cpu" = ia64; then
12796         # AIX 5 now supports IA64 processor
12797         lt_prog_compiler_static_CXX='-Bstatic'
12798       fi
12799       ;;
12800     amigaos*)
12801       # FIXME: we need at least 68020 code to build shared libraries, but
12802       # adding the `-m68020' flag to GCC prevents building anything better,
12803       # like `-m68040'.
12804       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12805       ;;
12806     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12807       # PIC is the default for these OSes.
12808       ;;
12809     mingw* | os2* | pw32*)
12810       # This hack is so that the source file can tell whether it is being
12811       # built for inclusion in a dll (and should export symbols for example).
12812       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12813       ;;
12814     darwin* | rhapsody*)
12815       # PIC is the default on this platform
12816       # Common symbols not allowed in MH_DYLIB files
12817       lt_prog_compiler_pic_CXX='-fno-common'
12818       ;;
12819     *djgpp*)
12820       # DJGPP does not support shared libraries at all
12821       lt_prog_compiler_pic_CXX=
12822       ;;
12823     interix3*)
12824       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12825       # Instead, we relocate shared libraries at runtime.
12826       ;;
12827     sysv4*MP*)
12828       if test -d /usr/nec; then
12829         lt_prog_compiler_pic_CXX=-Kconform_pic
12830       fi
12831       ;;
12832     hpux*)
12833       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12834       # not for PA HP-UX.
12835       case $host_cpu in
12836       hppa*64*|ia64*)
12837         ;;
12838       *)
12839         lt_prog_compiler_pic_CXX='-fPIC'
12840         ;;
12841       esac
12842       ;;
12843     *)
12844       lt_prog_compiler_pic_CXX='-fPIC'
12845       ;;
12846     esac
12847   else
12848     case $host_os in
12849       aix4* | aix5*)
12850         # All AIX code is PIC.
12851         if test "$host_cpu" = ia64; then
12852           # AIX 5 now supports IA64 processor
12853           lt_prog_compiler_static_CXX='-Bstatic'
12854         else
12855           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12856         fi
12857         ;;
12858       chorus*)
12859         case $cc_basename in
12860         cxch68*)
12861           # Green Hills C++ Compiler
12862           # _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"
12863           ;;
12864         esac
12865         ;;
12866        darwin*)
12867          # PIC is the default on this platform
12868          # Common symbols not allowed in MH_DYLIB files
12869          case $cc_basename in
12870            xlc*)
12871            lt_prog_compiler_pic_CXX='-qnocommon'
12872            lt_prog_compiler_wl_CXX='-Wl,'
12873            ;;
12874          esac
12875        ;;
12876       dgux*)
12877         case $cc_basename in
12878           ec++*)
12879             lt_prog_compiler_pic_CXX='-KPIC'
12880             ;;
12881           ghcx*)
12882             # Green Hills C++ Compiler
12883             lt_prog_compiler_pic_CXX='-pic'
12884             ;;
12885           *)
12886             ;;
12887         esac
12888         ;;
12889       freebsd* | dragonfly*)
12890         # FreeBSD uses GNU C++
12891         ;;
12892       hpux9* | hpux10* | hpux11*)
12893         case $cc_basename in
12894           CC*)
12895             lt_prog_compiler_wl_CXX='-Wl,'
12896             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12897             if test "$host_cpu" != ia64; then
12898               lt_prog_compiler_pic_CXX='+Z'
12899             fi
12900             ;;
12901           aCC*)
12902             lt_prog_compiler_wl_CXX='-Wl,'
12903             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12904             case $host_cpu in
12905             hppa*64*|ia64*)
12906               # +Z the default
12907               ;;
12908             *)
12909               lt_prog_compiler_pic_CXX='+Z'
12910               ;;
12911             esac
12912             ;;
12913           *)
12914             ;;
12915         esac
12916         ;;
12917       interix*)
12918         # This is c89, which is MS Visual C++ (no shared libs)
12919         # Anyone wants to do a port?
12920         ;;
12921       irix5* | irix6* | nonstopux*)
12922         case $cc_basename in
12923           CC*)
12924             lt_prog_compiler_wl_CXX='-Wl,'
12925             lt_prog_compiler_static_CXX='-non_shared'
12926             # CC pic flag -KPIC is the default.
12927             ;;
12928           *)
12929             ;;
12930         esac
12931         ;;
12932       linux* | k*bsd*-gnu)
12933         case $cc_basename in
12934           KCC*)
12935             # KAI C++ Compiler
12936             lt_prog_compiler_wl_CXX='--backend -Wl,'
12937             lt_prog_compiler_pic_CXX='-fPIC'
12938             ;;
12939           icpc* | ecpc*)
12940             # Intel C++
12941             lt_prog_compiler_wl_CXX='-Wl,'
12942             lt_prog_compiler_pic_CXX='-KPIC'
12943             lt_prog_compiler_static_CXX='-static'
12944             ;;
12945           pgCC*)
12946             # Portland Group C++ compiler.
12947             lt_prog_compiler_wl_CXX='-Wl,'
12948             lt_prog_compiler_pic_CXX='-fpic'
12949             lt_prog_compiler_static_CXX='-Bstatic'
12950             ;;
12951           cxx*)
12952             # Compaq C++
12953             # Make sure the PIC flag is empty.  It appears that all Alpha
12954             # Linux and Compaq Tru64 Unix objects are PIC.
12955             lt_prog_compiler_pic_CXX=
12956             lt_prog_compiler_static_CXX='-non_shared'
12957             ;;
12958           *)
12959             ;;
12960         esac
12961         ;;
12962       lynxos*)
12963         ;;
12964       m88k*)
12965         ;;
12966       mvs*)
12967         case $cc_basename in
12968           cxx*)
12969             lt_prog_compiler_pic_CXX='-W c,exportall'
12970             ;;
12971           *)
12972             ;;
12973         esac
12974         ;;
12975       netbsd* | netbsdelf*-gnu)
12976         ;;
12977       osf3* | osf4* | osf5*)
12978         case $cc_basename in
12979           KCC*)
12980             lt_prog_compiler_wl_CXX='--backend -Wl,'
12981             ;;
12982           RCC*)
12983             # Rational C++ 2.4.1
12984             lt_prog_compiler_pic_CXX='-pic'
12985             ;;
12986           cxx*)
12987             # Digital/Compaq C++
12988             lt_prog_compiler_wl_CXX='-Wl,'
12989             # Make sure the PIC flag is empty.  It appears that all Alpha
12990             # Linux and Compaq Tru64 Unix objects are PIC.
12991             lt_prog_compiler_pic_CXX=
12992             lt_prog_compiler_static_CXX='-non_shared'
12993             ;;
12994           *)
12995             ;;
12996         esac
12997         ;;
12998       psos*)
12999         ;;
13000       solaris*)
13001         case $cc_basename in
13002           CC*)
13003             # Sun C++ 4.2, 5.x and Centerline C++
13004             lt_prog_compiler_pic_CXX='-KPIC'
13005             lt_prog_compiler_static_CXX='-Bstatic'
13006             lt_prog_compiler_wl_CXX='-Qoption ld '
13007             ;;
13008           gcx*)
13009             # Green Hills C++ Compiler
13010             lt_prog_compiler_pic_CXX='-PIC'
13011             ;;
13012           *)
13013             ;;
13014         esac
13015         ;;
13016       sunos4*)
13017         case $cc_basename in
13018           CC*)
13019             # Sun C++ 4.x
13020             lt_prog_compiler_pic_CXX='-pic'
13021             lt_prog_compiler_static_CXX='-Bstatic'
13022             ;;
13023           lcc*)
13024             # Lucid
13025             lt_prog_compiler_pic_CXX='-pic'
13026             ;;
13027           *)
13028             ;;
13029         esac
13030         ;;
13031       tandem*)
13032         case $cc_basename in
13033           NCC*)
13034             # NonStop-UX NCC 3.20
13035             lt_prog_compiler_pic_CXX='-KPIC'
13036             ;;
13037           *)
13038             ;;
13039         esac
13040         ;;
13041       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13042         case $cc_basename in
13043           CC*)
13044             lt_prog_compiler_wl_CXX='-Wl,'
13045             lt_prog_compiler_pic_CXX='-KPIC'
13046             lt_prog_compiler_static_CXX='-Bstatic'
13047             ;;
13048         esac
13049         ;;
13050       vxworks*)
13051         ;;
13052       *)
13053         lt_prog_compiler_can_build_shared_CXX=no
13054         ;;
13055     esac
13056   fi
13057
13058 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13059 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13060
13061 #
13062 # Check to make sure the PIC flag actually works.
13063 #
13064 if test -n "$lt_prog_compiler_pic_CXX"; then
13065
13066 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13067 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13068 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13069   echo $ECHO_N "(cached) $ECHO_C" >&6
13070 else
13071   lt_prog_compiler_pic_works_CXX=no
13072   ac_outfile=conftest.$ac_objext
13073    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13074    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13075    # Insert the option either (1) after the last *FLAGS variable, or
13076    # (2) before a word containing "conftest.", or (3) at the end.
13077    # Note that $ac_compile itself does not contain backslashes and begins
13078    # with a dollar sign (not a hyphen), so the echo should work correctly.
13079    # The option is referenced via a variable to avoid confusing sed.
13080    lt_compile=`echo "$ac_compile" | $SED \
13081    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13082    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13083    -e 's:$: $lt_compiler_flag:'`
13084    (eval echo "\"\$as_me:13084: $lt_compile\"" >&5)
13085    (eval "$lt_compile" 2>conftest.err)
13086    ac_status=$?
13087    cat conftest.err >&5
13088    echo "$as_me:13088: \$? = $ac_status" >&5
13089    if (exit $ac_status) && test -s "$ac_outfile"; then
13090      # The compiler can only warn and ignore the option if not recognized
13091      # So say no if there are warnings other than the usual output.
13092      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13093      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13094      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13095        lt_prog_compiler_pic_works_CXX=yes
13096      fi
13097    fi
13098    $rm conftest*
13099
13100 fi
13101 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13102 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13103
13104 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13105     case $lt_prog_compiler_pic_CXX in
13106      "" | " "*) ;;
13107      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13108      esac
13109 else
13110     lt_prog_compiler_pic_CXX=
13111      lt_prog_compiler_can_build_shared_CXX=no
13112 fi
13113
13114 fi
13115 case $host_os in
13116   # For platforms which do not support PIC, -DPIC is meaningless:
13117   *djgpp*)
13118     lt_prog_compiler_pic_CXX=
13119     ;;
13120   *)
13121     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13122     ;;
13123 esac
13124
13125 #
13126 # Check to make sure the static flag actually works.
13127 #
13128 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13129 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13130 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13131 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13132   echo $ECHO_N "(cached) $ECHO_C" >&6
13133 else
13134   lt_prog_compiler_static_works_CXX=no
13135    save_LDFLAGS="$LDFLAGS"
13136    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13137    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13138    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13139      # The linker can only warn and ignore the option if not recognized
13140      # So say no if there are warnings
13141      if test -s conftest.err; then
13142        # Append any errors to the config.log.
13143        cat conftest.err 1>&5
13144        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13145        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13146        if diff conftest.exp conftest.er2 >/dev/null; then
13147          lt_prog_compiler_static_works_CXX=yes
13148        fi
13149      else
13150        lt_prog_compiler_static_works_CXX=yes
13151      fi
13152    fi
13153    $rm conftest*
13154    LDFLAGS="$save_LDFLAGS"
13155
13156 fi
13157 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13158 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13159
13160 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13161     :
13162 else
13163     lt_prog_compiler_static_CXX=
13164 fi
13165
13166
13167 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13168 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13169 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13170   echo $ECHO_N "(cached) $ECHO_C" >&6
13171 else
13172   lt_cv_prog_compiler_c_o_CXX=no
13173    $rm -r conftest 2>/dev/null
13174    mkdir conftest
13175    cd conftest
13176    mkdir out
13177    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13178
13179    lt_compiler_flag="-o out/conftest2.$ac_objext"
13180    # Insert the option either (1) after the last *FLAGS variable, or
13181    # (2) before a word containing "conftest.", or (3) at the end.
13182    # Note that $ac_compile itself does not contain backslashes and begins
13183    # with a dollar sign (not a hyphen), so the echo should work correctly.
13184    lt_compile=`echo "$ac_compile" | $SED \
13185    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13186    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13187    -e 's:$: $lt_compiler_flag:'`
13188    (eval echo "\"\$as_me:13188: $lt_compile\"" >&5)
13189    (eval "$lt_compile" 2>out/conftest.err)
13190    ac_status=$?
13191    cat out/conftest.err >&5
13192    echo "$as_me:13192: \$? = $ac_status" >&5
13193    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13194    then
13195      # The compiler can only warn and ignore the option if not recognized
13196      # So say no if there are warnings
13197      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13198      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13199      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13200        lt_cv_prog_compiler_c_o_CXX=yes
13201      fi
13202    fi
13203    chmod u+w . 2>&5
13204    $rm conftest*
13205    # SGI C++ compiler will create directory out/ii_files/ for
13206    # template instantiation
13207    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13208    $rm out/* && rmdir out
13209    cd ..
13210    rmdir conftest
13211    $rm conftest*
13212
13213 fi
13214 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13215 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13216
13217
13218 hard_links="nottested"
13219 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13220   # do not overwrite the value of need_locks provided by the user
13221   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13222 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13223   hard_links=yes
13224   $rm conftest*
13225   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13226   touch conftest.a
13227   ln conftest.a conftest.b 2>&5 || hard_links=no
13228   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13229   { echo "$as_me:$LINENO: result: $hard_links" >&5
13230 echo "${ECHO_T}$hard_links" >&6; }
13231   if test "$hard_links" = no; then
13232     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13233 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13234     need_locks=warn
13235   fi
13236 else
13237   need_locks=no
13238 fi
13239
13240 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13241 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13242
13243   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13244   case $host_os in
13245   aix4* | aix5*)
13246     # If we're using GNU nm, then we don't want the "-C" option.
13247     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13248     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13249       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'
13250     else
13251       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'
13252     fi
13253     ;;
13254   pw32*)
13255     export_symbols_cmds_CXX="$ltdll_cmds"
13256   ;;
13257   cygwin* | mingw*)
13258     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'
13259   ;;
13260   linux* | k*bsd*-gnu)
13261     link_all_deplibs_CXX=no
13262   ;;
13263   *)
13264     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13265   ;;
13266   esac
13267
13268 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13269 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13270 test "$ld_shlibs_CXX" = no && can_build_shared=no
13271
13272 #
13273 # Do we need to explicitly link libc?
13274 #
13275 case "x$archive_cmds_need_lc_CXX" in
13276 x|xyes)
13277   # Assume -lc should be added
13278   archive_cmds_need_lc_CXX=yes
13279
13280   if test "$enable_shared" = yes && test "$GCC" = yes; then
13281     case $archive_cmds_CXX in
13282     *'~'*)
13283       # FIXME: we may have to deal with multi-command sequences.
13284       ;;
13285     '$CC '*)
13286       # Test whether the compiler implicitly links with -lc since on some
13287       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13288       # to ld, don't add -lc before -lgcc.
13289       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13290 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13291       $rm conftest*
13292       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13293
13294       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13295   (eval $ac_compile) 2>&5
13296   ac_status=$?
13297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298   (exit $ac_status); } 2>conftest.err; then
13299         soname=conftest
13300         lib=conftest
13301         libobjs=conftest.$ac_objext
13302         deplibs=
13303         wl=$lt_prog_compiler_wl_CXX
13304         pic_flag=$lt_prog_compiler_pic_CXX
13305         compiler_flags=-v
13306         linker_flags=-v
13307         verstring=
13308         output_objdir=.
13309         libname=conftest
13310         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13311         allow_undefined_flag_CXX=
13312         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13313   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13314   ac_status=$?
13315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316   (exit $ac_status); }
13317         then
13318           archive_cmds_need_lc_CXX=no
13319         else
13320           archive_cmds_need_lc_CXX=yes
13321         fi
13322         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13323       else
13324         cat conftest.err 1>&5
13325       fi
13326       $rm conftest*
13327       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13328 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13329       ;;
13330     esac
13331   fi
13332   ;;
13333 esac
13334
13335 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13336 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13337 library_names_spec=
13338 libname_spec='lib$name'
13339 soname_spec=
13340 shrext_cmds=".so"
13341 postinstall_cmds=
13342 postuninstall_cmds=
13343 finish_cmds=
13344 finish_eval=
13345 shlibpath_var=
13346 shlibpath_overrides_runpath=unknown
13347 version_type=none
13348 dynamic_linker="$host_os ld.so"
13349 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13350 if test "$GCC" = yes; then
13351   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13352   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13353     # if the path contains ";" then we assume it to be the separator
13354     # otherwise default to the standard path separator (i.e. ":") - it is
13355     # assumed that no part of a normal pathname contains ";" but that should
13356     # okay in the real world where ";" in dirpaths is itself problematic.
13357     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13358   else
13359     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13360   fi
13361 else
13362   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13363 fi
13364 need_lib_prefix=unknown
13365 hardcode_into_libs=no
13366
13367 # when you set need_version to no, make sure it does not cause -set_version
13368 # flags to be left without arguments
13369 need_version=unknown
13370
13371 case $host_os in
13372 aix3*)
13373   version_type=linux
13374   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13375   shlibpath_var=LIBPATH
13376
13377   # AIX 3 has no versioning support, so we append a major version to the name.
13378   soname_spec='${libname}${release}${shared_ext}$major'
13379   ;;
13380
13381 aix4* | aix5*)
13382   version_type=linux
13383   need_lib_prefix=no
13384   need_version=no
13385   hardcode_into_libs=yes
13386   if test "$host_cpu" = ia64; then
13387     # AIX 5 supports IA64
13388     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13389     shlibpath_var=LD_LIBRARY_PATH
13390   else
13391     # With GCC up to 2.95.x, collect2 would create an import file
13392     # for dependence libraries.  The import file would start with
13393     # the line `#! .'.  This would cause the generated library to
13394     # depend on `.', always an invalid library.  This was fixed in
13395     # development snapshots of GCC prior to 3.0.
13396     case $host_os in
13397       aix4 | aix4.[01] | aix4.[01].*)
13398       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13399            echo ' yes '
13400            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13401         :
13402       else
13403         can_build_shared=no
13404       fi
13405       ;;
13406     esac
13407     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13408     # soname into executable. Probably we can add versioning support to
13409     # collect2, so additional links can be useful in future.
13410     if test "$aix_use_runtimelinking" = yes; then
13411       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13412       # instead of lib<name>.a to let people know that these are not
13413       # typical AIX shared libraries.
13414       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13415     else
13416       # We preserve .a as extension for shared libraries through AIX4.2
13417       # and later when we are not doing run time linking.
13418       library_names_spec='${libname}${release}.a $libname.a'
13419       soname_spec='${libname}${release}${shared_ext}$major'
13420     fi
13421     shlibpath_var=LIBPATH
13422   fi
13423   ;;
13424
13425 amigaos*)
13426   library_names_spec='$libname.ixlibrary $libname.a'
13427   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13428   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'
13429   ;;
13430
13431 beos*)
13432   library_names_spec='${libname}${shared_ext}'
13433   dynamic_linker="$host_os ld.so"
13434   shlibpath_var=LIBRARY_PATH
13435   ;;
13436
13437 bsdi[45]*)
13438   version_type=linux
13439   need_version=no
13440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13441   soname_spec='${libname}${release}${shared_ext}$major'
13442   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13443   shlibpath_var=LD_LIBRARY_PATH
13444   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13445   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13446   # the default ld.so.conf also contains /usr/contrib/lib and
13447   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13448   # libtool to hard-code these into programs
13449   ;;
13450
13451 cygwin* | mingw* | pw32*)
13452   version_type=windows
13453   shrext_cmds=".dll"
13454   need_version=no
13455   need_lib_prefix=no
13456
13457   case $GCC,$host_os in
13458   yes,cygwin* | yes,mingw* | yes,pw32*)
13459     library_names_spec='$libname.dll.a'
13460     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13461     postinstall_cmds='base_file=`basename \${file}`~
13462       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13463       dldir=$destdir/`dirname \$dlpath`~
13464       test -d \$dldir || mkdir -p \$dldir~
13465       $install_prog $dir/$dlname \$dldir/$dlname~
13466       chmod a+x \$dldir/$dlname'
13467     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13468       dlpath=$dir/\$dldll~
13469        $rm \$dlpath'
13470     shlibpath_overrides_runpath=yes
13471
13472     case $host_os in
13473     cygwin*)
13474       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13475       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13476       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13477       ;;
13478     mingw*)
13479       # MinGW DLLs use traditional 'lib' prefix
13480       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13481       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13482       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13483         # It is most probably a Windows format PATH printed by
13484         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13485         # path with ; separators, and with drive letters. We can handle the
13486         # drive letters (cygwin fileutils understands them), so leave them,
13487         # especially as we might pass files found there to a mingw objdump,
13488         # which wouldn't understand a cygwinified path. Ahh.
13489         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13490       else
13491         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13492       fi
13493       ;;
13494     pw32*)
13495       # pw32 DLLs use 'pw' prefix rather than 'lib'
13496       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13497       ;;
13498     esac
13499     ;;
13500
13501   *)
13502     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13503     ;;
13504   esac
13505   dynamic_linker='Win32 ld.exe'
13506   # FIXME: first we should search . and the directory the executable is in
13507   shlibpath_var=PATH
13508   ;;
13509
13510 darwin* | rhapsody*)
13511   dynamic_linker="$host_os dyld"
13512   version_type=darwin
13513   need_lib_prefix=no
13514   need_version=no
13515   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13516   soname_spec='${libname}${release}${major}$shared_ext'
13517   shlibpath_overrides_runpath=yes
13518   shlibpath_var=DYLD_LIBRARY_PATH
13519   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13520   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13521   if test "$GCC" = yes; then
13522     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"`
13523   else
13524     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13525   fi
13526   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13527   ;;
13528
13529 dgux*)
13530   version_type=linux
13531   need_lib_prefix=no
13532   need_version=no
13533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13534   soname_spec='${libname}${release}${shared_ext}$major'
13535   shlibpath_var=LD_LIBRARY_PATH
13536   ;;
13537
13538 freebsd1*)
13539   dynamic_linker=no
13540   ;;
13541
13542 freebsd* | dragonfly*)
13543   # DragonFly does not have aout.  When/if they implement a new
13544   # versioning mechanism, adjust this.
13545   if test -x /usr/bin/objformat; then
13546     objformat=`/usr/bin/objformat`
13547   else
13548     case $host_os in
13549     freebsd[123]*) objformat=aout ;;
13550     *) objformat=elf ;;
13551     esac
13552   fi
13553   version_type=freebsd-$objformat
13554   case $version_type in
13555     freebsd-elf*)
13556       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13557       need_version=no
13558       need_lib_prefix=no
13559       ;;
13560     freebsd-*)
13561       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13562       need_version=yes
13563       ;;
13564   esac
13565   shlibpath_var=LD_LIBRARY_PATH
13566   case $host_os in
13567   freebsd2*)
13568     shlibpath_overrides_runpath=yes
13569     ;;
13570   freebsd3.[01]* | freebsdelf3.[01]*)
13571     shlibpath_overrides_runpath=yes
13572     hardcode_into_libs=yes
13573     ;;
13574   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13575   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13576     shlibpath_overrides_runpath=no
13577     hardcode_into_libs=yes
13578     ;;
13579   freebsd*) # from 4.6 on
13580     shlibpath_overrides_runpath=yes
13581     hardcode_into_libs=yes
13582     ;;
13583   esac
13584   ;;
13585
13586 gnu*)
13587   version_type=linux
13588   need_lib_prefix=no
13589   need_version=no
13590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13591   soname_spec='${libname}${release}${shared_ext}$major'
13592   shlibpath_var=LD_LIBRARY_PATH
13593   hardcode_into_libs=yes
13594   ;;
13595
13596 hpux9* | hpux10* | hpux11*)
13597   # Give a soname corresponding to the major version so that dld.sl refuses to
13598   # link against other versions.
13599   version_type=sunos
13600   need_lib_prefix=no
13601   need_version=no
13602   case $host_cpu in
13603   ia64*)
13604     shrext_cmds='.so'
13605     hardcode_into_libs=yes
13606     dynamic_linker="$host_os dld.so"
13607     shlibpath_var=LD_LIBRARY_PATH
13608     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13609     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13610     soname_spec='${libname}${release}${shared_ext}$major'
13611     if test "X$HPUX_IA64_MODE" = X32; then
13612       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13613     else
13614       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13615     fi
13616     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13617     ;;
13618    hppa*64*)
13619      shrext_cmds='.sl'
13620      hardcode_into_libs=yes
13621      dynamic_linker="$host_os dld.sl"
13622      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13623      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13624      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13625      soname_spec='${libname}${release}${shared_ext}$major'
13626      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13627      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13628      ;;
13629    *)
13630     shrext_cmds='.sl'
13631     dynamic_linker="$host_os dld.sl"
13632     shlibpath_var=SHLIB_PATH
13633     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13634     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13635     soname_spec='${libname}${release}${shared_ext}$major'
13636     ;;
13637   esac
13638   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13639   postinstall_cmds='chmod 555 $lib'
13640   ;;
13641
13642 interix3*)
13643   version_type=linux
13644   need_lib_prefix=no
13645   need_version=no
13646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13647   soname_spec='${libname}${release}${shared_ext}$major'
13648   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13649   shlibpath_var=LD_LIBRARY_PATH
13650   shlibpath_overrides_runpath=no
13651   hardcode_into_libs=yes
13652   ;;
13653
13654 irix5* | irix6* | nonstopux*)
13655   case $host_os in
13656     nonstopux*) version_type=nonstopux ;;
13657     *)
13658         if test "$lt_cv_prog_gnu_ld" = yes; then
13659                 version_type=linux
13660         else
13661                 version_type=irix
13662         fi ;;
13663   esac
13664   need_lib_prefix=no
13665   need_version=no
13666   soname_spec='${libname}${release}${shared_ext}$major'
13667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13668   case $host_os in
13669   irix5* | nonstopux*)
13670     libsuff= shlibsuff=
13671     ;;
13672   *)
13673     case $LD in # libtool.m4 will add one of these switches to LD
13674     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13675       libsuff= shlibsuff= libmagic=32-bit;;
13676     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13677       libsuff=32 shlibsuff=N32 libmagic=N32;;
13678     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13679       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13680     *) libsuff= shlibsuff= libmagic=never-match;;
13681     esac
13682     ;;
13683   esac
13684   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13685   shlibpath_overrides_runpath=no
13686   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13687   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13688   hardcode_into_libs=yes
13689   ;;
13690
13691 # No shared lib support for Linux oldld, aout, or coff.
13692 linux*oldld* | linux*aout* | linux*coff*)
13693   dynamic_linker=no
13694   ;;
13695
13696 # This must be Linux ELF.
13697 linux* | k*bsd*-gnu)
13698   version_type=linux
13699   need_lib_prefix=no
13700   need_version=no
13701   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13702   soname_spec='${libname}${release}${shared_ext}$major'
13703   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13704   shlibpath_var=LD_LIBRARY_PATH
13705   shlibpath_overrides_runpath=no
13706   # This implies no fast_install, which is unacceptable.
13707   # Some rework will be needed to allow for fast_install
13708   # before this can be enabled.
13709   hardcode_into_libs=yes
13710
13711   # Append ld.so.conf contents to the search path
13712   if test -f /etc/ld.so.conf; then
13713     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' ' '`
13714     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13715   fi
13716
13717   # We used to test for /lib/ld.so.1 and disable shared libraries on
13718   # powerpc, because MkLinux only supported shared libraries with the
13719   # GNU dynamic linker.  Since this was broken with cross compilers,
13720   # most powerpc-linux boxes support dynamic linking these days and
13721   # people can always --disable-shared, the test was removed, and we
13722   # assume the GNU/Linux dynamic linker is in use.
13723   dynamic_linker='GNU/Linux ld.so'
13724   ;;
13725
13726 netbsdelf*-gnu)
13727   version_type=linux
13728   need_lib_prefix=no
13729   need_version=no
13730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13731   soname_spec='${libname}${release}${shared_ext}$major'
13732   shlibpath_var=LD_LIBRARY_PATH
13733   shlibpath_overrides_runpath=no
13734   hardcode_into_libs=yes
13735   dynamic_linker='NetBSD ld.elf_so'
13736   ;;
13737
13738 netbsd*)
13739   version_type=sunos
13740   need_lib_prefix=no
13741   need_version=no
13742   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13743     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13744     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13745     dynamic_linker='NetBSD (a.out) ld.so'
13746   else
13747     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13748     soname_spec='${libname}${release}${shared_ext}$major'
13749     dynamic_linker='NetBSD ld.elf_so'
13750   fi
13751   shlibpath_var=LD_LIBRARY_PATH
13752   shlibpath_overrides_runpath=yes
13753   hardcode_into_libs=yes
13754   ;;
13755
13756 newsos6)
13757   version_type=linux
13758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13759   shlibpath_var=LD_LIBRARY_PATH
13760   shlibpath_overrides_runpath=yes
13761   ;;
13762
13763 nto-qnx*)
13764   version_type=linux
13765   need_lib_prefix=no
13766   need_version=no
13767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13768   soname_spec='${libname}${release}${shared_ext}$major'
13769   shlibpath_var=LD_LIBRARY_PATH
13770   shlibpath_overrides_runpath=yes
13771   ;;
13772
13773 openbsd*)
13774   version_type=sunos
13775   sys_lib_dlsearch_path_spec="/usr/lib"
13776   need_lib_prefix=no
13777   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13778   case $host_os in
13779     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13780     *)                         need_version=no  ;;
13781   esac
13782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13783   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13784   shlibpath_var=LD_LIBRARY_PATH
13785   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13786     case $host_os in
13787       openbsd2.[89] | openbsd2.[89].*)
13788         shlibpath_overrides_runpath=no
13789         ;;
13790       *)
13791         shlibpath_overrides_runpath=yes
13792         ;;
13793       esac
13794   else
13795     shlibpath_overrides_runpath=yes
13796   fi
13797   ;;
13798
13799 os2*)
13800   libname_spec='$name'
13801   shrext_cmds=".dll"
13802   need_lib_prefix=no
13803   library_names_spec='$libname${shared_ext} $libname.a'
13804   dynamic_linker='OS/2 ld.exe'
13805   shlibpath_var=LIBPATH
13806   ;;
13807
13808 osf3* | osf4* | osf5*)
13809   version_type=osf
13810   need_lib_prefix=no
13811   need_version=no
13812   soname_spec='${libname}${release}${shared_ext}$major'
13813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13814   shlibpath_var=LD_LIBRARY_PATH
13815   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13816   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13817   ;;
13818
13819 solaris*)
13820   version_type=linux
13821   need_lib_prefix=no
13822   need_version=no
13823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13824   soname_spec='${libname}${release}${shared_ext}$major'
13825   shlibpath_var=LD_LIBRARY_PATH
13826   shlibpath_overrides_runpath=yes
13827   hardcode_into_libs=yes
13828   # ldd complains unless libraries are executable
13829   postinstall_cmds='chmod +x $lib'
13830   ;;
13831
13832 sunos4*)
13833   version_type=sunos
13834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13835   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13836   shlibpath_var=LD_LIBRARY_PATH
13837   shlibpath_overrides_runpath=yes
13838   if test "$with_gnu_ld" = yes; then
13839     need_lib_prefix=no
13840   fi
13841   need_version=yes
13842   ;;
13843
13844 sysv4 | sysv4.3*)
13845   version_type=linux
13846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13847   soname_spec='${libname}${release}${shared_ext}$major'
13848   shlibpath_var=LD_LIBRARY_PATH
13849   case $host_vendor in
13850     sni)
13851       shlibpath_overrides_runpath=no
13852       need_lib_prefix=no
13853       export_dynamic_flag_spec='${wl}-Blargedynsym'
13854       runpath_var=LD_RUN_PATH
13855       ;;
13856     siemens)
13857       need_lib_prefix=no
13858       ;;
13859     motorola)
13860       need_lib_prefix=no
13861       need_version=no
13862       shlibpath_overrides_runpath=no
13863       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13864       ;;
13865   esac
13866   ;;
13867
13868 sysv4*MP*)
13869   if test -d /usr/nec ;then
13870     version_type=linux
13871     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13872     soname_spec='$libname${shared_ext}.$major'
13873     shlibpath_var=LD_LIBRARY_PATH
13874   fi
13875   ;;
13876
13877 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13878   version_type=freebsd-elf
13879   need_lib_prefix=no
13880   need_version=no
13881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13882   soname_spec='${libname}${release}${shared_ext}$major'
13883   shlibpath_var=LD_LIBRARY_PATH
13884   hardcode_into_libs=yes
13885   if test "$with_gnu_ld" = yes; then
13886     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13887     shlibpath_overrides_runpath=no
13888   else
13889     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13890     shlibpath_overrides_runpath=yes
13891     case $host_os in
13892       sco3.2v5*)
13893         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13894         ;;
13895     esac
13896   fi
13897   sys_lib_dlsearch_path_spec='/usr/lib'
13898   ;;
13899
13900 uts4*)
13901   version_type=linux
13902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13903   soname_spec='${libname}${release}${shared_ext}$major'
13904   shlibpath_var=LD_LIBRARY_PATH
13905   ;;
13906
13907 *)
13908   dynamic_linker=no
13909   ;;
13910 esac
13911 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13912 echo "${ECHO_T}$dynamic_linker" >&6; }
13913 test "$dynamic_linker" = no && can_build_shared=no
13914
13915 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13916 if test "$GCC" = yes; then
13917   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13918 fi
13919
13920 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13921 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13922 hardcode_action_CXX=
13923 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13924    test -n "$runpath_var_CXX" || \
13925    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13926
13927   # We can hardcode non-existant directories.
13928   if test "$hardcode_direct_CXX" != no &&
13929      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13930      # have to relink, otherwise we might link with an installed library
13931      # when we should be linking with a yet-to-be-installed one
13932      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13933      test "$hardcode_minus_L_CXX" != no; then
13934     # Linking always hardcodes the temporary library directory.
13935     hardcode_action_CXX=relink
13936   else
13937     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13938     hardcode_action_CXX=immediate
13939   fi
13940 else
13941   # We cannot hardcode anything, or else we can only hardcode existing
13942   # directories.
13943   hardcode_action_CXX=unsupported
13944 fi
13945 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13946 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13947
13948 if test "$hardcode_action_CXX" = relink; then
13949   # Fast installation is not supported
13950   enable_fast_install=no
13951 elif test "$shlibpath_overrides_runpath" = yes ||
13952      test "$enable_shared" = no; then
13953   # Fast installation is not necessary
13954   enable_fast_install=needless
13955 fi
13956
13957
13958 # The else clause should only fire when bootstrapping the
13959 # libtool distribution, otherwise you forgot to ship ltmain.sh
13960 # with your package, and you will get complaints that there are
13961 # no rules to generate ltmain.sh.
13962 if test -f "$ltmain"; then
13963   # See if we are running on zsh, and set the options which allow our commands through
13964   # without removal of \ escapes.
13965   if test -n "${ZSH_VERSION+set}" ; then
13966     setopt NO_GLOB_SUBST
13967   fi
13968   # Now quote all the things that may contain metacharacters while being
13969   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13970   # variables and quote the copies for generation of the libtool script.
13971   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13972     SED SHELL STRIP \
13973     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13974     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13975     deplibs_check_method reload_flag reload_cmds need_locks \
13976     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13977     lt_cv_sys_global_symbol_to_c_name_address \
13978     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13979     old_postinstall_cmds old_postuninstall_cmds \
13980     compiler_CXX \
13981     CC_CXX \
13982     LD_CXX \
13983     lt_prog_compiler_wl_CXX \
13984     lt_prog_compiler_pic_CXX \
13985     lt_prog_compiler_static_CXX \
13986     lt_prog_compiler_no_builtin_flag_CXX \
13987     export_dynamic_flag_spec_CXX \
13988     thread_safe_flag_spec_CXX \
13989     whole_archive_flag_spec_CXX \
13990     enable_shared_with_static_runtimes_CXX \
13991     old_archive_cmds_CXX \
13992     old_archive_from_new_cmds_CXX \
13993     predep_objects_CXX \
13994     postdep_objects_CXX \
13995     predeps_CXX \
13996     postdeps_CXX \
13997     compiler_lib_search_path_CXX \
13998     archive_cmds_CXX \
13999     archive_expsym_cmds_CXX \
14000     postinstall_cmds_CXX \
14001     postuninstall_cmds_CXX \
14002     old_archive_from_expsyms_cmds_CXX \
14003     allow_undefined_flag_CXX \
14004     no_undefined_flag_CXX \
14005     export_symbols_cmds_CXX \
14006     hardcode_libdir_flag_spec_CXX \
14007     hardcode_libdir_flag_spec_ld_CXX \
14008     hardcode_libdir_separator_CXX \
14009     hardcode_automatic_CXX \
14010     module_cmds_CXX \
14011     module_expsym_cmds_CXX \
14012     lt_cv_prog_compiler_c_o_CXX \
14013     exclude_expsyms_CXX \
14014     include_expsyms_CXX; do
14015
14016     case $var in
14017     old_archive_cmds_CXX | \
14018     old_archive_from_new_cmds_CXX | \
14019     archive_cmds_CXX | \
14020     archive_expsym_cmds_CXX | \
14021     module_cmds_CXX | \
14022     module_expsym_cmds_CXX | \
14023     old_archive_from_expsyms_cmds_CXX | \
14024     export_symbols_cmds_CXX | \
14025     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14026     postinstall_cmds | postuninstall_cmds | \
14027     old_postinstall_cmds | old_postuninstall_cmds | \
14028     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14029       # Double-quote double-evaled strings.
14030       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14031       ;;
14032     *)
14033       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14034       ;;
14035     esac
14036   done
14037
14038   case $lt_echo in
14039   *'\$0 --fallback-echo"')
14040     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14041     ;;
14042   esac
14043
14044 cfgfile="$ofile"
14045
14046   cat <<__EOF__ >> "$cfgfile"
14047 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14048
14049 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14050
14051 # Shell to use when invoking shell scripts.
14052 SHELL=$lt_SHELL
14053
14054 # Whether or not to build shared libraries.
14055 build_libtool_libs=$enable_shared
14056
14057 # Whether or not to build static libraries.
14058 build_old_libs=$enable_static
14059
14060 # Whether or not to add -lc for building shared libraries.
14061 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14062
14063 # Whether or not to disallow shared libs when runtime libs are static
14064 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14065
14066 # Whether or not to optimize for fast installation.
14067 fast_install=$enable_fast_install
14068
14069 # The host system.
14070 host_alias=$host_alias
14071 host=$host
14072 host_os=$host_os
14073
14074 # The build system.
14075 build_alias=$build_alias
14076 build=$build
14077 build_os=$build_os
14078
14079 # An echo program that does not interpret backslashes.
14080 echo=$lt_echo
14081
14082 # The archiver.
14083 AR=$lt_AR
14084 AR_FLAGS=$lt_AR_FLAGS
14085
14086 # A C compiler.
14087 LTCC=$lt_LTCC
14088
14089 # LTCC compiler flags.
14090 LTCFLAGS=$lt_LTCFLAGS
14091
14092 # A language-specific compiler.
14093 CC=$lt_compiler_CXX
14094
14095 # Is the compiler the GNU C compiler?
14096 with_gcc=$GCC_CXX
14097
14098 # An ERE matcher.
14099 EGREP=$lt_EGREP
14100
14101 # The linker used to build libraries.
14102 LD=$lt_LD_CXX
14103
14104 # Whether we need hard or soft links.
14105 LN_S=$lt_LN_S
14106
14107 # A BSD-compatible nm program.
14108 NM=$lt_NM
14109
14110 # A symbol stripping program
14111 STRIP=$lt_STRIP
14112
14113 # Used to examine libraries when file_magic_cmd begins "file"
14114 MAGIC_CMD=$MAGIC_CMD
14115
14116 # Used on cygwin: DLL creation program.
14117 DLLTOOL="$DLLTOOL"
14118
14119 # Used on cygwin: object dumper.
14120 OBJDUMP="$OBJDUMP"
14121
14122 # Used on cygwin: assembler.
14123 AS="$AS"
14124
14125 # The name of the directory that contains temporary libtool files.
14126 objdir=$objdir
14127
14128 # How to create reloadable object files.
14129 reload_flag=$lt_reload_flag
14130 reload_cmds=$lt_reload_cmds
14131
14132 # How to pass a linker flag through the compiler.
14133 wl=$lt_lt_prog_compiler_wl_CXX
14134
14135 # Object file suffix (normally "o").
14136 objext="$ac_objext"
14137
14138 # Old archive suffix (normally "a").
14139 libext="$libext"
14140
14141 # Shared library suffix (normally ".so").
14142 shrext_cmds='$shrext_cmds'
14143
14144 # Executable file suffix (normally "").
14145 exeext="$exeext"
14146
14147 # Additional compiler flags for building library objects.
14148 pic_flag=$lt_lt_prog_compiler_pic_CXX
14149 pic_mode=$pic_mode
14150
14151 # What is the maximum length of a command?
14152 max_cmd_len=$lt_cv_sys_max_cmd_len
14153
14154 # Does compiler simultaneously support -c and -o options?
14155 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14156
14157 # Must we lock files when doing compilation?
14158 need_locks=$lt_need_locks
14159
14160 # Do we need the lib prefix for modules?
14161 need_lib_prefix=$need_lib_prefix
14162
14163 # Do we need a version for libraries?
14164 need_version=$need_version
14165
14166 # Whether dlopen is supported.
14167 dlopen_support=$enable_dlopen
14168
14169 # Whether dlopen of programs is supported.
14170 dlopen_self=$enable_dlopen_self
14171
14172 # Whether dlopen of statically linked programs is supported.
14173 dlopen_self_static=$enable_dlopen_self_static
14174
14175 # Compiler flag to prevent dynamic linking.
14176 link_static_flag=$lt_lt_prog_compiler_static_CXX
14177
14178 # Compiler flag to turn off builtin functions.
14179 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14180
14181 # Compiler flag to allow reflexive dlopens.
14182 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14183
14184 # Compiler flag to generate shared objects directly from archives.
14185 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14186
14187 # Compiler flag to generate thread-safe objects.
14188 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14189
14190 # Library versioning type.
14191 version_type=$version_type
14192
14193 # Format of library name prefix.
14194 libname_spec=$lt_libname_spec
14195
14196 # List of archive names.  First name is the real one, the rest are links.
14197 # The last name is the one that the linker finds with -lNAME.
14198 library_names_spec=$lt_library_names_spec
14199
14200 # The coded name of the library, if different from the real name.
14201 soname_spec=$lt_soname_spec
14202
14203 # Commands used to build and install an old-style archive.
14204 RANLIB=$lt_RANLIB
14205 old_archive_cmds=$lt_old_archive_cmds_CXX
14206 old_postinstall_cmds=$lt_old_postinstall_cmds
14207 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14208
14209 # Create an old-style archive from a shared archive.
14210 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14211
14212 # Create a temporary old-style archive to link instead of a shared archive.
14213 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14214
14215 # Commands used to build and install a shared archive.
14216 archive_cmds=$lt_archive_cmds_CXX
14217 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14218 postinstall_cmds=$lt_postinstall_cmds
14219 postuninstall_cmds=$lt_postuninstall_cmds
14220
14221 # Commands used to build a loadable module (assumed same as above if empty)
14222 module_cmds=$lt_module_cmds_CXX
14223 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14224
14225 # Commands to strip libraries.
14226 old_striplib=$lt_old_striplib
14227 striplib=$lt_striplib
14228
14229 # Dependencies to place before the objects being linked to create a
14230 # shared library.
14231 predep_objects=$lt_predep_objects_CXX
14232
14233 # Dependencies to place after the objects being linked to create a
14234 # shared library.
14235 postdep_objects=$lt_postdep_objects_CXX
14236
14237 # Dependencies to place before the objects being linked to create a
14238 # shared library.
14239 predeps=$lt_predeps_CXX
14240
14241 # Dependencies to place after the objects being linked to create a
14242 # shared library.
14243 postdeps=$lt_postdeps_CXX
14244
14245 # The library search path used internally by the compiler when linking
14246 # a shared library.
14247 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14248
14249 # Method to check whether dependent libraries are shared objects.
14250 deplibs_check_method=$lt_deplibs_check_method
14251
14252 # Command to use when deplibs_check_method == file_magic.
14253 file_magic_cmd=$lt_file_magic_cmd
14254
14255 # Flag that allows shared libraries with undefined symbols to be built.
14256 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14257
14258 # Flag that forces no undefined symbols.
14259 no_undefined_flag=$lt_no_undefined_flag_CXX
14260
14261 # Commands used to finish a libtool library installation in a directory.
14262 finish_cmds=$lt_finish_cmds
14263
14264 # Same as above, but a single script fragment to be evaled but not shown.
14265 finish_eval=$lt_finish_eval
14266
14267 # Take the output of nm and produce a listing of raw symbols and C names.
14268 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14269
14270 # Transform the output of nm in a proper C declaration
14271 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14272
14273 # Transform the output of nm in a C name address pair
14274 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14275
14276 # This is the shared library runtime path variable.
14277 runpath_var=$runpath_var
14278
14279 # This is the shared library path variable.
14280 shlibpath_var=$shlibpath_var
14281
14282 # Is shlibpath searched before the hard-coded library search path?
14283 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14284
14285 # How to hardcode a shared library path into an executable.
14286 hardcode_action=$hardcode_action_CXX
14287
14288 # Whether we should hardcode library paths into libraries.
14289 hardcode_into_libs=$hardcode_into_libs
14290
14291 # Flag to hardcode \$libdir into a binary during linking.
14292 # This must work even if \$libdir does not exist.
14293 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14294
14295 # If ld is used when linking, flag to hardcode \$libdir into
14296 # a binary during linking. This must work even if \$libdir does
14297 # not exist.
14298 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14299
14300 # Whether we need a single -rpath flag with a separated argument.
14301 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14302
14303 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14304 # resulting binary.
14305 hardcode_direct=$hardcode_direct_CXX
14306
14307 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14308 # resulting binary.
14309 hardcode_minus_L=$hardcode_minus_L_CXX
14310
14311 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14312 # the resulting binary.
14313 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14314
14315 # Set to yes if building a shared library automatically hardcodes DIR into the library
14316 # and all subsequent libraries and executables linked against it.
14317 hardcode_automatic=$hardcode_automatic_CXX
14318
14319 # Variables whose values should be saved in libtool wrapper scripts and
14320 # restored at relink time.
14321 variables_saved_for_relink="$variables_saved_for_relink"
14322
14323 # Whether libtool must link a program against all its dependency libraries.
14324 link_all_deplibs=$link_all_deplibs_CXX
14325
14326 # Compile-time system search path for libraries
14327 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14328
14329 # Run-time system search path for libraries
14330 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14331
14332 # Fix the shell variable \$srcfile for the compiler.
14333 fix_srcfile_path="$fix_srcfile_path_CXX"
14334
14335 # Set to yes if exported symbols are required.
14336 always_export_symbols=$always_export_symbols_CXX
14337
14338 # The commands to list exported symbols.
14339 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14340
14341 # The commands to extract the exported symbol list from a shared archive.
14342 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14343
14344 # Symbols that should not be listed in the preloaded symbols.
14345 exclude_expsyms=$lt_exclude_expsyms_CXX
14346
14347 # Symbols that must always be exported.
14348 include_expsyms=$lt_include_expsyms_CXX
14349
14350 # ### END LIBTOOL TAG CONFIG: $tagname
14351
14352 __EOF__
14353
14354
14355 else
14356   # If there is no Makefile yet, we rely on a make rule to execute
14357   # `config.status --recheck' to rerun these tests and create the
14358   # libtool script then.
14359   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14360   if test -f "$ltmain_in"; then
14361     test -f Makefile && make "$ltmain"
14362   fi
14363 fi
14364
14365
14366 ac_ext=c
14367 ac_cpp='$CPP $CPPFLAGS'
14368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14371
14372 CC=$lt_save_CC
14373 LDCXX=$LD
14374 LD=$lt_save_LD
14375 GCC=$lt_save_GCC
14376 with_gnu_ldcxx=$with_gnu_ld
14377 with_gnu_ld=$lt_save_with_gnu_ld
14378 lt_cv_path_LDCXX=$lt_cv_path_LD
14379 lt_cv_path_LD=$lt_save_path_LD
14380 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14381 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14382
14383         else
14384           tagname=""
14385         fi
14386         ;;
14387
14388       F77)
14389         if test -n "$F77" && test "X$F77" != "Xno"; then
14390
14391 ac_ext=f
14392 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14393 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14394 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14395
14396
14397 archive_cmds_need_lc_F77=no
14398 allow_undefined_flag_F77=
14399 always_export_symbols_F77=no
14400 archive_expsym_cmds_F77=
14401 export_dynamic_flag_spec_F77=
14402 hardcode_direct_F77=no
14403 hardcode_libdir_flag_spec_F77=
14404 hardcode_libdir_flag_spec_ld_F77=
14405 hardcode_libdir_separator_F77=
14406 hardcode_minus_L_F77=no
14407 hardcode_automatic_F77=no
14408 module_cmds_F77=
14409 module_expsym_cmds_F77=
14410 link_all_deplibs_F77=unknown
14411 old_archive_cmds_F77=$old_archive_cmds
14412 no_undefined_flag_F77=
14413 whole_archive_flag_spec_F77=
14414 enable_shared_with_static_runtimes_F77=no
14415
14416 # Source file extension for f77 test sources.
14417 ac_ext=f
14418
14419 # Object file extension for compiled f77 test sources.
14420 objext=o
14421 objext_F77=$objext
14422
14423 # Code to be used in simple compile tests
14424 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14425
14426 # Code to be used in simple link tests
14427 lt_simple_link_test_code="      program t\n      end\n"
14428
14429 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14430
14431 # If no C compiler was specified, use CC.
14432 LTCC=${LTCC-"$CC"}
14433
14434 # If no C compiler flags were specified, use CFLAGS.
14435 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14436
14437 # Allow CC to be a program name with arguments.
14438 compiler=$CC
14439
14440
14441 # save warnings/boilerplate of simple test code
14442 ac_outfile=conftest.$ac_objext
14443 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14444 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14445 _lt_compiler_boilerplate=`cat conftest.err`
14446 $rm conftest*
14447
14448 ac_outfile=conftest.$ac_objext
14449 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14450 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14451 _lt_linker_boilerplate=`cat conftest.err`
14452 $rm conftest*
14453
14454
14455 # Allow CC to be a program name with arguments.
14456 lt_save_CC="$CC"
14457 CC=${F77-"f77"}
14458 compiler=$CC
14459 compiler_F77=$CC
14460 for cc_temp in $compiler""; do
14461   case $cc_temp in
14462     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14463     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14464     \-*) ;;
14465     *) break;;
14466   esac
14467 done
14468 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14469
14470
14471 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14472 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14473 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14474 echo "${ECHO_T}$can_build_shared" >&6; }
14475
14476 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14477 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14478 test "$can_build_shared" = "no" && enable_shared=no
14479
14480 # On AIX, shared libraries and static libraries use the same namespace, and
14481 # are all built from PIC.
14482 case $host_os in
14483 aix3*)
14484   test "$enable_shared" = yes && enable_static=no
14485   if test -n "$RANLIB"; then
14486     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14487     postinstall_cmds='$RANLIB $lib'
14488   fi
14489   ;;
14490 aix4* | aix5*)
14491   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14492     test "$enable_shared" = yes && enable_static=no
14493   fi
14494   ;;
14495 esac
14496 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14497 echo "${ECHO_T}$enable_shared" >&6; }
14498
14499 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14500 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14501 # Make sure either enable_shared or enable_static is yes.
14502 test "$enable_shared" = yes || enable_static=yes
14503 { echo "$as_me:$LINENO: result: $enable_static" >&5
14504 echo "${ECHO_T}$enable_static" >&6; }
14505
14506 GCC_F77="$G77"
14507 LD_F77="$LD"
14508
14509 lt_prog_compiler_wl_F77=
14510 lt_prog_compiler_pic_F77=
14511 lt_prog_compiler_static_F77=
14512
14513 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14514 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14515
14516   if test "$GCC" = yes; then
14517     lt_prog_compiler_wl_F77='-Wl,'
14518     lt_prog_compiler_static_F77='-static'
14519
14520     case $host_os in
14521       aix*)
14522       # All AIX code is PIC.
14523       if test "$host_cpu" = ia64; then
14524         # AIX 5 now supports IA64 processor
14525         lt_prog_compiler_static_F77='-Bstatic'
14526       fi
14527       ;;
14528
14529     amigaos*)
14530       # FIXME: we need at least 68020 code to build shared libraries, but
14531       # adding the `-m68020' flag to GCC prevents building anything better,
14532       # like `-m68040'.
14533       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14534       ;;
14535
14536     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14537       # PIC is the default for these OSes.
14538       ;;
14539
14540     mingw* | pw32* | os2*)
14541       # This hack is so that the source file can tell whether it is being
14542       # built for inclusion in a dll (and should export symbols for example).
14543       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14544       ;;
14545
14546     darwin* | rhapsody*)
14547       # PIC is the default on this platform
14548       # Common symbols not allowed in MH_DYLIB files
14549       lt_prog_compiler_pic_F77='-fno-common'
14550       ;;
14551
14552     interix3*)
14553       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14554       # Instead, we relocate shared libraries at runtime.
14555       ;;
14556
14557     msdosdjgpp*)
14558       # Just because we use GCC doesn't mean we suddenly get shared libraries
14559       # on systems that don't support them.
14560       lt_prog_compiler_can_build_shared_F77=no
14561       enable_shared=no
14562       ;;
14563
14564     sysv4*MP*)
14565       if test -d /usr/nec; then
14566         lt_prog_compiler_pic_F77=-Kconform_pic
14567       fi
14568       ;;
14569
14570     hpux*)
14571       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14572       # not for PA HP-UX.
14573       case $host_cpu in
14574       hppa*64*|ia64*)
14575         # +Z the default
14576         ;;
14577       *)
14578         lt_prog_compiler_pic_F77='-fPIC'
14579         ;;
14580       esac
14581       ;;
14582
14583     *)
14584       lt_prog_compiler_pic_F77='-fPIC'
14585       ;;
14586     esac
14587   else
14588     # PORTME Check for flag to pass linker flags through the system compiler.
14589     case $host_os in
14590     aix*)
14591       lt_prog_compiler_wl_F77='-Wl,'
14592       if test "$host_cpu" = ia64; then
14593         # AIX 5 now supports IA64 processor
14594         lt_prog_compiler_static_F77='-Bstatic'
14595       else
14596         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14597       fi
14598       ;;
14599       darwin*)
14600         # PIC is the default on this platform
14601         # Common symbols not allowed in MH_DYLIB files
14602        case $cc_basename in
14603          xlc*)
14604          lt_prog_compiler_pic_F77='-qnocommon'
14605          lt_prog_compiler_wl_F77='-Wl,'
14606          ;;
14607        esac
14608        ;;
14609
14610     mingw* | pw32* | os2*)
14611       # This hack is so that the source file can tell whether it is being
14612       # built for inclusion in a dll (and should export symbols for example).
14613       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14614       ;;
14615
14616     hpux9* | hpux10* | hpux11*)
14617       lt_prog_compiler_wl_F77='-Wl,'
14618       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14619       # not for PA HP-UX.
14620       case $host_cpu in
14621       hppa*64*|ia64*)
14622         # +Z the default
14623         ;;
14624       *)
14625         lt_prog_compiler_pic_F77='+Z'
14626         ;;
14627       esac
14628       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14629       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14630       ;;
14631
14632     irix5* | irix6* | nonstopux*)
14633       lt_prog_compiler_wl_F77='-Wl,'
14634       # PIC (with -KPIC) is the default.
14635       lt_prog_compiler_static_F77='-non_shared'
14636       ;;
14637
14638     newsos6)
14639       lt_prog_compiler_pic_F77='-KPIC'
14640       lt_prog_compiler_static_F77='-Bstatic'
14641       ;;
14642
14643     linux* | k*bsd*-gnu)
14644       case $cc_basename in
14645       icc* | ecc*)
14646         lt_prog_compiler_wl_F77='-Wl,'
14647         lt_prog_compiler_pic_F77='-KPIC'
14648         lt_prog_compiler_static_F77='-static'
14649         ;;
14650       pgcc* | pgf77* | pgf90* | pgf95*)
14651         # Portland Group compilers (*not* the Pentium gcc compiler,
14652         # which looks to be a dead project)
14653         lt_prog_compiler_wl_F77='-Wl,'
14654         lt_prog_compiler_pic_F77='-fpic'
14655         lt_prog_compiler_static_F77='-Bstatic'
14656         ;;
14657       ccc*)
14658         lt_prog_compiler_wl_F77='-Wl,'
14659         # All Alpha code is PIC.
14660         lt_prog_compiler_static_F77='-non_shared'
14661         ;;
14662       esac
14663       ;;
14664
14665     osf3* | osf4* | osf5*)
14666       lt_prog_compiler_wl_F77='-Wl,'
14667       # All OSF/1 code is PIC.
14668       lt_prog_compiler_static_F77='-non_shared'
14669       ;;
14670
14671     solaris*)
14672       lt_prog_compiler_pic_F77='-KPIC'
14673       lt_prog_compiler_static_F77='-Bstatic'
14674       case $cc_basename in
14675       f77* | f90* | f95*)
14676         lt_prog_compiler_wl_F77='-Qoption ld ';;
14677       *)
14678         lt_prog_compiler_wl_F77='-Wl,';;
14679       esac
14680       ;;
14681
14682     sunos4*)
14683       lt_prog_compiler_wl_F77='-Qoption ld '
14684       lt_prog_compiler_pic_F77='-PIC'
14685       lt_prog_compiler_static_F77='-Bstatic'
14686       ;;
14687
14688     sysv4 | sysv4.2uw2* | sysv4.3*)
14689       lt_prog_compiler_wl_F77='-Wl,'
14690       lt_prog_compiler_pic_F77='-KPIC'
14691       lt_prog_compiler_static_F77='-Bstatic'
14692       ;;
14693
14694     sysv4*MP*)
14695       if test -d /usr/nec ;then
14696         lt_prog_compiler_pic_F77='-Kconform_pic'
14697         lt_prog_compiler_static_F77='-Bstatic'
14698       fi
14699       ;;
14700
14701     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14702       lt_prog_compiler_wl_F77='-Wl,'
14703       lt_prog_compiler_pic_F77='-KPIC'
14704       lt_prog_compiler_static_F77='-Bstatic'
14705       ;;
14706
14707     unicos*)
14708       lt_prog_compiler_wl_F77='-Wl,'
14709       lt_prog_compiler_can_build_shared_F77=no
14710       ;;
14711
14712     uts4*)
14713       lt_prog_compiler_pic_F77='-pic'
14714       lt_prog_compiler_static_F77='-Bstatic'
14715       ;;
14716
14717     *)
14718       lt_prog_compiler_can_build_shared_F77=no
14719       ;;
14720     esac
14721   fi
14722
14723 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14724 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14725
14726 #
14727 # Check to make sure the PIC flag actually works.
14728 #
14729 if test -n "$lt_prog_compiler_pic_F77"; then
14730
14731 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14732 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14733 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14734   echo $ECHO_N "(cached) $ECHO_C" >&6
14735 else
14736   lt_prog_compiler_pic_works_F77=no
14737   ac_outfile=conftest.$ac_objext
14738    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14739    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14740    # Insert the option either (1) after the last *FLAGS variable, or
14741    # (2) before a word containing "conftest.", or (3) at the end.
14742    # Note that $ac_compile itself does not contain backslashes and begins
14743    # with a dollar sign (not a hyphen), so the echo should work correctly.
14744    # The option is referenced via a variable to avoid confusing sed.
14745    lt_compile=`echo "$ac_compile" | $SED \
14746    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14747    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14748    -e 's:$: $lt_compiler_flag:'`
14749    (eval echo "\"\$as_me:14749: $lt_compile\"" >&5)
14750    (eval "$lt_compile" 2>conftest.err)
14751    ac_status=$?
14752    cat conftest.err >&5
14753    echo "$as_me:14753: \$? = $ac_status" >&5
14754    if (exit $ac_status) && test -s "$ac_outfile"; then
14755      # The compiler can only warn and ignore the option if not recognized
14756      # So say no if there are warnings other than the usual output.
14757      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14758      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14759      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14760        lt_prog_compiler_pic_works_F77=yes
14761      fi
14762    fi
14763    $rm conftest*
14764
14765 fi
14766 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14767 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14768
14769 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14770     case $lt_prog_compiler_pic_F77 in
14771      "" | " "*) ;;
14772      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14773      esac
14774 else
14775     lt_prog_compiler_pic_F77=
14776      lt_prog_compiler_can_build_shared_F77=no
14777 fi
14778
14779 fi
14780 case $host_os in
14781   # For platforms which do not support PIC, -DPIC is meaningless:
14782   *djgpp*)
14783     lt_prog_compiler_pic_F77=
14784     ;;
14785   *)
14786     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14787     ;;
14788 esac
14789
14790 #
14791 # Check to make sure the static flag actually works.
14792 #
14793 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14794 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14795 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14796 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14797   echo $ECHO_N "(cached) $ECHO_C" >&6
14798 else
14799   lt_prog_compiler_static_works_F77=no
14800    save_LDFLAGS="$LDFLAGS"
14801    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14802    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14803    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14804      # The linker can only warn and ignore the option if not recognized
14805      # So say no if there are warnings
14806      if test -s conftest.err; then
14807        # Append any errors to the config.log.
14808        cat conftest.err 1>&5
14809        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14810        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14811        if diff conftest.exp conftest.er2 >/dev/null; then
14812          lt_prog_compiler_static_works_F77=yes
14813        fi
14814      else
14815        lt_prog_compiler_static_works_F77=yes
14816      fi
14817    fi
14818    $rm conftest*
14819    LDFLAGS="$save_LDFLAGS"
14820
14821 fi
14822 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14823 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14824
14825 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14826     :
14827 else
14828     lt_prog_compiler_static_F77=
14829 fi
14830
14831
14832 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14833 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14834 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14835   echo $ECHO_N "(cached) $ECHO_C" >&6
14836 else
14837   lt_cv_prog_compiler_c_o_F77=no
14838    $rm -r conftest 2>/dev/null
14839    mkdir conftest
14840    cd conftest
14841    mkdir out
14842    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14843
14844    lt_compiler_flag="-o out/conftest2.$ac_objext"
14845    # Insert the option either (1) after the last *FLAGS variable, or
14846    # (2) before a word containing "conftest.", or (3) at the end.
14847    # Note that $ac_compile itself does not contain backslashes and begins
14848    # with a dollar sign (not a hyphen), so the echo should work correctly.
14849    lt_compile=`echo "$ac_compile" | $SED \
14850    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14851    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14852    -e 's:$: $lt_compiler_flag:'`
14853    (eval echo "\"\$as_me:14853: $lt_compile\"" >&5)
14854    (eval "$lt_compile" 2>out/conftest.err)
14855    ac_status=$?
14856    cat out/conftest.err >&5
14857    echo "$as_me:14857: \$? = $ac_status" >&5
14858    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14859    then
14860      # The compiler can only warn and ignore the option if not recognized
14861      # So say no if there are warnings
14862      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14863      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14864      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14865        lt_cv_prog_compiler_c_o_F77=yes
14866      fi
14867    fi
14868    chmod u+w . 2>&5
14869    $rm conftest*
14870    # SGI C++ compiler will create directory out/ii_files/ for
14871    # template instantiation
14872    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14873    $rm out/* && rmdir out
14874    cd ..
14875    rmdir conftest
14876    $rm conftest*
14877
14878 fi
14879 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14880 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14881
14882
14883 hard_links="nottested"
14884 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14885   # do not overwrite the value of need_locks provided by the user
14886   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14887 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14888   hard_links=yes
14889   $rm conftest*
14890   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14891   touch conftest.a
14892   ln conftest.a conftest.b 2>&5 || hard_links=no
14893   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14894   { echo "$as_me:$LINENO: result: $hard_links" >&5
14895 echo "${ECHO_T}$hard_links" >&6; }
14896   if test "$hard_links" = no; then
14897     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14898 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14899     need_locks=warn
14900   fi
14901 else
14902   need_locks=no
14903 fi
14904
14905 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14906 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14907
14908   runpath_var=
14909   allow_undefined_flag_F77=
14910   enable_shared_with_static_runtimes_F77=no
14911   archive_cmds_F77=
14912   archive_expsym_cmds_F77=
14913   old_archive_From_new_cmds_F77=
14914   old_archive_from_expsyms_cmds_F77=
14915   export_dynamic_flag_spec_F77=
14916   whole_archive_flag_spec_F77=
14917   thread_safe_flag_spec_F77=
14918   hardcode_libdir_flag_spec_F77=
14919   hardcode_libdir_flag_spec_ld_F77=
14920   hardcode_libdir_separator_F77=
14921   hardcode_direct_F77=no
14922   hardcode_minus_L_F77=no
14923   hardcode_shlibpath_var_F77=unsupported
14924   link_all_deplibs_F77=unknown
14925   hardcode_automatic_F77=no
14926   module_cmds_F77=
14927   module_expsym_cmds_F77=
14928   always_export_symbols_F77=no
14929   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14930   # include_expsyms should be a list of space-separated symbols to be *always*
14931   # included in the symbol list
14932   include_expsyms_F77=
14933   # exclude_expsyms can be an extended regexp of symbols to exclude
14934   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14935   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14936   # as well as any symbol that contains `d'.
14937   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14938   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14939   # platforms (ab)use it in PIC code, but their linkers get confused if
14940   # the symbol is explicitly referenced.  Since portable code cannot
14941   # rely on this symbol name, it's probably fine to never include it in
14942   # preloaded symbol tables.
14943   extract_expsyms_cmds=
14944   # Just being paranoid about ensuring that cc_basename is set.
14945   for cc_temp in $compiler""; do
14946   case $cc_temp in
14947     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14948     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14949     \-*) ;;
14950     *) break;;
14951   esac
14952 done
14953 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14954
14955   case $host_os in
14956   cygwin* | mingw* | pw32*)
14957     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14958     # When not using gcc, we currently assume that we are using
14959     # Microsoft Visual C++.
14960     if test "$GCC" != yes; then
14961       with_gnu_ld=no
14962     fi
14963     ;;
14964   interix*)
14965     # we just hope/assume this is gcc and not c89 (= MSVC++)
14966     with_gnu_ld=yes
14967     ;;
14968   openbsd*)
14969     with_gnu_ld=no
14970     ;;
14971   esac
14972
14973   ld_shlibs_F77=yes
14974   if test "$with_gnu_ld" = yes; then
14975     # If archive_cmds runs LD, not CC, wlarc should be empty
14976     wlarc='${wl}'
14977
14978     # Set some defaults for GNU ld with shared library support. These
14979     # are reset later if shared libraries are not supported. Putting them
14980     # here allows them to be overridden if necessary.
14981     runpath_var=LD_RUN_PATH
14982     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14983     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14984     # ancient GNU ld didn't support --whole-archive et. al.
14985     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14986         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14987       else
14988         whole_archive_flag_spec_F77=
14989     fi
14990     supports_anon_versioning=no
14991     case `$LD -v 2>/dev/null` in
14992       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14993       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14994       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14995       *\ 2.11.*) ;; # other 2.11 versions
14996       *) supports_anon_versioning=yes ;;
14997     esac
14998
14999     # See if GNU ld supports shared libraries.
15000     case $host_os in
15001     aix3* | aix4* | aix5*)
15002       # On AIX/PPC, the GNU linker is very broken
15003       if test "$host_cpu" != ia64; then
15004         ld_shlibs_F77=no
15005         cat <<EOF 1>&2
15006
15007 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15008 *** to be unable to reliably create shared libraries on AIX.
15009 *** Therefore, libtool is disabling shared libraries support.  If you
15010 *** really care for shared libraries, you may want to modify your PATH
15011 *** so that a non-GNU linker is found, and then restart.
15012
15013 EOF
15014       fi
15015       ;;
15016
15017     amigaos*)
15018       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)'
15019       hardcode_libdir_flag_spec_F77='-L$libdir'
15020       hardcode_minus_L_F77=yes
15021
15022       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15023       # that the semantics of dynamic libraries on AmigaOS, at least up
15024       # to version 4, is to share data among multiple programs linked
15025       # with the same dynamic library.  Since this doesn't match the
15026       # behavior of shared libraries on other platforms, we can't use
15027       # them.
15028       ld_shlibs_F77=no
15029       ;;
15030
15031     beos*)
15032       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15033         allow_undefined_flag_F77=unsupported
15034         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15035         # support --undefined.  This deserves some investigation.  FIXME
15036         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15037       else
15038         ld_shlibs_F77=no
15039       fi
15040       ;;
15041
15042     cygwin* | mingw* | pw32*)
15043       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15044       # as there is no search path for DLLs.
15045       hardcode_libdir_flag_spec_F77='-L$libdir'
15046       allow_undefined_flag_F77=unsupported
15047       always_export_symbols_F77=no
15048       enable_shared_with_static_runtimes_F77=yes
15049       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15050
15051       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15052         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15053         # If the export-symbols file already is a .def file (1st line
15054         # is EXPORTS), use it as is; otherwise, prepend...
15055         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15056           cp $export_symbols $output_objdir/$soname.def;
15057         else
15058           echo EXPORTS > $output_objdir/$soname.def;
15059           cat $export_symbols >> $output_objdir/$soname.def;
15060         fi~
15061         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15062       else
15063         ld_shlibs_F77=no
15064       fi
15065       ;;
15066
15067     interix3*)
15068       hardcode_direct_F77=no
15069       hardcode_shlibpath_var_F77=no
15070       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15071       export_dynamic_flag_spec_F77='${wl}-E'
15072       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15073       # Instead, shared libraries are loaded at an image base (0x10000000 by
15074       # default) and relocated if they conflict, which is a slow very memory
15075       # consuming and fragmenting process.  To avoid this, we pick a random,
15076       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15077       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15078       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'
15079       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'
15080       ;;
15081
15082     linux* | k*bsd*-gnu)
15083       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15084         tmp_addflag=
15085         case $cc_basename,$host_cpu in
15086         pgcc*)                          # Portland Group C compiler
15087           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'
15088           tmp_addflag=' $pic_flag'
15089           ;;
15090         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15091           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'
15092           tmp_addflag=' $pic_flag -Mnomain' ;;
15093         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15094           tmp_addflag=' -i_dynamic' ;;
15095         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15096           tmp_addflag=' -i_dynamic -nofor_main' ;;
15097         ifc* | ifort*)                  # Intel Fortran compiler
15098           tmp_addflag=' -nofor_main' ;;
15099         esac
15100         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15101
15102         if test $supports_anon_versioning = yes; then
15103           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15104   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15105   $echo "local: *; };" >> $output_objdir/$libname.ver~
15106           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15107         fi
15108         link_all_deplibs_F77=no
15109       else
15110         ld_shlibs_F77=no
15111       fi
15112       ;;
15113
15114     netbsd* | netbsdelf*-gnu)
15115       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15116         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15117         wlarc=
15118       else
15119         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15120         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15121       fi
15122       ;;
15123
15124     solaris*)
15125       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15126         ld_shlibs_F77=no
15127         cat <<EOF 1>&2
15128
15129 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15130 *** create shared libraries on Solaris systems.  Therefore, libtool
15131 *** is disabling shared libraries support.  We urge you to upgrade GNU
15132 *** binutils to release 2.9.1 or newer.  Another option is to modify
15133 *** your PATH or compiler configuration so that the native linker is
15134 *** used, and then restart.
15135
15136 EOF
15137       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15138         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15139         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15140       else
15141         ld_shlibs_F77=no
15142       fi
15143       ;;
15144
15145     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15146       case `$LD -v 2>&1` in
15147         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15148         ld_shlibs_F77=no
15149         cat <<_LT_EOF 1>&2
15150
15151 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15152 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15153 *** is disabling shared libraries support.  We urge you to upgrade GNU
15154 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15155 *** your PATH or compiler configuration so that the native linker is
15156 *** used, and then restart.
15157
15158 _LT_EOF
15159         ;;
15160         *)
15161           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15162             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15163             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15164             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15165           else
15166             ld_shlibs_F77=no
15167           fi
15168         ;;
15169       esac
15170       ;;
15171
15172     sunos4*)
15173       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15174       wlarc=
15175       hardcode_direct_F77=yes
15176       hardcode_shlibpath_var_F77=no
15177       ;;
15178
15179     *)
15180       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15181         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15182         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15183       else
15184         ld_shlibs_F77=no
15185       fi
15186       ;;
15187     esac
15188
15189     if test "$ld_shlibs_F77" = no; then
15190       runpath_var=
15191       hardcode_libdir_flag_spec_F77=
15192       export_dynamic_flag_spec_F77=
15193       whole_archive_flag_spec_F77=
15194     fi
15195   else
15196     # PORTME fill in a description of your system's linker (not GNU ld)
15197     case $host_os in
15198     aix3*)
15199       allow_undefined_flag_F77=unsupported
15200       always_export_symbols_F77=yes
15201       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'
15202       # Note: this linker hardcodes the directories in LIBPATH if there
15203       # are no directories specified by -L.
15204       hardcode_minus_L_F77=yes
15205       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15206         # Neither direct hardcoding nor static linking is supported with a
15207         # broken collect2.
15208         hardcode_direct_F77=unsupported
15209       fi
15210       ;;
15211
15212     aix4* | aix5*)
15213       if test "$host_cpu" = ia64; then
15214         # On IA64, the linker does run time linking by default, so we don't
15215         # have to do anything special.
15216         aix_use_runtimelinking=no
15217         exp_sym_flag='-Bexport'
15218         no_entry_flag=""
15219       else
15220         # If we're using GNU nm, then we don't want the "-C" option.
15221         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15222         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15223           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'
15224         else
15225           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'
15226         fi
15227         aix_use_runtimelinking=no
15228
15229         # Test if we are trying to use run time linking or normal
15230         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15231         # need to do runtime linking.
15232         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15233           for ld_flag in $LDFLAGS; do
15234           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15235             aix_use_runtimelinking=yes
15236             break
15237           fi
15238           done
15239           ;;
15240         esac
15241
15242         exp_sym_flag='-bexport'
15243         no_entry_flag='-bnoentry'
15244       fi
15245
15246       # When large executables or shared objects are built, AIX ld can
15247       # have problems creating the table of contents.  If linking a library
15248       # or program results in "error TOC overflow" add -mminimal-toc to
15249       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15250       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15251
15252       archive_cmds_F77=''
15253       hardcode_direct_F77=yes
15254       hardcode_libdir_separator_F77=':'
15255       link_all_deplibs_F77=yes
15256
15257       if test "$GCC" = yes; then
15258         case $host_os in aix4.[012]|aix4.[012].*)
15259         # We only want to do this on AIX 4.2 and lower, the check
15260         # below for broken collect2 doesn't work under 4.3+
15261           collect2name=`${CC} -print-prog-name=collect2`
15262           if test -f "$collect2name" && \
15263            strings "$collect2name" | grep resolve_lib_name >/dev/null
15264           then
15265           # We have reworked collect2
15266           hardcode_direct_F77=yes
15267           else
15268           # We have old collect2
15269           hardcode_direct_F77=unsupported
15270           # It fails to find uninstalled libraries when the uninstalled
15271           # path is not listed in the libpath.  Setting hardcode_minus_L
15272           # to unsupported forces relinking
15273           hardcode_minus_L_F77=yes
15274           hardcode_libdir_flag_spec_F77='-L$libdir'
15275           hardcode_libdir_separator_F77=
15276           fi
15277           ;;
15278         esac
15279         shared_flag='-shared'
15280         if test "$aix_use_runtimelinking" = yes; then
15281           shared_flag="$shared_flag "'${wl}-G'
15282         fi
15283       else
15284         # not using gcc
15285         if test "$host_cpu" = ia64; then
15286         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15287         # chokes on -Wl,-G. The following line is correct:
15288           shared_flag='-G'
15289         else
15290           if test "$aix_use_runtimelinking" = yes; then
15291             shared_flag='${wl}-G'
15292           else
15293             shared_flag='${wl}-bM:SRE'
15294           fi
15295         fi
15296       fi
15297
15298       # It seems that -bexpall does not export symbols beginning with
15299       # underscore (_), so it is better to generate a list of symbols to export.
15300       always_export_symbols_F77=yes
15301       if test "$aix_use_runtimelinking" = yes; then
15302         # Warning - without using the other runtime loading flags (-brtl),
15303         # -berok will link without error, but may produce a broken library.
15304         allow_undefined_flag_F77='-berok'
15305        # Determine the default libpath from the value encoded in an empty executable.
15306        cat >conftest.$ac_ext <<_ACEOF
15307       program main
15308
15309       end
15310 _ACEOF
15311 rm -f conftest.$ac_objext conftest$ac_exeext
15312 if { (ac_try="$ac_link"
15313 case "(($ac_try" in
15314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15315   *) ac_try_echo=$ac_try;;
15316 esac
15317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15318   (eval "$ac_link") 2>conftest.er1
15319   ac_status=$?
15320   grep -v '^ *+' conftest.er1 >conftest.err
15321   rm -f conftest.er1
15322   cat conftest.err >&5
15323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324   (exit $ac_status); } &&
15325          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15326   { (case "(($ac_try" in
15327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15328   *) ac_try_echo=$ac_try;;
15329 esac
15330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15331   (eval "$ac_try") 2>&5
15332   ac_status=$?
15333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334   (exit $ac_status); }; } &&
15335          { ac_try='test -s conftest$ac_exeext'
15336   { (case "(($ac_try" in
15337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15338   *) ac_try_echo=$ac_try;;
15339 esac
15340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15341   (eval "$ac_try") 2>&5
15342   ac_status=$?
15343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344   (exit $ac_status); }; }; then
15345
15346 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15347 }'`
15348 # Check for a 64-bit object if we didn't find anything.
15349 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; }
15350 }'`; fi
15351 else
15352   echo "$as_me: failed program was:" >&5
15353 sed 's/^/| /' conftest.$ac_ext >&5
15354
15355
15356 fi
15357
15358 rm -f core conftest.err conftest.$ac_objext \
15359       conftest$ac_exeext conftest.$ac_ext
15360 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15361
15362        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15363         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"
15364        else
15365         if test "$host_cpu" = ia64; then
15366           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15367           allow_undefined_flag_F77="-z nodefs"
15368           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"
15369         else
15370          # Determine the default libpath from the value encoded in an empty executable.
15371          cat >conftest.$ac_ext <<_ACEOF
15372       program main
15373
15374       end
15375 _ACEOF
15376 rm -f conftest.$ac_objext conftest$ac_exeext
15377 if { (ac_try="$ac_link"
15378 case "(($ac_try" in
15379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15380   *) ac_try_echo=$ac_try;;
15381 esac
15382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15383   (eval "$ac_link") 2>conftest.er1
15384   ac_status=$?
15385   grep -v '^ *+' conftest.er1 >conftest.err
15386   rm -f conftest.er1
15387   cat conftest.err >&5
15388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389   (exit $ac_status); } &&
15390          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15391   { (case "(($ac_try" in
15392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15393   *) ac_try_echo=$ac_try;;
15394 esac
15395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15396   (eval "$ac_try") 2>&5
15397   ac_status=$?
15398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399   (exit $ac_status); }; } &&
15400          { ac_try='test -s conftest$ac_exeext'
15401   { (case "(($ac_try" in
15402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15403   *) ac_try_echo=$ac_try;;
15404 esac
15405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15406   (eval "$ac_try") 2>&5
15407   ac_status=$?
15408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409   (exit $ac_status); }; }; then
15410
15411 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15412 }'`
15413 # Check for a 64-bit object if we didn't find anything.
15414 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; }
15415 }'`; fi
15416 else
15417   echo "$as_me: failed program was:" >&5
15418 sed 's/^/| /' conftest.$ac_ext >&5
15419
15420
15421 fi
15422
15423 rm -f core conftest.err conftest.$ac_objext \
15424       conftest$ac_exeext conftest.$ac_ext
15425 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15426
15427          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15428           # Warning - without using the other run time loading flags,
15429           # -berok will link without error, but may produce a broken library.
15430           no_undefined_flag_F77=' ${wl}-bernotok'
15431           allow_undefined_flag_F77=' ${wl}-berok'
15432           # Exported symbols can be pulled into shared objects from archives
15433           whole_archive_flag_spec_F77='$convenience'
15434           archive_cmds_need_lc_F77=yes
15435           # This is similar to how AIX traditionally builds its shared libraries.
15436           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'
15437         fi
15438       fi
15439       ;;
15440
15441     amigaos*)
15442       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)'
15443       hardcode_libdir_flag_spec_F77='-L$libdir'
15444       hardcode_minus_L_F77=yes
15445       # see comment about different semantics on the GNU ld section
15446       ld_shlibs_F77=no
15447       ;;
15448
15449     bsdi[45]*)
15450       export_dynamic_flag_spec_F77=-rdynamic
15451       ;;
15452
15453     cygwin* | mingw* | pw32*)
15454       # When not using gcc, we currently assume that we are using
15455       # Microsoft Visual C++.
15456       # hardcode_libdir_flag_spec is actually meaningless, as there is
15457       # no search path for DLLs.
15458       hardcode_libdir_flag_spec_F77=' '
15459       allow_undefined_flag_F77=unsupported
15460       # Tell ltmain to make .lib files, not .a files.
15461       libext=lib
15462       # Tell ltmain to make .dll files, not .so files.
15463       shrext_cmds=".dll"
15464       # FIXME: Setting linknames here is a bad hack.
15465       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15466       # The linker will automatically build a .lib file if we build a DLL.
15467       old_archive_From_new_cmds_F77='true'
15468       # FIXME: Should let the user specify the lib program.
15469       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15470       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15471       enable_shared_with_static_runtimes_F77=yes
15472       ;;
15473
15474     darwin* | rhapsody*)
15475       case $host_os in
15476         rhapsody* | darwin1.[012])
15477          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15478          ;;
15479        *) # Darwin 1.3 on
15480          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15481            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15482          else
15483            case ${MACOSX_DEPLOYMENT_TARGET} in
15484              10.[012])
15485                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15486                ;;
15487              10.*)
15488                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15489                ;;
15490            esac
15491          fi
15492          ;;
15493       esac
15494       archive_cmds_need_lc_F77=no
15495       hardcode_direct_F77=no
15496       hardcode_automatic_F77=yes
15497       hardcode_shlibpath_var_F77=unsupported
15498       whole_archive_flag_spec_F77=''
15499       link_all_deplibs_F77=yes
15500     if test "$GCC" = yes ; then
15501         output_verbose_link_cmd='echo'
15502         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15503       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15504       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15505       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}'
15506       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}'
15507     else
15508       case $cc_basename in
15509         xlc*)
15510          output_verbose_link_cmd='echo'
15511          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15512          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15513           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15514          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}'
15515           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}'
15516           ;;
15517        *)
15518          ld_shlibs_F77=no
15519           ;;
15520       esac
15521     fi
15522       ;;
15523
15524     dgux*)
15525       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15526       hardcode_libdir_flag_spec_F77='-L$libdir'
15527       hardcode_shlibpath_var_F77=no
15528       ;;
15529
15530     freebsd1*)
15531       ld_shlibs_F77=no
15532       ;;
15533
15534     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15535     # support.  Future versions do this automatically, but an explicit c++rt0.o
15536     # does not break anything, and helps significantly (at the cost of a little
15537     # extra space).
15538     freebsd2.2*)
15539       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15540       hardcode_libdir_flag_spec_F77='-R$libdir'
15541       hardcode_direct_F77=yes
15542       hardcode_shlibpath_var_F77=no
15543       ;;
15544
15545     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15546     freebsd2*)
15547       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15548       hardcode_direct_F77=yes
15549       hardcode_minus_L_F77=yes
15550       hardcode_shlibpath_var_F77=no
15551       ;;
15552
15553     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15554     freebsd* | dragonfly*)
15555       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15556       hardcode_libdir_flag_spec_F77='-R$libdir'
15557       hardcode_direct_F77=yes
15558       hardcode_shlibpath_var_F77=no
15559       ;;
15560
15561     hpux9*)
15562       if test "$GCC" = yes; then
15563         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'
15564       else
15565         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'
15566       fi
15567       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15568       hardcode_libdir_separator_F77=:
15569       hardcode_direct_F77=yes
15570
15571       # hardcode_minus_L: Not really in the search PATH,
15572       # but as the default location of the library.
15573       hardcode_minus_L_F77=yes
15574       export_dynamic_flag_spec_F77='${wl}-E'
15575       ;;
15576
15577     hpux10*)
15578       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15579         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15580       else
15581         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15582       fi
15583       if test "$with_gnu_ld" = no; then
15584         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15585         hardcode_libdir_separator_F77=:
15586
15587         hardcode_direct_F77=yes
15588         export_dynamic_flag_spec_F77='${wl}-E'
15589
15590         # hardcode_minus_L: Not really in the search PATH,
15591         # but as the default location of the library.
15592         hardcode_minus_L_F77=yes
15593       fi
15594       ;;
15595
15596     hpux11*)
15597       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15598         case $host_cpu in
15599         hppa*64*)
15600           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15601           ;;
15602         ia64*)
15603           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15604           ;;
15605         *)
15606           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15607           ;;
15608         esac
15609       else
15610         case $host_cpu in
15611         hppa*64*)
15612           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15613           ;;
15614         ia64*)
15615           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15616           ;;
15617         *)
15618           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15619           ;;
15620         esac
15621       fi
15622       if test "$with_gnu_ld" = no; then
15623         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15624         hardcode_libdir_separator_F77=:
15625
15626         case $host_cpu in
15627         hppa*64*|ia64*)
15628           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15629           hardcode_direct_F77=no
15630           hardcode_shlibpath_var_F77=no
15631           ;;
15632         *)
15633           hardcode_direct_F77=yes
15634           export_dynamic_flag_spec_F77='${wl}-E'
15635
15636           # hardcode_minus_L: Not really in the search PATH,
15637           # but as the default location of the library.
15638           hardcode_minus_L_F77=yes
15639           ;;
15640         esac
15641       fi
15642       ;;
15643
15644     irix5* | irix6* | nonstopux*)
15645       if test "$GCC" = yes; then
15646         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'
15647       else
15648         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'
15649         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15650       fi
15651       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15652       hardcode_libdir_separator_F77=:
15653       link_all_deplibs_F77=yes
15654       ;;
15655
15656     netbsd* | netbsdelf*-gnu)
15657       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15658         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15659       else
15660         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15661       fi
15662       hardcode_libdir_flag_spec_F77='-R$libdir'
15663       hardcode_direct_F77=yes
15664       hardcode_shlibpath_var_F77=no
15665       ;;
15666
15667     newsos6)
15668       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15669       hardcode_direct_F77=yes
15670       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15671       hardcode_libdir_separator_F77=:
15672       hardcode_shlibpath_var_F77=no
15673       ;;
15674
15675     openbsd*)
15676       hardcode_direct_F77=yes
15677       hardcode_shlibpath_var_F77=no
15678       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15679         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15680         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15681         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15682         export_dynamic_flag_spec_F77='${wl}-E'
15683       else
15684        case $host_os in
15685          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15686            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15687            hardcode_libdir_flag_spec_F77='-R$libdir'
15688            ;;
15689          *)
15690            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15691            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15692            ;;
15693        esac
15694       fi
15695       ;;
15696
15697     os2*)
15698       hardcode_libdir_flag_spec_F77='-L$libdir'
15699       hardcode_minus_L_F77=yes
15700       allow_undefined_flag_F77=unsupported
15701       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'
15702       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15703       ;;
15704
15705     osf3*)
15706       if test "$GCC" = yes; then
15707         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15708         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'
15709       else
15710         allow_undefined_flag_F77=' -expect_unresolved \*'
15711         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'
15712       fi
15713       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15714       hardcode_libdir_separator_F77=:
15715       ;;
15716
15717     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15718       if test "$GCC" = yes; then
15719         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15720         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'
15721         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15722       else
15723         allow_undefined_flag_F77=' -expect_unresolved \*'
15724         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'
15725         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~
15726         $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'
15727
15728         # Both c and cxx compiler support -rpath directly
15729         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15730       fi
15731       hardcode_libdir_separator_F77=:
15732       ;;
15733
15734     solaris*)
15735       no_undefined_flag_F77=' -z text'
15736       if test "$GCC" = yes; then
15737         wlarc='${wl}'
15738         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15739         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15740           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15741       else
15742         wlarc=''
15743         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15744         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15745         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15746       fi
15747       hardcode_libdir_flag_spec_F77='-R$libdir'
15748       hardcode_shlibpath_var_F77=no
15749       case $host_os in
15750       solaris2.[0-5] | solaris2.[0-5].*) ;;
15751       *)
15752         # The compiler driver will combine linker options so we
15753         # cannot just pass the convience library names through
15754         # without $wl, iff we do not link with $LD.
15755         # Luckily, gcc supports the same syntax we need for Sun Studio.
15756         # Supported since Solaris 2.6 (maybe 2.5.1?)
15757         case $wlarc in
15758         '')
15759           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15760         *)
15761           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' ;;
15762         esac ;;
15763       esac
15764       link_all_deplibs_F77=yes
15765       ;;
15766
15767     sunos4*)
15768       if test "x$host_vendor" = xsequent; then
15769         # Use $CC to link under sequent, because it throws in some extra .o
15770         # files that make .init and .fini sections work.
15771         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15772       else
15773         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15774       fi
15775       hardcode_libdir_flag_spec_F77='-L$libdir'
15776       hardcode_direct_F77=yes
15777       hardcode_minus_L_F77=yes
15778       hardcode_shlibpath_var_F77=no
15779       ;;
15780
15781     sysv4)
15782       case $host_vendor in
15783         sni)
15784           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15785           hardcode_direct_F77=yes # is this really true???
15786         ;;
15787         siemens)
15788           ## LD is ld it makes a PLAMLIB
15789           ## CC just makes a GrossModule.
15790           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15791           reload_cmds_F77='$CC -r -o $output$reload_objs'
15792           hardcode_direct_F77=no
15793         ;;
15794         motorola)
15795           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15796           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15797         ;;
15798       esac
15799       runpath_var='LD_RUN_PATH'
15800       hardcode_shlibpath_var_F77=no
15801       ;;
15802
15803     sysv4.3*)
15804       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15805       hardcode_shlibpath_var_F77=no
15806       export_dynamic_flag_spec_F77='-Bexport'
15807       ;;
15808
15809     sysv4*MP*)
15810       if test -d /usr/nec; then
15811         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15812         hardcode_shlibpath_var_F77=no
15813         runpath_var=LD_RUN_PATH
15814         hardcode_runpath_var=yes
15815         ld_shlibs_F77=yes
15816       fi
15817       ;;
15818
15819     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15820       no_undefined_flag_F77='${wl}-z,text'
15821       archive_cmds_need_lc_F77=no
15822       hardcode_shlibpath_var_F77=no
15823       runpath_var='LD_RUN_PATH'
15824
15825       if test "$GCC" = yes; then
15826         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15827         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15828       else
15829         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15830         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15831       fi
15832       ;;
15833
15834     sysv5* | sco3.2v5* | sco5v6*)
15835       # Note: We can NOT use -z defs as we might desire, because we do not
15836       # link with -lc, and that would cause any symbols used from libc to
15837       # always be unresolved, which means just about no library would
15838       # ever link correctly.  If we're not using GNU ld we use -z text
15839       # though, which does catch some bad symbols but isn't as heavy-handed
15840       # as -z defs.
15841       no_undefined_flag_F77='${wl}-z,text'
15842       allow_undefined_flag_F77='${wl}-z,nodefs'
15843       archive_cmds_need_lc_F77=no
15844       hardcode_shlibpath_var_F77=no
15845       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15846       hardcode_libdir_separator_F77=':'
15847       link_all_deplibs_F77=yes
15848       export_dynamic_flag_spec_F77='${wl}-Bexport'
15849       runpath_var='LD_RUN_PATH'
15850
15851       if test "$GCC" = yes; then
15852         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15853         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15854       else
15855         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15856         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15857       fi
15858       ;;
15859
15860     uts4*)
15861       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15862       hardcode_libdir_flag_spec_F77='-L$libdir'
15863       hardcode_shlibpath_var_F77=no
15864       ;;
15865
15866     *)
15867       ld_shlibs_F77=no
15868       ;;
15869     esac
15870   fi
15871
15872 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15873 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15874 test "$ld_shlibs_F77" = no && can_build_shared=no
15875
15876 #
15877 # Do we need to explicitly link libc?
15878 #
15879 case "x$archive_cmds_need_lc_F77" in
15880 x|xyes)
15881   # Assume -lc should be added
15882   archive_cmds_need_lc_F77=yes
15883
15884   if test "$enable_shared" = yes && test "$GCC" = yes; then
15885     case $archive_cmds_F77 in
15886     *'~'*)
15887       # FIXME: we may have to deal with multi-command sequences.
15888       ;;
15889     '$CC '*)
15890       # Test whether the compiler implicitly links with -lc since on some
15891       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15892       # to ld, don't add -lc before -lgcc.
15893       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15894 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15895       $rm conftest*
15896       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15897
15898       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15899   (eval $ac_compile) 2>&5
15900   ac_status=$?
15901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902   (exit $ac_status); } 2>conftest.err; then
15903         soname=conftest
15904         lib=conftest
15905         libobjs=conftest.$ac_objext
15906         deplibs=
15907         wl=$lt_prog_compiler_wl_F77
15908         pic_flag=$lt_prog_compiler_pic_F77
15909         compiler_flags=-v
15910         linker_flags=-v
15911         verstring=
15912         output_objdir=.
15913         libname=conftest
15914         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15915         allow_undefined_flag_F77=
15916         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15917   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15918   ac_status=$?
15919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920   (exit $ac_status); }
15921         then
15922           archive_cmds_need_lc_F77=no
15923         else
15924           archive_cmds_need_lc_F77=yes
15925         fi
15926         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15927       else
15928         cat conftest.err 1>&5
15929       fi
15930       $rm conftest*
15931       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15932 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15933       ;;
15934     esac
15935   fi
15936   ;;
15937 esac
15938
15939 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15940 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15941 library_names_spec=
15942 libname_spec='lib$name'
15943 soname_spec=
15944 shrext_cmds=".so"
15945 postinstall_cmds=
15946 postuninstall_cmds=
15947 finish_cmds=
15948 finish_eval=
15949 shlibpath_var=
15950 shlibpath_overrides_runpath=unknown
15951 version_type=none
15952 dynamic_linker="$host_os ld.so"
15953 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15954 if test "$GCC" = yes; then
15955   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15956   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15957     # if the path contains ";" then we assume it to be the separator
15958     # otherwise default to the standard path separator (i.e. ":") - it is
15959     # assumed that no part of a normal pathname contains ";" but that should
15960     # okay in the real world where ";" in dirpaths is itself problematic.
15961     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15962   else
15963     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15964   fi
15965 else
15966   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15967 fi
15968 need_lib_prefix=unknown
15969 hardcode_into_libs=no
15970
15971 # when you set need_version to no, make sure it does not cause -set_version
15972 # flags to be left without arguments
15973 need_version=unknown
15974
15975 case $host_os in
15976 aix3*)
15977   version_type=linux
15978   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15979   shlibpath_var=LIBPATH
15980
15981   # AIX 3 has no versioning support, so we append a major version to the name.
15982   soname_spec='${libname}${release}${shared_ext}$major'
15983   ;;
15984
15985 aix4* | aix5*)
15986   version_type=linux
15987   need_lib_prefix=no
15988   need_version=no
15989   hardcode_into_libs=yes
15990   if test "$host_cpu" = ia64; then
15991     # AIX 5 supports IA64
15992     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15993     shlibpath_var=LD_LIBRARY_PATH
15994   else
15995     # With GCC up to 2.95.x, collect2 would create an import file
15996     # for dependence libraries.  The import file would start with
15997     # the line `#! .'.  This would cause the generated library to
15998     # depend on `.', always an invalid library.  This was fixed in
15999     # development snapshots of GCC prior to 3.0.
16000     case $host_os in
16001       aix4 | aix4.[01] | aix4.[01].*)
16002       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16003            echo ' yes '
16004            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16005         :
16006       else
16007         can_build_shared=no
16008       fi
16009       ;;
16010     esac
16011     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16012     # soname into executable. Probably we can add versioning support to
16013     # collect2, so additional links can be useful in future.
16014     if test "$aix_use_runtimelinking" = yes; then
16015       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16016       # instead of lib<name>.a to let people know that these are not
16017       # typical AIX shared libraries.
16018       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16019     else
16020       # We preserve .a as extension for shared libraries through AIX4.2
16021       # and later when we are not doing run time linking.
16022       library_names_spec='${libname}${release}.a $libname.a'
16023       soname_spec='${libname}${release}${shared_ext}$major'
16024     fi
16025     shlibpath_var=LIBPATH
16026   fi
16027   ;;
16028
16029 amigaos*)
16030   library_names_spec='$libname.ixlibrary $libname.a'
16031   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16032   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'
16033   ;;
16034
16035 beos*)
16036   library_names_spec='${libname}${shared_ext}'
16037   dynamic_linker="$host_os ld.so"
16038   shlibpath_var=LIBRARY_PATH
16039   ;;
16040
16041 bsdi[45]*)
16042   version_type=linux
16043   need_version=no
16044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16045   soname_spec='${libname}${release}${shared_ext}$major'
16046   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16047   shlibpath_var=LD_LIBRARY_PATH
16048   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16049   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16050   # the default ld.so.conf also contains /usr/contrib/lib and
16051   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16052   # libtool to hard-code these into programs
16053   ;;
16054
16055 cygwin* | mingw* | pw32*)
16056   version_type=windows
16057   shrext_cmds=".dll"
16058   need_version=no
16059   need_lib_prefix=no
16060
16061   case $GCC,$host_os in
16062   yes,cygwin* | yes,mingw* | yes,pw32*)
16063     library_names_spec='$libname.dll.a'
16064     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16065     postinstall_cmds='base_file=`basename \${file}`~
16066       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16067       dldir=$destdir/`dirname \$dlpath`~
16068       test -d \$dldir || mkdir -p \$dldir~
16069       $install_prog $dir/$dlname \$dldir/$dlname~
16070       chmod a+x \$dldir/$dlname'
16071     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16072       dlpath=$dir/\$dldll~
16073        $rm \$dlpath'
16074     shlibpath_overrides_runpath=yes
16075
16076     case $host_os in
16077     cygwin*)
16078       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16079       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16080       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16081       ;;
16082     mingw*)
16083       # MinGW DLLs use traditional 'lib' prefix
16084       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16085       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16086       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16087         # It is most probably a Windows format PATH printed by
16088         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16089         # path with ; separators, and with drive letters. We can handle the
16090         # drive letters (cygwin fileutils understands them), so leave them,
16091         # especially as we might pass files found there to a mingw objdump,
16092         # which wouldn't understand a cygwinified path. Ahh.
16093         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16094       else
16095         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16096       fi
16097       ;;
16098     pw32*)
16099       # pw32 DLLs use 'pw' prefix rather than 'lib'
16100       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16101       ;;
16102     esac
16103     ;;
16104
16105   *)
16106     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16107     ;;
16108   esac
16109   dynamic_linker='Win32 ld.exe'
16110   # FIXME: first we should search . and the directory the executable is in
16111   shlibpath_var=PATH
16112   ;;
16113
16114 darwin* | rhapsody*)
16115   dynamic_linker="$host_os dyld"
16116   version_type=darwin
16117   need_lib_prefix=no
16118   need_version=no
16119   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16120   soname_spec='${libname}${release}${major}$shared_ext'
16121   shlibpath_overrides_runpath=yes
16122   shlibpath_var=DYLD_LIBRARY_PATH
16123   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16124   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16125   if test "$GCC" = yes; then
16126     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"`
16127   else
16128     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16129   fi
16130   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16131   ;;
16132
16133 dgux*)
16134   version_type=linux
16135   need_lib_prefix=no
16136   need_version=no
16137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16138   soname_spec='${libname}${release}${shared_ext}$major'
16139   shlibpath_var=LD_LIBRARY_PATH
16140   ;;
16141
16142 freebsd1*)
16143   dynamic_linker=no
16144   ;;
16145
16146 freebsd* | dragonfly*)
16147   # DragonFly does not have aout.  When/if they implement a new
16148   # versioning mechanism, adjust this.
16149   if test -x /usr/bin/objformat; then
16150     objformat=`/usr/bin/objformat`
16151   else
16152     case $host_os in
16153     freebsd[123]*) objformat=aout ;;
16154     *) objformat=elf ;;
16155     esac
16156   fi
16157   version_type=freebsd-$objformat
16158   case $version_type in
16159     freebsd-elf*)
16160       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16161       need_version=no
16162       need_lib_prefix=no
16163       ;;
16164     freebsd-*)
16165       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16166       need_version=yes
16167       ;;
16168   esac
16169   shlibpath_var=LD_LIBRARY_PATH
16170   case $host_os in
16171   freebsd2*)
16172     shlibpath_overrides_runpath=yes
16173     ;;
16174   freebsd3.[01]* | freebsdelf3.[01]*)
16175     shlibpath_overrides_runpath=yes
16176     hardcode_into_libs=yes
16177     ;;
16178   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16179   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16180     shlibpath_overrides_runpath=no
16181     hardcode_into_libs=yes
16182     ;;
16183   freebsd*) # from 4.6 on
16184     shlibpath_overrides_runpath=yes
16185     hardcode_into_libs=yes
16186     ;;
16187   esac
16188   ;;
16189
16190 gnu*)
16191   version_type=linux
16192   need_lib_prefix=no
16193   need_version=no
16194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16195   soname_spec='${libname}${release}${shared_ext}$major'
16196   shlibpath_var=LD_LIBRARY_PATH
16197   hardcode_into_libs=yes
16198   ;;
16199
16200 hpux9* | hpux10* | hpux11*)
16201   # Give a soname corresponding to the major version so that dld.sl refuses to
16202   # link against other versions.
16203   version_type=sunos
16204   need_lib_prefix=no
16205   need_version=no
16206   case $host_cpu in
16207   ia64*)
16208     shrext_cmds='.so'
16209     hardcode_into_libs=yes
16210     dynamic_linker="$host_os dld.so"
16211     shlibpath_var=LD_LIBRARY_PATH
16212     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16213     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16214     soname_spec='${libname}${release}${shared_ext}$major'
16215     if test "X$HPUX_IA64_MODE" = X32; then
16216       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16217     else
16218       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16219     fi
16220     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16221     ;;
16222    hppa*64*)
16223      shrext_cmds='.sl'
16224      hardcode_into_libs=yes
16225      dynamic_linker="$host_os dld.sl"
16226      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16227      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16228      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16229      soname_spec='${libname}${release}${shared_ext}$major'
16230      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16231      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16232      ;;
16233    *)
16234     shrext_cmds='.sl'
16235     dynamic_linker="$host_os dld.sl"
16236     shlibpath_var=SHLIB_PATH
16237     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16238     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16239     soname_spec='${libname}${release}${shared_ext}$major'
16240     ;;
16241   esac
16242   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16243   postinstall_cmds='chmod 555 $lib'
16244   ;;
16245
16246 interix3*)
16247   version_type=linux
16248   need_lib_prefix=no
16249   need_version=no
16250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16251   soname_spec='${libname}${release}${shared_ext}$major'
16252   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16253   shlibpath_var=LD_LIBRARY_PATH
16254   shlibpath_overrides_runpath=no
16255   hardcode_into_libs=yes
16256   ;;
16257
16258 irix5* | irix6* | nonstopux*)
16259   case $host_os in
16260     nonstopux*) version_type=nonstopux ;;
16261     *)
16262         if test "$lt_cv_prog_gnu_ld" = yes; then
16263                 version_type=linux
16264         else
16265                 version_type=irix
16266         fi ;;
16267   esac
16268   need_lib_prefix=no
16269   need_version=no
16270   soname_spec='${libname}${release}${shared_ext}$major'
16271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16272   case $host_os in
16273   irix5* | nonstopux*)
16274     libsuff= shlibsuff=
16275     ;;
16276   *)
16277     case $LD in # libtool.m4 will add one of these switches to LD
16278     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16279       libsuff= shlibsuff= libmagic=32-bit;;
16280     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16281       libsuff=32 shlibsuff=N32 libmagic=N32;;
16282     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16283       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16284     *) libsuff= shlibsuff= libmagic=never-match;;
16285     esac
16286     ;;
16287   esac
16288   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16289   shlibpath_overrides_runpath=no
16290   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16291   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16292   hardcode_into_libs=yes
16293   ;;
16294
16295 # No shared lib support for Linux oldld, aout, or coff.
16296 linux*oldld* | linux*aout* | linux*coff*)
16297   dynamic_linker=no
16298   ;;
16299
16300 # This must be Linux ELF.
16301 linux* | k*bsd*-gnu)
16302   version_type=linux
16303   need_lib_prefix=no
16304   need_version=no
16305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16306   soname_spec='${libname}${release}${shared_ext}$major'
16307   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16308   shlibpath_var=LD_LIBRARY_PATH
16309   shlibpath_overrides_runpath=no
16310   # This implies no fast_install, which is unacceptable.
16311   # Some rework will be needed to allow for fast_install
16312   # before this can be enabled.
16313   hardcode_into_libs=yes
16314
16315   # Append ld.so.conf contents to the search path
16316   if test -f /etc/ld.so.conf; then
16317     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' ' '`
16318     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16319   fi
16320
16321   # We used to test for /lib/ld.so.1 and disable shared libraries on
16322   # powerpc, because MkLinux only supported shared libraries with the
16323   # GNU dynamic linker.  Since this was broken with cross compilers,
16324   # most powerpc-linux boxes support dynamic linking these days and
16325   # people can always --disable-shared, the test was removed, and we
16326   # assume the GNU/Linux dynamic linker is in use.
16327   dynamic_linker='GNU/Linux ld.so'
16328   ;;
16329
16330 netbsdelf*-gnu)
16331   version_type=linux
16332   need_lib_prefix=no
16333   need_version=no
16334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16335   soname_spec='${libname}${release}${shared_ext}$major'
16336   shlibpath_var=LD_LIBRARY_PATH
16337   shlibpath_overrides_runpath=no
16338   hardcode_into_libs=yes
16339   dynamic_linker='NetBSD ld.elf_so'
16340   ;;
16341
16342 netbsd*)
16343   version_type=sunos
16344   need_lib_prefix=no
16345   need_version=no
16346   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16347     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16348     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16349     dynamic_linker='NetBSD (a.out) ld.so'
16350   else
16351     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16352     soname_spec='${libname}${release}${shared_ext}$major'
16353     dynamic_linker='NetBSD ld.elf_so'
16354   fi
16355   shlibpath_var=LD_LIBRARY_PATH
16356   shlibpath_overrides_runpath=yes
16357   hardcode_into_libs=yes
16358   ;;
16359
16360 newsos6)
16361   version_type=linux
16362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16363   shlibpath_var=LD_LIBRARY_PATH
16364   shlibpath_overrides_runpath=yes
16365   ;;
16366
16367 nto-qnx*)
16368   version_type=linux
16369   need_lib_prefix=no
16370   need_version=no
16371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16372   soname_spec='${libname}${release}${shared_ext}$major'
16373   shlibpath_var=LD_LIBRARY_PATH
16374   shlibpath_overrides_runpath=yes
16375   ;;
16376
16377 openbsd*)
16378   version_type=sunos
16379   sys_lib_dlsearch_path_spec="/usr/lib"
16380   need_lib_prefix=no
16381   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16382   case $host_os in
16383     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16384     *)                         need_version=no  ;;
16385   esac
16386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16387   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16388   shlibpath_var=LD_LIBRARY_PATH
16389   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16390     case $host_os in
16391       openbsd2.[89] | openbsd2.[89].*)
16392         shlibpath_overrides_runpath=no
16393         ;;
16394       *)
16395         shlibpath_overrides_runpath=yes
16396         ;;
16397       esac
16398   else
16399     shlibpath_overrides_runpath=yes
16400   fi
16401   ;;
16402
16403 os2*)
16404   libname_spec='$name'
16405   shrext_cmds=".dll"
16406   need_lib_prefix=no
16407   library_names_spec='$libname${shared_ext} $libname.a'
16408   dynamic_linker='OS/2 ld.exe'
16409   shlibpath_var=LIBPATH
16410   ;;
16411
16412 osf3* | osf4* | osf5*)
16413   version_type=osf
16414   need_lib_prefix=no
16415   need_version=no
16416   soname_spec='${libname}${release}${shared_ext}$major'
16417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16418   shlibpath_var=LD_LIBRARY_PATH
16419   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16420   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16421   ;;
16422
16423 solaris*)
16424   version_type=linux
16425   need_lib_prefix=no
16426   need_version=no
16427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16428   soname_spec='${libname}${release}${shared_ext}$major'
16429   shlibpath_var=LD_LIBRARY_PATH
16430   shlibpath_overrides_runpath=yes
16431   hardcode_into_libs=yes
16432   # ldd complains unless libraries are executable
16433   postinstall_cmds='chmod +x $lib'
16434   ;;
16435
16436 sunos4*)
16437   version_type=sunos
16438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16439   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16440   shlibpath_var=LD_LIBRARY_PATH
16441   shlibpath_overrides_runpath=yes
16442   if test "$with_gnu_ld" = yes; then
16443     need_lib_prefix=no
16444   fi
16445   need_version=yes
16446   ;;
16447
16448 sysv4 | sysv4.3*)
16449   version_type=linux
16450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16451   soname_spec='${libname}${release}${shared_ext}$major'
16452   shlibpath_var=LD_LIBRARY_PATH
16453   case $host_vendor in
16454     sni)
16455       shlibpath_overrides_runpath=no
16456       need_lib_prefix=no
16457       export_dynamic_flag_spec='${wl}-Blargedynsym'
16458       runpath_var=LD_RUN_PATH
16459       ;;
16460     siemens)
16461       need_lib_prefix=no
16462       ;;
16463     motorola)
16464       need_lib_prefix=no
16465       need_version=no
16466       shlibpath_overrides_runpath=no
16467       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16468       ;;
16469   esac
16470   ;;
16471
16472 sysv4*MP*)
16473   if test -d /usr/nec ;then
16474     version_type=linux
16475     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16476     soname_spec='$libname${shared_ext}.$major'
16477     shlibpath_var=LD_LIBRARY_PATH
16478   fi
16479   ;;
16480
16481 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16482   version_type=freebsd-elf
16483   need_lib_prefix=no
16484   need_version=no
16485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16486   soname_spec='${libname}${release}${shared_ext}$major'
16487   shlibpath_var=LD_LIBRARY_PATH
16488   hardcode_into_libs=yes
16489   if test "$with_gnu_ld" = yes; then
16490     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16491     shlibpath_overrides_runpath=no
16492   else
16493     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16494     shlibpath_overrides_runpath=yes
16495     case $host_os in
16496       sco3.2v5*)
16497         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16498         ;;
16499     esac
16500   fi
16501   sys_lib_dlsearch_path_spec='/usr/lib'
16502   ;;
16503
16504 uts4*)
16505   version_type=linux
16506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16507   soname_spec='${libname}${release}${shared_ext}$major'
16508   shlibpath_var=LD_LIBRARY_PATH
16509   ;;
16510
16511 *)
16512   dynamic_linker=no
16513   ;;
16514 esac
16515 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16516 echo "${ECHO_T}$dynamic_linker" >&6; }
16517 test "$dynamic_linker" = no && can_build_shared=no
16518
16519 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16520 if test "$GCC" = yes; then
16521   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16522 fi
16523
16524 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16525 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16526 hardcode_action_F77=
16527 if test -n "$hardcode_libdir_flag_spec_F77" || \
16528    test -n "$runpath_var_F77" || \
16529    test "X$hardcode_automatic_F77" = "Xyes" ; then
16530
16531   # We can hardcode non-existant directories.
16532   if test "$hardcode_direct_F77" != no &&
16533      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16534      # have to relink, otherwise we might link with an installed library
16535      # when we should be linking with a yet-to-be-installed one
16536      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16537      test "$hardcode_minus_L_F77" != no; then
16538     # Linking always hardcodes the temporary library directory.
16539     hardcode_action_F77=relink
16540   else
16541     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16542     hardcode_action_F77=immediate
16543   fi
16544 else
16545   # We cannot hardcode anything, or else we can only hardcode existing
16546   # directories.
16547   hardcode_action_F77=unsupported
16548 fi
16549 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16550 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16551
16552 if test "$hardcode_action_F77" = relink; then
16553   # Fast installation is not supported
16554   enable_fast_install=no
16555 elif test "$shlibpath_overrides_runpath" = yes ||
16556      test "$enable_shared" = no; then
16557   # Fast installation is not necessary
16558   enable_fast_install=needless
16559 fi
16560
16561
16562 # The else clause should only fire when bootstrapping the
16563 # libtool distribution, otherwise you forgot to ship ltmain.sh
16564 # with your package, and you will get complaints that there are
16565 # no rules to generate ltmain.sh.
16566 if test -f "$ltmain"; then
16567   # See if we are running on zsh, and set the options which allow our commands through
16568   # without removal of \ escapes.
16569   if test -n "${ZSH_VERSION+set}" ; then
16570     setopt NO_GLOB_SUBST
16571   fi
16572   # Now quote all the things that may contain metacharacters while being
16573   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16574   # variables and quote the copies for generation of the libtool script.
16575   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16576     SED SHELL STRIP \
16577     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16578     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16579     deplibs_check_method reload_flag reload_cmds need_locks \
16580     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16581     lt_cv_sys_global_symbol_to_c_name_address \
16582     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16583     old_postinstall_cmds old_postuninstall_cmds \
16584     compiler_F77 \
16585     CC_F77 \
16586     LD_F77 \
16587     lt_prog_compiler_wl_F77 \
16588     lt_prog_compiler_pic_F77 \
16589     lt_prog_compiler_static_F77 \
16590     lt_prog_compiler_no_builtin_flag_F77 \
16591     export_dynamic_flag_spec_F77 \
16592     thread_safe_flag_spec_F77 \
16593     whole_archive_flag_spec_F77 \
16594     enable_shared_with_static_runtimes_F77 \
16595     old_archive_cmds_F77 \
16596     old_archive_from_new_cmds_F77 \
16597     predep_objects_F77 \
16598     postdep_objects_F77 \
16599     predeps_F77 \
16600     postdeps_F77 \
16601     compiler_lib_search_path_F77 \
16602     archive_cmds_F77 \
16603     archive_expsym_cmds_F77 \
16604     postinstall_cmds_F77 \
16605     postuninstall_cmds_F77 \
16606     old_archive_from_expsyms_cmds_F77 \
16607     allow_undefined_flag_F77 \
16608     no_undefined_flag_F77 \
16609     export_symbols_cmds_F77 \
16610     hardcode_libdir_flag_spec_F77 \
16611     hardcode_libdir_flag_spec_ld_F77 \
16612     hardcode_libdir_separator_F77 \
16613     hardcode_automatic_F77 \
16614     module_cmds_F77 \
16615     module_expsym_cmds_F77 \
16616     lt_cv_prog_compiler_c_o_F77 \
16617     exclude_expsyms_F77 \
16618     include_expsyms_F77; do
16619
16620     case $var in
16621     old_archive_cmds_F77 | \
16622     old_archive_from_new_cmds_F77 | \
16623     archive_cmds_F77 | \
16624     archive_expsym_cmds_F77 | \
16625     module_cmds_F77 | \
16626     module_expsym_cmds_F77 | \
16627     old_archive_from_expsyms_cmds_F77 | \
16628     export_symbols_cmds_F77 | \
16629     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16630     postinstall_cmds | postuninstall_cmds | \
16631     old_postinstall_cmds | old_postuninstall_cmds | \
16632     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16633       # Double-quote double-evaled strings.
16634       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16635       ;;
16636     *)
16637       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16638       ;;
16639     esac
16640   done
16641
16642   case $lt_echo in
16643   *'\$0 --fallback-echo"')
16644     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16645     ;;
16646   esac
16647
16648 cfgfile="$ofile"
16649
16650   cat <<__EOF__ >> "$cfgfile"
16651 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16652
16653 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16654
16655 # Shell to use when invoking shell scripts.
16656 SHELL=$lt_SHELL
16657
16658 # Whether or not to build shared libraries.
16659 build_libtool_libs=$enable_shared
16660
16661 # Whether or not to build static libraries.
16662 build_old_libs=$enable_static
16663
16664 # Whether or not to add -lc for building shared libraries.
16665 build_libtool_need_lc=$archive_cmds_need_lc_F77
16666
16667 # Whether or not to disallow shared libs when runtime libs are static
16668 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16669
16670 # Whether or not to optimize for fast installation.
16671 fast_install=$enable_fast_install
16672
16673 # The host system.
16674 host_alias=$host_alias
16675 host=$host
16676 host_os=$host_os
16677
16678 # The build system.
16679 build_alias=$build_alias
16680 build=$build
16681 build_os=$build_os
16682
16683 # An echo program that does not interpret backslashes.
16684 echo=$lt_echo
16685
16686 # The archiver.
16687 AR=$lt_AR
16688 AR_FLAGS=$lt_AR_FLAGS
16689
16690 # A C compiler.
16691 LTCC=$lt_LTCC
16692
16693 # LTCC compiler flags.
16694 LTCFLAGS=$lt_LTCFLAGS
16695
16696 # A language-specific compiler.
16697 CC=$lt_compiler_F77
16698
16699 # Is the compiler the GNU C compiler?
16700 with_gcc=$GCC_F77
16701
16702 # An ERE matcher.
16703 EGREP=$lt_EGREP
16704
16705 # The linker used to build libraries.
16706 LD=$lt_LD_F77
16707
16708 # Whether we need hard or soft links.
16709 LN_S=$lt_LN_S
16710
16711 # A BSD-compatible nm program.
16712 NM=$lt_NM
16713
16714 # A symbol stripping program
16715 STRIP=$lt_STRIP
16716
16717 # Used to examine libraries when file_magic_cmd begins "file"
16718 MAGIC_CMD=$MAGIC_CMD
16719
16720 # Used on cygwin: DLL creation program.
16721 DLLTOOL="$DLLTOOL"
16722
16723 # Used on cygwin: object dumper.
16724 OBJDUMP="$OBJDUMP"
16725
16726 # Used on cygwin: assembler.
16727 AS="$AS"
16728
16729 # The name of the directory that contains temporary libtool files.
16730 objdir=$objdir
16731
16732 # How to create reloadable object files.
16733 reload_flag=$lt_reload_flag
16734 reload_cmds=$lt_reload_cmds
16735
16736 # How to pass a linker flag through the compiler.
16737 wl=$lt_lt_prog_compiler_wl_F77
16738
16739 # Object file suffix (normally "o").
16740 objext="$ac_objext"
16741
16742 # Old archive suffix (normally "a").
16743 libext="$libext"
16744
16745 # Shared library suffix (normally ".so").
16746 shrext_cmds='$shrext_cmds'
16747
16748 # Executable file suffix (normally "").
16749 exeext="$exeext"
16750
16751 # Additional compiler flags for building library objects.
16752 pic_flag=$lt_lt_prog_compiler_pic_F77
16753 pic_mode=$pic_mode
16754
16755 # What is the maximum length of a command?
16756 max_cmd_len=$lt_cv_sys_max_cmd_len
16757
16758 # Does compiler simultaneously support -c and -o options?
16759 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16760
16761 # Must we lock files when doing compilation?
16762 need_locks=$lt_need_locks
16763
16764 # Do we need the lib prefix for modules?
16765 need_lib_prefix=$need_lib_prefix
16766
16767 # Do we need a version for libraries?
16768 need_version=$need_version
16769
16770 # Whether dlopen is supported.
16771 dlopen_support=$enable_dlopen
16772
16773 # Whether dlopen of programs is supported.
16774 dlopen_self=$enable_dlopen_self
16775
16776 # Whether dlopen of statically linked programs is supported.
16777 dlopen_self_static=$enable_dlopen_self_static
16778
16779 # Compiler flag to prevent dynamic linking.
16780 link_static_flag=$lt_lt_prog_compiler_static_F77
16781
16782 # Compiler flag to turn off builtin functions.
16783 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16784
16785 # Compiler flag to allow reflexive dlopens.
16786 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16787
16788 # Compiler flag to generate shared objects directly from archives.
16789 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16790
16791 # Compiler flag to generate thread-safe objects.
16792 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16793
16794 # Library versioning type.
16795 version_type=$version_type
16796
16797 # Format of library name prefix.
16798 libname_spec=$lt_libname_spec
16799
16800 # List of archive names.  First name is the real one, the rest are links.
16801 # The last name is the one that the linker finds with -lNAME.
16802 library_names_spec=$lt_library_names_spec
16803
16804 # The coded name of the library, if different from the real name.
16805 soname_spec=$lt_soname_spec
16806
16807 # Commands used to build and install an old-style archive.
16808 RANLIB=$lt_RANLIB
16809 old_archive_cmds=$lt_old_archive_cmds_F77
16810 old_postinstall_cmds=$lt_old_postinstall_cmds
16811 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16812
16813 # Create an old-style archive from a shared archive.
16814 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16815
16816 # Create a temporary old-style archive to link instead of a shared archive.
16817 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16818
16819 # Commands used to build and install a shared archive.
16820 archive_cmds=$lt_archive_cmds_F77
16821 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16822 postinstall_cmds=$lt_postinstall_cmds
16823 postuninstall_cmds=$lt_postuninstall_cmds
16824
16825 # Commands used to build a loadable module (assumed same as above if empty)
16826 module_cmds=$lt_module_cmds_F77
16827 module_expsym_cmds=$lt_module_expsym_cmds_F77
16828
16829 # Commands to strip libraries.
16830 old_striplib=$lt_old_striplib
16831 striplib=$lt_striplib
16832
16833 # Dependencies to place before the objects being linked to create a
16834 # shared library.
16835 predep_objects=$lt_predep_objects_F77
16836
16837 # Dependencies to place after the objects being linked to create a
16838 # shared library.
16839 postdep_objects=$lt_postdep_objects_F77
16840
16841 # Dependencies to place before the objects being linked to create a
16842 # shared library.
16843 predeps=$lt_predeps_F77
16844
16845 # Dependencies to place after the objects being linked to create a
16846 # shared library.
16847 postdeps=$lt_postdeps_F77
16848
16849 # The library search path used internally by the compiler when linking
16850 # a shared library.
16851 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16852
16853 # Method to check whether dependent libraries are shared objects.
16854 deplibs_check_method=$lt_deplibs_check_method
16855
16856 # Command to use when deplibs_check_method == file_magic.
16857 file_magic_cmd=$lt_file_magic_cmd
16858
16859 # Flag that allows shared libraries with undefined symbols to be built.
16860 allow_undefined_flag=$lt_allow_undefined_flag_F77
16861
16862 # Flag that forces no undefined symbols.
16863 no_undefined_flag=$lt_no_undefined_flag_F77
16864
16865 # Commands used to finish a libtool library installation in a directory.
16866 finish_cmds=$lt_finish_cmds
16867
16868 # Same as above, but a single script fragment to be evaled but not shown.
16869 finish_eval=$lt_finish_eval
16870
16871 # Take the output of nm and produce a listing of raw symbols and C names.
16872 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16873
16874 # Transform the output of nm in a proper C declaration
16875 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16876
16877 # Transform the output of nm in a C name address pair
16878 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16879
16880 # This is the shared library runtime path variable.
16881 runpath_var=$runpath_var
16882
16883 # This is the shared library path variable.
16884 shlibpath_var=$shlibpath_var
16885
16886 # Is shlibpath searched before the hard-coded library search path?
16887 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16888
16889 # How to hardcode a shared library path into an executable.
16890 hardcode_action=$hardcode_action_F77
16891
16892 # Whether we should hardcode library paths into libraries.
16893 hardcode_into_libs=$hardcode_into_libs
16894
16895 # Flag to hardcode \$libdir into a binary during linking.
16896 # This must work even if \$libdir does not exist.
16897 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16898
16899 # If ld is used when linking, flag to hardcode \$libdir into
16900 # a binary during linking. This must work even if \$libdir does
16901 # not exist.
16902 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16903
16904 # Whether we need a single -rpath flag with a separated argument.
16905 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16906
16907 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16908 # resulting binary.
16909 hardcode_direct=$hardcode_direct_F77
16910
16911 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16912 # resulting binary.
16913 hardcode_minus_L=$hardcode_minus_L_F77
16914
16915 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16916 # the resulting binary.
16917 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16918
16919 # Set to yes if building a shared library automatically hardcodes DIR into the library
16920 # and all subsequent libraries and executables linked against it.
16921 hardcode_automatic=$hardcode_automatic_F77
16922
16923 # Variables whose values should be saved in libtool wrapper scripts and
16924 # restored at relink time.
16925 variables_saved_for_relink="$variables_saved_for_relink"
16926
16927 # Whether libtool must link a program against all its dependency libraries.
16928 link_all_deplibs=$link_all_deplibs_F77
16929
16930 # Compile-time system search path for libraries
16931 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16932
16933 # Run-time system search path for libraries
16934 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16935
16936 # Fix the shell variable \$srcfile for the compiler.
16937 fix_srcfile_path="$fix_srcfile_path_F77"
16938
16939 # Set to yes if exported symbols are required.
16940 always_export_symbols=$always_export_symbols_F77
16941
16942 # The commands to list exported symbols.
16943 export_symbols_cmds=$lt_export_symbols_cmds_F77
16944
16945 # The commands to extract the exported symbol list from a shared archive.
16946 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16947
16948 # Symbols that should not be listed in the preloaded symbols.
16949 exclude_expsyms=$lt_exclude_expsyms_F77
16950
16951 # Symbols that must always be exported.
16952 include_expsyms=$lt_include_expsyms_F77
16953
16954 # ### END LIBTOOL TAG CONFIG: $tagname
16955
16956 __EOF__
16957
16958
16959 else
16960   # If there is no Makefile yet, we rely on a make rule to execute
16961   # `config.status --recheck' to rerun these tests and create the
16962   # libtool script then.
16963   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16964   if test -f "$ltmain_in"; then
16965     test -f Makefile && make "$ltmain"
16966   fi
16967 fi
16968
16969
16970 ac_ext=c
16971 ac_cpp='$CPP $CPPFLAGS'
16972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16975
16976 CC="$lt_save_CC"
16977
16978         else
16979           tagname=""
16980         fi
16981         ;;
16982
16983       GCJ)
16984         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16985
16986
16987 # Source file extension for Java test sources.
16988 ac_ext=java
16989
16990 # Object file extension for compiled Java test sources.
16991 objext=o
16992 objext_GCJ=$objext
16993
16994 # Code to be used in simple compile tests
16995 lt_simple_compile_test_code="class foo {}\n"
16996
16997 # Code to be used in simple link tests
16998 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16999
17000 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17001
17002 # If no C compiler was specified, use CC.
17003 LTCC=${LTCC-"$CC"}
17004
17005 # If no C compiler flags were specified, use CFLAGS.
17006 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17007
17008 # Allow CC to be a program name with arguments.
17009 compiler=$CC
17010
17011
17012 # save warnings/boilerplate of simple test code
17013 ac_outfile=conftest.$ac_objext
17014 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17015 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17016 _lt_compiler_boilerplate=`cat conftest.err`
17017 $rm conftest*
17018
17019 ac_outfile=conftest.$ac_objext
17020 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17021 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17022 _lt_linker_boilerplate=`cat conftest.err`
17023 $rm conftest*
17024
17025
17026 # Allow CC to be a program name with arguments.
17027 lt_save_CC="$CC"
17028 CC=${GCJ-"gcj"}
17029 compiler=$CC
17030 compiler_GCJ=$CC
17031 for cc_temp in $compiler""; do
17032   case $cc_temp in
17033     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17034     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17035     \-*) ;;
17036     *) break;;
17037   esac
17038 done
17039 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17040
17041
17042 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17043 archive_cmds_need_lc_GCJ=no
17044
17045 old_archive_cmds_GCJ=$old_archive_cmds
17046
17047
17048 lt_prog_compiler_no_builtin_flag_GCJ=
17049
17050 if test "$GCC" = yes; then
17051   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17052
17053
17054 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17055 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17056 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17057   echo $ECHO_N "(cached) $ECHO_C" >&6
17058 else
17059   lt_cv_prog_compiler_rtti_exceptions=no
17060   ac_outfile=conftest.$ac_objext
17061    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17062    lt_compiler_flag="-fno-rtti -fno-exceptions"
17063    # Insert the option either (1) after the last *FLAGS variable, or
17064    # (2) before a word containing "conftest.", or (3) at the end.
17065    # Note that $ac_compile itself does not contain backslashes and begins
17066    # with a dollar sign (not a hyphen), so the echo should work correctly.
17067    # The option is referenced via a variable to avoid confusing sed.
17068    lt_compile=`echo "$ac_compile" | $SED \
17069    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17070    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17071    -e 's:$: $lt_compiler_flag:'`
17072    (eval echo "\"\$as_me:17072: $lt_compile\"" >&5)
17073    (eval "$lt_compile" 2>conftest.err)
17074    ac_status=$?
17075    cat conftest.err >&5
17076    echo "$as_me:17076: \$? = $ac_status" >&5
17077    if (exit $ac_status) && test -s "$ac_outfile"; then
17078      # The compiler can only warn and ignore the option if not recognized
17079      # So say no if there are warnings other than the usual output.
17080      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17081      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17082      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17083        lt_cv_prog_compiler_rtti_exceptions=yes
17084      fi
17085    fi
17086    $rm conftest*
17087
17088 fi
17089 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17090 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17091
17092 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17093     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17094 else
17095     :
17096 fi
17097
17098 fi
17099
17100 lt_prog_compiler_wl_GCJ=
17101 lt_prog_compiler_pic_GCJ=
17102 lt_prog_compiler_static_GCJ=
17103
17104 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17105 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17106
17107   if test "$GCC" = yes; then
17108     lt_prog_compiler_wl_GCJ='-Wl,'
17109     lt_prog_compiler_static_GCJ='-static'
17110
17111     case $host_os in
17112       aix*)
17113       # All AIX code is PIC.
17114       if test "$host_cpu" = ia64; then
17115         # AIX 5 now supports IA64 processor
17116         lt_prog_compiler_static_GCJ='-Bstatic'
17117       fi
17118       ;;
17119
17120     amigaos*)
17121       # FIXME: we need at least 68020 code to build shared libraries, but
17122       # adding the `-m68020' flag to GCC prevents building anything better,
17123       # like `-m68040'.
17124       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17125       ;;
17126
17127     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17128       # PIC is the default for these OSes.
17129       ;;
17130
17131     mingw* | pw32* | os2*)
17132       # This hack is so that the source file can tell whether it is being
17133       # built for inclusion in a dll (and should export symbols for example).
17134       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17135       ;;
17136
17137     darwin* | rhapsody*)
17138       # PIC is the default on this platform
17139       # Common symbols not allowed in MH_DYLIB files
17140       lt_prog_compiler_pic_GCJ='-fno-common'
17141       ;;
17142
17143     interix3*)
17144       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17145       # Instead, we relocate shared libraries at runtime.
17146       ;;
17147
17148     msdosdjgpp*)
17149       # Just because we use GCC doesn't mean we suddenly get shared libraries
17150       # on systems that don't support them.
17151       lt_prog_compiler_can_build_shared_GCJ=no
17152       enable_shared=no
17153       ;;
17154
17155     sysv4*MP*)
17156       if test -d /usr/nec; then
17157         lt_prog_compiler_pic_GCJ=-Kconform_pic
17158       fi
17159       ;;
17160
17161     hpux*)
17162       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17163       # not for PA HP-UX.
17164       case $host_cpu in
17165       hppa*64*|ia64*)
17166         # +Z the default
17167         ;;
17168       *)
17169         lt_prog_compiler_pic_GCJ='-fPIC'
17170         ;;
17171       esac
17172       ;;
17173
17174     *)
17175       lt_prog_compiler_pic_GCJ='-fPIC'
17176       ;;
17177     esac
17178   else
17179     # PORTME Check for flag to pass linker flags through the system compiler.
17180     case $host_os in
17181     aix*)
17182       lt_prog_compiler_wl_GCJ='-Wl,'
17183       if test "$host_cpu" = ia64; then
17184         # AIX 5 now supports IA64 processor
17185         lt_prog_compiler_static_GCJ='-Bstatic'
17186       else
17187         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17188       fi
17189       ;;
17190       darwin*)
17191         # PIC is the default on this platform
17192         # Common symbols not allowed in MH_DYLIB files
17193        case $cc_basename in
17194          xlc*)
17195          lt_prog_compiler_pic_GCJ='-qnocommon'
17196          lt_prog_compiler_wl_GCJ='-Wl,'
17197          ;;
17198        esac
17199        ;;
17200
17201     mingw* | pw32* | os2*)
17202       # This hack is so that the source file can tell whether it is being
17203       # built for inclusion in a dll (and should export symbols for example).
17204       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17205       ;;
17206
17207     hpux9* | hpux10* | hpux11*)
17208       lt_prog_compiler_wl_GCJ='-Wl,'
17209       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17210       # not for PA HP-UX.
17211       case $host_cpu in
17212       hppa*64*|ia64*)
17213         # +Z the default
17214         ;;
17215       *)
17216         lt_prog_compiler_pic_GCJ='+Z'
17217         ;;
17218       esac
17219       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17220       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17221       ;;
17222
17223     irix5* | irix6* | nonstopux*)
17224       lt_prog_compiler_wl_GCJ='-Wl,'
17225       # PIC (with -KPIC) is the default.
17226       lt_prog_compiler_static_GCJ='-non_shared'
17227       ;;
17228
17229     newsos6)
17230       lt_prog_compiler_pic_GCJ='-KPIC'
17231       lt_prog_compiler_static_GCJ='-Bstatic'
17232       ;;
17233
17234     linux* | k*bsd*-gnu)
17235       case $cc_basename in
17236       icc* | ecc*)
17237         lt_prog_compiler_wl_GCJ='-Wl,'
17238         lt_prog_compiler_pic_GCJ='-KPIC'
17239         lt_prog_compiler_static_GCJ='-static'
17240         ;;
17241       pgcc* | pgf77* | pgf90* | pgf95*)
17242         # Portland Group compilers (*not* the Pentium gcc compiler,
17243         # which looks to be a dead project)
17244         lt_prog_compiler_wl_GCJ='-Wl,'
17245         lt_prog_compiler_pic_GCJ='-fpic'
17246         lt_prog_compiler_static_GCJ='-Bstatic'
17247         ;;
17248       ccc*)
17249         lt_prog_compiler_wl_GCJ='-Wl,'
17250         # All Alpha code is PIC.
17251         lt_prog_compiler_static_GCJ='-non_shared'
17252         ;;
17253       esac
17254       ;;
17255
17256     osf3* | osf4* | osf5*)
17257       lt_prog_compiler_wl_GCJ='-Wl,'
17258       # All OSF/1 code is PIC.
17259       lt_prog_compiler_static_GCJ='-non_shared'
17260       ;;
17261
17262     solaris*)
17263       lt_prog_compiler_pic_GCJ='-KPIC'
17264       lt_prog_compiler_static_GCJ='-Bstatic'
17265       case $cc_basename in
17266       f77* | f90* | f95*)
17267         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17268       *)
17269         lt_prog_compiler_wl_GCJ='-Wl,';;
17270       esac
17271       ;;
17272
17273     sunos4*)
17274       lt_prog_compiler_wl_GCJ='-Qoption ld '
17275       lt_prog_compiler_pic_GCJ='-PIC'
17276       lt_prog_compiler_static_GCJ='-Bstatic'
17277       ;;
17278
17279     sysv4 | sysv4.2uw2* | sysv4.3*)
17280       lt_prog_compiler_wl_GCJ='-Wl,'
17281       lt_prog_compiler_pic_GCJ='-KPIC'
17282       lt_prog_compiler_static_GCJ='-Bstatic'
17283       ;;
17284
17285     sysv4*MP*)
17286       if test -d /usr/nec ;then
17287         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17288         lt_prog_compiler_static_GCJ='-Bstatic'
17289       fi
17290       ;;
17291
17292     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17293       lt_prog_compiler_wl_GCJ='-Wl,'
17294       lt_prog_compiler_pic_GCJ='-KPIC'
17295       lt_prog_compiler_static_GCJ='-Bstatic'
17296       ;;
17297
17298     unicos*)
17299       lt_prog_compiler_wl_GCJ='-Wl,'
17300       lt_prog_compiler_can_build_shared_GCJ=no
17301       ;;
17302
17303     uts4*)
17304       lt_prog_compiler_pic_GCJ='-pic'
17305       lt_prog_compiler_static_GCJ='-Bstatic'
17306       ;;
17307
17308     *)
17309       lt_prog_compiler_can_build_shared_GCJ=no
17310       ;;
17311     esac
17312   fi
17313
17314 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17315 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17316
17317 #
17318 # Check to make sure the PIC flag actually works.
17319 #
17320 if test -n "$lt_prog_compiler_pic_GCJ"; then
17321
17322 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17323 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17324 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17325   echo $ECHO_N "(cached) $ECHO_C" >&6
17326 else
17327   lt_prog_compiler_pic_works_GCJ=no
17328   ac_outfile=conftest.$ac_objext
17329    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17330    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17331    # Insert the option either (1) after the last *FLAGS variable, or
17332    # (2) before a word containing "conftest.", or (3) at the end.
17333    # Note that $ac_compile itself does not contain backslashes and begins
17334    # with a dollar sign (not a hyphen), so the echo should work correctly.
17335    # The option is referenced via a variable to avoid confusing sed.
17336    lt_compile=`echo "$ac_compile" | $SED \
17337    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17338    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17339    -e 's:$: $lt_compiler_flag:'`
17340    (eval echo "\"\$as_me:17340: $lt_compile\"" >&5)
17341    (eval "$lt_compile" 2>conftest.err)
17342    ac_status=$?
17343    cat conftest.err >&5
17344    echo "$as_me:17344: \$? = $ac_status" >&5
17345    if (exit $ac_status) && test -s "$ac_outfile"; then
17346      # The compiler can only warn and ignore the option if not recognized
17347      # So say no if there are warnings other than the usual output.
17348      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17349      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17350      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17351        lt_prog_compiler_pic_works_GCJ=yes
17352      fi
17353    fi
17354    $rm conftest*
17355
17356 fi
17357 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17358 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17359
17360 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17361     case $lt_prog_compiler_pic_GCJ in
17362      "" | " "*) ;;
17363      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17364      esac
17365 else
17366     lt_prog_compiler_pic_GCJ=
17367      lt_prog_compiler_can_build_shared_GCJ=no
17368 fi
17369
17370 fi
17371 case $host_os in
17372   # For platforms which do not support PIC, -DPIC is meaningless:
17373   *djgpp*)
17374     lt_prog_compiler_pic_GCJ=
17375     ;;
17376   *)
17377     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17378     ;;
17379 esac
17380
17381 #
17382 # Check to make sure the static flag actually works.
17383 #
17384 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17385 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17386 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17387 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17388   echo $ECHO_N "(cached) $ECHO_C" >&6
17389 else
17390   lt_prog_compiler_static_works_GCJ=no
17391    save_LDFLAGS="$LDFLAGS"
17392    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17393    printf "$lt_simple_link_test_code" > conftest.$ac_ext
17394    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17395      # The linker can only warn and ignore the option if not recognized
17396      # So say no if there are warnings
17397      if test -s conftest.err; then
17398        # Append any errors to the config.log.
17399        cat conftest.err 1>&5
17400        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17401        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17402        if diff conftest.exp conftest.er2 >/dev/null; then
17403          lt_prog_compiler_static_works_GCJ=yes
17404        fi
17405      else
17406        lt_prog_compiler_static_works_GCJ=yes
17407      fi
17408    fi
17409    $rm conftest*
17410    LDFLAGS="$save_LDFLAGS"
17411
17412 fi
17413 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17414 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17415
17416 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17417     :
17418 else
17419     lt_prog_compiler_static_GCJ=
17420 fi
17421
17422
17423 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17424 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17425 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17426   echo $ECHO_N "(cached) $ECHO_C" >&6
17427 else
17428   lt_cv_prog_compiler_c_o_GCJ=no
17429    $rm -r conftest 2>/dev/null
17430    mkdir conftest
17431    cd conftest
17432    mkdir out
17433    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17434
17435    lt_compiler_flag="-o out/conftest2.$ac_objext"
17436    # Insert the option either (1) after the last *FLAGS variable, or
17437    # (2) before a word containing "conftest.", or (3) at the end.
17438    # Note that $ac_compile itself does not contain backslashes and begins
17439    # with a dollar sign (not a hyphen), so the echo should work correctly.
17440    lt_compile=`echo "$ac_compile" | $SED \
17441    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17442    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17443    -e 's:$: $lt_compiler_flag:'`
17444    (eval echo "\"\$as_me:17444: $lt_compile\"" >&5)
17445    (eval "$lt_compile" 2>out/conftest.err)
17446    ac_status=$?
17447    cat out/conftest.err >&5
17448    echo "$as_me:17448: \$? = $ac_status" >&5
17449    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17450    then
17451      # The compiler can only warn and ignore the option if not recognized
17452      # So say no if there are warnings
17453      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17454      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17455      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17456        lt_cv_prog_compiler_c_o_GCJ=yes
17457      fi
17458    fi
17459    chmod u+w . 2>&5
17460    $rm conftest*
17461    # SGI C++ compiler will create directory out/ii_files/ for
17462    # template instantiation
17463    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17464    $rm out/* && rmdir out
17465    cd ..
17466    rmdir conftest
17467    $rm conftest*
17468
17469 fi
17470 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17471 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17472
17473
17474 hard_links="nottested"
17475 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17476   # do not overwrite the value of need_locks provided by the user
17477   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17478 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17479   hard_links=yes
17480   $rm conftest*
17481   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17482   touch conftest.a
17483   ln conftest.a conftest.b 2>&5 || hard_links=no
17484   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17485   { echo "$as_me:$LINENO: result: $hard_links" >&5
17486 echo "${ECHO_T}$hard_links" >&6; }
17487   if test "$hard_links" = no; then
17488     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17489 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17490     need_locks=warn
17491   fi
17492 else
17493   need_locks=no
17494 fi
17495
17496 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17497 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17498
17499   runpath_var=
17500   allow_undefined_flag_GCJ=
17501   enable_shared_with_static_runtimes_GCJ=no
17502   archive_cmds_GCJ=
17503   archive_expsym_cmds_GCJ=
17504   old_archive_From_new_cmds_GCJ=
17505   old_archive_from_expsyms_cmds_GCJ=
17506   export_dynamic_flag_spec_GCJ=
17507   whole_archive_flag_spec_GCJ=
17508   thread_safe_flag_spec_GCJ=
17509   hardcode_libdir_flag_spec_GCJ=
17510   hardcode_libdir_flag_spec_ld_GCJ=
17511   hardcode_libdir_separator_GCJ=
17512   hardcode_direct_GCJ=no
17513   hardcode_minus_L_GCJ=no
17514   hardcode_shlibpath_var_GCJ=unsupported
17515   link_all_deplibs_GCJ=unknown
17516   hardcode_automatic_GCJ=no
17517   module_cmds_GCJ=
17518   module_expsym_cmds_GCJ=
17519   always_export_symbols_GCJ=no
17520   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17521   # include_expsyms should be a list of space-separated symbols to be *always*
17522   # included in the symbol list
17523   include_expsyms_GCJ=
17524   # exclude_expsyms can be an extended regexp of symbols to exclude
17525   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17526   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17527   # as well as any symbol that contains `d'.
17528   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17529   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17530   # platforms (ab)use it in PIC code, but their linkers get confused if
17531   # the symbol is explicitly referenced.  Since portable code cannot
17532   # rely on this symbol name, it's probably fine to never include it in
17533   # preloaded symbol tables.
17534   extract_expsyms_cmds=
17535   # Just being paranoid about ensuring that cc_basename is set.
17536   for cc_temp in $compiler""; do
17537   case $cc_temp in
17538     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17539     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17540     \-*) ;;
17541     *) break;;
17542   esac
17543 done
17544 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17545
17546   case $host_os in
17547   cygwin* | mingw* | pw32*)
17548     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17549     # When not using gcc, we currently assume that we are using
17550     # Microsoft Visual C++.
17551     if test "$GCC" != yes; then
17552       with_gnu_ld=no
17553     fi
17554     ;;
17555   interix*)
17556     # we just hope/assume this is gcc and not c89 (= MSVC++)
17557     with_gnu_ld=yes
17558     ;;
17559   openbsd*)
17560     with_gnu_ld=no
17561     ;;
17562   esac
17563
17564   ld_shlibs_GCJ=yes
17565   if test "$with_gnu_ld" = yes; then
17566     # If archive_cmds runs LD, not CC, wlarc should be empty
17567     wlarc='${wl}'
17568
17569     # Set some defaults for GNU ld with shared library support. These
17570     # are reset later if shared libraries are not supported. Putting them
17571     # here allows them to be overridden if necessary.
17572     runpath_var=LD_RUN_PATH
17573     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17574     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17575     # ancient GNU ld didn't support --whole-archive et. al.
17576     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17577         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17578       else
17579         whole_archive_flag_spec_GCJ=
17580     fi
17581     supports_anon_versioning=no
17582     case `$LD -v 2>/dev/null` in
17583       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17584       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17585       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17586       *\ 2.11.*) ;; # other 2.11 versions
17587       *) supports_anon_versioning=yes ;;
17588     esac
17589
17590     # See if GNU ld supports shared libraries.
17591     case $host_os in
17592     aix3* | aix4* | aix5*)
17593       # On AIX/PPC, the GNU linker is very broken
17594       if test "$host_cpu" != ia64; then
17595         ld_shlibs_GCJ=no
17596         cat <<EOF 1>&2
17597
17598 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17599 *** to be unable to reliably create shared libraries on AIX.
17600 *** Therefore, libtool is disabling shared libraries support.  If you
17601 *** really care for shared libraries, you may want to modify your PATH
17602 *** so that a non-GNU linker is found, and then restart.
17603
17604 EOF
17605       fi
17606       ;;
17607
17608     amigaos*)
17609       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)'
17610       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17611       hardcode_minus_L_GCJ=yes
17612
17613       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17614       # that the semantics of dynamic libraries on AmigaOS, at least up
17615       # to version 4, is to share data among multiple programs linked
17616       # with the same dynamic library.  Since this doesn't match the
17617       # behavior of shared libraries on other platforms, we can't use
17618       # them.
17619       ld_shlibs_GCJ=no
17620       ;;
17621
17622     beos*)
17623       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17624         allow_undefined_flag_GCJ=unsupported
17625         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17626         # support --undefined.  This deserves some investigation.  FIXME
17627         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17628       else
17629         ld_shlibs_GCJ=no
17630       fi
17631       ;;
17632
17633     cygwin* | mingw* | pw32*)
17634       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17635       # as there is no search path for DLLs.
17636       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17637       allow_undefined_flag_GCJ=unsupported
17638       always_export_symbols_GCJ=no
17639       enable_shared_with_static_runtimes_GCJ=yes
17640       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17641
17642       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17643         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17644         # If the export-symbols file already is a .def file (1st line
17645         # is EXPORTS), use it as is; otherwise, prepend...
17646         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17647           cp $export_symbols $output_objdir/$soname.def;
17648         else
17649           echo EXPORTS > $output_objdir/$soname.def;
17650           cat $export_symbols >> $output_objdir/$soname.def;
17651         fi~
17652         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17653       else
17654         ld_shlibs_GCJ=no
17655       fi
17656       ;;
17657
17658     interix3*)
17659       hardcode_direct_GCJ=no
17660       hardcode_shlibpath_var_GCJ=no
17661       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17662       export_dynamic_flag_spec_GCJ='${wl}-E'
17663       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17664       # Instead, shared libraries are loaded at an image base (0x10000000 by
17665       # default) and relocated if they conflict, which is a slow very memory
17666       # consuming and fragmenting process.  To avoid this, we pick a random,
17667       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17668       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17669       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'
17670       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'
17671       ;;
17672
17673     linux* | k*bsd*-gnu)
17674       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17675         tmp_addflag=
17676         case $cc_basename,$host_cpu in
17677         pgcc*)                          # Portland Group C compiler
17678           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'
17679           tmp_addflag=' $pic_flag'
17680           ;;
17681         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17682           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'
17683           tmp_addflag=' $pic_flag -Mnomain' ;;
17684         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17685           tmp_addflag=' -i_dynamic' ;;
17686         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17687           tmp_addflag=' -i_dynamic -nofor_main' ;;
17688         ifc* | ifort*)                  # Intel Fortran compiler
17689           tmp_addflag=' -nofor_main' ;;
17690         esac
17691         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17692
17693         if test $supports_anon_versioning = yes; then
17694           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17695   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17696   $echo "local: *; };" >> $output_objdir/$libname.ver~
17697           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17698         fi
17699         link_all_deplibs_GCJ=no
17700       else
17701         ld_shlibs_GCJ=no
17702       fi
17703       ;;
17704
17705     netbsd* | netbsdelf*-gnu)
17706       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17707         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17708         wlarc=
17709       else
17710         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17711         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17712       fi
17713       ;;
17714
17715     solaris*)
17716       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17717         ld_shlibs_GCJ=no
17718         cat <<EOF 1>&2
17719
17720 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17721 *** create shared libraries on Solaris systems.  Therefore, libtool
17722 *** is disabling shared libraries support.  We urge you to upgrade GNU
17723 *** binutils to release 2.9.1 or newer.  Another option is to modify
17724 *** your PATH or compiler configuration so that the native linker is
17725 *** used, and then restart.
17726
17727 EOF
17728       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17729         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17730         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17731       else
17732         ld_shlibs_GCJ=no
17733       fi
17734       ;;
17735
17736     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17737       case `$LD -v 2>&1` in
17738         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17739         ld_shlibs_GCJ=no
17740         cat <<_LT_EOF 1>&2
17741
17742 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17743 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17744 *** is disabling shared libraries support.  We urge you to upgrade GNU
17745 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17746 *** your PATH or compiler configuration so that the native linker is
17747 *** used, and then restart.
17748
17749 _LT_EOF
17750         ;;
17751         *)
17752           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17753             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17754             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17755             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17756           else
17757             ld_shlibs_GCJ=no
17758           fi
17759         ;;
17760       esac
17761       ;;
17762
17763     sunos4*)
17764       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17765       wlarc=
17766       hardcode_direct_GCJ=yes
17767       hardcode_shlibpath_var_GCJ=no
17768       ;;
17769
17770     *)
17771       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17772         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17773         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17774       else
17775         ld_shlibs_GCJ=no
17776       fi
17777       ;;
17778     esac
17779
17780     if test "$ld_shlibs_GCJ" = no; then
17781       runpath_var=
17782       hardcode_libdir_flag_spec_GCJ=
17783       export_dynamic_flag_spec_GCJ=
17784       whole_archive_flag_spec_GCJ=
17785     fi
17786   else
17787     # PORTME fill in a description of your system's linker (not GNU ld)
17788     case $host_os in
17789     aix3*)
17790       allow_undefined_flag_GCJ=unsupported
17791       always_export_symbols_GCJ=yes
17792       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'
17793       # Note: this linker hardcodes the directories in LIBPATH if there
17794       # are no directories specified by -L.
17795       hardcode_minus_L_GCJ=yes
17796       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17797         # Neither direct hardcoding nor static linking is supported with a
17798         # broken collect2.
17799         hardcode_direct_GCJ=unsupported
17800       fi
17801       ;;
17802
17803     aix4* | aix5*)
17804       if test "$host_cpu" = ia64; then
17805         # On IA64, the linker does run time linking by default, so we don't
17806         # have to do anything special.
17807         aix_use_runtimelinking=no
17808         exp_sym_flag='-Bexport'
17809         no_entry_flag=""
17810       else
17811         # If we're using GNU nm, then we don't want the "-C" option.
17812         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17813         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17814           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'
17815         else
17816           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'
17817         fi
17818         aix_use_runtimelinking=no
17819
17820         # Test if we are trying to use run time linking or normal
17821         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17822         # need to do runtime linking.
17823         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17824           for ld_flag in $LDFLAGS; do
17825           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17826             aix_use_runtimelinking=yes
17827             break
17828           fi
17829           done
17830           ;;
17831         esac
17832
17833         exp_sym_flag='-bexport'
17834         no_entry_flag='-bnoentry'
17835       fi
17836
17837       # When large executables or shared objects are built, AIX ld can
17838       # have problems creating the table of contents.  If linking a library
17839       # or program results in "error TOC overflow" add -mminimal-toc to
17840       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17841       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17842
17843       archive_cmds_GCJ=''
17844       hardcode_direct_GCJ=yes
17845       hardcode_libdir_separator_GCJ=':'
17846       link_all_deplibs_GCJ=yes
17847
17848       if test "$GCC" = yes; then
17849         case $host_os in aix4.[012]|aix4.[012].*)
17850         # We only want to do this on AIX 4.2 and lower, the check
17851         # below for broken collect2 doesn't work under 4.3+
17852           collect2name=`${CC} -print-prog-name=collect2`
17853           if test -f "$collect2name" && \
17854            strings "$collect2name" | grep resolve_lib_name >/dev/null
17855           then
17856           # We have reworked collect2
17857           hardcode_direct_GCJ=yes
17858           else
17859           # We have old collect2
17860           hardcode_direct_GCJ=unsupported
17861           # It fails to find uninstalled libraries when the uninstalled
17862           # path is not listed in the libpath.  Setting hardcode_minus_L
17863           # to unsupported forces relinking
17864           hardcode_minus_L_GCJ=yes
17865           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17866           hardcode_libdir_separator_GCJ=
17867           fi
17868           ;;
17869         esac
17870         shared_flag='-shared'
17871         if test "$aix_use_runtimelinking" = yes; then
17872           shared_flag="$shared_flag "'${wl}-G'
17873         fi
17874       else
17875         # not using gcc
17876         if test "$host_cpu" = ia64; then
17877         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17878         # chokes on -Wl,-G. The following line is correct:
17879           shared_flag='-G'
17880         else
17881           if test "$aix_use_runtimelinking" = yes; then
17882             shared_flag='${wl}-G'
17883           else
17884             shared_flag='${wl}-bM:SRE'
17885           fi
17886         fi
17887       fi
17888
17889       # It seems that -bexpall does not export symbols beginning with
17890       # underscore (_), so it is better to generate a list of symbols to export.
17891       always_export_symbols_GCJ=yes
17892       if test "$aix_use_runtimelinking" = yes; then
17893         # Warning - without using the other runtime loading flags (-brtl),
17894         # -berok will link without error, but may produce a broken library.
17895         allow_undefined_flag_GCJ='-berok'
17896        # Determine the default libpath from the value encoded in an empty executable.
17897        cat >conftest.$ac_ext <<_ACEOF
17898 /* confdefs.h.  */
17899 _ACEOF
17900 cat confdefs.h >>conftest.$ac_ext
17901 cat >>conftest.$ac_ext <<_ACEOF
17902 /* end confdefs.h.  */
17903
17904 int
17905 main ()
17906 {
17907
17908   ;
17909   return 0;
17910 }
17911 _ACEOF
17912 rm -f conftest.$ac_objext conftest$ac_exeext
17913 if { (ac_try="$ac_link"
17914 case "(($ac_try" in
17915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17916   *) ac_try_echo=$ac_try;;
17917 esac
17918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17919   (eval "$ac_link") 2>conftest.er1
17920   ac_status=$?
17921   grep -v '^ *+' conftest.er1 >conftest.err
17922   rm -f conftest.er1
17923   cat conftest.err >&5
17924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925   (exit $ac_status); } &&
17926          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17927   { (case "(($ac_try" in
17928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17929   *) ac_try_echo=$ac_try;;
17930 esac
17931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17932   (eval "$ac_try") 2>&5
17933   ac_status=$?
17934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935   (exit $ac_status); }; } &&
17936          { ac_try='test -s conftest$ac_exeext'
17937   { (case "(($ac_try" in
17938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17939   *) ac_try_echo=$ac_try;;
17940 esac
17941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17942   (eval "$ac_try") 2>&5
17943   ac_status=$?
17944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945   (exit $ac_status); }; }; then
17946
17947 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17948 }'`
17949 # Check for a 64-bit object if we didn't find anything.
17950 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; }
17951 }'`; fi
17952 else
17953   echo "$as_me: failed program was:" >&5
17954 sed 's/^/| /' conftest.$ac_ext >&5
17955
17956
17957 fi
17958
17959 rm -f core conftest.err conftest.$ac_objext \
17960       conftest$ac_exeext conftest.$ac_ext
17961 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17962
17963        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17964         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"
17965        else
17966         if test "$host_cpu" = ia64; then
17967           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17968           allow_undefined_flag_GCJ="-z nodefs"
17969           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"
17970         else
17971          # Determine the default libpath from the value encoded in an empty executable.
17972          cat >conftest.$ac_ext <<_ACEOF
17973 /* confdefs.h.  */
17974 _ACEOF
17975 cat confdefs.h >>conftest.$ac_ext
17976 cat >>conftest.$ac_ext <<_ACEOF
17977 /* end confdefs.h.  */
17978
17979 int
17980 main ()
17981 {
17982
17983   ;
17984   return 0;
17985 }
17986 _ACEOF
17987 rm -f conftest.$ac_objext conftest$ac_exeext
17988 if { (ac_try="$ac_link"
17989 case "(($ac_try" in
17990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991   *) ac_try_echo=$ac_try;;
17992 esac
17993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994   (eval "$ac_link") 2>conftest.er1
17995   ac_status=$?
17996   grep -v '^ *+' conftest.er1 >conftest.err
17997   rm -f conftest.er1
17998   cat conftest.err >&5
17999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000   (exit $ac_status); } &&
18001          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18002   { (case "(($ac_try" in
18003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18004   *) ac_try_echo=$ac_try;;
18005 esac
18006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18007   (eval "$ac_try") 2>&5
18008   ac_status=$?
18009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010   (exit $ac_status); }; } &&
18011          { ac_try='test -s conftest$ac_exeext'
18012   { (case "(($ac_try" in
18013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014   *) ac_try_echo=$ac_try;;
18015 esac
18016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017   (eval "$ac_try") 2>&5
18018   ac_status=$?
18019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020   (exit $ac_status); }; }; then
18021
18022 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18023 }'`
18024 # Check for a 64-bit object if we didn't find anything.
18025 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; }
18026 }'`; fi
18027 else
18028   echo "$as_me: failed program was:" >&5
18029 sed 's/^/| /' conftest.$ac_ext >&5
18030
18031
18032 fi
18033
18034 rm -f core conftest.err conftest.$ac_objext \
18035       conftest$ac_exeext conftest.$ac_ext
18036 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18037
18038          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18039           # Warning - without using the other run time loading flags,
18040           # -berok will link without error, but may produce a broken library.
18041           no_undefined_flag_GCJ=' ${wl}-bernotok'
18042           allow_undefined_flag_GCJ=' ${wl}-berok'
18043           # Exported symbols can be pulled into shared objects from archives
18044           whole_archive_flag_spec_GCJ='$convenience'
18045           archive_cmds_need_lc_GCJ=yes
18046           # This is similar to how AIX traditionally builds its shared libraries.
18047           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'
18048         fi
18049       fi
18050       ;;
18051
18052     amigaos*)
18053       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)'
18054       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18055       hardcode_minus_L_GCJ=yes
18056       # see comment about different semantics on the GNU ld section
18057       ld_shlibs_GCJ=no
18058       ;;
18059
18060     bsdi[45]*)
18061       export_dynamic_flag_spec_GCJ=-rdynamic
18062       ;;
18063
18064     cygwin* | mingw* | pw32*)
18065       # When not using gcc, we currently assume that we are using
18066       # Microsoft Visual C++.
18067       # hardcode_libdir_flag_spec is actually meaningless, as there is
18068       # no search path for DLLs.
18069       hardcode_libdir_flag_spec_GCJ=' '
18070       allow_undefined_flag_GCJ=unsupported
18071       # Tell ltmain to make .lib files, not .a files.
18072       libext=lib
18073       # Tell ltmain to make .dll files, not .so files.
18074       shrext_cmds=".dll"
18075       # FIXME: Setting linknames here is a bad hack.
18076       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18077       # The linker will automatically build a .lib file if we build a DLL.
18078       old_archive_From_new_cmds_GCJ='true'
18079       # FIXME: Should let the user specify the lib program.
18080       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18081       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18082       enable_shared_with_static_runtimes_GCJ=yes
18083       ;;
18084
18085     darwin* | rhapsody*)
18086       case $host_os in
18087         rhapsody* | darwin1.[012])
18088          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18089          ;;
18090        *) # Darwin 1.3 on
18091          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18092            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18093          else
18094            case ${MACOSX_DEPLOYMENT_TARGET} in
18095              10.[012])
18096                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18097                ;;
18098              10.*)
18099                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18100                ;;
18101            esac
18102          fi
18103          ;;
18104       esac
18105       archive_cmds_need_lc_GCJ=no
18106       hardcode_direct_GCJ=no
18107       hardcode_automatic_GCJ=yes
18108       hardcode_shlibpath_var_GCJ=unsupported
18109       whole_archive_flag_spec_GCJ=''
18110       link_all_deplibs_GCJ=yes
18111     if test "$GCC" = yes ; then
18112         output_verbose_link_cmd='echo'
18113         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18114       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18115       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18116       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}'
18117       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}'
18118     else
18119       case $cc_basename in
18120         xlc*)
18121          output_verbose_link_cmd='echo'
18122          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18123          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18124           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18125          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}'
18126           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}'
18127           ;;
18128        *)
18129          ld_shlibs_GCJ=no
18130           ;;
18131       esac
18132     fi
18133       ;;
18134
18135     dgux*)
18136       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18137       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18138       hardcode_shlibpath_var_GCJ=no
18139       ;;
18140
18141     freebsd1*)
18142       ld_shlibs_GCJ=no
18143       ;;
18144
18145     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18146     # support.  Future versions do this automatically, but an explicit c++rt0.o
18147     # does not break anything, and helps significantly (at the cost of a little
18148     # extra space).
18149     freebsd2.2*)
18150       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18151       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18152       hardcode_direct_GCJ=yes
18153       hardcode_shlibpath_var_GCJ=no
18154       ;;
18155
18156     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18157     freebsd2*)
18158       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18159       hardcode_direct_GCJ=yes
18160       hardcode_minus_L_GCJ=yes
18161       hardcode_shlibpath_var_GCJ=no
18162       ;;
18163
18164     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18165     freebsd* | dragonfly*)
18166       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18167       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18168       hardcode_direct_GCJ=yes
18169       hardcode_shlibpath_var_GCJ=no
18170       ;;
18171
18172     hpux9*)
18173       if test "$GCC" = yes; then
18174         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'
18175       else
18176         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'
18177       fi
18178       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18179       hardcode_libdir_separator_GCJ=:
18180       hardcode_direct_GCJ=yes
18181
18182       # hardcode_minus_L: Not really in the search PATH,
18183       # but as the default location of the library.
18184       hardcode_minus_L_GCJ=yes
18185       export_dynamic_flag_spec_GCJ='${wl}-E'
18186       ;;
18187
18188     hpux10*)
18189       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18190         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18191       else
18192         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18193       fi
18194       if test "$with_gnu_ld" = no; then
18195         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18196         hardcode_libdir_separator_GCJ=:
18197
18198         hardcode_direct_GCJ=yes
18199         export_dynamic_flag_spec_GCJ='${wl}-E'
18200
18201         # hardcode_minus_L: Not really in the search PATH,
18202         # but as the default location of the library.
18203         hardcode_minus_L_GCJ=yes
18204       fi
18205       ;;
18206
18207     hpux11*)
18208       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18209         case $host_cpu in
18210         hppa*64*)
18211           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18212           ;;
18213         ia64*)
18214           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18215           ;;
18216         *)
18217           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18218           ;;
18219         esac
18220       else
18221         case $host_cpu in
18222         hppa*64*)
18223           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18224           ;;
18225         ia64*)
18226           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18227           ;;
18228         *)
18229           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18230           ;;
18231         esac
18232       fi
18233       if test "$with_gnu_ld" = no; then
18234         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18235         hardcode_libdir_separator_GCJ=:
18236
18237         case $host_cpu in
18238         hppa*64*|ia64*)
18239           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18240           hardcode_direct_GCJ=no
18241           hardcode_shlibpath_var_GCJ=no
18242           ;;
18243         *)
18244           hardcode_direct_GCJ=yes
18245           export_dynamic_flag_spec_GCJ='${wl}-E'
18246
18247           # hardcode_minus_L: Not really in the search PATH,
18248           # but as the default location of the library.
18249           hardcode_minus_L_GCJ=yes
18250           ;;
18251         esac
18252       fi
18253       ;;
18254
18255     irix5* | irix6* | nonstopux*)
18256       if test "$GCC" = yes; then
18257         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'
18258       else
18259         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'
18260         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18261       fi
18262       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18263       hardcode_libdir_separator_GCJ=:
18264       link_all_deplibs_GCJ=yes
18265       ;;
18266
18267     netbsd* | netbsdelf*-gnu)
18268       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18269         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18270       else
18271         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18272       fi
18273       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18274       hardcode_direct_GCJ=yes
18275       hardcode_shlibpath_var_GCJ=no
18276       ;;
18277
18278     newsos6)
18279       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18280       hardcode_direct_GCJ=yes
18281       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18282       hardcode_libdir_separator_GCJ=:
18283       hardcode_shlibpath_var_GCJ=no
18284       ;;
18285
18286     openbsd*)
18287       hardcode_direct_GCJ=yes
18288       hardcode_shlibpath_var_GCJ=no
18289       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18290         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18291         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18292         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18293         export_dynamic_flag_spec_GCJ='${wl}-E'
18294       else
18295        case $host_os in
18296          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18297            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18298            hardcode_libdir_flag_spec_GCJ='-R$libdir'
18299            ;;
18300          *)
18301            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18302            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18303            ;;
18304        esac
18305       fi
18306       ;;
18307
18308     os2*)
18309       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18310       hardcode_minus_L_GCJ=yes
18311       allow_undefined_flag_GCJ=unsupported
18312       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'
18313       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18314       ;;
18315
18316     osf3*)
18317       if test "$GCC" = yes; then
18318         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18319         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'
18320       else
18321         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18322         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'
18323       fi
18324       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18325       hardcode_libdir_separator_GCJ=:
18326       ;;
18327
18328     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18329       if test "$GCC" = yes; then
18330         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18331         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'
18332         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18333       else
18334         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18335         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'
18336         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~
18337         $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'
18338
18339         # Both c and cxx compiler support -rpath directly
18340         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18341       fi
18342       hardcode_libdir_separator_GCJ=:
18343       ;;
18344
18345     solaris*)
18346       no_undefined_flag_GCJ=' -z text'
18347       if test "$GCC" = yes; then
18348         wlarc='${wl}'
18349         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18350         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18351           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18352       else
18353         wlarc=''
18354         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18355         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18356         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18357       fi
18358       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18359       hardcode_shlibpath_var_GCJ=no
18360       case $host_os in
18361       solaris2.[0-5] | solaris2.[0-5].*) ;;
18362       *)
18363         # The compiler driver will combine linker options so we
18364         # cannot just pass the convience library names through
18365         # without $wl, iff we do not link with $LD.
18366         # Luckily, gcc supports the same syntax we need for Sun Studio.
18367         # Supported since Solaris 2.6 (maybe 2.5.1?)
18368         case $wlarc in
18369         '')
18370           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18371         *)
18372           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' ;;
18373         esac ;;
18374       esac
18375       link_all_deplibs_GCJ=yes
18376       ;;
18377
18378     sunos4*)
18379       if test "x$host_vendor" = xsequent; then
18380         # Use $CC to link under sequent, because it throws in some extra .o
18381         # files that make .init and .fini sections work.
18382         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18383       else
18384         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18385       fi
18386       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18387       hardcode_direct_GCJ=yes
18388       hardcode_minus_L_GCJ=yes
18389       hardcode_shlibpath_var_GCJ=no
18390       ;;
18391
18392     sysv4)
18393       case $host_vendor in
18394         sni)
18395           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18396           hardcode_direct_GCJ=yes # is this really true???
18397         ;;
18398         siemens)
18399           ## LD is ld it makes a PLAMLIB
18400           ## CC just makes a GrossModule.
18401           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18402           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18403           hardcode_direct_GCJ=no
18404         ;;
18405         motorola)
18406           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18407           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18408         ;;
18409       esac
18410       runpath_var='LD_RUN_PATH'
18411       hardcode_shlibpath_var_GCJ=no
18412       ;;
18413
18414     sysv4.3*)
18415       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18416       hardcode_shlibpath_var_GCJ=no
18417       export_dynamic_flag_spec_GCJ='-Bexport'
18418       ;;
18419
18420     sysv4*MP*)
18421       if test -d /usr/nec; then
18422         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18423         hardcode_shlibpath_var_GCJ=no
18424         runpath_var=LD_RUN_PATH
18425         hardcode_runpath_var=yes
18426         ld_shlibs_GCJ=yes
18427       fi
18428       ;;
18429
18430     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18431       no_undefined_flag_GCJ='${wl}-z,text'
18432       archive_cmds_need_lc_GCJ=no
18433       hardcode_shlibpath_var_GCJ=no
18434       runpath_var='LD_RUN_PATH'
18435
18436       if test "$GCC" = yes; then
18437         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18438         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18439       else
18440         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18441         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18442       fi
18443       ;;
18444
18445     sysv5* | sco3.2v5* | sco5v6*)
18446       # Note: We can NOT use -z defs as we might desire, because we do not
18447       # link with -lc, and that would cause any symbols used from libc to
18448       # always be unresolved, which means just about no library would
18449       # ever link correctly.  If we're not using GNU ld we use -z text
18450       # though, which does catch some bad symbols but isn't as heavy-handed
18451       # as -z defs.
18452       no_undefined_flag_GCJ='${wl}-z,text'
18453       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18454       archive_cmds_need_lc_GCJ=no
18455       hardcode_shlibpath_var_GCJ=no
18456       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18457       hardcode_libdir_separator_GCJ=':'
18458       link_all_deplibs_GCJ=yes
18459       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18460       runpath_var='LD_RUN_PATH'
18461
18462       if test "$GCC" = yes; then
18463         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18464         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18465       else
18466         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18467         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18468       fi
18469       ;;
18470
18471     uts4*)
18472       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18473       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18474       hardcode_shlibpath_var_GCJ=no
18475       ;;
18476
18477     *)
18478       ld_shlibs_GCJ=no
18479       ;;
18480     esac
18481   fi
18482
18483 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18484 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18485 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18486
18487 #
18488 # Do we need to explicitly link libc?
18489 #
18490 case "x$archive_cmds_need_lc_GCJ" in
18491 x|xyes)
18492   # Assume -lc should be added
18493   archive_cmds_need_lc_GCJ=yes
18494
18495   if test "$enable_shared" = yes && test "$GCC" = yes; then
18496     case $archive_cmds_GCJ in
18497     *'~'*)
18498       # FIXME: we may have to deal with multi-command sequences.
18499       ;;
18500     '$CC '*)
18501       # Test whether the compiler implicitly links with -lc since on some
18502       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18503       # to ld, don't add -lc before -lgcc.
18504       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18505 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18506       $rm conftest*
18507       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18508
18509       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18510   (eval $ac_compile) 2>&5
18511   ac_status=$?
18512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513   (exit $ac_status); } 2>conftest.err; then
18514         soname=conftest
18515         lib=conftest
18516         libobjs=conftest.$ac_objext
18517         deplibs=
18518         wl=$lt_prog_compiler_wl_GCJ
18519         pic_flag=$lt_prog_compiler_pic_GCJ
18520         compiler_flags=-v
18521         linker_flags=-v
18522         verstring=
18523         output_objdir=.
18524         libname=conftest
18525         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18526         allow_undefined_flag_GCJ=
18527         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18528   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18529   ac_status=$?
18530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531   (exit $ac_status); }
18532         then
18533           archive_cmds_need_lc_GCJ=no
18534         else
18535           archive_cmds_need_lc_GCJ=yes
18536         fi
18537         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18538       else
18539         cat conftest.err 1>&5
18540       fi
18541       $rm conftest*
18542       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18543 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18544       ;;
18545     esac
18546   fi
18547   ;;
18548 esac
18549
18550 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18551 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18552 library_names_spec=
18553 libname_spec='lib$name'
18554 soname_spec=
18555 shrext_cmds=".so"
18556 postinstall_cmds=
18557 postuninstall_cmds=
18558 finish_cmds=
18559 finish_eval=
18560 shlibpath_var=
18561 shlibpath_overrides_runpath=unknown
18562 version_type=none
18563 dynamic_linker="$host_os ld.so"
18564 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18565 if test "$GCC" = yes; then
18566   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18567   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18568     # if the path contains ";" then we assume it to be the separator
18569     # otherwise default to the standard path separator (i.e. ":") - it is
18570     # assumed that no part of a normal pathname contains ";" but that should
18571     # okay in the real world where ";" in dirpaths is itself problematic.
18572     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18573   else
18574     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18575   fi
18576 else
18577   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18578 fi
18579 need_lib_prefix=unknown
18580 hardcode_into_libs=no
18581
18582 # when you set need_version to no, make sure it does not cause -set_version
18583 # flags to be left without arguments
18584 need_version=unknown
18585
18586 case $host_os in
18587 aix3*)
18588   version_type=linux
18589   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18590   shlibpath_var=LIBPATH
18591
18592   # AIX 3 has no versioning support, so we append a major version to the name.
18593   soname_spec='${libname}${release}${shared_ext}$major'
18594   ;;
18595
18596 aix4* | aix5*)
18597   version_type=linux
18598   need_lib_prefix=no
18599   need_version=no
18600   hardcode_into_libs=yes
18601   if test "$host_cpu" = ia64; then
18602     # AIX 5 supports IA64
18603     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18604     shlibpath_var=LD_LIBRARY_PATH
18605   else
18606     # With GCC up to 2.95.x, collect2 would create an import file
18607     # for dependence libraries.  The import file would start with
18608     # the line `#! .'.  This would cause the generated library to
18609     # depend on `.', always an invalid library.  This was fixed in
18610     # development snapshots of GCC prior to 3.0.
18611     case $host_os in
18612       aix4 | aix4.[01] | aix4.[01].*)
18613       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18614            echo ' yes '
18615            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18616         :
18617       else
18618         can_build_shared=no
18619       fi
18620       ;;
18621     esac
18622     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18623     # soname into executable. Probably we can add versioning support to
18624     # collect2, so additional links can be useful in future.
18625     if test "$aix_use_runtimelinking" = yes; then
18626       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18627       # instead of lib<name>.a to let people know that these are not
18628       # typical AIX shared libraries.
18629       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18630     else
18631       # We preserve .a as extension for shared libraries through AIX4.2
18632       # and later when we are not doing run time linking.
18633       library_names_spec='${libname}${release}.a $libname.a'
18634       soname_spec='${libname}${release}${shared_ext}$major'
18635     fi
18636     shlibpath_var=LIBPATH
18637   fi
18638   ;;
18639
18640 amigaos*)
18641   library_names_spec='$libname.ixlibrary $libname.a'
18642   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18643   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'
18644   ;;
18645
18646 beos*)
18647   library_names_spec='${libname}${shared_ext}'
18648   dynamic_linker="$host_os ld.so"
18649   shlibpath_var=LIBRARY_PATH
18650   ;;
18651
18652 bsdi[45]*)
18653   version_type=linux
18654   need_version=no
18655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18656   soname_spec='${libname}${release}${shared_ext}$major'
18657   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18658   shlibpath_var=LD_LIBRARY_PATH
18659   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18660   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18661   # the default ld.so.conf also contains /usr/contrib/lib and
18662   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18663   # libtool to hard-code these into programs
18664   ;;
18665
18666 cygwin* | mingw* | pw32*)
18667   version_type=windows
18668   shrext_cmds=".dll"
18669   need_version=no
18670   need_lib_prefix=no
18671
18672   case $GCC,$host_os in
18673   yes,cygwin* | yes,mingw* | yes,pw32*)
18674     library_names_spec='$libname.dll.a'
18675     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18676     postinstall_cmds='base_file=`basename \${file}`~
18677       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18678       dldir=$destdir/`dirname \$dlpath`~
18679       test -d \$dldir || mkdir -p \$dldir~
18680       $install_prog $dir/$dlname \$dldir/$dlname~
18681       chmod a+x \$dldir/$dlname'
18682     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18683       dlpath=$dir/\$dldll~
18684        $rm \$dlpath'
18685     shlibpath_overrides_runpath=yes
18686
18687     case $host_os in
18688     cygwin*)
18689       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18690       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18691       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18692       ;;
18693     mingw*)
18694       # MinGW DLLs use traditional 'lib' prefix
18695       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18696       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18697       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18698         # It is most probably a Windows format PATH printed by
18699         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18700         # path with ; separators, and with drive letters. We can handle the
18701         # drive letters (cygwin fileutils understands them), so leave them,
18702         # especially as we might pass files found there to a mingw objdump,
18703         # which wouldn't understand a cygwinified path. Ahh.
18704         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18705       else
18706         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18707       fi
18708       ;;
18709     pw32*)
18710       # pw32 DLLs use 'pw' prefix rather than 'lib'
18711       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18712       ;;
18713     esac
18714     ;;
18715
18716   *)
18717     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18718     ;;
18719   esac
18720   dynamic_linker='Win32 ld.exe'
18721   # FIXME: first we should search . and the directory the executable is in
18722   shlibpath_var=PATH
18723   ;;
18724
18725 darwin* | rhapsody*)
18726   dynamic_linker="$host_os dyld"
18727   version_type=darwin
18728   need_lib_prefix=no
18729   need_version=no
18730   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18731   soname_spec='${libname}${release}${major}$shared_ext'
18732   shlibpath_overrides_runpath=yes
18733   shlibpath_var=DYLD_LIBRARY_PATH
18734   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18735   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18736   if test "$GCC" = yes; then
18737     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"`
18738   else
18739     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18740   fi
18741   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18742   ;;
18743
18744 dgux*)
18745   version_type=linux
18746   need_lib_prefix=no
18747   need_version=no
18748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18749   soname_spec='${libname}${release}${shared_ext}$major'
18750   shlibpath_var=LD_LIBRARY_PATH
18751   ;;
18752
18753 freebsd1*)
18754   dynamic_linker=no
18755   ;;
18756
18757 freebsd* | dragonfly*)
18758   # DragonFly does not have aout.  When/if they implement a new
18759   # versioning mechanism, adjust this.
18760   if test -x /usr/bin/objformat; then
18761     objformat=`/usr/bin/objformat`
18762   else
18763     case $host_os in
18764     freebsd[123]*) objformat=aout ;;
18765     *) objformat=elf ;;
18766     esac
18767   fi
18768   version_type=freebsd-$objformat
18769   case $version_type in
18770     freebsd-elf*)
18771       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18772       need_version=no
18773       need_lib_prefix=no
18774       ;;
18775     freebsd-*)
18776       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18777       need_version=yes
18778       ;;
18779   esac
18780   shlibpath_var=LD_LIBRARY_PATH
18781   case $host_os in
18782   freebsd2*)
18783     shlibpath_overrides_runpath=yes
18784     ;;
18785   freebsd3.[01]* | freebsdelf3.[01]*)
18786     shlibpath_overrides_runpath=yes
18787     hardcode_into_libs=yes
18788     ;;
18789   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18790   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18791     shlibpath_overrides_runpath=no
18792     hardcode_into_libs=yes
18793     ;;
18794   freebsd*) # from 4.6 on
18795     shlibpath_overrides_runpath=yes
18796     hardcode_into_libs=yes
18797     ;;
18798   esac
18799   ;;
18800
18801 gnu*)
18802   version_type=linux
18803   need_lib_prefix=no
18804   need_version=no
18805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18806   soname_spec='${libname}${release}${shared_ext}$major'
18807   shlibpath_var=LD_LIBRARY_PATH
18808   hardcode_into_libs=yes
18809   ;;
18810
18811 hpux9* | hpux10* | hpux11*)
18812   # Give a soname corresponding to the major version so that dld.sl refuses to
18813   # link against other versions.
18814   version_type=sunos
18815   need_lib_prefix=no
18816   need_version=no
18817   case $host_cpu in
18818   ia64*)
18819     shrext_cmds='.so'
18820     hardcode_into_libs=yes
18821     dynamic_linker="$host_os dld.so"
18822     shlibpath_var=LD_LIBRARY_PATH
18823     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18824     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18825     soname_spec='${libname}${release}${shared_ext}$major'
18826     if test "X$HPUX_IA64_MODE" = X32; then
18827       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18828     else
18829       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18830     fi
18831     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18832     ;;
18833    hppa*64*)
18834      shrext_cmds='.sl'
18835      hardcode_into_libs=yes
18836      dynamic_linker="$host_os dld.sl"
18837      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18838      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18839      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18840      soname_spec='${libname}${release}${shared_ext}$major'
18841      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18842      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18843      ;;
18844    *)
18845     shrext_cmds='.sl'
18846     dynamic_linker="$host_os dld.sl"
18847     shlibpath_var=SHLIB_PATH
18848     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18849     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18850     soname_spec='${libname}${release}${shared_ext}$major'
18851     ;;
18852   esac
18853   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18854   postinstall_cmds='chmod 555 $lib'
18855   ;;
18856
18857 interix3*)
18858   version_type=linux
18859   need_lib_prefix=no
18860   need_version=no
18861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18862   soname_spec='${libname}${release}${shared_ext}$major'
18863   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18864   shlibpath_var=LD_LIBRARY_PATH
18865   shlibpath_overrides_runpath=no
18866   hardcode_into_libs=yes
18867   ;;
18868
18869 irix5* | irix6* | nonstopux*)
18870   case $host_os in
18871     nonstopux*) version_type=nonstopux ;;
18872     *)
18873         if test "$lt_cv_prog_gnu_ld" = yes; then
18874                 version_type=linux
18875         else
18876                 version_type=irix
18877         fi ;;
18878   esac
18879   need_lib_prefix=no
18880   need_version=no
18881   soname_spec='${libname}${release}${shared_ext}$major'
18882   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18883   case $host_os in
18884   irix5* | nonstopux*)
18885     libsuff= shlibsuff=
18886     ;;
18887   *)
18888     case $LD in # libtool.m4 will add one of these switches to LD
18889     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18890       libsuff= shlibsuff= libmagic=32-bit;;
18891     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18892       libsuff=32 shlibsuff=N32 libmagic=N32;;
18893     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18894       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18895     *) libsuff= shlibsuff= libmagic=never-match;;
18896     esac
18897     ;;
18898   esac
18899   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18900   shlibpath_overrides_runpath=no
18901   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18902   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18903   hardcode_into_libs=yes
18904   ;;
18905
18906 # No shared lib support for Linux oldld, aout, or coff.
18907 linux*oldld* | linux*aout* | linux*coff*)
18908   dynamic_linker=no
18909   ;;
18910
18911 # This must be Linux ELF.
18912 linux* | k*bsd*-gnu)
18913   version_type=linux
18914   need_lib_prefix=no
18915   need_version=no
18916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18917   soname_spec='${libname}${release}${shared_ext}$major'
18918   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18919   shlibpath_var=LD_LIBRARY_PATH
18920   shlibpath_overrides_runpath=no
18921   # This implies no fast_install, which is unacceptable.
18922   # Some rework will be needed to allow for fast_install
18923   # before this can be enabled.
18924   hardcode_into_libs=yes
18925
18926   # Append ld.so.conf contents to the search path
18927   if test -f /etc/ld.so.conf; then
18928     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' ' '`
18929     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18930   fi
18931
18932   # We used to test for /lib/ld.so.1 and disable shared libraries on
18933   # powerpc, because MkLinux only supported shared libraries with the
18934   # GNU dynamic linker.  Since this was broken with cross compilers,
18935   # most powerpc-linux boxes support dynamic linking these days and
18936   # people can always --disable-shared, the test was removed, and we
18937   # assume the GNU/Linux dynamic linker is in use.
18938   dynamic_linker='GNU/Linux ld.so'
18939   ;;
18940
18941 netbsdelf*-gnu)
18942   version_type=linux
18943   need_lib_prefix=no
18944   need_version=no
18945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18946   soname_spec='${libname}${release}${shared_ext}$major'
18947   shlibpath_var=LD_LIBRARY_PATH
18948   shlibpath_overrides_runpath=no
18949   hardcode_into_libs=yes
18950   dynamic_linker='NetBSD ld.elf_so'
18951   ;;
18952
18953 netbsd*)
18954   version_type=sunos
18955   need_lib_prefix=no
18956   need_version=no
18957   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18958     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18959     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18960     dynamic_linker='NetBSD (a.out) ld.so'
18961   else
18962     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18963     soname_spec='${libname}${release}${shared_ext}$major'
18964     dynamic_linker='NetBSD ld.elf_so'
18965   fi
18966   shlibpath_var=LD_LIBRARY_PATH
18967   shlibpath_overrides_runpath=yes
18968   hardcode_into_libs=yes
18969   ;;
18970
18971 newsos6)
18972   version_type=linux
18973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18974   shlibpath_var=LD_LIBRARY_PATH
18975   shlibpath_overrides_runpath=yes
18976   ;;
18977
18978 nto-qnx*)
18979   version_type=linux
18980   need_lib_prefix=no
18981   need_version=no
18982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18983   soname_spec='${libname}${release}${shared_ext}$major'
18984   shlibpath_var=LD_LIBRARY_PATH
18985   shlibpath_overrides_runpath=yes
18986   ;;
18987
18988 openbsd*)
18989   version_type=sunos
18990   sys_lib_dlsearch_path_spec="/usr/lib"
18991   need_lib_prefix=no
18992   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18993   case $host_os in
18994     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18995     *)                         need_version=no  ;;
18996   esac
18997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18998   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18999   shlibpath_var=LD_LIBRARY_PATH
19000   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19001     case $host_os in
19002       openbsd2.[89] | openbsd2.[89].*)
19003         shlibpath_overrides_runpath=no
19004         ;;
19005       *)
19006         shlibpath_overrides_runpath=yes
19007         ;;
19008       esac
19009   else
19010     shlibpath_overrides_runpath=yes
19011   fi
19012   ;;
19013
19014 os2*)
19015   libname_spec='$name'
19016   shrext_cmds=".dll"
19017   need_lib_prefix=no
19018   library_names_spec='$libname${shared_ext} $libname.a'
19019   dynamic_linker='OS/2 ld.exe'
19020   shlibpath_var=LIBPATH
19021   ;;
19022
19023 osf3* | osf4* | osf5*)
19024   version_type=osf
19025   need_lib_prefix=no
19026   need_version=no
19027   soname_spec='${libname}${release}${shared_ext}$major'
19028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19029   shlibpath_var=LD_LIBRARY_PATH
19030   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19031   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19032   ;;
19033
19034 solaris*)
19035   version_type=linux
19036   need_lib_prefix=no
19037   need_version=no
19038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19039   soname_spec='${libname}${release}${shared_ext}$major'
19040   shlibpath_var=LD_LIBRARY_PATH
19041   shlibpath_overrides_runpath=yes
19042   hardcode_into_libs=yes
19043   # ldd complains unless libraries are executable
19044   postinstall_cmds='chmod +x $lib'
19045   ;;
19046
19047 sunos4*)
19048   version_type=sunos
19049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19050   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19051   shlibpath_var=LD_LIBRARY_PATH
19052   shlibpath_overrides_runpath=yes
19053   if test "$with_gnu_ld" = yes; then
19054     need_lib_prefix=no
19055   fi
19056   need_version=yes
19057   ;;
19058
19059 sysv4 | sysv4.3*)
19060   version_type=linux
19061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19062   soname_spec='${libname}${release}${shared_ext}$major'
19063   shlibpath_var=LD_LIBRARY_PATH
19064   case $host_vendor in
19065     sni)
19066       shlibpath_overrides_runpath=no
19067       need_lib_prefix=no
19068       export_dynamic_flag_spec='${wl}-Blargedynsym'
19069       runpath_var=LD_RUN_PATH
19070       ;;
19071     siemens)
19072       need_lib_prefix=no
19073       ;;
19074     motorola)
19075       need_lib_prefix=no
19076       need_version=no
19077       shlibpath_overrides_runpath=no
19078       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19079       ;;
19080   esac
19081   ;;
19082
19083 sysv4*MP*)
19084   if test -d /usr/nec ;then
19085     version_type=linux
19086     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19087     soname_spec='$libname${shared_ext}.$major'
19088     shlibpath_var=LD_LIBRARY_PATH
19089   fi
19090   ;;
19091
19092 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19093   version_type=freebsd-elf
19094   need_lib_prefix=no
19095   need_version=no
19096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19097   soname_spec='${libname}${release}${shared_ext}$major'
19098   shlibpath_var=LD_LIBRARY_PATH
19099   hardcode_into_libs=yes
19100   if test "$with_gnu_ld" = yes; then
19101     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19102     shlibpath_overrides_runpath=no
19103   else
19104     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19105     shlibpath_overrides_runpath=yes
19106     case $host_os in
19107       sco3.2v5*)
19108         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19109         ;;
19110     esac
19111   fi
19112   sys_lib_dlsearch_path_spec='/usr/lib'
19113   ;;
19114
19115 uts4*)
19116   version_type=linux
19117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19118   soname_spec='${libname}${release}${shared_ext}$major'
19119   shlibpath_var=LD_LIBRARY_PATH
19120   ;;
19121
19122 *)
19123   dynamic_linker=no
19124   ;;
19125 esac
19126 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19127 echo "${ECHO_T}$dynamic_linker" >&6; }
19128 test "$dynamic_linker" = no && can_build_shared=no
19129
19130 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19131 if test "$GCC" = yes; then
19132   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19133 fi
19134
19135 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19136 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19137 hardcode_action_GCJ=
19138 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19139    test -n "$runpath_var_GCJ" || \
19140    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19141
19142   # We can hardcode non-existant directories.
19143   if test "$hardcode_direct_GCJ" != no &&
19144      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19145      # have to relink, otherwise we might link with an installed library
19146      # when we should be linking with a yet-to-be-installed one
19147      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19148      test "$hardcode_minus_L_GCJ" != no; then
19149     # Linking always hardcodes the temporary library directory.
19150     hardcode_action_GCJ=relink
19151   else
19152     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19153     hardcode_action_GCJ=immediate
19154   fi
19155 else
19156   # We cannot hardcode anything, or else we can only hardcode existing
19157   # directories.
19158   hardcode_action_GCJ=unsupported
19159 fi
19160 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19161 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19162
19163 if test "$hardcode_action_GCJ" = relink; then
19164   # Fast installation is not supported
19165   enable_fast_install=no
19166 elif test "$shlibpath_overrides_runpath" = yes ||
19167      test "$enable_shared" = no; then
19168   # Fast installation is not necessary
19169   enable_fast_install=needless
19170 fi
19171
19172
19173 # The else clause should only fire when bootstrapping the
19174 # libtool distribution, otherwise you forgot to ship ltmain.sh
19175 # with your package, and you will get complaints that there are
19176 # no rules to generate ltmain.sh.
19177 if test -f "$ltmain"; then
19178   # See if we are running on zsh, and set the options which allow our commands through
19179   # without removal of \ escapes.
19180   if test -n "${ZSH_VERSION+set}" ; then
19181     setopt NO_GLOB_SUBST
19182   fi
19183   # Now quote all the things that may contain metacharacters while being
19184   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19185   # variables and quote the copies for generation of the libtool script.
19186   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19187     SED SHELL STRIP \
19188     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19189     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19190     deplibs_check_method reload_flag reload_cmds need_locks \
19191     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19192     lt_cv_sys_global_symbol_to_c_name_address \
19193     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19194     old_postinstall_cmds old_postuninstall_cmds \
19195     compiler_GCJ \
19196     CC_GCJ \
19197     LD_GCJ \
19198     lt_prog_compiler_wl_GCJ \
19199     lt_prog_compiler_pic_GCJ \
19200     lt_prog_compiler_static_GCJ \
19201     lt_prog_compiler_no_builtin_flag_GCJ \
19202     export_dynamic_flag_spec_GCJ \
19203     thread_safe_flag_spec_GCJ \
19204     whole_archive_flag_spec_GCJ \
19205     enable_shared_with_static_runtimes_GCJ \
19206     old_archive_cmds_GCJ \
19207     old_archive_from_new_cmds_GCJ \
19208     predep_objects_GCJ \
19209     postdep_objects_GCJ \
19210     predeps_GCJ \
19211     postdeps_GCJ \
19212     compiler_lib_search_path_GCJ \
19213     archive_cmds_GCJ \
19214     archive_expsym_cmds_GCJ \
19215     postinstall_cmds_GCJ \
19216     postuninstall_cmds_GCJ \
19217     old_archive_from_expsyms_cmds_GCJ \
19218     allow_undefined_flag_GCJ \
19219     no_undefined_flag_GCJ \
19220     export_symbols_cmds_GCJ \
19221     hardcode_libdir_flag_spec_GCJ \
19222     hardcode_libdir_flag_spec_ld_GCJ \
19223     hardcode_libdir_separator_GCJ \
19224     hardcode_automatic_GCJ \
19225     module_cmds_GCJ \
19226     module_expsym_cmds_GCJ \
19227     lt_cv_prog_compiler_c_o_GCJ \
19228     exclude_expsyms_GCJ \
19229     include_expsyms_GCJ; do
19230
19231     case $var in
19232     old_archive_cmds_GCJ | \
19233     old_archive_from_new_cmds_GCJ | \
19234     archive_cmds_GCJ | \
19235     archive_expsym_cmds_GCJ | \
19236     module_cmds_GCJ | \
19237     module_expsym_cmds_GCJ | \
19238     old_archive_from_expsyms_cmds_GCJ | \
19239     export_symbols_cmds_GCJ | \
19240     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19241     postinstall_cmds | postuninstall_cmds | \
19242     old_postinstall_cmds | old_postuninstall_cmds | \
19243     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19244       # Double-quote double-evaled strings.
19245       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19246       ;;
19247     *)
19248       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19249       ;;
19250     esac
19251   done
19252
19253   case $lt_echo in
19254   *'\$0 --fallback-echo"')
19255     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19256     ;;
19257   esac
19258
19259 cfgfile="$ofile"
19260
19261   cat <<__EOF__ >> "$cfgfile"
19262 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19263
19264 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19265
19266 # Shell to use when invoking shell scripts.
19267 SHELL=$lt_SHELL
19268
19269 # Whether or not to build shared libraries.
19270 build_libtool_libs=$enable_shared
19271
19272 # Whether or not to build static libraries.
19273 build_old_libs=$enable_static
19274
19275 # Whether or not to add -lc for building shared libraries.
19276 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19277
19278 # Whether or not to disallow shared libs when runtime libs are static
19279 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19280
19281 # Whether or not to optimize for fast installation.
19282 fast_install=$enable_fast_install
19283
19284 # The host system.
19285 host_alias=$host_alias
19286 host=$host
19287 host_os=$host_os
19288
19289 # The build system.
19290 build_alias=$build_alias
19291 build=$build
19292 build_os=$build_os
19293
19294 # An echo program that does not interpret backslashes.
19295 echo=$lt_echo
19296
19297 # The archiver.
19298 AR=$lt_AR
19299 AR_FLAGS=$lt_AR_FLAGS
19300
19301 # A C compiler.
19302 LTCC=$lt_LTCC
19303
19304 # LTCC compiler flags.
19305 LTCFLAGS=$lt_LTCFLAGS
19306
19307 # A language-specific compiler.
19308 CC=$lt_compiler_GCJ
19309
19310 # Is the compiler the GNU C compiler?
19311 with_gcc=$GCC_GCJ
19312
19313 # An ERE matcher.
19314 EGREP=$lt_EGREP
19315
19316 # The linker used to build libraries.
19317 LD=$lt_LD_GCJ
19318
19319 # Whether we need hard or soft links.
19320 LN_S=$lt_LN_S
19321
19322 # A BSD-compatible nm program.
19323 NM=$lt_NM
19324
19325 # A symbol stripping program
19326 STRIP=$lt_STRIP
19327
19328 # Used to examine libraries when file_magic_cmd begins "file"
19329 MAGIC_CMD=$MAGIC_CMD
19330
19331 # Used on cygwin: DLL creation program.
19332 DLLTOOL="$DLLTOOL"
19333
19334 # Used on cygwin: object dumper.
19335 OBJDUMP="$OBJDUMP"
19336
19337 # Used on cygwin: assembler.
19338 AS="$AS"
19339
19340 # The name of the directory that contains temporary libtool files.
19341 objdir=$objdir
19342
19343 # How to create reloadable object files.
19344 reload_flag=$lt_reload_flag
19345 reload_cmds=$lt_reload_cmds
19346
19347 # How to pass a linker flag through the compiler.
19348 wl=$lt_lt_prog_compiler_wl_GCJ
19349
19350 # Object file suffix (normally "o").
19351 objext="$ac_objext"
19352
19353 # Old archive suffix (normally "a").
19354 libext="$libext"
19355
19356 # Shared library suffix (normally ".so").
19357 shrext_cmds='$shrext_cmds'
19358
19359 # Executable file suffix (normally "").
19360 exeext="$exeext"
19361
19362 # Additional compiler flags for building library objects.
19363 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19364 pic_mode=$pic_mode
19365
19366 # What is the maximum length of a command?
19367 max_cmd_len=$lt_cv_sys_max_cmd_len
19368
19369 # Does compiler simultaneously support -c and -o options?
19370 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19371
19372 # Must we lock files when doing compilation?
19373 need_locks=$lt_need_locks
19374
19375 # Do we need the lib prefix for modules?
19376 need_lib_prefix=$need_lib_prefix
19377
19378 # Do we need a version for libraries?
19379 need_version=$need_version
19380
19381 # Whether dlopen is supported.
19382 dlopen_support=$enable_dlopen
19383
19384 # Whether dlopen of programs is supported.
19385 dlopen_self=$enable_dlopen_self
19386
19387 # Whether dlopen of statically linked programs is supported.
19388 dlopen_self_static=$enable_dlopen_self_static
19389
19390 # Compiler flag to prevent dynamic linking.
19391 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19392
19393 # Compiler flag to turn off builtin functions.
19394 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19395
19396 # Compiler flag to allow reflexive dlopens.
19397 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19398
19399 # Compiler flag to generate shared objects directly from archives.
19400 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19401
19402 # Compiler flag to generate thread-safe objects.
19403 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19404
19405 # Library versioning type.
19406 version_type=$version_type
19407
19408 # Format of library name prefix.
19409 libname_spec=$lt_libname_spec
19410
19411 # List of archive names.  First name is the real one, the rest are links.
19412 # The last name is the one that the linker finds with -lNAME.
19413 library_names_spec=$lt_library_names_spec
19414
19415 # The coded name of the library, if different from the real name.
19416 soname_spec=$lt_soname_spec
19417
19418 # Commands used to build and install an old-style archive.
19419 RANLIB=$lt_RANLIB
19420 old_archive_cmds=$lt_old_archive_cmds_GCJ
19421 old_postinstall_cmds=$lt_old_postinstall_cmds
19422 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19423
19424 # Create an old-style archive from a shared archive.
19425 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19426
19427 # Create a temporary old-style archive to link instead of a shared archive.
19428 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19429
19430 # Commands used to build and install a shared archive.
19431 archive_cmds=$lt_archive_cmds_GCJ
19432 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19433 postinstall_cmds=$lt_postinstall_cmds
19434 postuninstall_cmds=$lt_postuninstall_cmds
19435
19436 # Commands used to build a loadable module (assumed same as above if empty)
19437 module_cmds=$lt_module_cmds_GCJ
19438 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19439
19440 # Commands to strip libraries.
19441 old_striplib=$lt_old_striplib
19442 striplib=$lt_striplib
19443
19444 # Dependencies to place before the objects being linked to create a
19445 # shared library.
19446 predep_objects=$lt_predep_objects_GCJ
19447
19448 # Dependencies to place after the objects being linked to create a
19449 # shared library.
19450 postdep_objects=$lt_postdep_objects_GCJ
19451
19452 # Dependencies to place before the objects being linked to create a
19453 # shared library.
19454 predeps=$lt_predeps_GCJ
19455
19456 # Dependencies to place after the objects being linked to create a
19457 # shared library.
19458 postdeps=$lt_postdeps_GCJ
19459
19460 # The library search path used internally by the compiler when linking
19461 # a shared library.
19462 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19463
19464 # Method to check whether dependent libraries are shared objects.
19465 deplibs_check_method=$lt_deplibs_check_method
19466
19467 # Command to use when deplibs_check_method == file_magic.
19468 file_magic_cmd=$lt_file_magic_cmd
19469
19470 # Flag that allows shared libraries with undefined symbols to be built.
19471 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19472
19473 # Flag that forces no undefined symbols.
19474 no_undefined_flag=$lt_no_undefined_flag_GCJ
19475
19476 # Commands used to finish a libtool library installation in a directory.
19477 finish_cmds=$lt_finish_cmds
19478
19479 # Same as above, but a single script fragment to be evaled but not shown.
19480 finish_eval=$lt_finish_eval
19481
19482 # Take the output of nm and produce a listing of raw symbols and C names.
19483 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19484
19485 # Transform the output of nm in a proper C declaration
19486 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19487
19488 # Transform the output of nm in a C name address pair
19489 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19490
19491 # This is the shared library runtime path variable.
19492 runpath_var=$runpath_var
19493
19494 # This is the shared library path variable.
19495 shlibpath_var=$shlibpath_var
19496
19497 # Is shlibpath searched before the hard-coded library search path?
19498 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19499
19500 # How to hardcode a shared library path into an executable.
19501 hardcode_action=$hardcode_action_GCJ
19502
19503 # Whether we should hardcode library paths into libraries.
19504 hardcode_into_libs=$hardcode_into_libs
19505
19506 # Flag to hardcode \$libdir into a binary during linking.
19507 # This must work even if \$libdir does not exist.
19508 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19509
19510 # If ld is used when linking, flag to hardcode \$libdir into
19511 # a binary during linking. This must work even if \$libdir does
19512 # not exist.
19513 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19514
19515 # Whether we need a single -rpath flag with a separated argument.
19516 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19517
19518 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19519 # resulting binary.
19520 hardcode_direct=$hardcode_direct_GCJ
19521
19522 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19523 # resulting binary.
19524 hardcode_minus_L=$hardcode_minus_L_GCJ
19525
19526 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19527 # the resulting binary.
19528 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19529
19530 # Set to yes if building a shared library automatically hardcodes DIR into the library
19531 # and all subsequent libraries and executables linked against it.
19532 hardcode_automatic=$hardcode_automatic_GCJ
19533
19534 # Variables whose values should be saved in libtool wrapper scripts and
19535 # restored at relink time.
19536 variables_saved_for_relink="$variables_saved_for_relink"
19537
19538 # Whether libtool must link a program against all its dependency libraries.
19539 link_all_deplibs=$link_all_deplibs_GCJ
19540
19541 # Compile-time system search path for libraries
19542 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19543
19544 # Run-time system search path for libraries
19545 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19546
19547 # Fix the shell variable \$srcfile for the compiler.
19548 fix_srcfile_path="$fix_srcfile_path_GCJ"
19549
19550 # Set to yes if exported symbols are required.
19551 always_export_symbols=$always_export_symbols_GCJ
19552
19553 # The commands to list exported symbols.
19554 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19555
19556 # The commands to extract the exported symbol list from a shared archive.
19557 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19558
19559 # Symbols that should not be listed in the preloaded symbols.
19560 exclude_expsyms=$lt_exclude_expsyms_GCJ
19561
19562 # Symbols that must always be exported.
19563 include_expsyms=$lt_include_expsyms_GCJ
19564
19565 # ### END LIBTOOL TAG CONFIG: $tagname
19566
19567 __EOF__
19568
19569
19570 else
19571   # If there is no Makefile yet, we rely on a make rule to execute
19572   # `config.status --recheck' to rerun these tests and create the
19573   # libtool script then.
19574   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19575   if test -f "$ltmain_in"; then
19576     test -f Makefile && make "$ltmain"
19577   fi
19578 fi
19579
19580
19581 ac_ext=c
19582 ac_cpp='$CPP $CPPFLAGS'
19583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19586
19587 CC="$lt_save_CC"
19588
19589         else
19590           tagname=""
19591         fi
19592         ;;
19593
19594       RC)
19595
19596
19597 # Source file extension for RC test sources.
19598 ac_ext=rc
19599
19600 # Object file extension for compiled RC test sources.
19601 objext=o
19602 objext_RC=$objext
19603
19604 # Code to be used in simple compile tests
19605 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19606
19607 # Code to be used in simple link tests
19608 lt_simple_link_test_code="$lt_simple_compile_test_code"
19609
19610 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19611
19612 # If no C compiler was specified, use CC.
19613 LTCC=${LTCC-"$CC"}
19614
19615 # If no C compiler flags were specified, use CFLAGS.
19616 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19617
19618 # Allow CC to be a program name with arguments.
19619 compiler=$CC
19620
19621
19622 # save warnings/boilerplate of simple test code
19623 ac_outfile=conftest.$ac_objext
19624 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19625 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19626 _lt_compiler_boilerplate=`cat conftest.err`
19627 $rm conftest*
19628
19629 ac_outfile=conftest.$ac_objext
19630 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19631 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19632 _lt_linker_boilerplate=`cat conftest.err`
19633 $rm conftest*
19634
19635
19636 # Allow CC to be a program name with arguments.
19637 lt_save_CC="$CC"
19638 CC=${RC-"windres"}
19639 compiler=$CC
19640 compiler_RC=$CC
19641 for cc_temp in $compiler""; do
19642   case $cc_temp in
19643     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19644     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19645     \-*) ;;
19646     *) break;;
19647   esac
19648 done
19649 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19650
19651 lt_cv_prog_compiler_c_o_RC=yes
19652
19653 # The else clause should only fire when bootstrapping the
19654 # libtool distribution, otherwise you forgot to ship ltmain.sh
19655 # with your package, and you will get complaints that there are
19656 # no rules to generate ltmain.sh.
19657 if test -f "$ltmain"; then
19658   # See if we are running on zsh, and set the options which allow our commands through
19659   # without removal of \ escapes.
19660   if test -n "${ZSH_VERSION+set}" ; then
19661     setopt NO_GLOB_SUBST
19662   fi
19663   # Now quote all the things that may contain metacharacters while being
19664   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19665   # variables and quote the copies for generation of the libtool script.
19666   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19667     SED SHELL STRIP \
19668     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19669     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19670     deplibs_check_method reload_flag reload_cmds need_locks \
19671     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19672     lt_cv_sys_global_symbol_to_c_name_address \
19673     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19674     old_postinstall_cmds old_postuninstall_cmds \
19675     compiler_RC \
19676     CC_RC \
19677     LD_RC \
19678     lt_prog_compiler_wl_RC \
19679     lt_prog_compiler_pic_RC \
19680     lt_prog_compiler_static_RC \
19681     lt_prog_compiler_no_builtin_flag_RC \
19682     export_dynamic_flag_spec_RC \
19683     thread_safe_flag_spec_RC \
19684     whole_archive_flag_spec_RC \
19685     enable_shared_with_static_runtimes_RC \
19686     old_archive_cmds_RC \
19687     old_archive_from_new_cmds_RC \
19688     predep_objects_RC \
19689     postdep_objects_RC \
19690     predeps_RC \
19691     postdeps_RC \
19692     compiler_lib_search_path_RC \
19693     archive_cmds_RC \
19694     archive_expsym_cmds_RC \
19695     postinstall_cmds_RC \
19696     postuninstall_cmds_RC \
19697     old_archive_from_expsyms_cmds_RC \
19698     allow_undefined_flag_RC \
19699     no_undefined_flag_RC \
19700     export_symbols_cmds_RC \
19701     hardcode_libdir_flag_spec_RC \
19702     hardcode_libdir_flag_spec_ld_RC \
19703     hardcode_libdir_separator_RC \
19704     hardcode_automatic_RC \
19705     module_cmds_RC \
19706     module_expsym_cmds_RC \
19707     lt_cv_prog_compiler_c_o_RC \
19708     exclude_expsyms_RC \
19709     include_expsyms_RC; do
19710
19711     case $var in
19712     old_archive_cmds_RC | \
19713     old_archive_from_new_cmds_RC | \
19714     archive_cmds_RC | \
19715     archive_expsym_cmds_RC | \
19716     module_cmds_RC | \
19717     module_expsym_cmds_RC | \
19718     old_archive_from_expsyms_cmds_RC | \
19719     export_symbols_cmds_RC | \
19720     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19721     postinstall_cmds | postuninstall_cmds | \
19722     old_postinstall_cmds | old_postuninstall_cmds | \
19723     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19724       # Double-quote double-evaled strings.
19725       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19726       ;;
19727     *)
19728       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19729       ;;
19730     esac
19731   done
19732
19733   case $lt_echo in
19734   *'\$0 --fallback-echo"')
19735     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19736     ;;
19737   esac
19738
19739 cfgfile="$ofile"
19740
19741   cat <<__EOF__ >> "$cfgfile"
19742 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19743
19744 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19745
19746 # Shell to use when invoking shell scripts.
19747 SHELL=$lt_SHELL
19748
19749 # Whether or not to build shared libraries.
19750 build_libtool_libs=$enable_shared
19751
19752 # Whether or not to build static libraries.
19753 build_old_libs=$enable_static
19754
19755 # Whether or not to add -lc for building shared libraries.
19756 build_libtool_need_lc=$archive_cmds_need_lc_RC
19757
19758 # Whether or not to disallow shared libs when runtime libs are static
19759 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19760
19761 # Whether or not to optimize for fast installation.
19762 fast_install=$enable_fast_install
19763
19764 # The host system.
19765 host_alias=$host_alias
19766 host=$host
19767 host_os=$host_os
19768
19769 # The build system.
19770 build_alias=$build_alias
19771 build=$build
19772 build_os=$build_os
19773
19774 # An echo program that does not interpret backslashes.
19775 echo=$lt_echo
19776
19777 # The archiver.
19778 AR=$lt_AR
19779 AR_FLAGS=$lt_AR_FLAGS
19780
19781 # A C compiler.
19782 LTCC=$lt_LTCC
19783
19784 # LTCC compiler flags.
19785 LTCFLAGS=$lt_LTCFLAGS
19786
19787 # A language-specific compiler.
19788 CC=$lt_compiler_RC
19789
19790 # Is the compiler the GNU C compiler?
19791 with_gcc=$GCC_RC
19792
19793 # An ERE matcher.
19794 EGREP=$lt_EGREP
19795
19796 # The linker used to build libraries.
19797 LD=$lt_LD_RC
19798
19799 # Whether we need hard or soft links.
19800 LN_S=$lt_LN_S
19801
19802 # A BSD-compatible nm program.
19803 NM=$lt_NM
19804
19805 # A symbol stripping program
19806 STRIP=$lt_STRIP
19807
19808 # Used to examine libraries when file_magic_cmd begins "file"
19809 MAGIC_CMD=$MAGIC_CMD
19810
19811 # Used on cygwin: DLL creation program.
19812 DLLTOOL="$DLLTOOL"
19813
19814 # Used on cygwin: object dumper.
19815 OBJDUMP="$OBJDUMP"
19816
19817 # Used on cygwin: assembler.
19818 AS="$AS"
19819
19820 # The name of the directory that contains temporary libtool files.
19821 objdir=$objdir
19822
19823 # How to create reloadable object files.
19824 reload_flag=$lt_reload_flag
19825 reload_cmds=$lt_reload_cmds
19826
19827 # How to pass a linker flag through the compiler.
19828 wl=$lt_lt_prog_compiler_wl_RC
19829
19830 # Object file suffix (normally "o").
19831 objext="$ac_objext"
19832
19833 # Old archive suffix (normally "a").
19834 libext="$libext"
19835
19836 # Shared library suffix (normally ".so").
19837 shrext_cmds='$shrext_cmds'
19838
19839 # Executable file suffix (normally "").
19840 exeext="$exeext"
19841
19842 # Additional compiler flags for building library objects.
19843 pic_flag=$lt_lt_prog_compiler_pic_RC
19844 pic_mode=$pic_mode
19845
19846 # What is the maximum length of a command?
19847 max_cmd_len=$lt_cv_sys_max_cmd_len
19848
19849 # Does compiler simultaneously support -c and -o options?
19850 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19851
19852 # Must we lock files when doing compilation?
19853 need_locks=$lt_need_locks
19854
19855 # Do we need the lib prefix for modules?
19856 need_lib_prefix=$need_lib_prefix
19857
19858 # Do we need a version for libraries?
19859 need_version=$need_version
19860
19861 # Whether dlopen is supported.
19862 dlopen_support=$enable_dlopen
19863
19864 # Whether dlopen of programs is supported.
19865 dlopen_self=$enable_dlopen_self
19866
19867 # Whether dlopen of statically linked programs is supported.
19868 dlopen_self_static=$enable_dlopen_self_static
19869
19870 # Compiler flag to prevent dynamic linking.
19871 link_static_flag=$lt_lt_prog_compiler_static_RC
19872
19873 # Compiler flag to turn off builtin functions.
19874 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19875
19876 # Compiler flag to allow reflexive dlopens.
19877 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19878
19879 # Compiler flag to generate shared objects directly from archives.
19880 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19881
19882 # Compiler flag to generate thread-safe objects.
19883 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19884
19885 # Library versioning type.
19886 version_type=$version_type
19887
19888 # Format of library name prefix.
19889 libname_spec=$lt_libname_spec
19890
19891 # List of archive names.  First name is the real one, the rest are links.
19892 # The last name is the one that the linker finds with -lNAME.
19893 library_names_spec=$lt_library_names_spec
19894
19895 # The coded name of the library, if different from the real name.
19896 soname_spec=$lt_soname_spec
19897
19898 # Commands used to build and install an old-style archive.
19899 RANLIB=$lt_RANLIB
19900 old_archive_cmds=$lt_old_archive_cmds_RC
19901 old_postinstall_cmds=$lt_old_postinstall_cmds
19902 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19903
19904 # Create an old-style archive from a shared archive.
19905 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19906
19907 # Create a temporary old-style archive to link instead of a shared archive.
19908 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19909
19910 # Commands used to build and install a shared archive.
19911 archive_cmds=$lt_archive_cmds_RC
19912 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19913 postinstall_cmds=$lt_postinstall_cmds
19914 postuninstall_cmds=$lt_postuninstall_cmds
19915
19916 # Commands used to build a loadable module (assumed same as above if empty)
19917 module_cmds=$lt_module_cmds_RC
19918 module_expsym_cmds=$lt_module_expsym_cmds_RC
19919
19920 # Commands to strip libraries.
19921 old_striplib=$lt_old_striplib
19922 striplib=$lt_striplib
19923
19924 # Dependencies to place before the objects being linked to create a
19925 # shared library.
19926 predep_objects=$lt_predep_objects_RC
19927
19928 # Dependencies to place after the objects being linked to create a
19929 # shared library.
19930 postdep_objects=$lt_postdep_objects_RC
19931
19932 # Dependencies to place before the objects being linked to create a
19933 # shared library.
19934 predeps=$lt_predeps_RC
19935
19936 # Dependencies to place after the objects being linked to create a
19937 # shared library.
19938 postdeps=$lt_postdeps_RC
19939
19940 # The library search path used internally by the compiler when linking
19941 # a shared library.
19942 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19943
19944 # Method to check whether dependent libraries are shared objects.
19945 deplibs_check_method=$lt_deplibs_check_method
19946
19947 # Command to use when deplibs_check_method == file_magic.
19948 file_magic_cmd=$lt_file_magic_cmd
19949
19950 # Flag that allows shared libraries with undefined symbols to be built.
19951 allow_undefined_flag=$lt_allow_undefined_flag_RC
19952
19953 # Flag that forces no undefined symbols.
19954 no_undefined_flag=$lt_no_undefined_flag_RC
19955
19956 # Commands used to finish a libtool library installation in a directory.
19957 finish_cmds=$lt_finish_cmds
19958
19959 # Same as above, but a single script fragment to be evaled but not shown.
19960 finish_eval=$lt_finish_eval
19961
19962 # Take the output of nm and produce a listing of raw symbols and C names.
19963 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19964
19965 # Transform the output of nm in a proper C declaration
19966 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19967
19968 # Transform the output of nm in a C name address pair
19969 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19970
19971 # This is the shared library runtime path variable.
19972 runpath_var=$runpath_var
19973
19974 # This is the shared library path variable.
19975 shlibpath_var=$shlibpath_var
19976
19977 # Is shlibpath searched before the hard-coded library search path?
19978 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19979
19980 # How to hardcode a shared library path into an executable.
19981 hardcode_action=$hardcode_action_RC
19982
19983 # Whether we should hardcode library paths into libraries.
19984 hardcode_into_libs=$hardcode_into_libs
19985
19986 # Flag to hardcode \$libdir into a binary during linking.
19987 # This must work even if \$libdir does not exist.
19988 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19989
19990 # If ld is used when linking, flag to hardcode \$libdir into
19991 # a binary during linking. This must work even if \$libdir does
19992 # not exist.
19993 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19994
19995 # Whether we need a single -rpath flag with a separated argument.
19996 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19997
19998 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19999 # resulting binary.
20000 hardcode_direct=$hardcode_direct_RC
20001
20002 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20003 # resulting binary.
20004 hardcode_minus_L=$hardcode_minus_L_RC
20005
20006 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20007 # the resulting binary.
20008 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20009
20010 # Set to yes if building a shared library automatically hardcodes DIR into the library
20011 # and all subsequent libraries and executables linked against it.
20012 hardcode_automatic=$hardcode_automatic_RC
20013
20014 # Variables whose values should be saved in libtool wrapper scripts and
20015 # restored at relink time.
20016 variables_saved_for_relink="$variables_saved_for_relink"
20017
20018 # Whether libtool must link a program against all its dependency libraries.
20019 link_all_deplibs=$link_all_deplibs_RC
20020
20021 # Compile-time system search path for libraries
20022 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20023
20024 # Run-time system search path for libraries
20025 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20026
20027 # Fix the shell variable \$srcfile for the compiler.
20028 fix_srcfile_path="$fix_srcfile_path_RC"
20029
20030 # Set to yes if exported symbols are required.
20031 always_export_symbols=$always_export_symbols_RC
20032
20033 # The commands to list exported symbols.
20034 export_symbols_cmds=$lt_export_symbols_cmds_RC
20035
20036 # The commands to extract the exported symbol list from a shared archive.
20037 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20038
20039 # Symbols that should not be listed in the preloaded symbols.
20040 exclude_expsyms=$lt_exclude_expsyms_RC
20041
20042 # Symbols that must always be exported.
20043 include_expsyms=$lt_include_expsyms_RC
20044
20045 # ### END LIBTOOL TAG CONFIG: $tagname
20046
20047 __EOF__
20048
20049
20050 else
20051   # If there is no Makefile yet, we rely on a make rule to execute
20052   # `config.status --recheck' to rerun these tests and create the
20053   # libtool script then.
20054   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20055   if test -f "$ltmain_in"; then
20056     test -f Makefile && make "$ltmain"
20057   fi
20058 fi
20059
20060
20061 ac_ext=c
20062 ac_cpp='$CPP $CPPFLAGS'
20063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20066
20067 CC="$lt_save_CC"
20068
20069         ;;
20070
20071       *)
20072         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20073 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20074    { (exit 1); exit 1; }; }
20075         ;;
20076       esac
20077
20078       # Append the new tag name to the list of available tags.
20079       if test -n "$tagname" ; then
20080       available_tags="$available_tags $tagname"
20081     fi
20082     fi
20083   done
20084   IFS="$lt_save_ifs"
20085
20086   # Now substitute the updated list of available tags.
20087   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20088     mv "${ofile}T" "$ofile"
20089     chmod +x "$ofile"
20090   else
20091     rm -f "${ofile}T"
20092     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20093 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20094    { (exit 1); exit 1; }; }
20095   fi
20096 fi
20097
20098
20099
20100 # This can be used to rebuild libtool when needed
20101 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20102
20103 # Always use our own libtool.
20104 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20105
20106 # Prevent multiple expansion
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121
20122
20123
20124
20125
20126
20127 # AC_SUBST(LD)
20128 # AC_SUBST(CXXLD)
20129
20130 ######################################################################
20131 # the following interpret 'with' and 'enable' switches.
20132 # some of these switches trigger checks that can be found further
20133 # below in this configure script
20134
20135 # does the user want aggressive optimization?
20136 # Check whether --enable-debug was given.
20137 if test "${enable_debug+set}" = set; then
20138   enableval=$enable_debug; debug=$enableval
20139 else
20140   debug=no
20141 fi
20142
20143
20144 # does the user want to build demo applications?
20145 # Check whether --enable-apps was given.
20146 if test "${enable_apps+set}" = set; then
20147   enableval=$enable_apps; enable_apps=$enableval
20148 else
20149   enable_apps="yes"
20150 fi
20151
20152
20153
20154 if test x"$enable_apps" = x"yes"; then
20155   BUILD_APPS_TRUE=
20156   BUILD_APPS_FALSE='#'
20157 else
20158   BUILD_APPS_TRUE='#'
20159   BUILD_APPS_FALSE=
20160 fi
20161
20162
20163
20164 # the following checks reflect the dependencies of OpenCV on other
20165 # libraries that do the actual work for video I/O or windowing
20166 # subsystem. On some platforms there are ambiguities that a user
20167 # can influence. There is also additional logic to be found in code
20168 # later code lines that tries to do sensible decisions on what to use
20169
20170 # does the user want to compile python modules as well?
20171
20172 # Check whether --with-swig was given.
20173 if test "${with_swig+set}" = set; then
20174   withval=$with_swig; with_swig=$withval
20175 else
20176   with_swig=no
20177 fi
20178
20179
20180 # does the user want to compile python modules as well?
20181
20182 # Check whether --with-python was given.
20183 if test "${with_python+set}" = set; then
20184   withval=$with_python; with_python=$withval
20185 else
20186   with_python=yes
20187 fi
20188
20189
20190 # does the user want OpenCV to use xine video libraries?
20191
20192 # Check whether --with-xine was given.
20193 if test "${with_xine+set}" = set; then
20194   withval=$with_xine; with_xine=$withval
20195 else
20196   with_xine=no
20197 fi
20198
20199
20200 # does the user want OpenCV to use ffmpeg video libraries?
20201
20202 # Check whether --with-ffmpeg was given.
20203 if test "${with_ffmpeg+set}" = set; then
20204   withval=$with_ffmpeg; with_ffmpeg=$withval
20205 else
20206   with_ffmpeg=auto
20207 fi
20208
20209
20210 # does the user want OpenCV to use libraw1394/libdc1394 for video input?
20211
20212 # Check whether --with-1394libs was given.
20213 if test "${with_1394libs+set}" = set; then
20214   withval=$with_1394libs; with_1394libs=$withval
20215 else
20216   with_1394libs=auto
20217 fi
20218
20219
20220 # does the user want OpenCV to use the video4linux kernel module?
20221
20222 # Check whether --with-v4l was given.
20223 if test "${with_v4l+set}" = set; then
20224   withval=$with_v4l; with_v4l=$withval
20225 else
20226   with_v4l=auto
20227 fi
20228
20229
20230 # does the user want OpenCV to use image libraries from OS X 10.4?
20231
20232 # Check whether --with-imageio was given.
20233 if test "${with_imageio+set}" = set; then
20234   withval=$with_imageio; with_imageio=$withval
20235 else
20236   with_imageio=yes
20237 fi
20238
20239
20240 # does the user want OpenCV to use QuickTime video libraries?
20241
20242 # Check whether --with-quicktime was given.
20243 if test "${with_quicktime+set}" = set; then
20244   withval=$with_quicktime; with_quicktime=$withval
20245 else
20246   with_quicktime=yes
20247 fi
20248
20249
20250 # does the user want OpenCV to use the Carbon GUI of Mac OS X?
20251
20252 # Check whether --with-carbon was given.
20253 if test "${with_carbon+set}" = set; then
20254   withval=$with_carbon; with_carbon=$withval
20255 else
20256   with_carbon=yes
20257 fi
20258
20259
20260 # does the user want OpenCV to use GTK+ 2.0 for the GUI?
20261
20262 # Check whether --with-gtk was given.
20263 if test "${with_gtk+set}" = set; then
20264   withval=$with_gtk; with_gtk=$withval
20265 else
20266   with_gtk=auto
20267 fi
20268
20269
20270 # does the user want OpenCV to use gthread for GTK+ threaded HighGUI?
20271
20272 # Check whether --with-gthread was given.
20273 if test "${with_gthread+set}" = set; then
20274   withval=$with_gthread; with_gthread=$withval
20275 else
20276   with_gthread=auto
20277 fi
20278
20279
20280
20281 ######################################################################
20282 # getting the code to compile
20283
20284 # cure annoying default arguments for CFLAGS and CXXFLAGS
20285 # that autoconf automatically sets in GNU environments if
20286 # no CFLAGS or CXXFLAGS were manually given
20287 if test x"$CFLAGS" = "x-g -O2" ; then
20288     CFLAGS=""
20289 fi
20290 if test x"$CXXFLAGS" = "x-g -O2" ; then
20291     CXXFLAGS=""
20292 fi
20293
20294
20295 # see if the user wants aggressive optimizations of the code,
20296 # check whether to include debugging code
20297 { echo "$as_me:$LINENO: checking whether to build debug version (no optimization)" >&5
20298 echo $ECHO_N "checking whether to build debug version (no optimization)... $ECHO_C" >&6; }
20299 if test x"$debug" = "xyes"; then
20300     { echo "$as_me:$LINENO: result: yes" >&5
20301 echo "${ECHO_T}yes" >&6; }
20302     if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
20303         CPPFLAGS="-DDEBUG -D_DEBUG $CPPFLAGS"
20304         CXXFLAGS="-ggdb -O0 $CXXFLAGS"
20305     fi
20306 else
20307     { echo "$as_me:$LINENO: result: no" >&5
20308 echo "${ECHO_T}no" >&6; }
20309     { echo "$as_me:$LINENO: TARGET=$target " >&5
20310 echo "$as_me: TARGET=$target " >&6;}
20311     case $target in
20312     i*86-apple-*)
20313         if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
20314             # apples g++ fails with '-march=i686' and there are no apple machines older than prescott/core anyway
20315             CXXFLAGS="-g -march=prescott -ffast-math -fomit-frame-pointer $CXXFLAGS"
20316         fi
20317         ;;
20318     i686-*-*)
20319         if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
20320           # default to i686/pentiumpro -- people can override this
20321           CXXFLAGS="-g -march=i686 -ffast-math -fomit-frame-pointer $CXXFLAGS"
20322         fi
20323         ;;
20324     powerpc-*-*)
20325         if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
20326             # default to G3 processors -- people can override this
20327             CXXFLAGS="-g -mcpu=G3 -mtune=G5 -fomit-frame-pointer $CXXFLAGS"
20328         fi
20329         ;;
20330     *-*-*)
20331         if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
20332             CXXFLAGS="-fomit-frame-pointer $CXXFLAGS"
20333         fi
20334         ;;
20335     esac
20336
20337     CPPFLAGS="-DNDEBUG $CPPFLAGS"
20338     CXXFLAGS="-O3 $CXXFLAGS"
20339 fi
20340
20341 if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
20342     PY_CXXFLAGS="-Wall -pipe $CXXFLAGS"
20343     CXXFLAGS="-Wall -fno-rtti -pipe $CXXFLAGS"
20344 else
20345     PY_CXXFLAGS="$CXXFLAGS"
20346 fi
20347
20348
20349 # add libm because it is used by several libraries and OpenCV itself
20350
20351 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
20352 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
20353 if test "${ac_cv_lib_m_pow+set}" = set; then
20354   echo $ECHO_N "(cached) $ECHO_C" >&6
20355 else
20356   ac_check_lib_save_LIBS=$LIBS
20357 LIBS="-lm  $LIBS"
20358 cat >conftest.$ac_ext <<_ACEOF
20359 /* confdefs.h.  */
20360 _ACEOF
20361 cat confdefs.h >>conftest.$ac_ext
20362 cat >>conftest.$ac_ext <<_ACEOF
20363 /* end confdefs.h.  */
20364
20365 /* Override any GCC internal prototype to avoid an error.
20366    Use char because int might match the return type of a GCC
20367    builtin and then its argument prototype would still apply.  */
20368 #ifdef __cplusplus
20369 extern "C"
20370 #endif
20371 char pow ();
20372 int
20373 main ()
20374 {
20375 return pow ();
20376   ;
20377   return 0;
20378 }
20379 _ACEOF
20380 rm -f conftest.$ac_objext conftest$ac_exeext
20381 if { (ac_try="$ac_link"
20382 case "(($ac_try" in
20383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20384   *) ac_try_echo=$ac_try;;
20385 esac
20386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20387   (eval "$ac_link") 2>conftest.er1
20388   ac_status=$?
20389   grep -v '^ *+' conftest.er1 >conftest.err
20390   rm -f conftest.er1
20391   cat conftest.err >&5
20392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393   (exit $ac_status); } &&
20394          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20395   { (case "(($ac_try" in
20396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20397   *) ac_try_echo=$ac_try;;
20398 esac
20399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20400   (eval "$ac_try") 2>&5
20401   ac_status=$?
20402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403   (exit $ac_status); }; } &&
20404          { ac_try='test -s conftest$ac_exeext'
20405   { (case "(($ac_try" in
20406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20407   *) ac_try_echo=$ac_try;;
20408 esac
20409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20410   (eval "$ac_try") 2>&5
20411   ac_status=$?
20412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413   (exit $ac_status); }; }; then
20414   ac_cv_lib_m_pow=yes
20415 else
20416   echo "$as_me: failed program was:" >&5
20417 sed 's/^/| /' conftest.$ac_ext >&5
20418
20419         ac_cv_lib_m_pow=no
20420 fi
20421
20422 rm -f core conftest.err conftest.$ac_objext \
20423       conftest$ac_exeext conftest.$ac_ext
20424 LIBS=$ac_check_lib_save_LIBS
20425 fi
20426 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
20427 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
20428 if test $ac_cv_lib_m_pow = yes; then
20429   cat >>confdefs.h <<_ACEOF
20430 #define HAVE_LIBM 1
20431 _ACEOF
20432
20433   LIBS="-lm $LIBS"
20434
20435 fi
20436
20437
20438 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20439 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
20440 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20441   echo $ECHO_N "(cached) $ECHO_C" >&6
20442 else
20443   ac_check_lib_save_LIBS=$LIBS
20444 LIBS="-ldl  $LIBS"
20445 cat >conftest.$ac_ext <<_ACEOF
20446 /* confdefs.h.  */
20447 _ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h.  */
20451
20452 /* Override any GCC internal prototype to avoid an error.
20453    Use char because int might match the return type of a GCC
20454    builtin and then its argument prototype would still apply.  */
20455 #ifdef __cplusplus
20456 extern "C"
20457 #endif
20458 char dlopen ();
20459 int
20460 main ()
20461 {
20462 return dlopen ();
20463   ;
20464   return 0;
20465 }
20466 _ACEOF
20467 rm -f conftest.$ac_objext conftest$ac_exeext
20468 if { (ac_try="$ac_link"
20469 case "(($ac_try" in
20470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20471   *) ac_try_echo=$ac_try;;
20472 esac
20473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20474   (eval "$ac_link") 2>conftest.er1
20475   ac_status=$?
20476   grep -v '^ *+' conftest.er1 >conftest.err
20477   rm -f conftest.er1
20478   cat conftest.err >&5
20479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480   (exit $ac_status); } &&
20481          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20482   { (case "(($ac_try" in
20483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20484   *) ac_try_echo=$ac_try;;
20485 esac
20486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20487   (eval "$ac_try") 2>&5
20488   ac_status=$?
20489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490   (exit $ac_status); }; } &&
20491          { ac_try='test -s conftest$ac_exeext'
20492   { (case "(($ac_try" in
20493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494   *) ac_try_echo=$ac_try;;
20495 esac
20496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20497   (eval "$ac_try") 2>&5
20498   ac_status=$?
20499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500   (exit $ac_status); }; }; then
20501   ac_cv_lib_dl_dlopen=yes
20502 else
20503   echo "$as_me: failed program was:" >&5
20504 sed 's/^/| /' conftest.$ac_ext >&5
20505
20506         ac_cv_lib_dl_dlopen=no
20507 fi
20508
20509 rm -f core conftest.err conftest.$ac_objext \
20510       conftest$ac_exeext conftest.$ac_ext
20511 LIBS=$ac_check_lib_save_LIBS
20512 fi
20513 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20514 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
20515 if test $ac_cv_lib_dl_dlopen = yes; then
20516   cat >>confdefs.h <<_ACEOF
20517 #define HAVE_LIBDL 1
20518 _ACEOF
20519
20520   LIBS="-ldl $LIBS"
20521
20522 fi
20523
20524
20525 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20526 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20527 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20528   echo $ECHO_N "(cached) $ECHO_C" >&6
20529 else
20530   ac_check_lib_save_LIBS=$LIBS
20531 LIBS="-lpthread  $LIBS"
20532 cat >conftest.$ac_ext <<_ACEOF
20533 /* confdefs.h.  */
20534 _ACEOF
20535 cat confdefs.h >>conftest.$ac_ext
20536 cat >>conftest.$ac_ext <<_ACEOF
20537 /* end confdefs.h.  */
20538
20539 /* Override any GCC internal prototype to avoid an error.
20540    Use char because int might match the return type of a GCC
20541    builtin and then its argument prototype would still apply.  */
20542 #ifdef __cplusplus
20543 extern "C"
20544 #endif
20545 char pthread_create ();
20546 int
20547 main ()
20548 {
20549 return pthread_create ();
20550   ;
20551   return 0;
20552 }
20553 _ACEOF
20554 rm -f conftest.$ac_objext conftest$ac_exeext
20555 if { (ac_try="$ac_link"
20556 case "(($ac_try" in
20557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20558   *) ac_try_echo=$ac_try;;
20559 esac
20560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20561   (eval "$ac_link") 2>conftest.er1
20562   ac_status=$?
20563   grep -v '^ *+' conftest.er1 >conftest.err
20564   rm -f conftest.er1
20565   cat conftest.err >&5
20566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567   (exit $ac_status); } &&
20568          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20569   { (case "(($ac_try" in
20570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571   *) ac_try_echo=$ac_try;;
20572 esac
20573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20574   (eval "$ac_try") 2>&5
20575   ac_status=$?
20576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577   (exit $ac_status); }; } &&
20578          { ac_try='test -s conftest$ac_exeext'
20579   { (case "(($ac_try" in
20580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20581   *) ac_try_echo=$ac_try;;
20582 esac
20583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20584   (eval "$ac_try") 2>&5
20585   ac_status=$?
20586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587   (exit $ac_status); }; }; then
20588   ac_cv_lib_pthread_pthread_create=yes
20589 else
20590   echo "$as_me: failed program was:" >&5
20591 sed 's/^/| /' conftest.$ac_ext >&5
20592
20593         ac_cv_lib_pthread_pthread_create=no
20594 fi
20595
20596 rm -f core conftest.err conftest.$ac_objext \
20597       conftest$ac_exeext conftest.$ac_ext
20598 LIBS=$ac_check_lib_save_LIBS
20599 fi
20600 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20601 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20602 if test $ac_cv_lib_pthread_pthread_create = yes; then
20603   cat >>confdefs.h <<_ACEOF
20604 #define HAVE_LIBPTHREAD 1
20605 _ACEOF
20606
20607   LIBS="-lpthread $LIBS"
20608
20609 fi
20610
20611
20612 # check endianness
20613 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20614 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
20615 if test "${ac_cv_c_bigendian+set}" = set; then
20616   echo $ECHO_N "(cached) $ECHO_C" >&6
20617 else
20618   # See if sys/param.h defines the BYTE_ORDER macro.
20619 cat >conftest.$ac_ext <<_ACEOF
20620 /* confdefs.h.  */
20621 _ACEOF
20622 cat confdefs.h >>conftest.$ac_ext
20623 cat >>conftest.$ac_ext <<_ACEOF
20624 /* end confdefs.h.  */
20625 #include <sys/types.h>
20626 #include <sys/param.h>
20627
20628 int
20629 main ()
20630 {
20631 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20632  bogus endian macros
20633 #endif
20634
20635   ;
20636   return 0;
20637 }
20638 _ACEOF
20639 rm -f conftest.$ac_objext
20640 if { (ac_try="$ac_compile"
20641 case "(($ac_try" in
20642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20643   *) ac_try_echo=$ac_try;;
20644 esac
20645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20646   (eval "$ac_compile") 2>conftest.er1
20647   ac_status=$?
20648   grep -v '^ *+' conftest.er1 >conftest.err
20649   rm -f conftest.er1
20650   cat conftest.err >&5
20651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652   (exit $ac_status); } &&
20653          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20654   { (case "(($ac_try" in
20655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20656   *) ac_try_echo=$ac_try;;
20657 esac
20658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20659   (eval "$ac_try") 2>&5
20660   ac_status=$?
20661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662   (exit $ac_status); }; } &&
20663          { ac_try='test -s conftest.$ac_objext'
20664   { (case "(($ac_try" in
20665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20666   *) ac_try_echo=$ac_try;;
20667 esac
20668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20669   (eval "$ac_try") 2>&5
20670   ac_status=$?
20671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672   (exit $ac_status); }; }; then
20673   # It does; now see whether it defined to BIG_ENDIAN or not.
20674 cat >conftest.$ac_ext <<_ACEOF
20675 /* confdefs.h.  */
20676 _ACEOF
20677 cat confdefs.h >>conftest.$ac_ext
20678 cat >>conftest.$ac_ext <<_ACEOF
20679 /* end confdefs.h.  */
20680 #include <sys/types.h>
20681 #include <sys/param.h>
20682
20683 int
20684 main ()
20685 {
20686 #if BYTE_ORDER != BIG_ENDIAN
20687  not big endian
20688 #endif
20689
20690   ;
20691   return 0;
20692 }
20693 _ACEOF
20694 rm -f conftest.$ac_objext
20695 if { (ac_try="$ac_compile"
20696 case "(($ac_try" in
20697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20698   *) ac_try_echo=$ac_try;;
20699 esac
20700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20701   (eval "$ac_compile") 2>conftest.er1
20702   ac_status=$?
20703   grep -v '^ *+' conftest.er1 >conftest.err
20704   rm -f conftest.er1
20705   cat conftest.err >&5
20706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707   (exit $ac_status); } &&
20708          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20709   { (case "(($ac_try" in
20710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20711   *) ac_try_echo=$ac_try;;
20712 esac
20713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20714   (eval "$ac_try") 2>&5
20715   ac_status=$?
20716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717   (exit $ac_status); }; } &&
20718          { ac_try='test -s conftest.$ac_objext'
20719   { (case "(($ac_try" in
20720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20721   *) ac_try_echo=$ac_try;;
20722 esac
20723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20724   (eval "$ac_try") 2>&5
20725   ac_status=$?
20726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727   (exit $ac_status); }; }; then
20728   ac_cv_c_bigendian=yes
20729 else
20730   echo "$as_me: failed program was:" >&5
20731 sed 's/^/| /' conftest.$ac_ext >&5
20732
20733         ac_cv_c_bigendian=no
20734 fi
20735
20736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20737 else
20738   echo "$as_me: failed program was:" >&5
20739 sed 's/^/| /' conftest.$ac_ext >&5
20740
20741         # It does not; compile a test program.
20742 if test "$cross_compiling" = yes; then
20743   # try to guess the endianness by grepping values into an object file
20744   ac_cv_c_bigendian=unknown
20745   cat >conftest.$ac_ext <<_ACEOF
20746 /* confdefs.h.  */
20747 _ACEOF
20748 cat confdefs.h >>conftest.$ac_ext
20749 cat >>conftest.$ac_ext <<_ACEOF
20750 /* end confdefs.h.  */
20751 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20752 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20753 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20754 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20755 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20756 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20757 int
20758 main ()
20759 {
20760  _ascii (); _ebcdic ();
20761   ;
20762   return 0;
20763 }
20764 _ACEOF
20765 rm -f conftest.$ac_objext
20766 if { (ac_try="$ac_compile"
20767 case "(($ac_try" in
20768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20769   *) ac_try_echo=$ac_try;;
20770 esac
20771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20772   (eval "$ac_compile") 2>conftest.er1
20773   ac_status=$?
20774   grep -v '^ *+' conftest.er1 >conftest.err
20775   rm -f conftest.er1
20776   cat conftest.err >&5
20777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778   (exit $ac_status); } &&
20779          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20780   { (case "(($ac_try" in
20781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20782   *) ac_try_echo=$ac_try;;
20783 esac
20784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20785   (eval "$ac_try") 2>&5
20786   ac_status=$?
20787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788   (exit $ac_status); }; } &&
20789          { ac_try='test -s conftest.$ac_objext'
20790   { (case "(($ac_try" in
20791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20792   *) ac_try_echo=$ac_try;;
20793 esac
20794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20795   (eval "$ac_try") 2>&5
20796   ac_status=$?
20797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798   (exit $ac_status); }; }; then
20799   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20800   ac_cv_c_bigendian=yes
20801 fi
20802 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20803   if test "$ac_cv_c_bigendian" = unknown; then
20804     ac_cv_c_bigendian=no
20805   else
20806     # finding both strings is unlikely to happen, but who knows?
20807     ac_cv_c_bigendian=unknown
20808   fi
20809 fi
20810 else
20811   echo "$as_me: failed program was:" >&5
20812 sed 's/^/| /' conftest.$ac_ext >&5
20813
20814
20815 fi
20816
20817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20818 else
20819   cat >conftest.$ac_ext <<_ACEOF
20820 /* confdefs.h.  */
20821 _ACEOF
20822 cat confdefs.h >>conftest.$ac_ext
20823 cat >>conftest.$ac_ext <<_ACEOF
20824 /* end confdefs.h.  */
20825 $ac_includes_default
20826 int
20827 main ()
20828 {
20829
20830   /* Are we little or big endian?  From Harbison&Steele.  */
20831   union
20832   {
20833     long int l;
20834     char c[sizeof (long int)];
20835   } u;
20836   u.l = 1;
20837   return u.c[sizeof (long int) - 1] == 1;
20838
20839   ;
20840   return 0;
20841 }
20842 _ACEOF
20843 rm -f conftest$ac_exeext
20844 if { (ac_try="$ac_link"
20845 case "(($ac_try" in
20846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20847   *) ac_try_echo=$ac_try;;
20848 esac
20849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20850   (eval "$ac_link") 2>&5
20851   ac_status=$?
20852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20854   { (case "(($ac_try" in
20855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20856   *) ac_try_echo=$ac_try;;
20857 esac
20858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20859   (eval "$ac_try") 2>&5
20860   ac_status=$?
20861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862   (exit $ac_status); }; }; then
20863   ac_cv_c_bigendian=no
20864 else
20865   echo "$as_me: program exited with status $ac_status" >&5
20866 echo "$as_me: failed program was:" >&5
20867 sed 's/^/| /' conftest.$ac_ext >&5
20868
20869 ( exit $ac_status )
20870 ac_cv_c_bigendian=yes
20871 fi
20872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20873 fi
20874
20875
20876 fi
20877
20878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20879 fi
20880 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20881 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
20882 case $ac_cv_c_bigendian in
20883   yes)
20884
20885 cat >>confdefs.h <<\_ACEOF
20886 #define WORDS_BIGENDIAN 1
20887 _ACEOF
20888  ;;
20889   no)
20890      ;;
20891   *)
20892     { { echo "$as_me:$LINENO: error: unknown endianness
20893 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20894 echo "$as_me: error: unknown endianness
20895 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20896    { (exit 1); exit 1; }; } ;;
20897 esac
20898
20899
20900 # check for specific functions that might be missing from
20901 # certain standard library implementations
20902 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20903 # for constant arguments.  Useless!
20904 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
20905 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
20906 if test "${ac_cv_working_alloca_h+set}" = set; then
20907   echo $ECHO_N "(cached) $ECHO_C" >&6
20908 else
20909   cat >conftest.$ac_ext <<_ACEOF
20910 /* confdefs.h.  */
20911 _ACEOF
20912 cat confdefs.h >>conftest.$ac_ext
20913 cat >>conftest.$ac_ext <<_ACEOF
20914 /* end confdefs.h.  */
20915 #include <alloca.h>
20916 int
20917 main ()
20918 {
20919 char *p = (char *) alloca (2 * sizeof (int));
20920                           if (p) return 0;
20921   ;
20922   return 0;
20923 }
20924 _ACEOF
20925 rm -f conftest.$ac_objext conftest$ac_exeext
20926 if { (ac_try="$ac_link"
20927 case "(($ac_try" in
20928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20929   *) ac_try_echo=$ac_try;;
20930 esac
20931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20932   (eval "$ac_link") 2>conftest.er1
20933   ac_status=$?
20934   grep -v '^ *+' conftest.er1 >conftest.err
20935   rm -f conftest.er1
20936   cat conftest.err >&5
20937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938   (exit $ac_status); } &&
20939          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20940   { (case "(($ac_try" in
20941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20942   *) ac_try_echo=$ac_try;;
20943 esac
20944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20945   (eval "$ac_try") 2>&5
20946   ac_status=$?
20947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948   (exit $ac_status); }; } &&
20949          { ac_try='test -s conftest$ac_exeext'
20950   { (case "(($ac_try" in
20951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20952   *) ac_try_echo=$ac_try;;
20953 esac
20954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20955   (eval "$ac_try") 2>&5
20956   ac_status=$?
20957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958   (exit $ac_status); }; }; then
20959   ac_cv_working_alloca_h=yes
20960 else
20961   echo "$as_me: failed program was:" >&5
20962 sed 's/^/| /' conftest.$ac_ext >&5
20963
20964         ac_cv_working_alloca_h=no
20965 fi
20966
20967 rm -f core conftest.err conftest.$ac_objext \
20968       conftest$ac_exeext conftest.$ac_ext
20969 fi
20970 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20971 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
20972 if test $ac_cv_working_alloca_h = yes; then
20973
20974 cat >>confdefs.h <<\_ACEOF
20975 #define HAVE_ALLOCA_H 1
20976 _ACEOF
20977
20978 fi
20979
20980 { echo "$as_me:$LINENO: checking for alloca" >&5
20981 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
20982 if test "${ac_cv_func_alloca_works+set}" = set; then
20983   echo $ECHO_N "(cached) $ECHO_C" >&6
20984 else
20985   cat >conftest.$ac_ext <<_ACEOF
20986 /* confdefs.h.  */
20987 _ACEOF
20988 cat confdefs.h >>conftest.$ac_ext
20989 cat >>conftest.$ac_ext <<_ACEOF
20990 /* end confdefs.h.  */
20991 #ifdef __GNUC__
20992 # define alloca __builtin_alloca
20993 #else
20994 # ifdef _MSC_VER
20995 #  include <malloc.h>
20996 #  define alloca _alloca
20997 # else
20998 #  if HAVE_ALLOCA_H
20999 #   include <alloca.h>
21000 #  else
21001 #   ifdef _AIX
21002  #pragma alloca
21003 #   else
21004 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21005 char *alloca ();
21006 #    endif
21007 #   endif
21008 #  endif
21009 # endif
21010 #endif
21011
21012 int
21013 main ()
21014 {
21015 char *p = (char *) alloca (1);
21016                                     if (p) return 0;
21017   ;
21018   return 0;
21019 }
21020 _ACEOF
21021 rm -f conftest.$ac_objext conftest$ac_exeext
21022 if { (ac_try="$ac_link"
21023 case "(($ac_try" in
21024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21025   *) ac_try_echo=$ac_try;;
21026 esac
21027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21028   (eval "$ac_link") 2>conftest.er1
21029   ac_status=$?
21030   grep -v '^ *+' conftest.er1 >conftest.err
21031   rm -f conftest.er1
21032   cat conftest.err >&5
21033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034   (exit $ac_status); } &&
21035          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21036   { (case "(($ac_try" in
21037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21038   *) ac_try_echo=$ac_try;;
21039 esac
21040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21041   (eval "$ac_try") 2>&5
21042   ac_status=$?
21043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044   (exit $ac_status); }; } &&
21045          { ac_try='test -s conftest$ac_exeext'
21046   { (case "(($ac_try" in
21047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21048   *) ac_try_echo=$ac_try;;
21049 esac
21050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21051   (eval "$ac_try") 2>&5
21052   ac_status=$?
21053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21054   (exit $ac_status); }; }; then
21055   ac_cv_func_alloca_works=yes
21056 else
21057   echo "$as_me: failed program was:" >&5
21058 sed 's/^/| /' conftest.$ac_ext >&5
21059
21060         ac_cv_func_alloca_works=no
21061 fi
21062
21063 rm -f core conftest.err conftest.$ac_objext \
21064       conftest$ac_exeext conftest.$ac_ext
21065 fi
21066 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21067 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
21068
21069 if test $ac_cv_func_alloca_works = yes; then
21070
21071 cat >>confdefs.h <<\_ACEOF
21072 #define HAVE_ALLOCA 1
21073 _ACEOF
21074
21075 else
21076   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21077 # that cause trouble.  Some versions do not even contain alloca or
21078 # contain a buggy version.  If you still want to use their alloca,
21079 # use ar to extract alloca.o from them instead of compiling alloca.c.
21080
21081 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21082
21083 cat >>confdefs.h <<\_ACEOF
21084 #define C_ALLOCA 1
21085 _ACEOF
21086
21087
21088 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21089 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
21090 if test "${ac_cv_os_cray+set}" = set; then
21091   echo $ECHO_N "(cached) $ECHO_C" >&6
21092 else
21093   cat >conftest.$ac_ext <<_ACEOF
21094 /* confdefs.h.  */
21095 _ACEOF
21096 cat confdefs.h >>conftest.$ac_ext
21097 cat >>conftest.$ac_ext <<_ACEOF
21098 /* end confdefs.h.  */
21099 #if defined CRAY && ! defined CRAY2
21100 webecray
21101 #else
21102 wenotbecray
21103 #endif
21104
21105 _ACEOF
21106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21107   $EGREP "webecray" >/dev/null 2>&1; then
21108   ac_cv_os_cray=yes
21109 else
21110   ac_cv_os_cray=no
21111 fi
21112 rm -f conftest*
21113
21114 fi
21115 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21116 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
21117 if test $ac_cv_os_cray = yes; then
21118   for ac_func in _getb67 GETB67 getb67; do
21119     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21120 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21122 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21123   echo $ECHO_N "(cached) $ECHO_C" >&6
21124 else
21125   cat >conftest.$ac_ext <<_ACEOF
21126 /* confdefs.h.  */
21127 _ACEOF
21128 cat confdefs.h >>conftest.$ac_ext
21129 cat >>conftest.$ac_ext <<_ACEOF
21130 /* end confdefs.h.  */
21131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21132    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21133 #define $ac_func innocuous_$ac_func
21134
21135 /* System header to define __stub macros and hopefully few prototypes,
21136     which can conflict with char $ac_func (); below.
21137     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21138     <limits.h> exists even on freestanding compilers.  */
21139
21140 #ifdef __STDC__
21141 # include <limits.h>
21142 #else
21143 # include <assert.h>
21144 #endif
21145
21146 #undef $ac_func
21147
21148 /* Override any GCC internal prototype to avoid an error.
21149    Use char because int might match the return type of a GCC
21150    builtin and then its argument prototype would still apply.  */
21151 #ifdef __cplusplus
21152 extern "C"
21153 #endif
21154 char $ac_func ();
21155 /* The GNU C library defines this for functions which it implements
21156     to always fail with ENOSYS.  Some functions are actually named
21157     something starting with __ and the normal name is an alias.  */
21158 #if defined __stub_$ac_func || defined __stub___$ac_func
21159 choke me
21160 #endif
21161
21162 int
21163 main ()
21164 {
21165 return $ac_func ();
21166   ;
21167   return 0;
21168 }
21169 _ACEOF
21170 rm -f conftest.$ac_objext conftest$ac_exeext
21171 if { (ac_try="$ac_link"
21172 case "(($ac_try" in
21173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21174   *) ac_try_echo=$ac_try;;
21175 esac
21176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21177   (eval "$ac_link") 2>conftest.er1
21178   ac_status=$?
21179   grep -v '^ *+' conftest.er1 >conftest.err
21180   rm -f conftest.er1
21181   cat conftest.err >&5
21182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183   (exit $ac_status); } &&
21184          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21185   { (case "(($ac_try" in
21186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21187   *) ac_try_echo=$ac_try;;
21188 esac
21189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21190   (eval "$ac_try") 2>&5
21191   ac_status=$?
21192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193   (exit $ac_status); }; } &&
21194          { ac_try='test -s conftest$ac_exeext'
21195   { (case "(($ac_try" in
21196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21197   *) ac_try_echo=$ac_try;;
21198 esac
21199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21200   (eval "$ac_try") 2>&5
21201   ac_status=$?
21202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203   (exit $ac_status); }; }; then
21204   eval "$as_ac_var=yes"
21205 else
21206   echo "$as_me: failed program was:" >&5
21207 sed 's/^/| /' conftest.$ac_ext >&5
21208
21209         eval "$as_ac_var=no"
21210 fi
21211
21212 rm -f core conftest.err conftest.$ac_objext \
21213       conftest$ac_exeext conftest.$ac_ext
21214 fi
21215 ac_res=`eval echo '${'$as_ac_var'}'`
21216                { echo "$as_me:$LINENO: result: $ac_res" >&5
21217 echo "${ECHO_T}$ac_res" >&6; }
21218 if test `eval echo '${'$as_ac_var'}'` = yes; then
21219
21220 cat >>confdefs.h <<_ACEOF
21221 #define CRAY_STACKSEG_END $ac_func
21222 _ACEOF
21223
21224     break
21225 fi
21226
21227   done
21228 fi
21229
21230 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21231 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
21232 if test "${ac_cv_c_stack_direction+set}" = set; then
21233   echo $ECHO_N "(cached) $ECHO_C" >&6
21234 else
21235   if test "$cross_compiling" = yes; then
21236   ac_cv_c_stack_direction=0
21237 else
21238   cat >conftest.$ac_ext <<_ACEOF
21239 /* confdefs.h.  */
21240 _ACEOF
21241 cat confdefs.h >>conftest.$ac_ext
21242 cat >>conftest.$ac_ext <<_ACEOF
21243 /* end confdefs.h.  */
21244 $ac_includes_default
21245 int
21246 find_stack_direction ()
21247 {
21248   static char *addr = 0;
21249   auto char dummy;
21250   if (addr == 0)
21251     {
21252       addr = &dummy;
21253       return find_stack_direction ();
21254     }
21255   else
21256     return (&dummy > addr) ? 1 : -1;
21257 }
21258
21259 int
21260 main ()
21261 {
21262   return find_stack_direction () < 0;
21263 }
21264 _ACEOF
21265 rm -f conftest$ac_exeext
21266 if { (ac_try="$ac_link"
21267 case "(($ac_try" in
21268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21269   *) ac_try_echo=$ac_try;;
21270 esac
21271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21272   (eval "$ac_link") 2>&5
21273   ac_status=$?
21274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21276   { (case "(($ac_try" in
21277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21278   *) ac_try_echo=$ac_try;;
21279 esac
21280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21281   (eval "$ac_try") 2>&5
21282   ac_status=$?
21283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284   (exit $ac_status); }; }; then
21285   ac_cv_c_stack_direction=1
21286 else
21287   echo "$as_me: program exited with status $ac_status" >&5
21288 echo "$as_me: failed program was:" >&5
21289 sed 's/^/| /' conftest.$ac_ext >&5
21290
21291 ( exit $ac_status )
21292 ac_cv_c_stack_direction=-1
21293 fi
21294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21295 fi
21296
21297
21298 fi
21299 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21300 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
21301
21302 cat >>confdefs.h <<_ACEOF
21303 #define STACK_DIRECTION $ac_cv_c_stack_direction
21304 _ACEOF
21305
21306
21307 fi
21308
21309
21310 for ac_header in malloc.h
21311 do
21312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21314   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21317   echo $ECHO_N "(cached) $ECHO_C" >&6
21318 fi
21319 ac_res=`eval echo '${'$as_ac_Header'}'`
21320                { echo "$as_me:$LINENO: result: $ac_res" >&5
21321 echo "${ECHO_T}$ac_res" >&6; }
21322 else
21323   # Is the header compilable?
21324 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21326 cat >conftest.$ac_ext <<_ACEOF
21327 /* confdefs.h.  */
21328 _ACEOF
21329 cat confdefs.h >>conftest.$ac_ext
21330 cat >>conftest.$ac_ext <<_ACEOF
21331 /* end confdefs.h.  */
21332 $ac_includes_default
21333 #include <$ac_header>
21334 _ACEOF
21335 rm -f conftest.$ac_objext
21336 if { (ac_try="$ac_compile"
21337 case "(($ac_try" in
21338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21339   *) ac_try_echo=$ac_try;;
21340 esac
21341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21342   (eval "$ac_compile") 2>conftest.er1
21343   ac_status=$?
21344   grep -v '^ *+' conftest.er1 >conftest.err
21345   rm -f conftest.er1
21346   cat conftest.err >&5
21347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348   (exit $ac_status); } &&
21349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21350   { (case "(($ac_try" in
21351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21352   *) ac_try_echo=$ac_try;;
21353 esac
21354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21355   (eval "$ac_try") 2>&5
21356   ac_status=$?
21357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358   (exit $ac_status); }; } &&
21359          { ac_try='test -s conftest.$ac_objext'
21360   { (case "(($ac_try" in
21361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21362   *) ac_try_echo=$ac_try;;
21363 esac
21364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21365   (eval "$ac_try") 2>&5
21366   ac_status=$?
21367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368   (exit $ac_status); }; }; then
21369   ac_header_compiler=yes
21370 else
21371   echo "$as_me: failed program was:" >&5
21372 sed 's/^/| /' conftest.$ac_ext >&5
21373
21374         ac_header_compiler=no
21375 fi
21376
21377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21379 echo "${ECHO_T}$ac_header_compiler" >&6; }
21380
21381 # Is the header present?
21382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21384 cat >conftest.$ac_ext <<_ACEOF
21385 /* confdefs.h.  */
21386 _ACEOF
21387 cat confdefs.h >>conftest.$ac_ext
21388 cat >>conftest.$ac_ext <<_ACEOF
21389 /* end confdefs.h.  */
21390 #include <$ac_header>
21391 _ACEOF
21392 if { (ac_try="$ac_cpp conftest.$ac_ext"
21393 case "(($ac_try" in
21394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21395   *) ac_try_echo=$ac_try;;
21396 esac
21397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21398   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21399   ac_status=$?
21400   grep -v '^ *+' conftest.er1 >conftest.err
21401   rm -f conftest.er1
21402   cat conftest.err >&5
21403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404   (exit $ac_status); } >/dev/null; then
21405   if test -s conftest.err; then
21406     ac_cpp_err=$ac_c_preproc_warn_flag
21407     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21408   else
21409     ac_cpp_err=
21410   fi
21411 else
21412   ac_cpp_err=yes
21413 fi
21414 if test -z "$ac_cpp_err"; then
21415   ac_header_preproc=yes
21416 else
21417   echo "$as_me: failed program was:" >&5
21418 sed 's/^/| /' conftest.$ac_ext >&5
21419
21420   ac_header_preproc=no
21421 fi
21422
21423 rm -f conftest.err conftest.$ac_ext
21424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21425 echo "${ECHO_T}$ac_header_preproc" >&6; }
21426
21427 # So?  What about this header?
21428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21429   yes:no: )
21430     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21432     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21434     ac_header_preproc=yes
21435     ;;
21436   no:yes:* )
21437     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21439     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21440 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21441     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21443     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21444 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21445     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21447     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21449     ( cat <<\_ASBOX
21450 ## -------------------------------------------------------- ##
21451 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
21452 ## -------------------------------------------------------- ##
21453 _ASBOX
21454      ) | sed "s/^/$as_me: WARNING:     /" >&2
21455     ;;
21456 esac
21457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21460   echo $ECHO_N "(cached) $ECHO_C" >&6
21461 else
21462   eval "$as_ac_Header=\$ac_header_preproc"
21463 fi
21464 ac_res=`eval echo '${'$as_ac_Header'}'`
21465                { echo "$as_me:$LINENO: result: $ac_res" >&5
21466 echo "${ECHO_T}$ac_res" >&6; }
21467
21468 fi
21469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21470   cat >>confdefs.h <<_ACEOF
21471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21472 _ACEOF
21473
21474 fi
21475
21476 done
21477
21478
21479 for ac_header in assert.h
21480 do
21481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21483   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21486   echo $ECHO_N "(cached) $ECHO_C" >&6
21487 fi
21488 ac_res=`eval echo '${'$as_ac_Header'}'`
21489                { echo "$as_me:$LINENO: result: $ac_res" >&5
21490 echo "${ECHO_T}$ac_res" >&6; }
21491 else
21492   # Is the header compilable?
21493 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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 $ac_includes_default
21502 #include <$ac_header>
21503 _ACEOF
21504 rm -f conftest.$ac_objext
21505 if { (ac_try="$ac_compile"
21506 case "(($ac_try" in
21507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21508   *) ac_try_echo=$ac_try;;
21509 esac
21510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21511   (eval "$ac_compile") 2>conftest.er1
21512   ac_status=$?
21513   grep -v '^ *+' conftest.er1 >conftest.err
21514   rm -f conftest.er1
21515   cat conftest.err >&5
21516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517   (exit $ac_status); } &&
21518          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21519   { (case "(($ac_try" in
21520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21521   *) ac_try_echo=$ac_try;;
21522 esac
21523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21524   (eval "$ac_try") 2>&5
21525   ac_status=$?
21526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527   (exit $ac_status); }; } &&
21528          { ac_try='test -s conftest.$ac_objext'
21529   { (case "(($ac_try" in
21530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21531   *) ac_try_echo=$ac_try;;
21532 esac
21533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21534   (eval "$ac_try") 2>&5
21535   ac_status=$?
21536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537   (exit $ac_status); }; }; then
21538   ac_header_compiler=yes
21539 else
21540   echo "$as_me: failed program was:" >&5
21541 sed 's/^/| /' conftest.$ac_ext >&5
21542
21543         ac_header_compiler=no
21544 fi
21545
21546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21547 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21548 echo "${ECHO_T}$ac_header_compiler" >&6; }
21549
21550 # Is the header present?
21551 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21552 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21553 cat >conftest.$ac_ext <<_ACEOF
21554 /* confdefs.h.  */
21555 _ACEOF
21556 cat confdefs.h >>conftest.$ac_ext
21557 cat >>conftest.$ac_ext <<_ACEOF
21558 /* end confdefs.h.  */
21559 #include <$ac_header>
21560 _ACEOF
21561 if { (ac_try="$ac_cpp conftest.$ac_ext"
21562 case "(($ac_try" in
21563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21564   *) ac_try_echo=$ac_try;;
21565 esac
21566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21567   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21568   ac_status=$?
21569   grep -v '^ *+' conftest.er1 >conftest.err
21570   rm -f conftest.er1
21571   cat conftest.err >&5
21572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573   (exit $ac_status); } >/dev/null; then
21574   if test -s conftest.err; then
21575     ac_cpp_err=$ac_c_preproc_warn_flag
21576     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21577   else
21578     ac_cpp_err=
21579   fi
21580 else
21581   ac_cpp_err=yes
21582 fi
21583 if test -z "$ac_cpp_err"; then
21584   ac_header_preproc=yes
21585 else
21586   echo "$as_me: failed program was:" >&5
21587 sed 's/^/| /' conftest.$ac_ext >&5
21588
21589   ac_header_preproc=no
21590 fi
21591
21592 rm -f conftest.err conftest.$ac_ext
21593 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21594 echo "${ECHO_T}$ac_header_preproc" >&6; }
21595
21596 # So?  What about this header?
21597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21598   yes:no: )
21599     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21601     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21602 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21603     ac_header_preproc=yes
21604     ;;
21605   no:yes:* )
21606     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21608     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21609 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21610     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21611 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21612     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21613 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21614     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21616     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21617 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21618     ( cat <<\_ASBOX
21619 ## -------------------------------------------------------- ##
21620 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
21621 ## -------------------------------------------------------- ##
21622 _ASBOX
21623      ) | sed "s/^/$as_me: WARNING:     /" >&2
21624     ;;
21625 esac
21626 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21629   echo $ECHO_N "(cached) $ECHO_C" >&6
21630 else
21631   eval "$as_ac_Header=\$ac_header_preproc"
21632 fi
21633 ac_res=`eval echo '${'$as_ac_Header'}'`
21634                { echo "$as_me:$LINENO: result: $ac_res" >&5
21635 echo "${ECHO_T}$ac_res" >&6; }
21636
21637 fi
21638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21639   cat >>confdefs.h <<_ACEOF
21640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21641 _ACEOF
21642
21643 fi
21644
21645 done
21646
21647
21648 for ac_func in lrint
21649 do
21650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21651 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21654   echo $ECHO_N "(cached) $ECHO_C" >&6
21655 else
21656   cat >conftest.$ac_ext <<_ACEOF
21657 /* confdefs.h.  */
21658 _ACEOF
21659 cat confdefs.h >>conftest.$ac_ext
21660 cat >>conftest.$ac_ext <<_ACEOF
21661 /* end confdefs.h.  */
21662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21663    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21664 #define $ac_func innocuous_$ac_func
21665
21666 /* System header to define __stub macros and hopefully few prototypes,
21667     which can conflict with char $ac_func (); below.
21668     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21669     <limits.h> exists even on freestanding compilers.  */
21670
21671 #ifdef __STDC__
21672 # include <limits.h>
21673 #else
21674 # include <assert.h>
21675 #endif
21676
21677 #undef $ac_func
21678
21679 /* Override any GCC internal prototype to avoid an error.
21680    Use char because int might match the return type of a GCC
21681    builtin and then its argument prototype would still apply.  */
21682 #ifdef __cplusplus
21683 extern "C"
21684 #endif
21685 char $ac_func ();
21686 /* The GNU C library defines this for functions which it implements
21687     to always fail with ENOSYS.  Some functions are actually named
21688     something starting with __ and the normal name is an alias.  */
21689 #if defined __stub_$ac_func || defined __stub___$ac_func
21690 choke me
21691 #endif
21692
21693 int
21694 main ()
21695 {
21696 return $ac_func ();
21697   ;
21698   return 0;
21699 }
21700 _ACEOF
21701 rm -f conftest.$ac_objext conftest$ac_exeext
21702 if { (ac_try="$ac_link"
21703 case "(($ac_try" in
21704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21705   *) ac_try_echo=$ac_try;;
21706 esac
21707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21708   (eval "$ac_link") 2>conftest.er1
21709   ac_status=$?
21710   grep -v '^ *+' conftest.er1 >conftest.err
21711   rm -f conftest.er1
21712   cat conftest.err >&5
21713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714   (exit $ac_status); } &&
21715          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21716   { (case "(($ac_try" in
21717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21718   *) ac_try_echo=$ac_try;;
21719 esac
21720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21721   (eval "$ac_try") 2>&5
21722   ac_status=$?
21723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724   (exit $ac_status); }; } &&
21725          { ac_try='test -s conftest$ac_exeext'
21726   { (case "(($ac_try" in
21727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21728   *) ac_try_echo=$ac_try;;
21729 esac
21730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21731   (eval "$ac_try") 2>&5
21732   ac_status=$?
21733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734   (exit $ac_status); }; }; then
21735   eval "$as_ac_var=yes"
21736 else
21737   echo "$as_me: failed program was:" >&5
21738 sed 's/^/| /' conftest.$ac_ext >&5
21739
21740         eval "$as_ac_var=no"
21741 fi
21742
21743 rm -f core conftest.err conftest.$ac_objext \
21744       conftest$ac_exeext conftest.$ac_ext
21745 fi
21746 ac_res=`eval echo '${'$as_ac_var'}'`
21747                { echo "$as_me:$LINENO: result: $ac_res" >&5
21748 echo "${ECHO_T}$ac_res" >&6; }
21749 if test `eval echo '${'$as_ac_var'}'` = yes; then
21750   cat >>confdefs.h <<_ACEOF
21751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21752 _ACEOF
21753
21754 fi
21755 done
21756
21757
21758
21759 ######################################################################
21760 # HighGUI dependencies for windowing system
21761
21762 # honor user selection,
21763 # if no selection given check for Carbon first
21764 CARBON_CFLAGS=""
21765 CARBON_LIBS=""
21766 if test x"$with_carbon" = "xyes"; then
21767
21768     # header presence and usability seem to be enough
21769     if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
21770   { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
21771 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
21772 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
21773   echo $ECHO_N "(cached) $ECHO_C" >&6
21774 fi
21775 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
21776 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
21777 else
21778   # Is the header compilable?
21779 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
21780 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
21781 cat >conftest.$ac_ext <<_ACEOF
21782 /* confdefs.h.  */
21783 _ACEOF
21784 cat confdefs.h >>conftest.$ac_ext
21785 cat >>conftest.$ac_ext <<_ACEOF
21786 /* end confdefs.h.  */
21787 $ac_includes_default
21788 #include <Carbon/Carbon.h>
21789 _ACEOF
21790 rm -f conftest.$ac_objext
21791 if { (ac_try="$ac_compile"
21792 case "(($ac_try" in
21793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21794   *) ac_try_echo=$ac_try;;
21795 esac
21796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21797   (eval "$ac_compile") 2>conftest.er1
21798   ac_status=$?
21799   grep -v '^ *+' conftest.er1 >conftest.err
21800   rm -f conftest.er1
21801   cat conftest.err >&5
21802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803   (exit $ac_status); } &&
21804          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21805   { (case "(($ac_try" in
21806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21807   *) ac_try_echo=$ac_try;;
21808 esac
21809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21810   (eval "$ac_try") 2>&5
21811   ac_status=$?
21812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813   (exit $ac_status); }; } &&
21814          { ac_try='test -s conftest.$ac_objext'
21815   { (case "(($ac_try" in
21816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21817   *) ac_try_echo=$ac_try;;
21818 esac
21819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21820   (eval "$ac_try") 2>&5
21821   ac_status=$?
21822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21823   (exit $ac_status); }; }; then
21824   ac_header_compiler=yes
21825 else
21826   echo "$as_me: failed program was:" >&5
21827 sed 's/^/| /' conftest.$ac_ext >&5
21828
21829         ac_header_compiler=no
21830 fi
21831
21832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21833 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21834 echo "${ECHO_T}$ac_header_compiler" >&6; }
21835
21836 # Is the header present?
21837 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
21838 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
21839 cat >conftest.$ac_ext <<_ACEOF
21840 /* confdefs.h.  */
21841 _ACEOF
21842 cat confdefs.h >>conftest.$ac_ext
21843 cat >>conftest.$ac_ext <<_ACEOF
21844 /* end confdefs.h.  */
21845 #include <Carbon/Carbon.h>
21846 _ACEOF
21847 if { (ac_try="$ac_cpp conftest.$ac_ext"
21848 case "(($ac_try" in
21849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21850   *) ac_try_echo=$ac_try;;
21851 esac
21852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21853   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21854   ac_status=$?
21855   grep -v '^ *+' conftest.er1 >conftest.err
21856   rm -f conftest.er1
21857   cat conftest.err >&5
21858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859   (exit $ac_status); } >/dev/null; then
21860   if test -s conftest.err; then
21861     ac_cpp_err=$ac_c_preproc_warn_flag
21862     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21863   else
21864     ac_cpp_err=
21865   fi
21866 else
21867   ac_cpp_err=yes
21868 fi
21869 if test -z "$ac_cpp_err"; then
21870   ac_header_preproc=yes
21871 else
21872   echo "$as_me: failed program was:" >&5
21873 sed 's/^/| /' conftest.$ac_ext >&5
21874
21875   ac_header_preproc=no
21876 fi
21877
21878 rm -f conftest.err conftest.$ac_ext
21879 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21880 echo "${ECHO_T}$ac_header_preproc" >&6; }
21881
21882 # So?  What about this header?
21883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21884   yes:no: )
21885     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
21886 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21887     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
21888 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
21889     ac_header_preproc=yes
21890     ;;
21891   no:yes:* )
21892     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
21893 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
21894     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h:     check for missing prerequisite headers?" >&5
21895 echo "$as_me: WARNING: Carbon/Carbon.h:     check for missing prerequisite headers?" >&2;}
21896     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
21897 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
21898     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h:     section \"Present But Cannot Be Compiled\"" >&5
21899 echo "$as_me: WARNING: Carbon/Carbon.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21900     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
21901 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
21902     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
21903 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
21904     ( cat <<\_ASBOX
21905 ## -------------------------------------------------------- ##
21906 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
21907 ## -------------------------------------------------------- ##
21908 _ASBOX
21909      ) | sed "s/^/$as_me: WARNING:     /" >&2
21910     ;;
21911 esac
21912 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
21913 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
21914 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
21915   echo $ECHO_N "(cached) $ECHO_C" >&6
21916 else
21917   ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
21918 fi
21919 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
21920 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
21921
21922 fi
21923 if test $ac_cv_header_Carbon_Carbon_h = yes; then
21924
21925
21926 cat >>confdefs.h <<\_ACEOF
21927 #define HAVE_CARBON
21928 _ACEOF
21929
21930                       CARBON_LIBS="-Xlinker -framework -Xlinker Carbon"
21931                       have_carbon=yes
21932
21933 else
21934
21935                       have_carbon=no
21936                       with_carbon=no
21937
21938 fi
21939
21940
21941
21942     # sanity checks
21943     if test x"$have_carbon" = "xyes"; then
21944
21945         # if we asked for gtk, this is not ok
21946         if test x"$with_gtk" = "xyes"; then
21947             { { echo "$as_me:$LINENO: error: You cannot specify --with-carbon and --with-gtk at the same time" >&5
21948 echo "$as_me: error: You cannot specify --with-carbon and --with-gtk at the same time" >&2;}
21949    { (exit 1); exit 1; }; }
21950         fi
21951
21952         # don't check alternatives if carbon was found
21953         if test x"$with_gtk" = "xauto"; then
21954             with_gtk=no
21955         fi
21956     fi
21957 else
21958     have_carbon=no
21959     if test ! x"$with_carbon" = "xno"; then
21960         { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-carbon, continuing assuming 'no'" >&5
21961 echo "$as_me: WARNING: unexpected arguments for option --with-carbon, continuing assuming 'no'" >&2;}
21962     fi
21963 fi
21964
21965
21966
21967
21968 if test x"$have_carbon" = "xyes"; then
21969   BUILD_CARBON_TRUE=
21970   BUILD_CARBON_FALSE='#'
21971 else
21972   BUILD_CARBON_TRUE='#'
21973   BUILD_CARBON_FALSE=
21974 fi
21975
21976
21977 # use GTK+ 2.x (or later) for windowing
21978 # if carbon not present or not wanted (--without-carbon)
21979 GTK_CFLAGS=""
21980 GTK_LIBS=""
21981 GTHREAD_CFLAGS=""
21982 GTHREAD_LIBS=""
21983 if test x"$with_gtk" = "xno"; then
21984     have_gtk=no
21985 else
21986
21987     # check if ./configure arguments are valid
21988     if test x"$with_gtk" = "xauto"; then
21989        with_gtk=yes
21990     fi
21991     if test x"$with_gtk" = "xyes"; then
21992
21993         # pkg-config is needed for GTK+
21994         # Extract the first word of "pkg-config", so it can be a program name with args.
21995 set dummy pkg-config; ac_word=$2
21996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21998 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21999   echo $ECHO_N "(cached) $ECHO_C" >&6
22000 else
22001   case $PKG_CONFIG in
22002   [\\/]* | ?:[\\/]*)
22003   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22004   ;;
22005   *)
22006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22007 for as_dir in $PATH
22008 do
22009   IFS=$as_save_IFS
22010   test -z "$as_dir" && as_dir=.
22011   for ac_exec_ext in '' $ac_executable_extensions; do
22012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22013     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22015     break 2
22016   fi
22017 done
22018 done
22019 IFS=$as_save_IFS
22020
22021   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22022   ;;
22023 esac
22024 fi
22025 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22026 if test -n "$PKG_CONFIG"; then
22027   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22028 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22029 else
22030   { echo "$as_me:$LINENO: result: no" >&5
22031 echo "${ECHO_T}no" >&6; }
22032 fi
22033
22034
22035         if test x"$PKG_CONFIG" == "xno"; then
22036             { { echo "$as_me:$LINENO: error: You have to install pkg-config to compile OpenCV with GTK+" >&5
22037 echo "$as_me: error: You have to install pkg-config to compile OpenCV with GTK+" >&2;}
22038    { (exit 1); exit 1; }; }
22039         fi
22040
22041
22042   succeeded=no
22043
22044   if test -z "$PKG_CONFIG"; then
22045     # Extract the first word of "pkg-config", so it can be a program name with args.
22046 set dummy pkg-config; ac_word=$2
22047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22049 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22050   echo $ECHO_N "(cached) $ECHO_C" >&6
22051 else
22052   case $PKG_CONFIG in
22053   [\\/]* | ?:[\\/]*)
22054   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22055   ;;
22056   *)
22057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22058 for as_dir in $PATH
22059 do
22060   IFS=$as_save_IFS
22061   test -z "$as_dir" && as_dir=.
22062   for ac_exec_ext in '' $ac_executable_extensions; do
22063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22064     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22066     break 2
22067   fi
22068 done
22069 done
22070 IFS=$as_save_IFS
22071
22072   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22073   ;;
22074 esac
22075 fi
22076 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22077 if test -n "$PKG_CONFIG"; then
22078   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22079 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22080 else
22081   { echo "$as_me:$LINENO: result: no" >&5
22082 echo "${ECHO_T}no" >&6; }
22083 fi
22084
22085
22086   fi
22087
22088   if test "$PKG_CONFIG" = "no" ; then
22089      echo "*** The pkg-config script could not be found. Make sure it is"
22090      echo "*** in your path, or set the PKG_CONFIG environment variable"
22091      echo "*** to the full path to pkg-config."
22092      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22093   else
22094      PKG_CONFIG_MIN_VERSION=0.9.0
22095      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22096         { echo "$as_me:$LINENO: checking for \"gtk+-2.0 gdk-pixbuf-2.0\"" >&5
22097 echo $ECHO_N "checking for \"gtk+-2.0 gdk-pixbuf-2.0\"... $ECHO_C" >&6; }
22098
22099         if $PKG_CONFIG --exists ""gtk+-2.0 gdk-pixbuf-2.0"" ; then
22100             { echo "$as_me:$LINENO: result: yes" >&5
22101 echo "${ECHO_T}yes" >&6; }
22102             succeeded=yes
22103
22104             { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
22105 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
22106             GTK_CFLAGS=`$PKG_CONFIG --cflags ""gtk+-2.0 gdk-pixbuf-2.0""`
22107             { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
22108 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
22109
22110             { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
22111 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
22112             GTK_LIBS=`$PKG_CONFIG --libs ""gtk+-2.0 gdk-pixbuf-2.0""`
22113             { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
22114 echo "${ECHO_T}$GTK_LIBS" >&6; }
22115         else
22116             GTK_CFLAGS=""
22117             GTK_LIBS=""
22118             ## If we have a custom action on failure, don't print errors, but
22119             ## do set a variable so people can do so.
22120             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""gtk+-2.0 gdk-pixbuf-2.0""`
22121
22122         fi
22123
22124
22125
22126      else
22127         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22128         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22129      fi
22130   fi
22131
22132   if test $succeeded = yes; then
22133
22134                             have_gtk=yes
22135
22136 cat >>confdefs.h <<\_ACEOF
22137 #define HAVE_GTK
22138 _ACEOF
22139
22140
22141   else
22142       have_gtk=no
22143   fi
22144
22145
22146     else
22147         # if we get here then --with-gtk was not called with 'yes','no' or 'auto'
22148         { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-gtk, continuing assuming 'no'" >&5
22149 echo "$as_me: WARNING: unexpected arguments for option --with-gtk, continuing assuming 'no'" >&2;}
22150         have_gtk=no
22151     fi
22152 fi
22153 if test x"$with_gthread" = "xno"; then
22154     have_gthread=no
22155 else
22156     if test x"$have_gtk" = "xyes"; then
22157         if test x"$with_gthread" = "xauto"; then
22158             with_gthread=yes
22159         fi
22160
22161         if test x"$with_gthread" = "xyes"; then
22162
22163   succeeded=no
22164
22165   if test -z "$PKG_CONFIG"; then
22166     # Extract the first word of "pkg-config", so it can be a program name with args.
22167 set dummy pkg-config; ac_word=$2
22168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22170 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22171   echo $ECHO_N "(cached) $ECHO_C" >&6
22172 else
22173   case $PKG_CONFIG in
22174   [\\/]* | ?:[\\/]*)
22175   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22176   ;;
22177   *)
22178   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22179 for as_dir in $PATH
22180 do
22181   IFS=$as_save_IFS
22182   test -z "$as_dir" && as_dir=.
22183   for ac_exec_ext in '' $ac_executable_extensions; do
22184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22185     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22187     break 2
22188   fi
22189 done
22190 done
22191 IFS=$as_save_IFS
22192
22193   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22194   ;;
22195 esac
22196 fi
22197 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22198 if test -n "$PKG_CONFIG"; then
22199   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22200 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22201 else
22202   { echo "$as_me:$LINENO: result: no" >&5
22203 echo "${ECHO_T}no" >&6; }
22204 fi
22205
22206
22207   fi
22208
22209   if test "$PKG_CONFIG" = "no" ; then
22210      echo "*** The pkg-config script could not be found. Make sure it is"
22211      echo "*** in your path, or set the PKG_CONFIG environment variable"
22212      echo "*** to the full path to pkg-config."
22213      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22214   else
22215      PKG_CONFIG_MIN_VERSION=0.9.0
22216      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22217         { echo "$as_me:$LINENO: checking for \"gthread-2.0\"" >&5
22218 echo $ECHO_N "checking for \"gthread-2.0\"... $ECHO_C" >&6; }
22219
22220         if $PKG_CONFIG --exists ""gthread-2.0"" ; then
22221             { echo "$as_me:$LINENO: result: yes" >&5
22222 echo "${ECHO_T}yes" >&6; }
22223             succeeded=yes
22224
22225             { echo "$as_me:$LINENO: checking GTHREAD_CFLAGS" >&5
22226 echo $ECHO_N "checking GTHREAD_CFLAGS... $ECHO_C" >&6; }
22227             GTHREAD_CFLAGS=`$PKG_CONFIG --cflags ""gthread-2.0""`
22228             { echo "$as_me:$LINENO: result: $GTHREAD_CFLAGS" >&5
22229 echo "${ECHO_T}$GTHREAD_CFLAGS" >&6; }
22230
22231             { echo "$as_me:$LINENO: checking GTHREAD_LIBS" >&5
22232 echo $ECHO_N "checking GTHREAD_LIBS... $ECHO_C" >&6; }
22233             GTHREAD_LIBS=`$PKG_CONFIG --libs ""gthread-2.0""`
22234             { echo "$as_me:$LINENO: result: $GTHREAD_LIBS" >&5
22235 echo "${ECHO_T}$GTHREAD_LIBS" >&6; }
22236         else
22237             GTHREAD_CFLAGS=""
22238             GTHREAD_LIBS=""
22239             ## If we have a custom action on failure, don't print errors, but
22240             ## do set a variable so people can do so.
22241             GTHREAD_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""gthread-2.0""`
22242
22243         fi
22244
22245
22246
22247      else
22248         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22249         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22250      fi
22251   fi
22252
22253   if test $succeeded = yes; then
22254
22255                                 have_gthread=yes
22256
22257 cat >>confdefs.h <<\_ACEOF
22258 #define HAVE_GTHREAD
22259 _ACEOF
22260
22261
22262   else
22263       have_gthread=no
22264   fi
22265
22266         else
22267             # if we get here then --with-gthread was not called with 'yes','no' or 'auto'
22268             { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-gthread, continuing assuming 'no'" >&5
22269 echo "$as_me: WARNING: unexpected arguments for option --with-gthread, continuing assuming 'no'" >&2;}
22270             have_gthread=no
22271         fi
22272     else
22273         # if no gtk+ was detected, looking for gthread does not make any sense
22274         have_gthread=no
22275     fi
22276 fi
22277
22278
22279
22280
22281
22282
22283 if test x"$have_gtk" = "xyes"; then
22284   BUILD_GTK_TRUE=
22285   BUILD_GTK_FALSE='#'
22286 else
22287   BUILD_GTK_TRUE='#'
22288   BUILD_GTK_FALSE=
22289 fi
22290
22291
22292
22293 ######################################################################
22294 # HighGUI dependencies for video I/O
22295
22296 # if QuickTime is present, it will override everything else,
22297 # (unless '--without-quicktime' was given)
22298 if test x"$with_quicktime" = "xyes"; then
22299
22300     # check other ./configure flags
22301     if test x"$with_ffmpeg" = "xyes"; then
22302         { { echo "$as_me:$LINENO: error: You cannot specify --with-quicktime and --with-ffmpeg at the same time" >&5
22303 echo "$as_me: error: You cannot specify --with-quicktime and --with-ffmpeg at the same time" >&2;}
22304    { (exit 1); exit 1; }; }
22305     fi
22306     if test x"$with_xine" = "xyes"; then
22307         { { echo "$as_me:$LINENO: error: You cannot specify --with-quicktime and --with-xine at the same time" >&5
22308 echo "$as_me: error: You cannot specify --with-quicktime and --with-xine at the same time" >&2;}
22309    { (exit 1); exit 1; }; }
22310     fi
22311     if test x"$with_1394libs" = "xyes"; then
22312         { { echo "$as_me:$LINENO: error: You cannot specify --with-quicktime and --with-1394libs at the same time" >&5
22313 echo "$as_me: error: You cannot specify --with-quicktime and --with-1394libs at the same time" >&2;}
22314    { (exit 1); exit 1; }; }
22315     fi
22316     if test x"$with_v4l" = "xyes"; then
22317         { { echo "$as_me:$LINENO: error: You cannot specify --with-quicktime and --with-v4l at the same time" >&5
22318 echo "$as_me: error: You cannot specify --with-quicktime and --with-v4l at the same time" >&2;}
22319    { (exit 1); exit 1; }; }
22320     fi
22321
22322     # header presence and usability seem to be enough
22323     if test "${ac_cv_header_QuickTime_QuickTime_h+set}" = set; then
22324   { echo "$as_me:$LINENO: checking for QuickTime/QuickTime.h" >&5
22325 echo $ECHO_N "checking for QuickTime/QuickTime.h... $ECHO_C" >&6; }
22326 if test "${ac_cv_header_QuickTime_QuickTime_h+set}" = set; then
22327   echo $ECHO_N "(cached) $ECHO_C" >&6
22328 fi
22329 { echo "$as_me:$LINENO: result: $ac_cv_header_QuickTime_QuickTime_h" >&5
22330 echo "${ECHO_T}$ac_cv_header_QuickTime_QuickTime_h" >&6; }
22331 else
22332   # Is the header compilable?
22333 { echo "$as_me:$LINENO: checking QuickTime/QuickTime.h usability" >&5
22334 echo $ECHO_N "checking QuickTime/QuickTime.h usability... $ECHO_C" >&6; }
22335 cat >conftest.$ac_ext <<_ACEOF
22336 /* confdefs.h.  */
22337 _ACEOF
22338 cat confdefs.h >>conftest.$ac_ext
22339 cat >>conftest.$ac_ext <<_ACEOF
22340 /* end confdefs.h.  */
22341 $ac_includes_default
22342 #include <QuickTime/QuickTime.h>
22343 _ACEOF
22344 rm -f conftest.$ac_objext
22345 if { (ac_try="$ac_compile"
22346 case "(($ac_try" in
22347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22348   *) ac_try_echo=$ac_try;;
22349 esac
22350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22351   (eval "$ac_compile") 2>conftest.er1
22352   ac_status=$?
22353   grep -v '^ *+' conftest.er1 >conftest.err
22354   rm -f conftest.er1
22355   cat conftest.err >&5
22356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357   (exit $ac_status); } &&
22358          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22359   { (case "(($ac_try" in
22360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22361   *) ac_try_echo=$ac_try;;
22362 esac
22363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22364   (eval "$ac_try") 2>&5
22365   ac_status=$?
22366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367   (exit $ac_status); }; } &&
22368          { ac_try='test -s conftest.$ac_objext'
22369   { (case "(($ac_try" in
22370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22371   *) ac_try_echo=$ac_try;;
22372 esac
22373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22374   (eval "$ac_try") 2>&5
22375   ac_status=$?
22376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377   (exit $ac_status); }; }; then
22378   ac_header_compiler=yes
22379 else
22380   echo "$as_me: failed program was:" >&5
22381 sed 's/^/| /' conftest.$ac_ext >&5
22382
22383         ac_header_compiler=no
22384 fi
22385
22386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22388 echo "${ECHO_T}$ac_header_compiler" >&6; }
22389
22390 # Is the header present?
22391 { echo "$as_me:$LINENO: checking QuickTime/QuickTime.h presence" >&5
22392 echo $ECHO_N "checking QuickTime/QuickTime.h presence... $ECHO_C" >&6; }
22393 cat >conftest.$ac_ext <<_ACEOF
22394 /* confdefs.h.  */
22395 _ACEOF
22396 cat confdefs.h >>conftest.$ac_ext
22397 cat >>conftest.$ac_ext <<_ACEOF
22398 /* end confdefs.h.  */
22399 #include <QuickTime/QuickTime.h>
22400 _ACEOF
22401 if { (ac_try="$ac_cpp conftest.$ac_ext"
22402 case "(($ac_try" in
22403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22404   *) ac_try_echo=$ac_try;;
22405 esac
22406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22407   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22408   ac_status=$?
22409   grep -v '^ *+' conftest.er1 >conftest.err
22410   rm -f conftest.er1
22411   cat conftest.err >&5
22412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413   (exit $ac_status); } >/dev/null; then
22414   if test -s conftest.err; then
22415     ac_cpp_err=$ac_c_preproc_warn_flag
22416     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22417   else
22418     ac_cpp_err=
22419   fi
22420 else
22421   ac_cpp_err=yes
22422 fi
22423 if test -z "$ac_cpp_err"; then
22424   ac_header_preproc=yes
22425 else
22426   echo "$as_me: failed program was:" >&5
22427 sed 's/^/| /' conftest.$ac_ext >&5
22428
22429   ac_header_preproc=no
22430 fi
22431
22432 rm -f conftest.err conftest.$ac_ext
22433 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22434 echo "${ECHO_T}$ac_header_preproc" >&6; }
22435
22436 # So?  What about this header?
22437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22438   yes:no: )
22439     { echo "$as_me:$LINENO: WARNING: QuickTime/QuickTime.h: accepted by the compiler, rejected by the preprocessor!" >&5
22440 echo "$as_me: WARNING: QuickTime/QuickTime.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22441     { echo "$as_me:$LINENO: WARNING: QuickTime/QuickTime.h: proceeding with the compiler's result" >&5
22442 echo "$as_me: WARNING: QuickTime/QuickTime.h: proceeding with the compiler's result" >&2;}
22443     ac_header_preproc=yes
22444     ;;
22445   no:yes:* )
22446     { echo "$as_me:$LINENO: WARNING: QuickTime/QuickTime.h: present but cannot be compiled" >&5
22447 echo "$as_me: WARNING: QuickTime/QuickTime.h: present but cannot be compiled" >&2;}
22448     { echo "$as_me:$LINENO: WARNING: QuickTime/QuickTime.h:     check for missing prerequisite headers?" >&5
22449 echo "$as_me: WARNING: QuickTime/QuickTime.h:     check for missing prerequisite headers?" >&2;}
22450     { echo "$as_me:$LINENO: WARNING: QuickTime/QuickTime.h: see the Autoconf documentation" >&5
22451 echo "$as_me: WARNING: QuickTime/QuickTime.h: see the Autoconf documentation" >&2;}
22452     { echo "$as_me:$LINENO: WARNING: QuickTime/QuickTime.h:     section \"Present But Cannot Be Compiled\"" >&5
22453 echo "$as_me: WARNING: QuickTime/QuickTime.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22454     { echo "$as_me:$LINENO: WARNING: QuickTime/QuickTime.h: proceeding with the preprocessor's result" >&5
22455 echo "$as_me: WARNING: QuickTime/QuickTime.h: proceeding with the preprocessor's result" >&2;}
22456     { echo "$as_me:$LINENO: WARNING: QuickTime/QuickTime.h: in the future, the compiler will take precedence" >&5
22457 echo "$as_me: WARNING: QuickTime/QuickTime.h: in the future, the compiler will take precedence" >&2;}
22458     ( cat <<\_ASBOX
22459 ## -------------------------------------------------------- ##
22460 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
22461 ## -------------------------------------------------------- ##
22462 _ASBOX
22463      ) | sed "s/^/$as_me: WARNING:     /" >&2
22464     ;;
22465 esac
22466 { echo "$as_me:$LINENO: checking for QuickTime/QuickTime.h" >&5
22467 echo $ECHO_N "checking for QuickTime/QuickTime.h... $ECHO_C" >&6; }
22468 if test "${ac_cv_header_QuickTime_QuickTime_h+set}" = set; then
22469   echo $ECHO_N "(cached) $ECHO_C" >&6
22470 else
22471   ac_cv_header_QuickTime_QuickTime_h=$ac_header_preproc
22472 fi
22473 { echo "$as_me:$LINENO: result: $ac_cv_header_QuickTime_QuickTime_h" >&5
22474 echo "${ECHO_T}$ac_cv_header_QuickTime_QuickTime_h" >&6; }
22475
22476 fi
22477 if test $ac_cv_header_QuickTime_QuickTime_h = yes; then
22478
22479
22480 cat >>confdefs.h <<\_ACEOF
22481 #define HAVE_QUICKTIME
22482 _ACEOF
22483
22484                       have_quicktime=yes
22485
22486 else
22487    have_quicktime=no
22488 fi
22489
22490
22491
22492     # specify quicktime libraries
22493     if test x"$have_quicktime" = "xyes"; then
22494         QUICKTIME_LIBS="-Xlinker -framework -Xlinker QuickTime -Xlinker -framework -Xlinker QuartzCore"
22495
22496         # don't check alternatives if quicktime was found
22497         if test x"$with_ffmpeg" = "xauto"; then
22498             with_ffmpeg=no
22499         fi
22500         if test x"$with_xine" = "xauto"; then
22501             with_xine=no
22502         fi
22503         if test x"$with_1394libs" = "xauto"; then
22504             with_1394libs=no
22505         fi
22506         if test x"$with_v4l" = "xauto"; then
22507             with_v4l=no
22508         fi
22509     fi
22510 else
22511     # check if ./configure arguments are valid
22512     have_quicktime=no
22513     if test ! x"$with_quicktime" = "xno"; then
22514         { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-quicktime, continuing assuming 'no'" >&5
22515 echo "$as_me: WARNING: unexpected arguments for option --with-quicktime, continuing assuming 'no'" >&2;}
22516     fi
22517 fi
22518
22519
22520
22521
22522 if test x"$have_quicktime" = "xyes"; then
22523   BUILD_QUICKTIME_TRUE=
22524   BUILD_QUICKTIME_FALSE='#'
22525 else
22526   BUILD_QUICKTIME_TRUE='#'
22527   BUILD_QUICKTIME_FALSE=
22528 fi
22529
22530
22531 # prefer XINE over FFMPEG for video reading because it is quick, has a cleaner API
22532 # and allows for easy seeking with some formats
22533 if test x"$with_xine" = "xno"; then
22534     have_xine=no
22535     # XINE_LIBS=""
22536 else
22537
22538     # check if ./configure arguments are valid
22539     if test x"$with_xine" = "xauto"; then
22540        with_xine=yes
22541     fi
22542     if test x"$with_xine" = "xyes"; then
22543         if test "${ac_cv_header_xine_h+set}" = set; then
22544   { echo "$as_me:$LINENO: checking for xine.h" >&5
22545 echo $ECHO_N "checking for xine.h... $ECHO_C" >&6; }
22546 if test "${ac_cv_header_xine_h+set}" = set; then
22547   echo $ECHO_N "(cached) $ECHO_C" >&6
22548 fi
22549 { echo "$as_me:$LINENO: result: $ac_cv_header_xine_h" >&5
22550 echo "${ECHO_T}$ac_cv_header_xine_h" >&6; }
22551 else
22552   # Is the header compilable?
22553 { echo "$as_me:$LINENO: checking xine.h usability" >&5
22554 echo $ECHO_N "checking xine.h usability... $ECHO_C" >&6; }
22555 cat >conftest.$ac_ext <<_ACEOF
22556 /* confdefs.h.  */
22557 _ACEOF
22558 cat confdefs.h >>conftest.$ac_ext
22559 cat >>conftest.$ac_ext <<_ACEOF
22560 /* end confdefs.h.  */
22561 $ac_includes_default
22562 #include <xine.h>
22563 _ACEOF
22564 rm -f conftest.$ac_objext
22565 if { (ac_try="$ac_compile"
22566 case "(($ac_try" in
22567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22568   *) ac_try_echo=$ac_try;;
22569 esac
22570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22571   (eval "$ac_compile") 2>conftest.er1
22572   ac_status=$?
22573   grep -v '^ *+' conftest.er1 >conftest.err
22574   rm -f conftest.er1
22575   cat conftest.err >&5
22576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577   (exit $ac_status); } &&
22578          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22579   { (case "(($ac_try" in
22580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22581   *) ac_try_echo=$ac_try;;
22582 esac
22583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22584   (eval "$ac_try") 2>&5
22585   ac_status=$?
22586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587   (exit $ac_status); }; } &&
22588          { ac_try='test -s conftest.$ac_objext'
22589   { (case "(($ac_try" in
22590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22591   *) ac_try_echo=$ac_try;;
22592 esac
22593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22594   (eval "$ac_try") 2>&5
22595   ac_status=$?
22596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22597   (exit $ac_status); }; }; then
22598   ac_header_compiler=yes
22599 else
22600   echo "$as_me: failed program was:" >&5
22601 sed 's/^/| /' conftest.$ac_ext >&5
22602
22603         ac_header_compiler=no
22604 fi
22605
22606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22607 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22608 echo "${ECHO_T}$ac_header_compiler" >&6; }
22609
22610 # Is the header present?
22611 { echo "$as_me:$LINENO: checking xine.h presence" >&5
22612 echo $ECHO_N "checking xine.h presence... $ECHO_C" >&6; }
22613 cat >conftest.$ac_ext <<_ACEOF
22614 /* confdefs.h.  */
22615 _ACEOF
22616 cat confdefs.h >>conftest.$ac_ext
22617 cat >>conftest.$ac_ext <<_ACEOF
22618 /* end confdefs.h.  */
22619 #include <xine.h>
22620 _ACEOF
22621 if { (ac_try="$ac_cpp conftest.$ac_ext"
22622 case "(($ac_try" in
22623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22624   *) ac_try_echo=$ac_try;;
22625 esac
22626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22627   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22628   ac_status=$?
22629   grep -v '^ *+' conftest.er1 >conftest.err
22630   rm -f conftest.er1
22631   cat conftest.err >&5
22632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633   (exit $ac_status); } >/dev/null; then
22634   if test -s conftest.err; then
22635     ac_cpp_err=$ac_c_preproc_warn_flag
22636     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22637   else
22638     ac_cpp_err=
22639   fi
22640 else
22641   ac_cpp_err=yes
22642 fi
22643 if test -z "$ac_cpp_err"; then
22644   ac_header_preproc=yes
22645 else
22646   echo "$as_me: failed program was:" >&5
22647 sed 's/^/| /' conftest.$ac_ext >&5
22648
22649   ac_header_preproc=no
22650 fi
22651
22652 rm -f conftest.err conftest.$ac_ext
22653 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22654 echo "${ECHO_T}$ac_header_preproc" >&6; }
22655
22656 # So?  What about this header?
22657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22658   yes:no: )
22659     { echo "$as_me:$LINENO: WARNING: xine.h: accepted by the compiler, rejected by the preprocessor!" >&5
22660 echo "$as_me: WARNING: xine.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22661     { echo "$as_me:$LINENO: WARNING: xine.h: proceeding with the compiler's result" >&5
22662 echo "$as_me: WARNING: xine.h: proceeding with the compiler's result" >&2;}
22663     ac_header_preproc=yes
22664     ;;
22665   no:yes:* )
22666     { echo "$as_me:$LINENO: WARNING: xine.h: present but cannot be compiled" >&5
22667 echo "$as_me: WARNING: xine.h: present but cannot be compiled" >&2;}
22668     { echo "$as_me:$LINENO: WARNING: xine.h:     check for missing prerequisite headers?" >&5
22669 echo "$as_me: WARNING: xine.h:     check for missing prerequisite headers?" >&2;}
22670     { echo "$as_me:$LINENO: WARNING: xine.h: see the Autoconf documentation" >&5
22671 echo "$as_me: WARNING: xine.h: see the Autoconf documentation" >&2;}
22672     { echo "$as_me:$LINENO: WARNING: xine.h:     section \"Present But Cannot Be Compiled\"" >&5
22673 echo "$as_me: WARNING: xine.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22674     { echo "$as_me:$LINENO: WARNING: xine.h: proceeding with the preprocessor's result" >&5
22675 echo "$as_me: WARNING: xine.h: proceeding with the preprocessor's result" >&2;}
22676     { echo "$as_me:$LINENO: WARNING: xine.h: in the future, the compiler will take precedence" >&5
22677 echo "$as_me: WARNING: xine.h: in the future, the compiler will take precedence" >&2;}
22678     ( cat <<\_ASBOX
22679 ## -------------------------------------------------------- ##
22680 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
22681 ## -------------------------------------------------------- ##
22682 _ASBOX
22683      ) | sed "s/^/$as_me: WARNING:     /" >&2
22684     ;;
22685 esac
22686 { echo "$as_me:$LINENO: checking for xine.h" >&5
22687 echo $ECHO_N "checking for xine.h... $ECHO_C" >&6; }
22688 if test "${ac_cv_header_xine_h+set}" = set; then
22689   echo $ECHO_N "(cached) $ECHO_C" >&6
22690 else
22691   ac_cv_header_xine_h=$ac_header_preproc
22692 fi
22693 { echo "$as_me:$LINENO: result: $ac_cv_header_xine_h" >&5
22694 echo "${ECHO_T}$ac_cv_header_xine_h" >&6; }
22695
22696 fi
22697 if test $ac_cv_header_xine_h = yes; then
22698   { echo "$as_me:$LINENO: checking for xine_init in -lxine" >&5
22699 echo $ECHO_N "checking for xine_init in -lxine... $ECHO_C" >&6; }
22700 if test "${ac_cv_lib_xine_xine_init+set}" = set; then
22701   echo $ECHO_N "(cached) $ECHO_C" >&6
22702 else
22703   ac_check_lib_save_LIBS=$LIBS
22704 LIBS="-lxine  $LIBS"
22705 cat >conftest.$ac_ext <<_ACEOF
22706 /* confdefs.h.  */
22707 _ACEOF
22708 cat confdefs.h >>conftest.$ac_ext
22709 cat >>conftest.$ac_ext <<_ACEOF
22710 /* end confdefs.h.  */
22711
22712 /* Override any GCC internal prototype to avoid an error.
22713    Use char because int might match the return type of a GCC
22714    builtin and then its argument prototype would still apply.  */
22715 #ifdef __cplusplus
22716 extern "C"
22717 #endif
22718 char xine_init ();
22719 int
22720 main ()
22721 {
22722 return xine_init ();
22723   ;
22724   return 0;
22725 }
22726 _ACEOF
22727 rm -f conftest.$ac_objext conftest$ac_exeext
22728 if { (ac_try="$ac_link"
22729 case "(($ac_try" in
22730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22731   *) ac_try_echo=$ac_try;;
22732 esac
22733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22734   (eval "$ac_link") 2>conftest.er1
22735   ac_status=$?
22736   grep -v '^ *+' conftest.er1 >conftest.err
22737   rm -f conftest.er1
22738   cat conftest.err >&5
22739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740   (exit $ac_status); } &&
22741          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22742   { (case "(($ac_try" in
22743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22744   *) ac_try_echo=$ac_try;;
22745 esac
22746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22747   (eval "$ac_try") 2>&5
22748   ac_status=$?
22749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750   (exit $ac_status); }; } &&
22751          { ac_try='test -s conftest$ac_exeext'
22752   { (case "(($ac_try" in
22753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22754   *) ac_try_echo=$ac_try;;
22755 esac
22756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22757   (eval "$ac_try") 2>&5
22758   ac_status=$?
22759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760   (exit $ac_status); }; }; then
22761   ac_cv_lib_xine_xine_init=yes
22762 else
22763   echo "$as_me: failed program was:" >&5
22764 sed 's/^/| /' conftest.$ac_ext >&5
22765
22766         ac_cv_lib_xine_xine_init=no
22767 fi
22768
22769 rm -f core conftest.err conftest.$ac_objext \
22770       conftest$ac_exeext conftest.$ac_ext
22771 LIBS=$ac_check_lib_save_LIBS
22772 fi
22773 { echo "$as_me:$LINENO: result: $ac_cv_lib_xine_xine_init" >&5
22774 echo "${ECHO_T}$ac_cv_lib_xine_xine_init" >&6; }
22775 if test $ac_cv_lib_xine_xine_init = yes; then
22776
22777                                       have_xine=yes
22778
22779 cat >>confdefs.h <<\_ACEOF
22780 #define HAVE_XINE
22781 _ACEOF
22782
22783                                       XINE_LIBS="-lxine"
22784
22785 else
22786    have_xine=no
22787 fi
22788
22789 else
22790    have_xine=no
22791 fi
22792
22793
22794     else
22795         # if we get here then --with-xine was not called with 'yes','no' or 'auto'
22796         { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-xine, continuing assuming 'no'" >&5
22797 echo "$as_me: WARNING: unexpected arguments for option --with-xine, continuing assuming 'no'" >&2;}
22798         have_xine=no
22799     fi
22800 fi
22801
22802
22803
22804 if test x"$have_xine" = "xyes"; then
22805   BUILD_XINE_TRUE=
22806   BUILD_XINE_FALSE='#'
22807 else
22808   BUILD_XINE_TRUE='#'
22809   BUILD_XINE_FALSE=
22810 fi
22811
22812
22813 # unfortunately, xine does not feature video writing,
22814 # so we have to resort to FFMPEG here
22815 if test x"$with_ffmpeg" = "xno"; then
22816     have_ffmpeg=no
22817     # FFMPEGLIBS=""
22818 else
22819
22820     # check if ./configure arguments are valid
22821     if test x"$with_ffmpeg" = "xauto"; then
22822        with_ffmpeg=yes
22823     fi
22824     if test x"$with_ffmpeg" = "xyes"; then
22825         if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
22826   { echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5
22827 echo $ECHO_N "checking for ffmpeg/avcodec.h... $ECHO_C" >&6; }
22828 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
22829   echo $ECHO_N "(cached) $ECHO_C" >&6
22830 fi
22831 { echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avcodec_h" >&5
22832 echo "${ECHO_T}$ac_cv_header_ffmpeg_avcodec_h" >&6; }
22833 else
22834   # Is the header compilable?
22835 { echo "$as_me:$LINENO: checking ffmpeg/avcodec.h usability" >&5
22836 echo $ECHO_N "checking ffmpeg/avcodec.h usability... $ECHO_C" >&6; }
22837 cat >conftest.$ac_ext <<_ACEOF
22838 /* confdefs.h.  */
22839 _ACEOF
22840 cat confdefs.h >>conftest.$ac_ext
22841 cat >>conftest.$ac_ext <<_ACEOF
22842 /* end confdefs.h.  */
22843 $ac_includes_default
22844 #include <ffmpeg/avcodec.h>
22845 _ACEOF
22846 rm -f conftest.$ac_objext
22847 if { (ac_try="$ac_compile"
22848 case "(($ac_try" in
22849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22850   *) ac_try_echo=$ac_try;;
22851 esac
22852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22853   (eval "$ac_compile") 2>conftest.er1
22854   ac_status=$?
22855   grep -v '^ *+' conftest.er1 >conftest.err
22856   rm -f conftest.er1
22857   cat conftest.err >&5
22858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859   (exit $ac_status); } &&
22860          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22861   { (case "(($ac_try" in
22862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22863   *) ac_try_echo=$ac_try;;
22864 esac
22865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22866   (eval "$ac_try") 2>&5
22867   ac_status=$?
22868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869   (exit $ac_status); }; } &&
22870          { ac_try='test -s conftest.$ac_objext'
22871   { (case "(($ac_try" in
22872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22873   *) ac_try_echo=$ac_try;;
22874 esac
22875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22876   (eval "$ac_try") 2>&5
22877   ac_status=$?
22878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879   (exit $ac_status); }; }; then
22880   ac_header_compiler=yes
22881 else
22882   echo "$as_me: failed program was:" >&5
22883 sed 's/^/| /' conftest.$ac_ext >&5
22884
22885         ac_header_compiler=no
22886 fi
22887
22888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22889 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22890 echo "${ECHO_T}$ac_header_compiler" >&6; }
22891
22892 # Is the header present?
22893 { echo "$as_me:$LINENO: checking ffmpeg/avcodec.h presence" >&5
22894 echo $ECHO_N "checking ffmpeg/avcodec.h presence... $ECHO_C" >&6; }
22895 cat >conftest.$ac_ext <<_ACEOF
22896 /* confdefs.h.  */
22897 _ACEOF
22898 cat confdefs.h >>conftest.$ac_ext
22899 cat >>conftest.$ac_ext <<_ACEOF
22900 /* end confdefs.h.  */
22901 #include <ffmpeg/avcodec.h>
22902 _ACEOF
22903 if { (ac_try="$ac_cpp conftest.$ac_ext"
22904 case "(($ac_try" in
22905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22906   *) ac_try_echo=$ac_try;;
22907 esac
22908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22909   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22910   ac_status=$?
22911   grep -v '^ *+' conftest.er1 >conftest.err
22912   rm -f conftest.er1
22913   cat conftest.err >&5
22914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915   (exit $ac_status); } >/dev/null; then
22916   if test -s conftest.err; then
22917     ac_cpp_err=$ac_c_preproc_warn_flag
22918     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22919   else
22920     ac_cpp_err=
22921   fi
22922 else
22923   ac_cpp_err=yes
22924 fi
22925 if test -z "$ac_cpp_err"; then
22926   ac_header_preproc=yes
22927 else
22928   echo "$as_me: failed program was:" >&5
22929 sed 's/^/| /' conftest.$ac_ext >&5
22930
22931   ac_header_preproc=no
22932 fi
22933
22934 rm -f conftest.err conftest.$ac_ext
22935 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22936 echo "${ECHO_T}$ac_header_preproc" >&6; }
22937
22938 # So?  What about this header?
22939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22940   yes:no: )
22941     { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&5
22942 echo "$as_me: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22943     { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&5
22944 echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&2;}
22945     ac_header_preproc=yes
22946     ;;
22947   no:yes:* )
22948     { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&5
22949 echo "$as_me: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&2;}
22950     { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h:     check for missing prerequisite headers?" >&5
22951 echo "$as_me: WARNING: ffmpeg/avcodec.h:     check for missing prerequisite headers?" >&2;}
22952     { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&5
22953 echo "$as_me: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&2;}
22954     { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h:     section \"Present But Cannot Be Compiled\"" >&5
22955 echo "$as_me: WARNING: ffmpeg/avcodec.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22956     { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&5
22957 echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&2;}
22958     { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&5
22959 echo "$as_me: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&2;}
22960     ( cat <<\_ASBOX
22961 ## -------------------------------------------------------- ##
22962 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
22963 ## -------------------------------------------------------- ##
22964 _ASBOX
22965      ) | sed "s/^/$as_me: WARNING:     /" >&2
22966     ;;
22967 esac
22968 { echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5
22969 echo $ECHO_N "checking for ffmpeg/avcodec.h... $ECHO_C" >&6; }
22970 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
22971   echo $ECHO_N "(cached) $ECHO_C" >&6
22972 else
22973   ac_cv_header_ffmpeg_avcodec_h=$ac_header_preproc
22974 fi
22975 { echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avcodec_h" >&5
22976 echo "${ECHO_T}$ac_cv_header_ffmpeg_avcodec_h" >&6; }
22977
22978 fi
22979 if test $ac_cv_header_ffmpeg_avcodec_h = yes; then
22980   { echo "$as_me:$LINENO: checking for library containing avcodec_decode_video" >&5
22981 echo $ECHO_N "checking for library containing avcodec_decode_video... $ECHO_C" >&6; }
22982 if test "${ac_cv_search_avcodec_decode_video+set}" = set; then
22983   echo $ECHO_N "(cached) $ECHO_C" >&6
22984 else
22985   ac_func_search_save_LIBS=$LIBS
22986 cat >conftest.$ac_ext <<_ACEOF
22987 /* confdefs.h.  */
22988 _ACEOF
22989 cat confdefs.h >>conftest.$ac_ext
22990 cat >>conftest.$ac_ext <<_ACEOF
22991 /* end confdefs.h.  */
22992
22993 /* Override any GCC internal prototype to avoid an error.
22994    Use char because int might match the return type of a GCC
22995    builtin and then its argument prototype would still apply.  */
22996 #ifdef __cplusplus
22997 extern "C"
22998 #endif
22999 char avcodec_decode_video ();
23000 int
23001 main ()
23002 {
23003 return avcodec_decode_video ();
23004   ;
23005   return 0;
23006 }
23007 _ACEOF
23008 for ac_lib in '' avcodec_pic avcodec; do
23009   if test -z "$ac_lib"; then
23010     ac_res="none required"
23011   else
23012     ac_res=-l$ac_lib
23013     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23014   fi
23015   rm -f conftest.$ac_objext conftest$ac_exeext
23016 if { (ac_try="$ac_link"
23017 case "(($ac_try" in
23018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23019   *) ac_try_echo=$ac_try;;
23020 esac
23021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23022   (eval "$ac_link") 2>conftest.er1
23023   ac_status=$?
23024   grep -v '^ *+' conftest.er1 >conftest.err
23025   rm -f conftest.er1
23026   cat conftest.err >&5
23027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028   (exit $ac_status); } &&
23029          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23030   { (case "(($ac_try" in
23031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23032   *) ac_try_echo=$ac_try;;
23033 esac
23034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23035   (eval "$ac_try") 2>&5
23036   ac_status=$?
23037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038   (exit $ac_status); }; } &&
23039          { ac_try='test -s conftest$ac_exeext'
23040   { (case "(($ac_try" in
23041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23042   *) ac_try_echo=$ac_try;;
23043 esac
23044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23045   (eval "$ac_try") 2>&5
23046   ac_status=$?
23047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048   (exit $ac_status); }; }; then
23049   ac_cv_search_avcodec_decode_video=$ac_res
23050 else
23051   echo "$as_me: failed program was:" >&5
23052 sed 's/^/| /' conftest.$ac_ext >&5
23053
23054
23055 fi
23056
23057 rm -f core conftest.err conftest.$ac_objext \
23058       conftest$ac_exeext
23059   if test "${ac_cv_search_avcodec_decode_video+set}" = set; then
23060   break
23061 fi
23062 done
23063 if test "${ac_cv_search_avcodec_decode_video+set}" = set; then
23064   :
23065 else
23066   ac_cv_search_avcodec_decode_video=no
23067 fi
23068 rm conftest.$ac_ext
23069 LIBS=$ac_func_search_save_LIBS
23070 fi
23071 { echo "$as_me:$LINENO: result: $ac_cv_search_avcodec_decode_video" >&5
23072 echo "${ECHO_T}$ac_cv_search_avcodec_decode_video" >&6; }
23073 ac_res=$ac_cv_search_avcodec_decode_video
23074 if test "$ac_res" != no; then
23075   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23076
23077                                        { echo "$as_me:$LINENO: checking for library containing av_open_input_file" >&5
23078 echo $ECHO_N "checking for library containing av_open_input_file... $ECHO_C" >&6; }
23079 if test "${ac_cv_search_av_open_input_file+set}" = set; then
23080   echo $ECHO_N "(cached) $ECHO_C" >&6
23081 else
23082   ac_func_search_save_LIBS=$LIBS
23083 cat >conftest.$ac_ext <<_ACEOF
23084 /* confdefs.h.  */
23085 _ACEOF
23086 cat confdefs.h >>conftest.$ac_ext
23087 cat >>conftest.$ac_ext <<_ACEOF
23088 /* end confdefs.h.  */
23089
23090 /* Override any GCC internal prototype to avoid an error.
23091    Use char because int might match the return type of a GCC
23092    builtin and then its argument prototype would still apply.  */
23093 #ifdef __cplusplus
23094 extern "C"
23095 #endif
23096 char av_open_input_file ();
23097 int
23098 main ()
23099 {
23100 return av_open_input_file ();
23101   ;
23102   return 0;
23103 }
23104 _ACEOF
23105 for ac_lib in '' avformat_pic avformat; do
23106   if test -z "$ac_lib"; then
23107     ac_res="none required"
23108   else
23109     ac_res=-l$ac_lib
23110     LIBS="-l$ac_lib -lavcodec $ac_func_search_save_LIBS"
23111   fi
23112   rm -f conftest.$ac_objext conftest$ac_exeext
23113 if { (ac_try="$ac_link"
23114 case "(($ac_try" in
23115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23116   *) ac_try_echo=$ac_try;;
23117 esac
23118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23119   (eval "$ac_link") 2>conftest.er1
23120   ac_status=$?
23121   grep -v '^ *+' conftest.er1 >conftest.err
23122   rm -f conftest.er1
23123   cat conftest.err >&5
23124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23125   (exit $ac_status); } &&
23126          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23127   { (case "(($ac_try" in
23128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23129   *) ac_try_echo=$ac_try;;
23130 esac
23131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23132   (eval "$ac_try") 2>&5
23133   ac_status=$?
23134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135   (exit $ac_status); }; } &&
23136          { ac_try='test -s conftest$ac_exeext'
23137   { (case "(($ac_try" in
23138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23139   *) ac_try_echo=$ac_try;;
23140 esac
23141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23142   (eval "$ac_try") 2>&5
23143   ac_status=$?
23144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145   (exit $ac_status); }; }; then
23146   ac_cv_search_av_open_input_file=$ac_res
23147 else
23148   echo "$as_me: failed program was:" >&5
23149 sed 's/^/| /' conftest.$ac_ext >&5
23150
23151
23152 fi
23153
23154 rm -f core conftest.err conftest.$ac_objext \
23155       conftest$ac_exeext
23156   if test "${ac_cv_search_av_open_input_file+set}" = set; then
23157   break
23158 fi
23159 done
23160 if test "${ac_cv_search_av_open_input_file+set}" = set; then
23161   :
23162 else
23163   ac_cv_search_av_open_input_file=no
23164 fi
23165 rm conftest.$ac_ext
23166 LIBS=$ac_func_search_save_LIBS
23167 fi
23168 { echo "$as_me:$LINENO: result: $ac_cv_search_av_open_input_file" >&5
23169 echo "${ECHO_T}$ac_cv_search_av_open_input_file" >&6; }
23170 ac_res=$ac_cv_search_av_open_input_file
23171 if test "$ac_res" != no; then
23172   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23173
23174                                                       have_ffmpeg=yes
23175
23176 cat >>confdefs.h <<\_ACEOF
23177 #define HAVE_FFMPEG
23178 _ACEOF
23179
23180                                                       FFMPEGLIBS="-lavcodec -lavformat"
23181
23182 else
23183    have_ffmpeg=no
23184 fi
23185
23186
23187 else
23188    have_ffmpeg=no
23189 fi
23190
23191 else
23192    have_ffmpeg=no
23193 fi
23194
23195
23196     else
23197         # if we get here then --with-ffmpeg was not called with 'yes','no' or 'auto'
23198         { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-ffmpeg, continuing assuming 'no'" >&5
23199 echo "$as_me: WARNING: unexpected arguments for option --with-ffmpeg, continuing assuming 'no'" >&2;}
23200         have_ffmpeg=no
23201     fi
23202 fi
23203
23204
23205
23206 if test x"$have_ffmpeg" = "xyes"; then
23207   BUILD_FFMPEG_TRUE=
23208   BUILD_FFMPEG_FALSE='#'
23209 else
23210   BUILD_FFMPEG_TRUE='#'
23211   BUILD_FFMPEG_FALSE=
23212 fi
23213
23214
23215 # IEEE1394 / FireWire video video i/o with libdc1394, libraw1394
23216 # (can be managed by QuickTime as well)
23217 if test x"$with_1394libs" = "xno"; then
23218     have_raw1394=no
23219     have_dc1394=no
23220     # IEEE1394LIBS=""
23221 else
23222
23223     # check if ./configure arguments are valid
23224     if test x"$with_1394libs" = "xauto"; then
23225        with_1394libs=yes
23226     fi
23227     if test x"$with_1394libs" = "xyes"; then
23228
23229         SAVELIBS="$LIBS"
23230         have_raw1394=no
23231         have_dc1394=no
23232
23233         if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
23234   { echo "$as_me:$LINENO: checking for libraw1394/raw1394.h" >&5
23235 echo $ECHO_N "checking for libraw1394/raw1394.h... $ECHO_C" >&6; }
23236 if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
23237   echo $ECHO_N "(cached) $ECHO_C" >&6
23238 fi
23239 { echo "$as_me:$LINENO: result: $ac_cv_header_libraw1394_raw1394_h" >&5
23240 echo "${ECHO_T}$ac_cv_header_libraw1394_raw1394_h" >&6; }
23241 else
23242   # Is the header compilable?
23243 { echo "$as_me:$LINENO: checking libraw1394/raw1394.h usability" >&5
23244 echo $ECHO_N "checking libraw1394/raw1394.h usability... $ECHO_C" >&6; }
23245 cat >conftest.$ac_ext <<_ACEOF
23246 /* confdefs.h.  */
23247 _ACEOF
23248 cat confdefs.h >>conftest.$ac_ext
23249 cat >>conftest.$ac_ext <<_ACEOF
23250 /* end confdefs.h.  */
23251 $ac_includes_default
23252 #include <libraw1394/raw1394.h>
23253 _ACEOF
23254 rm -f conftest.$ac_objext
23255 if { (ac_try="$ac_compile"
23256 case "(($ac_try" in
23257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23258   *) ac_try_echo=$ac_try;;
23259 esac
23260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23261   (eval "$ac_compile") 2>conftest.er1
23262   ac_status=$?
23263   grep -v '^ *+' conftest.er1 >conftest.err
23264   rm -f conftest.er1
23265   cat conftest.err >&5
23266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267   (exit $ac_status); } &&
23268          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23269   { (case "(($ac_try" in
23270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23271   *) ac_try_echo=$ac_try;;
23272 esac
23273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23274   (eval "$ac_try") 2>&5
23275   ac_status=$?
23276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277   (exit $ac_status); }; } &&
23278          { ac_try='test -s conftest.$ac_objext'
23279   { (case "(($ac_try" in
23280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23281   *) ac_try_echo=$ac_try;;
23282 esac
23283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23284   (eval "$ac_try") 2>&5
23285   ac_status=$?
23286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287   (exit $ac_status); }; }; then
23288   ac_header_compiler=yes
23289 else
23290   echo "$as_me: failed program was:" >&5
23291 sed 's/^/| /' conftest.$ac_ext >&5
23292
23293         ac_header_compiler=no
23294 fi
23295
23296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23298 echo "${ECHO_T}$ac_header_compiler" >&6; }
23299
23300 # Is the header present?
23301 { echo "$as_me:$LINENO: checking libraw1394/raw1394.h presence" >&5
23302 echo $ECHO_N "checking libraw1394/raw1394.h presence... $ECHO_C" >&6; }
23303 cat >conftest.$ac_ext <<_ACEOF
23304 /* confdefs.h.  */
23305 _ACEOF
23306 cat confdefs.h >>conftest.$ac_ext
23307 cat >>conftest.$ac_ext <<_ACEOF
23308 /* end confdefs.h.  */
23309 #include <libraw1394/raw1394.h>
23310 _ACEOF
23311 if { (ac_try="$ac_cpp conftest.$ac_ext"
23312 case "(($ac_try" in
23313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23314   *) ac_try_echo=$ac_try;;
23315 esac
23316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23317   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23318   ac_status=$?
23319   grep -v '^ *+' conftest.er1 >conftest.err
23320   rm -f conftest.er1
23321   cat conftest.err >&5
23322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23323   (exit $ac_status); } >/dev/null; then
23324   if test -s conftest.err; then
23325     ac_cpp_err=$ac_c_preproc_warn_flag
23326     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23327   else
23328     ac_cpp_err=
23329   fi
23330 else
23331   ac_cpp_err=yes
23332 fi
23333 if test -z "$ac_cpp_err"; then
23334   ac_header_preproc=yes
23335 else
23336   echo "$as_me: failed program was:" >&5
23337 sed 's/^/| /' conftest.$ac_ext >&5
23338
23339   ac_header_preproc=no
23340 fi
23341
23342 rm -f conftest.err conftest.$ac_ext
23343 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23344 echo "${ECHO_T}$ac_header_preproc" >&6; }
23345
23346 # So?  What about this header?
23347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23348   yes:no: )
23349     { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: accepted by the compiler, rejected by the preprocessor!" >&5
23350 echo "$as_me: WARNING: libraw1394/raw1394.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23351     { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: proceeding with the compiler's result" >&5
23352 echo "$as_me: WARNING: libraw1394/raw1394.h: proceeding with the compiler's result" >&2;}
23353     ac_header_preproc=yes
23354     ;;
23355   no:yes:* )
23356     { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: present but cannot be compiled" >&5
23357 echo "$as_me: WARNING: libraw1394/raw1394.h: present but cannot be compiled" >&2;}
23358     { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h:     check for missing prerequisite headers?" >&5
23359 echo "$as_me: WARNING: libraw1394/raw1394.h:     check for missing prerequisite headers?" >&2;}
23360     { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: see the Autoconf documentation" >&5
23361 echo "$as_me: WARNING: libraw1394/raw1394.h: see the Autoconf documentation" >&2;}
23362     { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h:     section \"Present But Cannot Be Compiled\"" >&5
23363 echo "$as_me: WARNING: libraw1394/raw1394.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23364     { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: proceeding with the preprocessor's result" >&5
23365 echo "$as_me: WARNING: libraw1394/raw1394.h: proceeding with the preprocessor's result" >&2;}
23366     { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: in the future, the compiler will take precedence" >&5
23367 echo "$as_me: WARNING: libraw1394/raw1394.h: in the future, the compiler will take precedence" >&2;}
23368     ( cat <<\_ASBOX
23369 ## -------------------------------------------------------- ##
23370 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
23371 ## -------------------------------------------------------- ##
23372 _ASBOX
23373      ) | sed "s/^/$as_me: WARNING:     /" >&2
23374     ;;
23375 esac
23376 { echo "$as_me:$LINENO: checking for libraw1394/raw1394.h" >&5
23377 echo $ECHO_N "checking for libraw1394/raw1394.h... $ECHO_C" >&6; }
23378 if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
23379   echo $ECHO_N "(cached) $ECHO_C" >&6
23380 else
23381   ac_cv_header_libraw1394_raw1394_h=$ac_header_preproc
23382 fi
23383 { echo "$as_me:$LINENO: result: $ac_cv_header_libraw1394_raw1394_h" >&5
23384 echo "${ECHO_T}$ac_cv_header_libraw1394_raw1394_h" >&6; }
23385
23386 fi
23387 if test $ac_cv_header_libraw1394_raw1394_h = yes; then
23388   { echo "$as_me:$LINENO: checking for raw1394_new_handle in -lraw1394" >&5
23389 echo $ECHO_N "checking for raw1394_new_handle in -lraw1394... $ECHO_C" >&6; }
23390 if test "${ac_cv_lib_raw1394_raw1394_new_handle+set}" = set; then
23391   echo $ECHO_N "(cached) $ECHO_C" >&6
23392 else
23393   ac_check_lib_save_LIBS=$LIBS
23394 LIBS="-lraw1394  $LIBS"
23395 cat >conftest.$ac_ext <<_ACEOF
23396 /* confdefs.h.  */
23397 _ACEOF
23398 cat confdefs.h >>conftest.$ac_ext
23399 cat >>conftest.$ac_ext <<_ACEOF
23400 /* end confdefs.h.  */
23401
23402 /* Override any GCC internal prototype to avoid an error.
23403    Use char because int might match the return type of a GCC
23404    builtin and then its argument prototype would still apply.  */
23405 #ifdef __cplusplus
23406 extern "C"
23407 #endif
23408 char raw1394_new_handle ();
23409 int
23410 main ()
23411 {
23412 return raw1394_new_handle ();
23413   ;
23414   return 0;
23415 }
23416 _ACEOF
23417 rm -f conftest.$ac_objext conftest$ac_exeext
23418 if { (ac_try="$ac_link"
23419 case "(($ac_try" in
23420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23421   *) ac_try_echo=$ac_try;;
23422 esac
23423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23424   (eval "$ac_link") 2>conftest.er1
23425   ac_status=$?
23426   grep -v '^ *+' conftest.er1 >conftest.err
23427   rm -f conftest.er1
23428   cat conftest.err >&5
23429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430   (exit $ac_status); } &&
23431          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23432   { (case "(($ac_try" in
23433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23434   *) ac_try_echo=$ac_try;;
23435 esac
23436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23437   (eval "$ac_try") 2>&5
23438   ac_status=$?
23439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440   (exit $ac_status); }; } &&
23441          { ac_try='test -s conftest$ac_exeext'
23442   { (case "(($ac_try" in
23443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23444   *) ac_try_echo=$ac_try;;
23445 esac
23446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23447   (eval "$ac_try") 2>&5
23448   ac_status=$?
23449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450   (exit $ac_status); }; }; then
23451   ac_cv_lib_raw1394_raw1394_new_handle=yes
23452 else
23453   echo "$as_me: failed program was:" >&5
23454 sed 's/^/| /' conftest.$ac_ext >&5
23455
23456         ac_cv_lib_raw1394_raw1394_new_handle=no
23457 fi
23458
23459 rm -f core conftest.err conftest.$ac_objext \
23460       conftest$ac_exeext conftest.$ac_ext
23461 LIBS=$ac_check_lib_save_LIBS
23462 fi
23463 { echo "$as_me:$LINENO: result: $ac_cv_lib_raw1394_raw1394_new_handle" >&5
23464 echo "${ECHO_T}$ac_cv_lib_raw1394_raw1394_new_handle" >&6; }
23465 if test $ac_cv_lib_raw1394_raw1394_new_handle = yes; then
23466
23467                                        have_raw1394=yes
23468                                        LIBS="-lm -lraw1394 $LIBS"
23469
23470 fi
23471
23472 fi
23473
23474
23475
23476         if test x"$have_raw1394" = "xyes"; then
23477             if test "${ac_cv_header_libdc1394_dc1394_control_h+set}" = set; then
23478   { echo "$as_me:$LINENO: checking for libdc1394/dc1394_control.h" >&5
23479 echo $ECHO_N "checking for libdc1394/dc1394_control.h... $ECHO_C" >&6; }
23480 if test "${ac_cv_header_libdc1394_dc1394_control_h+set}" = set; then
23481   echo $ECHO_N "(cached) $ECHO_C" >&6
23482 fi
23483 { echo "$as_me:$LINENO: result: $ac_cv_header_libdc1394_dc1394_control_h" >&5
23484 echo "${ECHO_T}$ac_cv_header_libdc1394_dc1394_control_h" >&6; }
23485 else
23486   # Is the header compilable?
23487 { echo "$as_me:$LINENO: checking libdc1394/dc1394_control.h usability" >&5
23488 echo $ECHO_N "checking libdc1394/dc1394_control.h usability... $ECHO_C" >&6; }
23489 cat >conftest.$ac_ext <<_ACEOF
23490 /* confdefs.h.  */
23491 _ACEOF
23492 cat confdefs.h >>conftest.$ac_ext
23493 cat >>conftest.$ac_ext <<_ACEOF
23494 /* end confdefs.h.  */
23495 $ac_includes_default
23496 #include <libdc1394/dc1394_control.h>
23497 _ACEOF
23498 rm -f conftest.$ac_objext
23499 if { (ac_try="$ac_compile"
23500 case "(($ac_try" in
23501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23502   *) ac_try_echo=$ac_try;;
23503 esac
23504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23505   (eval "$ac_compile") 2>conftest.er1
23506   ac_status=$?
23507   grep -v '^ *+' conftest.er1 >conftest.err
23508   rm -f conftest.er1
23509   cat conftest.err >&5
23510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23511   (exit $ac_status); } &&
23512          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23513   { (case "(($ac_try" in
23514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23515   *) ac_try_echo=$ac_try;;
23516 esac
23517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23518   (eval "$ac_try") 2>&5
23519   ac_status=$?
23520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521   (exit $ac_status); }; } &&
23522          { ac_try='test -s conftest.$ac_objext'
23523   { (case "(($ac_try" in
23524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23525   *) ac_try_echo=$ac_try;;
23526 esac
23527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23528   (eval "$ac_try") 2>&5
23529   ac_status=$?
23530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531   (exit $ac_status); }; }; then
23532   ac_header_compiler=yes
23533 else
23534   echo "$as_me: failed program was:" >&5
23535 sed 's/^/| /' conftest.$ac_ext >&5
23536
23537         ac_header_compiler=no
23538 fi
23539
23540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23541 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23542 echo "${ECHO_T}$ac_header_compiler" >&6; }
23543
23544 # Is the header present?
23545 { echo "$as_me:$LINENO: checking libdc1394/dc1394_control.h presence" >&5
23546 echo $ECHO_N "checking libdc1394/dc1394_control.h presence... $ECHO_C" >&6; }
23547 cat >conftest.$ac_ext <<_ACEOF
23548 /* confdefs.h.  */
23549 _ACEOF
23550 cat confdefs.h >>conftest.$ac_ext
23551 cat >>conftest.$ac_ext <<_ACEOF
23552 /* end confdefs.h.  */
23553 #include <libdc1394/dc1394_control.h>
23554 _ACEOF
23555 if { (ac_try="$ac_cpp conftest.$ac_ext"
23556 case "(($ac_try" in
23557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23558   *) ac_try_echo=$ac_try;;
23559 esac
23560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23561   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23562   ac_status=$?
23563   grep -v '^ *+' conftest.er1 >conftest.err
23564   rm -f conftest.er1
23565   cat conftest.err >&5
23566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23567   (exit $ac_status); } >/dev/null; then
23568   if test -s conftest.err; then
23569     ac_cpp_err=$ac_c_preproc_warn_flag
23570     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23571   else
23572     ac_cpp_err=
23573   fi
23574 else
23575   ac_cpp_err=yes
23576 fi
23577 if test -z "$ac_cpp_err"; then
23578   ac_header_preproc=yes
23579 else
23580   echo "$as_me: failed program was:" >&5
23581 sed 's/^/| /' conftest.$ac_ext >&5
23582
23583   ac_header_preproc=no
23584 fi
23585
23586 rm -f conftest.err conftest.$ac_ext
23587 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23588 echo "${ECHO_T}$ac_header_preproc" >&6; }
23589
23590 # So?  What about this header?
23591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23592   yes:no: )
23593     { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: accepted by the compiler, rejected by the preprocessor!" >&5
23594 echo "$as_me: WARNING: libdc1394/dc1394_control.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23595     { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: proceeding with the compiler's result" >&5
23596 echo "$as_me: WARNING: libdc1394/dc1394_control.h: proceeding with the compiler's result" >&2;}
23597     ac_header_preproc=yes
23598     ;;
23599   no:yes:* )
23600     { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: present but cannot be compiled" >&5
23601 echo "$as_me: WARNING: libdc1394/dc1394_control.h: present but cannot be compiled" >&2;}
23602     { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h:     check for missing prerequisite headers?" >&5
23603 echo "$as_me: WARNING: libdc1394/dc1394_control.h:     check for missing prerequisite headers?" >&2;}
23604     { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: see the Autoconf documentation" >&5
23605 echo "$as_me: WARNING: libdc1394/dc1394_control.h: see the Autoconf documentation" >&2;}
23606     { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h:     section \"Present But Cannot Be Compiled\"" >&5
23607 echo "$as_me: WARNING: libdc1394/dc1394_control.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23608     { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: proceeding with the preprocessor's result" >&5
23609 echo "$as_me: WARNING: libdc1394/dc1394_control.h: proceeding with the preprocessor's result" >&2;}
23610     { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: in the future, the compiler will take precedence" >&5
23611 echo "$as_me: WARNING: libdc1394/dc1394_control.h: in the future, the compiler will take precedence" >&2;}
23612     ( cat <<\_ASBOX
23613 ## -------------------------------------------------------- ##
23614 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
23615 ## -------------------------------------------------------- ##
23616 _ASBOX
23617      ) | sed "s/^/$as_me: WARNING:     /" >&2
23618     ;;
23619 esac
23620 { echo "$as_me:$LINENO: checking for libdc1394/dc1394_control.h" >&5
23621 echo $ECHO_N "checking for libdc1394/dc1394_control.h... $ECHO_C" >&6; }
23622 if test "${ac_cv_header_libdc1394_dc1394_control_h+set}" = set; then
23623   echo $ECHO_N "(cached) $ECHO_C" >&6
23624 else
23625   ac_cv_header_libdc1394_dc1394_control_h=$ac_header_preproc
23626 fi
23627 { echo "$as_me:$LINENO: result: $ac_cv_header_libdc1394_dc1394_control_h" >&5
23628 echo "${ECHO_T}$ac_cv_header_libdc1394_dc1394_control_h" >&6; }
23629
23630 fi
23631 if test $ac_cv_header_libdc1394_dc1394_control_h = yes; then
23632   { echo "$as_me:$LINENO: checking for dc1394_camera_on in -ldc1394_control" >&5
23633 echo $ECHO_N "checking for dc1394_camera_on in -ldc1394_control... $ECHO_C" >&6; }
23634 if test "${ac_cv_lib_dc1394_control_dc1394_camera_on+set}" = set; then
23635   echo $ECHO_N "(cached) $ECHO_C" >&6
23636 else
23637   ac_check_lib_save_LIBS=$LIBS
23638 LIBS="-ldc1394_control  $LIBS"
23639 cat >conftest.$ac_ext <<_ACEOF
23640 /* confdefs.h.  */
23641 _ACEOF
23642 cat confdefs.h >>conftest.$ac_ext
23643 cat >>conftest.$ac_ext <<_ACEOF
23644 /* end confdefs.h.  */
23645
23646 /* Override any GCC internal prototype to avoid an error.
23647    Use char because int might match the return type of a GCC
23648    builtin and then its argument prototype would still apply.  */
23649 #ifdef __cplusplus
23650 extern "C"
23651 #endif
23652 char dc1394_camera_on ();
23653 int
23654 main ()
23655 {
23656 return dc1394_camera_on ();
23657   ;
23658   return 0;
23659 }
23660 _ACEOF
23661 rm -f conftest.$ac_objext conftest$ac_exeext
23662 if { (ac_try="$ac_link"
23663 case "(($ac_try" in
23664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23665   *) ac_try_echo=$ac_try;;
23666 esac
23667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23668   (eval "$ac_link") 2>conftest.er1
23669   ac_status=$?
23670   grep -v '^ *+' conftest.er1 >conftest.err
23671   rm -f conftest.er1
23672   cat conftest.err >&5
23673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23674   (exit $ac_status); } &&
23675          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23676   { (case "(($ac_try" in
23677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23678   *) ac_try_echo=$ac_try;;
23679 esac
23680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23681   (eval "$ac_try") 2>&5
23682   ac_status=$?
23683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23684   (exit $ac_status); }; } &&
23685          { ac_try='test -s conftest$ac_exeext'
23686   { (case "(($ac_try" in
23687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23688   *) ac_try_echo=$ac_try;;
23689 esac
23690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23691   (eval "$ac_try") 2>&5
23692   ac_status=$?
23693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23694   (exit $ac_status); }; }; then
23695   ac_cv_lib_dc1394_control_dc1394_camera_on=yes
23696 else
23697   echo "$as_me: failed program was:" >&5
23698 sed 's/^/| /' conftest.$ac_ext >&5
23699
23700         ac_cv_lib_dc1394_control_dc1394_camera_on=no
23701 fi
23702
23703 rm -f core conftest.err conftest.$ac_objext \
23704       conftest$ac_exeext conftest.$ac_ext
23705 LIBS=$ac_check_lib_save_LIBS
23706 fi
23707 { echo "$as_me:$LINENO: result: $ac_cv_lib_dc1394_control_dc1394_camera_on" >&5
23708 echo "${ECHO_T}$ac_cv_lib_dc1394_control_dc1394_camera_on" >&6; }
23709 if test $ac_cv_lib_dc1394_control_dc1394_camera_on = yes; then
23710
23711                                            have_dc1394=yes
23712
23713 cat >>confdefs.h <<\_ACEOF
23714 #define HAVE_DC1394
23715 _ACEOF
23716
23717                                            cat >conftest.$ac_ext <<_ACEOF
23718 /* confdefs.h.  */
23719 _ACEOF
23720 cat confdefs.h >>conftest.$ac_ext
23721 cat >>conftest.$ac_ext <<_ACEOF
23722 /* end confdefs.h.  */
23723 #include <libdc1394/dc1394_control.h>
23724
23725 _ACEOF
23726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23727   $EGREP "do_extra_buffering" >/dev/null 2>&1; then
23728
23729 cat >>confdefs.h <<\_ACEOF
23730 #define HAVE_DC1394_095
23731 _ACEOF
23732
23733 fi
23734 rm -f conftest*
23735
23736                                            IEEE1394LIBS="-lm -lraw1394 -ldc1394_control"
23737
23738 fi
23739
23740 fi
23741
23742
23743         fi
23744
23745         LIBS="$SAVELIBS"
23746     else
23747         # if we get here then --with-1394libs was not called with 'yes','no' or 'auto'
23748         { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-1394libs, continuing assuming 'no'" >&5
23749 echo "$as_me: WARNING: unexpected arguments for option --with-1394libs, continuing assuming 'no'" >&2;}
23750         have_dc1394=no
23751     fi
23752 fi
23753
23754
23755
23756 if test x"$have_dc1394" = "xyes"; then
23757   BUILD_DC1394_TRUE=
23758   BUILD_DC1394_FALSE='#'
23759 else
23760   BUILD_DC1394_TRUE='#'
23761   BUILD_DC1394_FALSE=
23762 fi
23763
23764
23765 # Video for Linux (V4L)
23766 # we support version 1 and 2 currently
23767 if test x"$with_v4l" = "xno"; then
23768     have_v4l=no
23769     have_v4l2=no
23770     have_v4l1or2=no
23771 else
23772     # check if ./configure arguments are valid
23773     if test x"$with_v4l" = "xauto"; then
23774        with_v4l=yes
23775     fi
23776     if test x"$with_v4l" = "xyes"; then
23777         if test "${ac_cv_header_linux_videodev_h+set}" = set; then
23778   { echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
23779 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6; }
23780 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
23781   echo $ECHO_N "(cached) $ECHO_C" >&6
23782 fi
23783 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
23784 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6; }
23785 else
23786   # Is the header compilable?
23787 { echo "$as_me:$LINENO: checking linux/videodev.h usability" >&5
23788 echo $ECHO_N "checking linux/videodev.h usability... $ECHO_C" >&6; }
23789 cat >conftest.$ac_ext <<_ACEOF
23790 /* confdefs.h.  */
23791 _ACEOF
23792 cat confdefs.h >>conftest.$ac_ext
23793 cat >>conftest.$ac_ext <<_ACEOF
23794 /* end confdefs.h.  */
23795 $ac_includes_default
23796 #include <linux/videodev.h>
23797 _ACEOF
23798 rm -f conftest.$ac_objext
23799 if { (ac_try="$ac_compile"
23800 case "(($ac_try" in
23801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23802   *) ac_try_echo=$ac_try;;
23803 esac
23804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23805   (eval "$ac_compile") 2>conftest.er1
23806   ac_status=$?
23807   grep -v '^ *+' conftest.er1 >conftest.err
23808   rm -f conftest.er1
23809   cat conftest.err >&5
23810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811   (exit $ac_status); } &&
23812          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23813   { (case "(($ac_try" in
23814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23815   *) ac_try_echo=$ac_try;;
23816 esac
23817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23818   (eval "$ac_try") 2>&5
23819   ac_status=$?
23820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23821   (exit $ac_status); }; } &&
23822          { ac_try='test -s conftest.$ac_objext'
23823   { (case "(($ac_try" in
23824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23825   *) ac_try_echo=$ac_try;;
23826 esac
23827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23828   (eval "$ac_try") 2>&5
23829   ac_status=$?
23830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23831   (exit $ac_status); }; }; then
23832   ac_header_compiler=yes
23833 else
23834   echo "$as_me: failed program was:" >&5
23835 sed 's/^/| /' conftest.$ac_ext >&5
23836
23837         ac_header_compiler=no
23838 fi
23839
23840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23842 echo "${ECHO_T}$ac_header_compiler" >&6; }
23843
23844 # Is the header present?
23845 { echo "$as_me:$LINENO: checking linux/videodev.h presence" >&5
23846 echo $ECHO_N "checking linux/videodev.h presence... $ECHO_C" >&6; }
23847 cat >conftest.$ac_ext <<_ACEOF
23848 /* confdefs.h.  */
23849 _ACEOF
23850 cat confdefs.h >>conftest.$ac_ext
23851 cat >>conftest.$ac_ext <<_ACEOF
23852 /* end confdefs.h.  */
23853 #include <linux/videodev.h>
23854 _ACEOF
23855 if { (ac_try="$ac_cpp conftest.$ac_ext"
23856 case "(($ac_try" in
23857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23858   *) ac_try_echo=$ac_try;;
23859 esac
23860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23861   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23862   ac_status=$?
23863   grep -v '^ *+' conftest.er1 >conftest.err
23864   rm -f conftest.er1
23865   cat conftest.err >&5
23866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23867   (exit $ac_status); } >/dev/null; then
23868   if test -s conftest.err; then
23869     ac_cpp_err=$ac_c_preproc_warn_flag
23870     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23871   else
23872     ac_cpp_err=
23873   fi
23874 else
23875   ac_cpp_err=yes
23876 fi
23877 if test -z "$ac_cpp_err"; then
23878   ac_header_preproc=yes
23879 else
23880   echo "$as_me: failed program was:" >&5
23881 sed 's/^/| /' conftest.$ac_ext >&5
23882
23883   ac_header_preproc=no
23884 fi
23885
23886 rm -f conftest.err conftest.$ac_ext
23887 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23888 echo "${ECHO_T}$ac_header_preproc" >&6; }
23889
23890 # So?  What about this header?
23891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23892   yes:no: )
23893     { echo "$as_me:$LINENO: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&5
23894 echo "$as_me: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23895     { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the compiler's result" >&5
23896 echo "$as_me: WARNING: linux/videodev.h: proceeding with the compiler's result" >&2;}
23897     ac_header_preproc=yes
23898     ;;
23899   no:yes:* )
23900     { echo "$as_me:$LINENO: WARNING: linux/videodev.h: present but cannot be compiled" >&5
23901 echo "$as_me: WARNING: linux/videodev.h: present but cannot be compiled" >&2;}
23902     { echo "$as_me:$LINENO: WARNING: linux/videodev.h:     check for missing prerequisite headers?" >&5
23903 echo "$as_me: WARNING: linux/videodev.h:     check for missing prerequisite headers?" >&2;}
23904     { echo "$as_me:$LINENO: WARNING: linux/videodev.h: see the Autoconf documentation" >&5
23905 echo "$as_me: WARNING: linux/videodev.h: see the Autoconf documentation" >&2;}
23906     { echo "$as_me:$LINENO: WARNING: linux/videodev.h:     section \"Present But Cannot Be Compiled\"" >&5
23907 echo "$as_me: WARNING: linux/videodev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23908     { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
23909 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
23910     { echo "$as_me:$LINENO: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&5
23911 echo "$as_me: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&2;}
23912     ( cat <<\_ASBOX
23913 ## -------------------------------------------------------- ##
23914 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
23915 ## -------------------------------------------------------- ##
23916 _ASBOX
23917      ) | sed "s/^/$as_me: WARNING:     /" >&2
23918     ;;
23919 esac
23920 { echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
23921 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6; }
23922 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
23923   echo $ECHO_N "(cached) $ECHO_C" >&6
23924 else
23925   ac_cv_header_linux_videodev_h=$ac_header_preproc
23926 fi
23927 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
23928 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6; }
23929
23930 fi
23931 if test $ac_cv_header_linux_videodev_h = yes; then
23932
23933
23934 cat >>confdefs.h <<\_ACEOF
23935 #define HAVE_CAMV4L
23936 _ACEOF
23937
23938                           have_v4l=yes
23939                           have_v4l1or2=yes
23940
23941 else
23942
23943                           have_v4l=no
23944                           have_v4l1or2=no
23945
23946 fi
23947
23948
23949         { echo "$as_me:$LINENO: checking for linux/videodev2.h" >&5
23950 echo $ECHO_N "checking for linux/videodev2.h... $ECHO_C" >&6; }
23951 if test "${ac_cv_header_linux_videodev2_h+set}" = set; then
23952   echo $ECHO_N "(cached) $ECHO_C" >&6
23953 else
23954   cat >conftest.$ac_ext <<_ACEOF
23955 /* confdefs.h.  */
23956 _ACEOF
23957 cat confdefs.h >>conftest.$ac_ext
23958 cat >>conftest.$ac_ext <<_ACEOF
23959 /* end confdefs.h.  */
23960
23961                 #include <asm/types.h>
23962                 #include <sys/time.h>
23963
23964
23965 #include <linux/videodev2.h>
23966 _ACEOF
23967 rm -f conftest.$ac_objext
23968 if { (ac_try="$ac_compile"
23969 case "(($ac_try" in
23970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23971   *) ac_try_echo=$ac_try;;
23972 esac
23973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23974   (eval "$ac_compile") 2>conftest.er1
23975   ac_status=$?
23976   grep -v '^ *+' conftest.er1 >conftest.err
23977   rm -f conftest.er1
23978   cat conftest.err >&5
23979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980   (exit $ac_status); } &&
23981          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23982   { (case "(($ac_try" in
23983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23984   *) ac_try_echo=$ac_try;;
23985 esac
23986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23987   (eval "$ac_try") 2>&5
23988   ac_status=$?
23989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990   (exit $ac_status); }; } &&
23991          { ac_try='test -s conftest.$ac_objext'
23992   { (case "(($ac_try" in
23993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23994   *) ac_try_echo=$ac_try;;
23995 esac
23996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23997   (eval "$ac_try") 2>&5
23998   ac_status=$?
23999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24000   (exit $ac_status); }; }; then
24001   ac_cv_header_linux_videodev2_h=yes
24002 else
24003   echo "$as_me: failed program was:" >&5
24004 sed 's/^/| /' conftest.$ac_ext >&5
24005
24006         ac_cv_header_linux_videodev2_h=no
24007 fi
24008
24009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24010 fi
24011 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev2_h" >&5
24012 echo "${ECHO_T}$ac_cv_header_linux_videodev2_h" >&6; }
24013 if test $ac_cv_header_linux_videodev2_h = yes; then
24014
24015
24016 cat >>confdefs.h <<\_ACEOF
24017 #define HAVE_CAMV4L2
24018 _ACEOF
24019
24020                           have_v4l2=yes
24021                           have_v4l1or2=yes
24022
24023 else
24024    have_v4l2=no
24025 fi
24026
24027
24028     else
24029         # if we get here then --with-v4l was not called with 'yes','no' or 'auto'
24030         { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-v4l, continuing assuming 'no'" >&5
24031 echo "$as_me: WARNING: unexpected arguments for option --with-v4l, continuing assuming 'no'" >&2;}
24032         have_v4l=no
24033         have_v4l2=no
24034         have_v4l1or2=no
24035     fi
24036
24037 fi
24038
24039
24040 if test x"$have_v4l1or2" = "xyes"; then
24041   BUILD_V4L_TRUE=
24042   BUILD_V4L_FALSE='#'
24043 else
24044   BUILD_V4L_TRUE='#'
24045   BUILD_V4L_FALSE=
24046 fi
24047
24048
24049
24050 ######################################################################
24051 # HighGUI dependencies for image I/O
24052
24053 SAVELIBS="$LIBS"
24054 IMAGELIBS=""
24055
24056
24057
24058 have_imageio=no
24059 if test x"$with_imageio" = "xauto"; then
24060     with_imageio=yes
24061 fi
24062 if test x"$with_imageio" = "xyes"; then
24063     if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
24064   { echo "$as_me:$LINENO: checking for ApplicationServices/ApplicationServices.h" >&5
24065 echo $ECHO_N "checking for ApplicationServices/ApplicationServices.h... $ECHO_C" >&6; }
24066 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
24067   echo $ECHO_N "(cached) $ECHO_C" >&6
24068 fi
24069 { echo "$as_me:$LINENO: result: $ac_cv_header_ApplicationServices_ApplicationServices_h" >&5
24070 echo "${ECHO_T}$ac_cv_header_ApplicationServices_ApplicationServices_h" >&6; }
24071 else
24072   # Is the header compilable?
24073 { echo "$as_me:$LINENO: checking ApplicationServices/ApplicationServices.h usability" >&5
24074 echo $ECHO_N "checking ApplicationServices/ApplicationServices.h usability... $ECHO_C" >&6; }
24075 cat >conftest.$ac_ext <<_ACEOF
24076 /* confdefs.h.  */
24077 _ACEOF
24078 cat confdefs.h >>conftest.$ac_ext
24079 cat >>conftest.$ac_ext <<_ACEOF
24080 /* end confdefs.h.  */
24081 $ac_includes_default
24082 #include <ApplicationServices/ApplicationServices.h>
24083 _ACEOF
24084 rm -f conftest.$ac_objext
24085 if { (ac_try="$ac_compile"
24086 case "(($ac_try" in
24087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24088   *) ac_try_echo=$ac_try;;
24089 esac
24090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24091   (eval "$ac_compile") 2>conftest.er1
24092   ac_status=$?
24093   grep -v '^ *+' conftest.er1 >conftest.err
24094   rm -f conftest.er1
24095   cat conftest.err >&5
24096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24097   (exit $ac_status); } &&
24098          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24099   { (case "(($ac_try" in
24100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24101   *) ac_try_echo=$ac_try;;
24102 esac
24103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24104   (eval "$ac_try") 2>&5
24105   ac_status=$?
24106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24107   (exit $ac_status); }; } &&
24108          { ac_try='test -s conftest.$ac_objext'
24109   { (case "(($ac_try" in
24110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24111   *) ac_try_echo=$ac_try;;
24112 esac
24113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24114   (eval "$ac_try") 2>&5
24115   ac_status=$?
24116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24117   (exit $ac_status); }; }; then
24118   ac_header_compiler=yes
24119 else
24120   echo "$as_me: failed program was:" >&5
24121 sed 's/^/| /' conftest.$ac_ext >&5
24122
24123         ac_header_compiler=no
24124 fi
24125
24126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24127 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24128 echo "${ECHO_T}$ac_header_compiler" >&6; }
24129
24130 # Is the header present?
24131 { echo "$as_me:$LINENO: checking ApplicationServices/ApplicationServices.h presence" >&5
24132 echo $ECHO_N "checking ApplicationServices/ApplicationServices.h presence... $ECHO_C" >&6; }
24133 cat >conftest.$ac_ext <<_ACEOF
24134 /* confdefs.h.  */
24135 _ACEOF
24136 cat confdefs.h >>conftest.$ac_ext
24137 cat >>conftest.$ac_ext <<_ACEOF
24138 /* end confdefs.h.  */
24139 #include <ApplicationServices/ApplicationServices.h>
24140 _ACEOF
24141 if { (ac_try="$ac_cpp conftest.$ac_ext"
24142 case "(($ac_try" in
24143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24144   *) ac_try_echo=$ac_try;;
24145 esac
24146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24147   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24148   ac_status=$?
24149   grep -v '^ *+' conftest.er1 >conftest.err
24150   rm -f conftest.er1
24151   cat conftest.err >&5
24152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24153   (exit $ac_status); } >/dev/null; then
24154   if test -s conftest.err; then
24155     ac_cpp_err=$ac_c_preproc_warn_flag
24156     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24157   else
24158     ac_cpp_err=
24159   fi
24160 else
24161   ac_cpp_err=yes
24162 fi
24163 if test -z "$ac_cpp_err"; then
24164   ac_header_preproc=yes
24165 else
24166   echo "$as_me: failed program was:" >&5
24167 sed 's/^/| /' conftest.$ac_ext >&5
24168
24169   ac_header_preproc=no
24170 fi
24171
24172 rm -f conftest.err conftest.$ac_ext
24173 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24174 echo "${ECHO_T}$ac_header_preproc" >&6; }
24175
24176 # So?  What about this header?
24177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24178   yes:no: )
24179     { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: accepted by the compiler, rejected by the preprocessor!" >&5
24180 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24181     { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the compiler's result" >&5
24182 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the compiler's result" >&2;}
24183     ac_header_preproc=yes
24184     ;;
24185   no:yes:* )
24186     { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: present but cannot be compiled" >&5
24187 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: present but cannot be compiled" >&2;}
24188     { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h:     check for missing prerequisite headers?" >&5
24189 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h:     check for missing prerequisite headers?" >&2;}
24190     { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: see the Autoconf documentation" >&5
24191 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: see the Autoconf documentation" >&2;}
24192     { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h:     section \"Present But Cannot Be Compiled\"" >&5
24193 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24194     { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the preprocessor's result" >&5
24195 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the preprocessor's result" >&2;}
24196     { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: in the future, the compiler will take precedence" >&5
24197 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: in the future, the compiler will take precedence" >&2;}
24198     ( cat <<\_ASBOX
24199 ## -------------------------------------------------------- ##
24200 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
24201 ## -------------------------------------------------------- ##
24202 _ASBOX
24203      ) | sed "s/^/$as_me: WARNING:     /" >&2
24204     ;;
24205 esac
24206 { echo "$as_me:$LINENO: checking for ApplicationServices/ApplicationServices.h" >&5
24207 echo $ECHO_N "checking for ApplicationServices/ApplicationServices.h... $ECHO_C" >&6; }
24208 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
24209   echo $ECHO_N "(cached) $ECHO_C" >&6
24210 else
24211   ac_cv_header_ApplicationServices_ApplicationServices_h=$ac_header_preproc
24212 fi
24213 { echo "$as_me:$LINENO: result: $ac_cv_header_ApplicationServices_ApplicationServices_h" >&5
24214 echo "${ECHO_T}$ac_cv_header_ApplicationServices_ApplicationServices_h" >&6; }
24215
24216 fi
24217 if test $ac_cv_header_ApplicationServices_ApplicationServices_h = yes; then
24218
24219                       have_imageio=yes
24220
24221 cat >>confdefs.h <<\_ACEOF
24222 #define HAVE_IMAGEIO
24223 _ACEOF
24224
24225                       IMAGELIBS="$IMAGELIBS -framework ApplicationServices"
24226                       LIBS="$LIBS -framework ApplicationServices"
24227
24228 else
24229    have_imageio=no
24230 fi
24231
24232
24233 fi
24234
24235
24236 if test x"$have_imageio" = "xyes"; then
24237   BUILD_IMAGEIO_TRUE=
24238   BUILD_IMAGEIO_FALSE='#'
24239 else
24240   BUILD_IMAGEIO_TRUE='#'
24241   BUILD_IMAGEIO_FALSE=
24242 fi
24243
24244
24245
24246 have_jpeg=no
24247 have_zlib=no
24248 have_png=no
24249 have_tiff=no
24250
24251 # there are problems with dependencies of ImageIO to libtiff, etc.
24252 # that we avoid by not linking them ourselves
24253 if test x"$have_imageio" = "xno" ; then
24254
24255   if test "${ac_cv_header_jpeglib_h+set}" = set; then
24256   { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
24257 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
24258 if test "${ac_cv_header_jpeglib_h+set}" = set; then
24259   echo $ECHO_N "(cached) $ECHO_C" >&6
24260 fi
24261 { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
24262 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
24263 else
24264   # Is the header compilable?
24265 { echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
24266 echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6; }
24267 cat >conftest.$ac_ext <<_ACEOF
24268 /* confdefs.h.  */
24269 _ACEOF
24270 cat confdefs.h >>conftest.$ac_ext
24271 cat >>conftest.$ac_ext <<_ACEOF
24272 /* end confdefs.h.  */
24273 $ac_includes_default
24274 #include <jpeglib.h>
24275 _ACEOF
24276 rm -f conftest.$ac_objext
24277 if { (ac_try="$ac_compile"
24278 case "(($ac_try" in
24279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24280   *) ac_try_echo=$ac_try;;
24281 esac
24282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24283   (eval "$ac_compile") 2>conftest.er1
24284   ac_status=$?
24285   grep -v '^ *+' conftest.er1 >conftest.err
24286   rm -f conftest.er1
24287   cat conftest.err >&5
24288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289   (exit $ac_status); } &&
24290          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24291   { (case "(($ac_try" in
24292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24293   *) ac_try_echo=$ac_try;;
24294 esac
24295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24296   (eval "$ac_try") 2>&5
24297   ac_status=$?
24298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24299   (exit $ac_status); }; } &&
24300          { ac_try='test -s conftest.$ac_objext'
24301   { (case "(($ac_try" in
24302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24303   *) ac_try_echo=$ac_try;;
24304 esac
24305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24306   (eval "$ac_try") 2>&5
24307   ac_status=$?
24308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24309   (exit $ac_status); }; }; then
24310   ac_header_compiler=yes
24311 else
24312   echo "$as_me: failed program was:" >&5
24313 sed 's/^/| /' conftest.$ac_ext >&5
24314
24315         ac_header_compiler=no
24316 fi
24317
24318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24319 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24320 echo "${ECHO_T}$ac_header_compiler" >&6; }
24321
24322 # Is the header present?
24323 { echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
24324 echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6; }
24325 cat >conftest.$ac_ext <<_ACEOF
24326 /* confdefs.h.  */
24327 _ACEOF
24328 cat confdefs.h >>conftest.$ac_ext
24329 cat >>conftest.$ac_ext <<_ACEOF
24330 /* end confdefs.h.  */
24331 #include <jpeglib.h>
24332 _ACEOF
24333 if { (ac_try="$ac_cpp conftest.$ac_ext"
24334 case "(($ac_try" in
24335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24336   *) ac_try_echo=$ac_try;;
24337 esac
24338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24339   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24340   ac_status=$?
24341   grep -v '^ *+' conftest.er1 >conftest.err
24342   rm -f conftest.er1
24343   cat conftest.err >&5
24344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24345   (exit $ac_status); } >/dev/null; then
24346   if test -s conftest.err; then
24347     ac_cpp_err=$ac_c_preproc_warn_flag
24348     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24349   else
24350     ac_cpp_err=
24351   fi
24352 else
24353   ac_cpp_err=yes
24354 fi
24355 if test -z "$ac_cpp_err"; then
24356   ac_header_preproc=yes
24357 else
24358   echo "$as_me: failed program was:" >&5
24359 sed 's/^/| /' conftest.$ac_ext >&5
24360
24361   ac_header_preproc=no
24362 fi
24363
24364 rm -f conftest.err conftest.$ac_ext
24365 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24366 echo "${ECHO_T}$ac_header_preproc" >&6; }
24367
24368 # So?  What about this header?
24369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24370   yes:no: )
24371     { echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24372 echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24373     { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
24374 echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
24375     ac_header_preproc=yes
24376     ;;
24377   no:yes:* )
24378     { echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
24379 echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
24380     { echo "$as_me:$LINENO: WARNING: jpeglib.h:     check for missing prerequisite headers?" >&5
24381 echo "$as_me: WARNING: jpeglib.h:     check for missing prerequisite headers?" >&2;}
24382     { echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
24383 echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
24384     { echo "$as_me:$LINENO: WARNING: jpeglib.h:     section \"Present But Cannot Be Compiled\"" >&5
24385 echo "$as_me: WARNING: jpeglib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24386     { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
24387 echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
24388     { echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
24389 echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
24390     ( cat <<\_ASBOX
24391 ## -------------------------------------------------------- ##
24392 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
24393 ## -------------------------------------------------------- ##
24394 _ASBOX
24395      ) | sed "s/^/$as_me: WARNING:     /" >&2
24396     ;;
24397 esac
24398 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
24399 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
24400 if test "${ac_cv_header_jpeglib_h+set}" = set; then
24401   echo $ECHO_N "(cached) $ECHO_C" >&6
24402 else
24403   ac_cv_header_jpeglib_h=$ac_header_preproc
24404 fi
24405 { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
24406 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
24407
24408 fi
24409 if test $ac_cv_header_jpeglib_h = yes; then
24410   { echo "$as_me:$LINENO: checking for jpeg_destroy_decompress in -ljpeg" >&5
24411 echo $ECHO_N "checking for jpeg_destroy_decompress in -ljpeg... $ECHO_C" >&6; }
24412 if test "${ac_cv_lib_jpeg_jpeg_destroy_decompress+set}" = set; then
24413   echo $ECHO_N "(cached) $ECHO_C" >&6
24414 else
24415   ac_check_lib_save_LIBS=$LIBS
24416 LIBS="-ljpeg  $LIBS"
24417 cat >conftest.$ac_ext <<_ACEOF
24418 /* confdefs.h.  */
24419 _ACEOF
24420 cat confdefs.h >>conftest.$ac_ext
24421 cat >>conftest.$ac_ext <<_ACEOF
24422 /* end confdefs.h.  */
24423
24424 /* Override any GCC internal prototype to avoid an error.
24425    Use char because int might match the return type of a GCC
24426    builtin and then its argument prototype would still apply.  */
24427 #ifdef __cplusplus
24428 extern "C"
24429 #endif
24430 char jpeg_destroy_decompress ();
24431 int
24432 main ()
24433 {
24434 return jpeg_destroy_decompress ();
24435   ;
24436   return 0;
24437 }
24438 _ACEOF
24439 rm -f conftest.$ac_objext conftest$ac_exeext
24440 if { (ac_try="$ac_link"
24441 case "(($ac_try" in
24442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24443   *) ac_try_echo=$ac_try;;
24444 esac
24445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24446   (eval "$ac_link") 2>conftest.er1
24447   ac_status=$?
24448   grep -v '^ *+' conftest.er1 >conftest.err
24449   rm -f conftest.er1
24450   cat conftest.err >&5
24451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24452   (exit $ac_status); } &&
24453          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24454   { (case "(($ac_try" in
24455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24456   *) ac_try_echo=$ac_try;;
24457 esac
24458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24459   (eval "$ac_try") 2>&5
24460   ac_status=$?
24461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24462   (exit $ac_status); }; } &&
24463          { ac_try='test -s conftest$ac_exeext'
24464   { (case "(($ac_try" in
24465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24466   *) ac_try_echo=$ac_try;;
24467 esac
24468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24469   (eval "$ac_try") 2>&5
24470   ac_status=$?
24471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24472   (exit $ac_status); }; }; then
24473   ac_cv_lib_jpeg_jpeg_destroy_decompress=yes
24474 else
24475   echo "$as_me: failed program was:" >&5
24476 sed 's/^/| /' conftest.$ac_ext >&5
24477
24478         ac_cv_lib_jpeg_jpeg_destroy_decompress=no
24479 fi
24480
24481 rm -f core conftest.err conftest.$ac_objext \
24482       conftest$ac_exeext conftest.$ac_ext
24483 LIBS=$ac_check_lib_save_LIBS
24484 fi
24485 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_decompress" >&5
24486 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_decompress" >&6; }
24487 if test $ac_cv_lib_jpeg_jpeg_destroy_decompress = yes; then
24488
24489                                  have_jpeg=yes
24490
24491 cat >>confdefs.h <<\_ACEOF
24492 #define HAVE_JPEG
24493 _ACEOF
24494
24495                                  IMAGELIBS="$IMAGELIBS -ljpeg"
24496
24497 fi
24498
24499 fi
24500
24501
24502
24503   if test "${ac_cv_header_zlib_h+set}" = set; then
24504   { echo "$as_me:$LINENO: checking for zlib.h" >&5
24505 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
24506 if test "${ac_cv_header_zlib_h+set}" = set; then
24507   echo $ECHO_N "(cached) $ECHO_C" >&6
24508 fi
24509 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24510 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
24511 else
24512   # Is the header compilable?
24513 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
24514 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
24515 cat >conftest.$ac_ext <<_ACEOF
24516 /* confdefs.h.  */
24517 _ACEOF
24518 cat confdefs.h >>conftest.$ac_ext
24519 cat >>conftest.$ac_ext <<_ACEOF
24520 /* end confdefs.h.  */
24521 $ac_includes_default
24522 #include <zlib.h>
24523 _ACEOF
24524 rm -f conftest.$ac_objext
24525 if { (ac_try="$ac_compile"
24526 case "(($ac_try" in
24527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24528   *) ac_try_echo=$ac_try;;
24529 esac
24530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24531   (eval "$ac_compile") 2>conftest.er1
24532   ac_status=$?
24533   grep -v '^ *+' conftest.er1 >conftest.err
24534   rm -f conftest.er1
24535   cat conftest.err >&5
24536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24537   (exit $ac_status); } &&
24538          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24539   { (case "(($ac_try" in
24540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24541   *) ac_try_echo=$ac_try;;
24542 esac
24543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24544   (eval "$ac_try") 2>&5
24545   ac_status=$?
24546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24547   (exit $ac_status); }; } &&
24548          { ac_try='test -s conftest.$ac_objext'
24549   { (case "(($ac_try" in
24550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24551   *) ac_try_echo=$ac_try;;
24552 esac
24553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24554   (eval "$ac_try") 2>&5
24555   ac_status=$?
24556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24557   (exit $ac_status); }; }; then
24558   ac_header_compiler=yes
24559 else
24560   echo "$as_me: failed program was:" >&5
24561 sed 's/^/| /' conftest.$ac_ext >&5
24562
24563         ac_header_compiler=no
24564 fi
24565
24566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24567 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24568 echo "${ECHO_T}$ac_header_compiler" >&6; }
24569
24570 # Is the header present?
24571 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
24572 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
24573 cat >conftest.$ac_ext <<_ACEOF
24574 /* confdefs.h.  */
24575 _ACEOF
24576 cat confdefs.h >>conftest.$ac_ext
24577 cat >>conftest.$ac_ext <<_ACEOF
24578 /* end confdefs.h.  */
24579 #include <zlib.h>
24580 _ACEOF
24581 if { (ac_try="$ac_cpp conftest.$ac_ext"
24582 case "(($ac_try" in
24583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24584   *) ac_try_echo=$ac_try;;
24585 esac
24586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24587   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24588   ac_status=$?
24589   grep -v '^ *+' conftest.er1 >conftest.err
24590   rm -f conftest.er1
24591   cat conftest.err >&5
24592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24593   (exit $ac_status); } >/dev/null; then
24594   if test -s conftest.err; then
24595     ac_cpp_err=$ac_c_preproc_warn_flag
24596     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24597   else
24598     ac_cpp_err=
24599   fi
24600 else
24601   ac_cpp_err=yes
24602 fi
24603 if test -z "$ac_cpp_err"; then
24604   ac_header_preproc=yes
24605 else
24606   echo "$as_me: failed program was:" >&5
24607 sed 's/^/| /' conftest.$ac_ext >&5
24608
24609   ac_header_preproc=no
24610 fi
24611
24612 rm -f conftest.err conftest.$ac_ext
24613 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24614 echo "${ECHO_T}$ac_header_preproc" >&6; }
24615
24616 # So?  What about this header?
24617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24618   yes:no: )
24619     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24620 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24621     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
24622 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
24623     ac_header_preproc=yes
24624     ;;
24625   no:yes:* )
24626     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
24627 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
24628     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
24629 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
24630     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
24631 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
24632     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
24633 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24634     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
24635 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
24636     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
24637 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
24638     ( cat <<\_ASBOX
24639 ## -------------------------------------------------------- ##
24640 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
24641 ## -------------------------------------------------------- ##
24642 _ASBOX
24643      ) | sed "s/^/$as_me: WARNING:     /" >&2
24644     ;;
24645 esac
24646 { echo "$as_me:$LINENO: checking for zlib.h" >&5
24647 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
24648 if test "${ac_cv_header_zlib_h+set}" = set; then
24649   echo $ECHO_N "(cached) $ECHO_C" >&6
24650 else
24651   ac_cv_header_zlib_h=$ac_header_preproc
24652 fi
24653 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24654 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
24655
24656 fi
24657 if test $ac_cv_header_zlib_h = yes; then
24658   { echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
24659 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; }
24660 if test "${ac_cv_lib_z_gzopen+set}" = set; then
24661   echo $ECHO_N "(cached) $ECHO_C" >&6
24662 else
24663   ac_check_lib_save_LIBS=$LIBS
24664 LIBS="-lz  $LIBS"
24665 cat >conftest.$ac_ext <<_ACEOF
24666 /* confdefs.h.  */
24667 _ACEOF
24668 cat confdefs.h >>conftest.$ac_ext
24669 cat >>conftest.$ac_ext <<_ACEOF
24670 /* end confdefs.h.  */
24671
24672 /* Override any GCC internal prototype to avoid an error.
24673    Use char because int might match the return type of a GCC
24674    builtin and then its argument prototype would still apply.  */
24675 #ifdef __cplusplus
24676 extern "C"
24677 #endif
24678 char gzopen ();
24679 int
24680 main ()
24681 {
24682 return gzopen ();
24683   ;
24684   return 0;
24685 }
24686 _ACEOF
24687 rm -f conftest.$ac_objext conftest$ac_exeext
24688 if { (ac_try="$ac_link"
24689 case "(($ac_try" in
24690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24691   *) ac_try_echo=$ac_try;;
24692 esac
24693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24694   (eval "$ac_link") 2>conftest.er1
24695   ac_status=$?
24696   grep -v '^ *+' conftest.er1 >conftest.err
24697   rm -f conftest.er1
24698   cat conftest.err >&5
24699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24700   (exit $ac_status); } &&
24701          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24702   { (case "(($ac_try" in
24703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24704   *) ac_try_echo=$ac_try;;
24705 esac
24706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24707   (eval "$ac_try") 2>&5
24708   ac_status=$?
24709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710   (exit $ac_status); }; } &&
24711          { ac_try='test -s conftest$ac_exeext'
24712   { (case "(($ac_try" in
24713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24714   *) ac_try_echo=$ac_try;;
24715 esac
24716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24717   (eval "$ac_try") 2>&5
24718   ac_status=$?
24719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24720   (exit $ac_status); }; }; then
24721   ac_cv_lib_z_gzopen=yes
24722 else
24723   echo "$as_me: failed program was:" >&5
24724 sed 's/^/| /' conftest.$ac_ext >&5
24725
24726         ac_cv_lib_z_gzopen=no
24727 fi
24728
24729 rm -f core conftest.err conftest.$ac_objext \
24730       conftest$ac_exeext conftest.$ac_ext
24731 LIBS=$ac_check_lib_save_LIBS
24732 fi
24733 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
24734 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; }
24735 if test $ac_cv_lib_z_gzopen = yes; then
24736
24737                                  have_zlib=yes
24738
24739 cat >>confdefs.h <<\_ACEOF
24740 #define HAVE_ZLIB
24741 _ACEOF
24742
24743                                  IMAGELIBS="$IMAGELIBS -lz -lm"
24744                                  LIBS="$LIBS -lz -lm"
24745
24746 fi
24747
24748 fi
24749
24750
24751
24752   if test "${ac_cv_header_png_h+set}" = set; then
24753   { echo "$as_me:$LINENO: checking for png.h" >&5
24754 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
24755 if test "${ac_cv_header_png_h+set}" = set; then
24756   echo $ECHO_N "(cached) $ECHO_C" >&6
24757 fi
24758 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24759 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
24760 else
24761   # Is the header compilable?
24762 { echo "$as_me:$LINENO: checking png.h usability" >&5
24763 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6; }
24764 cat >conftest.$ac_ext <<_ACEOF
24765 /* confdefs.h.  */
24766 _ACEOF
24767 cat confdefs.h >>conftest.$ac_ext
24768 cat >>conftest.$ac_ext <<_ACEOF
24769 /* end confdefs.h.  */
24770 $ac_includes_default
24771 #include <png.h>
24772 _ACEOF
24773 rm -f conftest.$ac_objext
24774 if { (ac_try="$ac_compile"
24775 case "(($ac_try" in
24776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24777   *) ac_try_echo=$ac_try;;
24778 esac
24779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24780   (eval "$ac_compile") 2>conftest.er1
24781   ac_status=$?
24782   grep -v '^ *+' conftest.er1 >conftest.err
24783   rm -f conftest.er1
24784   cat conftest.err >&5
24785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24786   (exit $ac_status); } &&
24787          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24788   { (case "(($ac_try" in
24789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24790   *) ac_try_echo=$ac_try;;
24791 esac
24792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24793   (eval "$ac_try") 2>&5
24794   ac_status=$?
24795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24796   (exit $ac_status); }; } &&
24797          { ac_try='test -s conftest.$ac_objext'
24798   { (case "(($ac_try" in
24799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24800   *) ac_try_echo=$ac_try;;
24801 esac
24802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24803   (eval "$ac_try") 2>&5
24804   ac_status=$?
24805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806   (exit $ac_status); }; }; then
24807   ac_header_compiler=yes
24808 else
24809   echo "$as_me: failed program was:" >&5
24810 sed 's/^/| /' conftest.$ac_ext >&5
24811
24812         ac_header_compiler=no
24813 fi
24814
24815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24816 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24817 echo "${ECHO_T}$ac_header_compiler" >&6; }
24818
24819 # Is the header present?
24820 { echo "$as_me:$LINENO: checking png.h presence" >&5
24821 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6; }
24822 cat >conftest.$ac_ext <<_ACEOF
24823 /* confdefs.h.  */
24824 _ACEOF
24825 cat confdefs.h >>conftest.$ac_ext
24826 cat >>conftest.$ac_ext <<_ACEOF
24827 /* end confdefs.h.  */
24828 #include <png.h>
24829 _ACEOF
24830 if { (ac_try="$ac_cpp conftest.$ac_ext"
24831 case "(($ac_try" in
24832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24833   *) ac_try_echo=$ac_try;;
24834 esac
24835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24836   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24837   ac_status=$?
24838   grep -v '^ *+' conftest.er1 >conftest.err
24839   rm -f conftest.er1
24840   cat conftest.err >&5
24841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24842   (exit $ac_status); } >/dev/null; then
24843   if test -s conftest.err; then
24844     ac_cpp_err=$ac_c_preproc_warn_flag
24845     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24846   else
24847     ac_cpp_err=
24848   fi
24849 else
24850   ac_cpp_err=yes
24851 fi
24852 if test -z "$ac_cpp_err"; then
24853   ac_header_preproc=yes
24854 else
24855   echo "$as_me: failed program was:" >&5
24856 sed 's/^/| /' conftest.$ac_ext >&5
24857
24858   ac_header_preproc=no
24859 fi
24860
24861 rm -f conftest.err conftest.$ac_ext
24862 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24863 echo "${ECHO_T}$ac_header_preproc" >&6; }
24864
24865 # So?  What about this header?
24866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24867   yes:no: )
24868     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
24869 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24870     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
24871 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
24872     ac_header_preproc=yes
24873     ;;
24874   no:yes:* )
24875     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
24876 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
24877     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
24878 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
24879     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
24880 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
24881     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
24882 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24883     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
24884 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
24885     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
24886 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
24887     ( cat <<\_ASBOX
24888 ## -------------------------------------------------------- ##
24889 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
24890 ## -------------------------------------------------------- ##
24891 _ASBOX
24892      ) | sed "s/^/$as_me: WARNING:     /" >&2
24893     ;;
24894 esac
24895 { echo "$as_me:$LINENO: checking for png.h" >&5
24896 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
24897 if test "${ac_cv_header_png_h+set}" = set; then
24898   echo $ECHO_N "(cached) $ECHO_C" >&6
24899 else
24900   ac_cv_header_png_h=$ac_header_preproc
24901 fi
24902 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24903 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
24904
24905 fi
24906 if test $ac_cv_header_png_h = yes; then
24907
24908
24909 cat >>confdefs.h <<\_ACEOF
24910 #define HAVE_PNG_H
24911 _ACEOF
24912
24913                     have_png=yes
24914
24915 fi
24916
24917
24918   if test "${ac_cv_header_libpng_png_h+set}" = set; then
24919   { echo "$as_me:$LINENO: checking for libpng/png.h" >&5
24920 echo $ECHO_N "checking for libpng/png.h... $ECHO_C" >&6; }
24921 if test "${ac_cv_header_libpng_png_h+set}" = set; then
24922   echo $ECHO_N "(cached) $ECHO_C" >&6
24923 fi
24924 { echo "$as_me:$LINENO: result: $ac_cv_header_libpng_png_h" >&5
24925 echo "${ECHO_T}$ac_cv_header_libpng_png_h" >&6; }
24926 else
24927   # Is the header compilable?
24928 { echo "$as_me:$LINENO: checking libpng/png.h usability" >&5
24929 echo $ECHO_N "checking libpng/png.h usability... $ECHO_C" >&6; }
24930 cat >conftest.$ac_ext <<_ACEOF
24931 /* confdefs.h.  */
24932 _ACEOF
24933 cat confdefs.h >>conftest.$ac_ext
24934 cat >>conftest.$ac_ext <<_ACEOF
24935 /* end confdefs.h.  */
24936 $ac_includes_default
24937 #include <libpng/png.h>
24938 _ACEOF
24939 rm -f conftest.$ac_objext
24940 if { (ac_try="$ac_compile"
24941 case "(($ac_try" in
24942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24943   *) ac_try_echo=$ac_try;;
24944 esac
24945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24946   (eval "$ac_compile") 2>conftest.er1
24947   ac_status=$?
24948   grep -v '^ *+' conftest.er1 >conftest.err
24949   rm -f conftest.er1
24950   cat conftest.err >&5
24951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24952   (exit $ac_status); } &&
24953          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24954   { (case "(($ac_try" in
24955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24956   *) ac_try_echo=$ac_try;;
24957 esac
24958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24959   (eval "$ac_try") 2>&5
24960   ac_status=$?
24961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24962   (exit $ac_status); }; } &&
24963          { ac_try='test -s conftest.$ac_objext'
24964   { (case "(($ac_try" in
24965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24966   *) ac_try_echo=$ac_try;;
24967 esac
24968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24969   (eval "$ac_try") 2>&5
24970   ac_status=$?
24971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24972   (exit $ac_status); }; }; then
24973   ac_header_compiler=yes
24974 else
24975   echo "$as_me: failed program was:" >&5
24976 sed 's/^/| /' conftest.$ac_ext >&5
24977
24978         ac_header_compiler=no
24979 fi
24980
24981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24982 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24983 echo "${ECHO_T}$ac_header_compiler" >&6; }
24984
24985 # Is the header present?
24986 { echo "$as_me:$LINENO: checking libpng/png.h presence" >&5
24987 echo $ECHO_N "checking libpng/png.h presence... $ECHO_C" >&6; }
24988 cat >conftest.$ac_ext <<_ACEOF
24989 /* confdefs.h.  */
24990 _ACEOF
24991 cat confdefs.h >>conftest.$ac_ext
24992 cat >>conftest.$ac_ext <<_ACEOF
24993 /* end confdefs.h.  */
24994 #include <libpng/png.h>
24995 _ACEOF
24996 if { (ac_try="$ac_cpp conftest.$ac_ext"
24997 case "(($ac_try" in
24998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24999   *) ac_try_echo=$ac_try;;
25000 esac
25001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25002   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25003   ac_status=$?
25004   grep -v '^ *+' conftest.er1 >conftest.err
25005   rm -f conftest.er1
25006   cat conftest.err >&5
25007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25008   (exit $ac_status); } >/dev/null; then
25009   if test -s conftest.err; then
25010     ac_cpp_err=$ac_c_preproc_warn_flag
25011     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25012   else
25013     ac_cpp_err=
25014   fi
25015 else
25016   ac_cpp_err=yes
25017 fi
25018 if test -z "$ac_cpp_err"; then
25019   ac_header_preproc=yes
25020 else
25021   echo "$as_me: failed program was:" >&5
25022 sed 's/^/| /' conftest.$ac_ext >&5
25023
25024   ac_header_preproc=no
25025 fi
25026
25027 rm -f conftest.err conftest.$ac_ext
25028 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25029 echo "${ECHO_T}$ac_header_preproc" >&6; }
25030
25031 # So?  What about this header?
25032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25033   yes:no: )
25034     { echo "$as_me:$LINENO: WARNING: libpng/png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25035 echo "$as_me: WARNING: libpng/png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25036     { echo "$as_me:$LINENO: WARNING: libpng/png.h: proceeding with the compiler's result" >&5
25037 echo "$as_me: WARNING: libpng/png.h: proceeding with the compiler's result" >&2;}
25038     ac_header_preproc=yes
25039     ;;
25040   no:yes:* )
25041     { echo "$as_me:$LINENO: WARNING: libpng/png.h: present but cannot be compiled" >&5
25042 echo "$as_me: WARNING: libpng/png.h: present but cannot be compiled" >&2;}
25043     { echo "$as_me:$LINENO: WARNING: libpng/png.h:     check for missing prerequisite headers?" >&5
25044 echo "$as_me: WARNING: libpng/png.h:     check for missing prerequisite headers?" >&2;}
25045     { echo "$as_me:$LINENO: WARNING: libpng/png.h: see the Autoconf documentation" >&5
25046 echo "$as_me: WARNING: libpng/png.h: see the Autoconf documentation" >&2;}
25047     { echo "$as_me:$LINENO: WARNING: libpng/png.h:     section \"Present But Cannot Be Compiled\"" >&5
25048 echo "$as_me: WARNING: libpng/png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25049     { echo "$as_me:$LINENO: WARNING: libpng/png.h: proceeding with the preprocessor's result" >&5
25050 echo "$as_me: WARNING: libpng/png.h: proceeding with the preprocessor's result" >&2;}
25051     { echo "$as_me:$LINENO: WARNING: libpng/png.h: in the future, the compiler will take precedence" >&5
25052 echo "$as_me: WARNING: libpng/png.h: in the future, the compiler will take precedence" >&2;}
25053     ( cat <<\_ASBOX
25054 ## -------------------------------------------------------- ##
25055 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
25056 ## -------------------------------------------------------- ##
25057 _ASBOX
25058      ) | sed "s/^/$as_me: WARNING:     /" >&2
25059     ;;
25060 esac
25061 { echo "$as_me:$LINENO: checking for libpng/png.h" >&5
25062 echo $ECHO_N "checking for libpng/png.h... $ECHO_C" >&6; }
25063 if test "${ac_cv_header_libpng_png_h+set}" = set; then
25064   echo $ECHO_N "(cached) $ECHO_C" >&6
25065 else
25066   ac_cv_header_libpng_png_h=$ac_header_preproc
25067 fi
25068 { echo "$as_me:$LINENO: result: $ac_cv_header_libpng_png_h" >&5
25069 echo "${ECHO_T}$ac_cv_header_libpng_png_h" >&6; }
25070
25071 fi
25072 if test $ac_cv_header_libpng_png_h = yes; then
25073
25074
25075 cat >>confdefs.h <<\_ACEOF
25076 #define HAVE_LIBPNG_PNG_H
25077 _ACEOF
25078
25079                     have_png=yes
25080
25081 fi
25082
25083
25084
25085   if test x"$have_png" = "xyes"; then
25086     { echo "$as_me:$LINENO: checking for png_read_image in -lpng12" >&5
25087 echo $ECHO_N "checking for png_read_image in -lpng12... $ECHO_C" >&6; }
25088 if test "${ac_cv_lib_png12_png_read_image+set}" = set; then
25089   echo $ECHO_N "(cached) $ECHO_C" >&6
25090 else
25091   ac_check_lib_save_LIBS=$LIBS
25092 LIBS="-lpng12  $LIBS"
25093 cat >conftest.$ac_ext <<_ACEOF
25094 /* confdefs.h.  */
25095 _ACEOF
25096 cat confdefs.h >>conftest.$ac_ext
25097 cat >>conftest.$ac_ext <<_ACEOF
25098 /* end confdefs.h.  */
25099
25100 /* Override any GCC internal prototype to avoid an error.
25101    Use char because int might match the return type of a GCC
25102    builtin and then its argument prototype would still apply.  */
25103 #ifdef __cplusplus
25104 extern "C"
25105 #endif
25106 char png_read_image ();
25107 int
25108 main ()
25109 {
25110 return png_read_image ();
25111   ;
25112   return 0;
25113 }
25114 _ACEOF
25115 rm -f conftest.$ac_objext conftest$ac_exeext
25116 if { (ac_try="$ac_link"
25117 case "(($ac_try" in
25118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25119   *) ac_try_echo=$ac_try;;
25120 esac
25121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25122   (eval "$ac_link") 2>conftest.er1
25123   ac_status=$?
25124   grep -v '^ *+' conftest.er1 >conftest.err
25125   rm -f conftest.er1
25126   cat conftest.err >&5
25127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128   (exit $ac_status); } &&
25129          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25130   { (case "(($ac_try" in
25131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25132   *) ac_try_echo=$ac_try;;
25133 esac
25134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25135   (eval "$ac_try") 2>&5
25136   ac_status=$?
25137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25138   (exit $ac_status); }; } &&
25139          { ac_try='test -s conftest$ac_exeext'
25140   { (case "(($ac_try" in
25141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25142   *) ac_try_echo=$ac_try;;
25143 esac
25144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25145   (eval "$ac_try") 2>&5
25146   ac_status=$?
25147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25148   (exit $ac_status); }; }; then
25149   ac_cv_lib_png12_png_read_image=yes
25150 else
25151   echo "$as_me: failed program was:" >&5
25152 sed 's/^/| /' conftest.$ac_ext >&5
25153
25154         ac_cv_lib_png12_png_read_image=no
25155 fi
25156
25157 rm -f core conftest.err conftest.$ac_objext \
25158       conftest$ac_exeext conftest.$ac_ext
25159 LIBS=$ac_check_lib_save_LIBS
25160 fi
25161 { echo "$as_me:$LINENO: result: $ac_cv_lib_png12_png_read_image" >&5
25162 echo "${ECHO_T}$ac_cv_lib_png12_png_read_image" >&6; }
25163 if test $ac_cv_lib_png12_png_read_image = yes; then
25164
25165                    have_png=yes
25166
25167 cat >>confdefs.h <<\_ACEOF
25168 #define HAVE_PNG
25169 _ACEOF
25170
25171                    IMAGELIBS="-lpng12 $IMAGELIBS"
25172                    LIBS="-lpng12 $LIBS"
25173
25174
25175 for ac_func in png_get_valid png_set_tRNS_to_alpha
25176 do
25177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25181   echo $ECHO_N "(cached) $ECHO_C" >&6
25182 else
25183   cat >conftest.$ac_ext <<_ACEOF
25184 /* confdefs.h.  */
25185 _ACEOF
25186 cat confdefs.h >>conftest.$ac_ext
25187 cat >>conftest.$ac_ext <<_ACEOF
25188 /* end confdefs.h.  */
25189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25190    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25191 #define $ac_func innocuous_$ac_func
25192
25193 /* System header to define __stub macros and hopefully few prototypes,
25194     which can conflict with char $ac_func (); below.
25195     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25196     <limits.h> exists even on freestanding compilers.  */
25197
25198 #ifdef __STDC__
25199 # include <limits.h>
25200 #else
25201 # include <assert.h>
25202 #endif
25203
25204 #undef $ac_func
25205
25206 /* Override any GCC internal prototype to avoid an error.
25207    Use char because int might match the return type of a GCC
25208    builtin and then its argument prototype would still apply.  */
25209 #ifdef __cplusplus
25210 extern "C"
25211 #endif
25212 char $ac_func ();
25213 /* The GNU C library defines this for functions which it implements
25214     to always fail with ENOSYS.  Some functions are actually named
25215     something starting with __ and the normal name is an alias.  */
25216 #if defined __stub_$ac_func || defined __stub___$ac_func
25217 choke me
25218 #endif
25219
25220 int
25221 main ()
25222 {
25223 return $ac_func ();
25224   ;
25225   return 0;
25226 }
25227 _ACEOF
25228 rm -f conftest.$ac_objext conftest$ac_exeext
25229 if { (ac_try="$ac_link"
25230 case "(($ac_try" in
25231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25232   *) ac_try_echo=$ac_try;;
25233 esac
25234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25235   (eval "$ac_link") 2>conftest.er1
25236   ac_status=$?
25237   grep -v '^ *+' conftest.er1 >conftest.err
25238   rm -f conftest.er1
25239   cat conftest.err >&5
25240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25241   (exit $ac_status); } &&
25242          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25243   { (case "(($ac_try" in
25244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25245   *) ac_try_echo=$ac_try;;
25246 esac
25247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25248   (eval "$ac_try") 2>&5
25249   ac_status=$?
25250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251   (exit $ac_status); }; } &&
25252          { ac_try='test -s conftest$ac_exeext'
25253   { (case "(($ac_try" in
25254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25255   *) ac_try_echo=$ac_try;;
25256 esac
25257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25258   (eval "$ac_try") 2>&5
25259   ac_status=$?
25260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261   (exit $ac_status); }; }; then
25262   eval "$as_ac_var=yes"
25263 else
25264   echo "$as_me: failed program was:" >&5
25265 sed 's/^/| /' conftest.$ac_ext >&5
25266
25267         eval "$as_ac_var=no"
25268 fi
25269
25270 rm -f core conftest.err conftest.$ac_objext \
25271       conftest$ac_exeext conftest.$ac_ext
25272 fi
25273 ac_res=`eval echo '${'$as_ac_var'}'`
25274                { echo "$as_me:$LINENO: result: $ac_res" >&5
25275 echo "${ECHO_T}$ac_res" >&6; }
25276 if test `eval echo '${'$as_ac_var'}'` = yes; then
25277   cat >>confdefs.h <<_ACEOF
25278 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25279 _ACEOF
25280
25281 fi
25282 done
25283
25284
25285 else
25286    have_png=no
25287 fi
25288
25289   fi
25290
25291   if test "${ac_cv_header_tiff_h+set}" = set; then
25292   { echo "$as_me:$LINENO: checking for tiff.h" >&5
25293 echo $ECHO_N "checking for tiff.h... $ECHO_C" >&6; }
25294 if test "${ac_cv_header_tiff_h+set}" = set; then
25295   echo $ECHO_N "(cached) $ECHO_C" >&6
25296 fi
25297 { echo "$as_me:$LINENO: result: $ac_cv_header_tiff_h" >&5
25298 echo "${ECHO_T}$ac_cv_header_tiff_h" >&6; }
25299 else
25300   # Is the header compilable?
25301 { echo "$as_me:$LINENO: checking tiff.h usability" >&5
25302 echo $ECHO_N "checking tiff.h usability... $ECHO_C" >&6; }
25303 cat >conftest.$ac_ext <<_ACEOF
25304 /* confdefs.h.  */
25305 _ACEOF
25306 cat confdefs.h >>conftest.$ac_ext
25307 cat >>conftest.$ac_ext <<_ACEOF
25308 /* end confdefs.h.  */
25309 $ac_includes_default
25310 #include <tiff.h>
25311 _ACEOF
25312 rm -f conftest.$ac_objext
25313 if { (ac_try="$ac_compile"
25314 case "(($ac_try" in
25315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25316   *) ac_try_echo=$ac_try;;
25317 esac
25318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25319   (eval "$ac_compile") 2>conftest.er1
25320   ac_status=$?
25321   grep -v '^ *+' conftest.er1 >conftest.err
25322   rm -f conftest.er1
25323   cat conftest.err >&5
25324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25325   (exit $ac_status); } &&
25326          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25327   { (case "(($ac_try" in
25328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25329   *) ac_try_echo=$ac_try;;
25330 esac
25331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25332   (eval "$ac_try") 2>&5
25333   ac_status=$?
25334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25335   (exit $ac_status); }; } &&
25336          { ac_try='test -s conftest.$ac_objext'
25337   { (case "(($ac_try" in
25338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25339   *) ac_try_echo=$ac_try;;
25340 esac
25341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25342   (eval "$ac_try") 2>&5
25343   ac_status=$?
25344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25345   (exit $ac_status); }; }; then
25346   ac_header_compiler=yes
25347 else
25348   echo "$as_me: failed program was:" >&5
25349 sed 's/^/| /' conftest.$ac_ext >&5
25350
25351         ac_header_compiler=no
25352 fi
25353
25354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25355 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25356 echo "${ECHO_T}$ac_header_compiler" >&6; }
25357
25358 # Is the header present?
25359 { echo "$as_me:$LINENO: checking tiff.h presence" >&5
25360 echo $ECHO_N "checking tiff.h presence... $ECHO_C" >&6; }
25361 cat >conftest.$ac_ext <<_ACEOF
25362 /* confdefs.h.  */
25363 _ACEOF
25364 cat confdefs.h >>conftest.$ac_ext
25365 cat >>conftest.$ac_ext <<_ACEOF
25366 /* end confdefs.h.  */
25367 #include <tiff.h>
25368 _ACEOF
25369 if { (ac_try="$ac_cpp conftest.$ac_ext"
25370 case "(($ac_try" in
25371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25372   *) ac_try_echo=$ac_try;;
25373 esac
25374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25375   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25376   ac_status=$?
25377   grep -v '^ *+' conftest.er1 >conftest.err
25378   rm -f conftest.er1
25379   cat conftest.err >&5
25380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25381   (exit $ac_status); } >/dev/null; then
25382   if test -s conftest.err; then
25383     ac_cpp_err=$ac_c_preproc_warn_flag
25384     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25385   else
25386     ac_cpp_err=
25387   fi
25388 else
25389   ac_cpp_err=yes
25390 fi
25391 if test -z "$ac_cpp_err"; then
25392   ac_header_preproc=yes
25393 else
25394   echo "$as_me: failed program was:" >&5
25395 sed 's/^/| /' conftest.$ac_ext >&5
25396
25397   ac_header_preproc=no
25398 fi
25399
25400 rm -f conftest.err conftest.$ac_ext
25401 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25402 echo "${ECHO_T}$ac_header_preproc" >&6; }
25403
25404 # So?  What about this header?
25405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25406   yes:no: )
25407     { echo "$as_me:$LINENO: WARNING: tiff.h: accepted by the compiler, rejected by the preprocessor!" >&5
25408 echo "$as_me: WARNING: tiff.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25409     { echo "$as_me:$LINENO: WARNING: tiff.h: proceeding with the compiler's result" >&5
25410 echo "$as_me: WARNING: tiff.h: proceeding with the compiler's result" >&2;}
25411     ac_header_preproc=yes
25412     ;;
25413   no:yes:* )
25414     { echo "$as_me:$LINENO: WARNING: tiff.h: present but cannot be compiled" >&5
25415 echo "$as_me: WARNING: tiff.h: present but cannot be compiled" >&2;}
25416     { echo "$as_me:$LINENO: WARNING: tiff.h:     check for missing prerequisite headers?" >&5
25417 echo "$as_me: WARNING: tiff.h:     check for missing prerequisite headers?" >&2;}
25418     { echo "$as_me:$LINENO: WARNING: tiff.h: see the Autoconf documentation" >&5
25419 echo "$as_me: WARNING: tiff.h: see the Autoconf documentation" >&2;}
25420     { echo "$as_me:$LINENO: WARNING: tiff.h:     section \"Present But Cannot Be Compiled\"" >&5
25421 echo "$as_me: WARNING: tiff.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25422     { echo "$as_me:$LINENO: WARNING: tiff.h: proceeding with the preprocessor's result" >&5
25423 echo "$as_me: WARNING: tiff.h: proceeding with the preprocessor's result" >&2;}
25424     { echo "$as_me:$LINENO: WARNING: tiff.h: in the future, the compiler will take precedence" >&5
25425 echo "$as_me: WARNING: tiff.h: in the future, the compiler will take precedence" >&2;}
25426     ( cat <<\_ASBOX
25427 ## -------------------------------------------------------- ##
25428 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
25429 ## -------------------------------------------------------- ##
25430 _ASBOX
25431      ) | sed "s/^/$as_me: WARNING:     /" >&2
25432     ;;
25433 esac
25434 { echo "$as_me:$LINENO: checking for tiff.h" >&5
25435 echo $ECHO_N "checking for tiff.h... $ECHO_C" >&6; }
25436 if test "${ac_cv_header_tiff_h+set}" = set; then
25437   echo $ECHO_N "(cached) $ECHO_C" >&6
25438 else
25439   ac_cv_header_tiff_h=$ac_header_preproc
25440 fi
25441 { echo "$as_me:$LINENO: result: $ac_cv_header_tiff_h" >&5
25442 echo "${ECHO_T}$ac_cv_header_tiff_h" >&6; }
25443
25444 fi
25445 if test $ac_cv_header_tiff_h = yes; then
25446   { echo "$as_me:$LINENO: checking for TIFFReadRGBAStrip in -ltiff" >&5
25447 echo $ECHO_N "checking for TIFFReadRGBAStrip in -ltiff... $ECHO_C" >&6; }
25448 if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then
25449   echo $ECHO_N "(cached) $ECHO_C" >&6
25450 else
25451   ac_check_lib_save_LIBS=$LIBS
25452 LIBS="-ltiff  $LIBS"
25453 cat >conftest.$ac_ext <<_ACEOF
25454 /* confdefs.h.  */
25455 _ACEOF
25456 cat confdefs.h >>conftest.$ac_ext
25457 cat >>conftest.$ac_ext <<_ACEOF
25458 /* end confdefs.h.  */
25459
25460 /* Override any GCC internal prototype to avoid an error.
25461    Use char because int might match the return type of a GCC
25462    builtin and then its argument prototype would still apply.  */
25463 #ifdef __cplusplus
25464 extern "C"
25465 #endif
25466 char TIFFReadRGBAStrip ();
25467 int
25468 main ()
25469 {
25470 return TIFFReadRGBAStrip ();
25471   ;
25472   return 0;
25473 }
25474 _ACEOF
25475 rm -f conftest.$ac_objext conftest$ac_exeext
25476 if { (ac_try="$ac_link"
25477 case "(($ac_try" in
25478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25479   *) ac_try_echo=$ac_try;;
25480 esac
25481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25482   (eval "$ac_link") 2>conftest.er1
25483   ac_status=$?
25484   grep -v '^ *+' conftest.er1 >conftest.err
25485   rm -f conftest.er1
25486   cat conftest.err >&5
25487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488   (exit $ac_status); } &&
25489          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25490   { (case "(($ac_try" in
25491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25492   *) ac_try_echo=$ac_try;;
25493 esac
25494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25495   (eval "$ac_try") 2>&5
25496   ac_status=$?
25497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25498   (exit $ac_status); }; } &&
25499          { ac_try='test -s conftest$ac_exeext'
25500   { (case "(($ac_try" in
25501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25502   *) ac_try_echo=$ac_try;;
25503 esac
25504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25505   (eval "$ac_try") 2>&5
25506   ac_status=$?
25507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508   (exit $ac_status); }; }; then
25509   ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
25510 else
25511   echo "$as_me: failed program was:" >&5
25512 sed 's/^/| /' conftest.$ac_ext >&5
25513
25514         ac_cv_lib_tiff_TIFFReadRGBAStrip=no
25515 fi
25516
25517 rm -f core conftest.err conftest.$ac_objext \
25518       conftest$ac_exeext conftest.$ac_ext
25519 LIBS=$ac_check_lib_save_LIBS
25520 fi
25521 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
25522 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
25523 if test $ac_cv_lib_tiff_TIFFReadRGBAStrip = yes; then
25524
25525                                  have_tiff=yes
25526
25527 cat >>confdefs.h <<\_ACEOF
25528 #define HAVE_TIFF
25529 _ACEOF
25530
25531                                  IMAGELIBS="$IMAGELIBS -ltiff"
25532                                  LIBS="$LIBS -ltiff"
25533
25534 fi
25535
25536 fi
25537
25538
25539 fi
25540
25541 have_jasper=no
25542 if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
25543   { echo "$as_me:$LINENO: checking for jasper/jasper.h" >&5
25544 echo $ECHO_N "checking for jasper/jasper.h... $ECHO_C" >&6; }
25545 if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
25546   echo $ECHO_N "(cached) $ECHO_C" >&6
25547 fi
25548 { echo "$as_me:$LINENO: result: $ac_cv_header_jasper_jasper_h" >&5
25549 echo "${ECHO_T}$ac_cv_header_jasper_jasper_h" >&6; }
25550 else
25551   # Is the header compilable?
25552 { echo "$as_me:$LINENO: checking jasper/jasper.h usability" >&5
25553 echo $ECHO_N "checking jasper/jasper.h usability... $ECHO_C" >&6; }
25554 cat >conftest.$ac_ext <<_ACEOF
25555 /* confdefs.h.  */
25556 _ACEOF
25557 cat confdefs.h >>conftest.$ac_ext
25558 cat >>conftest.$ac_ext <<_ACEOF
25559 /* end confdefs.h.  */
25560 $ac_includes_default
25561 #include <jasper/jasper.h>
25562 _ACEOF
25563 rm -f conftest.$ac_objext
25564 if { (ac_try="$ac_compile"
25565 case "(($ac_try" in
25566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25567   *) ac_try_echo=$ac_try;;
25568 esac
25569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25570   (eval "$ac_compile") 2>conftest.er1
25571   ac_status=$?
25572   grep -v '^ *+' conftest.er1 >conftest.err
25573   rm -f conftest.er1
25574   cat conftest.err >&5
25575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25576   (exit $ac_status); } &&
25577          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25578   { (case "(($ac_try" in
25579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25580   *) ac_try_echo=$ac_try;;
25581 esac
25582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25583   (eval "$ac_try") 2>&5
25584   ac_status=$?
25585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25586   (exit $ac_status); }; } &&
25587          { ac_try='test -s conftest.$ac_objext'
25588   { (case "(($ac_try" in
25589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25590   *) ac_try_echo=$ac_try;;
25591 esac
25592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25593   (eval "$ac_try") 2>&5
25594   ac_status=$?
25595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25596   (exit $ac_status); }; }; then
25597   ac_header_compiler=yes
25598 else
25599   echo "$as_me: failed program was:" >&5
25600 sed 's/^/| /' conftest.$ac_ext >&5
25601
25602         ac_header_compiler=no
25603 fi
25604
25605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25606 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25607 echo "${ECHO_T}$ac_header_compiler" >&6; }
25608
25609 # Is the header present?
25610 { echo "$as_me:$LINENO: checking jasper/jasper.h presence" >&5
25611 echo $ECHO_N "checking jasper/jasper.h presence... $ECHO_C" >&6; }
25612 cat >conftest.$ac_ext <<_ACEOF
25613 /* confdefs.h.  */
25614 _ACEOF
25615 cat confdefs.h >>conftest.$ac_ext
25616 cat >>conftest.$ac_ext <<_ACEOF
25617 /* end confdefs.h.  */
25618 #include <jasper/jasper.h>
25619 _ACEOF
25620 if { (ac_try="$ac_cpp conftest.$ac_ext"
25621 case "(($ac_try" in
25622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25623   *) ac_try_echo=$ac_try;;
25624 esac
25625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25626   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25627   ac_status=$?
25628   grep -v '^ *+' conftest.er1 >conftest.err
25629   rm -f conftest.er1
25630   cat conftest.err >&5
25631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25632   (exit $ac_status); } >/dev/null; then
25633   if test -s conftest.err; then
25634     ac_cpp_err=$ac_c_preproc_warn_flag
25635     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25636   else
25637     ac_cpp_err=
25638   fi
25639 else
25640   ac_cpp_err=yes
25641 fi
25642 if test -z "$ac_cpp_err"; then
25643   ac_header_preproc=yes
25644 else
25645   echo "$as_me: failed program was:" >&5
25646 sed 's/^/| /' conftest.$ac_ext >&5
25647
25648   ac_header_preproc=no
25649 fi
25650
25651 rm -f conftest.err conftest.$ac_ext
25652 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25653 echo "${ECHO_T}$ac_header_preproc" >&6; }
25654
25655 # So?  What about this header?
25656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25657   yes:no: )
25658     { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: accepted by the compiler, rejected by the preprocessor!" >&5
25659 echo "$as_me: WARNING: jasper/jasper.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25660     { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: proceeding with the compiler's result" >&5
25661 echo "$as_me: WARNING: jasper/jasper.h: proceeding with the compiler's result" >&2;}
25662     ac_header_preproc=yes
25663     ;;
25664   no:yes:* )
25665     { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: present but cannot be compiled" >&5
25666 echo "$as_me: WARNING: jasper/jasper.h: present but cannot be compiled" >&2;}
25667     { echo "$as_me:$LINENO: WARNING: jasper/jasper.h:     check for missing prerequisite headers?" >&5
25668 echo "$as_me: WARNING: jasper/jasper.h:     check for missing prerequisite headers?" >&2;}
25669     { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: see the Autoconf documentation" >&5
25670 echo "$as_me: WARNING: jasper/jasper.h: see the Autoconf documentation" >&2;}
25671     { echo "$as_me:$LINENO: WARNING: jasper/jasper.h:     section \"Present But Cannot Be Compiled\"" >&5
25672 echo "$as_me: WARNING: jasper/jasper.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25673     { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: proceeding with the preprocessor's result" >&5
25674 echo "$as_me: WARNING: jasper/jasper.h: proceeding with the preprocessor's result" >&2;}
25675     { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: in the future, the compiler will take precedence" >&5
25676 echo "$as_me: WARNING: jasper/jasper.h: in the future, the compiler will take precedence" >&2;}
25677     ( cat <<\_ASBOX
25678 ## -------------------------------------------------------- ##
25679 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
25680 ## -------------------------------------------------------- ##
25681 _ASBOX
25682      ) | sed "s/^/$as_me: WARNING:     /" >&2
25683     ;;
25684 esac
25685 { echo "$as_me:$LINENO: checking for jasper/jasper.h" >&5
25686 echo $ECHO_N "checking for jasper/jasper.h... $ECHO_C" >&6; }
25687 if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
25688   echo $ECHO_N "(cached) $ECHO_C" >&6
25689 else
25690   ac_cv_header_jasper_jasper_h=$ac_header_preproc
25691 fi
25692 { echo "$as_me:$LINENO: result: $ac_cv_header_jasper_jasper_h" >&5
25693 echo "${ECHO_T}$ac_cv_header_jasper_jasper_h" >&6; }
25694
25695 fi
25696 if test $ac_cv_header_jasper_jasper_h = yes; then
25697   { echo "$as_me:$LINENO: checking for jas_image_readcmpt in -ljasper" >&5
25698 echo $ECHO_N "checking for jas_image_readcmpt in -ljasper... $ECHO_C" >&6; }
25699 if test "${ac_cv_lib_jasper_jas_image_readcmpt+set}" = set; then
25700   echo $ECHO_N "(cached) $ECHO_C" >&6
25701 else
25702   ac_check_lib_save_LIBS=$LIBS
25703 LIBS="-ljasper  $LIBS"
25704 cat >conftest.$ac_ext <<_ACEOF
25705 /* confdefs.h.  */
25706 _ACEOF
25707 cat confdefs.h >>conftest.$ac_ext
25708 cat >>conftest.$ac_ext <<_ACEOF
25709 /* end confdefs.h.  */
25710
25711 /* Override any GCC internal prototype to avoid an error.
25712    Use char because int might match the return type of a GCC
25713    builtin and then its argument prototype would still apply.  */
25714 #ifdef __cplusplus
25715 extern "C"
25716 #endif
25717 char jas_image_readcmpt ();
25718 int
25719 main ()
25720 {
25721 return jas_image_readcmpt ();
25722   ;
25723   return 0;
25724 }
25725 _ACEOF
25726 rm -f conftest.$ac_objext conftest$ac_exeext
25727 if { (ac_try="$ac_link"
25728 case "(($ac_try" in
25729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25730   *) ac_try_echo=$ac_try;;
25731 esac
25732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25733   (eval "$ac_link") 2>conftest.er1
25734   ac_status=$?
25735   grep -v '^ *+' conftest.er1 >conftest.err
25736   rm -f conftest.er1
25737   cat conftest.err >&5
25738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25739   (exit $ac_status); } &&
25740          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25741   { (case "(($ac_try" in
25742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25743   *) ac_try_echo=$ac_try;;
25744 esac
25745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25746   (eval "$ac_try") 2>&5
25747   ac_status=$?
25748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749   (exit $ac_status); }; } &&
25750          { ac_try='test -s conftest$ac_exeext'
25751   { (case "(($ac_try" in
25752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25753   *) ac_try_echo=$ac_try;;
25754 esac
25755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25756   (eval "$ac_try") 2>&5
25757   ac_status=$?
25758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25759   (exit $ac_status); }; }; then
25760   ac_cv_lib_jasper_jas_image_readcmpt=yes
25761 else
25762   echo "$as_me: failed program was:" >&5
25763 sed 's/^/| /' conftest.$ac_ext >&5
25764
25765         ac_cv_lib_jasper_jas_image_readcmpt=no
25766 fi
25767
25768 rm -f core conftest.err conftest.$ac_objext \
25769       conftest$ac_exeext conftest.$ac_ext
25770 LIBS=$ac_check_lib_save_LIBS
25771 fi
25772 { echo "$as_me:$LINENO: result: $ac_cv_lib_jasper_jas_image_readcmpt" >&5
25773 echo "${ECHO_T}$ac_cv_lib_jasper_jas_image_readcmpt" >&6; }
25774 if test $ac_cv_lib_jasper_jas_image_readcmpt = yes; then
25775
25776                                have_jasper=yes
25777
25778 cat >>confdefs.h <<\_ACEOF
25779 #define HAVE_JASPER
25780 _ACEOF
25781
25782                                IMAGELIBS="$IMAGELIBS -ljasper"
25783                                LIBS="$LIBS -ljasper"
25784
25785 fi
25786
25787 fi
25788
25789
25790
25791 have_ilmimf=no
25792 if test "${ac_cv_header_ImfCRgbaFile_h+set}" = set; then
25793   { echo "$as_me:$LINENO: checking for ImfCRgbaFile.h" >&5
25794 echo $ECHO_N "checking for ImfCRgbaFile.h... $ECHO_C" >&6; }
25795 if test "${ac_cv_header_ImfCRgbaFile_h+set}" = set; then
25796   echo $ECHO_N "(cached) $ECHO_C" >&6
25797 fi
25798 { echo "$as_me:$LINENO: result: $ac_cv_header_ImfCRgbaFile_h" >&5
25799 echo "${ECHO_T}$ac_cv_header_ImfCRgbaFile_h" >&6; }
25800 else
25801   # Is the header compilable?
25802 { echo "$as_me:$LINENO: checking ImfCRgbaFile.h usability" >&5
25803 echo $ECHO_N "checking ImfCRgbaFile.h usability... $ECHO_C" >&6; }
25804 cat >conftest.$ac_ext <<_ACEOF
25805 /* confdefs.h.  */
25806 _ACEOF
25807 cat confdefs.h >>conftest.$ac_ext
25808 cat >>conftest.$ac_ext <<_ACEOF
25809 /* end confdefs.h.  */
25810 $ac_includes_default
25811 #include <ImfCRgbaFile.h>
25812 _ACEOF
25813 rm -f conftest.$ac_objext
25814 if { (ac_try="$ac_compile"
25815 case "(($ac_try" in
25816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25817   *) ac_try_echo=$ac_try;;
25818 esac
25819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25820   (eval "$ac_compile") 2>conftest.er1
25821   ac_status=$?
25822   grep -v '^ *+' conftest.er1 >conftest.err
25823   rm -f conftest.er1
25824   cat conftest.err >&5
25825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25826   (exit $ac_status); } &&
25827          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25828   { (case "(($ac_try" in
25829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25830   *) ac_try_echo=$ac_try;;
25831 esac
25832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25833   (eval "$ac_try") 2>&5
25834   ac_status=$?
25835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25836   (exit $ac_status); }; } &&
25837          { ac_try='test -s conftest.$ac_objext'
25838   { (case "(($ac_try" in
25839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25840   *) ac_try_echo=$ac_try;;
25841 esac
25842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25843   (eval "$ac_try") 2>&5
25844   ac_status=$?
25845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25846   (exit $ac_status); }; }; then
25847   ac_header_compiler=yes
25848 else
25849   echo "$as_me: failed program was:" >&5
25850 sed 's/^/| /' conftest.$ac_ext >&5
25851
25852         ac_header_compiler=no
25853 fi
25854
25855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25857 echo "${ECHO_T}$ac_header_compiler" >&6; }
25858
25859 # Is the header present?
25860 { echo "$as_me:$LINENO: checking ImfCRgbaFile.h presence" >&5
25861 echo $ECHO_N "checking ImfCRgbaFile.h presence... $ECHO_C" >&6; }
25862 cat >conftest.$ac_ext <<_ACEOF
25863 /* confdefs.h.  */
25864 _ACEOF
25865 cat confdefs.h >>conftest.$ac_ext
25866 cat >>conftest.$ac_ext <<_ACEOF
25867 /* end confdefs.h.  */
25868 #include <ImfCRgbaFile.h>
25869 _ACEOF
25870 if { (ac_try="$ac_cpp conftest.$ac_ext"
25871 case "(($ac_try" in
25872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25873   *) ac_try_echo=$ac_try;;
25874 esac
25875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25876   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25877   ac_status=$?
25878   grep -v '^ *+' conftest.er1 >conftest.err
25879   rm -f conftest.er1
25880   cat conftest.err >&5
25881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882   (exit $ac_status); } >/dev/null; then
25883   if test -s conftest.err; then
25884     ac_cpp_err=$ac_c_preproc_warn_flag
25885     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25886   else
25887     ac_cpp_err=
25888   fi
25889 else
25890   ac_cpp_err=yes
25891 fi
25892 if test -z "$ac_cpp_err"; then
25893   ac_header_preproc=yes
25894 else
25895   echo "$as_me: failed program was:" >&5
25896 sed 's/^/| /' conftest.$ac_ext >&5
25897
25898   ac_header_preproc=no
25899 fi
25900
25901 rm -f conftest.err conftest.$ac_ext
25902 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25903 echo "${ECHO_T}$ac_header_preproc" >&6; }
25904
25905 # So?  What about this header?
25906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25907   yes:no: )
25908     { echo "$as_me:$LINENO: WARNING: ImfCRgbaFile.h: accepted by the compiler, rejected by the preprocessor!" >&5
25909 echo "$as_me: WARNING: ImfCRgbaFile.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25910     { echo "$as_me:$LINENO: WARNING: ImfCRgbaFile.h: proceeding with the compiler's result" >&5
25911 echo "$as_me: WARNING: ImfCRgbaFile.h: proceeding with the compiler's result" >&2;}
25912     ac_header_preproc=yes
25913     ;;
25914   no:yes:* )
25915     { echo "$as_me:$LINENO: WARNING: ImfCRgbaFile.h: present but cannot be compiled" >&5
25916 echo "$as_me: WARNING: ImfCRgbaFile.h: present but cannot be compiled" >&2;}
25917     { echo "$as_me:$LINENO: WARNING: ImfCRgbaFile.h:     check for missing prerequisite headers?" >&5
25918 echo "$as_me: WARNING: ImfCRgbaFile.h:     check for missing prerequisite headers?" >&2;}
25919     { echo "$as_me:$LINENO: WARNING: ImfCRgbaFile.h: see the Autoconf documentation" >&5
25920 echo "$as_me: WARNING: ImfCRgbaFile.h: see the Autoconf documentation" >&2;}
25921     { echo "$as_me:$LINENO: WARNING: ImfCRgbaFile.h:     section \"Present But Cannot Be Compiled\"" >&5
25922 echo "$as_me: WARNING: ImfCRgbaFile.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25923     { echo "$as_me:$LINENO: WARNING: ImfCRgbaFile.h: proceeding with the preprocessor's result" >&5
25924 echo "$as_me: WARNING: ImfCRgbaFile.h: proceeding with the preprocessor's result" >&2;}
25925     { echo "$as_me:$LINENO: WARNING: ImfCRgbaFile.h: in the future, the compiler will take precedence" >&5
25926 echo "$as_me: WARNING: ImfCRgbaFile.h: in the future, the compiler will take precedence" >&2;}
25927     ( cat <<\_ASBOX
25928 ## -------------------------------------------------------- ##
25929 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
25930 ## -------------------------------------------------------- ##
25931 _ASBOX
25932      ) | sed "s/^/$as_me: WARNING:     /" >&2
25933     ;;
25934 esac
25935 { echo "$as_me:$LINENO: checking for ImfCRgbaFile.h" >&5
25936 echo $ECHO_N "checking for ImfCRgbaFile.h... $ECHO_C" >&6; }
25937 if test "${ac_cv_header_ImfCRgbaFile_h+set}" = set; then
25938   echo $ECHO_N "(cached) $ECHO_C" >&6
25939 else
25940   ac_cv_header_ImfCRgbaFile_h=$ac_header_preproc
25941 fi
25942 { echo "$as_me:$LINENO: result: $ac_cv_header_ImfCRgbaFile_h" >&5
25943 echo "${ECHO_T}$ac_cv_header_ImfCRgbaFile_h" >&6; }
25944
25945 fi
25946 if test $ac_cv_header_ImfCRgbaFile_h = yes; then
25947   { echo "$as_me:$LINENO: checking for ImfInputReadPixels in -lIlmImf" >&5
25948 echo $ECHO_N "checking for ImfInputReadPixels in -lIlmImf... $ECHO_C" >&6; }
25949 if test "${ac_cv_lib_IlmImf_ImfInputReadPixels+set}" = set; then
25950   echo $ECHO_N "(cached) $ECHO_C" >&6
25951 else
25952   ac_check_lib_save_LIBS=$LIBS
25953 LIBS="-lIlmImf  -lIex -lHalf  $LIBS"
25954 cat >conftest.$ac_ext <<_ACEOF
25955 /* confdefs.h.  */
25956 _ACEOF
25957 cat confdefs.h >>conftest.$ac_ext
25958 cat >>conftest.$ac_ext <<_ACEOF
25959 /* end confdefs.h.  */
25960
25961 /* Override any GCC internal prototype to avoid an error.
25962    Use char because int might match the return type of a GCC
25963    builtin and then its argument prototype would still apply.  */
25964 #ifdef __cplusplus
25965 extern "C"
25966 #endif
25967 char ImfInputReadPixels ();
25968 int
25969 main ()
25970 {
25971 return ImfInputReadPixels ();
25972   ;
25973   return 0;
25974 }
25975 _ACEOF
25976 rm -f conftest.$ac_objext conftest$ac_exeext
25977 if { (ac_try="$ac_link"
25978 case "(($ac_try" in
25979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25980   *) ac_try_echo=$ac_try;;
25981 esac
25982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25983   (eval "$ac_link") 2>conftest.er1
25984   ac_status=$?
25985   grep -v '^ *+' conftest.er1 >conftest.err
25986   rm -f conftest.er1
25987   cat conftest.err >&5
25988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25989   (exit $ac_status); } &&
25990          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25991   { (case "(($ac_try" in
25992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25993   *) ac_try_echo=$ac_try;;
25994 esac
25995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25996   (eval "$ac_try") 2>&5
25997   ac_status=$?
25998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25999   (exit $ac_status); }; } &&
26000          { ac_try='test -s conftest$ac_exeext'
26001   { (case "(($ac_try" in
26002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26003   *) ac_try_echo=$ac_try;;
26004 esac
26005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26006   (eval "$ac_try") 2>&5
26007   ac_status=$?
26008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26009   (exit $ac_status); }; }; then
26010   ac_cv_lib_IlmImf_ImfInputReadPixels=yes
26011 else
26012   echo "$as_me: failed program was:" >&5
26013 sed 's/^/| /' conftest.$ac_ext >&5
26014
26015         ac_cv_lib_IlmImf_ImfInputReadPixels=no
26016 fi
26017
26018 rm -f core conftest.err conftest.$ac_objext \
26019       conftest$ac_exeext conftest.$ac_ext
26020 LIBS=$ac_check_lib_save_LIBS
26021 fi
26022 { echo "$as_me:$LINENO: result: $ac_cv_lib_IlmImf_ImfInputReadPixels" >&5
26023 echo "${ECHO_T}$ac_cv_lib_IlmImf_ImfInputReadPixels" >&6; }
26024 if test $ac_cv_lib_IlmImf_ImfInputReadPixels = yes; then
26025
26026                                have_ilmimf=yes
26027
26028 cat >>confdefs.h <<\_ACEOF
26029 #define HAVE_ILMIMF
26030 _ACEOF
26031
26032                                IMAGELIBS="$IMAGELIBS -lIlmImf -lIex -lHalf"
26033                                LIBS="$LIBS -lIlmImf -lIex -lHalf"
26034
26035 fi
26036
26037 fi
26038
26039
26040
26041 # Restore original LIBS settings...
26042 LIBS="$SAVELIBS"
26043
26044
26045
26046 ######################################################################
26047 # SWIG wrappers
26048
26049 # currently there is only python.
26050 # If additional wrapper languages / SWIG modules
26051 # get available for OpenCV, we will have a --with-LANGUAGE switch
26052 # for every wrapper language
26053 if test x"$with_python" = "xyes"; then
26054     { echo "$as_me:$LINENO: Checking for necessary tools to build python wrappers" >&5
26055 echo "$as_me: Checking for necessary tools to build python wrappers" >&6;}
26056
26057     # we need Python now
26058
26059
26060
26061
26062         # Find any Python interpreter.
26063     if test -z "$PYTHON"; then
26064       for ac_prog in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5
26065 do
26066   # Extract the first word of "$ac_prog", so it can be a program name with args.
26067 set dummy $ac_prog; ac_word=$2
26068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26070 if test "${ac_cv_path_PYTHON+set}" = set; then
26071   echo $ECHO_N "(cached) $ECHO_C" >&6
26072 else
26073   case $PYTHON in
26074   [\\/]* | ?:[\\/]*)
26075   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
26076   ;;
26077   *)
26078   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26079 for as_dir in $PATH
26080 do
26081   IFS=$as_save_IFS
26082   test -z "$as_dir" && as_dir=.
26083   for ac_exec_ext in '' $ac_executable_extensions; do
26084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26085     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
26086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26087     break 2
26088   fi
26089 done
26090 done
26091 IFS=$as_save_IFS
26092
26093   ;;
26094 esac
26095 fi
26096 PYTHON=$ac_cv_path_PYTHON
26097 if test -n "$PYTHON"; then
26098   { echo "$as_me:$LINENO: result: $PYTHON" >&5
26099 echo "${ECHO_T}$PYTHON" >&6; }
26100 else
26101   { echo "$as_me:$LINENO: result: no" >&5
26102 echo "${ECHO_T}no" >&6; }
26103 fi
26104
26105
26106   test -n "$PYTHON" && break
26107 done
26108 test -n "$PYTHON" || PYTHON=":"
26109
26110     fi
26111     am_display_PYTHON=python
26112
26113
26114   if test "$PYTHON" = :; then
26115       { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
26116 echo "$as_me: error: no suitable Python interpreter found" >&2;}
26117    { (exit 1); exit 1; }; }
26118   else
26119
26120
26121   { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
26122 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
26123 if test "${am_cv_python_version+set}" = set; then
26124   echo $ECHO_N "(cached) $ECHO_C" >&6
26125 else
26126   am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
26127 fi
26128 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
26129 echo "${ECHO_T}$am_cv_python_version" >&6; }
26130   PYTHON_VERSION=$am_cv_python_version
26131
26132
26133
26134   PYTHON_PREFIX='${prefix}'
26135
26136   PYTHON_EXEC_PREFIX='${exec_prefix}'
26137
26138
26139
26140   { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
26141 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
26142 if test "${am_cv_python_platform+set}" = set; then
26143   echo $ECHO_N "(cached) $ECHO_C" >&6
26144 else
26145   am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
26146 fi
26147 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
26148 echo "${ECHO_T}$am_cv_python_platform" >&6; }
26149   PYTHON_PLATFORM=$am_cv_python_platform
26150
26151
26152
26153
26154                 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
26155 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
26156 if test "${am_cv_python_pythondir+set}" = set; then
26157   echo $ECHO_N "(cached) $ECHO_C" >&6
26158 else
26159   am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
26160      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
26161 fi
26162 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
26163 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
26164   pythondir=$am_cv_python_pythondir
26165
26166
26167
26168   pkgpythondir=\${pythondir}/$PACKAGE
26169
26170
26171             { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
26172 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
26173 if test "${am_cv_python_pyexecdir+set}" = set; then
26174   echo $ECHO_N "(cached) $ECHO_C" >&6
26175 else
26176   am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
26177      echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
26178 fi
26179 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
26180 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
26181   pyexecdir=$am_cv_python_pyexecdir
26182
26183
26184
26185   pkgpyexecdir=\${pyexecdir}/$PACKAGE
26186
26187
26188
26189   fi
26190
26191
26192
26193     # get some info on how to compile and link python modules
26194
26195
26196     if test -n "$PYTHON"
26197     then
26198         az_python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
26199         if test -z "$az_python_prefix"
26200         then
26201             { { echo "$as_me:$LINENO: error: Python Prefix is not known" >&5
26202 echo "$as_me: error: Python Prefix is not known" >&2;}
26203    { (exit 1); exit 1; }; }
26204         fi
26205         az_python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
26206         az_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
26207         az_python_includespec="-I${az_python_prefix}/include/python${az_python_version}"
26208         if test x"$python_prefix" != x"$python_execprefix"; then
26209             az_python_execspec="-I${az_python_execprefix}/include/python${az_python_version}"
26210             az_python_includespec="${az_python_includespec} $az_python_execspec"
26211         fi
26212         az_python_ccshared=`${PYTHON} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('CFLAGSFORSHARED')"`
26213         az_python_cspec="${az_python_ccshared} ${az_python_includespec}"
26214         PYTHON_CSPEC=${az_python_cspec}
26215
26216         { echo "$as_me:$LINENO: PYTHON_CSPEC=${az_python_cspec}" >&5
26217 echo "$as_me: PYTHON_CSPEC=${az_python_cspec}" >&6;}
26218     fi
26219
26220
26221
26222     if test -n "$PYTHON"
26223     then
26224
26225
26226     if test -z "$PYTHON"
26227     then
26228         { { echo "$as_me:$LINENO: error: Python Executable not found" >&5
26229 echo "$as_me: error: Python Executable not found" >&2;}
26230    { (exit 1); exit 1; }; }
26231     else
26232         cat >conftest.py <<_ACEOF
26233
26234 import sys
26235 import distutils.sysconfig
26236 strUseFrameWork = "--enable-framework"
26237 dictConfig = distutils.sysconfig.get_config_vars( )
26238 strConfigArgs = dictConfig.get("CONFIG_ARGS")
26239 strLinkSpec =  dictConfig.get('LDFLAGS')
26240 if -1 ==  strConfigArgs.find(strUseFrameWork):
26241     strLibPL = dictConfig.get("LIBPL")
26242     if strLibPL and (strLibPL != ""):
26243         strLinkSpec += " -L%s" % (strLibPL)
26244     strSys = dictConfig.get("SYSLIBS")
26245     if strSys and (strSys != ""):
26246         strLinkSpec += " %s" % (strSys)
26247     strSHL = dictConfig.get("SHLIBS")
26248     if strSHL and (strSHL != ""):
26249         strLinkSpec += " %s" % (strSHL)
26250     # Construct the Python Library Name.
26251     strTmplte = " -lpython%d.%d"
26252     if (sys.platform == "win32") or (sys.platform == "os2emx"):
26253         strTmplte = " -lpython%d%d"
26254     strWrk = strTmplte % ( (sys.hexversion >> 24),
26255                             ((sys.hexversion >> 16) & 0xff))
26256     strLinkSpec += strWrk
26257 else:
26258     # This is not ideal since it changes the search path
26259     # for Frameworks which could have side-effects on
26260     # other included Frameworks.  However, it is necessary
26261     # where someone has installed more than one frameworked
26262     # Python.  Frameworks are really only used in MacOSX.
26263     strLibFW = dictConfig.get("PYTHONFRAMEWORKPREFIX")
26264     if strLibFW and (strLibFW != ""):
26265         strLinkSpec += " -F%s" % (strLibFW)
26266     strLibPL = dictConfig.get("LIBPL")
26267     if strLibPL and (strLibPL != ""):
26268         strLinkSpec += " -L%s" % (strLibPL)
26269     # Construct the Python Library Name.
26270     strTmplte = " -lpython%d.%d"
26271     if (sys.platform == "win32") or (sys.platform == "os2emx"):
26272         strTmplte = " -lpython%d%d"
26273     strWrk = strTmplte % ( (sys.hexversion >> 24),
26274                             ((sys.hexversion >> 16) & 0xff))
26275     strLinkSpec += strWrk
26276 strLinkSpec += " %s" % (dictConfig.get('LINKFORSHARED'))
26277 print strLinkSpec
26278
26279 _ACEOF
26280         az_python_output=`$PYTHON conftest.py`
26281         az_python_cc=$?
26282         rm conftest.py
26283         if test -f "conftest.pyc"
26284         then
26285             rm conftest.pyc
26286         fi
26287     fi
26288
26289         PYTHON_LSPEC=${az_python_output}
26290
26291         { echo "$as_me:$LINENO: PYTHON_LSPEC=${az_python_output}" >&5
26292 echo "$as_me: PYTHON_LSPEC=${az_python_output}" >&6;}
26293     fi
26294
26295
26296     # if not explicitly forbidden, check for swig also
26297     if test x"$with_swig" = "xauto"; then
26298         with_swig=yes
26299     fi
26300
26301     ### almost ok... just need to check if we have the Python headers ###
26302
26303     # first, save the CPPFLAGS
26304     OLD_CPPFLAGS=$CPPFLAGS
26305
26306     # then add the PYTHON path founded previously
26307     CPPFLAGS="$CPPFLAGS $PYTHON_CSPEC"
26308
26309     # now, we can check
26310     if test "${ac_cv_header_Python_h+set}" = set; then
26311   { echo "$as_me:$LINENO: checking for Python.h" >&5
26312 echo $ECHO_N "checking for Python.h... $ECHO_C" >&6; }
26313 if test "${ac_cv_header_Python_h+set}" = set; then
26314   echo $ECHO_N "(cached) $ECHO_C" >&6
26315 fi
26316 { echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
26317 echo "${ECHO_T}$ac_cv_header_Python_h" >&6; }
26318 else
26319   # Is the header compilable?
26320 { echo "$as_me:$LINENO: checking Python.h usability" >&5
26321 echo $ECHO_N "checking Python.h usability... $ECHO_C" >&6; }
26322 cat >conftest.$ac_ext <<_ACEOF
26323 /* confdefs.h.  */
26324 _ACEOF
26325 cat confdefs.h >>conftest.$ac_ext
26326 cat >>conftest.$ac_ext <<_ACEOF
26327 /* end confdefs.h.  */
26328 $ac_includes_default
26329 #include <Python.h>
26330 _ACEOF
26331 rm -f conftest.$ac_objext
26332 if { (ac_try="$ac_compile"
26333 case "(($ac_try" in
26334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26335   *) ac_try_echo=$ac_try;;
26336 esac
26337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26338   (eval "$ac_compile") 2>conftest.er1
26339   ac_status=$?
26340   grep -v '^ *+' conftest.er1 >conftest.err
26341   rm -f conftest.er1
26342   cat conftest.err >&5
26343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344   (exit $ac_status); } &&
26345          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26346   { (case "(($ac_try" in
26347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26348   *) ac_try_echo=$ac_try;;
26349 esac
26350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26351   (eval "$ac_try") 2>&5
26352   ac_status=$?
26353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26354   (exit $ac_status); }; } &&
26355          { ac_try='test -s conftest.$ac_objext'
26356   { (case "(($ac_try" in
26357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26358   *) ac_try_echo=$ac_try;;
26359 esac
26360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26361   (eval "$ac_try") 2>&5
26362   ac_status=$?
26363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26364   (exit $ac_status); }; }; then
26365   ac_header_compiler=yes
26366 else
26367   echo "$as_me: failed program was:" >&5
26368 sed 's/^/| /' conftest.$ac_ext >&5
26369
26370         ac_header_compiler=no
26371 fi
26372
26373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26374 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26375 echo "${ECHO_T}$ac_header_compiler" >&6; }
26376
26377 # Is the header present?
26378 { echo "$as_me:$LINENO: checking Python.h presence" >&5
26379 echo $ECHO_N "checking Python.h presence... $ECHO_C" >&6; }
26380 cat >conftest.$ac_ext <<_ACEOF
26381 /* confdefs.h.  */
26382 _ACEOF
26383 cat confdefs.h >>conftest.$ac_ext
26384 cat >>conftest.$ac_ext <<_ACEOF
26385 /* end confdefs.h.  */
26386 #include <Python.h>
26387 _ACEOF
26388 if { (ac_try="$ac_cpp conftest.$ac_ext"
26389 case "(($ac_try" in
26390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26391   *) ac_try_echo=$ac_try;;
26392 esac
26393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26394   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26395   ac_status=$?
26396   grep -v '^ *+' conftest.er1 >conftest.err
26397   rm -f conftest.er1
26398   cat conftest.err >&5
26399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26400   (exit $ac_status); } >/dev/null; then
26401   if test -s conftest.err; then
26402     ac_cpp_err=$ac_c_preproc_warn_flag
26403     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26404   else
26405     ac_cpp_err=
26406   fi
26407 else
26408   ac_cpp_err=yes
26409 fi
26410 if test -z "$ac_cpp_err"; then
26411   ac_header_preproc=yes
26412 else
26413   echo "$as_me: failed program was:" >&5
26414 sed 's/^/| /' conftest.$ac_ext >&5
26415
26416   ac_header_preproc=no
26417 fi
26418
26419 rm -f conftest.err conftest.$ac_ext
26420 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26421 echo "${ECHO_T}$ac_header_preproc" >&6; }
26422
26423 # So?  What about this header?
26424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26425   yes:no: )
26426     { echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
26427 echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26428     { echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
26429 echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
26430     ac_header_preproc=yes
26431     ;;
26432   no:yes:* )
26433     { echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
26434 echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
26435     { echo "$as_me:$LINENO: WARNING: Python.h:     check for missing prerequisite headers?" >&5
26436 echo "$as_me: WARNING: Python.h:     check for missing prerequisite headers?" >&2;}
26437     { echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
26438 echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
26439     { echo "$as_me:$LINENO: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&5
26440 echo "$as_me: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26441     { echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
26442 echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
26443     { echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
26444 echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
26445     ( cat <<\_ASBOX
26446 ## -------------------------------------------------------- ##
26447 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
26448 ## -------------------------------------------------------- ##
26449 _ASBOX
26450      ) | sed "s/^/$as_me: WARNING:     /" >&2
26451     ;;
26452 esac
26453 { echo "$as_me:$LINENO: checking for Python.h" >&5
26454 echo $ECHO_N "checking for Python.h... $ECHO_C" >&6; }
26455 if test "${ac_cv_header_Python_h+set}" = set; then
26456   echo $ECHO_N "(cached) $ECHO_C" >&6
26457 else
26458   ac_cv_header_Python_h=$ac_header_preproc
26459 fi
26460 { echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
26461 echo "${ECHO_T}$ac_cv_header_Python_h" >&6; }
26462
26463 fi
26464 if test $ac_cv_header_Python_h = yes; then
26465   have_python=yes
26466 else
26467
26468           { echo "$as_me:$LINENO: WARNING: Python headers not found, disabling python wrappers" >&5
26469 echo "$as_me: WARNING: Python headers not found, disabling python wrappers" >&2;}
26470           have_python=no
26471
26472 fi
26473
26474
26475
26476     # restore the old CPPFLAGS
26477     CPPFLAGS=$OLD_CPPFLAGS
26478
26479 else
26480     # check if ./configure arguments are valid
26481     if test x"$with_python" = "xno"; then
26482         have_python=no
26483     else
26484         # if we get here then --with-python was not called with 'yes','no' or 'auto'
26485         { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-python, continuing assuming 'no'" >&5
26486 echo "$as_me: WARNING: unexpected arguments for option --with-python, continuing assuming 'no'" >&2;}
26487         have_python=no
26488     fi
26489 fi
26490
26491
26492 if test x"$have_python" = "xyes"; then
26493   BUILD_PYTHON_WRAPPERS_TRUE=
26494   BUILD_PYTHON_WRAPPERS_FALSE='#'
26495 else
26496   BUILD_PYTHON_WRAPPERS_TRUE='#'
26497   BUILD_PYTHON_WRAPPERS_FALSE=
26498 fi
26499
26500
26501 # check for swig itself
26502 SWIG=""
26503 if test x"$with_swig" = "xyes"; then
26504     { echo "$as_me:$LINENO: Checking for SWIG" >&5
26505 echo "$as_me: Checking for SWIG" >&6;}
26506
26507         # Python 2.5 requires SWIG >= 1.3.30
26508         prog="import sys, string
26509 # split strings by '.' and convert to numeric.  Append some zeros
26510 # because we need at least 4 digits for the hex conversion.
26511 minver = map(int, string.split('have_python25=yes', '.')) + [0, 0, 0]
26512 minverhex = 0
26513 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
26514 sys.exit(sys.hexversion < minverhex)"
26515   if { echo "$as_me:$LINENO: 2.5 -c "$prog"" >&5
26516    (2.5 -c "$prog") >&5 2>&5
26517    ac_status=$?
26518    echo "$as_me:$LINENO: \$? = $ac_status" >&5
26519    (exit $ac_status); }; then
26520   have_python25=no
26521 fi
26522
26523         if test x"$have_python25" = "xyes" ; then
26524
26525   #
26526   # define SWIG as precious variable
26527
26528   #
26529   # check where to find the swig executable
26530   # Extract the first word of "swig", so it can be a program name with args.
26531 set dummy swig; ac_word=$2
26532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26534 if test "${ac_cv_path_SWIG+set}" = set; then
26535   echo $ECHO_N "(cached) $ECHO_C" >&6
26536 else
26537   case $SWIG in
26538   [\\/]* | ?:[\\/]*)
26539   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
26540   ;;
26541   *)
26542   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26543 for as_dir in $PATH
26544 do
26545   IFS=$as_save_IFS
26546   test -z "$as_dir" && as_dir=.
26547   for ac_exec_ext in '' $ac_executable_extensions; do
26548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26549     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
26550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26551     break 2
26552   fi
26553 done
26554 done
26555 IFS=$as_save_IFS
26556
26557   ;;
26558 esac
26559 fi
26560 SWIG=$ac_cv_path_SWIG
26561 if test -n "$SWIG"; then
26562   { echo "$as_me:$LINENO: result: $SWIG" >&5
26563 echo "${ECHO_T}$SWIG" >&6; }
26564 else
26565   { echo "$as_me:$LINENO: result: no" >&5
26566 echo "${ECHO_T}no" >&6; }
26567 fi
26568
26569
26570   if test -n "$SWIG"; then
26571     #
26572     # inquire version number
26573     if test -n "$SWIG"; then
26574       { echo "$as_me:$LINENO: checking for SWIG version" >&5
26575 echo $ECHO_N "checking for SWIG version... $ECHO_C" >&6; }
26576             SWIG_VERSION=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed -e 's/^[^0-9]*//g' -e 's/ .*//g'`
26577       { echo "$as_me:$LINENO: result: $SWIG_VERSION" >&5
26578 echo "${ECHO_T}$SWIG_VERSION" >&6; }
26579     else
26580       SWIG_VERSION=""
26581     fi
26582     #
26583     # if a user requested a given number, check for that now
26584     if test -n "1.3.30"; then
26585       if test -n "$SWIG_VERSION"; then
26586         #
26587         # compare version strings
26588
26589   # check if both parameters were given
26590   if test -n "$SWIG_VERSION"; then
26591     if test -n "1.3.30"; then
26592       :
26593     else
26594       { { echo "$as_me:$LINENO: error: no required-version supplied" >&5
26595 echo "$as_me: error: no required-version supplied" >&2;}
26596    { (exit 1); exit 1; }; }
26597     fi
26598   else
26599     { { echo "$as_me:$LINENO: error: no given-version supplied" >&5
26600 echo "$as_me: error: no given-version supplied" >&2;}
26601    { (exit 1); exit 1; }; }
26602   fi
26603   #
26604   # recombine version strings
26605   tmp_both=`echo "1.3.30
26606 $SWIG_VERSION" | sed 's/\.0*/./g'`
26607   tmp_sorted=`
26608     echo "$tmp_both" | {
26609       # Use POSIX sort first, falling back on traditional sort.
26610       sort -t. -k1,1n -k1,1 -k2,2n -k2,2 -k3,3n -k3,3 -k4,4n -k4,4 2>/dev/null ||
26611       sort -t. +0n -1 +0 -1 +1n -2 +1 -2 +2n -3 +2 -3 +3n -4 +3 -4
26612     }
26613   `
26614   #
26615   # set result value
26616   if test "x$tmp_both" = "x$tmp_sorted"; then
26617     ac_version_at_least=yes
26618   else
26619     ac_version_at_least=no
26620   fi
26621
26622         if test x"$ac_version_at_least" = "xyes"; then
26623           # everything is perfect
26624           :
26625         else
26626           # version requirement not fulfilled
26627           # we could stop with an error, but instead we just pretend
26628           # that there is no swig installed
26629           { echo "$as_me:$LINENO: WARNING: SWIG version 1.3.30 is required, you have $SWIG_VERSION" >&5
26630 echo "$as_me: WARNING: SWIG version 1.3.30 is required, you have $SWIG_VERSION" >&2;}
26631           SWIG=""
26632         fi
26633       else
26634         # there was no version number available from swig
26635         # and because the user has given requirements, we take
26636         # this for a version mismatch
26637         { echo "$as_me:$LINENO: WARNING: SWIG version 1.3.30 is required, you have $SWIG_VERSION" >&5
26638 echo "$as_me: WARNING: SWIG version 1.3.30 is required, you have $SWIG_VERSION" >&2;}
26639         SWIG=""
26640       fi
26641     else
26642       # there was no version number available from swig
26643       # but because no requirement was given, just warn and go on
26644       { echo "$as_me:$LINENO: WARNING: cannot determine SWIG version" >&5
26645 echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
26646     fi
26647   fi
26648   #
26649   # just in case someone wants to link swig libraries,
26650   # we try to determine their path
26651   if test -n "$SWIG" ; then
26652     SWIG_RUNTIME_LIBS_DIR="${SWIG%/bin*}/lib"
26653     { echo "$as_me:$LINENO: SWIG runtime library directory is '$SWIG_RUNTIME_LIBS_DIR'" >&5
26654 echo "$as_me: SWIG runtime library directory is '$SWIG_RUNTIME_LIBS_DIR'" >&6;}
26655   fi
26656   #
26657 # AC_SUBST([SWIG])  -- already done by AC_PATH_PROG([SWIG],[swig])
26658
26659
26660
26661         else
26662
26663   #
26664   # define SWIG as precious variable
26665
26666   #
26667   # check where to find the swig executable
26668   # Extract the first word of "swig", so it can be a program name with args.
26669 set dummy swig; ac_word=$2
26670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26672 if test "${ac_cv_path_SWIG+set}" = set; then
26673   echo $ECHO_N "(cached) $ECHO_C" >&6
26674 else
26675   case $SWIG in
26676   [\\/]* | ?:[\\/]*)
26677   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
26678   ;;
26679   *)
26680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26681 for as_dir in $PATH
26682 do
26683   IFS=$as_save_IFS
26684   test -z "$as_dir" && as_dir=.
26685   for ac_exec_ext in '' $ac_executable_extensions; do
26686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26687     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
26688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26689     break 2
26690   fi
26691 done
26692 done
26693 IFS=$as_save_IFS
26694
26695   ;;
26696 esac
26697 fi
26698 SWIG=$ac_cv_path_SWIG
26699 if test -n "$SWIG"; then
26700   { echo "$as_me:$LINENO: result: $SWIG" >&5
26701 echo "${ECHO_T}$SWIG" >&6; }
26702 else
26703   { echo "$as_me:$LINENO: result: no" >&5
26704 echo "${ECHO_T}no" >&6; }
26705 fi
26706
26707
26708   if test -n "$SWIG"; then
26709     #
26710     # inquire version number
26711     if test -n "$SWIG"; then
26712       { echo "$as_me:$LINENO: checking for SWIG version" >&5
26713 echo $ECHO_N "checking for SWIG version... $ECHO_C" >&6; }
26714             SWIG_VERSION=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed -e 's/^[^0-9]*//g' -e 's/ .*//g'`
26715       { echo "$as_me:$LINENO: result: $SWIG_VERSION" >&5
26716 echo "${ECHO_T}$SWIG_VERSION" >&6; }
26717     else
26718       SWIG_VERSION=""
26719     fi
26720     #
26721     # if a user requested a given number, check for that now
26722     if test -n "1.2.24"; then
26723       if test -n "$SWIG_VERSION"; then
26724         #
26725         # compare version strings
26726
26727   # check if both parameters were given
26728   if test -n "$SWIG_VERSION"; then
26729     if test -n "1.2.24"; then
26730       :
26731     else
26732       { { echo "$as_me:$LINENO: error: no required-version supplied" >&5
26733 echo "$as_me: error: no required-version supplied" >&2;}
26734    { (exit 1); exit 1; }; }
26735     fi
26736   else
26737     { { echo "$as_me:$LINENO: error: no given-version supplied" >&5
26738 echo "$as_me: error: no given-version supplied" >&2;}
26739    { (exit 1); exit 1; }; }
26740   fi
26741   #
26742   # recombine version strings
26743   tmp_both=`echo "1.2.24
26744 $SWIG_VERSION" | sed 's/\.0*/./g'`
26745   tmp_sorted=`
26746     echo "$tmp_both" | {
26747       # Use POSIX sort first, falling back on traditional sort.
26748       sort -t. -k1,1n -k1,1 -k2,2n -k2,2 -k3,3n -k3,3 -k4,4n -k4,4 2>/dev/null ||
26749       sort -t. +0n -1 +0 -1 +1n -2 +1 -2 +2n -3 +2 -3 +3n -4 +3 -4
26750     }
26751   `
26752   #
26753   # set result value
26754   if test "x$tmp_both" = "x$tmp_sorted"; then
26755     ac_version_at_least=yes
26756   else
26757     ac_version_at_least=no
26758   fi
26759
26760         if test x"$ac_version_at_least" = "xyes"; then
26761           # everything is perfect
26762           :
26763         else
26764           # version requirement not fulfilled
26765           # we could stop with an error, but instead we just pretend
26766           # that there is no swig installed
26767           { echo "$as_me:$LINENO: WARNING: SWIG version 1.2.24 is required, you have $SWIG_VERSION" >&5
26768 echo "$as_me: WARNING: SWIG version 1.2.24 is required, you have $SWIG_VERSION" >&2;}
26769           SWIG=""
26770         fi
26771       else
26772         # there was no version number available from swig
26773         # and because the user has given requirements, we take
26774         # this for a version mismatch
26775         { echo "$as_me:$LINENO: WARNING: SWIG version 1.2.24 is required, you have $SWIG_VERSION" >&5
26776 echo "$as_me: WARNING: SWIG version 1.2.24 is required, you have $SWIG_VERSION" >&2;}
26777         SWIG=""
26778       fi
26779     else
26780       # there was no version number available from swig
26781       # but because no requirement was given, just warn and go on
26782       { echo "$as_me:$LINENO: WARNING: cannot determine SWIG version" >&5
26783 echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
26784     fi
26785   fi
26786   #
26787   # just in case someone wants to link swig libraries,
26788   # we try to determine their path
26789   if test -n "$SWIG" ; then
26790     SWIG_RUNTIME_LIBS_DIR="${SWIG%/bin*}/lib"
26791     { echo "$as_me:$LINENO: SWIG runtime library directory is '$SWIG_RUNTIME_LIBS_DIR'" >&5
26792 echo "$as_me: SWIG runtime library directory is '$SWIG_RUNTIME_LIBS_DIR'" >&6;}
26793   fi
26794   #
26795 # AC_SUBST([SWIG])  -- already done by AC_PATH_PROG([SWIG],[swig])
26796
26797
26798
26799         fi
26800
26801     if test -n "$SWIG"; then
26802
26803
26804
26805   if test -z "$SWIG" ; then
26806     { { echo "$as_me:$LINENO: error: swig not found" >&5
26807 echo "$as_me: error: swig not found" >&2;}
26808    { (exit 1); exit 1; }; }
26809   fi
26810   SWIG="$SWIG -c++"
26811
26812
26813
26814   { echo "$as_me:$LINENO: checking for swig multi module support" >&5
26815 echo $ECHO_N "checking for swig multi module support... $ECHO_C" >&6; }
26816   #
26817   if test -n "$SWIG_VERSION"; then
26818     #
26819
26820   # check if both parameters were given
26821   if test -n "$SWIG_VERSION"; then
26822     if test -n "1.3.24"; then
26823       :
26824     else
26825       { { echo "$as_me:$LINENO: error: no required-version supplied" >&5
26826 echo "$as_me: error: no required-version supplied" >&2;}
26827    { (exit 1); exit 1; }; }
26828     fi
26829   else
26830     { { echo "$as_me:$LINENO: error: no given-version supplied" >&5
26831 echo "$as_me: error: no given-version supplied" >&2;}
26832    { (exit 1); exit 1; }; }
26833   fi
26834   #
26835   # recombine version strings
26836   tmp_both=`echo "1.3.24
26837 $SWIG_VERSION" | sed 's/\.0*/./g'`
26838   tmp_sorted=`
26839     echo "$tmp_both" | {
26840       # Use POSIX sort first, falling back on traditional sort.
26841       sort -t. -k1,1n -k1,1 -k2,2n -k2,2 -k3,3n -k3,3 -k4,4n -k4,4 2>/dev/null ||
26842       sort -t. +0n -1 +0 -1 +1n -2 +1 -2 +2n -3 +2 -3 +3n -4 +3 -4
26843     }
26844   `
26845   #
26846   # set result value
26847   if test "x$tmp_both" = "x$tmp_sorted"; then
26848     ac_version_at_least=yes
26849   else
26850     ac_version_at_least=no
26851   fi
26852
26853     if test x"$ac_version_at_least" = "xyes"; then
26854       # perfect!
26855       { echo "$as_me:$LINENO: result: always working (SWIG >= 1.3.24)" >&5
26856 echo "${ECHO_T}always working (SWIG >= 1.3.24)" >&6; }
26857     else
26858       #
26859       # there were some older versions that need special treatment
26860       # in form of additional command line flags and/or library
26861       # dependencies
26862
26863   # check if both parameters were given
26864   if test -n "$SWIG_VERSION"; then
26865     if test -n "1.3.20"; then
26866       :
26867     else
26868       { { echo "$as_me:$LINENO: error: no required-version supplied" >&5
26869 echo "$as_me: error: no required-version supplied" >&2;}
26870    { (exit 1); exit 1; }; }
26871     fi
26872   else
26873     { { echo "$as_me:$LINENO: error: no given-version supplied" >&5
26874 echo "$as_me: error: no given-version supplied" >&2;}
26875    { (exit 1); exit 1; }; }
26876   fi
26877   #
26878   # recombine version strings
26879   tmp_both=`echo "1.3.20
26880 $SWIG_VERSION" | sed 's/\.0*/./g'`
26881   tmp_sorted=`
26882     echo "$tmp_both" | {
26883       # Use POSIX sort first, falling back on traditional sort.
26884       sort -t. -k1,1n -k1,1 -k2,2n -k2,2 -k3,3n -k3,3 -k4,4n -k4,4 2>/dev/null ||
26885       sort -t. +0n -1 +0 -1 +1n -2 +1 -2 +2n -3 +2 -3 +3n -4 +3 -4
26886     }
26887   `
26888   #
26889   # set result value
26890   if test "x$tmp_both" = "x$tmp_sorted"; then
26891     ac_version_at_least=yes
26892   else
26893     ac_version_at_least=no
26894   fi
26895
26896       if test x"$ac_version_at_least" = "xyes"; then
26897         SWIG="$SWIG -noruntime"
26898         { echo "$as_me:$LINENO: result: interim syntax (SWIG >= 1.3.20 < 1.3.24)" >&5
26899 echo "${ECHO_T}interim syntax (SWIG >= 1.3.20 < 1.3.24)" >&6; }
26900       else
26901         SWIG="$SWIG -c"
26902         { echo "$as_me:$LINENO: result: old syntax (SWIG < 1.3.20)" >&5
26903 echo "${ECHO_T}old syntax (SWIG < 1.3.20)" >&6; }
26904       fi
26905     fi
26906   else
26907     { { echo "$as_me:$LINENO: error: SWIG version number unknown - cannot set flags for multi module support" >&5
26908 echo "$as_me: error: SWIG version number unknown - cannot set flags for multi module support" >&2;}
26909    { (exit 1); exit 1; }; }
26910   fi
26911 # AC_SUBST([SWIG]) -- already done by AC_PATH_SWIG()
26912
26913
26914         # check for swig python library
26915
26916
26917
26918   #
26919   test "x" != "xno" || swig_shadow=" -noproxy"
26920   #
26921   if test -n "$SWIG_VERSION"; then
26922
26923   # check if both parameters were given
26924   if test -n "$SWIG_VERSION"; then
26925     if test -n "1.3.24"; then
26926       :
26927     else
26928       { { echo "$as_me:$LINENO: error: no required-version supplied" >&5
26929 echo "$as_me: error: no required-version supplied" >&2;}
26930    { (exit 1); exit 1; }; }
26931     fi
26932   else
26933     { { echo "$as_me:$LINENO: error: no given-version supplied" >&5
26934 echo "$as_me: error: no given-version supplied" >&2;}
26935    { (exit 1); exit 1; }; }
26936   fi
26937   #
26938   # recombine version strings
26939   tmp_both=`echo "1.3.24
26940 $SWIG_VERSION" | sed 's/\.0*/./g'`
26941   tmp_sorted=`
26942     echo "$tmp_both" | {
26943       # Use POSIX sort first, falling back on traditional sort.
26944       sort -t. -k1,1n -k1,1 -k2,2n -k2,2 -k3,3n -k3,3 -k4,4n -k4,4 2>/dev/null ||
26945       sort -t. +0n -1 +0 -1 +1n -2 +1 -2 +2n -3 +2 -3 +3n -4 +3 -4
26946     }
26947   `
26948   #
26949   # set result value
26950   if test "x$tmp_both" = "x$tmp_sorted"; then
26951     ac_version_at_least=yes
26952   else
26953     ac_version_at_least=no
26954   fi
26955
26956     if test x"$ac_version_at_least" = "xyes"; then
26957       SWIG_PYTHON_LIBS=""
26958     else
26959       SWIG_PYTHON_LIBS="$SWIG_RUNTIME_LIBS_DIR -lswigpy"
26960     fi
26961   else
26962     { { echo "$as_me:$LINENO: error: SWIG version number unknown - cannot set python libs" >&5
26963 echo "$as_me: error: SWIG version number unknown - cannot set python libs" >&2;}
26964    { (exit 1); exit 1; }; }
26965   fi
26966   #
26967   SWIG_PYTHON_OPT="-python$swig_shadow"
26968
26969
26970
26971         have_swig=yes
26972     else
26973                 if test x"$have_python25" = "xyes"; then
26974                         { echo "$as_me:$LINENO: WARNING: Python Version >= 2.5 requires SWIG >= 1.3.30" >&5
26975 echo "$as_me: WARNING: Python Version >= 2.5 requires SWIG >= 1.3.30" >&2;}
26976                 fi
26977                 have_swig=no
26978     fi
26979 else
26980     if test x"$with_swig" = "xno"; then
26981         have_swig=no
26982     else
26983         if test x"$with_swig" = "xauto"; then
26984             # no (python) wrapper will be generated
26985             # we don't need to check for SWIG
26986             have_swig=no
26987         else
26988             # if we get here then --with-swig was not called with 'yes','no' or 'auto'
26989             { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-swig, continuing assuming 'no'" >&5
26990 echo "$as_me: WARNING: unexpected arguments for option --with-swig, continuing assuming 'no'" >&2;}
26991             have_swig=no
26992         fi
26993     fi
26994 fi
26995
26996
26997 if test x"$have_swig" = "xyes"; then
26998   UPDATE_SWIG_WRAPPERS_TRUE=
26999   UPDATE_SWIG_WRAPPERS_FALSE='#'
27000 else
27001   UPDATE_SWIG_WRAPPERS_TRUE='#'
27002   UPDATE_SWIG_WRAPPERS_FALSE=
27003 fi
27004
27005
27006
27007 ######################################################################
27008 # Parallelization
27009 #
27010 #CXXOPENMP="no"
27011 #
27012 #AC_ARG_WITH(openmp, dnl
27013 #  [--with-openmp=COMPILER  use OpenMP supporting compiler [default=no] ],
27014 #    [CXXOPENMP="$withval"],[CXXOPENMP="no"])
27015 #if test "$CXXOPENMP" = "no"; then
27016 #    CXXOPENMP="$CXX"
27017 #fi
27018 #
27019 #AC_SUBST(CXXOPENMP)
27020
27021
27022
27023 ac_config_files="$ac_config_files Makefile opencv.pc opencv.spec docs/Makefile data/Makefile cxcore/Makefile cxcore/include/Makefile cxcore/src/Makefile cv/Makefile cv/include/Makefile cv/src/Makefile cvaux/Makefile cvaux/include/Makefile cvaux/src/Makefile ml/Makefile ml/include/Makefile ml/src/Makefile otherlibs/Makefile otherlibs/highgui/Makefile apps/Makefile apps/haartraining/Makefile apps/haartraining/include/Makefile apps/haartraining/src/Makefile interfaces/Makefile interfaces/swig/Makefile interfaces/swig/filtered/Makefile interfaces/swig/general/Makefile interfaces/swig/python/Makefile tests/Makefile tests/python/Makefile tests/cv/Makefile tests/cv/src/Makefile tests/cxts/Makefile tests/cxcore/Makefile tests/cxcore/src/Makefile utils/Makefile samples/Makefile samples/c/Makefile samples/python/Makefile"
27024
27025
27026 cat >confcache <<\_ACEOF
27027 # This file is a shell script that caches the results of configure
27028 # tests run on this system so they can be shared between configure
27029 # scripts and configure runs, see configure's option --config-cache.
27030 # It is not useful on other systems.  If it contains results you don't
27031 # want to keep, you may remove or edit it.
27032 #
27033 # config.status only pays attention to the cache file if you give it
27034 # the --recheck option to rerun configure.
27035 #
27036 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27037 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27038 # following values.
27039
27040 _ACEOF
27041
27042 # The following way of writing the cache mishandles newlines in values,
27043 # but we know of no workaround that is simple, portable, and efficient.
27044 # So, we kill variables containing newlines.
27045 # Ultrix sh set writes to stderr and can't be redirected directly,
27046 # and sets the high bit in the cache file unless we assign to the vars.
27047 (
27048   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27049     eval ac_val=\$$ac_var
27050     case $ac_val in #(
27051     *${as_nl}*)
27052       case $ac_var in #(
27053       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27054 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27055       esac
27056       case $ac_var in #(
27057       _ | IFS | as_nl) ;; #(
27058       *) $as_unset $ac_var ;;
27059       esac ;;
27060     esac
27061   done
27062
27063   (set) 2>&1 |
27064     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27065     *${as_nl}ac_space=\ *)
27066       # `set' does not quote correctly, so add quotes (double-quote
27067       # substitution turns \\\\ into \\, and sed turns \\ into \).
27068       sed -n \
27069         "s/'/'\\\\''/g;
27070           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27071       ;; #(
27072     *)
27073       # `set' quotes correctly as required by POSIX, so do not add quotes.
27074       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27075       ;;
27076     esac |
27077     sort
27078 ) |
27079   sed '
27080      /^ac_cv_env_/b end
27081      t clear
27082      :clear
27083      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27084      t end
27085      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27086      :end' >>confcache
27087 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27088   if test -w "$cache_file"; then
27089     test "x$cache_file" != "x/dev/null" &&
27090       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27091 echo "$as_me: updating cache $cache_file" >&6;}
27092     cat confcache >$cache_file
27093   else
27094     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27095 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27096   fi
27097 fi
27098 rm -f confcache
27099
27100 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27101 # Let make expand exec_prefix.
27102 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27103
27104 DEFS=-DHAVE_CONFIG_H
27105
27106 ac_libobjs=
27107 ac_ltlibobjs=
27108 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27109   # 1. Remove the extension, and $U if already installed.
27110   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27111   ac_i=`echo "$ac_i" | sed "$ac_script"`
27112   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27113   #    will be set to the directory where LIBOBJS objects are built.
27114   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27115   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27116 done
27117 LIBOBJS=$ac_libobjs
27118
27119 LTLIBOBJS=$ac_ltlibobjs
27120
27121
27122 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27123   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27124 Usually this means the macro was only invoked conditionally." >&5
27125 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27126 Usually this means the macro was only invoked conditionally." >&2;}
27127    { (exit 1); exit 1; }; }
27128 fi
27129 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27130   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27131 Usually this means the macro was only invoked conditionally." >&5
27132 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27133 Usually this means the macro was only invoked conditionally." >&2;}
27134    { (exit 1); exit 1; }; }
27135 fi
27136 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27137   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27138 Usually this means the macro was only invoked conditionally." >&5
27139 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27140 Usually this means the macro was only invoked conditionally." >&2;}
27141    { (exit 1); exit 1; }; }
27142 fi
27143 if test -z "${BUILD_APPS_TRUE}" && test -z "${BUILD_APPS_FALSE}"; then
27144   { { echo "$as_me:$LINENO: error: conditional \"BUILD_APPS\" was never defined.
27145 Usually this means the macro was only invoked conditionally." >&5
27146 echo "$as_me: error: conditional \"BUILD_APPS\" was never defined.
27147 Usually this means the macro was only invoked conditionally." >&2;}
27148    { (exit 1); exit 1; }; }
27149 fi
27150 if test -z "${BUILD_CARBON_TRUE}" && test -z "${BUILD_CARBON_FALSE}"; then
27151   { { echo "$as_me:$LINENO: error: conditional \"BUILD_CARBON\" was never defined.
27152 Usually this means the macro was only invoked conditionally." >&5
27153 echo "$as_me: error: conditional \"BUILD_CARBON\" was never defined.
27154 Usually this means the macro was only invoked conditionally." >&2;}
27155    { (exit 1); exit 1; }; }
27156 fi
27157 if test -z "${BUILD_GTK_TRUE}" && test -z "${BUILD_GTK_FALSE}"; then
27158   { { echo "$as_me:$LINENO: error: conditional \"BUILD_GTK\" was never defined.
27159 Usually this means the macro was only invoked conditionally." >&5
27160 echo "$as_me: error: conditional \"BUILD_GTK\" was never defined.
27161 Usually this means the macro was only invoked conditionally." >&2;}
27162    { (exit 1); exit 1; }; }
27163 fi
27164 if test -z "${BUILD_QUICKTIME_TRUE}" && test -z "${BUILD_QUICKTIME_FALSE}"; then
27165   { { echo "$as_me:$LINENO: error: conditional \"BUILD_QUICKTIME\" was never defined.
27166 Usually this means the macro was only invoked conditionally." >&5
27167 echo "$as_me: error: conditional \"BUILD_QUICKTIME\" was never defined.
27168 Usually this means the macro was only invoked conditionally." >&2;}
27169    { (exit 1); exit 1; }; }
27170 fi
27171 if test -z "${BUILD_XINE_TRUE}" && test -z "${BUILD_XINE_FALSE}"; then
27172   { { echo "$as_me:$LINENO: error: conditional \"BUILD_XINE\" was never defined.
27173 Usually this means the macro was only invoked conditionally." >&5
27174 echo "$as_me: error: conditional \"BUILD_XINE\" was never defined.
27175 Usually this means the macro was only invoked conditionally." >&2;}
27176    { (exit 1); exit 1; }; }
27177 fi
27178 if test -z "${BUILD_FFMPEG_TRUE}" && test -z "${BUILD_FFMPEG_FALSE}"; then
27179   { { echo "$as_me:$LINENO: error: conditional \"BUILD_FFMPEG\" was never defined.
27180 Usually this means the macro was only invoked conditionally." >&5
27181 echo "$as_me: error: conditional \"BUILD_FFMPEG\" was never defined.
27182 Usually this means the macro was only invoked conditionally." >&2;}
27183    { (exit 1); exit 1; }; }
27184 fi
27185 if test -z "${BUILD_DC1394_TRUE}" && test -z "${BUILD_DC1394_FALSE}"; then
27186   { { echo "$as_me:$LINENO: error: conditional \"BUILD_DC1394\" was never defined.
27187 Usually this means the macro was only invoked conditionally." >&5
27188 echo "$as_me: error: conditional \"BUILD_DC1394\" was never defined.
27189 Usually this means the macro was only invoked conditionally." >&2;}
27190    { (exit 1); exit 1; }; }
27191 fi
27192 if test -z "${BUILD_V4L_TRUE}" && test -z "${BUILD_V4L_FALSE}"; then
27193   { { echo "$as_me:$LINENO: error: conditional \"BUILD_V4L\" was never defined.
27194 Usually this means the macro was only invoked conditionally." >&5
27195 echo "$as_me: error: conditional \"BUILD_V4L\" was never defined.
27196 Usually this means the macro was only invoked conditionally." >&2;}
27197    { (exit 1); exit 1; }; }
27198 fi
27199 if test -z "${BUILD_IMAGEIO_TRUE}" && test -z "${BUILD_IMAGEIO_FALSE}"; then
27200   { { echo "$as_me:$LINENO: error: conditional \"BUILD_IMAGEIO\" was never defined.
27201 Usually this means the macro was only invoked conditionally." >&5
27202 echo "$as_me: error: conditional \"BUILD_IMAGEIO\" was never defined.
27203 Usually this means the macro was only invoked conditionally." >&2;}
27204    { (exit 1); exit 1; }; }
27205 fi
27206 if test -z "${BUILD_PYTHON_WRAPPERS_TRUE}" && test -z "${BUILD_PYTHON_WRAPPERS_FALSE}"; then
27207   { { echo "$as_me:$LINENO: error: conditional \"BUILD_PYTHON_WRAPPERS\" was never defined.
27208 Usually this means the macro was only invoked conditionally." >&5
27209 echo "$as_me: error: conditional \"BUILD_PYTHON_WRAPPERS\" was never defined.
27210 Usually this means the macro was only invoked conditionally." >&2;}
27211    { (exit 1); exit 1; }; }
27212 fi
27213 if test -z "${UPDATE_SWIG_WRAPPERS_TRUE}" && test -z "${UPDATE_SWIG_WRAPPERS_FALSE}"; then
27214   { { echo "$as_me:$LINENO: error: conditional \"UPDATE_SWIG_WRAPPERS\" was never defined.
27215 Usually this means the macro was only invoked conditionally." >&5
27216 echo "$as_me: error: conditional \"UPDATE_SWIG_WRAPPERS\" was never defined.
27217 Usually this means the macro was only invoked conditionally." >&2;}
27218    { (exit 1); exit 1; }; }
27219 fi
27220
27221 : ${CONFIG_STATUS=./config.status}
27222 ac_clean_files_save=$ac_clean_files
27223 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27224 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27225 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27226 cat >$CONFIG_STATUS <<_ACEOF
27227 #! $SHELL
27228 # Generated by $as_me.
27229 # Run this file to recreate the current configuration.
27230 # Compiler output produced by configure, useful for debugging
27231 # configure, is in config.log if it exists.
27232
27233 debug=false
27234 ac_cs_recheck=false
27235 ac_cs_silent=false
27236 SHELL=\${CONFIG_SHELL-$SHELL}
27237 _ACEOF
27238
27239 cat >>$CONFIG_STATUS <<\_ACEOF
27240 ## --------------------- ##
27241 ## M4sh Initialization.  ##
27242 ## --------------------- ##
27243
27244 # Be Bourne compatible
27245 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27246   emulate sh
27247   NULLCMD=:
27248   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27249   # is contrary to our usage.  Disable this feature.
27250   alias -g '${1+"$@"}'='"$@"'
27251   setopt NO_GLOB_SUBST
27252 else
27253   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27254 fi
27255 BIN_SH=xpg4; export BIN_SH # for Tru64
27256 DUALCASE=1; export DUALCASE # for MKS sh
27257
27258
27259 # PATH needs CR
27260 # Avoid depending upon Character Ranges.
27261 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27262 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27263 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27264 as_cr_digits='0123456789'
27265 as_cr_alnum=$as_cr_Letters$as_cr_digits
27266
27267 # The user is always right.
27268 if test "${PATH_SEPARATOR+set}" != set; then
27269   echo "#! /bin/sh" >conf$$.sh
27270   echo  "exit 0"   >>conf$$.sh
27271   chmod +x conf$$.sh
27272   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27273     PATH_SEPARATOR=';'
27274   else
27275     PATH_SEPARATOR=:
27276   fi
27277   rm -f conf$$.sh
27278 fi
27279
27280 # Support unset when possible.
27281 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27282   as_unset=unset
27283 else
27284   as_unset=false
27285 fi
27286
27287
27288 # IFS
27289 # We need space, tab and new line, in precisely that order.  Quoting is
27290 # there to prevent editors from complaining about space-tab.
27291 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27292 # splitting by setting IFS to empty value.)
27293 as_nl='
27294 '
27295 IFS=" ""        $as_nl"
27296
27297 # Find who we are.  Look in the path if we contain no directory separator.
27298 case $0 in
27299   *[\\/]* ) as_myself=$0 ;;
27300   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27301 for as_dir in $PATH
27302 do
27303   IFS=$as_save_IFS
27304   test -z "$as_dir" && as_dir=.
27305   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27306 done
27307 IFS=$as_save_IFS
27308
27309      ;;
27310 esac
27311 # We did not find ourselves, most probably we were run as `sh COMMAND'
27312 # in which case we are not to be found in the path.
27313 if test "x$as_myself" = x; then
27314   as_myself=$0
27315 fi
27316 if test ! -f "$as_myself"; then
27317   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27318   { (exit 1); exit 1; }
27319 fi
27320
27321 # Work around bugs in pre-3.0 UWIN ksh.
27322 for as_var in ENV MAIL MAILPATH
27323 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27324 done
27325 PS1='$ '
27326 PS2='> '
27327 PS4='+ '
27328
27329 # NLS nuisances.
27330 for as_var in \
27331   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27332   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27333   LC_TELEPHONE LC_TIME
27334 do
27335   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27336     eval $as_var=C; export $as_var
27337   else
27338     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27339   fi
27340 done
27341
27342 # Required to use basename.
27343 if expr a : '\(a\)' >/dev/null 2>&1 &&
27344    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27345   as_expr=expr
27346 else
27347   as_expr=false
27348 fi
27349
27350 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27351   as_basename=basename
27352 else
27353   as_basename=false
27354 fi
27355
27356
27357 # Name of the executable.
27358 as_me=`$as_basename -- "$0" ||
27359 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27360          X"$0" : 'X\(//\)$' \| \
27361          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27362 echo X/"$0" |
27363     sed '/^.*\/\([^/][^/]*\)\/*$/{
27364             s//\1/
27365             q
27366           }
27367           /^X\/\(\/\/\)$/{
27368             s//\1/
27369             q
27370           }
27371           /^X\/\(\/\).*/{
27372             s//\1/
27373             q
27374           }
27375           s/.*/./; q'`
27376
27377 # CDPATH.
27378 $as_unset CDPATH
27379
27380
27381
27382   as_lineno_1=$LINENO
27383   as_lineno_2=$LINENO
27384   test "x$as_lineno_1" != "x$as_lineno_2" &&
27385   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27386
27387   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27388   # uniformly replaced by the line number.  The first 'sed' inserts a
27389   # line-number line after each line using $LINENO; the second 'sed'
27390   # does the real work.  The second script uses 'N' to pair each
27391   # line-number line with the line containing $LINENO, and appends
27392   # trailing '-' during substitution so that $LINENO is not a special
27393   # case at line end.
27394   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27395   # scripts with optimization help from Paolo Bonzini.  Blame Lee
27396   # E. McMahon (1931-1989) for sed's syntax.  :-)
27397   sed -n '
27398     p
27399     /[$]LINENO/=
27400   ' <$as_myself |
27401     sed '
27402       s/[$]LINENO.*/&-/
27403       t lineno
27404       b
27405       :lineno
27406       N
27407       :loop
27408       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27409       t loop
27410       s/-\n.*//
27411     ' >$as_me.lineno &&
27412   chmod +x "$as_me.lineno" ||
27413     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27414    { (exit 1); exit 1; }; }
27415
27416   # Don't try to exec as it changes $[0], causing all sort of problems
27417   # (the dirname of $[0] is not the place where we might find the
27418   # original and so on.  Autoconf is especially sensitive to this).
27419   . "./$as_me.lineno"
27420   # Exit status is that of the last command.
27421   exit
27422 }
27423
27424
27425 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27426   as_dirname=dirname
27427 else
27428   as_dirname=false
27429 fi
27430
27431 ECHO_C= ECHO_N= ECHO_T=
27432 case `echo -n x` in
27433 -n*)
27434   case `echo 'x\c'` in
27435   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
27436   *)   ECHO_C='\c';;
27437   esac;;
27438 *)
27439   ECHO_N='-n';;
27440 esac
27441
27442 if expr a : '\(a\)' >/dev/null 2>&1 &&
27443    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27444   as_expr=expr
27445 else
27446   as_expr=false
27447 fi
27448
27449 rm -f conf$$ conf$$.exe conf$$.file
27450 if test -d conf$$.dir; then
27451   rm -f conf$$.dir/conf$$.file
27452 else
27453   rm -f conf$$.dir
27454   mkdir conf$$.dir
27455 fi
27456 echo >conf$$.file
27457 if ln -s conf$$.file conf$$ 2>/dev/null; then
27458   as_ln_s='ln -s'
27459   # ... but there are two gotchas:
27460   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27461   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27462   # In both cases, we have to default to `cp -p'.
27463   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27464     as_ln_s='cp -p'
27465 elif ln conf$$.file conf$$ 2>/dev/null; then
27466   as_ln_s=ln
27467 else
27468   as_ln_s='cp -p'
27469 fi
27470 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27471 rmdir conf$$.dir 2>/dev/null
27472
27473 if mkdir -p . 2>/dev/null; then
27474   as_mkdir_p=:
27475 else
27476   test -d ./-p && rmdir ./-p
27477   as_mkdir_p=false
27478 fi
27479
27480 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
27481 # systems may use methods other than mode bits to determine executability.
27482 cat >conf$$.file <<_ASEOF
27483 #! /bin/sh
27484 exit 0
27485 _ASEOF
27486 chmod +x conf$$.file
27487 if test -x conf$$.file >/dev/null 2>&1; then
27488   as_executable_p="test -x"
27489 else
27490   as_executable_p=:
27491 fi
27492 rm -f conf$$.file
27493
27494 # Sed expression to map a string onto a valid CPP name.
27495 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27496
27497 # Sed expression to map a string onto a valid variable name.
27498 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27499
27500
27501 exec 6>&1
27502
27503 # Save the log message, to keep $[0] and so on meaningful, and to
27504 # report actual input values of CONFIG_FILES etc. instead of their
27505 # values after options handling.
27506 ac_log="
27507 This file was extended by opencv $as_me 1.1.0, which was
27508 generated by GNU Autoconf 2.60.  Invocation command line was
27509
27510   CONFIG_FILES    = $CONFIG_FILES
27511   CONFIG_HEADERS  = $CONFIG_HEADERS
27512   CONFIG_LINKS    = $CONFIG_LINKS
27513   CONFIG_COMMANDS = $CONFIG_COMMANDS
27514   $ $0 $@
27515
27516 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27517 "
27518
27519 _ACEOF
27520
27521 cat >>$CONFIG_STATUS <<_ACEOF
27522 # Files that config.status was made for.
27523 config_files="$ac_config_files"
27524 config_headers="$ac_config_headers"
27525 config_commands="$ac_config_commands"
27526
27527 _ACEOF
27528
27529 cat >>$CONFIG_STATUS <<\_ACEOF
27530 ac_cs_usage="\
27531 \`$as_me' instantiates files from templates according to the
27532 current configuration.
27533
27534 Usage: $0 [OPTIONS] [FILE]...
27535
27536   -h, --help       print this help, then exit
27537   -V, --version    print version number, then exit
27538   -q, --quiet      do not print progress messages
27539   -d, --debug      don't remove temporary files
27540       --recheck    update $as_me by reconfiguring in the same conditions
27541   --file=FILE[:TEMPLATE]
27542                    instantiate the configuration file FILE
27543   --header=FILE[:TEMPLATE]
27544                    instantiate the configuration header FILE
27545
27546 Configuration files:
27547 $config_files
27548
27549 Configuration headers:
27550 $config_headers
27551
27552 Configuration commands:
27553 $config_commands
27554
27555 Report bugs to <bug-autoconf@gnu.org>."
27556
27557 _ACEOF
27558 cat >>$CONFIG_STATUS <<_ACEOF
27559 ac_cs_version="\\
27560 opencv config.status 1.1.0
27561 configured by $0, generated by GNU Autoconf 2.60,
27562   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27563
27564 Copyright (C) 2006 Free Software Foundation, Inc.
27565 This config.status script is free software; the Free Software Foundation
27566 gives unlimited permission to copy, distribute and modify it."
27567
27568 ac_pwd='$ac_pwd'
27569 srcdir='$srcdir'
27570 INSTALL='$INSTALL'
27571 _ACEOF
27572
27573 cat >>$CONFIG_STATUS <<\_ACEOF
27574 # If no file are specified by the user, then we need to provide default
27575 # value.  By we need to know if files were specified by the user.
27576 ac_need_defaults=:
27577 while test $# != 0
27578 do
27579   case $1 in
27580   --*=*)
27581     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27582     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27583     ac_shift=:
27584     ;;
27585   *)
27586     ac_option=$1
27587     ac_optarg=$2
27588     ac_shift=shift
27589     ;;
27590   esac
27591
27592   case $ac_option in
27593   # Handling of the options.
27594   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27595     ac_cs_recheck=: ;;
27596   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27597     echo "$ac_cs_version"; exit ;;
27598   --debug | --debu | --deb | --de | --d | -d )
27599     debug=: ;;
27600   --file | --fil | --fi | --f )
27601     $ac_shift
27602     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27603     ac_need_defaults=false;;
27604   --header | --heade | --head | --hea )
27605     $ac_shift
27606     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27607     ac_need_defaults=false;;
27608   --he | --h)
27609     # Conflict between --help and --header
27610     { echo "$as_me: error: ambiguous option: $1
27611 Try \`$0 --help' for more information." >&2
27612    { (exit 1); exit 1; }; };;
27613   --help | --hel | -h )
27614     echo "$ac_cs_usage"; exit ;;
27615   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27616   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27617     ac_cs_silent=: ;;
27618
27619   # This is an error.
27620   -*) { echo "$as_me: error: unrecognized option: $1
27621 Try \`$0 --help' for more information." >&2
27622    { (exit 1); exit 1; }; } ;;
27623
27624   *) ac_config_targets="$ac_config_targets $1"
27625      ac_need_defaults=false ;;
27626
27627   esac
27628   shift
27629 done
27630
27631 ac_configure_extra_args=
27632
27633 if $ac_cs_silent; then
27634   exec 6>/dev/null
27635   ac_configure_extra_args="$ac_configure_extra_args --silent"
27636 fi
27637
27638 _ACEOF
27639 cat >>$CONFIG_STATUS <<_ACEOF
27640 if \$ac_cs_recheck; then
27641   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27642   CONFIG_SHELL=$SHELL
27643   export CONFIG_SHELL
27644   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27645 fi
27646
27647 _ACEOF
27648 cat >>$CONFIG_STATUS <<\_ACEOF
27649 exec 5>>config.log
27650 {
27651   echo
27652   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27653 ## Running $as_me. ##
27654 _ASBOX
27655   echo "$ac_log"
27656 } >&5
27657
27658 _ACEOF
27659 cat >>$CONFIG_STATUS <<_ACEOF
27660 #
27661 # INIT-COMMANDS
27662 #
27663 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27664
27665 _ACEOF
27666
27667 cat >>$CONFIG_STATUS <<\_ACEOF
27668
27669 # Handling of arguments.
27670 for ac_config_target in $ac_config_targets
27671 do
27672   case $ac_config_target in
27673     "cvconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS cvconfig.h" ;;
27674     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27675     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27676     "opencv.pc") CONFIG_FILES="$CONFIG_FILES opencv.pc" ;;
27677     "opencv.spec") CONFIG_FILES="$CONFIG_FILES opencv.spec" ;;
27678     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
27679     "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
27680     "cxcore/Makefile") CONFIG_FILES="$CONFIG_FILES cxcore/Makefile" ;;
27681     "cxcore/include/Makefile") CONFIG_FILES="$CONFIG_FILES cxcore/include/Makefile" ;;
27682     "cxcore/src/Makefile") CONFIG_FILES="$CONFIG_FILES cxcore/src/Makefile" ;;
27683     "cv/Makefile") CONFIG_FILES="$CONFIG_FILES cv/Makefile" ;;
27684     "cv/include/Makefile") CONFIG_FILES="$CONFIG_FILES cv/include/Makefile" ;;
27685     "cv/src/Makefile") CONFIG_FILES="$CONFIG_FILES cv/src/Makefile" ;;
27686     "cvaux/Makefile") CONFIG_FILES="$CONFIG_FILES cvaux/Makefile" ;;
27687     "cvaux/include/Makefile") CONFIG_FILES="$CONFIG_FILES cvaux/include/Makefile" ;;
27688     "cvaux/src/Makefile") CONFIG_FILES="$CONFIG_FILES cvaux/src/Makefile" ;;
27689     "ml/Makefile") CONFIG_FILES="$CONFIG_FILES ml/Makefile" ;;
27690     "ml/include/Makefile") CONFIG_FILES="$CONFIG_FILES ml/include/Makefile" ;;
27691     "ml/src/Makefile") CONFIG_FILES="$CONFIG_FILES ml/src/Makefile" ;;
27692     "otherlibs/Makefile") CONFIG_FILES="$CONFIG_FILES otherlibs/Makefile" ;;
27693     "otherlibs/highgui/Makefile") CONFIG_FILES="$CONFIG_FILES otherlibs/highgui/Makefile" ;;
27694     "apps/Makefile") CONFIG_FILES="$CONFIG_FILES apps/Makefile" ;;
27695     "apps/haartraining/Makefile") CONFIG_FILES="$CONFIG_FILES apps/haartraining/Makefile" ;;
27696     "apps/haartraining/include/Makefile") CONFIG_FILES="$CONFIG_FILES apps/haartraining/include/Makefile" ;;
27697     "apps/haartraining/src/Makefile") CONFIG_FILES="$CONFIG_FILES apps/haartraining/src/Makefile" ;;
27698     "interfaces/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/Makefile" ;;
27699     "interfaces/swig/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/swig/Makefile" ;;
27700     "interfaces/swig/filtered/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/swig/filtered/Makefile" ;;
27701     "interfaces/swig/general/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/swig/general/Makefile" ;;
27702     "interfaces/swig/python/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/swig/python/Makefile" ;;
27703     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
27704     "tests/python/Makefile") CONFIG_FILES="$CONFIG_FILES tests/python/Makefile" ;;
27705     "tests/cv/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cv/Makefile" ;;
27706     "tests/cv/src/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cv/src/Makefile" ;;
27707     "tests/cxts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cxts/Makefile" ;;
27708     "tests/cxcore/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cxcore/Makefile" ;;
27709     "tests/cxcore/src/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cxcore/src/Makefile" ;;
27710     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
27711     "samples/Makefile") CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
27712     "samples/c/Makefile") CONFIG_FILES="$CONFIG_FILES samples/c/Makefile" ;;
27713     "samples/python/Makefile") CONFIG_FILES="$CONFIG_FILES samples/python/Makefile" ;;
27714
27715   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27716 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27717    { (exit 1); exit 1; }; };;
27718   esac
27719 done
27720
27721
27722 # If the user did not use the arguments to specify the items to instantiate,
27723 # then the envvar interface is used.  Set only those that are not.
27724 # We use the long form for the default assignment because of an extremely
27725 # bizarre bug on SunOS 4.1.3.
27726 if $ac_need_defaults; then
27727   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27728   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27729   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27730 fi
27731
27732 # Have a temporary directory for convenience.  Make it in the build tree
27733 # simply because there is no reason against having it here, and in addition,
27734 # creating and moving files from /tmp can sometimes cause problems.
27735 # Hook for its removal unless debugging.
27736 # Note that there is a small window in which the directory will not be cleaned:
27737 # after its creation but before its name has been assigned to `$tmp'.
27738 $debug ||
27739 {
27740   tmp=
27741   trap 'exit_status=$?
27742   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27743 ' 0
27744   trap '{ (exit 1); exit 1; }' 1 2 13 15
27745 }
27746 # Create a (secure) tmp directory for tmp files.
27747
27748 {
27749   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27750   test -n "$tmp" && test -d "$tmp"
27751 }  ||
27752 {
27753   tmp=./conf$$-$RANDOM
27754   (umask 077 && mkdir "$tmp")
27755 } ||
27756 {
27757    echo "$me: cannot create a temporary directory in ." >&2
27758    { (exit 1); exit 1; }
27759 }
27760
27761 #
27762 # Set up the sed scripts for CONFIG_FILES section.
27763 #
27764
27765 # No need to generate the scripts if there are no CONFIG_FILES.
27766 # This happens for instance when ./config.status config.h
27767 if test -n "$CONFIG_FILES"; then
27768
27769 _ACEOF
27770
27771
27772
27773 ac_delim='%!_!# '
27774 for ac_last_try in false false false false false :; do
27775   cat >conf$$subs.sed <<_ACEOF
27776 SHELL!$SHELL$ac_delim
27777 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27778 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27779 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27780 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27781 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27782 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27783 exec_prefix!$exec_prefix$ac_delim
27784 prefix!$prefix$ac_delim
27785 program_transform_name!$program_transform_name$ac_delim
27786 bindir!$bindir$ac_delim
27787 sbindir!$sbindir$ac_delim
27788 libexecdir!$libexecdir$ac_delim
27789 datarootdir!$datarootdir$ac_delim
27790 datadir!$datadir$ac_delim
27791 sysconfdir!$sysconfdir$ac_delim
27792 sharedstatedir!$sharedstatedir$ac_delim
27793 localstatedir!$localstatedir$ac_delim
27794 includedir!$includedir$ac_delim
27795 oldincludedir!$oldincludedir$ac_delim
27796 docdir!$docdir$ac_delim
27797 infodir!$infodir$ac_delim
27798 htmldir!$htmldir$ac_delim
27799 dvidir!$dvidir$ac_delim
27800 pdfdir!$pdfdir$ac_delim
27801 psdir!$psdir$ac_delim
27802 libdir!$libdir$ac_delim
27803 localedir!$localedir$ac_delim
27804 mandir!$mandir$ac_delim
27805 DEFS!$DEFS$ac_delim
27806 ECHO_C!$ECHO_C$ac_delim
27807 ECHO_N!$ECHO_N$ac_delim
27808 ECHO_T!$ECHO_T$ac_delim
27809 LIBS!$LIBS$ac_delim
27810 build_alias!$build_alias$ac_delim
27811 host_alias!$host_alias$ac_delim
27812 target_alias!$target_alias$ac_delim
27813 build!$build$ac_delim
27814 build_cpu!$build_cpu$ac_delim
27815 build_vendor!$build_vendor$ac_delim
27816 build_os!$build_os$ac_delim
27817 host!$host$ac_delim
27818 host_cpu!$host_cpu$ac_delim
27819 host_vendor!$host_vendor$ac_delim
27820 host_os!$host_os$ac_delim
27821 target!$target$ac_delim
27822 target_cpu!$target_cpu$ac_delim
27823 target_vendor!$target_vendor$ac_delim
27824 target_os!$target_os$ac_delim
27825 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27826 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27827 INSTALL_DATA!$INSTALL_DATA$ac_delim
27828 CYGPATH_W!$CYGPATH_W$ac_delim
27829 PACKAGE!$PACKAGE$ac_delim
27830 VERSION!$VERSION$ac_delim
27831 ACLOCAL!$ACLOCAL$ac_delim
27832 AUTOCONF!$AUTOCONF$ac_delim
27833 AUTOMAKE!$AUTOMAKE$ac_delim
27834 AUTOHEADER!$AUTOHEADER$ac_delim
27835 MAKEINFO!$MAKEINFO$ac_delim
27836 install_sh!$install_sh$ac_delim
27837 STRIP!$STRIP$ac_delim
27838 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
27839 mkdir_p!$mkdir_p$ac_delim
27840 AWK!$AWK$ac_delim
27841 SET_MAKE!$SET_MAKE$ac_delim
27842 am__leading_dot!$am__leading_dot$ac_delim
27843 AMTAR!$AMTAR$ac_delim
27844 am__tar!$am__tar$ac_delim
27845 am__untar!$am__untar$ac_delim
27846 MMAJOR!$MMAJOR$ac_delim
27847 MMINOR!$MMINOR$ac_delim
27848 MSUBMINOR!$MSUBMINOR$ac_delim
27849 LT_VERSION!$LT_VERSION$ac_delim
27850 CXX!$CXX$ac_delim
27851 CXXFLAGS!$CXXFLAGS$ac_delim
27852 LDFLAGS!$LDFLAGS$ac_delim
27853 CPPFLAGS!$CPPFLAGS$ac_delim
27854 ac_ct_CXX!$ac_ct_CXX$ac_delim
27855 EXEEXT!$EXEEXT$ac_delim
27856 OBJEXT!$OBJEXT$ac_delim
27857 DEPDIR!$DEPDIR$ac_delim
27858 am__include!$am__include$ac_delim
27859 am__quote!$am__quote$ac_delim
27860 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
27861 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
27862 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
27863 CXXDEPMODE!$CXXDEPMODE$ac_delim
27864 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27865 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27866 CC!$CC$ac_delim
27867 CFLAGS!$CFLAGS$ac_delim
27868 ac_ct_CC!$ac_ct_CC$ac_delim
27869 CCDEPMODE!$CCDEPMODE$ac_delim
27870 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
27871 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
27872 CPP!$CPP$ac_delim
27873 _ACEOF
27874
27875   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27876     break
27877   elif $ac_last_try; then
27878     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27879 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27880    { (exit 1); exit 1; }; }
27881   else
27882     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27883   fi
27884 done
27885
27886 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27887 if test -n "$ac_eof"; then
27888   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27889   ac_eof=`expr $ac_eof + 1`
27890 fi
27891
27892 cat >>$CONFIG_STATUS <<_ACEOF
27893 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27894 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27895 _ACEOF
27896 sed '
27897 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27898 s/^/s,@/; s/!/@,|#_!!_#|/
27899 :n
27900 t n
27901 s/'"$ac_delim"'$/,g/; t
27902 s/$/\\/; p
27903 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27904 ' >>$CONFIG_STATUS <conf$$subs.sed
27905 rm -f conf$$subs.sed
27906 cat >>$CONFIG_STATUS <<_ACEOF
27907 CEOF$ac_eof
27908 _ACEOF
27909
27910
27911 ac_delim='%!_!# '
27912 for ac_last_try in false false false false false :; do
27913   cat >conf$$subs.sed <<_ACEOF
27914 GREP!$GREP$ac_delim
27915 EGREP!$EGREP$ac_delim
27916 LN_S!$LN_S$ac_delim
27917 ECHO!$ECHO$ac_delim
27918 AR!$AR$ac_delim
27919 RANLIB!$RANLIB$ac_delim
27920 DLLTOOL!$DLLTOOL$ac_delim
27921 AS!$AS$ac_delim
27922 OBJDUMP!$OBJDUMP$ac_delim
27923 CXXCPP!$CXXCPP$ac_delim
27924 F77!$F77$ac_delim
27925 FFLAGS!$FFLAGS$ac_delim
27926 ac_ct_F77!$ac_ct_F77$ac_delim
27927 LIBTOOL!$LIBTOOL$ac_delim
27928 BUILD_APPS_TRUE!$BUILD_APPS_TRUE$ac_delim
27929 BUILD_APPS_FALSE!$BUILD_APPS_FALSE$ac_delim
27930 PY_CXXFLAGS!$PY_CXXFLAGS$ac_delim
27931 ALLOCA!$ALLOCA$ac_delim
27932 CARBON_CFLAGS!$CARBON_CFLAGS$ac_delim
27933 CARBON_LIBS!$CARBON_LIBS$ac_delim
27934 BUILD_CARBON_TRUE!$BUILD_CARBON_TRUE$ac_delim
27935 BUILD_CARBON_FALSE!$BUILD_CARBON_FALSE$ac_delim
27936 PKG_CONFIG!$PKG_CONFIG$ac_delim
27937 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
27938 GTK_LIBS!$GTK_LIBS$ac_delim
27939 GTHREAD_CFLAGS!$GTHREAD_CFLAGS$ac_delim
27940 GTHREAD_LIBS!$GTHREAD_LIBS$ac_delim
27941 BUILD_GTK_TRUE!$BUILD_GTK_TRUE$ac_delim
27942 BUILD_GTK_FALSE!$BUILD_GTK_FALSE$ac_delim
27943 QUICKTIME_CFLAGS!$QUICKTIME_CFLAGS$ac_delim
27944 QUICKTIME_LIBS!$QUICKTIME_LIBS$ac_delim
27945 BUILD_QUICKTIME_TRUE!$BUILD_QUICKTIME_TRUE$ac_delim
27946 BUILD_QUICKTIME_FALSE!$BUILD_QUICKTIME_FALSE$ac_delim
27947 XINE_LIBS!$XINE_LIBS$ac_delim
27948 BUILD_XINE_TRUE!$BUILD_XINE_TRUE$ac_delim
27949 BUILD_XINE_FALSE!$BUILD_XINE_FALSE$ac_delim
27950 FFMPEGLIBS!$FFMPEGLIBS$ac_delim
27951 BUILD_FFMPEG_TRUE!$BUILD_FFMPEG_TRUE$ac_delim
27952 BUILD_FFMPEG_FALSE!$BUILD_FFMPEG_FALSE$ac_delim
27953 IEEE1394LIBS!$IEEE1394LIBS$ac_delim
27954 BUILD_DC1394_TRUE!$BUILD_DC1394_TRUE$ac_delim
27955 BUILD_DC1394_FALSE!$BUILD_DC1394_FALSE$ac_delim
27956 BUILD_V4L_TRUE!$BUILD_V4L_TRUE$ac_delim
27957 BUILD_V4L_FALSE!$BUILD_V4L_FALSE$ac_delim
27958 IMAGELIBS!$IMAGELIBS$ac_delim
27959 BUILD_IMAGEIO_TRUE!$BUILD_IMAGEIO_TRUE$ac_delim
27960 BUILD_IMAGEIO_FALSE!$BUILD_IMAGEIO_FALSE$ac_delim
27961 PYTHON!$PYTHON$ac_delim
27962 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
27963 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
27964 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
27965 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
27966 pythondir!$pythondir$ac_delim
27967 pkgpythondir!$pkgpythondir$ac_delim
27968 pyexecdir!$pyexecdir$ac_delim
27969 pkgpyexecdir!$pkgpyexecdir$ac_delim
27970 PYTHON_CSPEC!$PYTHON_CSPEC$ac_delim
27971 PYTHON_LSPEC!$PYTHON_LSPEC$ac_delim
27972 BUILD_PYTHON_WRAPPERS_TRUE!$BUILD_PYTHON_WRAPPERS_TRUE$ac_delim
27973 BUILD_PYTHON_WRAPPERS_FALSE!$BUILD_PYTHON_WRAPPERS_FALSE$ac_delim
27974 SWIG!$SWIG$ac_delim
27975 SWIG_VERSION!$SWIG_VERSION$ac_delim
27976 SWIG_RUNTIME_LIBS_DIR!$SWIG_RUNTIME_LIBS_DIR$ac_delim
27977 SWIG_PYTHON_OPT!$SWIG_PYTHON_OPT$ac_delim
27978 SWIG_PYTHON_LIBS!$SWIG_PYTHON_LIBS$ac_delim
27979 UPDATE_SWIG_WRAPPERS_TRUE!$UPDATE_SWIG_WRAPPERS_TRUE$ac_delim
27980 UPDATE_SWIG_WRAPPERS_FALSE!$UPDATE_SWIG_WRAPPERS_FALSE$ac_delim
27981 DEBUG!$DEBUG$ac_delim
27982 LIBOBJS!$LIBOBJS$ac_delim
27983 LTLIBOBJS!$LTLIBOBJS$ac_delim
27984 _ACEOF
27985
27986   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 70; then
27987     break
27988   elif $ac_last_try; then
27989     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27990 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27991    { (exit 1); exit 1; }; }
27992   else
27993     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27994   fi
27995 done
27996
27997 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27998 if test -n "$ac_eof"; then
27999   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28000   ac_eof=`expr $ac_eof + 1`
28001 fi
28002
28003 cat >>$CONFIG_STATUS <<_ACEOF
28004 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
28005 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
28006 _ACEOF
28007 sed '
28008 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28009 s/^/s,@/; s/!/@,|#_!!_#|/
28010 :n
28011 t n
28012 s/'"$ac_delim"'$/,g/; t
28013 s/$/\\/; p
28014 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28015 ' >>$CONFIG_STATUS <conf$$subs.sed
28016 rm -f conf$$subs.sed
28017 cat >>$CONFIG_STATUS <<_ACEOF
28018 :end
28019 s/|#_!!_#|//g
28020 CEOF$ac_eof
28021 _ACEOF
28022
28023
28024 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28025 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28026 # trailing colons and then remove the whole line if VPATH becomes empty
28027 # (actually we leave an empty line to preserve line numbers).
28028 if test "x$srcdir" = x.; then
28029   ac_vpsub='/^[  ]*VPATH[        ]*=/{
28030 s/:*\$(srcdir):*/:/
28031 s/:*\${srcdir}:*/:/
28032 s/:*@srcdir@:*/:/
28033 s/^\([^=]*=[     ]*\):*/\1/
28034 s/:*$//
28035 s/^[^=]*=[       ]*$//
28036 }'
28037 fi
28038
28039 cat >>$CONFIG_STATUS <<\_ACEOF
28040 fi # test -n "$CONFIG_FILES"
28041
28042
28043 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
28044 do
28045   case $ac_tag in
28046   :[FHLC]) ac_mode=$ac_tag; continue;;
28047   esac
28048   case $ac_mode$ac_tag in
28049   :[FHL]*:*);;
28050   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
28051 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
28052    { (exit 1); exit 1; }; };;
28053   :[FH]-) ac_tag=-:-;;
28054   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28055   esac
28056   ac_save_IFS=$IFS
28057   IFS=:
28058   set x $ac_tag
28059   IFS=$ac_save_IFS
28060   shift
28061   ac_file=$1
28062   shift
28063
28064   case $ac_mode in
28065   :L) ac_source=$1;;
28066   :[FH])
28067     ac_file_inputs=
28068     for ac_f
28069     do
28070       case $ac_f in
28071       -) ac_f="$tmp/stdin";;
28072       *) # Look for the file first in the build tree, then in the source tree
28073          # (if the path is not absolute).  The absolute path cannot be DOS-style,
28074          # because $ac_f cannot contain `:'.
28075          test -f "$ac_f" ||
28076            case $ac_f in
28077            [\\/$]*) false;;
28078            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28079            esac ||
28080            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28081 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28082    { (exit 1); exit 1; }; };;
28083       esac
28084       ac_file_inputs="$ac_file_inputs $ac_f"
28085     done
28086
28087     # Let's still pretend it is `configure' which instantiates (i.e., don't
28088     # use $as_me), people would be surprised to read:
28089     #    /* config.h.  Generated by config.status.  */
28090     configure_input="Generated from "`IFS=:
28091           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28092     if test x"$ac_file" != x-; then
28093       configure_input="$ac_file.  $configure_input"
28094       { echo "$as_me:$LINENO: creating $ac_file" >&5
28095 echo "$as_me: creating $ac_file" >&6;}
28096     fi
28097
28098     case $ac_tag in
28099     *:-:* | *:-) cat >"$tmp/stdin";;
28100     esac
28101     ;;
28102   esac
28103
28104   ac_dir=`$as_dirname -- "$ac_file" ||
28105 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28106          X"$ac_file" : 'X\(//\)[^/]' \| \
28107          X"$ac_file" : 'X\(//\)$' \| \
28108          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28109 echo X"$ac_file" |
28110     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28111             s//\1/
28112             q
28113           }
28114           /^X\(\/\/\)[^/].*/{
28115             s//\1/
28116             q
28117           }
28118           /^X\(\/\/\)$/{
28119             s//\1/
28120             q
28121           }
28122           /^X\(\/\).*/{
28123             s//\1/
28124             q
28125           }
28126           s/.*/./; q'`
28127   { as_dir="$ac_dir"
28128   case $as_dir in #(
28129   -*) as_dir=./$as_dir;;
28130   esac
28131   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28132     as_dirs=
28133     while :; do
28134       case $as_dir in #(
28135       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28136       *) as_qdir=$as_dir;;
28137       esac
28138       as_dirs="'$as_qdir' $as_dirs"
28139       as_dir=`$as_dirname -- "$as_dir" ||
28140 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28141          X"$as_dir" : 'X\(//\)[^/]' \| \
28142          X"$as_dir" : 'X\(//\)$' \| \
28143          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28144 echo X"$as_dir" |
28145     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28146             s//\1/
28147             q
28148           }
28149           /^X\(\/\/\)[^/].*/{
28150             s//\1/
28151             q
28152           }
28153           /^X\(\/\/\)$/{
28154             s//\1/
28155             q
28156           }
28157           /^X\(\/\).*/{
28158             s//\1/
28159             q
28160           }
28161           s/.*/./; q'`
28162       test -d "$as_dir" && break
28163     done
28164     test -z "$as_dirs" || eval "mkdir $as_dirs"
28165   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28166 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28167    { (exit 1); exit 1; }; }; }
28168   ac_builddir=.
28169
28170 case "$ac_dir" in
28171 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28172 *)
28173   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28174   # A ".." for each directory in $ac_dir_suffix.
28175   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28176   case $ac_top_builddir_sub in
28177   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28178   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28179   esac ;;
28180 esac
28181 ac_abs_top_builddir=$ac_pwd
28182 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28183 # for backward compatibility:
28184 ac_top_builddir=$ac_top_build_prefix
28185
28186 case $srcdir in
28187   .)  # We are building in place.
28188     ac_srcdir=.
28189     ac_top_srcdir=$ac_top_builddir_sub
28190     ac_abs_top_srcdir=$ac_pwd ;;
28191   [\\/]* | ?:[\\/]* )  # Absolute name.
28192     ac_srcdir=$srcdir$ac_dir_suffix;
28193     ac_top_srcdir=$srcdir
28194     ac_abs_top_srcdir=$srcdir ;;
28195   *) # Relative name.
28196     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28197     ac_top_srcdir=$ac_top_build_prefix$srcdir
28198     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28199 esac
28200 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28201
28202
28203   case $ac_mode in
28204   :F)
28205   #
28206   # CONFIG_FILE
28207   #
28208
28209   case $INSTALL in
28210   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28211   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28212   esac
28213 _ACEOF
28214
28215 cat >>$CONFIG_STATUS <<\_ACEOF
28216 # If the template does not know about datarootdir, expand it.
28217 # FIXME: This hack should be removed a few years after 2.60.
28218 ac_datarootdir_hack=; ac_datarootdir_seen=
28219
28220 case `sed -n '/datarootdir/ {
28221   p
28222   q
28223 }
28224 /@datadir@/p
28225 /@docdir@/p
28226 /@infodir@/p
28227 /@localedir@/p
28228 /@mandir@/p
28229 ' $ac_file_inputs` in
28230 *datarootdir*) ac_datarootdir_seen=yes;;
28231 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28232   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28233 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28234 _ACEOF
28235 cat >>$CONFIG_STATUS <<_ACEOF
28236   ac_datarootdir_hack='
28237   s&@datadir@&$datadir&g
28238   s&@docdir@&$docdir&g
28239   s&@infodir@&$infodir&g
28240   s&@localedir@&$localedir&g
28241   s&@mandir@&$mandir&g
28242     s&\\\${datarootdir}&$datarootdir&g' ;;
28243 esac
28244 _ACEOF
28245
28246 # Neutralize VPATH when `$srcdir' = `.'.
28247 # Shell code in configure.ac might set extrasub.
28248 # FIXME: do we really want to maintain this feature?
28249 cat >>$CONFIG_STATUS <<_ACEOF
28250   sed "$ac_vpsub
28251 $extrasub
28252 _ACEOF
28253 cat >>$CONFIG_STATUS <<\_ACEOF
28254 :t
28255 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28256 s&@configure_input@&$configure_input&;t t
28257 s&@top_builddir@&$ac_top_builddir_sub&;t t
28258 s&@srcdir@&$ac_srcdir&;t t
28259 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28260 s&@top_srcdir@&$ac_top_srcdir&;t t
28261 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28262 s&@builddir@&$ac_builddir&;t t
28263 s&@abs_builddir@&$ac_abs_builddir&;t t
28264 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28265 s&@INSTALL@&$ac_INSTALL&;t t
28266 $ac_datarootdir_hack
28267 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
28268
28269 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28270   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28271   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28272   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28273 which seems to be undefined.  Please make sure it is defined." >&5
28274 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28275 which seems to be undefined.  Please make sure it is defined." >&2;}
28276
28277   rm -f "$tmp/stdin"
28278   case $ac_file in
28279   -) cat "$tmp/out"; rm -f "$tmp/out";;
28280   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28281   esac
28282  ;;
28283   :H)
28284   #
28285   # CONFIG_HEADER
28286   #
28287 _ACEOF
28288
28289 # Transform confdefs.h into a sed script `conftest.defines', that
28290 # substitutes the proper values into config.h.in to produce config.h.
28291 rm -f conftest.defines conftest.tail
28292 # First, append a space to every undef/define line, to ease matching.
28293 echo 's/$/ /' >conftest.defines
28294 # Then, protect against being on the right side of a sed subst, or in
28295 # an unquoted here document, in config.status.  If some macros were
28296 # called several times there might be several #defines for the same
28297 # symbol, which is useless.  But do not sort them, since the last
28298 # AC_DEFINE must be honored.
28299 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28300 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28301 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28302 # PARAMS is the parameter list in the macro definition--in most cases, it's
28303 # just an empty string.
28304 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
28305 ac_dB='\\)[      (].*,\\1define\\2'
28306 ac_dC=' '
28307 ac_dD=' ,'
28308
28309 uniq confdefs.h |
28310   sed -n '
28311         t rset
28312         :rset
28313         s/^[     ]*#[    ]*define[       ][      ]*//
28314         t ok
28315         d
28316         :ok
28317         s/[\\&,]/\\&/g
28318         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28319         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28320   ' >>conftest.defines
28321
28322 # Remove the space that was appended to ease matching.
28323 # Then replace #undef with comments.  This is necessary, for
28324 # example, in the case of _POSIX_SOURCE, which is predefined and required
28325 # on some systems where configure will not decide to define it.
28326 # (The regexp can be short, since the line contains either #define or #undef.)
28327 echo 's/ $//
28328 s,^[     #]*u.*,/* & */,' >>conftest.defines
28329
28330 # Break up conftest.defines:
28331 ac_max_sed_lines=50
28332
28333 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28334 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28335 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28336 # et cetera.
28337 ac_in='$ac_file_inputs'
28338 ac_out='"$tmp/out1"'
28339 ac_nxt='"$tmp/out2"'
28340
28341 while :
28342 do
28343   # Write a here document:
28344     cat >>$CONFIG_STATUS <<_ACEOF
28345     # First, check the format of the line:
28346     cat >"\$tmp/defines.sed" <<\\CEOF
28347 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
28348 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
28349 b
28350 :def
28351 _ACEOF
28352   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
28353   echo 'CEOF
28354     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28355   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
28356   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
28357   grep . conftest.tail >/dev/null || break
28358   rm -f conftest.defines
28359   mv conftest.tail conftest.defines
28360 done
28361 rm -f conftest.defines conftest.tail
28362
28363 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28364 cat >>$CONFIG_STATUS <<\_ACEOF
28365   if test x"$ac_file" != x-; then
28366     echo "/* $configure_input  */" >"$tmp/config.h"
28367     cat "$ac_result" >>"$tmp/config.h"
28368     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
28369       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28370 echo "$as_me: $ac_file is unchanged" >&6;}
28371     else
28372       rm -f $ac_file
28373       mv "$tmp/config.h" $ac_file
28374     fi
28375   else
28376     echo "/* $configure_input  */"
28377     cat "$ac_result"
28378   fi
28379   rm -f "$tmp/out12"
28380 # Compute $ac_file's index in $config_headers.
28381 _am_stamp_count=1
28382 for _am_header in $config_headers :; do
28383   case $_am_header in
28384     $ac_file | $ac_file:* )
28385       break ;;
28386     * )
28387       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28388   esac
28389 done
28390 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
28391 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28392          X$ac_file : 'X\(//\)[^/]' \| \
28393          X$ac_file : 'X\(//\)$' \| \
28394          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
28395 echo X$ac_file |
28396     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28397             s//\1/
28398             q
28399           }
28400           /^X\(\/\/\)[^/].*/{
28401             s//\1/
28402             q
28403           }
28404           /^X\(\/\/\)$/{
28405             s//\1/
28406             q
28407           }
28408           /^X\(\/\).*/{
28409             s//\1/
28410             q
28411           }
28412           s/.*/./; q'`/stamp-h$_am_stamp_count
28413  ;;
28414
28415   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
28416 echo "$as_me: executing $ac_file commands" >&6;}
28417  ;;
28418   esac
28419
28420
28421   case $ac_file$ac_mode in
28422     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28423   # Strip MF so we end up with the name of the file.
28424   mf=`echo "$mf" | sed -e 's/:.*$//'`
28425   # Check whether this is an Automake generated Makefile or not.
28426   # We used to match only the files named `Makefile.in', but
28427   # some people rename them; so instead we look at the file content.
28428   # Grep'ing the first line is not enough: some people post-process
28429   # each Makefile.in and add a new line on top of each file to say so.
28430   # So let's grep whole file.
28431   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
28432     dirpart=`$as_dirname -- "$mf" ||
28433 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28434          X"$mf" : 'X\(//\)[^/]' \| \
28435          X"$mf" : 'X\(//\)$' \| \
28436          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28437 echo X"$mf" |
28438     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28439             s//\1/
28440             q
28441           }
28442           /^X\(\/\/\)[^/].*/{
28443             s//\1/
28444             q
28445           }
28446           /^X\(\/\/\)$/{
28447             s//\1/
28448             q
28449           }
28450           /^X\(\/\).*/{
28451             s//\1/
28452             q
28453           }
28454           s/.*/./; q'`
28455   else
28456     continue
28457   fi
28458   # Extract the definition of DEPDIR, am__include, and am__quote
28459   # from the Makefile without running `make'.
28460   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28461   test -z "$DEPDIR" && continue
28462   am__include=`sed -n 's/^am__include = //p' < "$mf"`
28463   test -z "am__include" && continue
28464   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28465   # When using ansi2knr, U may be empty or an underscore; expand it
28466   U=`sed -n 's/^U = //p' < "$mf"`
28467   # Find all dependency output files, they are included files with
28468   # $(DEPDIR) in their names.  We invoke sed twice because it is the
28469   # simplest approach to changing $(DEPDIR) to its actual value in the
28470   # expansion.
28471   for file in `sed -n "
28472     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28473        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28474     # Make sure the directory exists.
28475     test -f "$dirpart/$file" && continue
28476     fdir=`$as_dirname -- "$file" ||
28477 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28478          X"$file" : 'X\(//\)[^/]' \| \
28479          X"$file" : 'X\(//\)$' \| \
28480          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28481 echo X"$file" |
28482     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28483             s//\1/
28484             q
28485           }
28486           /^X\(\/\/\)[^/].*/{
28487             s//\1/
28488             q
28489           }
28490           /^X\(\/\/\)$/{
28491             s//\1/
28492             q
28493           }
28494           /^X\(\/\).*/{
28495             s//\1/
28496             q
28497           }
28498           s/.*/./; q'`
28499     { as_dir=$dirpart/$fdir
28500   case $as_dir in #(
28501   -*) as_dir=./$as_dir;;
28502   esac
28503   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28504     as_dirs=
28505     while :; do
28506       case $as_dir in #(
28507       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28508       *) as_qdir=$as_dir;;
28509       esac
28510       as_dirs="'$as_qdir' $as_dirs"
28511       as_dir=`$as_dirname -- "$as_dir" ||
28512 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28513          X"$as_dir" : 'X\(//\)[^/]' \| \
28514          X"$as_dir" : 'X\(//\)$' \| \
28515          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28516 echo X"$as_dir" |
28517     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28518             s//\1/
28519             q
28520           }
28521           /^X\(\/\/\)[^/].*/{
28522             s//\1/
28523             q
28524           }
28525           /^X\(\/\/\)$/{
28526             s//\1/
28527             q
28528           }
28529           /^X\(\/\).*/{
28530             s//\1/
28531             q
28532           }
28533           s/.*/./; q'`
28534       test -d "$as_dir" && break
28535     done
28536     test -z "$as_dirs" || eval "mkdir $as_dirs"
28537   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28538 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28539    { (exit 1); exit 1; }; }; }
28540     # echo "creating $dirpart/$file"
28541     echo '# dummy' > "$dirpart/$file"
28542   done
28543 done
28544  ;;
28545
28546   esac
28547 done # for ac_tag
28548
28549
28550 { (exit 0); exit 0; }
28551 _ACEOF
28552 chmod +x $CONFIG_STATUS
28553 ac_clean_files=$ac_clean_files_save
28554
28555
28556 # configure is writing to config.log, and then calls config.status.
28557 # config.status does its own redirection, appending to config.log.
28558 # Unfortunately, on DOS this fails, as config.log is still kept open
28559 # by configure, so config.status won't be able to write to it; its
28560 # output is simply discarded.  So we exec the FD to /dev/null,
28561 # effectively closing config.log, so it can be properly (re)opened and
28562 # appended to by config.status.  When coming back to configure, we
28563 # need to make the FD available again.
28564 if test "$no_create" != yes; then
28565   ac_cs_success=:
28566   ac_config_status_args=
28567   test "$silent" = yes &&
28568     ac_config_status_args="$ac_config_status_args --quiet"
28569   exec 5>/dev/null
28570   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28571   exec 5>>config.log
28572   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28573   # would make configure fail if this is the last instruction.
28574   $ac_cs_success || { (exit 1); exit 1; }
28575 fi
28576
28577
28578 { echo "$as_me:$LINENO: result:
28579 General configuration ================================================
28580     Compiler:                 ${CXX}
28581     CXXFLAGS:                 ${CXXFLAGS}
28582
28583     Install path:             ${prefix}
28584
28585 HighGUI configuration ================================================
28586
28587     Windowing system --------------
28588     Use Carbon / Mac OS X:    ${have_carbon}
28589     Use gtk+ 2.x:             ${have_gtk}
28590     Use gthread:              ${have_gthread}
28591
28592     Image I/O ---------------------
28593     Use ImageIO / Mac OS X:   ${have_imageio}
28594     Use libjpeg:              ${have_jpeg}
28595     Use zlib:                 ${have_zlib}
28596     Use libpng:               ${have_png}
28597     Use libtiff:              ${have_tiff}
28598     Use libjasper:            ${have_jasper}
28599     Use libIlmImf:            ${have_ilmimf}
28600
28601     Video I/O ---------------------
28602     Use QuickTime / Mac OS X: ${have_quicktime}
28603     Use xine:                 ${have_xine}
28604     Use ffmpeg:               ${have_ffmpeg}
28605     Use dc1394 & raw1394:     ${have_dc1394}
28606     Use v4l:                  ${have_v4l}
28607     Use v4l2:                 ${have_v4l2}
28608
28609 Wrappers for other languages =========================================
28610     SWIG                      ${SWIG}
28611     Python                    ${have_python}
28612
28613 Additional build settings ============================================
28614     Build demo apps           ${enable_apps}
28615
28616 Now run make ...
28617 " >&5
28618 echo "${ECHO_T}
28619 General configuration ================================================
28620     Compiler:                 ${CXX}
28621     CXXFLAGS:                 ${CXXFLAGS}
28622
28623     Install path:             ${prefix}
28624
28625 HighGUI configuration ================================================
28626
28627     Windowing system --------------
28628     Use Carbon / Mac OS X:    ${have_carbon}
28629     Use gtk+ 2.x:             ${have_gtk}
28630     Use gthread:              ${have_gthread}
28631
28632     Image I/O ---------------------
28633     Use ImageIO / Mac OS X:   ${have_imageio}
28634     Use libjpeg:              ${have_jpeg}
28635     Use zlib:                 ${have_zlib}
28636     Use libpng:               ${have_png}
28637     Use libtiff:              ${have_tiff}
28638     Use libjasper:            ${have_jasper}
28639     Use libIlmImf:            ${have_ilmimf}
28640
28641     Video I/O ---------------------
28642     Use QuickTime / Mac OS X: ${have_quicktime}
28643     Use xine:                 ${have_xine}
28644     Use ffmpeg:               ${have_ffmpeg}
28645     Use dc1394 & raw1394:     ${have_dc1394}
28646     Use v4l:                  ${have_v4l}
28647     Use v4l2:                 ${have_v4l2}
28648
28649 Wrappers for other languages =========================================
28650     SWIG                      ${SWIG}
28651     Python                    ${have_python}
28652
28653 Additional build settings ============================================
28654     Build demo apps           ${enable_apps}
28655
28656 Now run make ...
28657 " >&6; }
28658
28659 if test x"$have_xine" = "xyes"; then
28660     { echo "$as_me:$LINENO:
28661 ATTENTION: highgui will be built with xine support,
28662            thus it will be a subject to GNU Public License" >&5
28663 echo "$as_me:
28664 ATTENTION: highgui will be built with xine support,
28665            thus it will be a subject to GNU Public License" >&6;}
28666 fi